Update to OhioStation

Description

Changed some parts of OhioStation
TODO

Media

Changelog

:cl:
-fix: Fixed cargo spacing
-fix: Fixed an unpowered engineering door
-fix: Fixed epi scanning modules to have a vessel machine
-fix: Fixed cloning to work now
-add: Added a door in epi hallways for ease of access
-add: Added more directional signs
-add: Reluctantly added mouse timed spawners
-add: Added bottle of nothing to clown/mime room

Added some navigational markers

Changed to glass firelocks
East Evac docking fixed

Made the west evac area work now. Git still confuses me

Added decoration in bar
Added cleanable dirt decals
Added chairs at evacs and arrivals


Fill in fuel type and units on ingest of FERC1 fuel data

There are some cases in which we get good clean category information about a plant and its fuel for some years, but not for others. Right now this means that we're perhaps unnecessarily dumping data that we could keep -- if we were willing to assign the categories for the gapping years.
For instance, in 2014-2015, (respondent_id=2, plant_name=Barry) has nothing in the fuel or fuel_unit fields in the FERC Form 1 database clone, but for 2007-2012 we see that it's fuel=coal and fuel_unit=tons, and there are good numerical values in the fuel_quantity, fuel_avg_heat, fuel_cost_btu, and other fields.
Once we have generated time series for each FERC plant and inserted the new Plant ID values into the fuel_ferc1 table, we can go ahead and fill in many of these missing categorical values. This will require addressing issue #39 as well -- since we'll need to retain many imperfect records that are currently getting dropped in order to fix them.

It seems like this is a very similar problem to the one that @cmgosnell has been working on with backfilling constant values (like location) in the EIA 860 data. Maybe the same tool can be applied?

:-/ sort of. what I've been doing is not backfilling. I've been attempting to find the canonical annual or static values from multiple tables and store that info in one table as opposed to all over the place. But for the static info, this can be used to backfill. Nonetheless, the process is pretty generalizable and could certainly be applied to FERC.


Finding the training very slow

I wanted to start from the init state and with no prior training. Ran it over night for millions of steps across 24 cpus and lots of iterations and the ai still only makes it out of the starting room sometimes. Its confusing to me because the reward sum when it leaves the room is often higher than ~.27 and when it doesn't the most it reaches is about .17.
What it accomplished in those 8 hours was figure out how to grab the potion from the PC, which is kinda cool but not even sure why it does it since there's no reward mechanism for adding heal items.
Is there something I can change for the speed of learning from optimal paths? I made plenty of changes to the code but I can't pinpoint the issue. All I can think of is I decreased the model.learn() from multiplying by a factor of 1000 to 10, because it'd didn't save the model at all since it was taking so many hours to go through one learn_step. But there's gotta be some kind of tuning that could help make it learn from rewarding paths more.
FILE_PATH = "output_for_simulations.txt"
num_cpu = 24 #64 #46  # Also sets the number of episodes per training iteration
env = None
global model
model = None
global currentLearnStep

# Get all saved models
saved_models = glob.glob(f'session_*/pokemans_*.zip')
saved_models.sort(key=lambda x: int(Path(x).stem.split("_")[1]), reverse=True)

# Initialize the output text file with placeholders
with open(FILE_PATH, 'w') as file:
    for rank in range(num_cpu):
        file.write(f"Rank {rank} - initializing...\n")

lock = multiprocessing.Lock()  # You're using multiprocessing, so use its Lock

def signal_handler(signum, frame):
    print("Interrupted! Closing environments...")
    save_model()
    if env is not None:
        env.close()
    sys.exit(0)

# Set the signal handler
signal.signal(signal.SIGINT, signal_handler)

def make_env(rank, env_conf, should_render = False, seed=0, pretraining_steps=0):
    def _init():
        env = RedGymEnv(env_conf, should_render, rank=rank, lock=lock, file_path=FILE_PATH, original_steps=pretraining_steps, ep_length=ep_length, num_ranks=num_cpu)  # Passing lock and file path
        env.reset(seed=(seed + rank))
        return env
    set_random_seed(seed)
    return _init

def save_model():
    if model is not None:
        print("current learn step +1: ", currentLearnStep + 1)
        print("pretraining: ", pretraining_steps)
        total_steps_so_far = pretraining_steps + ep_length*num_cpu*(currentLearnStep+1)
        print("total steps so far: ", total_steps_so_far)
        model_path = os.path.join(sess_path, f"pokemans_{total_steps_so_far}_steps")
        model.save(model_path)
        print("Saving Most recent model at: " ,total_steps_so_far, " steps.")

if __name__ == '__main__':

    ep_length = 512
    if saved_models:
        pretraining_steps = int(re.search('pokemans_(\d+)_steps', saved_models[0]).group(1))
    else:
        pretraining_steps = 0

    sess_path = f'session_{str(uuid.uuid4())[:8]}'
    if not os.path.exists(sess_path):
        os.makedirs(sess_path)
    args = get_args('run_baseline_parallel.py', ep_length=ep_length, sess_path=sess_path)

    env_config = {
                'headless': False, 'save_final_state': True, 'early_stop': False,
                'action_freq': 24, 'init_state': '../init.state', 'max_steps': ep_length,
                'print_rewards': True, 'save_video': False, 'fast_video': True, 'session_path': sess_path,
                'gb_path': '../PokemonRed.gb', 'debug': False, 'sim_frame_dist': 2_000_000.0
            }

    env_config = change_env(env_config, args)

    env = SubprocVecEnv([make_env(i, env_config, should_render=(i == 0), pretraining_steps=pretraining_steps) for i in range(num_cpu)])

    #checkpoint_callback = CheckpointCallback(save_freq=ep_length, save_path=sess_path,
    #                                 name_prefix='poke')
    #env_checker.check_env(env)
    learn_steps = 20

    print("checking if saved models exist: ", saved_models)
    if saved_models:

        print(f'\nloading model: {saved_models[0]}')
        model = PPO.load(saved_models[0], env=env)
        print("Starting at Model with ",pretraining_steps, " steps.")
        model.n_steps = ep_length
        model.n_envs = num_cpu
        model.rollout_buffer.buffer_size = ep_length
        model.rollout_buffer.n_envs = num_cpu
        model.rollout_buffer.reset()
    else:
        print('\n Loading untrained Model: ')
        model = PPO('CnnPolicy', env, verbose=1, n_steps=ep_length, batch_size=512, n_epochs=1, gamma=0.999)
        pretraining_steps = 0

    for currentLearnStep in range(learn_steps):
        print("entering currentLearnStep: ", currentLearnStep)
        model.learn(total_timesteps=(ep_length)*num_cpu*10) #, callback=checkpoint_callback

        # Save the model
        save_model()

        # Render steps after learning
        obs = env.reset()
        for _ in range(100):  # Render 100 steps, adjust as needed
            env.render()
            action, _ = model.predict(obs)
            obs, _, _, _ = env.step(action)
        time.sleep(1)  # Pause for a second between iterations, adjust as needed

I was actually wounder how long a training season should take. Been letting it run for almost 24 hours, and I can't find anything that says that the system auto saves the season if I just end it, or if I should let it run till it's done.

@setomage you can edit your "run_baseline_parallel.py"  with this patch #76 and on the next run you you will see "loading checkpoint" as it resumes from the folder with the newest timestamp.

@setomage you can edit your "run_baseline_parallel.py" with this patch #76 and on the next run you you will see "loading checkpoint" as it resumes from the folder with the newest timestamp.

@techmore So does this mean I can just end the current training session, and not lose anything? I ask since the folder for the current training session is also at 24GB

Thats a fair point and while I can't guarantee anything I can say I'm been using this for a few days on my laptop and I can show you a picture of me using break and resuming and it being the same session.
I actually seem to be able to keep my session running, edit the file and run it in a new session as well without suspending the first session. My machine just grinds to a halt.
The is the effective result of that patch.

@techmore Tried the changes that you linked too, sadly as a filthy Windows user, it doesn't work.
File "\PokemonRedExperiments-master\baselines\run_baseline_parallel2.py", line 69, in
session_folder, latest_poke_file = find_latest_session_and_poke()
File "\PokemonRedExperiments-master\baselines\run_baseline_parallel2.py", line 30, in find_latest_session_and_poke
all_folders = baselines()
NameError: name 'baselines' is not defined

@setomage Thank you for the update and sorry to hear that. I looks to be the issue could be "all_folder = baselines()" which I think may be a mistake. While I'm trying to find that error I'm posted my local code in a link below that you may want to try in the meantime.
This code includes tensorboard  and changes  num_cpu = os.cpu_count() instead of 44.
https://raw.githubusercontent.com/techmore/PokemonRedExperiments/patch-1/baselines/run_baseline_parallel.py
sorry about that... lets try to get this working for everyone

@setomage Thank you for the update and sorry to hear that. I looks to be the issue could be "all_folder = baselines()" which I think may be a mistake. While I'm trying to find that error I'm posted my local code in a link below that you may want to try in the meantime.
This code includes tensorboard and changes num_cpu = os.cpu_count() instead of 44.
https://raw.githubusercontent.com/techmore/PokemonRedExperiments/patch-1/baselines/run_baseline_parallel.py
sorry about that... lets try to get this working for everyone

Swing and a miss for Windows users. "os is not defined"   LOL
I've been slowly working on the code for Windows and getting to run better. Before I was running at a 100% on all 24 cores and now I'm at about 80 - 85%. Off the hope I would also be running 35GB of RAM, and got it down to 26GB.
Still had to hard point to my last training data and its zip, just hoping that since my last training session had four of them, that the latest one took everything from the last three...  ^_^"
I know from looking at the code that 'run_baseline' and the 'run_pretrained_interactive' is also meant to look for the training data and be hard coded into the files. So if they're not edited every run time, you only get the old builds.
Once I get things running smoothly on my end, I am planing on doing a Windows build and hoping I can do what you're doing and making it so the code looks for the most resent files on its own and not have to be hard coded.
Yoda Voice
Out of box and noob friendly, this is not.

You need to an import for os at the top of the file like so
from os.path import exists
from pathlib import Path
import uuid
from red_gym_env import RedGymEnv
from stable_baselines3 import A2C, PPO
from stable_baselines3.common import env_checker
from stable_baselines3.common.vec_env import DummyVecEnv, SubprocVecEnv
from stable_baselines3.common.utils import set_random_seed
from stable_baselines3.common.callbacks import CheckpointCallback
from argparse_pokemon import *
import os

Hopefully that should fix the os is not defined error

I tried training from scratch and found the same issue, I think the reward in pixel change could be why it stays within the first map early in training. Because I've found it can move without issue to something until it causes dialog interactions and then gets fixated on those. So when it eventually finds a way to leave the area I think it starts understanding there are ways to find more areas but takes wayyyy too long to get there, and it is likely how it found every single zone thus far, which could explain some of it's navigation choices.

Hey all! Try out the new run_baseline_parallel_fast.py script. It's much faster and uses far less resources!

Going to close this now as fixed by https://github.com/PWhiddy/PokemonRedExperiments/pull/98, but feel free to report any more issues here https://github.com/PWhiddy/PokemonRedExperiments/issues/99


Research paper?

Hi,
have you published any research papers on this work or any paper that use this library for any kind of applications (sizing of PV, BESS, HP, etc...) ?
Thank you for your great job.
Bye!

There is no peer-reviewed journal paper from my side, but:

The commercial software npro uses the hplib, see release notes: https://www.npro.energy/main/de/release-2-0
More than 35.000 simulations were conducted for a conference paper including web tool, see: https://re-lab.hs-emden-leer.de/PVSYM22/


Include Cleaner reports for unused concept headers.

With Include Cleaner (UnusedIncludes: Strict) the header is marked as unused by ClangD when using nothing but concepts from this header.
#include <concepts> // Marked as unused

// Constrained function template
template<std::integral T>
T square1(T n) {
	return n * n;
}

// requires 1
template<typename T>
T square2(T n) requires std::integral<T> {
	return n * n;
}

// requires 2
template<typename T>
requires std::integral<T>
T square3(T n) {
	return n * n;
}

// Constrained function template with deduced class type
auto square4(std::integral auto n) {
	return n * n;
}

int main() {
	return square1(5) + square2(5) + square3(5) + square4(5);
}

System information
clangd version 17.0.2
Features: windows
Platform: x86_64-w64-windows-gnu
Operating system: Windows 10

Duplicates #1553 and, transitively, https://github.com/llvm/llvm-project/issues/60702.

Duplicates #1553 and, transitively, llvm/llvm-project#60702.

Couldn't find it via search, closing as duplicate.


instance footer

In the instance custom content type there is a new fieldset instance_footer, which contains the fields instance_footer_about, instance_footer_contact, and instance_footer_reports. Please use those fields to create the footer based upon the following image:

Please use a three column structure for the row, so that the footer still looks okay in mobile view.
Additionally, for the left column, the title should be "About the " with the third word being Sanctuary, Issue, or Designation, based upon the Instance type.

closed


Is there a view for managing permissions?

Is there a view for managing permissions? An interface to manage which role has some permissions and etc.

I don't believe that is included, or at least I haven't seen one. I don't think it would make sense to do one since everyone is going to have different templates, different ways of handling forms, different URL structures, etc. Thankfully, it's not the most difficult thing to build yourself and re-use between projects.

Actually, I was referring to a "Manage Permissions" view, like this. I don't think it should be included in the default package, but I was wondering if anyone has already made it and open-sourced it.

@felipefrancisco This would be great and save me a lot of time!

This exists: https://github.com/acoustep/entrust-gui


[CORE-1475] Add prompts for deleting repos & pipelines when deleting project

 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.Robert A. Uhl seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.You have signed the CLA already but the status is still pending? Let us recheck it.

Yup. It tries to do the obvious thing when deleting a project, but no more than that. If there’s still something to be untangled … don’t do anything (so the system remains in a good state) and let the user determine the right course of action.
Better, I think, than for project deletion to start deleting things in other projects.

Gotcha, maybe add a pachctl test?


Feature/6529 check in selection in submission flow

Description
During Submission the User has to select the TraceLocations/Checkins that shall be submitted.
Link to Jira
https://jira-ibs.wbs.net.sap/browse/EXPOSUREAPP-6529
Screenshots

@marcussc Great work! And this on the weekend! 🚀 Thank you! ❤
One question:
Do we really want to use "in Ihrer Nähe waren" & "who checked in near you"?
All users who checked in will be warned, regardless if they were near me or not.
Pinging @janetback here 🙂

Hi @Ein-Tim - I was instructed to stick to the English text here ('near you'), but have already raised the issue and asked for this to be checked.

Thanks @janetback
Even if it doesn't get changed, here my suggestion:
"Warn others who checked in near you. Your personal data will not be shared."
to
"Warn others who checked in with you. Your personal data will not be shared."
&
"Skipping will not warn any contacts who checked-in near you."
to
"Skipping will not warn any contacts who checked in with you."
 Ihre Identität bleibt geheim."
 Ihre Identität bleibt geheim."

to
"Dadurch werden andere nicht gewarnt, die mit Ihnen eingecheckt waren."

We should have a consensus in the team how we want to write checkin ? checkIn orcheckin - currently we have a mixed bag in the code.

@KaiTeuber Yeah, I resolved your suggested changes regarding this Issue. @nickguendling and I aligned the naming with the Type Checkin


Make it easier to steal builds from other koji instances

The following can be used to take a koji build from a given koji instance and import it into the koji instance of osbs-box:
sudo docker exec -it osbsbox_koji-hub_1 \
  koji-steal-build  cockpit-0-5.f28container \
  --kojihub https://koji.fedoraproject.org/kojihub \
  --kojiroot https://kojipkgs.fedoraproject.org/

But to make the container image in the container registry used by osbs-box, you also need to run the following:
sudo ./osbs-box.py pull-image
  'candidate-registry.fedoraproject.org/f28/cockpit:0-5.f28container' \
  'f28/cockpit:0-5.f28container'

The metadata for the build however still points to the remote registry which doesn't really cause any problems AFAIK. It's just confusing.
osbs-box.py should provide a command the performs both operations above and update the build metadata to reference the container registry in osbs-box.

koji-steal-build should also owner user of build if needed. kojiadmin user should also be granted content generator access:
docker exec -it osbsbox_koji-hub_1 koji grant_cg_access kojiadmin atomic-reactor
docker exec -it osbsbox_koji-hub_1 koji add-user $BUILD_OWNER

This issue is obsolete (old version of osbs-box).
Making it easier to steal builds would still be desirable, but it remains to be seen if osbs-box will still be useful after the OSBS redesign.


Support multiple provisioning certificates per domain

Describe the feature 🚀
When we have multiple versions of AMT deployed from version 11 to 16, new provisioning certs can no longer be used to provision AMT 11. When trying to provision an AMT 11 device with the new certificate (that works for newer devices) the following error is reported:  "Invalid domain certificate, hash does not exists in list of trusted root certificates on AMT".
To address this, I propose allowing two certificates to be uploaded per domain. A certificate compatible with AMT 11 and earlier, and certificate for AMT 12 or higher.  A validation check should be performed upon upload (similar to expiration and password check) to ensure the certificate is compatible with the specified AMT version, rejecting if it doesn't pass.
In this way, there only remains one database entry for the domain, and multiple certificates would be stored in the vault/secret store that could be associated to the domain. The version of AMT would be checked upon provisioning, selecting the correct certificate for use for that specific AMT device, and if one doesn't exist would error out.

Discussed this with @mtpham123 and customers can request what is called a "hybrid" provisioning certificate from their CA.  This will link back to a different root certificate hash and will then pass the check by AMT.


Make AuthorAndDate component looks the same in all cases

this is a continuation of the previous discussion

http://localhost:8080/tip/1818

or even https://develop.aggregator.z52da5wt.xyz/tip/1818

I don't see specific need to have different display of this element in the case you describe above. For the nested comments/replies though I think that displaying the whole address with the same font-szie won't be proper (regarding the smaller space) so it should be modified either with decreasing the font-size or better in my opinion by cuting it with ellipsis.


Add 0-arity form of ssl-client-context

It is expected by other parts of the codebase. Fixes #299

Thanks.


Add a PaneButton to list of allowed widgets for NavigationPane

Is your feature request related to a problem?
I want to call a function when pressing a button in the NavigationPane. For example pressing Save, at the moment the button will just navigate to a new screen.

Describe the solution you'd like
Add a new type PaneButton to the list of allowed widgets for items and footerItems. When pressing this button a function will be called instead of navigating to a new page.
Describe alternatives you've considered
Add a commandBar, which can be changed based on the selectedTabIndex

Ah that's true. I can do some additional checks there. Thanks for the advice.
PaneButton was meant as a suggestion to make it more intuitive.


Why Different Virtual Environment version was used for same workflow

Description
I have an already running job that was executed on ubuntu-latest (by now ubuntu-18.04) with Virtual Environment Version: 20210111.1.
Next Action build was executed with the same ubuntu-18.04 but with Virtual Environment Version: 20201210.0.
I did nothing to select one or another.
Question, Bug, or Feature?:
The question is, how do I select or specify which environment version to run.
My workflow work with Virtual Environment Version: 20210111.1. since it has SAM CLI 1.15, but no with Virtual Environment Version: Version: 20201210.0 because it has SAM CLI 1.13.
Virtual environments affected

[ ] Ubuntu 16.04
[X] Ubuntu 18.04
[X] Ubuntu 20.04
[ ] macOS 10.15
[ ] macOS 11.0
[ ] Windows Server 2016 R2
[ ] Windows Server 2019

Expected behavior
To use the latest Virtual Environment Version or allow to specify which one to use.
Actual behavior
Don't know how the Virtual Environment Version is selected.
Repro steps
jobs:
    tests:
        runs-on: ubuntu-latest
        steps:
            - run: sam --version

As new versions are rolled out, it takes few days to completely update all runners with new build. It appears your builds happened on previous build and new build.
It's not possible to pin to specific build version of GitHub actions runner.

What image version is used in my build? Usually, image deployment takes 3-4 days, and documentation in the main branch is only updated when deployment is finished. To find out which image version and what software versions are used in a specific build, see Set up job (GitHub Actions) or Initialize job (Azure DevOps) step log.

As new versions are rolled out, it takes few days to completely update all runners with new build. It appears your builds happened on previous build and new build.
It's not possible to pin to specific build version of GitHub actions runner.

What image version is used in my build? Usually, image deployment takes 3-4 days, and documentation in the main branch is only updated when deployment is finished. To find out which image version and what software versions are used in a specific build, see Set up job (GitHub Actions) or Initialize job (Azure DevOps) step log.

Hello @sromano88-svc , unfortunately, it is not possible to specify exact image version for now.
The reason why your builds still assigned to 20201210.0 is that we are currently rolling back 20210111.1 image due to an issue with Android NDK. We are going to deploy the new image with SAM CLI 1.15 early next week.

Hello @sromano88-svc , unfortunately, it is not possible to specify exact image version for now.
The reason why your builds still assigned to 20201210.0 is that we are currently rolling back 20210111.1 image due to an issue with Android NDK. We are going to deploy the new image with SAM CLI 1.15 early next week.

This rollout strategy can cause problems when the installed software is updated. For example, on the macOS images, if the version of Cocoapods or Bundler are updated, then running bundle install or pod install causes a discrepancy in the *.lock file, depending on which VM the job happened to run on and the jobs can fail. I don't mind updating my local versions of these package managers when the VMs are updated, but it's the inconsistency that makes it hard to deal with. To deal with it, I can either reset the lock files occasionally during the jobs, or install the necessary version from scratch, which negates the benefits of the pre-installed software.
I would love if we could pin jobs to a specific build version, that would give us an easy way to work around issues like this.

This rollout strategy can cause problems when the installed software is updated. For example, on the macOS images, if the version of Cocoapods or Bundler are updated, then running bundle install or pod install causes a discrepancy in the *.lock file, depending on which VM the job happened to run on and the jobs can fail. I don't mind updating my local versions of these package managers when the VMs are updated, but it's the inconsistency that makes it hard to deal with. To deal with it, I can either reset the lock files occasionally during the jobs, or install the necessary version from scratch, which negates the benefits of the pre-installed software.
I would love if we could pin jobs to a specific build version, that would give us an easy way to work around issues like this.

The new set of images with SAM CLI 1.15 were deployed everywhere. Please let me know if you still experience the issue


IRGen: support static linking on Windows

Replace this paragraph with a description of your changes and rationale. Provide links to external references/discussions if appropriate.

Resolves SR-NNNN.

@swift-ci please test

Build failed
Swift Test Linux Platform
Git Sha - 8da2c377da29027c9d457a1341d02b46169c7fc9

Hmm, this might be mishandling C/C++ linkage.

Having this as a bit in the AST seems like a huge layering violation. A swiftmodule doesn't have to have anything to do with the final binary image on disk, and one could conceivably share a swiftmodule between a static archive and a dylib if they so choose.

@CodaFi nope, link time is too late.  This needs to be available before compiling.  We need to know at compile time if the module  is statically or dynamically linked.   I had brought up this idea at https://forums.swift.org/t/enabling-static-linking-on-windows/40509/10.  I'm open to another solution if you have one.

@swift-ci please test Linux platform

Discussed this with @compnerd further and there isn't really a good alternative either of us could identify. Approving so we can make progress here. The ABI isn't set in stone on Linux or Windows so we have the opportunity to amend this in the future if need be.


HuggingFace models cause ValueError: invalid name for text classification

Hi,
In the medium article written by yourself it says "Next, we must select one of the pretrained models from Hugging Face, which are all listed here". In the colab example, if you change the model to a Huggingface transformer eg 'distilbert-base-uncased' from the article or the HF page, the following error occurs:
import ktrain
from ktrain import text
MODEL_NAME = 'distilbert-base-uncased'
model = text.text_classifier(MODEL_NAME, (x_train, y_train),
                             preproc=preproc)
learner = ktrain.get_learner(model, train_data=(x_train, y_train), val_data=(x_test, y_test), batch_size=32)

---------------------------------------------------------------------------
ValueError                                Traceback (most recent call last)
<ipython-input-12-61fc86135b10> in <module>()
     10
     11 model = text.text_classifier(MODEL_NAME, (x_train, y_train),
---> 12                              preproc=preproc)
     13 learner = ktrain.get_learner(model, train_data=(x_train, y_train), val_data=(x_test, y_test), batch_size=32)

/usr/local/lib/python3.6/dist-packages/ktrain/text/models.py in text_classifier(name, train_data, preproc, multilabel, metrics, verbose)
    464     """
    465     if name not in TEXT_CLASSIFIERS:
--> 466         raise ValueError('invalid name for text classification: %s' % (name))
    467     if preproc is not None and not preproc.get_classes():
    468         raise ValueError('preproc.get_classes() is empty, but required for text classification')

ValueError: invalid name for text classification: distilbert-base-uncased

In text/models.py I see the following which don't include the ones mentioned in your article:
NBSVM = 'nbsvm'
FASTTEXT = 'fasttext'
LOGREG = 'logreg'
BIGRU = 'bigru'
STANDARD_GRU = 'standard_gru'
BERT = 'bert'
DISTILBERT = tpp.DISTILBERT
HUGGINGFACE_MODELS = [DISTILBERT]
LINREG = 'linreg'

How does one go about using the pretrained models from HF transformers? Are they still supported?
Thank you!
https://towardsdatascience.com/text-classification-with-hugging-face-transformers-in-tensorflow-2-without-tears-ee50e4f3e7ed

Hello,
It looks like you're mixing two different APIs in ktrain.
API 1
The text_classifier API (described in this tutorial) only supports the models listed (which includes both non-transformer models and a small set of transformer models).  The distilbert-base-uncased model is supported in this API (by supplying distilbert to text_classifier function in addition to the data-loading function.  See this notebook for how to use distilbert-base-uncased using this API.
API 2
The article you mentioned demonstrates the Transformer API in ktrain which allows you to use any transformers model for text classification.  Here is a self-contained example for how to use distilbert-base-uncased using the Transformer API (which is pretty much exactly what is also shown in the article):
# load text data
categories = ['alt.atheism', 'soc.religion.christian','comp.graphics', 'sci.med']
from sklearn.datasets import fetch_20newsgroups
train_b = fetch_20newsgroups(subset='train', categories=categories, shuffle=True)
test_b = fetch_20newsgroups(subset='test',categories=categories, shuffle=True)
(x_train, y_train) = (train_b.data, train_b.target)
(x_test, y_test) = (test_b.data, test_b.target)

# build, train, and validate model (Transformer is wrapper around transformers library)
import ktrain
from ktrain import text
MODEL_NAME = 'distilbert-base-uncased'
t = text.Transformer(MODEL_NAME, maxlen=500, class_names=train_b.target_names)
trn = t.preprocess_train(x_train, y_train)
val = t.preprocess_test(x_test, y_test)
model = t.get_classifier()
learner = ktrain.get_learner(model, train_data=trn, val_data=val, batch_size=6)
learner.fit_onecycle(5e-5, 1)
learner.validate(class_names=t.get_classes()) # class_names must be string values


Update README.md

multiple improvements to keep rust users available and not clog the turbine
efficiency should increase

Very good additons


CD mol2/pdb/sd files coordinates starting in the binding pocket

Fix #41.
I ended up implementing the file editing part myself because I was having trouble finding a library that supports file extensions and/or doesn't change atom names.
This is the script I used in case you want to review the exact procedure. I'm not sure if it can be useful to add it to a scripts/ folder in the repo.
#!/usr/bin/env python

import re
import os
import glob

import numpy
import mdtraj

def replace_positions(file_path, positions_in_angstroms):
    positions = positions_in_angstroms  # Shortcut

    # Load existing file.
    with open(file_path, 'r') as f:
        lines = f.readlines()

    pos_idx = 0
    found_atom_directive = False  # Used only for mol2 files.
    extension = os.path.splitext(file_path)[1][1:]

    # Modify positions.
    with open(file_path, 'w') as f:
        for line_idx, line in enumerate(lines):

            # PDB files
            if extension == 'pdb':
                if line[:4] == 'ATOM':
                    coordinates_str = ('{:8.3f}' * 3).format(*positions[pos_idx])
                    line = line[:30] + coordinates_str + line[54:]
                    pos_idx += 1

            # Mol2 files
            elif extension == 'mol2':
                if '@<TRIPOS>' in line:
                    if '@<TRIPOS>ATOM' in line:
                        found_atom_directive = True
                    else:
                        found_atom_directive = False
                elif found_atom_directive:
                    # Find all words separated by whitespaces and their indices.
                    words = [(m.group(0), (m.start(), m.end()-1)) for m in re.finditer(r'\S+', line)]
                    # The coordinates are the 3rd, 4th and 5th columns. Find number of
                    # character for each coordinate to maintain column alignments.
                    coordinates_columns_widths = [words[i][1][1] - words[i-1][1][1] for i in range(2, 5)]
                    coordinates_str = '{{:{}.4f}}{{:{}.4f}}{{:{}.4f}}'.format(*coordinates_columns_widths)
                    coordinates_str = coordinates_str.format(*positions[pos_idx])
                    line = line[:words[1][1][1]+1] + coordinates_str + line[words[5][1][0]-1:]
                    pos_idx += 1

            # SDF files
            elif extension == 'sd' or extension == 'sdf':
                if line_idx == 3:
                    n_atoms = int(line[:3])
                elif line_idx > 3 and pos_idx < n_atoms:
                    coordinates_str = ('{:10.4f}' * 3).format(*positions[pos_idx])
                    line = coordinates_str + line[30:]
                    pos_idx += 1

            else:
                raise RuntimeError('Unrecognized extension {}'.format(extension))

            # Write line with (eventually) replaced positions.
            f.write(line)
    # We should have replaced all positions.
    assert pos_idx == len(positions)

if __name__ == '__main__':
    data_dirs = os.path.join('input_files', 'cd-set*')

    for data_dir in glob.glob(data_dirs):
        pdb_dir = os.path.join(data_dir, 'pdb')
        amber_dir = os.path.join(data_dir, 'prmtop-rst7')

        old_receptor_file_path = ''

        # Loop over all system files.
        prmtop_file_paths = os.path.join(amber_dir, '*cd-*-s.prmtop')
        for prmtop_file_path in glob.glob(prmtop_file_paths):
            system_file_name = os.path.splitext(os.path.basename(prmtop_file_path))[0]
            print('Processing {}'.format(system_file_name))

            # Identify file paths to system positions, single host and single guest.
            rst_file_path = os.path.join(amber_dir, system_file_name + '.rst7')
            receptor_file_path = os.path.join(pdb_dir, 'host-' + system_file_name[:3] + '.pdb')
            ligand_id = system_file_name.split('-')[1]
            ligand_file_path = os.path.join(pdb_dir, 'guest-' + ligand_id + '.pdb')

            # Load receptor single molecule. The host won't change for the same cd set.
            if old_receptor_file_path != receptor_file_path:
                receptor_traj = mdtraj.load(receptor_file_path)

            # Load ligand single molecule.
            ligand_traj = mdtraj.load(ligand_file_path)

            # Load amber system and remove solvent/ions.
            system_topology = mdtraj.load_prmtop(prmtop_file_path)
            system_traj = mdtraj.load_restrt(rst_file_path, top=system_topology)
            system_traj.remove_solvent(inplace=True)
            system_topology = system_traj.topology

            # Create a Trajectory with both receptor and ligand.
            joined_topology = receptor_traj.topology.join(ligand_traj.topology)
            joined_coordinates = numpy.concatenate((receptor_traj.xyz[0], ligand_traj.xyz[0]), axis=0)
            joined_traj = mdtraj.Trajectory(joined_coordinates, joined_topology)

            # Make sure that we are setting the correct positions to the correct atoms.
            assert system_topology.n_atoms == joined_topology.n_atoms
            for a1, a2 in zip(system_topology.atoms, joined_topology.atoms):
                assert a1.name == a2.name

            # First align system receptor to single receptor.
            receptor_atom_indices = list(range(receptor_traj.n_atoms))
            system_traj.superpose(joined_traj, atom_indices=receptor_atom_indices, ref_atom_indices=receptor_atom_indices)

            # Then we align the single ligand to the system ligand.
            ligand_atom_indices = list(range(receptor_traj.n_atoms, joined_traj.n_atoms))
            joined_traj.superpose(system_traj, atom_indices=ligand_atom_indices, ref_atom_indices=ligand_atom_indices)

            # Replace positions in old files.
            positions_in_angstroms = joined_traj.xyz[0][ligand_atom_indices] * 10
            for extension in ['pdb', 'mol2', 'sd']:
                guest_file_path = os.path.join(data_dir, extension, 'guest-' + ligand_id + '.' + extension)
                assert os.path.exists(guest_file_path)
                replace_positions(guest_file_path, positions_in_angstroms)

So, just so I understand and for the record -- for some reason the PDB/mol2 files for the guests had the guest coordinates outside the binding site, whereas only the coordinate files had the guests in the binding site, so this would resolve the issue and make the coordinates for all files be consistent?
@nhenriksen  can you review?

@davidlmobley the PDB/mol2 files for the separate host and guests were originally intended to be stand alone, and required the user to generate bound conformations.  The prmtop/rst7 offered a plausible, solvated bound pose.  But I can see how this might not fit into some workflows, where the user might want a gas phase bound structure.
@andrrizzi You mentioned using an alignment step to match up the all the bound states, but there is still only host PDB/mol2 in the directory, correct? Did you do any checks to make sure there aren't residual steric overlaps when you load a given guest structure together with that particular host conformation?

make the coordinates for all files be consistent?

Almost. The positions between rst7 complex files and PDB/mol2/sd single-molecule files can't be the same because the rst7 files are taken after equilibration so the host positions are all different. Here I've changed the pdb/mol2 guests positions to be placed in the binding site of the pdb/mol2 host with a binding pose very similar to the one in rst7 files.

there is still only host PDB/mol2 in the directory, correct? Did you do any checks to make sure there aren't residual steric overlaps?

Correct. I checked for steric clashes by eye in PyMol and everything looked fine to me. I'll make my simulations start from these positions anyway, so I'll discover soon if there is anything problematic.


Add the changelog event for the new software installation page

See: https://docs.hpc.shef.ac.uk/en/latest/hpc/installing-software.html

Added in https://github.com/rcgsheffield/hpc-changelog/commit/7b769583ed5d9afe500cd75da68651de76476ff3


[DX] Copy over the project board to this new org.

Description
I created this new org (csdojo-defaang) to house all relevant projects here.
However, it seems like there's no easy way to copy a project board to an org.
So, we'll probably need to manually copy everything in this board to a new board here.

@subhoghoshX let me do that right now

Done: https://github.com/orgs/csdojo-defaang/projects/2/views/1

Would love to do that @ykdojo

@epicadidash thanks! I tried to add you as a collaborator on the project, but GitHub wasn't letting me for some reason.
@subhoghoshX I made you an admin - do you want to try adding @epicadidash on your end?

Thanks, @ykdojo. I don't appear to have any escalated access or access to any new tab or something.

I meant the project. There's no place to add a new collaborator there?

Ah, now I see. But no worries, I just moved the projects myself.

Thank you so much @subhoghoshX!


Using the Navigation mixin in a Flux architecture versus the removed Router transition methods

I'm having trouble seeing how replacing the functions Router.transitionTo, replaceWith, and goBack with the Navigation mixin is compatible with a Flux architecture. Let's say I have a component that creates a new post. I hit the create button and a component responds by firing off an action. In 0.7.x or before, I'd use Router.transitionTo in either the action or store layers when the action was successful. In 0.9.x and beyond, a component needs to do this. How should the component know to make the transition?
One solution would be to pass the actions all the way through so the component knows what to do. Another solution would be to provide a callback from the component when the action is created that would be called when the transition should happen. Yet another would be to have some special store state that the component would read to trigger the transition, and then immediately reset that state. None of these solutions seem particularly elegant or fluxy to me, but I'd be interested in hearing any recommendations. A callback is probably my favorite of the three but it feels like a reversal of data flow - Flux heresy?

I guess I can speak briefly to this. All the flux demos I've seen do data fetching in componentDidMount of a component. If some higher level component is already mounted, and the route changes, and the component is still active, componentWillReceiveProps will be called, but componentDidMount will not, and so it's not going to refetch the data

@rpflorence
What's your recommendation in this context?

@Atu Did you solve your issue? I've run into exactly the same thing using rpflorence's given code.

@JoelOtter I use this:
'use strict';

var router;

// Here's the trick: assign to module.exports before any require()s
module.exports = {
  getCurrentPath() {
    return router.getCurrentPath();
  },

  makePath(to, params, query) {
    return router.makePath(to, params, query);
  },

  makeHref(to, params, query) {
    return router.makeHref(to, params, query);
  },

  transitionTo(to, params, query) {
    router.transitionTo(to, params, query);
  },

  replaceWith(to, params, query) {
    router.replaceWith(to, params, query);
  },

  goBack() {
    router.goBack();
  },

  run(render) {
    router.run(render);
  }
};

var routes = require('./routes'),
    Router = require('react-router');

router = Router.create({
  routes: routes,
  location: Router.HistoryLocation
});

@gaearon - Brilliant, thank you.

@gaearon - nice, thanks!

@gaearon what is the name of the file you are creating there and what does it do? Could you put it in your flux docs now that you are a contributor (as of today)? Our team now has two solutions one of which involves nested routing and a lot of {...routerState} param passing (which makes the react dev tool not very neat and tidy) and another that uses a routeStore which is apparently not the way y'all do it (although it feels like the most elegant option to me).

what is the name of the file you are creating there and what does it do?

I call it router.js. It just proxies calls to the real router instance, but unlike the real instance, it is available as module.exports right away, so action creators can require it without a problem.
Should we document this @ryanflorence? I understand we want #755 to fix this.

Keep working on #755 because that is the bigger issue.  I will see if I can get by without this for now.

@gaearon sure, we can add it to the flux.md

@ryanflorence https://github.com/rackt/react-router/pull/769

@gaearon I tried your solution but router.getCurrentPath() for example does not work for me. Only the Navigation methods seem to work.

It probably changed to getPath in 0.12. If it works, can you please amend the docs?

It does not work with getPath() either. Only the Navigation Mixin functions seem to work with that solution but not the State Mixin functions.

@gaearon these are the functions/props we have access to:
childContextTypes
recordScrollPosition
getScrollPosition
displayName
isRunning
cancelPendingTransition
clearAllRoutes
addRoutes
replaceRoutes
match
makePath
makeHref
transitionTo
replaceWith
goBack
handleAbort
handleError
handleLocationChange
dispatch
run
refresh
stop
propTypes
isReactLegacyFactory
type

@moklick
You're right. This method no longer works (it worked when router was an actual instance, I copied this code from pre-0.12 times). I removed it from docs: https://github.com/rackt/react-router/commit/d03b968ef4b52a489cbb2830ab716acb8d9f118e
Instead, to access current path from somewhere other than component, have your own custom action and store: https://github.com/rackt/react-router/blob/master/docs/guides/flux.md#accessing-route-and-params-from-action-creators

@gaearon Awesome! Thanks!

https://github.com/rackt/react-router/blob/master/docs/guides/flux.md no longer exists. Is there an updated version somewhere?

@gaearon Do you have this documentation link working somewhere? Is 404 now
https://github.com/rackt/react-router/blob/master/docs/guides/flux.md#accessing-route-and-params-from-action-creators

I don't know if this is guide is still relevant but you can access an old version here: https://github.com/rackt/react-router/blob/d03b968ef4b52a489cbb2830ab716acb8d9f118e/docs/guides/flux.md

What's the preferred way to access the router from an action creator in 1.0?

I'm curious how this is done as well. Seems like the only way to access the router is via mixins/props now.

What's the preferred way to access the router from an action creator in 1.0?

https://github.com/rackt/react-router/blob/master/docs/advanced/NavigatingOutsideOfComponents.md

None of the upper links works now. Here is the proper link to the guide:
https://github.com/rackt/react-router/blob/master/docs/guides/advanced/NavigatingOutsideOfComponents.md

man they just keep changing it heres the new one
https://github.com/reactjs/react-router/blob/master/docs/guides/NavigatingOutsideOfComponents.md

@ryanflorence How can i add dynamic route with component. Assuming i have 'Page2' as component but want to load it dynamically without defining it very first time. But on some event i would like to add this route entry and it should render my component. Is it possible to add following entry dynamically?


feat: port Data.Polynomial.Eval

[ ] depends on: #2628
[ ] depends on: #2631

This PR/issue depends on:

leanprover-community/mathlib4#2628
leanprover-community/mathlib4#2631
By Dependent Issues (🤖). Happy coding!

This PR/issue depends on:

leanprover-community/mathlib4#2628
leanprover-community/mathlib4#2631
By Dependent Issues (🤖). Happy coding!

bors merge


Can't get Nimble's bleprph work with security features (IDFGH-10835)

Answers checklist.

[X] I have read the documentation ESP-IDF Programming Guide and the issue is not addressed there.
[X] I have updated my IDF branch (master or release) to the latest version and checked that the issue is present there.
[X] I have searched the issue tracker for a similar issue and not found a similar issue.

General issue report
Hi,
I'm using esp32c3, with esp-idf v4.4.2 in ubuntu 20.04.
I selected bonding, MITM security and use secure connection in menuconfig.
When I connect it with my phone, I see this:
NimBLE:  conn_itvl=36 conn_latency=0 supervision_timeout=500 encrypted=0 authenticated=0 bonded=0
Seems none of my settings take effect?
I also checked ble_hs_cfg in the code, seems it's not used.
I have no idea what's going on, please help.
By the way, I tried it with esp-idf v5.1, it have this error:
NimBLE: error setting advertisement data; rc=8
I can't continue without get this fixed, so I skipped it.

Hi @zzzh ,
We tried to reproduce this issue but it working fine at our end. Mentioned log
 NimBLE: conn_itvl=36 conn_latency=0 supervision_timeout=500 encrypted=0 authenticated=0 bonded=0  is correct.
Once you pair your device you will see encrypted =1 and bonded =1 in the log. Also, bond,mitm, and sc flags of ble_hs_cfg are set to 1 (after doing changes from menuconfig/sdkconfig). Below are the references.

nRf-Log.txt
To get more about your issue can you share the following things :

Complete Console logs.
What exact failure you are observing or not working.
sdkconfig

Hi, @ESPAbhinav ,
Thanks for your quick respond.
I thought it would require the phone side to bond, and I don't understand why ble_hs_cfg is not used.
So, how to require bond from nimble side?

Hi , @zzzh,
The bonding process will only occur if you have enabled the flag CONFIG_EXAMPLE_BONDING in sdkconfig/menuconfig.
Enabling the CONFIG_EXAMPLE_BONDING  flag ensures that the nimble stack will automatically save the generated link key and bonding occurs.

Hi, @ESPAbhinav,
I did enable the flag CONFIG_EXAMPLE_BONDING in sdkconfig/menuconfig, I just hope to require bond from nimble side.
That is: at phone side, when connect to the nimble device, it's reminded to bond to it.

Hi, @zzzh,
Just to clarify, bonding and pairing are two different operations in BLE. Pairing usually implies the process of generating keys and bonding implies storage and distributing the keys. My previous answers are based on the above difference.
But I believe you are referring to initiating pairing. So there are two ways to do this.

We are in slave role and master ( nrf ) is initiating the connection. So , usually pairing is initiated by central device.  To perform this operation from Phone side.

Connect with bleprph from the nRF app.
There you will get the option of "bond" in the 3 dots menu. Below is a reference.
If you click on bond then you will be reminded of the pairing request. Accept it and pairing will occur.

8e1

9)

You want to perform pairing which is initiated from nimble device side using the bleprph demo example. You can achieve this by below steps

Connect with bleprph from the nRF app.
Read LE encrypted characteristic and you will be reminded for pairing request. Accept it and pairing will occur.
Below is the reference.

Hi, @ESPAbhinav,
As I know, slave can require to  bond,  I remember blueroid have a command which can do this, seems nimble just don't have such command.
The second way you recommended looks good, I'll try it.
Thank you so much for the help and detailed explanation.


What is the difference between this repo and apache/incubator-teaclave?

Hi I am new to Teaclave. I found two repos about Teaclave, one is this repo, and the another is https://github.com/apache/incubator-teaclave. I am confused by their difference. It seems that the site https://teaclave.apache.org/ only introduces the latter and does not contain instructions on this repo?
Thanks!

Teaclave has several subprojects:

Teaclave: a FaaS confidential computing framework
Teaclave SGX SDK: a Rust SDK for developing SGX apps
Teaclave TrustZone SDK: a Rust SDK for developing TrustZone apps

The homepage contains information (SDK introductions, docs, API docs) of these three projects.

Thanks for your amazing fast reply!


binder down?

The problem
binder link from https://pyinaturalist.readthedocs.io/en/latest/examples/Data Visualizations - Matplotlib.html cooks a while, then returns a 404
Expected behavior
i expected a live notebook
Environment
PC, Firefox

Thanks for the heads up. I may need to update the Docker image used for that. I should have time to look into that sometime this week.

Thanks for the heads up. I may need to update the Docker image used for that. I should have time to look into that sometime this week.

I rebuilt the image and fixed some dependency issues. It seems like the format for direct notebook links may have changed, but you should still be able to navigate there from here: https://mybinder.org/v2/gh/pyinat/pyinaturalist/main


[Bug]: Issue with meta.message when a null prototype object is passed

🔎 Search Terms
null prototype, meta.message
The problem
If we pass an object without a toString function as meta.message to a logger expression, because of the current implementation, it raises an error. This happens if, for example, the object is a null prototype one:
const obj = Object.create(null);

someLogger.info('This will not work', { message: obj });

// It throws the following issue:
// TypeError: Cannot convert object to primitive value

The error happens because js tries to implicitly coerce the passed object to string, but it cannot.
https://github.com/winstonjs/winston/blob/6b1c7618e8265007b4875e4982881ff8e8cc5733/lib/winston/logger.js#L249
It can simply get fixed this way:
 if (meta.message) info.message = `${info.message} ${JSON.stringify(meta.message)}`;

What version of Winston presents the issue?
v3.8.2
What version of Node are you using?
v16.15.0
If this worked in a previous version of Winston, which was it?
No response
Minimum Working Example
No response
Additional information
No response

Thanks for the report!  I think there are a few more wrinkles than that, to use safe-stable-stringify to avoid issues with self-referential looping objects etc., but hopefully someone with more time than I will come along to turn this into a fix.


create-image-surface-for-array, image-surface-create-from-png-callback and image-surface-create-from-png-stream

I added three functions, I found useful:

create-image-surface-for-array
image-surface-create-from-png-callback
image-surface-create-from-png-stream

Just following up to make everyone 100% aware, the license has changed to BOOST (BSD-variant).  All previous contributors have given approval, but if you have not/do not and I have merged your contribution, please let me know so it can be reversed.  Thanks,

I agree with the relicensing of my contribution.

Thanks!


[Bug]: Status 500 error using Filter Nomenclature

Steps to reproduce the bug
1.In Psocodea SF, entered Neostenopsocus under Taxon Name
2.Included descendents
3.Selected Without Combinations
5.Hit Filter
6.Got Status 500

NB: when I did same filter but With Combinations it worked fine.
...

Screenshot

Expected behavior
Thought it would list results, or return no results if none.
Additional Screenshots
No response
Environment
Production
Sandbox Used
No response
Version
44.3
Browser Used
Chrome

Thank you!


Valve changed methodnames

Uncaught TypeError: enemy.m_Sprite.click is not a function
at ClickAttack.attack (userscript.html?id=:285)

It got changed to pointertap
You can view recent changes made here;
https://github.com/SteamDatabase/SteamTracking/commit/f97492d31a9f415870bf088c0a7c9aa0c2718f55
https://github.com/SteamDatabase/SteamTracking/commit/93894e71064e9f41c22622f111f0e535fe1fa5ef

Same issue. Changing enemy.m_Sprite.click to enemy.m_Sprite.pointertap (line281) and child.click to child.pointertap (lines 84 and 94) seems to resolve the issue. The other "click" functions have to remain click.

change the line from  enemy.m_Sprite.click(); to  enemy.m_Sprite.pointertap(); and the script will work

Probably trolling


SuperH add support for SHAD instruction

I am reversing firmware that uses the SH7706 processer (SH3).  The current SuperH handling does a fantastic job of disassembling and decompiling, so thank you!
There is one operation that happens a lot in my project and it would be great if it could be supported.
Here are some examples of it (they are all the same, just different registers)
8c3db708 41              ??         41h    A
8c3db709 2c              ??         2Ch    ,

8c3f4bd2 41              ??         41h    A
8c3f4bd3 4c              ??         4Ch    L

8c40dc14 42              ??         42h    B
8c40dc15 1c              ??         1Ch

8c3cfaba 45              ??         45h    E
8c3cfabb 1c              ??         1Ch

8c443098 48              ??         48h    H
8c443099 1c              ??         1Ch

8c3f519e 49              ??         49h    I
8c3f519f 1c              ??         1Ch

8c3f4c46 4c              ??         4Ch    L
8c3f4c47 4c              ??         4Ch    L

According to the software manual for the 7706, they map to this:

SHAD Rm, Rn -- 0100nnnnmmmm1100

Having this implemented would allow the decompiler to handle functions which use it.
One other thing I noticed and I'm wondering if it can be improved, NOPs used for padding/alignment don't get picked up when analyzing a lot of the time, so I see a lot of bare 00 09s in the disassembly.  It's very simple to do a 'd' on those, but there are literally thousands of them.

be sure you're not choosing SH-1 or SH-2 as the language when you import the binary, it looks like shad should be supported with SH-2A or SuperH4

Thanks for the tip.  I did choose SH-2 I think back when I was using a separate plugin for doing this as it now seems to be merged into Ghidra proper.
I can't do a re-import as I've spent over a year reversing this binary and have had to do a lot to it like comments, marking functions/code, fixing up analysis, and patches I've applied.  Unless all of that could be preserved, I can't re-import.
Is there a way to switch to SH-2A or SuperH4 without re-importing?  Or alternatively, could in my copy of Ghirda add support for that instruction for whatever SuperH I chose when importing?

In the project window, you can right click your file and select 'Set Language', which should bring up a prompt to change to SH-2A.  Hopefully that works.
I would make a back up just in case first (you'll get a pop-up warning the same thing).

Hi, that seemed to work, thank you.  I saw some pcode error when re-diassembling, but from what I can tell all of my changes are still intact.


Add commas to !staff and !hire messages quantities

@ScottLilly
Would this work?
float num = 23658; // for example
num = num.ToString("N0"); // Returns 23,658

Yup. That's probably going to be the first issue I work on Tuesday. It's a nice easy warm-up task.


Fixes #88, use imeyer's packagecloud repo for RHEL

This is a potentially backwards incompatible change. I don't have any RHEL systems that use runit to test existing package, or anything that tests the yum attribute that was changed.

Change the "use_package_from_yum" attribute to "prefer_local_yum" to clarify intent. The default value will be set to the old attribute to attempt to preserve compatibility and default to false otherwise
Update the metadata and Cheffile to remove cookbooks that are not
necessary;
Remove the runit tar.gz
Update the readme
Remove build-from-source portion of readme, and prefer packagecloud,
as it's the same package anyway

@slyness @imeyer

I am just giving my :shipit: as though it matters.


[BUG] Events import failed after updating to v2.6

What is the bug?
I have a project with a folder named events and after updating the opensearch-py from 2.5 to 2.6, where the service time metrics was added, I'm receiving the error below because python tries to import the Events from my project's home directory and not from the Events lib.
As events is a common name for folders and it might cause some trouble with other people too, do you have any suggestion for fixing this issue without renaming my project's folder to another name?
 File "/home/[redacted]/venv/lib/python3.11/site-packages/opensearchpy/metrics/metrics_events.py", line 13, in <module>
    from events import Events
ImportError: cannot import name 'Events' from 'events'

How can one reproduce the bug?
Add a folder events to your project and them call from opensearchpy import OpenSearch
What is your host/environment?
python3.11 + ubuntu 20 + opensearch 2.6

Should it be importing from the lib? Is this something we can/need to change in the library? If you know how, please PR?

Yep, we are hitting this issue too. We have an events folder and get the same error when we try to update to 2.6

@fnitsche, @julianogv, would you be interested in contributing a fix for this issue? Thanks!


Inbound to Carrier Vocalization

When calling inbound to a carrier, the voice only reads off the numeric values for vector, distance, altitude and fuel. It does not use the full text which is displayed when the inbound is called (or when using the comms menu to announce inbound).
This issue was around in previous builds.

Are you speaking of the pilot voice when it makes the call? Have you tested this without vaicom to see if the behavior is different?

So when you are flying to a carrier and you use either "inbound" or "carrier inbound" you hear the pilot's voice read the whole message? I don't. It's a different sounding message and he just reads the numerical values. All other communications are fine and it has a different pilot voice. I made a video and will get it uploaded to YouTube to show what I hear.
It has always been like this for me and it appears to ONLY be for the initial call to the carrier.

So when you are flying to a carrier and you use either "inbound" or "carrier inbound" you hear the pilot's voice read the whole message? I don't. It's a different sounding message and he just reads the numerical values. All other communications are fine and it has a different pilot voice. I made a video and will get it uploaded to YouTube to show what I hear. It has always been like this for me and it appears to ONLY be for the initial call to the carrier.

Yes I use "inbound for carrier" and it reads the whole text script. I tested it a few times to be sure in different aircraft I never had an instance where it only read off numbers. It sounds like its possibly your settings or configuration as I still am unable to reproduce.

I recorded a video of what I experience. Please review the following. I have heard it like this for others as well. I am using a full repair of DCS plus the latest community Vaicom. I did copy my profile over.. Notice that the pilot voice sounds different from when I say See You At 10.
https://youtu.be/IUJjo2lSgYQ

I still cannot reproduce this

I still cannot reproduce this. Can you share your vaicom configuration and vaicom and dcs logs when you try?

I have this same behavior.
Onscreen text is: "Marshal, 301, Marking mom's 313 for 50, angles 10, state 5.6"
Pilot voice says (in default ai voice, not normal carrier ai voice): "301 313 50 10 5.6"
Secondary issue:
After ATC gives marshaling instructions, the pilot readback is bugged (this time it is wrong in the on screen text, too).
If ATC says: "305, rough rider marshal, CASE II recovery, CV-1 approach, expected BRC 308, altimeter is 29.93, 305, Marshal mothers's 128 radial, 23 DME, angles 8, expected approach time is 26"
The pilot readback is (always, regardless of specifics in ATC instructions): "305, DME, angels 10, expected approach time is 0, approach buttion is 15"
I have a second system without Vaicom installed and the pilot readback is correct and matches the specifics of the ATC instructions.
Happy to provide logs and config if you let me know which specific files you need.

Yes logs both dcs and vaicom would be useful, as well as steps to reproduce (mission/aircraft etc)
Additionally if you could share your vaicom configuration settings pages.

VAICOMPRO.log
dcs.log
Let me know if you need any other logs.  These were taking in the PG CASE II recovery mission in the F/A-18C, however the behavior is consistent regardless of map or mission (the only carrier capable a/c I have is the 18).    I made one call using the menu, cancelled the inbound, then made another call using VA.
On a side note, I reset all of the viacom settings, profile and lua options, removed all my mods, did a full repair on DCS.  I loaded into DCS (without launching voiceattack) and the pilot readback response was normal.   I shut down, started voiceattack, and then launched DCS.  The issues reappeared.

 VAICOMPRO.log dcs.log
Let me know if you need any other logs. These were taking in the PG CASE II recovery mission in the F/A-18C, however the behavior is consistent regardless of map or mission (the only carrier capable a/c I have is the 18). I made one call using the menu, cancelled the inbound, then made another call using VA.
On a side note, I reset all of the viacom settings, profile and lua options, removed all my mods, did a full repair on DCS. I loaded into DCS (without launching voiceattack) and the pilot readback response was normal. I shut down, started voiceattack, and then launched DCS. The issues reappeared.

You should have extended command at least enabled for instance, but I would also like to see your other tabs as well for settings.

Here's my current settings.  Mostly default except extended commands, the open beta flag and the auto import settings.
I have tried with every combination I can think of, including a fresh install of vaicom on another machine with all settings default and see the same behavior.
This is by no means a blocking issue.  Just a bit immersion breaking.

Here's my current settings. Mostly default except extended commands, the open beta flag and the auto import settings.
I have tried with every combination I can think of, including a fresh install of vaicom on another machine with all settings default and see the same behavior.
This is by no means a blocking issue. Just a bit immersion breaking.

First thing, check your DCS hook. Also you do not have the AIRIO DLL in the proper place. You need all the dlls for the community version

I'll throw the AIRIO and chatter DLL's back in their folder.  I had pulled them out when I was doing this last reinstall attempt since I don't fly the F14 (I though AIRIO only applied to that module), and I don't intend to use chatter.
Being relatively new to vaicom, how would I check the DCS hook outside of resetting the lua (which I've done).?

I'll throw the AIRIO and chatter DLL's back in their folder. I had pulled them out when I was doing this last reinstall attempt since I don't fly the F14 (I though AIRIO only applied to that module), and I don't intend to use chatter.
Being relatively new to vaicom, how would I check the DCS hook outside of resetting the lua (which I've done).?

Just do a full rehook of DCS. Click fix reg, adjust sliders, and hit set and find your DCS path and if its not the default path you need to check the set custom path box.

Sorry, I was away for two weeks..
So, I am still having this issue but I haven’t taken any additional steps yet. How do I go about a full fresh reset of Viacom Pro? I have logs and screenshots which I can send you but I don’t know if it’s worth while. I am happy to just blast everything away. I already did a full repair of DCS previously but I can do this again if needed.

On Nov 14, 2022, at 9:50 AM, Ryan Callaway @.***> wrote:
I'll throw the AIRIO and chatter DLL's back in their folder. I had pulled them out when I was doing this last reinstall attempt since I don't fly the F14 (I though AIRIO only applied to that module), and I don't intend to use chatter.
Being relatively new to vaicom, how would I check the DCS hook outside of resetting the lua (which I've done).?
Just do a full rehook of DCS. Click fix reg, adjust sliders, and hit set and find your DCS path and if its not the default path you need to check the set custom path box.
—
Reply to this email directly, view it on GitHub https://github.com/Penecruz/VAICOMPRO-Community/issues/21#issuecomment-1313873595, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKRBEDIEHJZODYERV7ORV3TWIJGT7ANCNFSM6AAAAAARWJT5YQ.
You are receiving this because you authored the thread.

Did you resolve this issue? I can't reproduce. It does sound like a hooking/configuration issue.

This has not been resolved. I have performed an uninstall of VaicomPro (a few times) and also a full cleanup of DCS. I still hear the same numerical readout when calling inbound to the carrier. All other communications with the carrier are fine.
There are several others who have reported this same issue.

Can you see if this is still an issue on the latest release?

Hi! Unfortunately this is still an issue.

On Jul 9, 2023, at 11:25 AM, Ryan Callaway @.***> wrote:
Can you see if this is still an issue on the latest release?
—
Reply to this email directly, view it on GitHub https://github.com/Penecruz/VAICOMPRO-Community/issues/21#issuecomment-1627747209, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKRBEDIDPZA5NPESY7AP323XPLEQJANCNFSM6AAAAAARWJT5YQ.
You are receiving this because you authored the thread.

I still cannot reproduce it on the latest version. You have the latest VAICOM installed?

Yes. I actually did a full system rebuild with a fresh Windows 11 install (was Windows 10 before). Fresh install of DCS, voice attack and Vaicom (several months ago) and this issue persisted (so a full new install of everything on new hardware). I upgraded Vaicom today and did a quick mission for the f-18 CASE I landing and it happened. No clue why yours works and mine (and other players) doesn’t. On Jul 10, 2023, at 19:09, Ryan Callaway @.***> wrote:
I still cannot reproduce it on the latest version. You have the latest VAICOM installed?
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.***>

Also just tested it in the F18 with no issues, it sounds like a hooking issue somewhere.

I have thrown this to the team to test on the latest beta we will see if anyone can reproduce the issue

I finally got it to do what you say, only reading back the numbers in voice

I still can't reproduce this. Is it a DCS setting issue?

I had this issue too. Just in case someone stumbles on this thread, resetting the Lua code from the last tab (Reset) in the VAICOMPRO control panel fixed it for me. I now get full readback (Marshall, marking mom's etc), not only numbers.


feat(storage): set annotations for backend

See https://github.com/opiproject/opi-api/issues/198 and AIP-203
First, let's try to discuss where we are going to keep functionality to connect to local Nvme PCIe drives for JBOF case, since it would affect how to annotate the fields properly. I see an empty separate backend_nvme_pcie.proto, but also I see NVME_TRANSPORT_PCIE enum value in NvmeTransportType in backend_nvme_tcp.proto file, which might imply reuse of the service for PCIe.
Some assumptions/considerations in the first patch:

Assumed we can reuse NvmeRemoteControllerService for PCIe
FabricsPath message was created, which is part of NvmePath. It allows to annotate some fields as REQUIRED for Nvme over fabrics transport types and have more consistent API. Otherwise, we need to keep them OPTIONAL, since we can use the same API to connect to local PCIe.
TcpController was created to be consistent with previous item and isolate TCP related optional parameters. This message is a part of NvmeRemoteController.

the annotations looks ok, but creating new message TcpController should be discussed and in a separate PR

ok, I can remove TcpController for a while.
However, I want we all to agree on where we want to keep pcie related part: in the existing NvmeRemoteControllerService service or in a dedicated one within backend_nvme_pcie.proto
@jainvipin  @sburla-marvell @GottliebNoam?


ERROR Could not open/create prefs root node Software\JavaSoft\Prefs

C:\Users\pc\Downloads>java -jar WurstSetup.jar
2018-10-17 11:15:18 [main] INFO  file.SetupApp - is GUI launch
2018-10-17 11:15:18 [main] INFO  file.SetupApp - startup setup version: <<IP_ADDRESS>-jenkins-WurstSetup-72>
2018-10-17 11:15:18 [main] INFO  global.InstallationManager - verify Install
2018-10-17 11:15:18 [main] INFO  file.SetupApp - path: file:/C:/Users/pc/Downloads/WurstSetup.jar
2018-10-17 11:15:18 [main] INFO  file.SetupApp - file: C:\Users\pc\Downloads\WurstSetup.jar
2018-10-17 11:15:18 [main] INFO  file.SetupApp - copy jar
2018-10-17 11:15:19 [AWT-EventQueue-0] INFO  ui.MainWindow - init UI
Okt. 17, 2018 11:15:20 VORM. java.util.prefs.WindowsPreferences <init>
WARNING: Could not open/create prefs root node Software\JavaSoft\Prefs at root 0x80000002. Windows RegCreateKeyEx(...) returned error code 5.
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by global.WinRegistry (file:/C:/Users/pc/Downloads/WurstSetup.jar) to method java.util.prefs.WindowsPreferences.WindowsRegOpenKey(int,byte[],int)
WARNING: Please consider reporting this to the maintainers of global.WinRegistry
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
java.lang.IllegalArgumentException: input == null!
        at java.desktop/javax.imageio.ImageIO.read(Unknown Source)
        at ui.UiManager$initUI$1.run(UiManager.kt:15)
        at java.desktop/java.awt.event.InvocationEvent.dispatch(Unknown Source)
        at java.desktop/java.awt.EventQueue.dispatchEventImpl(Unknown Source)
        at java.desktop/java.awt.EventQueue.access$600(Unknown Source)
        at java.desktop/java.awt.EventQueue$4.run(Unknown Source)
        at java.desktop/java.awt.EventQueue$4.run(Unknown Source)
        at java.base/java.security.AccessController.doPrivileged(Native Method)
        at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
        at java.desktop/java.awt.EventQueue.dispatchEvent(Unknown Source)
        at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
        at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)

No, I DONT want to run it with admin rights.
java 10.0.2 2018-07-17

Java 9 and up are not supported yet.

nvm, it works on other machines with java 9+

No, I DONT want to run it with admin rights.

And why?
It would verify if the problem is caused by missing permissions.
The setup only reads your wc3 game path.

yeah I realized that it launches fine afterwards, btw on win10 maybe the registry is different

No, it was code left behind which didn't throw warnings on java 8, but do now.
I will push a big update to setup soon which will address both of them.
Thanks again 😃


How to get CSV snapshots

Required Info

Camera Model
D415

Firmware Version
<IP_ADDRESS>48

Operating System & Version
Windows 11

Hi Everyone
I'm really new to using the D415, and have no programming experience so am struggling.
What I'm trying to do

Take still images of people's face and generate a depth map
Have the depth map represented as a CSV file (or equivalent) that  can be used for analysis of the facial contours

From reading the posts, it seems this I can do this by

Taking a "snapshot" in the 2D mode of the Realsense viewer (using the stereoscoping stream) - this exports to a .raw file
Use a script to get the depth data from each pixel - as described here: https://github.com/IntelRealSense/librealsense/issues/2200
however, what I need help understanding is

What programming language is needed to extract the depth data for each pixel (e.g. in the link above, what language is used)?
How is the depth data represented?
how can i get it into a CSV format?

Thank you very much!
Sing

Hi @singchee  If you are using the RealSense Viewer's 'Snapshot' feature to capture the depth stream then you should not need to convert a raw file to .csv as the Snapshot already exports a .csv file as part of the three file types that it creates (.png, .raw and .csv).
The .csv file's icon's appearance will depend on which program your computer is currently set to open .csv files, though you can tell which of the three exported files is a .csv from "csv" on the end of its filename.

If you wish to explore how to export a .csv then a modification of the RealSense SDK's C++ rs-capture example program at the link below that was created by a RealSense team member that exports data to .csv may be a helpful programming reference.
https://github.com/dorodnic/librealsense/tree/text_sample/examples/capture
https://github.com/dorodnic/librealsense/blob/text_sample/examples/capture/rs-capture.cpp
In regard to how depth data is represented, it is a set of coordinates with a numeric value in meters that represents the distance of a particular coordinate on the depth image from the camera.   For example, 50 cm from the camera would be '0.5' meters.

Thanks Marty, yes agree the .CSV with the export function is very limited.
Is there a guide on how to extract depth data from the raw file? The links provided above are extracting data from the feed.
Thanks again!

There is a recent discussion at the link below regarding reading depth data from a .raw file.
https://support.intelrealsense.com/hc/en-us/community/posts/11024587584915-How-to-get-the-depth-information-from-raw-file-python-
In regard to RealSense .ply point cloud files, you can import them into other software tools such as MeshLab or into specialized pointcloud libraries such as PCL in order to do further work with them , but it is not practical to load them back into the RealSense SDK directly.
https://www.andreasjakl.com/capturing-3d-point-cloud-intel-realsense-converting-mesh-meshlab/
If you wanted to capture a single-frame snapshot that preserves the depth data perfectly in a format that can be directly read by an SDK script as though it were live camera data then you could use a script with the save_single_frameset() instruction to save a single depth frame to a bag format file.  The link below has a complete Python script that demonstrates this function.
https://github.com/soarwing52/RealsensePython/blob/master/separate functions/single_frameset.py

Hi @singchee  Do you require further assistance with this case, please?  Thanks!

Case closed due to no further comments received.


Missing sample for CalendarDatePicker

There is no sample project covering the CalendarDatePicker  control, it should be added at least to the XamlUIBasics project.
See this page covering date and time pickers.

Yup, finally got added, in the May 2017 Update 2.


Single qubit clifford XZ decomposition is missing two Cliffords

Description of the issue
See title
How to reproduce the issue
import cirq.experiments.qubit_characterizations as ceqc
print(len(ceqc._single_qubit_cliffords().c1_in_xz))  # should be 24, but is 22

Cirq version
0.9.0.dev

In addition, is possible to change the XZ decomposition to use ZXZ instead of XZX so that each clifford has at most 1 microwave gate?


add search

[!WARNING]
This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

Current dependencies on/for this PR:

main

PR #4

PR #5

PR #6   👈

This stack of pull requests is managed by Graphite.


Right Menu Edit

Description of the new feature / enhancement
I'm always bothered by some right menu items appearing in my computer and I want to edit it with a tool that is reliable.
I'll be glad if PowerToys can implement this! :D
Scenario when this would be used?
Editing the right menu (on specific file types and on folders, and the background of the file explorer)
Supporting information
No response

/dup #33


separate projects for Plot and InteractivePlot?

consideration
ScottPlot is currently 1 project with 3 major classes:

ScottPlot.Plot (class library) for creating plots as Bitmaps
ScottPlot.ScottPlotUC (winForms user control) for mouse-interactive display
ScottPlot.ScottPlotWPF (WPF user control) for mouse-interactive display

There may be a case to restructure as 3 projects, each with 1 major class:

ScottPlot.Plot
ScottPlot.Winforms.InteractivePlot
ScottPlot.WPF.InteractivePlot

This would mean 3 packages are distributed on NuGet, with the user control packages listing the primary package as a dependency.
pros and cons
The advantage of separating these into multiple projects is that GUI and framework-specific dependencies (used by the user controls) wouldn't pollute the core ScottPlot library (which might be run from console applications).
The disadvantage of separating these into multiple projects is... added complexity, compiles to multiple DLLs, Multiple NuGet packages are required, users may be confused about which package to get, you can be clever by naming both user controls "InteractivePlot" but what if the user wants to install both?

After trying it a few different ways I decided I'm going to keep trying to put it all in 1 project rather than maintain 3 separate projects (and NuGet packages). The big reason I think this is okay is because I'm finding that WPF and WinForms can live happily together side-by-side (and both can even be used in WinForms applications!)
I do want to rename ScottPlotUC and ScottPlotWPF to FormsPlot and WpfPlot, which I know will be a pain because this is a breaking change (requiring getting into the Designer.cs to fix). I think it makes sense to do this earlier than later though, and the transition from .NET Framework to .NET Core next month may be be best (and last) time to do this.
Thinking forward, the UserControls folder may eventually contain GUI elements like windows forms (e.g., custom save data dialogues).

WinForms and WPF controls together
The project can stay clean and organized


TS-212-E "failed to connect to local tailscaled;"

I installed Tailscale on my TS-212-E.  I was able to successfully install it on my TS-253-D so I had an idea what to do.
Installed the ARM-x19 package, which according to the log installed and started,
Type	Date	Time	Users	Source IP	Computer name	Content
Information	2022/08/11	19:41:21	System	<IP_ADDRESS>	localhost	[App Center] Installed Tailscale v1.28.0 in /share/HDA_DATA/.qpkg/Tailscale.
Information	2022/08/11	19:41:33	System	<IP_ADDRESS>	localhost	[App Center] Enabled Tailscale.
However when attempting the up I am getting this:
<scale] # ./tailscale -socket var/run/tailscale/tailscaled.sock up
failed to connect to local tailscaled; it doesn't appear to be running (sudo systemctl start tailscaled ?)
Tried rebooting the NAS but that made no difference.
I am a bit lost as to where to go from here.

Strange, seems related to #43. As it is already a second report with same symptoms, then it may be something systematic with QNAP.
Are you able to manually start tailscale with ./Tailscale.sh start in the package directory?

It doesn't seem like it
[/share/HDA_DATA/.qpkg/Tailscale] # ./Tailscale.sh start
<lscale -socket var/run/tailscale/tailscaled.sock up
failed to connect to local tailscaled; it doesn't appear to be running (sudo systemctl start tailscaled ?)
It pauses for a couple seconds after the start command but it doesn't seem to start, but no error either.

Hmm. The startup script writes logs to /dev/null (I hadn't figured out a good place to write the logs) and we don't see if the daemon fails. Can you try in the package directory:
tailscaled --port 41641 --state=var/lib/tailscale/tailscaled.state --socket=var/run/tailscale/tailscaled.sock

Does it error?

It does error
<ailscale/tailscaled.state --socket=var/run/tailscale/tailscaled.sock
logtail started
Program starting: v1.28.0-taabca3a4c, Go 1.18.4-ts149f7d8: []string{"./tailscaled", "--port", "41641", "--state=var/lib/tailscale/tailscaled.state", "--socket=var/run/tailscale/tailscaled.sock"}
LogID: 805520e70c4b92b9c6fac0c1b18c4c7f6ca879c9576444509e14b3f41a99bb58
logpolicy: using system state directory "/var/lib/tailscale"
wgengine.NewUserspaceEngine(tun "tailscale0") ...
Linux kernel version: 3.4.6
is CONFIG_TUN enabled in your kernel? modprobe tun failed with: modprobe: could not parse modules.dep
wgengine.NewUserspaceEngine(tun "tailscale0") error: tstun.New("tailscale0"): no such device
flushing log.
logger closing down
createEngine: tstun.New("tailscale0"): no such device

OK, I see. Can you try installing the official QVPN app from the app store? I think it should install the tun module. Just installing it should be sufficient, no need to configure or run it.
It is not required for the latest QTS (see #22), but I guess is necessary for older versions.

That fixed it.
My QTS version is <IP_ADDRESS>7, in case that helps anyone in the future.  The 212 isn't supported by the newer versions so that's as updated as it gets from a major release perspective.

Just wanted to report that the same issue happened to my on a TS-412 model with Tailscale_v1.30.1_arm-x19.qpkg and suggested workaround of installing QVPN fixed the issue. Thanks for creating this application. 🔥


Are 4.0 - 4.0.4 public releases?

The Releases page shows 3.1.1 as the “Latest Release”. Are versions 4.0 and greater considered dev or public releases?

I would like to ask this question too

Curious about this too. I'm still on 3.1.1 because it's listed as the latest release.

Curious about this too. I'm still on 3.1.1 because it's listed as the latest release.


Regenerated pot file with latest translatable strings

What is the context of this PR?
Regenerated pot file with latest translatable strings

Just needs rebasing.


New Environment from May is not able to run pretrain.py

Job # pretrain.127.err has the error on OSSC.
performer_pytorch could not be found.
This can potentially be figured out by running stuff on Snellius.

For now, keep using ossc_new/. After the present issue is resolved, we can move to what is discussed in #31.

so, we update the virtual environment with
performer-pytorch==1.1.4 # is installed in `ossc_new/`
```

On snellius, after installing performer-pytorch, I can't run `pretrain.py` because I cannot import `pytorch_lightning`. The reason is a version conflict between the two.

On the OSSC, two options work
- `torch==2.2.2` and `pytorch_lightning==2.2.2` (in `ossc_env_may2`)
- `torch==1.12.0` and `pytorch_lightning==2.1.2` (in `ossc_new`).

We should update the requirements file accordingly. I prefer the newer versions, but we need to find out if this breaks anything else.
@dakota0064 , I think you spend some time on this issue. any thought?

closing. the dependency is fixed, we need to update the venv as per #77


You don't have permissions for colors

I have Essentials,NoCheatPlus,PermissionsEx 1.23.
I have added nocheatplus.checks.chat.color and essentials.chat.color
everytime it says you don't have permissions for colors!
I just installed Vault to, and I saw PermissionsEx_Chat hooked!
I Think it Pex!
I removed Essentials and NoCheatPlus and I still don't have permissions!
when I remove PermissionsEx , and I add Essentials and NCP I don't have any problems!
(I cant find any Permission for PermissionsEx_chat.)
Fix it. its very annoying!
SherComp.
Picture :

This is the 2nd time I'm seeing PermissionsEx_Chat and I have no idea where that's coming from either.

Maybe its Vault??
But i don't think so.
Please fix this because i can't chat with colors anymore!

PermissionsEx_Chat is vault's abstraction around PEX's chat-related API methods -- it's just an internal thing really.
Run /pex toggle debug to look at the permissions being checked when you chat to make sure there isn't something else stripping out colors by permission.

All matched, i don't now it whats wrong:(

What exactly are you typing to create colored text?

&5Check
or &4Check

I have Essentials,NoCheatPlus,PermissionsEx 1.23.

It looks like you're being checked for the appropriate permissions but you haven't actually said whether EssentialsChat is installed or not. I'm unfamiliar with NoCheatPlus so if that's the chat manager you're trying to use then do ignore this.

well,
i removed NoCheatPlus!
But the error still comes up when i try to send colored text into chat!
I installed essentials chat!
When i remove essentials, the error still comes up
when i remove Pex it gone!
but how come?

@Dino-SherComp you're referring to an error? Is this your problem or do you mean a physical error? If a physical error then care to elaborate?

This is probably a weird interaction with the two plugins -- since the permissions check looked like they returned correctly, it's probably an issue with something else.


mdbtools: 0.8.2 -> 0.9.3

Updated to version 0.9.3.  This addresses numerous issues, including an
mdb-schema problem where debugging comments were included in the output.
Updated github repository owner to reflect new upstream for mdbtools.
Updated packaging to remove support for gmdb2.  Upstream split out
support for this largely unmaintained component to another repo:
https://github.com/mdbtools/gmdb2.  For more information, see:
https://github.com/mdbtools/mdbtools/blob/dev/NEWS
Note: Version tags in the repository are prefixed with a "v" starting
with the 0.9.0 series.  Also, the previous 0.8.2 tag does not exist in
the new upstream mdbtools repository.  The commit it pointed to is
still present as:
commit b753ff36a0f1d88ae8a300ed6712f4aa2ddb7d08
Author: Cyber Emissary<EMAIL_ADDRESS>Date:   Fri Dec 28 08:03:02 2018 -0500
  Bumped version to 0.8.2 and updated change log

Motivation for this change
Update to latest release and update repository source.
Things done

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

[x] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[x] Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[x] Tested execution of all binary files (usually in ./result/bin/)
[x] Determined the impact on package closure size (by running nix path-info -S before and after)
[ ] Ensured that relevant documentation is up to date
[ ] Fits CONTRIBUTING.md.

@peterhoeg

Result of nixpkgs-review pr 122762 at 071caca2 run on x86_64-linux 1

1 package built successfully:

mdbtools

5 suggestions:

warning: unused-argument
Unused argument: libxslt.
Near pkgs/tools/misc/mdbtools/default.nix:2:44:
  |
2 | , bison, flex, pkg-config, autoreconfHook, libxslt, makeWrapper
  |                                            ^

warning: unclear-gpl
gpl2 is a deprecated license, please check if project uses gpl2Plus or gpl2Only and change meta.license accordingly.
Near pkgs/tools/misc/mdbtools/default.nix:29:5:
   |
29 |     license = with licenses; [ gpl2 lgpl2 ];
   |     ^

warning: unused-argument
Unused argument: makeWrapper.
Near pkgs/tools/misc/mdbtools/default.nix:2:53:
  |
2 | , bison, flex, pkg-config, autoreconfHook, libxslt, makeWrapper
  |                                                     ^

warning: maintainers-missing
Package does not have a maintainer. Consider adding yourself?
Near pkgs/tools/misc/mdbtools/default.nix:30:5:
   |
30 |     maintainers = with maintainers; [ ];
   |     ^

warning: unclear-gpl
lgpl2 is a deprecated license, please check if project uses lgpl2Plus or lgpl2Only and change meta.license accordingly.
Near pkgs/tools/misc/mdbtools/default.nix:29:5:
   |
29 |     license = with licenses; [ gpl2 lgpl2 ];
   |     ^

Thanks @SuperSandro2000. I just updated to clean-up unused arguments as suggested by r-rmcgibbo.

As a note, Debian experimental also contains mdbtools 0.9.3. According to repology.org, mdbtools 0.9.3 is also in Gentoo, FreeBSD Ports, and Homebrew.
@SuperSandro2000 Is there anything else I can do to help with this pull request?


Request for dynamic-rbac-operator GitHub repository

Type of repository request
New GitHub repo
Requested name for the repository
dynamic-rbac-operator
Repository Description
Define Kubernetes RBAC rules in more flexible ways that update dynamically based on the state of your cluster.
Admin Access
@redhat-cop/container-cop
Write Access
@redhat-cop/container-cop
Read Access
Everyone
Additional details
nothing - please ask questions if anything is unclear

Review request:
cc: @redhat-cop/container-cop-core

Added related PR for Quay repo: #275


add registry-mirror / npm-on-ipfs

Is the "registry-mirror" package deprecated in favor of "ipfs-npm" @diasdavid? And is that the same as "npm-on-ipfs" project?
registry-mirror
ipfs-npm
npm-on-ipfs

@wmhilton registry-mirror, the module, will be deprecated once ipfs-npm is released. ipfs-npm is essentially registry-mirror, but with a name that is easier to identify and with a better CLI for people to use that takes into account all of the feedback received so far.
@whyrusleeping is finishing up the unixfs sharding (tl;dr; will enable to store the entire npm on IPFS without having to create a very large MerkleDAG node), once that is done, I'll get back to work on ipfs-npm and make it use that feature :)

@whyrusleeping is finishing up the unixfs sharding

Just checking in. How is that process going?
@wmhilton do you want me to revamp this PR, or should I just close it?

Also, @diasdavid I'm getting an error when I try to visit http://blog.daviddias.me/2015/12/08/stellar-module-management

Found it :)
http://blog.daviddias.me/post/stellar-module-management/

Unixfs sharing will be merged on go-ipfs 0.4.6 release (early Q1 2017), meanwhile a lot has been put into npm-on-ipfs to make it faster
//cc @whyrusleeping

I'm just going to add links to both registry-mirror and ipfs-npm for now, since it is still transitioning.


Fixing DMs guest label behavior (#3383)

Fixing DMs guest label behavior

Adding tests

Addressing PR review comments

Summary
Cherry-picking PR #3383

@jespino
Error trying doing the automated Cherry picking. Please do this manually
+++ Updating remotes...
Fetching upstream
Fetching origin
+++ Updating remotes done...
+++ Creating local branch automated-cherry-pick-of-#3391-upstream-release-1.24-1570615364
Branch 'automated-cherry-pick-of-#3391-upstream-release-1.24-1570615364' set up to track remote branch 'release-1.24' from 'upstream'.
+++ Downloading patch to /tmp/3391.patch (in case you need to do this again)

+++ About to attempt cherry pick of PR. To reattempt:
  $ git am -3 /tmp/3391.patch

Applying: Fixing DMs guest label behavior (#3383)
Using index info to reconstruct a base tree...
M	app/screens/channel/channel_nav_bar/channel_title/__snapshots__/channel_title.test.js.snap
M	app/screens/channel/channel_nav_bar/channel_title/channel_title.js
M	app/screens/channel/channel_nav_bar/channel_title/channel_title.test.js
M	app/screens/channel_info/__snapshots__/channel_info_header.test.js.snap
M	app/screens/channel_info/channel_info.js
M	app/screens/channel_info/channel_info_header.js
M	app/screens/channel_info/channel_info_header.test.js
M	app/screens/channel_info/index.js
Falling back to patching base and 3-way merge...
No changes -- Patch already applied.

+++ I'm about to do the following to push to GitHub (and I'm assuming origin is your personal fork):

  git push origin automated-cherry-pick-of-#3391-upstream-release-1.24-1570615364:automated-cherry-pick-of-#3391-upstream-release-1.24

+++ Creating a pull request on GitHub at mattermost-build:automated-cherry-pick-of-#3391-upstream-release-1.24

+++ Returning you to the master branch and cleaning up.


Go module import path needs an update after repo move

https://github.com/omissis/go-jsonschema/blob/d5d9fa3b4070d11595c0da61f1893810dc88a504/go.mod#L1 refers to the old location, which means that trying to install it from:
go install github.com/omissis/go-jsonschema@latest

Will fail

Will also be the case for the README

hi, yeah that is intended as the repo was moved over and I did not want to cause issues to existing users, but I agree it should eventually move to omissis/go-jsonschema and issue a redirect. But I've never took the time to look into the matter 😅


Fix some issues with dockertest and make it work with hub

This PR:

Makes this script work with notary server on docker hub (allow login creds)
Provides more immediate feedback (via subprocess) if there's an error
Bumps the docker 1.12 minor version
Specifies the max notary version that will work with these docker versions

Please sign your commits following these rules:
https://github.com/docker/docker/blob/master/CONTRIBUTING.md#sign-your-work
The easiest way to do this is to amend the last commit:
$ git clone -b "improve_dockertest" git@github.com:cyli/notary.git somewhere
$ cd somewhere
$ git rebase -i HEAD~17
editor opens
change each 'pick' to 'edit'
save the file and quit
$ git commit --amend -s --no-edit
$ git rebase --continue # and repeat the amend for each commit
$ git push -f

Amending updates the existing PR. You DO NOT need to open a new one.

Please sign your commits following these rules:
https://github.com/docker/docker/blob/master/CONTRIBUTING.md#sign-your-work
The easiest way to do this is to amend the last commit:
$ git clone -b "improve_dockertest" git@github.com:cyli/notary.git somewhere
$ cd somewhere
$ git rebase -i HEAD~17
editor opens
change each 'pick' to 'edit'
save the file and quit
$ git commit --amend -s --no-edit
$ git rebase --continue # and repeat the amend for each commit
$ git push -f

Amending updates the existing PR. You DO NOT need to open a new one.

Please sign your commits following these rules:
https://github.com/docker/docker/blob/master/CONTRIBUTING.md#sign-your-work
The easiest way to do this is to amend the last commit:
$ git clone -b "improve_dockertest" git@github.com:cyli/notary.git somewhere
$ cd somewhere
$ git rebase -i HEAD~2
editor opens
change each 'pick' to 'edit'
save the file and quit
$ git commit --amend -s --no-edit
$ git rebase --continue # and repeat the amend for each commit
$ git push -f

Amending updates the existing PR. You DO NOT need to open a new one.

Please sign your commits following these rules:
https://github.com/docker/docker/blob/master/CONTRIBUTING.md#sign-your-work
The easiest way to do this is to amend the last commit:
$ git clone -b "improve_dockertest" git@github.com:cyli/notary.git somewhere
$ cd somewhere
$ git rebase -i HEAD~2
editor opens
change each 'pick' to 'edit'
save the file and quit
$ git commit --amend -s --no-edit
$ git rebase --continue # and repeat the amend for each commit
$ git push -f

Amending updates the existing PR. You DO NOT need to open a new one.