[Question] attention_mask for shorter inputs

Is your feature request related to a problem? Please describe.
First of all, thanks for this great repo! I used your colab classification example as reference. Where can I put the attention_mask for sentences that are shorter than max_len? In PyTorch it is described as follows: https://github.com/huggingface/pytorch-pretrained-BERT/blob/master/README.md

attention_mask: an optional torch.LongTensor of shape [batch_size, sequence_length] with indices selected in [0, 1]. It's a mask to be used if some input sequence lengths are smaller than the max input sequence length of the current batch. It's the mask that we typically use for attention when a batch has varying length sentences.

Describe the solution you'd like
The model input should be a list with len 3: [indices, np.zeros_like(indices), attenion_mask]
Describe alternatives you've considered
The model already has 3 inputs. I think the 3rd one is used for the pretraining mask.

attention_mask is generated from the embedding layer (see mask_zeros)

Ok, thanks. To sum it up: This repo takes care of masking zeros, but the results will be different from the PyTorch version: https://github.com/huggingface/pytorch-pretrained-BERT/blob/master/pytorch_pretrained_bert/modeling.py#L712-L741.

Actually, the results are approximately the same. :doge:

Shouldn't both outputs be closer, if the masking is working?
import os
import tensorflow as tf
import numpy as np
os.environ['TF_KERAS'] = '1'  # noqa
import codecs
from keras_bert import Tokenizer, load_trained_model_from_checkpoint

cache_subdir = os.path.expanduser('~/bert_data/uncased_L-12_H-768_A-12')
vocab_path = os.path.join(cache_subdir, 'vocab.txt')

model = load_trained_model_from_checkpoint(
    os.path.join(cache_subdir, 'bert_config.json'),
    os.path.join(cache_subdir, 'bert_model.ckpt'),
    training=True,
    trainable=False,
    seq_len=128,
)
inputs = model.inputs[:2]
x = model.get_layer('NSP-Dense').output
x = tf.keras.layers.Dense(1, activation='sigmoid')(x)
model = tf.keras.models.Model(inputs, x)

token_dict = {}
with codecs.open(vocab_path, 'r', 'utf8') as reader:
  for line in reader:
    token = line.strip()
    token_dict[token] = len(token_dict)
tokenizer = Tokenizer(token_dict)

ids, _ = tokenizer.encode("Some text unaffable.", max_len=128)
ids = np.float32(ids)
ids_rolled = np.roll(ids, 30)
ids = np.float32([ids, ids_rolled])

out_keras = model.predict([ids, np.zeros_like(ids)])
print(out_keras)

Output
array([[0.28907815],
       [0.29562896]], dtype=float32)


script to do QA on object packages

related to the ingest process. Script will be run on a collection to validate each package after the package script runs
Script should do the following: drill into folders, confirms a uri.txt in each folder, the following filetypes exist: tiff/wav/pdf maybe allow for others too, check that filenames conform to spec (A-Z, 0-9, ".", "-", "_" only), check for duplicate objects as based on URI, check for collection in repository

workflow:
https://docs.google.com/document/d/1nqzQob2jw0QDhnFtRxBnEX1ighwUYtFP8kaSVrmWx30/edit#heading=h.cpjk7xji1wzb

additional ideas for QA scripts
metadata - all attributes are constructed in elasticsearch, dates are valid
indexing - script to look at logs and get information about records not indexed and put that into QA script

Check if fields are published on the ArchivesSpace side before ingesting.

Ongoing.  Unit tests needed.

Complete


[DOCFIX] Add javadoc for JournalCheckpointThreadTest

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Alluxio-Pull-Request-Builder/14824/
Test FAILed.

Merged build finished. Test FAILed.

Jenkins, test this please

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Alluxio-Pull-Request-Builder/14851/
Test PASSed.


SyntaxError: 'return' with argument inside generator, when import pyautogui

These modules are installed in my virtual environment:
Successfully installed Pillow-5.4.1 PyTweening-1.0.3 boto3-1.9.110 botocore-1.12.114 certifi-2019.3.9 chardet-3.0.4 comtypes-1.1.7 docutils-0.14 futures-3.2.0 idna-2.8 jmespath-0.9.4 numpy-1.16.2 pyautogui-0.9.41 pycryptodome-3.7.3 pygetwindow-0.0.4 pymsgbox-1.0.6 pyodbc-4.0.26 pypiwin32-223 pyrect-0.1.4 pyscreeze-0.1.20 python-dateutil-2.8.0 pythonnet-2.3.0 pywin32-224 pywinauto-0.6.6 requests-2.21.0 s3transfer-0.2.0 six-1.12.0 slacker-0.12.0 urllib3-1.24.1 wmi-1.4.9 xlrd-1.2.0

Then, when I try to import pyautogui i got:
>>> import pyautogui
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Users\Adrian\Documents\GitHub\eagle-gold\scripts\python\env\lib\site-packages\pyautogui\__init__.py", line 84, in <module>
    import pyscreeze
  File "C:\Users\Adrian\Documents\GitHub\eagle-gold\scripts\python\env\lib\site-packages\pyscreeze\__init__.py", line 168
    yield Box(x, y, needleWidth, needleHeight)
SyntaxError: 'return' with argument inside generator

Any recent changes introduce it?

pip uninstall pyautogui pyscreeze
pip install pyautogui==0.9.38 pyscreeze==0.1.18

pip uninstall pyautogui pyscreeze
pip install pyautogui==0.9.38 pyscreeze==0.1.18

I have the same problem, this didn't solve it.

I think the problem is that you are using Python 2. I tried Python 3 and it seemed to work

oh, yep I didn't realize I was still on python 2 on this laptop. thanks @simula67 that solved it for me too

Yes, sorry to do not mentioned that I'm using Python 2.
Now I'm using pyautogui-0.9.41 and pyscreeze-0.1.19 and seems to work.
Lesson learned: do not rely on the latest version since is not always better then previous one 😄

thanks @adigrabcad. I had the same issue and the two rolls backs you mentioned are what worked for me as well:
Running Python 2.7.15 (Windows 10 if that matters as well) with the most recent versions of each package installed as of writing this (pyautogui-0.9.42 and pyscreeze-0.1.20) throws the error mentioned originally.
uninstalling each one and rolling back one version to pyautogui-0.9.41  and pyscreeze-0.1.19 seems to have resolved this particular issue.

thanks @SaadeMotion , U really help me a lot.
PS: maybe u should run 'pip install Xlib' too.


Callback to write documents to Tiled

Adds a callback to enable writing Events, Stream Resource, and Stream Datum messages from RunEngine to Tiled.
Description
This PR implements a new callback class, TiledWriter, which can be subscribed to a RunEngine and processes Events and Stream messages.
Motivation and Context

How Has This Been Tested?
test_tiled_writer.py tests the streaming capabilities with writing data into an hdf5 file and a tiff sequence.

Capturing notes from a chat this morning, remaining steps on this PR are:

[ ] Multiple descriptors
[ ] Refactor HDF5-specifics from TiledWriter to "Handlers"
[ ] Deal with mapping raw datset in HDF5 onto Event semantics (shape, skips)

Per discussion with @maffettone and @genematx:

The "handlers" in this PR are not doing I/O.
It seems worth exploring reusing the Adapters in tiled.adapters to do I/O, such that a "handler" from this PR can work together an an Adapter to do streaming I/O.
Given that, we should probably call these something other than "handler" because they are serving a different purpose.

Adapter: DataSource/Asset -> numpy (or pandas or whatever...)
Handler: Documents -> numpy
Thing in this PR: Documents -> DataSource/Asset

This diagram shows how this new component (marked as "???") fits in to everything else:

From brainstorm with DLS on what to call this:

Compactor
Condenser
Aggregator
Assembler
Distiller
Consolidator
Munger

My sense from the discussion is that (2), (3), (5), and (6) were leading contenders, but this is still a wide open race.

All of these names suggest some manipulation of the documents. Suggest
something more on point for what happens.  Collector is one Idea.
On Thu, Apr 18, 2024, 8:53 AM Dan Allan @.***> wrote:

This diagram shows how this new component (marked as "???") fits in to
everything else:
image.png (view on web)
https://github.com/bluesky/bluesky/assets/2279598/56a260da-4364-452a-bcda-dc2cca904cf2
From brainstorm with DLS on what to call this:

Compactor
Condenser
Aggregator
Assembler
Distiller
Consolidator
Munger

My sense from the discussion is that (2), (3), (5), and (6) were leading
contenders, but this is still a wide open race.
—
Reply to this email directly, view it on GitHub
https://github.com/bluesky/bluesky/pull/1660#issuecomment-2063922499,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AARMUMBQDMHEEH3BI7R74C3Y57F5LAVCNFSM6AAAAABECTUJ4OVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANRTHEZDENBZHE
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>

receiver is something I use in other code as the callback method.  It
receives the documents from the RE.  If you wish, capitalize it.
On Thu, Apr 18, 2024, 9:03 AM Pete Jemian @.***> wrote:

All of these names suggest some manipulation of the documents. Suggest
something more on point for what happens.  Collector is one Idea.
On Thu, Apr 18, 2024, 8:53 AM Dan Allan @.***> wrote:

This diagram shows how this new component (marked as "???") fits in to
everything else:
image.png (view on web)
https://github.com/bluesky/bluesky/assets/2279598/56a260da-4364-452a-bcda-dc2cca904cf2
From brainstorm with DLS on what to call this:

Compactor
Condenser
Aggregator
Assembler
Distiller
Consolidator
Munger

My sense from the discussion is that (2), (3), (5), and (6) were leading
contenders, but this is still a wide open race.
—
Reply to this email directly, view it on GitHub
https://github.com/bluesky/bluesky/pull/1660#issuecomment-2063922499,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AARMUMBQDMHEEH3BI7R74C3Y57F5LAVCNFSM6AAAAABECTUJ4OVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANRTHEZDENBZHE
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>

To belatedly respond to @prjemian, I really like the word "Collector" for a callback that collects documents. This particular thing we are trying to name does something more specific. I does not retain a collection of the documents it sees. Instead, it extracts some information and consolidates it into a new representation, optimized for random and batch access, meant to complement the streaming representation.

I move to choose "Consolidator" as the choice that IMO (1) does not already have a conflicting technical meaning and (2) is not too silly.

CI for Py3.9 failed yet the others passed.  How come?
2024-05-02T20:57:03.6772906Z FAILED src/bluesky/tests/test_suspenders.py::test_unresumable_suspend_fail[True] - assert 0.1 <<PHONE_NUMBER>.233679 -<PHONE_NUMBER>.1350915)
2024-05-02T20:57:03.6774312Z = 1 failed, 1671 passed, 15 skipped, 18 xfailed, 16 xpassed in 1153.81s (0:19:13) =
2024-05-02T20:57:18.3210980Z ERROR: InvocationError for command /opt/hostedtoolcache/Python/3.9.19/x64/bin/pytest --cov=bluesky --cov-report term --cov-report xml:cov.xml (exited with code 1)

@prjemian I've seen this before (failing tests for only a single Python version). What helped in the past is just to rerun the failed job, but I haven't yet looked into the root cause of the issue (perhaps something strange with GH runners...).

As I understand it, this PR provides capability essential to connect a tiled server as the client for the stream of published documents from the bluesky RunEngine.
Here is an example in the test suite (where tw is an object of the new TiledWriter() class):
https://github.com/bluesky/bluesky/blob/9c2c2d526b39f007e52d86eafe20279ba889ad46/src/bluesky/tests/test_tiled_writer.py#L187
This provides a clear path for beamlines currently using databroker v1.2.x, that rely on databroker.catalog.v1.insert() method to receive such documents.  This method is no longer available in databroker v2.


Include the store city name in the return of the store API

Returns the store's city name in the API response. This is useful when the API is called without specifying a city query parameter, allowing you to identify the available cities.

I agree.


Added support for mimetype to GetContentString

I signed it!
But it would only let me sign it as<EMAIL_ADDRESS>which my pull
request almost certainly wasn't sent with.
Anyway I can sign it as<EMAIL_ADDRESS>(it is attached to my Google
Account, just not primary).
Cheers,
Rikki
On 28 August 2015 at 18:01, googlebot<EMAIL_ADDRESS>wrote:

Thanks for your pull request. It looks like this may be your first
contribution to a Google open source project, in which case you'll need to
sign a Contributor License Agreement (CLA).
[image: :memo:] Please visit https://cla.developers.google.com/
https://cla.developers.google.com/ to sign.
Once you've signed, please reply here (e.g. I signed it!) and we'll
verify. Thanks.

If you've already signed a CLA, it's possible we don't have your
GitHub username or you're using a different email address. Check your
existing CLA data https://cla.developers.google.com/clas and verify
that your email is set on your git commits
https://help.github.com/articles/setting-your-email-in-git/.
If you signed the CLA as a corporation, please let us know the
company's name.

—
Reply to this email directly or view it on GitHub
https://github.com/googledrive/PyDrive/pull/39#issuecomment-135832538.

--
Rikki Prince
<EMAIL_ADDRESS>


dependsOn clarification and parallel execution

We have a question about dependsOn?
Why is it required? In the description it says it's to ensure steps are "not processed in parallel" BUT steps are defined as An ordered list of steps.
There is no mentions of parallel vs sequential execution.
Do we really need parallel execution complexity in the first version of the spec?
I'm worried that dependsOn may add too much friction for the workflow author.

I am not sure now, but we originally had intentions of supporting AsyncAPI as well. So it may have been introduced then to ensure steps were sequential instead of parallel. @frankkilcommins  or @ndenny or @shaisachs  do you guys recall?

I am not sure now, but we originally had intentions of supporting AsyncAPI as well. So it may have been introduced then to ensure steps were sequential instead of parallel. @frankkilcommins or @ndenny or @shaisachs do you guys recall?

I'd also add.. again this is trying to recall the conversation(s) around this some time back, that in the even we support AsyncAPI, in the case a given step needs some async steps to be completed before the step can proceed, this is how you would indicate steps (async or sync) must be completed before it could exectue.

Should we add some note about it in the spec or maybe remove until it is clarified? This is a bit ambiguous for us as implementers.

I'm all for adding more clarity with in relation to the expected usage in the initial spec version. Parallel execution and AsyncAPI were in scope at one stage and dependsOn is related (but not solely) to those topics.
As it stands, it's there as an optional mechanism to add more explicit dependencies for steps should that be needed. One can imagine a workflow that grows in it's number of steps overtime, and such a workflow may have certain branching constructs specified via onSuccess (or onFailure). If an Success Action Object (type: goto) was defined, then potentially ensuring that all prerequisite needed by the reference steps are executed can give additional assurance to the ability to achieve the execution rather than responsibility on the referencing step.
That all being said, I'm not completely against removing it until we discover otherwise (and follow the YAGNI principle).

So after today's meeting with Frank and Nick, we discussed this a little bit. I am going to throw out what I think might be a better (or perhaps in conjunction with the present spec) option for dependsOn. From a tooling perspective, Frank pointed out a couple of things but one in particular that caught my ear/concern is the ability to dependOn a step from another workflow, that could dependOn another step in another workflow, that depends on the original workflow.. thus making a circular reference. While detectable in say a validation tool, I feel like that could result in some messy difficult to follow workflows. Thus, I think, at least until we figure out how we will support async steps and workflows, we would benefit from adding the dependsOn to the Workflow scope, and possibly removing/shelving (for now) the step dependsOn.
The concern I now have (and thank you Roman for bringing this up though for a different reason) is the per step dependsOn is perhaps not clear on how it will work. For example, if a workflow with 10 steps, at step 3 has a dependsOn and that is a step in a different workflow.. say step 5 in that workflow.. it's odd to me how you enforce/validate/execute that dependsOn in the other workflow. Is it JUST the one step that the dependsOn gets executed.. but it would in turn requre the steps before it most likely (but not for sure). Do we add documentation that indicates a dependsOn at the step level MUST be either the first or last step in that workflow? Per Frank's suggestion, having depedsOn ADD the ability to depend on a workflowId. But I will still argue that I don't quite see the benefit of a per step dependsOn vs a workflow scoped dependsOn.
Frank also brought up (which led to my reasoning that a workflow scoped dependsOn makes more sense and removing step dependOn makes sense) in the example situation where you have a workflow that is for authorization. So you got this token based workflow. Now, every OTHER workflow (in the same and possibly other workflow documents) could just have step 1 of each workflow indicate they depend on the authorization workflow to ensure the subsequent steps can be assured of a token that can then be passed in as a header. This means every workflow has to manually add step JUST to depend on the workflow for authorization. That seems silly to me vs a workflows coped DependsOn.
Until we discuss a bit more about how async may fit in to this, I am not convinced the complete removal of per step dependsOn is the right move. But as of now I feel like it makes more sense to not have it there, and have the workflow scoped dependsOn with a rule that all workflowId dependencies MUST have been executed (and ideally with success results at the end) before the given workflow can execute. I was talking to Nick in terms of say, code generation, I could see each workflow becoming a "wrapper" function around the steps of the workflow (which would in turn be individual request/response functions). So a depdnsOn could simply generate a call to another workflow "wrapper" function before any of the steps of that workflow are executed.. with some level of "if workflow1().result() == success { do my workflow steps }" sort of logic.

In the interest of moving the bike shedding off the critical path, I’m going to suggest the following:

We omit dependsOn from v1.0.0
We create an enhancement issue for parallelism with dependsOn (both at a workflow and step level)
We create a related enhancement issue for OAS related webhooks and callbacks with dependsOn behaviour

The main reasons for this:

Time – We all want to get v1.0.0 out to the industry and the optional dependsOn causes complexity with regards to mapping out dependency graphs to prevent circular references and other poorly configured workflows. This will slow vendor implementations.
Limited functional gap – as we do not advertise or proclaim parallel step execution capabilities in 1.0.0 the majority of functionality can be managed with thoughtful sequential step authoring and being mindful of branching considerations
Enhance a more vibrate community following a hopefully successful 1.0.0 rollout and learn from the application of the specification in the wild where dependsOn is an in-demand ask.
Examples: To date we have not defined examples showcasing the appropriate use of dependsOn

Agreed on all accounts. If I had one partial disagreement it would be to put dependsOn at workflow scope as that is not too difficult, but I agree, we want to get this out, so I'd lean towards removing it altogether and focus on that after 1.0.0.


Noscript for multiquestion deps

Add noscript tags to 'hidden' questions, which are currently used solely for question-with-dependencies followups in G9 services.
Bump version to 22.1.0

Should we add these for all the question types?  I know these might be the ones that are followups right now, but it seems possible that in future that other question types could be followups too.

I think the ones we've added it to are the main types, but have added it to pricing, upload and checkbox-tree.
We probably want to implement this differently in an ideal world, but I suppose consistency across all questions is still desirable in the short-term.

:+1:


Multi Site: How to map a custom domain to a Camaleon-app-subdomain on Heroku

Hi there!
I've setup a multi-site solution with Camaleon CMS on Heroku (1 main-/default-site like www.mydomain.de+ n further sites accessible via subdomains/keys like fu.mydomain.de, bar.mydomain.de etc...  )
For this to work I defined (via DNSimple)  mydomain.de as an ALIAS for myapp.herokuapp.com and enabled wildcard subdomains for mydomain.de by defining a CNAME record which sets *.mydomain.de  as alias for myapp.herokuapp.com  and by adding  *.mydomain.de as domain name to my Heroku-app (via heroku domains:add *.mydomain.de). To round it up I defined another CNAME record to set www.mydomain.de as another alias for myapp.herokuapp.com & added www.mydomain.de as well to my Heroku app (heroku domains:add mydomain.de ).
Here's the DNS-setup (DNS Records on DNSimple for mydomain.de):

Type
Name
Content

ALIAS
mydomain.de
myapp.herokuapp.com

CNAME
*.mydomain.de
myapp.herokuapp.com

CNAME
www.mydomain.de
myapp.herokuapp.com

TXT
mydomain.de
ALIAS for myapp.herokuapp.com

NS
mydomain.de
ns4.dnsimple.com

NS
mydomain.de
ns2.dnsimple.com

NS
mydomain.de
ns1.dnsimple.com

NS
mydomain.de
ns3.dnsimple.com

And here are the custom domains I added on Heroku for myapp.herokuapp.com:

Domain Name
DNS Target

*.mydomain.de
myapp.herokuapp.com

mydomain.de
myapp.herokuapp.com

www.mydomain.de
myapp.herokuapp.com

That works great so far....
TL;DR? ;-)
Now Id'like to map external domains to those subdomains - to allow clients to use their own domains instead of the subdomains of the Camaleon-app - i.e. www.fusdomain.de  shall be mapped to  fu.mydomain.de and www.barsdomain.de shall be mapped to bar.mydomain.de and so forth ...
What is the best way to achieve this? (for testing purposes I tried to map one of my domains to a subdomain (CNAME  www.testdomain.de  -> somesubdomain.mydomain.de) and added it to heroku (heroku domains:add www.testdomain.de) - but that didn't work, www.test.de simply resolved to the main/default-site  www.mydomain.de instead of the desired subdomain...)
Cheers
Mayinx

Please check this:
http://camaleon.tuzitio.com/documentation/category/40756-uncategorized/how.html

@owen2345 it is a 500 page.

The url is working well, tested from many computers and also using web proxies.

@owen2345, yesterday it was not working for me aswell, but today I am able to access.

@mazharoddin yes it will works too!

ok, thanks.

hi @owen2345,
I tried above helper file, but for some reason it didn't worked for me.
I update application as below, i tried these on production server.
def shoplid_current_site_helper(args)
    if !args[:site].present? && request.present?
      args[:site] = case request.original_url.to_s.parse_domain
      when 'othersubromain.mywebsite.com'
        CamaleonCms::Site.find_by_slug('localhost:3000').decorate
      when 'mywesbite.com'
        CamaleonCms::Site.find_by_slug('localhost:4000').decorate
    end
   end
  end

also tried as below.
def shoplid_current_site_helper(args)
if !args[:site].present? && request.present?
args[:site] = case request.original_url.to_s.parse_domain
when 'mywebsite.com, othersubdomain.mywebsite.com'
CamaleonCms::Site.find_by_slug('localhost:3000').decorate
when 'othersubdomain.com'
CamaleonCms::Site.find_by_slug('localhost:4000').decorate
end
end
but either way it didn't worked for me. I restarted ngnix, unicorn etc.

@mazharoddin
the helper name should be the same, try like this:
def cama_current_site_helper(args)
  args[:site] = case request.original_url.to_s.parse_domain
      when 'mywebsite.com, othersubdomain.mywebsite.com'
        CamaleonCms::Site.find_by_slug('localhost:3000').decorate
      when 'othersubdomain.com'
        CamaleonCms::Site.find_by_slug('localhost:4000').decorate
      else
        args[:site]
    end
end

thanks, but still its not working for me ..may be I am missing something. I will try and let you know, thanks.

Thanks a lot, folks - finally I got the time to try this out, once I'm through I report back to you guys ...
@mazharoddin: I didn't figure it all out yet - but I had the same problem than you when it came to the helper method: When I override cama_current_site_helper in app/helpers/application_helper.rb it's never called - but if I override the method in app/apps/themes/default/default_helper.rb instead it's invoked - so if I'm not mistaken cama_current_site_helper doesn't seem to belong (anymore?) in application_helper.rb as suggested in the documentation (is that correct @owen2345 ?)   ...

You are right @mayinx, I am sorry.
For some reason is not calling/loading the application helper.
Anyway I updated the document with the right solution:
http://camaleon.tuzitio.com/documentation/category/40756-uncategorized/how.html
Regards,

@owen2345, I am still not able to get it work.
@mayinx  is its working for you now?

@mazharoddin could you please print something to test if the function is acceded?

Sure @owen2345 ..I will do it. thanks

Looks like no where its getting called.

it is strange:

Don't forget to restart server

no, its not working, may be something wrong from my end.

@mazharoddin  - yeah - for me it's working great (thanks @owen2345 !)  - now I can map external / custom domains to the virtual subdomains of my Camaleon-CMS main-/default-site - and I hadn't even to change the original slug of the virtual subdomain in question ... I can now access the site via the regular subdomain-notation (somesubdomain.mydomain.de) AND via the custom domain (testdomain.de) - here's my camaleon_mapsites.rb, in case it helps:
# config/initializers/camaleon_mapsites.rb
#
# To inspect what's going on use stuff like the following inside the helper method:
# puts "--- Cama::Site.all.pluck(:slug): '#{ Cama::Site.all.pluck(:slug)}'"#.red
# puts "--- args[:site]: '#{args[:site]}'"#.red
# puts "--- request.original_url: '#{request.original_url}'"#.red
# puts "--- request.original_url.to_s.parse_domain: '#{request.original_url.to_s.parse_domain}'"#.red
Rails.application.config.to_prepare do
  CamaleonCms::SiteHelper.module_eval do
    def cama_current_site_helper(args)
      if !args[:site].present? && request.present?
        args[:site] =
          case request.original_url.to_s.parse_domain
            when 'testdomain.de'
              CamaleonCms::Site.find_by_slug('somesubdomain').decorate
          end
      end
    end
  end
end

Don't now if it's related but perhaps it helps you guys to fix this: I'm on ruby v 2.1.2, rails v 4.2.1 and camalleon-cms v 2.3.6 - and I added the following at the end of my gemfile (found that in an external Camaleon-CMS-tutorial somewhere if I'm not mistaken...):
#################### Camaleon CMS include all gems for plugins and themes ####################
require './lib/plugin_routes'
instance_eval(PluginRoutes.draw_gems)

Hope that helps?
By the way: I'm writing a post about how I set everything up to get a multi site solution started incl. all DNS Settings etc. - once it's finished I gonna post the link here ...

@mayinx  Its nice to know that its working for you, thanks for your sample code and details ..really appreciate it...I will re-try again and let you know.

Any hope to run this code by fixing  "mapping custom domains"  helper file issue.

What about this?
http://camaleon.tuzitio.com/documentation/category/139779-faqs/how.html


protein mpnn bug fixing and new feature

What type of PR is this?
Remove the categories that do not apply

🎮 Feature: rename .fa files to .fasta
🐛 Bug Fix: removed subprocess to activate conda environment. the subprocess was not needed but produced warnings.

successfully tested on prod, https://app.prod.labdao.xyz/jobs/3048.


Changes to follow java style conventions

#53 is a known issue, will be fixed in an upcoming commit


Fix #211 - save schema open status in cookie, other schema opening fixes

This PR adds support to "save" the state of the schema side bar in a cookie, so that the next time you load the page, it will remain open (or closed).
I also did some other cleanup related to opening the schema sidebar. There was some incorrect bootstrap grid structure.

Another great PR. Cheers!


Powermanager - Fix wrapping

Fixes of by one error in indexing the arguments for the wrapped function. This causes the timeout to be given as first argument to functions instead of the actual first argument.
Fixes widget drawing even if hidden

Does that fix I can no longer edit alarms when logging is active?

Uncaught TypeError: Expecting Object, got Number
at line 26 col 213 in alarm.app.js
....assign(alarm,selectedAlarm);}var time=require("time_utils").de...
^
in function called from line 17 col 1948 in .boot0
....apply(undefined,arguments.slice(1));let end=Date.now()-start;let f=a.toSt...
^
in function called from system

Also I think that powermanager.default.json is missing in metadata.json.

@nxdefiant Found an additional problem with alarms: Multi Timer gives a string instead of a function to setTimeout when the timer has finished. This caused the timer to overflow and not raising an alarm. This is now worked around by not really wrapping those string functions.

Thanks!


Use of == in README code

Code in the README uses at various places == which is pointer equality in OCaml and quite likely to be wrong because you are looking for structural equality. Otherwise it would be good to explain why pointer equality is required in these places.

Hi @lindig, good call-out. If you look at the tests they're all using ppx_deriving.eq to make structural equality comparisons. The readme was illustrative. I'll amend it so its not misleading :)
Thanks!


Broken for Blender 2.93 which released today.

As the title says, this is now broken for the latest release of blender.
Only have tested importing.

Removed deprecated function time.clock() changed to time.process_time() in importer, I believe importer should work in current state now (though with some improper imported animation angles, separate issue). Closing for now.


Firmware Characteristic Service Not Suitable To Be Used (?)

Today in preparation of getting our hotspots ready to be programmed I done some last steps of updating our base OS software to the latest version which brought a breaking bug for us. However the issue could manifest in the future as others update as well.
While we are using our own BTLE implementation, this same issue is re-producable with the gateway_config tool provided here on github due to the nature of the issue.
Currently for the firmware version the GATT characteristic 2A26 is used under the Device Information Service 180A, however in version 5.55 of Bluez and above a service is provided by bluetoothd on 180A which causes a conflict as the app searches for the 2A26 characteristic under the service provided by bluez and fails.
Upon contacting the maintainers of Bluez so far the response is that it doesn't seem to be recommended that a user's app provides this service:
> However as our software creates a service on 0x180A it causes a
> conflict, as the application we are making our software with reads
> from the first service available which is the one generated by BlueZ.

You should probably stop doing that and just use main.conf to set the
values you want to be published, we should actually blacklist DIS to
be registered by applications since that is defined by the platform
having the application to override may actually cause problems.

The above also hints that they may block the service from being registered at all in the future.
In a brief discussion with @madninja one suggestion was to pin the bluez version to an earlier one (5.53 was working on our older software, however as the Base OS that provides Blue Z isn't under our control with the OTA mangement platform we're using, we're currently unable to do this).
However I could see the above becoming an issue over time as pinning to an older version of software isn't going to be possible in the long run.
The best solution that I can think of is to just move the firmware request characteristic to the custom service everything else is under as this would then future proof the code, however it does mean existing hotspots would need updating with this change.  However the code change in gateway_config does look fairly trivial to do.
Or possibly if it fails the check with the characteristic in the device info service, that it then requests it from a second one to then provide good backwards compatibility.

Just wanted to add that the conversation with the BlueZ devs is at https://marc.info/?l=linux-bluetooth&m=161496092020034&w=2
So far it's looking like the patch I've submitted is the most likely route to go as in the current main versions of Blue Z it doesn't look possible to disable the DIS they create, and that in the future it's most likely it'll not be possible to create your own.
Pinning BlueZ to an older version (Such as 5.53) isn't really a solution to this issue.

@madninja Ryan has a fix for this in the app to now read from SOFTWARE_VERSION_UUID = 'c0b64050-697d-463a-a33f-70c4825731f8' and check the device firmware version there in the case it fails to read from FIRMWAREVERSION_UUID = '00002a26-0000-1000-8000-00805f9b34fb' do we need to make this change in our bluetooth code as well?

Should no longer be required.


It just works!

I spent days and nights searching online.  I tried dozen of versions of Oracle JRE, hacking java.security file, changing TLS settings here and there, but couldn't get remote console to work on a Supermicro H8 system.  This just works without any tweaking!  It is amazing, just like magic!
Thank you so much!!

Glad this could help someone, and many thanks for the feedback.
Would you mind giving me the firmware / year of making of your supermicro H8 system so I can update the "tested systems" table in the README file ?

Thanks ;)


Move CEJST to be the last category

Tracked by #104

Moved CEJST to end in additional details. It may have affected downloading data but I will need to wait until our sample data is fixed to check that.
{t:45}

Implemented this task.
{t:30}


Fail to upload/download local settings for a Static Web App with an error

OS: Win10
Build Version: 20220105.2
Functions Version: v1.6.0
Regression: Regression (Previous Released)
Repro Steps:

Make sure the Azure Functions extension is installed.
Expand a Static Web App -> Expand "Production".
Right click "Application Settings" -> Click " Upload Local Settings...".
Check whether succeeds to upload local setting.

Expect:
Succeed to upload local settings.
Actual:
Fail to upload local settings with an error.

More Info:

This issue also reproduces when clicking "Download Local Settings...".
This issue also reproduces when clicking "Create HTTP Function...".

We've made some changes that will require you to temporarily install the latest Azure Functions extension .vsix before testing Azure Static Web Apps extension.
Before testing Azure Static Web Apps, download the Azure Functions .vsix from the pipeline. And then install it by running the command Extensions: Install from VSIX... command, then selecting the downloaded .vsix file.


Concurrent read/write network exception

Rarely when a player does something it'll cause a concurrent read+write exception inside Client.send. Caused by not writing on the same thread as reading. Although both are technically using the Dispatchers.IO context that doesn't guarantee the threads are the same.
java.lang.IllegalStateException: ByteChannel[state: Reading+Writing] Concurrent writing is not supported
	at io.ktor.utils.io.internal.ReadWriteBufferState.startWriting$ktor_io(ReadWriteBufferState.kt:23)
	at io.ktor.utils.io.ByteBufferChannel.setupStateForWrite$ktor_io(ByteBufferChannel.kt:247)
	at io.ktor.utils.io.ByteBufferChannel.writeByte$suspendImpl(ByteBufferChannel.kt:2647)
	at io.ktor.utils.io.ByteBufferChannel.writeByte(ByteBufferChannel.kt)
	at io.ktor.utils.io.ByteWriteChannelKt.writeByte(ByteWriteChannel.kt:151)
	at world.gregs.voidps.network.Client.header(Client.kt:86)
	at world.gregs.voidps.network.Client.access$header(Client.kt:10)
	at world.gregs.voidps.network.Client$send$1.invokeSuspend(Client.kt:71)
	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)

Wilderness levers caused this very frequently


Use GitHub Actions for continuous integration

This PR replaces our current Travis CI workflow with GitHub Actions.
Features include:

Builds and tests on Linux, macOS, and Windows, on py38 and py39
After tests, runs coveralls, but only once, using Linux and py38
Lint only runs once, on Linux, using the native Python (faster than setting up miniconda again)

Setting up coveralls was the trickiest bit. Although there's an official Action created by the Coveralls team, it doesn't work well with Python, so I used a different Action that was recommended.

It's a little weird that the Action I set up in this PR from my mdpiper fork doesn't run here. It works there, I swear!

It's a little weird that the Action I set up in this PR from my mdpiper fork doesn't run here. It works there, I swear!


there is a spell mistake, spelled as SFPx instead SPFx

[Enter feedback here]

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

ID: 28a02f89-81aa-aa43-7fb1-e661f1fbf41c
Version Independent ID: 90dca7e3-94e4-b5fa-6e72-c4b3caf5dca8
Content: SharePoint Framework support on SharePoint Online
Content Source: docs/spfx/spfx-sharepoint-online.md
Service: sharepoint-online
Sub-service: sharepoint-framework
GitHub Login: @VesaJuvonen
Microsoft Alias: vesaj

in the second paragraph in the content page, it says "All published versions of SFPx", instead it should be "All published versions of SPFx"


BUG: cwt_morlet decim

import numpy as np
from mne.time_frequency import cwt_morlet
X = np.random.rand(10, 200)
tfr = cwt_morlet(X, sfreq=128., freqs=[10.],  n_cycles=5, decim=2)

gets
---------------------------------------------------------------------------
ValueError                                Traceback (most recent call last)
<ipython-input-2-c7cf187d065f> in <module>()
      2 from mne.time_frequency import cwt_morlet
      3 X = np.random.rand(10, 200)
----> 4 tfr = cwt_morlet(X, sfreq=128., freqs=[10.],  n_cycles=5, decim=2)

/home/jrking/mne-python/mne/time_frequency/tfr.py in cwt_morlet(X, sfreq, freqs, use_fft, n_cycles, zero_mean, decim)
    292     tfrs = np.empty((n_signals, len(freqs), n_times), dtype=np.complex)
    293     for k, tfr in enumerate(coefs):
--> 294         tfrs[k] = tfr
    295
    296     return tfrs

ValueError: could not broadcast input array from shape (1,100) into shape (1,200)

I probably introduced the bug in my last PR, I'll have a look now

I think this may be a bug since n_times is not updated given the decim argument.

This should do the trick:
n_signals, n_times = X.shape decim = int(decim) n_times = n_times  // decim + bool(n_times % decim)

PR with test welcome

Same bug in the function cwt

Same bug in the function cwt

Are you sure? This seems to work:
import numpy as np
from mne.time_frequency.tfr import cwt, morlet
X = np.random.rand(10, 200)
# Precompute wavelets for given frequency range to save time
Ws = morlet(128, [10.])
coefs = cwt(X, Ws, decim=2)

It does work, my bad


add convience methods to store for cancellation and loading state

Experimental!

Not sure. I want the effect returned by withCancellationKey to run exactly as long as the effect being wrapped, and if the former is cancelled, it should forward the cancellation to the latter. (This allows wrapping one effect with two different cancellation keys, for example, and getting the correct loading state irrespective of the order of withLoading and withCancellationKey). With a Supervisor we can achieve this, I think, by doing fiber.join.onCancel(fiber.cancel). The fiber.join bit should be possible with the hotswap, but not sure about forwarding cancellation 🤔 .

Many thanks to @ramytanios and @armanbilge for valuable feedback!


Adding permission to read repo on flux-diff workflow (mandatory for private repos)

If you want to use the flux-diff workflow on a private home-ops repository the added permission is needed. If it is not given the Diff Resources step would fail on Fetching the repository with the following error message:
remote: Repository not found.
Error: fatal: repository 'https://github.com/janpfischer/home-ops/' not found

Adding this permission allows the job to read the content of the private repo. For public repo's this should not make any difference.

Thanks!


added update for issue #105

reply to link that is only visible from single post page

+1 to merging if anyone has any objections re: js speak now :)

@ednapiranha updated request

@ednapiranha @jasonrhodes updated

@jasonrhodes added, @ednapiranha this new lib has camel case, do you want that fixed?

build looks to be happy now

@coleGillespie re: case, I think if we are using a lib that uses camelCase then we'll just call the methods/properties as they exist, no sense in proxying them for style or something. However, I still think our variables that we set from it should be snake_case still, e.g. var reply_to = qs.replyTo; etc.
Can you make those changes and then I think we're good to merge. I feel like we could still have some discussion on if we want to have the reply link at the top or bottom of the post, if we want it on the /discover page eventually, but those can be changed in a new PR. No sense holding up this ticket any longer.

@jasonrhodes LOL
public/js/post.js
15:6   error  Identifier 'reply_to' is not in camel case  camelcase
18:6   error  Identifier 'post_id' is not in camel case   camelcase
20:2   error  Identifier 'reply_to' is not in camel case  camelcase
20:66  error  Identifier 'post_id' is not in camel case   camelcase

Where were you seeing those camelCase errors?

failed travis build @jasonrhodes

OK I apologize, @coleGillespie, I think something got really confused during all this back and forth. We just accepted a linter PR last night so things will be much easier going forward, you can use npm run lint and know if things are all set. That way we don't all have to try to remember what case we're using...
Again, thanks for your willingness to go back and forth on this. I appreciate it.


content-available is always true when collapse_key is set

When sending push notifications to iOS devices, it appears that content-available is always true  when collapse_key is set, whether we don't send the content_available field, or set it to false explicitly.
Example payload:
{
 "registration_ids":["<snip>"],
 "notification":{"title":"a title","body":"some body","sound":"default"},
 "data": {
  "message":"a nessage"
 },
"content_available":false,
"time_to_live":900,
"collapse_key":"abcdef",
"priority":"normal"
}

This seems like a bug. Will fix it in soon.

This has been fixed. The fix should be live in a week or so. Please test again and let us know if you face any issues.

thanks 👍


Implement explicit API for categorize()

Please confirm that this PR has done the following:

[x] Tests Added
[x] Documentation Added
~Name of contributors Added to AUTHORS.rst~
[x] Description in RELEASE_NOTES.md Added

Description of PR
This PR implements the explicit signature for categorize() and marks the existing signature and the top-level function as deprecated (to be removed for release 3.0) similar to #804 for the validate() method.
For explanation: the rationale for the top-level function pyam.categorize(df) made sense only because it allowed to apply filters by other dimensions (model, scenario, region, unit) in addition to the criteria based on variable and years. The new signature allows to directly slice-and-validate on any dimension.

As noted in #819, the feature was implemented as described. I'm indifferent whether this gets merged or the other.

LGTM, thanks @danielhuppmann also for adding some tests =)

Learned from the best about being careful of having complete documentation and good test coverage... And I didn't want to be all nitpicky about your PR.


Update version numbers to 4.3.1 -- a new development version

This PR is now under review (see the table in the PR description). To help with the review process, please do not force push to the branch.

Merged in next for testing...


response_type! macro doesn't allow for top level Array responses

The current response_type! macro is built in such a way that it only JSON that has an object at its top level can be parsed. However, new endpoints were made that return a top level Array instead: https://listenbrainz.readthedocs.io/en/latest/users/api/popularity.html
While I'm able to implement the endpoints, I have no experience in macros. Would be nice to have it fixed so I can implement them.

Thanks for raising this!
Not sure if it'd be of any help, but there is the following documentation on writing macros: https://veykril.github.io/tlborm/

Temporary fixed it with a generic struct. Which may(?) be better than a macro, as the responses aren't edited at all from the LB documentaion
/// A generic response type for listenbrainz responses
#[derive(Deserialize)]
pub struct ListenbrainzResponse<T: Deserialize> {
    pub rate_limit: Option<RateLimit>,
    pub data: T
}

impl<T: Deserialize> ResponseType for ListenbrainzResponse<T> {
fn from_response(response: Response) -> Result<Self, Error> {
    let response = Error::try_from_error_response(response)?;

    let mut inner_data: T = response.json()?;
    let rate_limit = RateLimit::from_headers(&response);

    Ok(Self {
        rate_limit,
        data: inner_data,
    })
}
}

Temporary fixed it with a generic struct. Which may(?) be better than a macro, as the responses aren't edited at all from the LB documentaion
But yeah... Learning macro is something that needs a lot of time still
/// A generic response type for listenbrainz responses
#[derive(Deserialize)]
pub struct ListenbrainzResponse<T: Deserialize> {
    pub rate_limit: Option<RateLimit>,
    pub data: T
}

impl<T: Deserialize> ResponseType for ListenbrainzResponse<T> {
fn from_response(response: Response) -> Result<Self, Error> {
    let response = Error::try_from_error_response(response)?;

    let mut inner_data: T = response.json()?;
    let rate_limit = RateLimit::from_headers(&response);

    Ok(Self {
        rate_limit,
        data: inner_data,
    })
}
}

Ooh I like that approach, does this work for every response? Because the less macro use the better, honestly :smile:

It clippy doesn't complain... So It's fine. Then you just need to put your Vec into a type:
// ---------- popularity/recording

pub type PopularityRecordingResponse = Vec<PopularityTopRecordingsForArtistResponseItem>;

#[derive(Debug, Deserialize, Serialize, Clone, PartialEq, Eq)]
pub struct PopularityRecordingResponseItem {
    pub recording_mbid: String,
    pub total_listen_count: u64,
    pub total_user_count: u64
}

But well...  A PR is better than words, so I'm going to make a draft PR to expose the changes

Perfect!

I really like this approach. I detest macros, generics FTW!
Really pleased with the code sample above @RustyNova016 - great job. Let's get the remaining PRs in, then work out a strategy on refactoring to use generics. We should open a tracking issue, and link each PR in with that.

Macros are great, but not developer friendly. I got an issue in the musicbrainz crate and can't fix it because of a complicated macro system...
Eitherway, I need to do the generic way for #34, so that's one less to do.


Failed to get jedi-language-server version

Trying to get Jedi working but ultimately receiving a silent (or not so silent) failure somewhere and it ends up running but not actually doing anything, no error hints, no nothing.
Here is my test file jedy.py which generates zero Problems in the tab:
#!/usr/bin/env python

test = zTask(id=1234, dueDate='baf')
print(test)
sszzz
s

/home/c0rn3j/.vscode/extensions/ms-python.python-2024.4.0/python_files/jedilsp_requirements/ does not seem to exist at all.
2024-04-10 13:51:10.171 [debug] Failed to get jedi-language-server version:  [Error: ENOENT: no such file or directory, open '/home/c0rn3j/.vscode/extensions/ms-python.python-2024.4.0/python_files/jedilsp_requirements/requirements.txt'] {
  errno: -2,
  code: 'ENOENT',
  syscall: 'open',
  path: '/home/c0rn3j/.vscode/extensions/ms-python.python-2024.4.0/python_files/jedilsp_requirements/requirements.txt'
}

Can't provide the debug info because that's also broken.
2024-04-10 13:59:53.492 [error] TypeError: Cannot read properties of undefined (reading 'localeCompare')
	at /home/c0rn3j/.vscode/extensions/ms-python.python-2024.4.0/out/client/extension.js:2:103188
	at Array.sort (<anonymous>)
	at _.openReportIssue (/home/c0rn3j/.vscode/extensions/ms-python.python-2024.4.0/out/client/extension.js:2:103149)
	at async d.h (/usr/lib/code/out/vs/workbench/api/node/extensionHostProcess.js:152:186866) python.reportIssue {"value":"ms-python.python","_lower":"ms-python.python"}
2024-04-10 14:01:43.791 [error] TypeError: Cannot read properties of undefined (reading 'localeCompare')
	at /home/c0rn3j/.vscode/extensions/ms-python.python-2024.4.0/out/client/extension.js:2:103188
	at Array.sort (<anonymous>)
	at _.openReportIssue (/home/c0rn3j/.vscode/extensions/ms-python.python-2024.4.0/out/client/extension.js:2:103149)
	at async d.h (/usr/lib/code/out/vs/workbench/api/node/extensionHostProcess.js:152:186866) python.reportIssue {"value":"ms-python.python","_lower":"ms-python.python"}

EDIT: That's a race condition I guess, nevermind that:
024-04-10 15:21:35.979 [info] [Trace - 15:21:35] Sending request 'textDocument/documentHighlight - (34)'.
2024-04-10 15:21:35.979 [info] Params: {
    "textDocument": {
        "uri": "file:///home/c0rn3j/Nextcloud/HugeFiles/Projects/Nyx/main.py"
    },
    "position": {
        "line": 25,
        "character": 32
    }
}

2024-04-10 15:21:35.980 [info] [Trace - 15:21:35] Sending notification '$/cancelRequest'.
2024-04-10 15:21:35.980 [info] Params: {
    "id": 34
}

2024-04-10 15:21:35.982 [info] [Trace - 15:21:35] Received response 'textDocument/documentHighlight - (34)' in 3ms.
2024-04-10 15:21:35.982 [info] Result: [
    {
        "range": {
            "start": {
                "line": 25,
                "character": 27
            },
            "end": {
                "line": 25,
                "character": 32
            }
        }
    },
    {
        "range": {
            "start": {
                "line": 586,
                "character": 26
            },
            "end": {
                "line": 586,
                "character": 31
            }
        }
    }
]

2024-04-10 15:21:35.982 [info] WARNING:pygls.protocol:Cancel notification for unknown message id "34"

VSC  About:
Version: 1.88.0
Commit: 5c3e652f63e798a5ac2f31ffd0d863669328dc4c
Date: 2024-04-05T09:25:05.142Z
Electron: 28.2.10
ElectronBuildId: undefined
Chromium: 120.0.6099.291
Node.js: 18.18.2
V8: 12.0.267.19-electron.0
OS: Linux x64 6.8.2-arch2-1

CTRL+SHIFT+P and selecting Developer: Restart Extension Host while having Output tab open with logging changed to debug is a good repro.
Python Language Server tab is just these lines with breaks in between
2024-04-10 14:12:00.098 [info] WARNING:pygls.protocol:Cancel notification for unknown message id "1"

2024-04-10 14:12:00.113 [info] WARNING:pygls.protocol:Cancel notification for unknown message id "2"

2024-04-10 14:12:01.471 [info] WARNING:pygls.protocol:Cancel notification for unknown message id "7"

Full Python log, deduped:
2024-04-10 14:16:02.930 [debug] Start watching file for changes /home/c0rn3j/.conda/environments.txt
2024-04-10 14:16:02.930 [debug] Start watching: /home/c0rn3j/.conda with pattern environments.txt using VSCode API
2024-04-10 14:16:02.930 [debug] Start watching root /home/c0rn3j/Nextcloud/HugeFiles/Projects/configs for globs ["python","*/python","*/bin/python"]
2024-04-10 14:16:02.930 [debug] Start watching: /home/c0rn3j/Nextcloud/HugeFiles/Projects/configs with pattern python using VSCode API
2024-04-10 14:16:02.930 [debug] Start watching: /home/c0rn3j/Nextcloud/HugeFiles/Projects/configs with pattern */python using VSCode API
2024-04-10 14:16:02.930 [debug] Start watching: /home/c0rn3j/Nextcloud/HugeFiles/Projects/configs with pattern */bin/python using VSCode API
2024-04-10 14:16:02.930 [debug] Start watching root /home/c0rn3j/Nextcloud/HugeFiles/Projects/Nyx for globs ["python","*/python","*/bin/python"]
2024-04-10 14:16:02.930 [debug] Start watching: /home/c0rn3j/Nextcloud/HugeFiles/Projects/Nyx with pattern python using VSCode API
2024-04-10 14:16:02.930 [debug] Start watching: /home/c0rn3j/Nextcloud/HugeFiles/Projects/Nyx with pattern */python using VSCode API
2024-04-10 14:16:02.930 [debug] Start watching: /home/c0rn3j/Nextcloud/HugeFiles/Projects/Nyx with pattern */bin/python using VSCode API
2024-04-10 14:16:02.930 [debug] Start watching root /home/c0rn3j/AUR for globs ["python","*/python","*/bin/python"]
2024-04-10 14:16:02.930 [debug] Start watching: /home/c0rn3j/AUR with pattern python using VSCode API
2024-04-10 14:16:02.930 [debug] Start watching: /home/c0rn3j/AUR with pattern */python using VSCode API
2024-04-10 14:16:02.930 [debug] Start watching: /home/c0rn3j/AUR with pattern */bin/python using VSCode API
2024-04-10 14:16:02.930 [info] Default formatter is set to null for workspace /home/c0rn3j/Nextcloud/HugeFiles/Projects/configs
2024-04-10 14:16:02.930 [info] Default formatter is set to null for workspace /home/c0rn3j/Nextcloud/HugeFiles/Projects/Nyx
2024-04-10 14:16:02.930 [info] Default formatter is set to null for workspace /home/c0rn3j/AUR
2024-04-10 14:16:02.930 [debug] Waiting for test server to start...
2024-04-10 14:16:02.930 [info] Test server listening.
2024-04-10 14:16:02.930 [debug] Test server started.
2024-04-10 14:16:02.930 [debug] Testing: Setting up watcher for /home/c0rn3j/Nextcloud/HugeFiles/Projects/configs
2024-04-10 14:16:02.930 [debug] Testing: Setting up watcher for /home/c0rn3j/Nextcloud/HugeFiles/Projects/Nyx
2024-04-10 14:16:02.930 [debug] Testing: Setting up watcher for /home/c0rn3j/AUR
2024-04-10 14:16:02.930 [debug] Needed to validate /bin/python with latest info
2024-04-10 14:16:02.930 [info] Python interpreter path: /bin/python
2024-04-10 14:16:02.930 [debug] Found cached env for /bin/python
2024-04-10 14:16:02.940 [debug] Dump environment variables {
    "CASROOT": "/usr",
    "CHROME_DESKTOP": "code-oss.desktop",
    "CSF_DrawPluginDefaults": "/usr/share/opencascade/resources/DrawResources",
    "CSF_EXCEPTION_PROMPT": "1",
    "CSF_IGESDefaults": "/usr/share/opencascade/resources/XSTEPResource",
    "CSF_LANGUAGE": "us",
    "CSF_MDTVTexturesDirectory": "/usr/share/opencascade/resources/Textures",
    "CSF_MIGRATION_TYPES": "/usr/share/opencascade/resources/StdResource/MigrationSheet.txt",
    "CSF_OCCTResourcePath": "/usr/share/opencascade/resources",
    "CSF_PluginDefaults": "/usr/share/opencascade/resources/StdResource",
    "CSF_SHMessage": "/usr/share/opencascade/resources/SHMessage",
    "CSF_STEPDefaults": "/usr/share/opencascade/resources/XSTEPResource",
    "CSF_ShadersDirectory": "/usr/share/opencascade/resources/Shaders",
    "CSF_StandardDefaults": "/usr/share/opencascade/resources/StdResource",
    "CSF_StandardLiteDefaults": "/usr/share/opencascade/resources/StdResource",
    "CSF_TObjDefaults": "/usr/share/opencascade/resources/StdResource",
    "CSF_TObjMessage": "/usr/share/opencascade/resources/TObj",
    "CSF_XCAFDefaults": "/usr/share/opencascade/resources/StdResource",
    "CSF_XSMessage": "/usr/share/opencascade/resources/XSMessage",
    "CSF_XmlOcafResource": "/usr/share/opencascade/resources/XmlOcafResource",
    "CUDA_PATH": "/opt/cuda",
    "DBUS_SESSION_BUS_ADDRESS": "unix:path=/run/user/1000/bus",
    "DEBUGINFOD_URLS": "https://debuginfod.archlinux.org ",
    "DESKTOP_SESSION": "plasma",
    "DISPLAY": ":1",
    "DRAWDEFAULT": "/usr/share/opencascade/resources/DrawResources/DrawDefault",
    "DRAWHOME": "/usr/share/opencascade/resources/DrawResources",
    "ELECTRON_NO_ATTACH_CONSOLE": "1",
    "ELECTRON_OZONE_PLATFORM_HINT": "auto",
    "GDK_BACKEND": "wayland",
    "GTK2_RC_FILES": "/etc/gtk-2.0/gtkrc:/home/c0rn3j/.gtkrc-2.0:/home/c0rn3j/.config/gtkrc-2.0",
    "GTK_RC_FILES": "/etc/gtk/gtkrc:/home/c0rn3j/.gtkrc:/home/c0rn3j/.config/gtkrc",
    "HG": "/usr/bin/hg",
    "HOME": "/home/c0rn3j",
    "INVOCATION_ID": "f74a5d0f08724979857e038723b0c164",
    "JOURNAL_STREAM": "8:66358",
    "KDE_APPLICATIONS_AS_SCOPE": "1",
    "KDE_FULL_SESSION": "true",
    "KDE_SESSION_UID": "1000",
    "KDE_SESSION_VERSION": "6",
    "LANG": "en_GB.UTF-8",
    "LOGNAME": "c0rn3j",
    "MAIL": "/var/spool/mail/c0rn3j",
    "MANAGERPID": "12072",
    "MEMORY_PRESSURE_WATCH"<EMAIL_ADDRESS>    "MEMORY_PRESSURE_WRITE": "c29tZSAyMDAwMDAgMjAwMDAwMAA=",
    "MMGT_CLEAR": "1",
    "MOTD_SHOWN": "pam",
    "NO_AT_BRIDGE": "1",
    "NVCC_PREPEND_FLAGS": "-ccbin /opt/cuda/bin",
    "OLDPWD": "/home/c0rn3j",
    "ORIGINAL_XDG_CURRENT_DESKTOP": "KDE",
    "PAM_KWALLET5_LOGIN": "/run/user/1000/kwallet5.socket",
    "PGDATA": "/var/lib/postgres/data",
    "PWD": "/home/c0rn3j",
    "QT_AUTO_SCREEN_SCALE_FACTOR": "0",
    "QT_WAYLAND_RECONNECT": "1",
    "SESSION_MANAGER": "local/Luxuria:@/tmp/.ICE-unix/12647,unix/Luxuria:/tmp/.ICE-unix/12647",
    "SHELL": "/bin/zsh",
    "SHLVL": "0",
    "SSH_AUTH_SOCK": "/run/user/1000/gcr/ssh",
    "SYSTEMD_EXEC_PID": "12666",
    "USER": "c0rn3j",
    "VSCODE_AMD_ENTRYPOINT": "vs/workbench/api/node/extensionHostProcess",
    "VSCODE_CLI": "1",
    "VSCODE_CODE_CACHE_PATH": "/home/c0rn3j/.config/Code/CachedData/5c3e652f63e798a5ac2f31ffd0d863669328dc4c",
    "VSCODE_CRASH_REPORTER_PROCESS_TYPE": "extensionHost",
    "VSCODE_CWD": "/home/c0rn3j",
    "VSCODE_HANDLES_UNCAUGHT_ERRORS": "true",
    "VSCODE_IPC_HOOK": "/run/user/1000/vscode-6e86ed9d-1.88-main.sock",
    "VSCODE_NLS_CONFIG": "{\"locale\":\"en-us\",\"osLocale\":\"en-gb\",\"availableLanguages\":{},\"_languagePackSupport\":true}",
    "VSCODE_PID": "1615179",
    "WAYLAND_DISPLAY": "wayland-0",
    "XAUTHORITY": "/run/user/1000/xauth_wRksSz",
    "XDG_CONFIG_DIRS": "/home/c0rn3j/.config/kdedefaults:/etc/xdg",
    "XDG_CURRENT_DESKTOP": "KDE",
    "XDG_DATA_DIRS": "/home/c0rn3j/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share:/usr/share",
    "XDG_MENU_PREFIX": "plasma-",
    "XDG_RUNTIME_DIR": "/run/user/1000",
    "XDG_SEAT": "seat0",
    "XDG_SEAT_PATH": "/org/freedesktop/DisplayManager/Seat0",
    "XDG_SESSION_CLASS": "user",
    "XDG_SESSION_DESKTOP": "KDE",
    "XDG_SESSION_ID": "2",
    "XDG_SESSION_PATH": "/org/freedesktop/DisplayManager/Session1",
    "XDG_SESSION_TYPE": "wayland",
    "XDG_VTNR": "1",
    "ELECTRON_RUN_AS_NODE": "1",
    "PATH": "/opt/jython/bin/:/usr/local/sbin:/usr/local/bin:/usr/bin:/opt/cuda/bin:/opt/cuda/nsight_compute:/opt/cuda/nsight_systems/bin:/home/c0rn3j/.local/share/flatpak/exports/bin:/var/lib/flatpak/exports/bin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/usr/sbin:/usr/lib/rustup/bin:/home/c0rn3j/.local/bin"
}
2024-04-10 14:16:02.943 [info] > pyenv which python
2024-04-10 14:16:02.943 [info] cwd: ~/Nextcloud/HugeFiles/Projects/configs
2024-04-10 14:16:02.976 [debug] Terminal name '' identified as shell 'other'
2024-04-10 14:16:02.976 [debug] Terminal shell path '/usr/bin/zsh' identified as shell 'zsh'
2024-04-10 14:16:02.976 [debug] Shell identified as zsh (Terminal name is )
2024-04-10 14:16:02.977 [debug] Found cached env for /bin/python
2024-04-10 14:16:03.205 [debug] Received shell integration sequence for zsh
2024-04-10 14:16:03.386 [info] Starting Jedi language server for configs.
2024-04-10 14:16:03.386 [debug] Found cached env for /bin/python
2024-04-10 14:16:03.387 [debug] Terminal shell path '/usr/bin/zsh' identified as shell 'zsh'
2024-04-10 14:16:03.387 [debug] Shell identified as zsh
2024-04-10 14:16:03.387 [debug] Found cached env for /bin/python
2024-04-10 14:16:03.899 [debug] Delay Trigger[Test Configuration Change]: triggered=3, called=1
2024-04-10 14:16:06.237 [debug] Found cached env for /bin/python
2024-04-10 14:16:06.713 [debug] Testing: Trigger refresh after saving /home/c0rn3j/Nextcloud/HugeFiles/Projects/Nyx/main.py
2024-04-10 14:16:06.980 [debug] Delay Trigger[Refresh Test Data]: triggered=5, called=1
2024-04-10 14:16:06.980 [info] Discover tests for workspace name: Nyx - uri: /home/c0rn3j/Nextcloud/HugeFiles/Projects/Nyx/main.py
2024-04-10 14:16:07.666 [debug] Testing: Trigger refresh after saving /home/c0rn3j/Nextcloud/HugeFiles/Projects/Nyx/main.py
2024-04-10 14:16:07.916 [debug] Delay Trigger[Refresh Test Data]: triggered=10, called=2
2024-04-10 14:16:07.916 [info] Discover tests for workspace name: Nyx - uri: /home/c0rn3j/Nextcloud/HugeFiles/Projects/Nyx/main.py
2024-04-10 14:16:08.498 [debug] Found cached env for /bin/python
2024-04-10 14:16:08.525 [info] > pyenv which python
2024-04-10 14:16:08.525 [info] cwd: ~/Nextcloud/HugeFiles/Projects/Nyx
2024-04-10 14:16:08.550 [debug] Found cached env for /bin/python
2024-04-10 14:16:08.853 [info] Starting Jedi language server for Nyx.
2024-04-10 14:16:08.853 [debug] Found cached env for /bin/python
2024-04-10 14:16:09.771 [debug] Testing: Trigger refresh after saving /home/c0rn3j/Nextcloud/HugeFiles/Projects/Nyx/jedi.py
2024-04-10 14:16:10.024 [debug] Delay Trigger[Refresh Test Data]: triggered=15, called=3
2024-04-10 14:16:10.024 [info] Discover tests for workspace name: Nyx - uri: /home/c0rn3j/Nextcloud/HugeFiles/Projects/Nyx/jedi.py
2024-04-10 14:16:10.765 [debug] Testing: Trigger refresh after saving /home/c0rn3j/Nextcloud/HugeFiles/Projects/Nyx/jedi.py
2024-04-10 14:16:11.014 [debug] Delay Trigger[Refresh Test Data]: triggered=20, called=4
2024-04-10 14:16:11.014 [info] Discover tests for workspace name: Nyx - uri: /home/c0rn3j/Nextcloud/HugeFiles/Projects/Nyx/jedi.py
2024-04-10 14:16:11.709 [debug] Received shell integration sequence for zsh
2024-04-10 14:16:17.808 [debug] Terminal name '' identified as shell 'other'
2024-04-10 14:16:17.808 [debug] Terminal shell path '/usr/bin/zsh' identified as shell 'zsh'
2024-04-10 14:16:17.808 [debug] Shell identified as zsh (Terminal name is )
2024-04-10 14:16:17.808 [debug] Found cached env for /bin/python
2024-04-10 14:16:18.030 [debug] Received shell integration sequence for zsh
2024-04-10 14:16:19.666 [debug] Found cached env for /bin/python
2024-04-10 14:16:29.604 [debug] Testing: Trigger refresh after saving /home/c0rn3j/Nextcloud/HugeFiles/Projects/Nyx/jedi.py
2024-04-10 14:16:29.853 [debug] Delay Trigger[Refresh Test Data]: triggered=25, called=5
2024-04-10 14:16:29.853 [info] Discover tests for workspace name: Nyx - uri: /home/c0rn3j/Nextcloud/HugeFiles/Projects/Nyx/jedi.py
2024-04-10 14:16:31.174 [debug] Testing: Trigger refresh after saving /home/c0rn3j/Nextcloud/HugeFiles/Projects/Nyx/jedi.py
2024-04-10 14:16:31.424 [debug] Delay Trigger[Refresh Test Data]: triggered=30, called=6
2024-04-10 14:16:31.424 [info] Discover tests for workspace name: Nyx - uri: /home/c0rn3j/Nextcloud/HugeFiles/Projects/Nyx/jedi.py
2024-04-10 14:16:34.378 [debug] Found cached env for /bin/python

EDIT: jedi.py test example renamed to jedy.py to not confuse imports.
Extensions:
# code --list-extensions
brunnerh.file-properties-viewer
charliermarsh.ruff
eamodio.gitlens
golang.go
hediet.vscode-drawio
johnpapa.vscode-peacock
johnstoncode.svn-scm
marlinfirmware.auto-build
mechatroner.rainbow-csv
ms-azuretools.vscode-docker
ms-python.debugpy
ms-python.python # v2024.4.0
ms-vscode.cmake-tools
ms-vscode.cpptools
ms-vscode.powershell
ms-vscode.vscode-serial-monitor
oderwat.indent-rainbow
platformio.platformio-ide
redhat.ansible
redhat.vscode-yaml
simonsiefke.svg-preview
timonwong.shellcheck
twxs.cmake
vsciot-vscode.vscode-arduino

settings.json
{
	"git.confirmSync": false,
	"editor.renderWhitespace": "boundary",
	"window.zoomLevel": -1,
	"git.autofetch": true,
	"editor.detectIndentation": false,
	"editor.tabSize": 2,
	"editor.insertSpaces": false,
	"explorer.confirmDelete": false,
	"files.trimTrailingWhitespace": true,
	"files.trimFinalNewlines": true,
	"files.insertFinalNewline": true,
	"diffEditor.ignoreTrimWhitespace": false,
	"files.associations": {
		"*.yml": "ansible",
		"*.yaml": "ansible"
	},
	"python.languageServer": "Jedi",
	"redhat.telemetry.enabled": false
}

On a side note, defining pyenv for env detection and then not having it installed will log an error to debug, instead of actually catching it and informing user via a notification, or at least not having the error be a debug level.
2024-04-10 13:51:10.145 [debug] [Error: Command failed: pyenv which python
/bin/sh: line 1: pyenv: command not found

  at ChildProcess.exithandler (node:child_process:422:12)
  at ChildProcess.emit (node:events:529:35)
  at maybeClose (node:internal/child_process:1098:16)
  at Socket.<anonymous> (node:internal/child_process:450:11)
  at Socket.emit (node:events:517:28)
  at Pipe.<anonymous> (node:net:350:12)] {
  code: 127,
  killed: false,
  signal: null,
  cmd: 'pyenv which python'
}

Thanks for reporting this. This is a bug.


Add a basic description to the readme

The purpose of this project isn't clear unless the reader already knows it

Fixed


Fix build with template-haskell-2.11

GHC 8.0 (specifically, template-haskell-<IP_ADDRESS>) introduces some breaking API changes, so this PR uses CPP to get around them. Fixes #11.

@liyang bump we'd need a GHC8 compatible package as important packages such as criterion depend on this...

Bumpy bump.

Travis failure is spurious, build just needs to be restarted.

NMU'ed via http://hackage.haskell.org/package/vector-th-unbox-<IP_ADDRESS>

@RyanGlScott this PR is obsoleted by #14, please close this one to avoid confusion


Do not dial peers that allegedly don't listen

Fixes https://github.com/itchysats/itchysats/issues/2763.

It would be great if you could add a contained protocol test for this! I think we should be able to quite easily spin up a setup where we can test this behavior.

I think I did try for a bit and it was annoying. But I'll try again!

bors r+


Catalog Drop functionality Added

The catalog now supports dropping table metadata(dropping a specific column in a table is not enabled)
Missing test cases for catalog added
Integration test case added

Is it worth having a function to drop/reinstate Catalogmanager on request. Current code base shares one Catalogmanager, and once it is created upon the first call, all the following calls reuse the created one.
This creates problem. For example, in test_catalog_manager.py, init_db, DatasetService, DatasetColumnService are mocked functions, so the created Catalogmanager is not functional. However, the later integration test will reuse this dysfunctional Catalogmanager by default.


Enforce 'record' is of type hash, or update the documentation

According to the fluent plugin docs at http://docs.fluentd.org/articles/plugin-development 'record' is required to be a Hash object, but this is not enforced inside of fluentd.
If the documentation is correct, then fluentd should enforce this, otherwise the documentation should be updated.
Enforcement may be problematic since it may break existing uses.  For example, see https://github.com/fluent/fluent-logger-python/issues/34 where the python logger emits a string.  Granted, that issue should be fixed independently, but it would be difficult to determine if there are other similar cases.  A gentler approach may be to try to recover from this situation by parsing the string or placing it in record['message']
I noted that there are at least some output plugins that discard anything that is not a hash, i.e. elasticsearch: https://github.com/uken/fluent-plugin-elasticsearch/blob/master/lib/fluent/plugin/out_elasticsearch.rb#L125
My own plugin (google-cloud) currently throws an exception when this happens.

Enforcement may be problematic since it may break existing uses. For example, see fluent/fluent-logger-python#34 where the python logger emits a string.

Hmm... this seems a bug of fluent-logger-python. I will fix it later.
Other clients don't send string record. For example, fluent-logger-ruby validates the record type https://github.com/fluent/fluent-logger-ruby/blob/master/lib/fluent/logger/logger_base.rb#L26 and other statically typed language loggers also support only Hash.

A gentler approach may be to try to recover from this situation by parsing the string or placing it in record['message']

I assume this problem happens on only in_forward with buggy logger situation so making hash record with string record is not needed. In addition, automatic convert is not good for some users. For example, if an user uses RDBMS like output, it may cause a schema mismatch error.

I noted that there are at least some output plugins that discard anything that is not a hash, i.e.

This behaviour seems acceptable because output plugin doesn't know how to handle this.
Dumpling invalid record to error / warning may be good.
Other possible solution is dumping invalid records to error / warning log in input plugin. Maybe in_forward.

fluent-logger-python is fixed.
I close this issue. If you hit similar problem, please reopen this issue.


Switch to 'apiextensions.k8s.io/v1'.

Initial work on migrating to apiextensions.k8s.io/v1 for Kubernetes 1.22+ support. The intention is to see what breaks and fix it in subsequent iterations — hence being marked as draft.
Closes #762.

@bmcustodio thanks a lot for your contribution
did you try to run e2e ./tests?
I hope did you see my comment, https://github.com/Altinity/clickhouse-operator/issues/762#issuecomment-916251375
do you have worked additional printed columns?

We need to keep manifests both for old and new k8s versions. There could be k8s users with 1.16 and earlier.

Thanks a lot for your contributing, according to your changes we also add description and remove nullable, so kubectl explain works now


Bug Bash Feedback: create a shorthand flag name for --project

archer env has a few subcommands which all take the --project flag. It could be more convenient to use a shorthand -p.

Resolved :D


Hash_genesis_block, genesis_block, bech32

I'm having trouble creating a network (OutOfRangeException for genesis_block) using the NBitcoin library, I'd like to know if my genesis_block, hash_genesis_block and bech32 are correct.
This is my file coinparams.json :
"XVG": {
"meta": {
"symbol": "XVG",
"name": "Verge",
"supply": {
"max": "16555000000"
},
"web": {
"websites": [
"http://vergecurrency.com/"
],
"announcement": "https://bitcointalk.org/index.php?topic=1365894.0",
"source_code": "https://github.com/vergecurrency/VERGE",
"explorers": [
"https://verge-blockchain.info/"
],
"coinmarketcap": "https://coinmarketcap.com/currencies/verge/",
"message_board": [],
"chat": [
"https://t.me/VERGExvg",
"https://discord.gg/vergecurrency"
]
},
"original_codebase": "bitcoin"
},
"main": {
"symbol": "XVG",
"name": "Verge - Mainnet",
"testnet": false,
"port": 21102,
"port_rpc": 20102,
"protocol": {
"magic": "0xf7a77eff"
},
"seeds_dns": [],
"prefixes": {
"public": 30,
"scripthash": 33,
"private": 158,
"bech32": "vg",
"bip44": 77,
"extended": {
"xpub": {
"public": "0x0488b21e",
"private": "0x0488ade4",
"undefined_used_btc": true
},
"ypub": {
"public": "0x049d7cb2",
"private": "0x049d7878",
"undefined_used_btc": true
},
"zpub": {
"public": "0x04b24746",
"private": "0x04b2430c",
"undefined_used_btc": true
},
"Ypub": {
"public": "0x0295b43f",
"private": "0x0295b005",
"undefined_used_btc": true
},
"Zpub": {
"public": "0x02aa7ed3",
"private": "0x02aa7a99",
"undefined_used_btc": true
}
}
},
"hash_genesis_block": "00000fc63692467faeb20cdb3b53200dc601d75bdfa1001463304cc790d77278",
"genesis_block": "01000000000000000000000000000000000000000000000000000000000000000000000000fd75e6dce5e8c50ed0df2b0b73c2c37c8329d837ec3aec1e7151915d27831c74d23654ffff0f1ea77a1600010100000074d23654010000000000000000000000000000000000000000000000000000000000000000ffffffff1b04ffff001d0104134e616d653a20446f6765636f696e204461726bffffffff010000000000000000000000000000",
"message_magic": "\u0016VERGE Signed Message:\n",
"decimals": 6
}

@artem03 my first guess would be that it isnt accounting for nTime, since verge was originally built on a PoS codebase

not set lock time. transactions require nTime in them, like peercoin does.

NBitcoin library doesn't have nTime(

you can add it to the transaction. block headers have ntime as well.

How is this possible to do in c#?

@artem03 when creating the tx, just add the current time to it as an input.

Maybe it's a stupid question, but how can I add the current time to the inputs when creating a tx if the set of inputs in the NBitcoin library is
public class TxIn : IBitcoinSerializable
{
protected OutPoint prevout;
protected Script scriptSig;
protected uint nSequence;
	public TxIn();
	public TxIn(Script scriptSig);
	public TxIn(OutPoint prevout);
	public TxIn(OutPoint prevout, Script scriptSig);

	public Script ScriptSig { get; set; }
	public OutPoint PrevOut { get; set; }
	public Sequence Sequence { get; set; }
	public bool IsFinal { get; }
	//
	// Summary:
	//     The witness script (Witness script is not serialized and deserialized at the
	//     TxIn level, but at the Transaction level)
	public WitScript WitScript { get; set; }

	public static TxIn CreateCoinbase(int height);
	public virtual TxIn Clone();
	public virtual ConsensusFactory GetConsensusFactory();
	//
	// Summary:
	//     Try to get the expected scriptPubKey of this TxIn based on its scriptSig and
	//     witScript.
	//
	// Returns:
	//     Null if could not infer the scriptPubKey, else, the expected scriptPubKey
	public IDestination GetSigner();
	public bool IsFrom(PubKey pubKey);
	public virtual void ReadWrite(BitcoinStream stream);
}

you said the error was "OutOfRangeException for genesis_block" which means that the time was not correct. can you post the transaction you are trying to create so we can decode it and take a look at what is right/wrong?

@justinvforvendetta Yes
"01000000017e2eca0dd8895cd76a72d9a791cf7726af52597519d6eafa0616bb9bb3a7bcec010000006a47304402205693c1e1e0ca52d0bedfc1141c625ecfe60b608fe5bed365521d004d44d51a9802206038ac1e487800445dfdd6a0060e923d7f910dbe5b50b864edc7f0aaa4eb4f6e01210335853e8aad83c40a7e16768769176e09ef83abe000f3d97170fd597ecd5b29dcffffffff02400d0300000000001976a914b0b19e61f007659cd6c3b889dc400ad1e0ffd57388ac400d0300000000001976a914eb1a7947ba7b247b051e1ede0c09b41d25ae0ba388ac00000000"

@artem03
{
"asm": "0 0 0 126 ca0dd8895cd76a72d9a791cf7726af52597519d6eafa0616bb9bb3a7bcec010000006a47304402205693c1e1e0ca 2 OP_UNKNOWN OP_UNKNOWN OP_UNKNOWN OP_UNKNOWN 1c625ecfe60b608fe5bed365521d004d44d51a98 24608 ac1e487800445dfdd6a0060e923d7f910dbe5b50b864edc7f0aaa4eb4f6e01210335853e8aad83c40a7e16768769176e09ef83abe000f3d9 OP_2ROT OP_2OVER OP_UNKNOWN 9 OP_CAT OP_UNKNOWN 11 dcffffffff02400d0300000000001976a914b0b19e61f007659cd6c3b889dc400ad1e0ffd57388ac40<PHONE_NUMBER>001976a914eb1a79 [error]",
"type": "nonstandard",
"p2sh": "EPnW273pH66PZS1QAFGM9JmkikU5sDAv7Y",
"segwit": {
"asm": "0 351173eb40cca75207b9fe98c2bf63334747b463a91cfcbc9374cabd11c37784",
"hex": "0020351173eb40cca75207b9fe98c2bf63334747b463a91cfcbc9374cabd11c37784",
"reqSigs": 1,
"type": "witness_v0_scripthash",
"addresses": [
"vg1qx5gh866qejn4ypael6vv90mrxdr50drr4yw0e0ynwn9t6ywrw7zqwq0tj8"
],
"p2sh-segwit": "EdhyuevrUz4j9B1hrH1CyCXhu98KBaD4SC"
}
}

if you use the https://vergeexplorer.com/ site, and click any tx, and then "JSON" it will show the decoded tx =]

btw we do not use segwit


Add quotes around -w args for "riff service invoke"

quote args for curl's -w or --write-out flag if they contain \

also supports arg passed in as -w"\n"

Fixes #637

I'd like to add tests to the service invoke command first, but what about this proposal:
Why isn't curlPrintArgs just the shell* escaped version of curlCmd? Why should the -w flag be particular really? (I understand it has more chances of having bogus chars, but I think there is no particular reason for it to be special).
* What exactly "shell" means here is TBD. Also, "github.com/frioux/shellquote" looks like it would do the job

Closing in favor of #641


Add Volunteer and news page

Add the Volunteer page
Add the News page
Add the RSS link

The news page needs some work on the CSS, do you want to merge this one and I open a new one to work on it? @Mariatta

I'm ok with updating the CSS later

I'd like to work later on the volunteer page, so we can hide a bit of information like we do with the code of conduct https://conference.pyladies.com/about/


ci(disks): truncate disk names and improve disk name search in PRs

Previous behavior:
Some tests were not able to create a disk image as the following error was being raised
in GCP: Invalid value for field 'resource.name'. Must be a match of regex '(?:a-z?)'
Expected behavior:
Disk image names in GCP have a 61 characters max length constraint, and disks names
are being created with a length between 71 and 84 chars.
Solution:
This refactors the disk naming and the way we find the latest cached disk image.
Instead of searching the commit SHA of the current "running" commit, the first
search is focused on finding a disk from the actual PR, as matching the actual
commit will rarely be a match unless re-running a job, and even in this scenario
we can search in the PR and the latest disk will be returned from a successful run
Here's a disk name example with the longest name from a PR after this changes are
applied: zebrad-cache-4962-merge-v25-mainnet-checkpoint-update (53 chars long).
If a disk is manually triggered using workflow_dispatch the branch name must
be <= 18 characters so we truncate the branch name at disk creation and while
searching for an available disk name for the same branch.
Fixes https://github.com/ZcashFoundation/zebra/issues/4295
Review
This PR should be reviewed by @teor2345
Reviewer Checklist

[ ] Tests for Expected Behaviour
[ ] Tests for Errors

Follow Up Work

https://github.com/ZcashFoundation/zebra/issues/4964
https://github.com/ZcashFoundation/zebra/issues/4965

This refactors the disk naming and the way we find the latest cached disk image. Instead of searching the commit SHA of the current "running" commit, the first search is focused on finding a disk from the actual PR, as matching the actual commit will rarely be a match unless re-running a job, and even in this scenario we can search in the PR and the latest disk will be returned from a successful run

Unfortunately, the branch names in this PR will cause a regression to bug #4842, because the disk names are not unique. To be unique, the disk names need to contain the commit and timestamp.
We also don't want to prioritise previous commits from the same PR, because we want to be testing with the output of the current commit. (We've had bugs where the cached state created by previous commits worked, but the current commit was failing. While we can't avoid them entirely due to performance reasons, I don't want to make them more likely.)

We also don't want to prioritise previous commits from the same PR

I don't think we're prioritizing "previous commits" with this approach, we're just prioritizing the latest/actual commit from the same PR/branch, as we're filtering images by creation date.
To workaround https://github.com/ZcashFoundation/zebra/issues/4842 we can do as with templates, delete it if exists and create a new one. But as this error just happens when re-running on the same commit, the previous cached state and the actual cached state should be the same, we're just making the jobs run longer as we're not considering a potentially healthy image, and rebuilding it again (with the same code). As far as I'm concern, I don't expect Zebra to generate different cached states with the same codebase.

Ok, now I'm understanding the edge cases better. Thank you for taking the time for explaining it. I'd like to add this same answer somewhere in a document, maybe the same one you created for continuous integration

Ok, now I'm understanding the edge cases better. Thank you for taking the time for explaining it. I'd like to add this same answer somewhere in a document, maybe the same one you created for continuous integration

That sounds good, maybe we want to have the details next to the code, so we don't accidentally break things. I'll think about it later this week, and do an update to the workflow files. Once I've done that, I'll have a better idea of how I want to summarise it.

These edge cases are documented in PRs #4972 and #4973.


Build a CAP Application

Tutorials: https://developers.sap.com/tutorials/build-cap-app.html
At Step 3, the services are already annotated with @requires. However, steps to add test users are explained in the subsequent tutorial. If authentication is required at this stage, users will be prompted to log in, but they won't know how to authenticate.
Therefore, I believe the @requires annotation should be removed from this tutorial.

Hi @miyasuta,
Thanks for your feedback!
We've updated the code snippet. Here's how the tutorial looks like now: https://developers.sap.com/tutorials/build-cap-app.html#ba4a0026-578a-4202-a9cc-f16adb7f919b
Hence, I'll be closing this issue.
Best regards,
Sveto


Getting wrong credentials error message in zowe explorer.

I have got the credentials in my mail and I have used them correctly in the zowe explorer plugin. No matter what, everytime I am getting 'Invalid Credentials. Please ensure the username and password for mytest are valid or this may lead to a lock-out.'.

@f4him Please join the Open Mainframe Slack Channel. You will be supported there


Circleci project setup

All tests run on the circle-ci docker. SUMMARY

[ ] Broken CI/CD. Coverage failed.

Changes
6 issues (6 informational) were introduced and 1 issue was fixed.
added class/operation
crf_pos.normalization.normalizer.Normalizer.get_resources() added
TODO

[x] CI/CD pipeline PASSED
[x] Scrutinizer coverage ADDED
[x] Scrutinizer test PASSED
[x] CircleCI integrated


Task Text Vertical Alignment

In the preview image the task text next to the bar is vertically centered. However when using the library (and in the Live Demo) the task text is not vertically centered. Is there a way to adjust this? I would like it to be centered. Thanks!!

I figured it out. You can target this class _3KcaM which is the  in the SVG. Then use something like transform: translateY(4px); in your CSS file to move down.

I figured it out. You can target this class _3KcaM which is the in the SVG. Then use something like transform: translateY(4px); in your CSS file to move down.


removes month labels in timeScale

(closes #64)
Description
This bug was caused because timeScale it was using default behavior in d3Scale. I solved it adding timeYear from d3-time that returns data from year.
Types of changes

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

Checklist

[ ] I have documented all new methods.
[ ] I have written tests for all new methods/functionality.
[ ] I have written examples for all new methods/functionality.

@cnavarreteliz this is not a valid solution, as a user may be passing months as their ticks, and the axis will draw days in between. This issue should be addressed with d3plus-timeline directly, and I've created an issue there with the solution: https://github.com/d3plus/d3plus-timeline/issues/19


Allow Credentials in POST

client_id and client_secret can also be given via POST data. So added client_id and client_secret to Post namedtuple and trying to retrieve them via POST first. Auth Header if they were not found.
https://www.oauth.com/oauth2-servers/access-tokens/client-credentials/

@danygielow thank you for another great PR! I will take a look this evening, we have small issues in typing: https://github.com/aliev/aioauth/pull/24/checks?check_run_id=2001875113

Seems good with me.
Note on RFC6749 Section 3.2, Token Endpoint:

The client MUST use the HTTP "POST" method when making access token requests.

Codecov Report

Merging #24 (4049f5a) into master (0d790df) will increase coverage by 0.01%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master      #24      +/-   ##
==========================================
+ Coverage   99.26%   99.27%   +0.01%
==========================================
  Files          15       15
  Lines         541      549       +8
  Branches       55       56       +1
==========================================
+ Hits          537      545       +8
  Misses          3        3
  Partials        1        1

Impacted Files
Coverage Δ

src/aioauth/grant_type.py
100.00% <100.00%> (ø)

src/aioauth/requests.py
100.00% <100.00%> (ø)

Continue to review full report at Codecov.

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

All seems resolved. @aliev Everything looks good to me. 👍🏼

for me looks great as well :) @danygielow great job thank you! approved


Multiple repository

I have some confusion regarding the repository pattern.my question is can I use more than one repository, for example, UserRepository, QuestionRepository, AnotherThingRepository.trying to follow the Single responsibility principle, and then create a Wrapper repository to hold all the repos.

@BishoyAbd You can create as many repositories as you need for your projects needs... with that said you should create repositories that are specific and not accessing data outside of their domain to stick to the SRP. Like the User repository should not return data that the QuestionRepository should be returning. If that makes sense.

@alexwhb obviously that makes no sense. First of all, the repository pattern used in this project is quite different than what the uncle bob introduced in his work. He used it as Domain model gateway.  For the original question, you may have one repo for one entity if you follow bob's clean Arch...


Update styling based on design

This introduces styling for a number of elements that have changed or are being introduced.

Reviewer: @rcorral


fixed popup before redeeming happens

Description
//Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.
Fixes Jira Ticket #
Type of change
Please delete options that are not relevant.

[ ] New feature (non-breaking change which adds functionality)
[x] Bug fix (non-breaking change which fixes an issue)
[x] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] This change requires a documentation update

Is this a UI Change? If so please include screenshot of before and after states below
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration
Checklist:

[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my own code
[x] I have assigned 2 reviewers to check my work
[x] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[ ] My changes generate no new warnings
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] New and existing unit tests pass locally with my changes
[ ] Any dependent changes have been merged and published in downstream modules

I created a new folder called bloc inside the lib folder, this folder should house all logic in the app, i also created a new Bloc called RedeemBloc with its corresponding states and events. this bloc is responsible for checking to see if there is a success or error in redeeming token.

@pearlson16
We have a new project recommendation and it seems to fall under the same difficulty of prioritising and I think this should be clarified.
The application should use a feature-driven directory structure.
Should we start with this feature/should this feature remain as is.
Maybe we should create a dedicated jira issue where a big chuck can be reorganised and then fix as we move forward.`

The application should use a feature-driven directory structure.

This is difficult to implement right away when dealing with bugs. We should migrate feature by feature, but it should be done by people with greater experience at start, so that others can have a point of reference moving forward.

I created a new folder called bloc inside the lib folder, this folder should house all logic in the app, i also created a new Bloc called RedeemBloc with its corresponding states and events. this bloc is responsible for checking to see if there is a success or error in redeeming token.

This ticket has gone far out of scope. If we are going to rework the project structure, we will create a specific ticket for it. Otherwise you are tasked with fixing the bug. If there are some minor improvements that can be made in pursuit of that go for it... but if you making sweeping changes that are going to affect everyone's work that is going to far.
Furthermore a bloc directory to house all the blocs is not what was put into the readme doc

Now i am getting confused i thought we agreed on making small changes, and gradually ramping up... So you want us to make work on the code as it is and then start all over again to make changes to the structure? that doesn't make any sense to me.

Now i am getting confused i thought we agreed on making small changes, and gradually ramping up... So you want us to make work on the code as it is and then start all over again to make changes to the structure? that doesn't make any sense to me.

It's not possible to fix those bugs and change the architecture at the same time. We will address the proposed changes when the time comes but separately not during bug fixes. Meanwhile, please try and adhere to the good practices as much as possible to make the migration a bit less hard.


Support for calculatedExpressions in _text element

Forwarded from a conversation with Heath on Teams.
It was raised that having support for calculatedExpressions within type=display items would allow the item.text to change dynamically.
Example:
{
  "linkId" : "3.5",
  "type" : "display",
  "_text" : {
    "extension" : [
      {
        "url" : "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-calculatedExpression",
        "valueExpression": {
          "description": "CVD Risk Score",
          "language": "text/fhirpath",
          "expression": "'Your CVD score '+ %cvdScore.round(0)"
        }
      }
    ]
  }
}

Also there's another note around having coding items to work with calculatedExpressions as well

@nielmdrec This is live now. It was raised by Heath a few weeks ago. You can test it out with the CalcExp Display Tester questionnaire.


Add Social icon in the footer

Add Social icon in the footer section.
Please assign this to me , i can add Social media in the footer section as i add the social media icon on the other projects also.
Here's the image of the footer section there is no social icons:

Please add labels to this issue and assign me this.

please assign me this issue i am gssoc24-extd contributer


Add clickable sorting by column to data table

Description
Allows users to sort by columns in the data table, either in ascending or descending order. Default sort order is provided.

Issue
ch136816
Test plan
Navigate to data tables, try sorting all the columns!
Live link: https://thuang-sort-frontend.dev.genepi.czi.technology

So cool, this functions really well!
@lvreynoso Does this PR cover the hover and active states or will that be a separate PR?

Yep, the hover states work.

I think @tihuan got them covered, because I didn't see any changes necessary.

@lvreynoso @tihuan I see the hover states on the text only (for the tooltip), but not the general hover state when I'm hovering inside of the cell hit area.

When hovering over the cell hit area, icon should show and text + icon color change to $gray-darkest /$gray-600

If the column is the active sort, the text and Icon also have a color and hover state for the text+icon

I might not have pointed to it well enough in the ticket, here's a breakdown of the different states for the column headers that might also be helpful: https://www.figma.com/file/uHpPNuDSBupK97ORCkH1op/Aspen-v0-to-v2?node-id=834%3A8439
Let me know if theres questions :)


Default and/or suggest environment for new notebooks

Suggestion 1 (previously selected kernel)
Pulled from issue #8530
From @abatomunkuev
Hello!
I think it would be great to change it to the environment that was previously used by the user and mark it as suggested so that the user doesn't have to specify the environment again.
Maybe for the initial start (very first start), we can ask the user: "what environment would you like to choose". Once the user selects the environment, we can mark it as suggested. From there, every time user creates a new notebook, the environment will belong to the one that the user has chosen previously (marked as "suggested").
Suggestion 2
If a conda environment is activated in the temrinal, and we launch VS Code from the terminal,
then pre-select the corresponding conda environment in new Notebooks.
Questions

Notebooks

These new rules could conflict with the active Python interpreter. Assume your active interpreter is PythonA, and based on Suggestion 1/2, the new kernel is CondaA. Would this confuse the user?

Interactive Window

Assume your active interpreter is PythonA, and based on Suggestion 1/2, the new kernel is CondaA.
Now user runs a cell against IW (via code cells in a *.py file), what would they expect?
I'd always expect the kernel to point to the active interpreter

@DonJayamanne what do you think?

will have alook at the vsc api to see if we can do something with the existing stuff.

Closing this as we've decided not to have any sugegstions for new notebooks as the algorithm will never be accurate
Solution: If we're 100% certain about the kernel, then suggest something, else let the user pick one from the kernelpicker


Restructured the directories and files

Fixes

Related to #16 by @Utkarsh4517
Description

Folders have been restructured as mentioned, bloc architecture has not yet been started will work on it soon.
Checklist

[x] My pull request has a descriptive title (not a vague title like Update index.md).
[x] My pull request targets the default branch of the repository (main or master).
[x] My commit messages follow best practices.
[x] My code follows the established code style of the repository.
[ ] I added or updated tests for the changes I made (if applicable).
[ ] I added or updated documentation (if applicable).
[x] I tried running the project locally and verified that there are no
visible errors.

While I appreciate your time and effort, but this is an incomplete PR related to issue #16. Feel free to ask your doubts at #16. 👍🏼


Undefined variable: "$input-border"

Line 55 of bower_components/awesome-bootstrap-checkbox/awesome-bootstrap-checkbox.scss: Undefined variable: "$input-border"

+1

Import Bootstrap (the variables at least) before awesome-bootstrap-checkbox.scss.

I have the same error, how i import the variables/bootstrap in gulp?

Hi. I am include the variables as '@import "../bower_components/bootstrap-sass/assets/stylesheets/bootstrap/_variables.scss"'.
It worked.

In 1.0.0-alpha.4 I'm hitting issue due to missing $input-border-color variable.
workaround:
$input-border-color: $input-border;

node_modules\awesome-bootstrap-checkbox\awesome-bootstrap-checkbox.scss
Error: Undefined variable: "$input-border-color".
    on line 53 of node_modules/awesome-bootstrap-checkbox/awesome-bootstrap-checkbox.scss

for 1.0.0-alpha.4 it is because you need to use bootstrap 4, not 3. version below 1.0.0-alpha is using bs3


Bump version to 1.2.2

Needed for 1.2.2 release of C#.

test this please

Known failures:
https://github.com/grpc/grpc/issues/10455