feat(protocol): calculate EIP1559 base fee on L1.

the L2's EIP-1559 basefee is now calculated using the AMM style math on L1 and is made part of the block metadata. Note that basefee for the next block only depends on the parent block ,not the block being proposed. This is to ensure basefee for next block is deterministic so users can chose their transaction settings correctly. Also note that this is not to be confused with the proposer/prover fees/rewards (feeBase) in TaikoToken. basefee is an Ether amount.
Implementation is incomplete and tests are not written, please review first before I spent more time on it.
@davidtaikocha In taiko-client, we need to make sure the EIP1559 base fees are not burnt, but send to the block beneficiary address together with 1559 tips.
After this PR: proposers pays:

Ether as transaction fees to L1 validators to include their transactions
Ether to Taiko DAO to buy block space, the amount to send is baseCharge1559 in the code, which is basefee * gasLimit.
Taiko Token to provers for proving their blocks.

@Brechtpd  please let me know if you want to have a quick chat.

Actually I will propose something different.


*: tiny cleanup

update rust-rocksdb to latest version
cleanup some codes
make assert_quorum more informative

After this pr, it should be able to compile TiKV on Windows, not a big deal, but still a nice-to-have. :)

LGTM

PTAL @hhkbp2

Rest LGTM

LGTM


DES: Added ValidationException.java

Have you read the Contributing Guidelines on Pull Requests?
Yes
Checklist

[X] I've read the contribution guidelines.
[X] I've checked the issue list before deciding what to submit.
[X] I've edited the README.md and link to my code.

Related Issues or Pull Requests
Issue Number: #1553

@HarshCasper please review the pull request once, if any changes/improvements/modifications needed please let me know about the respective.
Sequence Number: 08
Issue Number: #1553
Pull Request Number:  #2085

@HarshCasper please review the pull request once, if any changes/improvements/modifications needed please let me know about the respective.
Sequence Number: 08
Issue Number: #1553
Pull Request Number:  #2085

Please have a look at my review here and make the same changes: https://github.com/TesseractCoding/NeoAlgo/pull/2078

@PuravUdayDesai Please make the suggested change in all your DES related PRs so that we can proceed further.


Trying to emulate "A Deep Reinforced Model for Abstractive Summarization", trying to find where in code greedy/sampled distribution implemented

I'm trying to emulate A Deep Reinforced Model for Abstractive Summarization by
Romain Paulus, Caiming Xiong, Richard Socher
And I am trying to verify if everything is implemented correctly.
This image seems to be your map of the architecture described in the model
https://github.com/yaserkl/RLSeq2Seq/blob/master/docs/_img/selfcritic.png
I am guessing that y hat is y hat in the paper, and y hat ^g is equivalent to to y ^s in the paper?
https://snag.gy/suGJTk.jpg
If so, I was wondering where in the repo are these coded, how exactly does the parameters in this section lead to the loss function described in the paper?
https://github.com/yaserkl/RLSeq2Seq#policy-gradient-w-self-critic-learning-and-temporal-attention-and-intra-decoder-attention

y^hat is the sampling selection and y^hat^g is the greedy selection. The original paper has a typo in the equation 15. That equation cause a negative loss and we can't minimize it. That's why in our paper we fixed it by swapping the y^hat and y^hat^g.
Regarding the loss, we were never able to get the same results as to what has reported in this paper and the improvement over pointer-generator were very small.

Thanks for the insight!

Regarding the loss, we were never able to get the same results as to what has reported in this paper and the improvement over pointer-generator were very small.

I think many others were not able to reproduce the results. Many new summarization papers just use regular pointer generator networks for comparison, but they don't use RL. Though I've heard RL is very difficult in general.
Were there any architectures you've tried which resulted in noticeable improvements over pointer-generator networks?

y^hat is the sampling selection and y^hat^g is the greedy selection. The original paper has a typo in the equation 15. That equation cause a negative loss and we can't minimize it. That's why in our paper we fixed it by swapping the y^hat and y^hat^g.
Regarding the loss, we were never able to get the same results as to what has reported in this paper and the improvement over pointer-generator were very small.

One more question, was the low improvements in Rouge scores, or qualitative analysis of the summaries?


Endogenous editing or in-vitro constructs

This section of the README describes the use of controlled vocabulary terms for endogenous edit or in-vitro construct methods for library generation:
https://github.com/ave-dcd/mave_vocabulary/blob/96d3dcc0f59330ddd1d2ddcbf0b5ef9ff54a5cc4/README.md?plain=1#L137-L139
My understanding is that an experiment may generate a library via one of these mechanisms, not both. This has implications in schema, as the fields and valuesets required for endogenous editing experiments are distinct from in-vitro construct experiments. Examples of experiments where both types of library generation methods are used together would be very informative.
In addition, these types refer to discrete subschemas for the VariantLibrary.generationMethod:
https://github.com/ave-dcd/mave_vocabulary/blob/96d3dcc0f59330ddd1d2ddcbf0b5ef9ff54a5cc4/schema/experiment.yml#L197-L201
We should revise the README or schema to match, I suggest changing the README as the subschema approach allows for differences in required fields for in-vitro vs endogenous edit library methods.

Agreed. Closed by https://github.com/ave-dcd/mave_vocabulary/pull/6


License

Hi,
Is this a proprietary license?
If not, please specify the license at the top.
Thanks!

Hurrah! You licensed the work as MIT license! Thank you so much!!!
Look forward to further development. (In the interim, I am using OwnCloud for online file sharing, but I do like the layout of your work. I also really like the search engine. If there could also be anonymous [no log-in] search and download [read-only] I would super-happy!)

@pikurasa got it. i believe thats what you intended for #33. hopefully i can get to this soon. and glad you like it!

Yes, that is what I intended for #33. Design is cool, name is cool, it just feels pretty all-around cool.


Remove branch protection from repo

Opening an issue to keep track of the conversation.
Re: https://github.com/pixiebrix/webext-messenger/commit/24192c07d131f1714992e41d43a2c970d18b2daa#commitcomment-82700570

For our upcoming SOC-2 (security audit) we need to enable branch protections on any code that we publish

We don't publish webext-messenger directly to consumers, it's an npm dependency that is covered by the branch protections included in the extension itself. Adding a branch protection here is akin to requiring that every one of our npm dependencies must also be protected by us.
For that reason I don’t think we need to have branch protection here (also for your own ease of update)

@johnnymetz is it possible to mark a single repo as out of scope?

Ping. The publishing step fails due to the protections:

Should be fixed now

Confirmed
https://github.com/pixiebrix/webext-messenger/actions/runs/12155436351/job/33896988124
https://github.com/pixiebrix/webext-messenger/releases/tag/v0.29.1


manage new hook name displayProductAdditionalInfo

Questions
Answers

Branch?
master

Description?
manage new hook name displayProductAdditionalInfo introduced in 1.7.1, add missing class for flex products list, better management of product list to avoid getting too many products, and integrate minor modifications

Type?
bug fix

Category?
FO

BC breaks?
no

Deprecations?
no

Fixed ticket?
Fixes https://github.com/PrestaShop/PrestaShop/issues/9916

How to test?
See forge ticket

@Quetzacoalt91 I switched this one to QA but all your requested changes should be done ;)

@jolelievre
I have an exception if I try to transplant the module on the left or right column

@marionf thanks, I didn't know this feature.. This is fixed!

All good, QA approved :+1:
thank you @jolelievre

@Quetzacoalt91 Should we target dev instead of master branch?

Yep, PRs must target the dev branch.

Hi, is there an updated version of this module with these fixes applied? I have searched addons but I can't find the module anywhere...

This is odd, I can see it in the modules list:

Did you, by any chance, disable the addons update when there were problems on the platform a few weeks ago? There was a woraround about switching Tools::is_addons_up to false
(just an idea which could explain your issue)

Aaah, yes that is probably the problem. Is it safe to uninstall this module now? Thanks for the help!!

From: jolelievre<EMAIL_ADDRESS>Sent: 07 November 2018 10:30
To: PrestaShop/ps_viewedproduct
Cc: gudmund1; Comment
Subject: Re: [PrestaShop/ps_viewedproduct] Manage new hook name displayProductAdditionalInfo (#7)
This is odd, I can see it in the modules list:
[capture d ecran 2018-11-07 a 10 35 03]https://user-images.githubusercontent.com/13801017/48122856-e2926d00-e278-11e8-9aa2-d055a45afa00.png
Did you, by any chance, disable the addons update when there were problems on the platform a few weeks ago? There was a woraround about switching Tools::is_addons_up to false
(just an idea which could explain your issue)
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHubhttps://github.com/PrestaShop/ps_viewedproduct/pull/7#issuecomment-436578470, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AqnFmKCGEIu114cSj2mxgxxFj_uZYTb1ks5usrYqgaJpZM4V1tvr.


Azure Resources

[ ] Azure Blob Storage
[ ] Azure disk
[ ] Azure VMs
[ ] Azure AKS

Probably try tackle a bit of azure

Probably try tackle a bit of azure

Do you have an azure account setup for it?

Do you have an azure account setup for it?

Do you have an azure account setup for it?

I don't, send me details if you have

Do you have an azure account setup for it?

I don't, send me details if you have


[Question] - Hey guys, how can i achieve this with simple global state with preact?

Hey guys how can one do this kind of redux hack in preact?
You Probably Don’t Need Redux
I'm using preact-cli and the index.js file just exports the App component.
import './style';
import App from './components/app';

export default App;

Where would i wrapp with AppState component?

Hey, this is a little more appropriate for our Slack (imo), but to answer your question, you have two options:

Import your <AppState /> into your components/app/index.js file, then export the "wrapped" version of <App/>

Import <App/> and <AppState/> into the main index.js file & export a functional component of the two:
import AppState from './components/appstate';
import App from './components/app';

export default _ => (
  <AppState>
    <App />
  </AppState>
);

Hope that helps! There's almost always in the Slack room if you need more 👍

Ok, thanks and sorry about posting here.

No worries!


Use slow gregor connections for test

This will help with testing locally for time related CI flakes:
run with:
KEYBASE_SLOW_GREGOR_CONN=1 go test -timeout 30m
Right now some of the systests are failing, I will see if increasing timeouts can fix it or if there are actual bugs we can address in a subsequent PR. current failures:
TestGregorForwardToElectron
     gregor_test.go:180: Got wrong OOBM system: internal.reconnect
TestHome
      home_test.go:155
TestImplicitTeamResetAll
       multiuser_common_test.go:385: timed out waiting for team abandon
TestImplicitResetAndSBSBringback
       team_implicit_reset_test.go:222
TestTeamResetBadgesOnAdd
      teams_test.go:510: timed out waiting for badge state
TestTeamBustCache
      teams_test.go:67

cc @mmaxim

TestHome is the only one that continues to fail, it seems like it is able to find the follower but the item isn't correctly badged https://github.com/keybase/client/pull/10756/files#diff-dd641a87ccc81532a1b1fb2990e5cfc5R91

@maxtaco MarkViewed=false worked for the HomeTest

woohoo!


Script for training and generation to run locally?

Could you please provide complete working scripts for training and generation from a model once trained?
Running this script
from train import main

dataset_cfg = dict(
        dataset_path_train = "train",
        dataset_path_eval = "eval",
        batch_size=4,
        num_examples_train= 1000,
        num_examples_eval= 200,
        segment_duration= 30,
        sample_rate= 32_000,
        shuffle= True,
        return_info= False)

cfg = dict(
    learning_rate = 0.0001,
    epochs = 80,
    model = "small",
    seed = (hash("blabliblu") % 2**32 - 1),
    use_wandb = True
)

main("Model Name", cfg, dataset_cfg, 'Wandb Project Name')

Gives these errors.  This is Windows so Triton can be ignored.
(venv) D:\Tests\Unconditional-MusicGen-Trainer>python do_training.py
A matching Triton is not available, some optimizations will not be enabled
Traceback (most recent call last):
  File "D:\Tests\Unconditional-MusicGen-Trainer\venv\lib\site-packages\xformers\__init__.py", line 55, in _is_triton_available
    from xformers.triton.softmax import softmax as triton_softmax  # noqa
  File "D:\Tests\Unconditional-MusicGen-Trainer\venv\lib\site-packages\xformers\triton\softmax.py", line 11, in <module>
    import triton
ModuleNotFoundError: No module named 'triton'
wandb: (1) Create a W&B account
wandb: (2) Use an existing W&B account
wandb: (3) Don't visualize my results
wandb: Enter your choice: 3
wandb: You chose "Don't visualize my results"
wandb: Tracking run with wandb version 0.16.6
wandb: W&B syncing is set to `offline` in this directory.
wandb: Run `wandb online` or set WANDB_MODE=online to enable cloud syncing.
D:\Tests\Unconditional-MusicGen-Trainer\venv\lib\site-packages\audiocraft\models\musicgen.py:127: UserWarning: MusicGen pretrained model relying on deprecated checkpoint mapping. Please use full pre-trained id instead: facebook/musicgen-small
  warnings.warn(
D:\Tests\Unconditional-MusicGen-Trainer\venv\lib\site-packages\torch\nn\utils\weight_norm.py:28: UserWarning: torch.nn.utils.weight_norm is deprecated in favor of torch.nn.utils.parametrizations.weight_norm.
  warnings.warn("torch.nn.utils.weight_norm is deprecated in favor of torch.nn.utils.parametrizations.weight_norm.")
  0%|          | 0/80 [00:00<?, ?it/s]
A matching Triton is not available, some optimizations will not be enabled
Traceback (most recent call last):
  File "D:\Tests\Unconditional-MusicGen-Trainer\venv\lib\site-packages\xformers\__init__.py", line 55, in _is_triton_available
    from xformers.triton.softmax import softmax as triton_softmax  # noqa
  File "D:\Tests\Unconditional-MusicGen-Trainer\venv\lib\site-packages\xformers\triton\softmax.py", line 11, in <module>
    import triton
ModuleNotFoundError: No module named 'triton'
A matching Triton is not available, some optimizations will not be enabled
Traceback (most recent call last):
  File "D:\Tests\Unconditional-MusicGen-Trainer\venv\lib\site-packages\xformers\__init__.py", line 55, in _is_triton_available
    from xformers.triton.softmax import softmax as triton_softmax  # noqa
  File "D:\Tests\Unconditional-MusicGen-Trainer\venv\lib\site-packages\xformers\triton\softmax.py", line 11, in <module>
    import triton
ModuleNotFoundError: No module named 'triton'
A matching Triton is not available, some optimizations will not be enabled
Traceback (most recent call last):
  File "D:\Tests\Unconditional-MusicGen-Trainer\venv\lib\site-packages\xformers\__init__.py", line 55, in _is_triton_available
    from xformers.triton.softmax import softmax as triton_softmax  # noqa
  File "D:\Tests\Unconditional-MusicGen-Trainer\venv\lib\site-packages\xformers\triton\softmax.py", line 11, in <module>
    import triton
ModuleNotFoundError: No module named 'triton'
A matching Triton is not available, some optimizations will not be enabled
Traceback (most recent call last):
  File "D:\Tests\Unconditional-MusicGen-Trainer\venv\lib\site-packages\xformers\__init__.py", line 55, in _is_triton_available
    from xformers.triton.softmax import softmax as triton_softmax  # noqa
  File "D:\Tests\Unconditional-MusicGen-Trainer\venv\lib\site-packages\xformers\triton\softmax.py", line 11, in <module>
    import triton
ModuleNotFoundError: No module named 'triton'
wandb: (1) Create a W&B account
wandb: (2) Use an existing W&B account
wandb: (3) Don't visualize my results
wandb: Enter your choice: wandb: (1) Create a W&B account
wandb: (2) Use an existing W&B account
wandb: (3) Don't visualize my results
wandb: Enter your choice: wandb: (1) Create a W&B account
wandb: (2) Use an existing W&B account
wandb: (3) Don't visualize my results
wandb: Enter your choice: wandb: (1) Create a W&B account
wandb: (2) Use an existing W&B account
wandb: (3) Don't visualize my results
wandb: Enter your choice: 3
wandb: You chose "Don't visualize my results"
wandb: Tracking run with wandb version 0.16.6
wandb: W&B syncing is set to `offline` in this directory.
wandb: Run `wandb online` or set WANDB_MODE=online to enable cloud syncing.
D:\Tests\Unconditional-MusicGen-Trainer\venv\lib\site-packages\audiocraft\models\musicgen.py:127: UserWarning: MusicGen pretrained model relying on deprecated checkpoint mapping. Please use full pre-trained id instead: facebook/musicgen-small
  warnings.warn(
D:\Tests\Unconditional-MusicGen-Trainer\venv\lib\site-packages\torch\nn\utils\weight_norm.py:28: UserWarning: torch.nn.utils.weight_norm is deprecated in favor of torch.nn.utils.parametrizations.weight_norm.
  warnings.warn("torch.nn.utils.weight_norm is deprecated in favor of torch.nn.utils.parametrizations.weight_norm.")
  0%|          | 0/80 [00:00<?, ?it/s]
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "D:\Python\lib\multiprocessing\spawn.py", line 116, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "D:\Python\lib\multiprocessing\spawn.py", line 125, in _main
    prepare(preparation_data)
  File "D:\Python\lib\multiprocessing\spawn.py", line 236, in prepare
    _fixup_main_from_path(data['init_main_from_path'])
  File "D:\Python\lib\multiprocessing\spawn.py", line 287, in _fixup_main_from_path
    main_content = runpy.run_path(main_path,
  File "D:\Python\lib\runpy.py", line 289, in run_path
    return _run_module_code(code, init_globals, run_name,
  File "D:\Python\lib\runpy.py", line 96, in _run_module_code
    _run_code(code, mod_globals, init_globals,
  File "D:\Python\lib\runpy.py", line 86, in _run_code
    exec(code, run_globals)
  File "D:\Tests\Unconditional-MusicGen-Trainer\do_training.py", line 22, in <module>
    main("Model Name", cfg, dataset_cfg, 'Wandb Project Name')
  File "D:\Tests\Unconditional-MusicGen-Trainer\train.py", line 199, in main
    current_step = train(
  File "D:\Tests\Unconditional-MusicGen-Trainer\train.py", line 52, in train
    for _, batch in enumerate(dataloader):
  File "D:\Tests\Unconditional-MusicGen-Trainer\venv\lib\site-packages\torch\utils\data\dataloader.py", line 439, in __iter__
    return self._get_iterator()
  File "D:\Tests\Unconditional-MusicGen-Trainer\venv\lib\site-packages\torch\utils\data\dataloader.py", line 387, in _get_iterator
    return _MultiProcessingDataLoaderIter(self)
  File "D:\Tests\Unconditional-MusicGen-Trainer\venv\lib\site-packages\torch\utils\data\dataloader.py", line 1040, in __init__
    w.start()
  File "D:\Python\lib\multiprocessing\process.py", line 121, in start
    self._popen = self._Popen(self)
  File "D:\Python\lib\multiprocessing\context.py", line 224, in _Popen
    return _default_context.get_context().Process._Popen(process_obj)
  File "D:\Python\lib\multiprocessing\context.py", line 336, in _Popen
    return Popen(process_obj)
  File "D:\Python\lib\multiprocessing\popen_spawn_win32.py", line 45, in __init__
    prep_data = spawn.get_preparation_data(process_obj._name)
  File "D:\Python\lib\multiprocessing\spawn.py", line 154, in get_preparation_data
    _check_not_importing_main()
  File "D:\Python\lib\multiprocessing\spawn.py", line 134, in _check_not_importing_main
    raise RuntimeError('''
RuntimeError:
        An attempt has been made to start a new process before the
        current process has finished its bootstrapping phase.

        This probably means that you are not using fork to start your
        child processes and you have forgotten to use the proper idiom
        in the main module:

            if __name__ == '__main__':
                freeze_support()
                ...

        The "freeze_support()" line can be omitted if the program
        is not going to be frozen to produce an executable.
Traceback (most recent call last):
  File "D:\Tests\Unconditional-MusicGen-Trainer\venv\lib\site-packages\torch\utils\data\dataloader.py", line 1133, in _try_get_data
    data = self._data_queue.get(timeout=timeout)
  File "D:\Python\lib\multiprocessing\queues.py", line 114, in get
    raise Empty
_queue.Empty

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "D:\Tests\Unconditional-MusicGen-Trainer\do_training.py", line 22, in <module>
    main("Model Name", cfg, dataset_cfg, 'Wandb Project Name')
  File "D:\Tests\Unconditional-MusicGen-Trainer\train.py", line 199, in main
    current_step = train(
  File "D:\Tests\Unconditional-MusicGen-Trainer\train.py", line 52, in train
    for _, batch in enumerate(dataloader):
  File "D:\Tests\Unconditional-MusicGen-Trainer\venv\lib\site-packages\torch\utils\data\dataloader.py", line 631, in __next__
    data = self._next_data()
  File "D:\Tests\Unconditional-MusicGen-Trainer\venv\lib\site-packages\torch\utils\data\dataloader.py", line 1329, in _next_data
    idx, data = self._get_data()
  File "D:\Tests\Unconditional-MusicGen-Trainer\venv\lib\site-packages\torch\utils\data\dataloader.py", line 1295, in _get_data
    success, data = self._try_get_data()
  File "D:\Tests\Unconditional-MusicGen-Trainer\venv\lib\site-packages\torch\utils\data\dataloader.py", line 1146, in _try_get_data
    raise RuntimeError(f'DataLoader worker (pid(s) {pids_str}) exited unexpectedly') from e
RuntimeError: DataLoader worker (pid(s) 26144) exited unexpectedly
Traceback (most recent call last):
  File "D:\Tests\Unconditional-MusicGen-Trainer\venv\lib\site-packages\torch\utils\data\dataloader.py", line 1133, in _try_get_data
    data = self._data_queue.get(timeout=timeout)
  File "D:\Python\lib\multiprocessing\queues.py", line 114, in get
    raise Empty
_queue.Empty

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "D:\Tests\Unconditional-MusicGen-Trainer\do_training.py", line 22, in <module>
    main("Model Name", cfg, dataset_cfg, 'Wandb Project Name')
  File "D:\Tests\Unconditional-MusicGen-Trainer\train.py", line 199, in main
    current_step = train(
  File "D:\Tests\Unconditional-MusicGen-Trainer\train.py", line 52, in train
    for _, batch in enumerate(dataloader):
  File "D:\Tests\Unconditional-MusicGen-Trainer\venv\lib\site-packages\torch\utils\data\dataloader.py", line 631, in __next__
    data = self._next_data()
  File "D:\Tests\Unconditional-MusicGen-Trainer\venv\lib\site-packages\torch\utils\data\dataloader.py", line 1329, in _next_data
    idx, data = self._get_data()
  File "D:\Tests\Unconditional-MusicGen-Trainer\venv\lib\site-packages\torch\utils\data\dataloader.py", line 1295, in _get_data
    success, data = self._try_get_data()
  File "D:\Tests\Unconditional-MusicGen-Trainer\venv\lib\site-packages\torch\utils\data\dataloader.py", line 1146, in _try_get_data
    raise RuntimeError(f'DataLoader worker (pid(s) {pids_str}) exited unexpectedly') from e
RuntimeError: DataLoader worker (pid(s) 26144) exited unexpectedly
wandb: You can sync this run to the cloud by running: MB)
wandb: wandb sync D:\Tests\Unconditional-MusicGen-Trainer\wandb\offline-run-20240405_184312-8r4bifds
wandb: Find logs at: .\wandb\offline-run-20240405_184312-8r4bifds\logs
wandb: You can sync this run to the cloud by running:
wandb: wandb sync D:\Tests\Unconditional-MusicGen-Trainer\wandb\offline-run-20240405_184342-334ah70z
wandb: Find logs at: .\wandb\offline-run-20240405_184342-334ah70z\logs

I have a bunch of mp3 files under train and eval ready to go.

Does the same for me and crashes. Looks like it might be borked


Highlight code affected by the current line

Simplest is something like https://github.com/folke/twilight.nvim, but with Pylance knowing call chains and such, highlighting other parts of a file where a line has potential influence would be nice to have to understand the ramification of changes.

Moving this issue to discussion as an enhancement request for comments and upvotes.


support https

Importing Neo4j certificat to your JVM

Open your browser on this : https://localhost:7473
Export the certificat as a binary DER and save it on your filesystem (for example: /tmp/neo4j-cert.der)
Execute this command  (replace @JAVA_HOME@ with your JVM location) :

$> cd @JAVA_HOME@/jre/
$>  bin/keytool -import -alias neo4j -keystore @JAVA_HOME@/jre/lib/security/cacerts -file /tmp/neo4j-cert.der


Using Destination as temp2?

I was wondering if there are any plans to allow us to make Destination directory and tmp2 directory the same, I believe this would save some time copying the final file

tmp and final can be set to the same directory, and yes, it will skip the copying step

unless you have only 1 tmp and 1 dst dir, plotman doesn't currently have a
way to enforce that -t and -d get set to the same value.  I think there
is an existing issue requesting this functionality.
On Sun, May 2, 2021 at 9:46 PM zry98 @.***> wrote:

tmp and final can be set to the same directory, and yes, it will skip the
copying step
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/ericaltendorf/plotman/issues/194#issuecomment-831016690,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ARPZIFRMVLZYZCVSEI2EOJTTLYTDDANCNFSM434NAHVA
.

what is the best operation from that? do we need to use -2 configuration?


Add a welcome modal that tells people the app is available on desktop and gives them a button to download a binary or dismiss

Get it on Desktop

MyHbarWallet is now available as a desktop application.

Download

Dismiss

Please re-open your PR when you get a moment. I also commented on #295 what's left.


Add tests for ARP responder L3 config

@radez added logic to disable ODL's ARP responder when L3 is enabled in #90. Need rspec-puppet and Beaker test coverage for that feature.

quick note... I actually got the title of the patch wrong. the code enables the arp responder... it's a double negative option.
the option is to disable it and the default is yes.
Patch I pushed is to set disabled = no
It turns on an arp poll that looks for the gateway that the flows should send the instance egress traffic to.


Add support for local whispercpp

Now localwhisper will expect a whispercpp server running instead of the old faster_whisper Python server.
Overall whispercpp is a better option, it will work well both for CPU and GPU (there are separate whispercpp binaries for CPU and GPU) It also supports optimized models like distil-whisper and such. The caveat is that whispercpp only accepts 16000Hz input so we need to run ffmpeg to convert the .wav before sending it via HTTP. That should add only minimal latency like 50-200ms. It's worth it because distil-whisper models are insanely fast and use less VRAM (English-only though).
Example running whispercpp binary:
./server -m models/distil-large --port 8070
On a 4090 distil-large is absolutely instant in terms of latency, while largev2 on older faster_whisper server had noticably longer response time

old localwhisper installations are affected by this? "old" whisper accepts 16Khz wav?

old localwhisper installations are affected by this? "old" whisper accepts 16Khz wav?

As far as I know the old faster_whisper accepted any Khz so we didn't have to do resampling with ffmpeg, now we do. This PR changes name="audio" to name="file\ so that will be a breaking change. We could make it a configurable option to switch between old and new implementation, but I think whispercpp is just superior in all ways. The faster_whisper project was abandoned as far as I know.

The patch could be reduced to just the last line change (wav_file to file) as the ffmpeg step isn't needed when whispercpp is run with --convert.

(I changed it to reflect that)


Allow a changing box in models

@franklinHu1 You mentioned this functionality would be useful to your use case. Could you please elaborate on your requirements?
Would it be enough to have the possibility of changing the box between training and inference or you would rather have the possibility of calling the models with model(z, pos, batch, box)?

I think making it such that you can call the model with model(z, pos, batch, box) would be best, especially because when integrating with openmm torch to run dynamics, I could then design the ForceModule such that it takes in the box as an argument:
class ForceModule(torch.nn.Module):
    def forward(self, positions, box_vectors):
        ...
        energy, force = self.model.forward(self.z, positions, box_vectors)

In terms of training, it would be great if the box vectors could be an argument that is interpreted from the yaml configuration file. This is a simple change to train.py and the configuration yaml file, something like:
...
pbc_box : [12.4, 12.4, 12.4]
...

and in train.py:
...
parser.add_argument('--pbc-box', ...)
...

Obviously I then convert the box lengths into a diagonal (3, 3) matrix for the vectors.
In summary, I think it would be very helpful if:

The model is able to take box information as an argument to the forward pass, i.e. model(z, pos, batch, box)
The box information comes from the yaml configuration file and is user-specified during training
New box information comes from OpenMM when running dynamics
The box does not have to be consistent between training and dynamics

Thank you very much, and please let me know if anything needs to be clarified!

Hello,
Just checking in, has there been any movement on this issue?
Thank you!

Sorry, I have not gotten around it yet. I will get to it ASAP.
I will probably implement it just as you designed. If two boxes are provided (yaml + argument to forward) the one in forward takes precedence.
There is the issue of where the box should live.
Sometimes one really needs the box information CPU side (i.e when building a cell list), and it is small enough that one can communicate it to the GPU without a memory copy (as an argument to a CUDA kernel).
I believe the box should be a 3x3 tensor that resides in CPU memory.
Up until now the box is something that cannot change, so the model can store it however it likes.

That sounds great, thank you!

I am working on this functionality in #201. It would be great if you would help me with testing.

Thank you, I will take a look ASAP!

Sorry about the delay in testing this, some of my systems were down, but I did give it a shot in specifying the PBCs via this new method. I am am getting the following error in the log file when specifying the PBCs in the yaml configuration file for training a new model:
Traceback (most recent call last):
  File "/global/homes/f/frankhu/torchmd-net/scripts/train.py", line 208, in <module>
    main()
  File "/global/homes/f/frankhu/torchmd-net/scripts/train.py", line 141, in main
    model = LNNP(args, prior_model=prior_models, mean=data.mean, std=data.std)
  File "/global/u2/f/frankhu/torchmd-net/torchmdnet/module.py", line 30, in __init__
    self.model = create_model(self.hparams, prior_model, mean, std)
  File "/global/u2/f/frankhu/torchmd-net/torchmdnet/models/model.py", line 70, in create_model
    representation_model = TorchMD_ET(
  File "/global/u2/f/frankhu/torchmd-net/torchmdnet/models/torchmd_et.py", line 127, in __init__
    self.distance = OptimizedDistance(
  File "/global/u2/f/frankhu/torchmd-net/torchmdnet/models/utils.py", line 203, in __init__
    self.box = self.box.cpu()  # All strategies expect the box to be in CPU memory
AttributeError: 'list' object has no attribute 'cpu'

I have specified the periodic box as follows in my yaml file:
box_vecs: [[7.831,0,0],[0,7.831,0],[0,0,7.831]]

I am a little confused though because in train.py, there is a handler for converting the yaml input to a torch tensor, so I am not sure if this is something that is wrong with my specification of the PBCs or the code to interpret the PBCs.

Not sure why that arose but I found more problems down the line with parsing the box as a tensor directly. I updated the PR so that the box_vecs are taken as a list and then transformed to tensor in create_model.

Hello!
Sorry for the very long delay in getting back to this, but the changes you made to the PR worked! I have been able to train both the equivariant transformer and tensornet for a few epochs using specific periodic boundary conditions. I will run a longer training to converge the losses and then try running dynamics with these models to see if the entire workflow is successful.
Thanks!

Thanks! I will wait for your feedback on dynamics and then we can merge and release.

@RaulPPelaez so the training of the model and compilation to TorchScript for TorchForce works as expected. However, there is a constraint that the box vectors must exist on CPU memory. I get the following error if I attempt to run dynamics on the CUDA platform via openmm:
########## READING CLI ARGUMENTS ##########
Setting up save directory for dynamics outputs
########## SETTING UP SIMULATION SYSTEM ##########
Initializing system based on atoms listed in pdb file
Checking system has no forces or constraints
0
Model outputs forces: True
Torchscript module copied
Model uses passed box vectors: True
Traceback (most recent call last):
  File "/pscratch/sd/f/frankhu/openmm_INXS/run_INXS_dynamics.py", line 116, in <module>
    simulation.context.setVelocitiesToTemperature(300 * kelvin)
  File "/global/homes/f/frankhu/.conda/envs/torchmd-net/lib/python3.10/site-packages/openmm/openmm.py", line 3512, in setVelocitiesToTemperature
    return _openmm.Context_setVelocitiesToTemperature(self, *args)
openmm.OpenMMException: The following operation failed in the TorchScript interpreter.
Traceback of TorchScript, serialized code (most recent call last):
  File "code/__torch__/torchmdnet/models/utils.py", line 33, in forward
      pass
    else:
      ops.prim.RaiseException(_0)
      ~~~~~~~~~~~~~~~~~~~~~~~ <--- HERE
    max_num_pairs = self.max_num_pairs
    max_num_pairs0 = self.max_num_pairs

Traceback of TorchScript, original code (most recent call last):
  File "/global/u2/f/frankhu/torchmd-net/torchmdnet/models/utils.py", line 234, in forward
        assert box is not None, "Box must be provided"
        box = box.to(pos.dtype)
        assert box.device == torch.device("cpu"), "Box must be in CPU memory"
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ <--- HERE
        max_pairs : int = self.max_num_pairs
        if self.max_num_pairs < 0:
RuntimeError: AssertionError: Box must be in CPU memory

Is it possible to allow the box to exist in GPU memory so that it can run on the CUDA platform? Running dynamics on the CPU platform works as expected btw, so the overall workflow seems to work except for this issue.
Thanks!

Thanks for the feedback! The box must be in CPU memory, but the work happens in the GPU.
Being just 9 numbers I find that you can just pass it as an argument to the appropriate kernels:
https://github.com/torchmd/torchmd-net/blob/a67ac80299b153390737d8bf8e16670aaf234139/torchmdnet/extensions/neighbors/neighbors_cuda_shared.cuh#L13-L17
However, if OpenMM provides the box in GPU memory it would be a shame to take to the CPU and then back.
Let me see if I can make it work in any case.

Thanks, that sounds good to me! If this turns out to be more trouble than it's worth, it would be fine if you have a recommended workaround.

@RaulPPelaez the dynamics on the CUDA platform using the A100s works for both the equivariant transformer and tensornet models, and they give good agreement with some past AIMD water trajectories on calculations of RDFs and VDOSs. At this point, it appears that the PBC implementation is working and you can move forward with merging it to the main branch.
I've attached the plots below, where ET = equivariant transformer and TNET = tensornet.
Thanks for all the work, and please let me know if there's anything else you'd like me to try out/test!

This is great, thank you so much for your effort! I will close this and merge #201.


Install Browser and E2E plugin (Firefox)

Install e2e extension for Firefox

Done in Master.

Production, Win10.
Couldn't install E2E for FireFox, restart of CC and FF didn't help. Also there is no extensions folder in FireFox root folder, so I think CC should create that folder.

logs_15.txt

fixed in dev.

Fixed in Master.

Successfully installed e2e plugin on Firefox:

Fixed on Prod


Fix code scanning alert - Warn when list item bullets are indented.

Tracking issue for:

[ ] https://github.com/abhishektripathi66/DSA/security/code-scanning/70

The link forwards to 404 Sir !

looks like that particular link is not public, will share you the screenshot


[docs] fix CORS documentation regarding API Gateway literal values

Issue #, if available: #1172
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Codecov Report

Merging #1198 into develop will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff            @@
##           develop    #1198   +/-   ##
========================================
  Coverage    94.33%   94.33%
========================================
  Files           72       72
  Lines         3725     3725
  Branches       733      733
========================================
  Hits          3514     3514
  Misses         107      107
  Partials       104      104

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 d1f2a34...d010fb3. Read the comment docs.

Thank you for fixing this!


Hdfs ensure method and friends aren't robust to exceptions

The ensure method on Hdfs, and related methods like recoverWith, assume that the action to recover from doesn't throw an exception. It seems to me that a method like ensure should handle exceptions.

What do you mean by the action to recover from. Can you elaborate a little bit and I'll have a look at it.

Back when I created this issue (may not be true anymore with your refactor?), if you had a.ensure(b) (can't remember exact syntax), the ensure method would run a, and then run b no matter whether the result of a was a success or failure. But if running a caused an exception, b would not be run.
Although our api encouraged the creation of safe actions, which would return a failure instead of throwing an exception, it didn't guarantee it. Therefore ensure didn't really guarantee that b would get run.

@stephanh We had a discussion about a related issue a few days ago, and your position then was that our code shouldn't have to deal with the possibility of Result actions throwing exceptions: that it was up to the user to avoid "bad" Result actions like this.
If we apply that philosophy to this issue, we would simply close this as "won't fix". Your thoughts?

I think for ensure it is important to make sure that the specified action is always attempted to run. If the attempted action blows up then I think that is a misuse of the API.


Random crash in bn_sqr8x_internal

For couple of years, we have encountered core dumps on several nginx web servers.
Here is the core dump that I have captured in openssl 1.1.1l + nginx-1.18.0 / centOS 6.5 server
With this core dump, I think it would be in the middle of handshaking before key exchange.
But lack of my SSL knowledge prevents me going further than now. :)
I think it is pretty random and rare. But it would be better if it can be fixed in new release of openssl.
Any information would be appreciated.
Thank you.
$ gdb ~/apps/nginx/sbin/nginx ./backup2
GNU gdb (GDB) Red Hat Enterprise Linux (7.2-60.el6_4.1)
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-redhat-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /home1/irteam/apps/nginx/sbin/nginx...done.
[New Thread 14969]
Missing separate debuginfo for
Try: yum --disablerepo='*' --enablerepo='*-debug*' install /usr/lib/debug/.build-id/15/4f1d503d0ff2425ff9fe5ae98c4ec246ad9b3e
Reading symbols from /lib64/libdl.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib64/libdl.so.2
Reading symbols from /lib64/librt.so.1...(no debugging symbols found)...done.
Loaded symbols for /lib64/librt.so.1
Reading symbols from /lib64/libpthread.so.0...(no debugging symbols found)...done.
[Thread debugging using libthread_db enabled]
Loaded symbols for /lib64/libpthread.so.0
Reading symbols from /lib64/libcrypt.so.1...(no debugging symbols found)...done.
Loaded symbols for /lib64/libcrypt.so.1
Reading symbols from /lib64/libpcre.so.0...(no debugging symbols found)...done.
Loaded symbols for /lib64/libpcre.so.0
Reading symbols from /lib64/libz.so.1...(no debugging symbols found)...done.
Loaded symbols for /lib64/libz.so.1
Reading symbols from /lib64/libc.so.6...(no debugging symbols found)...done.
Loaded symbols for /lib64/libc.so.6
Reading symbols from /lib64/ld-linux-x86-64.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib64/ld-linux-x86-64.so.2
Reading symbols from /lib64/libfreebl3.so...(no debugging symbols found)...done.
Loaded symbols for /lib64/libfreebl3.so
Reading symbols from /lib64/libnss_files.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib64/libnss_files.so.2
Core was generated by `nginx: worker process              '.
Program terminated with signal 7, Bus error.
#0  0x0000000000571a35 in bn_sqr8x_internal ()
Missing separate debuginfos, use: debuginfo-install glibc-2.12-1.132.el6.x86_64 nss-softokn-freebl-3.14.3-9.el6.x86_64 pcre-7.8-7.el6.x86_64 zlib-1.2.3-29.el6.x86_64
(gdb) by
Undefined command: "by".  Try "help".
(gdb) bt
#0  0x0000000000571a35 in bn_sqr8x_internal ()
#1  0x00000000005713e5 in bn_power5 ()
#2  0x0000000000639f0f in BN_mod_exp_mont_consttime ()
#3  0x00000000005d798e in rsa_ossl_mod_exp ()
#4  0x00000000005d8387 in rsa_ossl_private_encrypt ()
#5  0x00000000005dad1e in pkey_rsa_sign ()
#6  0x00000000005a95f3 in EVP_DigestSignFinal ()
#7  0x000000000054147c in tls_construct_cert_verify ()
#8  0x0000000000535e45 in state_machine ()
#9  0x0000000000521a54 in SSL_do_handshake ()
#10 0x000000000048bc9d in ngx_ssl_handshake (c=0x7f623f92bd50) at src/event/ngx_event_openssl.c:1606
#11 0x000000000049f83a in ngx_http_ssl_handshake (rev=0x7f623f7a9a50) at src/http/ngx_http_request.c:753
#12 0x000000000048674a in ngx_epoll_process_events (cycle=0x12513a0, timer=<value optimized out>, flags=<value optimized out>) at src/event/modules/ngx_epoll_module.c:901
#13 0x000000000047c30d in ngx_process_events_and_timers (cycle=0x12513a0) at src/event/ngx_event.c:247
#14 0x000000000048472c in ngx_worker_process_cycle (cycle=0x12513a0, data=<value optimized out>) at src/os/unix/ngx_process_cycle.c:750
#15 0x0000000000482d70 in ngx_spawn_process (cycle=0x12513a0, proc=0x484699 <ngx_worker_process_cycle>, data=0x0, name=0x6d8fc5 "worker process", respawn=-3)
    at src/os/unix/ngx_process.c:199
#16 0x0000000000483aba in ngx_start_worker_processes (cycle=0x12513a0, n=8, type=-3) at src/os/unix/ngx_process_cycle.c:359
#17 0x0000000000484dc0 in ngx_master_process_cycle (cycle=0x12513a0) at src/os/unix/ngx_process_cycle.c:131
#18 0x000000000045ce47 in main (argc=<value optimized out>, argv=<value optimized out>) at src/core/nginx.c:382

And here is the location that exception raised. ( 0x0000000000571a35 )
(gdb) disassemble 0x0000000000571a35
Dump of assembler code for function bn_sqr8x_internal:
   0x0000000000571460 <+0>:     lea    0x20(%r10),%rbp
   0x0000000000571464 <+4>:     lea    (%rsi,%r9,1),%rsi
   0x0000000000571468 <+8>:     mov    %r9,%rcx
   0x000000000057146b <+11>:    mov    -0x20(%rsi,%rbp,1),%r14
---Omitted--
   0x0000000000571942 <+1250>:  mov    %r11,%r14
   0x0000000000571945 <+1253>:  mul    %rax
   0x0000000000571948 <+1256>:  neg    %r15
   0x000000000057194b <+1259>:  mov    0x28(%rdi),%r11
   0x000000000057194f <+1263>:  adc    %rax,%rbx
   0x0000000000571952 <+1266>:  mov    0x10(%rsi,%rbp,1),%rax
   0x0000000000571957 <+1271>:  mov    %rbx,0x10(%rdi)
   0x000000000057195b <+1275>:  adc    %rdx,%r8
   0x000000000057195e <+1278>:  mov    %r8,0x18(%rdi)
   0x0000000000571962 <+1282>:  sbb    %r15,%r15
   0x0000000000571965 <+1285>:  lea    0x40(%rdi),%rdi
   0x0000000000571969 <+1289>:  add    $0x20,%rbp
   0x000000000057196d <+1293>:  jne    0x571880 <bn_sqr8x_internal+1056>
   0x0000000000571973 <+1299>:  lea    (%r14,%r10,2),%r12
   0x0000000000571977 <+1303>:  addr32 shr $0x3f,%r10
   0x000000000057197c <+1308>:  lea    (%rcx,%r11,2),%r13
   0x0000000000571980 <+1312>:  shr    $0x3f,%r11
   0x0000000000571984 <+1316>:  or     %r10,%r13
   0x0000000000571987 <+1319>:  mov    -0x10(%rdi),%r10
   0x000000000057198b <+1323>:  mov    %r11,%r14
   0x000000000057198e <+1326>:  mul    %rax
   0x0000000000571991 <+1329>:  neg    %r15
   0x0000000000571994 <+1332>:  mov    -0x8(%rdi),%r11
   0x0000000000571998 <+1336>:  adc    %rax,%r12
   0x000000000057199b <+1339>:  mov    -0x8(%rsi),%rax
   0x000000000057199f <+1343>:  mov    %r12,-0x20(%rdi)
   0x00000000005719a3 <+1347>:  adc    %rdx,%r13
   0x00000000005719a6 <+1350>:  lea    (%r14,%r10,2),%rbx
   0x00000000005719aa <+1354>:  mov    %r13,-0x18(%rdi)
   0x00000000005719ae <+1358>:  sbb    %r15,%r15
   0x00000000005719b1 <+1361>:  shr    $0x3f,%r10
   0x00000000005719b5 <+1365>:  lea    (%rcx,%r11,2),%r8
   0x00000000005719b9 <+1369>:  shr    $0x3f,%r11
   0x00000000005719bd <+1373>:  or     %r10,%r8
   0x00000000005719c0 <+1376>:  mul    %rax
   0x00000000005719c3 <+1379>:  neg    %r15
   0x00000000005719c6 <+1382>:  adc    %rax,%rbx
   0x00000000005719c9 <+1385>:  adc    %rdx,%r8
   0x00000000005719cc <+1388>:  mov    %rbx,-0x10(%rdi)
   0x00000000005719d0 <+1392>:  mov    %r8,-0x8(%rdi)
   0x00000000005719d4 <+1396>:  movq   %xmm2,%rbp
   0x00000000005719d9 <+1401>:  xor    %rax,%rax
   0x00000000005719dc <+1404>:  lea    (%r9,%rbp,1),%rcx
   0x00000000005719e0 <+1408>:  lea    0x38(%rsp,%r9,2),%rdx
   0x00000000005719e5 <+1413>:  mov    %rcx,0x8(%rsp)
   0x00000000005719ea <+1418>:  lea    0x38(%rsp,%r9,1),%rdi
   0x00000000005719ef <+1423>:  mov    %rdx,0x10(%rsp)
   0x00000000005719f4 <+1428>:  neg    %r9
   0x00000000005719f7 <+1431>:  jmp    0x571a00 <bn_sqr8x_internal+1440>
   0x00000000005719f9 <+1433>:  nopl   0x0(%rax)
   0x0000000000571a00 <+1440>:  lea    (%rdi,%r9,1),%rdi
   0x0000000000571a04 <+1444>:  data32 mov (%rdi),%rbx
   0x0000000000571a08 <+1448>:  mov    0x8(%rdi),%r9
   0x0000000000571a0c <+1452>:  mov    0x10(%rdi),%r10
   0x0000000000571a10 <+1456>:  mov    0x18(%rdi),%r11
   0x0000000000571a14 <+1460>:  mov    0x20(%rdi),%r12
   0x0000000000571a18 <+1464>:  mov    0x28(%rdi),%r13
   0x0000000000571a1c <+1468>:  mov    0x30(%rdi),%r14
   0x0000000000571a20 <+1472>:  mov    0x38(%rdi),%r15
   0x0000000000571a24 <+1476>:  mov    %rax,(%rdx)
   0x0000000000571a27 <+1479>:  lea    0x40(%rdi),%rdi
   0x0000000000571a2b <+1483>:  addr32 mov %rbx,%r8
   0x0000000000571a2f <+1487>:  imul   0x28(%rsp),%rbx
=> 0x0000000000571a35 <+1493>:  mov    0x0(%rbp),%rax
   0x0000000000571a39 <+1497>:  mov    $0x8,%ecx
   0x0000000000571a3e <+1502>:  jmp    0x571a40 <bn_sqr8x_internal+1504>
   0x0000000000571a40 <+1504>:  mul    %rbx
   0x0000000000571a43 <+1507>:  mov    0x8(%rbp),%rax
   0x0000000000571a47 <+1511>:  neg    %r8
   0x0000000000571a4a <+1514>:  mov    %rdx,%r8
   0x0000000000571a4d <+1517>:  adc    $0x0,%r8
   0x0000000000571a51 <+1521>:  mul    %rbx
   0x0000000000571a54 <+1524>:  add    %rax,%r9
   0x0000000000571a57 <+1527>:  mov    0x10(%rbp),%rax
   0x0000000000571a5b <+1531>:  adc    $0x0,%rdx

The version 1.1.1 is not supported anymore. Closing. If this is still an issue with currently supported releases, please open a new issue.


Upgrade README.md & CONTRIBUTING.md

Hey hey!
I noticed there are quite basic MD files here. I could improve them a bit so they don't look so mundane. More colors would be useful, maybe some badges too. Definitely, I would polish the text, take care of punctuation and similar things.
Could I take care of that?

Sure! They're written in haste so feel free to upgrade them. I'd appreciate it :)


Bug in logo style guide

I just noticed that the logo style guide at the bottom of https://github.com/AnalyticalGraphicsInc/cesium/wiki/Cesium-Logos has a bad RGB value for Cesium's blue color, instead of 108, 103, 223, it should be 108, 173, 223 (verified with a dropper, 103 makes it purple).  I'm not sure if any of the other categories/values are right/wrong but we should verify them.

Fixed


Attaching COM1 Serial

Attaching COM1 Serial to be able building vagrant box with "Aboot-serial-*.iso" support.
Prevents restating of the virtualbox guest due to lack of any Serial ports when "Aboot-serial-*.iso" is used.

Thanks for the contribution, @sumkincpp.

@jerearista, I found a bug for this fix and it's fixed in #10


perf: do not have a separate request for each fungible token transaction

fixes #1483

I don't see the fungible tokens (AE, WTT, Davidyk) in Received even though they are in the list of all transactions:

if I open the transaction of receiving 6 WTT, then I see the following details, which are not correct:

Only gas fees are displayed:
Thx: https://explorer.aeternity.io/transactions/th_oViXRKSgaWs5KFUBezxybnKxrGtQY7yhrVCs7UhWBM7puYA6o
https://explorer.aeternity.io/transactions/th_2E3XfPgA19rakNfNTPC4kkPRRk6G58geiF7dpd1nZsyrKBpUiA

I don't see the fungible tokens (AE, WTT, Davidyk) in Received even though they are in the list of all transactions:
fixed

if I open the transaction of receiving 6 WTT, then I see the following details, which are not correct:
Only gas fees are displayed: Thx:

The same behaviour is in the develop.

retested, LGTM.


(file url) exit status 2

i kept getting this error when i attempt to use it in win 10. i installed it from the go get command, what am i doing wrong?

(file url) exit status 2"

time="2020-11-09T00:13:01-05:00" level=error msg="Unable to beginDownload: exit status 2"

Thanks for reporting this @finickydesert I'll be pushing a fix soon


Compile OCaml with Fil-C

See https://github.com/pizlonator/llvm-project-deluge/blob/deluge/Manifesto.md. It would be interesting to measure the performance hit. There is 200x performance hit compared to C programs here. Given that OCaml itself gets memory safety thanks to type safety, the performance penalty may be much lower than 200x.

Thanks Sai. I've assigned this to you. Please keep this thread active with any developments.


Using findComponent on a functional component yields an empty-ish VueWrapper

From #408.
const Foo = () => h('div')

const wrapper = mount(Foo)

console.log(wrapper.findComponent(Foo))
/*
yields

    VueWrapper {
      wrapperElement: undefined,
      __app: null,
      rootVM: undefined,
      componentVM: null,
      __setProps: undefined
    }

*/

and then any method that relies on vm or similar fails (being that exists() or text() or…).
This (might) be an expected limitation... no instance, so findComponent won't work.

I think this is a limitation we will need to live with. Might be good to document it.

Docs: https://github.com/vuejs/vue-test-utils-next/commit/a6146a8c91a7ce5aa7fac716a4e0f8387bc95429


How to parse MessageRaw struct.

Question, how is it recommended to parse MessageRaw struct without knowledge of the version?
Recent Change
https://github.com/aler9/gomavlib/commit/596af81cb7549f11f1e75a9584ac99bd127f2682#diff-f6846c341ab11ff34eeb7463ce2816ff
Code
	var fault error
	state.peer, fault = gomavlib.NewNode(gomavlib.NodeConf{
		OutSystemId:      255,
		HeartbeatDisable: true,
		Endpoints:        []gomavlib.EndpointConf{endpoint},
	})
	exitOnError(peerConnectionFailed, fault)
	defer state.peer.Close()

Output
OutVersion not provided

Hi, i was forced to make OutVersion mandatory, since there are some people that want to use this library with Ardupilot (Mavlink V1), and some others with PX4 (Mavlink V2). Just set OutVersion:
	var fault error
	state.peer, fault = gomavlib.NewNode(gomavlib.NodeConf{
		OutSystemId:      255,
                OutVersion: gomavlib.V2,
		HeartbeatDisable: true,
		Endpoints:        []gomavlib.EndpointConf{endpoint},
	})
	exitOnError(peerConnectionFailed, fault)
	defer state.peer.Close()

Sorry for the change, just use go get / go.mod / go.sum to download a specific revision of the library and keep it forever, unless something doesn't work.


isError returns false for DOMException instances

isError returns false for DOMException instances.
From what I can see, there are three reasons for this:
https://github.com/es-shims/Error.isError/blob/059b44a2f0a334a1b7abc3e297a4af91643d1e1f/implementation.js#L22-L24
In NodeJS, require('util').types.isNativeError(new DOMException()) gives false.
https://github.com/es-shims/Error.isError/blob/059b44a2f0a334a1b7abc3e297a4af91643d1e1f/implementation.js#L26-L28
In current implementations (pending https://github.com/whatwg/webidl/pull/1421), structuredClone(new DOMException()) returns {}, i.e. a plain JS object.
https://github.com/es-shims/Error.isError/blob/059b44a2f0a334a1b7abc3e297a4af91643d1e1f/implementation.js#L34-L37
Even if this line was hit (which it won't be because the previous two lines would both return early with false), Symbol.toStringTag in new DOMException() returns true, so the condition fails.
It doesn't seem there's any 100% foolproof way of detecting DOMExceptions until https://github.com/whatwg/webidl/pull/1421 lands in implementations, so you could either:

Be lax with Symbol.toStringTag tag specifically in the case of DOMException*, which would fail on DOMExceptions with spoofed toStringTag or other objects with toStringTag spoofed as "DOMException"
Bring forward instanceof checking specifically in the case of DOMException*, which would fail on cross-realm DOMExceptions. I guess this can't be tested for in Node as require('vm').runInNewContext('new DOMException()') gives DOMException is not defined, but such cross-realm DOMExceptions are presumably pretty commonplace in browsers (e.g. any DOMException originating from an iframe)

* and maybe DOMError and/or Exception too?

Given that it's bizarre to even have DOMException in node, and given that there's just no way to robustly detect it, I don't think that's a case worth worrying about (however, you may want to file it as a bug in node for util.types.isNativeError)

it's bizarre to even have DOMException in node

IMO it's bizarre to have DOMException anywhere, it's just a badly designed API (badly named, weird semantics, weird behavior). But it's a commonly encountered error subtype, and no weirder that it exists in NodeJS than anywhere else. Bear in mind many DOMExceptions have nothing to do with the DOM, hence why it's badly named.
const ac = new AbortController()
ac.abort()
ac.signal.reason instanceof DOMException // true

yeah, that's part of the weirdness of AbortController, via fetch - it should never have been a DOMException.
Unless node offers a way to robustly identify it, though, I'm not sure if we should do anything for it.

I don't think it's particularly to do with fetch, as AbortController and AbortSignal have other use cases too, e.g. canceling event listeners.
Other non-DOM-related and non-fetch-related APIs also produce DOMExceptions:

structuredClone({ fn: () => {} }) throws a DataCloneError DOMException
atob('!') throws an InvalidCharacterError DOMException
There are also various DOMException types produced from IndexedDB operations, although those are only relevant to browsers (but again, not DOM-related)

I'm just talking about the history - Abort things were built to provide cancellation to fetch, initially. That there are many other use cases is why using DOMException made no sense. Similarly, anything that's not DOM-related simply shouldn't be throwing an error named "DOM" ¯\_(ツ)_/¯ but that ship has sailed.
Regardless of what the behavior is here, I'd love to add test cases for all of those if you want to submit a PR.


All graphs seem to be the same

Frist: try to see if we detect that during validation.
Second: actually fix the bug

Still need to check it to validation process and make sure all is fixed


Invalid init Function Code for Passing in Arraybuffer

Please see the following code: https://github.com/rustwasm/wasm-bindgen/blob/a1c457bd152f24bc51eea14bd9cf0f3913f7e74b/crates/cli-support/src/js/mod.rs#L891-L903
The result of instantiate according to MDN is ResultObject, not just Instance as is assumed here. I have to patch this to access instance.instance for it to work right.

Actually this appears fixed there and is just invalid in my current wasm-pack. Disregard for now, thanks.

Ok, reopening, having trouble with latest on Windows. For the simple wasm from a cargo build --target wasm32-unknown-unknown:
# C:\Users\chad.retz\AppData\Local\.wasm-pack\wasm-bindgen-9a795696ca119c40\wasm-bindgen.exe --version
wasm-bindgen 0.2.40 (7392df8a3)

C:\Users\chad.retz\AppData\Local\.wasm-pack\wasm-bindgen-9a795696ca119c40\wasm-bindgen.exe target\wasm32-unknown-unknown\debug\sample.wasm --out-dir pkg --web

(I need pkg web because I need to init the WASM array buffer myself). Here is the generated init function:
function init(module_or_path, maybe_memory) {
    let result;
    const imports = { './imedge_manip': __exports };
    if (module_or_path instanceof URL || typeof module_or_path === 'string' || module_or_path instanceof Request) {

        const response = fetch(module_or_path);
        if (typeof WebAssembly.instantiateStreaming === 'function') {
            result = WebAssembly.instantiateStreaming(response, imports)
            .catch(e => {
                console.warn("`WebAssembly.instantiateStreaming` failed. Assuming this is because your server does not serve wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n", e);
                return response
                .then(r => r.arrayBuffer())
                .then(bytes => WebAssembly.instantiate(bytes, imports));
            });
        } else {
            result = response
            .then(r => r.arrayBuffer())
            .then(bytes => WebAssembly.instantiate(bytes, imports));
        }
    } else {

        result = WebAssembly.instantiate(module_or_path, imports)
        .then(instance => {
            return { instance, module: module_or_path };
        });
    }
    return result.then(({instance, module}) => {
        wasm = instance.exports;
        init.__wbindgen_wasm_module = module;

        return wasm;
    });
}

Note, this code expects WebAssembly.instantiate to return a promise for instance but it in fact returns a promise for ResultObject of which instance is a member. I can't find this part of the init script in the codebase even on that version tag (just released)...so I wonder if the download for wasm-pack is acting funny.

Thanks for the report! Definitely looks like a bug and should be fixed in #1419


[Event Request] Table 27 Item - OnBeforeAssistEdit

Hi, would it be possible to create a new event OnBeforeAssistEdit in table 27 Item, like this :

Thanks

Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release.
We will update this issue with information about availability. Please do not reply to this, as we do not monitor closed issues.
If you have follow-up questions or requests, please create a new issue where you reference this one.


DUPLO-16119 Add name to duplocloud_aws_cloudfront_distribution

Overview
Added name attribute, made comment attribute depreciated
Summary of changes
This PR does the following:

added name attribute in duplocloud_aws_cloudfront_distribution resource schema
made comment attribute depreceated

Testing performed

[ ] Using unit tests
[ ] Manually, on my local system
[ ] Manually, on a remote test system

Describe any breaking changes

...

Task linked: DUPLO-16119 [TF ] Add name to duplocloud_aws_cloudfront_distribution

Ticket mentioned to make it required
On Mon, Jul 15, 2024, 6:40 PM Tahir Tamboli @.***>
wrote:

@.**** commented on this pull request.
In duplocloud/resource_duplo_aws_cloudfront_distribution.go
https://github.com/duplocloud/terraform-provider-duplocloud/pull/589#discussion_r1677804578
:

@@ -49,6 +49,13 @@ func duploAwsCloudfrontDistributionSchema() map[string]*schema.Schema {
Optional:     true,
Computed:     true,
ValidateFunc: validation.StringLenBetween(0, 128),

	Deprecated:   "comment has been depreciated instead use name",

},

"name": {

We should not add the required attribute name, We are forcing existing
customer code to be modified on provider upgrade. Instead we can add
optional name attribute ConflictsWith comment attribute.
—
Reply to this email directly, view it on GitHub
https://github.com/duplocloud/terraform-provider-duplocloud/pull/589#pullrequestreview-2177675460,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/BFXKLDMKZ7KWSEUB265ENVLZMPC5BAVCNFSM6AAAAABKY5G7RGVHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHMZDCNZXGY3TKNBWGA
.
You are receiving this because you authored the thread.Message ID:
<duplocloud/terraform-provider-duplocloud/pull/589/review/2177675460@
github.com>

@tahir-duplo can you review again?


Add standard test base class

We have some global state that needs to be cleaned up between all test runs. The simplest thing would be to have all tests subclass from some base with this logic. TestNG may have other means to do this.

See also: GH-279, GH-238.

https://github.com/getsentry/raven-java/pull/381/commits/8d89a234fe6759fd9a06db836ecbccd97512a79f


Can't register for a token

Hi,
Is the token still open for register? I tried both requesting the token from the website and running the docker per instruction but wasn't able to get the token after waiting more than 12 hours.

sorry issue submitted to wrong project :)


Add no-http-cache option to rake task

Simple change to allow to specify the http_cache option when using the rake task. This is useful as a workaround for the problem described in #738 but doesn't really fix the issue. Tested locally on my project and it worked.

Hi @mcelicalderon! Thanks for your contribution. Would you mind adding a test case?
Thanks!

Sure, I'll get to this as soon as possible. In fact, what would you think about having a constant with all the options available so both the task and binary can use them. That way both will always support the same options.


Homevent VOC / air quality control

Hi,
Is there a way to turn on/off the VOC functionality? Aka “air quality control”
Thank you!

Hi,
do you have the topTronic operating module? Is it possible there to turn this off?

Kind of.
It’s possible to turn it off completely (as in, turn off the functionality of “air quality control”), or turn it on.
However, even when turned on, I don’t see the current state as being “voc”, it stays on “normal”.
Unfortunately Hoval seems clueless and cannot themselves explain how it works.

This repository is only about controlling the hoval devices like from the TopTronic operating module. I don't know how VOC works, sorry.


query: /query_exemplars receives empty response

Thanos, Prometheus and Golang version used:
thanos 0.20.1 (sidecar, query, query-frontend)
prometheus 0.26.0 with --enable-feature exemplar-storage
grafana 7.5.5
(docker hub images)

Object Storage Provider:
aws/s3
What happened:
When querying for exemplars via thanos-query-frontend, I receive the response:
{"status":"success","data":null}

The same query directly to the Prometheus that scraped the exemplars returns:
{"status":"success","data":[{"seriesLabels":{"__name__":"http_request_duration_seconds_bucket"," ....

If Grafana is set to use the Prometheus as a datasource directly, exemplars will render on the panels.
What you expected to happen:
I expect that the exemplar query will be proxied to the relevant (or all) sidecars&prometheus
How to reproduce it (as minimally and precisely as possible):
Full logs to relevant components:

Example exemplar queries:
❯ curl 'https://thanos-query-frontend/api/v1/query_exemplars?query=http_request_duration_seconds_bucket&start=1619973810&end=1619974710'
{"status":"success","data":null}

❯ curl 'https://prometheus/api/v1/query_exemplars?query=http_request_duration_seconds_bucket&start=1619973810&end=1619974710'
{"status":"success","data":[{"seriesLabels":{"__name__":"http_request_duration_seconds_bucket","app":"thanos-query","code":"200","handler":"label_values","instance":"<IP_ADDRESS>:19192","job":"kubernetes-service-endpoints","kubernetes_name":"thanos-query","kubernetes_namespace":"prometheus","kubernetes_node":"ip-10-232-64-150.ec2.internal","le":"0.1","method":"get"},"exemplars":[{"labels":{"traceID":"740d43c12631af8f"},"value":"0.021576742","timestamp":1619973825.822}]},{"seriesLabels":{"__name__":"http_request_duration_seconds_bucket","app":"thanos-query","code":"200","handler":"metadata","instance":"<IP_ADDRESS>:19192","job":"kubernetes-service-endpoints","kubernetes_name":"thanos-query","kubernetes_namespace":"prometheus","kubernetes_node":"ip-10-232-64-150.ec2.internal","le":"0.001","method":"get"},"exemplars":[{"labels":{"traceID":"79df091e49c3e4cc"},"value":"0.000062484","timestamp":1619973825.971}]},{"seriesLabels":{"__name__":"http_request_duration_seconds_bucket","app":"thanos-query-frontend","code":"200","handler":"query-frontend","instance":"<IP_ADDRESS>:9090","job":"kubernetes-service-endpoints","kubernetes_name":"thanos-query-frontend","kubernetes_namespace":"prometheus","kubernetes_node":"ip-10-232-69-131.ec2.internal","le":"0.1","method":"get"},"exemplars":[{"labels":{"traceID":"740d43c12631af8f"},"value":"0.033159782","timestamp":1619973825.831}]},{"seriesLabels":{"__name__":"http_request_duration_seconds_bucket","app":"thanos-query-frontend","code":"200","handler":"query-frontend","instance":"<IP_ADDRESS>:9090","job":"kubernetes-service-endpoints","kubernetes_name":"thanos-query-frontend","kubernetes_namespace":"prometheus","kubernetes_node":"ip-10-232-69-234.ec2.internal","le":"0.01","method":"get"},"exemplars":[{"labels":{"traceID":"79df091e49c3e4cc"},"value":"0.003311645","timestamp":1619973825.972}]}]}

Example instant queries:
❯ curl 'https://thanos-query-frontend/api/v1/query?query=count(http_request_duration_seconds_bucket)'
{"status":"success","data":{"resultType":"vector","result":[{"metric":{},"value":[1619978529.442,"1008"]}]}}

❯ curl 'https://prometheus/api/v1/query?query=count(http_request_duration_seconds_bucket)'
{"status":"success","data":{"resultType":"vector","result":[{"metric":{},"value":[1619978539.197,"1008"]}]}}

Anything else we need to know:
There are around ~4 external labels used for the Prometheus target. I get the same null result if I include one or more of them in the queries to Thanos.
I can also see exemplar requests via Jaeger tracing with spans up to the querier under "/exemplars HTTP[server]", but they don't seem to propagate further. Not sure if this has been implemented yet.

Hi, thanks for reporting the issue.
I will take a look tomorrow. Can you please try to use thanos query instead of query frontend as Grafana data source and check whether this issue is reproducible?

Also please give me the configuration of your thanos query. I suspect there is a config issue.

I'm also receiving a "data": null response when targeting the querier directly. I guess one note is that there is a Traefik2 ingress between the query and sidecars/store.
DNS-sanitized query configs from k8s deployment:
  - args:
    - --log.level=debug
    - --grpc-client-tls-secure
    - --http-address=<IP_ADDRESS>:19192
    - --query.auto-downsampling
    - --query.partial-response
    - --store=thanos-store:443
    - --store=thanos-sidecar:443
    - --store=other-sidecar:443
    - |
      --tracing.config=type: JAEGER
      config:
        service_name: thanos-query
        agent_host: jaeger-agent.jaeger.svc.cluster.local
        sampler_type: const
        sampler_param: 1
        disabled: false
    command:
    - thanos
    - query

Hi @hhsnow, it is a configuration issue.
If you want to federate exemplars from Sidecar, you need to add --exemplar flag for these store addresses in your thanos query component.
For example, the correct config would be
  - args:
    - --log.level=debug
    - --grpc-client-tls-secure
    - --http-address=<IP_ADDRESS>:19192
    - --query.auto-downsampling
    - --query.partial-response
    - --store=thanos-store:443
    - --store=thanos-sidecar:443
    - --store=other-sidecar:443
    - --exemplar=thanos-sidecar:443
    - --exemplar=other-sidecar:443
    - |
      --tracing.config=type: JAEGER
      config:
        service_name: thanos-query
        agent_host: jaeger-agent.jaeger.svc.cluster.local
        sampler_type: const
        sampler_param: 1
        disabled: false
    command:
    - thanos
    - query


Python example pipeline... What does it do???

Would be nice to have some more info on examples like pipeline and make sure they work.
$python3 pipeline
** (pipeline:1785): WARNING **: Error retrieving accessibility bus address: org.freedesktop.DBus.Error.ServiceUnknown: The name org.a11y.Bus was not provided by any .service files
Then I have a window with 2 buttons to push. "Snap Image" and "Play"
When you hit Snap Image, nothing happens.
When you hit Play, It says "Starting stream" and button turns into "Stop".  You hit stop, it says "Stopping stream"... HUMMMMM!!!!
What are we supposed to do and/or learn from this???????

The example should come up with a live video when hitting "Play" and save images when clicking "Snap Image".
What camera are you using?

I am using DMK 21BU618.
Thanks,
Pat.

Hi
If the cameras does not show up in as  /dev/video*, then please follow the instructions at https://github.com/TheImagingSource/tiscamera/wiki/UDEV-Rules
(In case you did not already do that.)

I have two cameras plugged in and I do see /dev/video0 and /dev/video1
When using examples/python/trigger-images and selecting a device, I do see an image.

Only one image or a stream? And also from the DMK 21BU618 or another camera? DMK 21BU618 should be expected.

I only see an image from either DMK 21BU618 that are connected based on device selection.

Sorry for asking, but that means, you get only one image, but this is never refreshed? If yes, what happen, if you  use
gst-launch tcambin ! videoconverter ! ximagesink
on the command line?

$ gst-launch tcambin ! videoconverter ! ximagesink
-bash: gst-launch: command not found
$ gst-launch-1.0 tcambin ! videoconverter ! ximagesink
WARNING: erroneous pipeline: no element "videoconverter"

sorry, must have been "gst-launch-1.0" and "videoconvert".

The interest here is not to run the cameras in video mode but to snap pictures at some regular interval like 7.5 per seconds

$ gst-launch-1.0 tcambin ! videoconvert ! ximagesink works fine and I do see a video stream

Aha. I understood you have trouble running the camera at all. Therefore all my questions. So the camera is running in live stream with the python code?

Sorry, remove the last question.

If I do:
$ export NO_AT_BRIDGE=1
The warning at startup disappears, but still no video on start....
see: https://gist.github.com/jeffcogswell/62395900725acef1c0a5a608f7eb7a05

Following pipeline set the camera to 7.5 fps and writes png files as fast as possible, up to 7.5 frames per second to hard disc:
gst-launch-1.0 tcambin  ! video/x-raw,framerate=15/2 ! videoconvert ! pngenc ! multifilesink location="image%04d.png"
Unfortunately I was not able to figure out how to write BMP files. But as far as I know, PNG is lossless too.

You wrote
"The warning at startup disappears, but still no video on start...." and you also wrote "and I do see a video stream". Now you lost me. Do you get a video stream or not?

Thanks Stefan.  This helps to get started.  I would need to do this in Python and control both cameras.  It might be nice to also see the video as images get saved... but that would be icing on the cake :)... This is for a drone application with 3D stereo + hyperspectral imaging...

Please give me a few minutes...

$ export NO_AT_BRIDGE=1
This removes the warning but I do not see a video stream.

The following pipeline shows the live video in an ximagesink and saves images to png files in parallel:
gst-launch-1.0 tcambin serial=15210439 ! video/x-raw,framerate=15/2 ! tee name=t t. ! queue  !  videoconvert ! pngenc ! multifilesink location="image%04d.png" t. ! queue ! videoconvert ! ximagesink
The "tee" module is used to split the input pipeline into branches. The tee is named "t" here. Each new branch starts with this name as "t." and a queue is needed. So we get
Input part:
tcambin serial=15210439 ! video/x-raw,framerate=15/2 ! tee name=t
We use the camera's serial number to make sure, we open the one of both, we what to open. Then we set the frame and add the tee.
Save image branch:
 t. ! queue  !  videoconvert ! pngenc ! multifilesink location="image%04d.png"
This simply saves the images. For the second camera you should change the file name.
Display branch:
t. ! queue ! videoconvert ! ximagesink
Explains itself.
From this you can see, you have two similar pipelines, only the serial number and file names differ.
You could use this already in a Python script, since python GStreamer has a function that gets a pipeline string passed. However, the stuff is not as simple, because there is also the starting and stopping etc. needed. We'll get that later, since I am running out of time now.

This is a great start with great explanations.  THANK YOU!
[What about timestamping the filenames? :)]

Two-Cams.zip
I created a small python sample, consisting of two py files. The "TIS.py" contains a class, that encapsulates the GStreamer stuff, handles camera properties and converts the GStreamer image buffers in OpenCV images.
The "Program.py" is the main program. We instantiate two Objects of our TIS class:
LeftCam = TIS.TIS("15210439",640, 480, 15,1,False )
RightCam = TIS.TIS("48010377",640, 480, 15,1,False )

The first parameter is the serial number of each camera. "15,1" is the frame rate, currently it is 15 fps. For 7.5 fps, "15/2" should be passed.
We create two OpenCV windows, so we have a live video:
cv2.namedWindow('Left Camera', 1)
cv2.namedWindow('Right Camera', 1)

Then we start the streams:
LeftCam.Start_pipeline()
RightCam.Start_pipeline()

cv2.waitKey(1000)

In a loop we get the images from the cameras and show them:
        while ( lastkey != 27):
                LeftImage = LeftCam.Get_image()
                RightImage = RightCam.Get_image()

                 cv2.imshow('Left Camera', LeftImage)
                 cv2.imshow('Right Camera', RightImage)

                lastkey = cv2.waitKey(67) # 67 = 1000 / 15 fps

In the source code this is longer, since there is error handling and other stuff in. The waitKey() wait time in ms should be somewhat longer than the frame rate's time span, otherwise we will receive tons of error message, because we ask too fast for new images.
Since we have OpenCV image now, we can do, what ever we want with same. Saving, Stitching and create file names also as we want, using the Python functions for this.
I suppose, you will add some more user interaction, like a key press for start of image saving, end of image saving. That has the advantage of setting up your scene first, see the result in the camera live view and then start saving.
The OpenCV windows will be created overlapped. So move one of them away.
I hope, that gives a starting point.

Awesome.
Will study the code and try it.
Thanks,
Pat.
Pat Cappelaere
<EMAIL_ADDRESS>Cell:<PHONE_NUMBER>
Skype: patrice_cappelaere
gmail<EMAIL_ADDRESS>
On Oct 18, 2017, at 10:22 AM, TIS-Stefan<EMAIL_ADDRESS>wrote:
Two-Cams.zip https://github.com/TheImagingSource/tiscamera/files/1394917/Two-Cams.zip
I created a small python sample, consisting of two py files. The "TIS.py" contains a class, that encapsulates the GStreamer stuff, handles camera properties and converts the GStreamer image buffers in OpenCV images.
The "Program.py" is the main program. We instantiate two Objects of our TIS class:
LeftCam = TIS.TIS("15210439",640, 480, 15,1,False )
RightCam = TIS.TIS("48010377",640, 480, 15,1,False )
The first parameter is the serial number of each camera. "15,1" is the frame rate, currently it is 15 fps. For 7.5 fps, "15/2" should be passed.
We create two OpenCV windows, so we have a live video:
cv2.namedWindow('Left Camera', 1)
cv2.namedWindow('Right Camera', 1)
Then we start the streams:
LeftCam.Start_pipeline()
RightCam.Start_pipeline()
cv2.waitKey(1000)
In a loop we get the images from the cameras and show them:
    while ( lastkey != 27):
            LeftImage = LeftCam.Get_image()
            RightImage = RightCam.Get_image()

             cv2.imshow('Left Camera', LeftImage)
             cv2.imshow('Right Camera', RightImage)

            lastkey = cv2.waitKey(67) # 67 = 1000 / 15 fps

In the source code this is longer, since there is error handling and other stuff in. The waitKey() wait time in ms should be somewhat longer than the frame rate's time span, otherwise we will receive tons of error message, because we ask too fast for new images.
Since we have OpenCV image now, we can do, what ever we want with same. Saving, Stitching and create file names also as we want, using the Python functions for this.
I suppose, you will add some more user interaction, like a key press for start of image saving, end of image saving. That has the advantage of setting up your scene first, see the result in the camera live view and then start saving.
The OpenCV windows will be created overlapped. So move one of them away.
I hope, that gives a starting point.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub https://github.com/TheImagingSource/tiscamera/issues/117#issuecomment-337607848, or mute the thread https://github.com/notifications/unsubscribe-auth/AAAdj2wgwiV3ew6qMcVWLVyVJ1c57dURks5stgmcgaJpZM4P8_8s.

Would be nice to mix the images to an RGB24 image: left camera to the red channel, right camera to the green or blue channel, so you get an anaglyph image. You only need  red /green or red /blue glasses and you have your own cheap VR system. (When I tried that, I felt sick.)


get a new metadata accessor after calling backup item actions

Signed-off-by: Steve Kriss<EMAIL_ADDRESS>Fixes #822
Manually tested/confirmed that this fixes the issue.  Now working on unit tests.

pushed a unit test that fails before the fix: https://travis-ci.org/heptio/ark/builds/426896179

now pushing the fix again

I also tested this patch manually and I can confirm that restic backups and restores are working again.

Given that this is preventing restores and some tight timelines for the team, I'm going to go ahead and merge this.
@skriss we'll need a backport to release-0.9, too.


feat: Functions Quickstart Kotlin

Fixes #631

@rosariopfernandes regarding the build failure here :
https://travis-ci.org/firebase/quickstart-android/builds/425545433#L1816
You might want to add the constraint-layout dependency explicitly to your module's build.gradle
I bumped into the same issue with the auth quickstart.
https://github.com/firebase/quickstart-android/pull/641/files#diff-8701e0aa849cdea4ec601239d512698bR44

Thank you very much @the-dagger I'll give this a try!

Here's what I did for the ConstraintLayout fix:
https://github.com/firebase/quickstart-android/pull/638/files#diff-29fcb4b75cb9b0af38cdf8b722cca057
I made the internal module export its dependencies as api.  I think that's probably the "most correct" way but I'm not too concerned about it.

@the-dagger 's solution doesn't seem to have fixed it. I'll try @samtstern 's solution now.

There we go. Build fixed. Thanks for the tips guys

Will merge after build


crash on server from entity (1.11.2)

forge:1.11.2-2252
voidcraft: VoidCraft-1.11.2-0.15.1
tamized: TamModized-1.11.2-0.6.2
crash report:
crash-2017-03-03_14.41.06-server.txt

Welp TIL that EntityArrow#setVelocity is SideOnly(Client); Anyway this will also crash in 1.10.2, getting a fix out now.

another crash @Tamaized
voidcraft:  VoidCraft-1.11.2-0.15.2
crash report:
crash-2017-03-03_16.01.28-server.txt

I actually JUST found this one as well myself and am questioning Mojang's choices with this retarded code they have. Already on it.

okay :)

Let me know if 0.15.3 fixed it, I have a hunch I messed up and the jar got built before the change actually went through, im not sure if it did or not right now.


Meteor template on<EMAIL_ADDRESS>

After upgrade angular to 1.2.0 i can't use {{> sAlert}} in index.html. I tried write directive like dotansimha:accounts-ui-angular but Blade is not defined. How can i use template from package https://github.com/juliancwirko/meteor-s-alert in index.html?

If you want to use Blaze templates, replace the angular package with the angular-with-blaze package:
https://github.com/Urigo/angular-meteor/issues/849#issuecomment-155218952


Update Heap description

Disclaimer: I'm a remote engineer for Heap.

Thanks! Merging this as-is, but I'd love it if you could make a company profile :star2:


Simplify generate shares method

Description
Extend MPCTensor.generate_shares in order to simplify the API.
Now there are two ways of call this method:

From ShareTensor

secret = torch.Tensor([5])
a = ShareTensor(data=secret)
MPCTensor.generate_shares(secret = a, nr_parties = 2)

Directly from a secret (torch.Tensor)

secret = torch.Tensor([5])

MPCTensor.generate_shares(secret = secret, nr_parties = 2)  # with default values
MPCTensor.generate_shares(secret = secret, nr_parties = 2, encoder_precision=16, base_precision=2)  # with extra kwargs

Other minor modifications:

Add method .decode() to recover the original value from ShareTensor
Convert to Google docstring for the file mpc_tensor.py
Add __repr__ method to ShareTensor and MPCTensor
Add docstringformatter to pre-commit to help with the format of the documentation.

This PR closes #46 and partially the issue #28
Affected Dependencies
I have upgraded to syft==0.4
How has this been tested?
I have included additional test.
Checklist

[x] I have followed the Contribution Guidelines and Code of Conduct
[x] I have commented my code following the OpenMined Styleguide
[x] I have labeled this PR with the relevant Type labels
[x] My changes are covered by tests

@jmaunon it is ready for review? :D

@jmaunon it is ready for review? :D

@jmaunon it is ready for review? :D

Yes, it is ready. I cannot add reviewers/labels (I guess I do not have permisions)

@jmaunon it is ready for review? :D

Yes, it is ready. I cannot add reviewers/labels (I guess I do not have permisions)

Great work! Only some comments.
Also, could you create a separate issue in this repository such that we could replace all the instances where we use:
shares = MPCTensor.generate_shares()

with your work from here:
shares = MPCTensor.generate_shares(data, ...)

Done https://github.com/OpenMined/SyMPC/issues/50

Great work! Only some comments.
Also, could you create a separate issue in this repository such that we could replace all the instances where we use:
shares = MPCTensor.generate_shares()

with your work from here:
shares = MPCTensor.generate_shares(data, ...)

Done https://github.com/OpenMined/SyMPC/issues/50

@gmuraru , I have replied to your comments and pushed the necessary changes.

@gmuraru , I have replied to your comments and pushed the necessary changes.


SUBMARINE-884. Fix mllfow backend url with new mysql url.

What is this PR for?
Backend url in docker-images/mlflow/start.sh is missed to replace with new mysql url.
Delete unused package in Dockerfile.
What type of PR is it?
Bug Fix
Todos

[ ] - Task

What is the Jira issue?
https://issues.apache.org/jira/browse/SUBMARINE-884
How should this be tested?
Screenshots (if appropriate)
Questions:

Do the license files need updating? No
Are there breaking changes for older versions? No
Does this need new documentation? No

LGTM


⚠ Site ANTS has degraded performance

In 4115a22, Site ANTS (https://ants.gouv.fr) experienced degraded performance:

HTTP code: 200
Response time: 7063 ms

Resolved: Site ANTS performance has improved in 15c1117.


Adding gitattributes file to correctly determine used language

Description
Excluding shipped CHARMM-GUI files from linguist comverage
Todos

[ ] adding .gitattributes

Status

[ ] Ready to go

Codecov Report

Merging #41 (12e0c56) into master (41dc672) will decrease coverage by 0.23%.
The diff coverage is n/a.


Issues hook missing?Group didn’t get any UrlCard

this problem occurs frequently lately.

We have serval issues related to the webhook message lost problem, and most cases are caused by the bot and our HTTP service:

If the bot is offline, then the message sending will be failed
If the message sending is failed, we should return a 500 error to the GitHub webhook caller.

Currently, we always return 200 from our webhook processer, which caused the GitHub will not be able to redeliver the failed messages.
To be fixed.
P.S. Please feel free to send an oss text message to our bot, so that you can join our ChatOps room. You can get more information in that room.

well I’m just start to reading source code of this project. maybe the durable queue can be the “bot offline issue” solution?

Yes, that might be another solution for this issue.
I hope you enjoy the reading, and please feel free to let me know if you have questions.


Login after installation not possible

In the documentation is described, that you can access the new system with XYNA/XYNA, which is not correct. The documentation must be corrected to explain, how you can connect via GUI after the initial installation (docker-compoese)

The reason for that was a missing environment variable that was removed with a different version. Readded the Environment segment and tested for user in following commit.


ButtonBar children direction is not correct when RTL

When the current local of the MaterialApp is set to RTL language like Arabic the children direction of the ButtonBar is not correct.
Output:

Flutter Doctor:
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel dev, v0.8.2, on Microsoft Windows [Version 10.0.17134.345], locale ar-SA)
[√] Android toolchain - develop for Android devices (Android SDK 28.0.2)
[√] Android Studio (version 3.1)
[√] IntelliJ IDEA Community Edition (version 2018.2)
[!] VS Code, 64-bit edition (version 1.27.2)
[√] Connected devices (2 available)

Code Sample:
import 'package:flutter/material.dart';
import 'package:flutter_localizations/flutter_localizations.dart';

void main() {
  runApp(MyApp());
}

class MyApp extends StatefulWidget {
  @override
  _MyAppState createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      supportedLocales: [
        const Locale('ar', ''), // Arabic
      ],
      localizationsDelegates: [
        GlobalMaterialLocalizations.delegate,
        GlobalWidgetsLocalizations.delegate,
      ],
      locale: Locale('ar'),
      title: "RTL",
      home: Scaffold(
        appBar: AppBar(),
        body: Column(
          children: <Widget>[
            GridView.extent(
              maxCrossAxisExtent: 100.0,
              padding: const EdgeInsets.all(20.0),
              mainAxisSpacing: 10.0,
              crossAxisSpacing: 10.0,
              children: [
                Text("Correct Direction"),
                Text("Correct Direction")
              ],
              shrinkWrap: true,
            ),
            ButtonBar(
              children: <Widget>[
                Text("Wrong Direction 1"),
                Text("Wrong Direction 2"),
              ],
            )
          ],
        ),
      ),
    );
  }
}

Hello @justinmc
It looks like you misunderstand my point, I'm not talking about the ordering of the items inside the ButtonBar.
The issue is with the starting position of the ButtonBar widget its self, it should start from the right edge not from the left (The parent widget not the ordering of the children).

The intention is that the alignment defaults to end to cover the main use case of things like dialogs.  You can see where this is purposely done in the code.
Maybe try changing the alignment to start for your case and it should do what you want for both LTR and RTL.  Or you can always look for another way to lay out your buttons if you need something significantly different.

The docs should be a lot more clear on this now with that PR.

No problem, thanks for following up even though it took us awhile to get to your issue.  Another thing you might want to try if you haven't already is using a Row instead of ButtonBar.  It sounds like you could set it up to get the alignment right without having to check for locale in if statements like you are with ButtonBar.
I'll keep an eye out and see if this locale alignment thing is tripping up anyone else in the meantime.


The benchmark link doesn't work.

Description
The Benchmark link doesn't work.
How To Reproduce
https://www.techempower.com/benchmarks/#section=test&runid=ba6c12a4-d54d-4a9e-825b-abde0ef6d6a2&hw=ph&test=fortune&l=zg24n3-f&c=6&a=2&o=e

Fixed.


[Grace Kelly] dbt init returning error message

Issue
Running dbt init <project name> runs successfully, but prints an error message in the terminal.
Steps to reproduce

Run dbt init foo

Expected result

new project created in the foo directory
success message in terminal:

$ dbt init foo
Creating dbt configuration folder at /Users/jake/.dbt

Your new dbt project "foo" was created! If this is your first time
using dbt, you'll need to set up your profiles.yml file -- this file will
tell dbt how to connect to your database. You can find this file by running:

  open /Users/jake/.dbt

For more information on how to configure the profiles.yml file,
please consult the dbt documentation here:

  https://docs.getdbt.com/docs/configure-your-profile

One more thing:

Need help? Don't hesitate to reach out to us via GitHub issues or on Slack --
There's a link to our Slack group in the GitHub Readme. Happy modeling!

Actual result

new project created in the foo directory
error message returned

$ dbt init foo
Creating dbt configuration folder at /Users/claire/.dbt
Encountered an error:
Got a non-zero returncode running: ['git', 'remote', 'rm', 'origin']

System information
The output of dbt --version:
$ dbt debug
dbt version: 0.12.2-rc1
python version: 3.7.1
...
$ git --version
git version 2.16.2

Fixed in #1210


Feature/notification

This to allow pagination/infinite scroll of sorted tables
The added "ts-name" parameter is to allow unambiguous declaration of a remote linked name
Sadly this request was forgotten as the gigantic pagination PR took precedence; but the functionality is really needed for infinite scrolling etc... (not everyone uses pagination).

Sorry for not checking this sooner. Is this pull-request still valid?

This one is still valid


v 0.2.0

Hi @lcalvy, thank you for the work you've done with this plugin! It is such a beautiful idea to capture errors in real (phantomjs) browser rather than statically parsing them, and it was exactly what I needed with my work.
When I found it, it was not working because of unmaintained dependencies (particularly "node-phantom"), and it only supported one URL at the time.
I fixed this problem and also enriched your plugin with set of features to  help with my particular use case - analysis of more than 300 static web pages for the subject of missing assets + HTML reports + failure threshold (for running in Jenkins environment) + screenshots.
I decided to contribute my work, so please check it out when you have time and let me know if you have any questions or concerns.

Switched to "phantom" module from "node-phantom"
Added HTML reports generation feature
Added Screenshots generation feature
Added multiple URLs support
Widen list of supported network issues

PS:
there is a problem with Phantomjs, which I would like to bring your attention to - now it crashes if we try to set onError handler. Please see following ticket for more info: https://github.com/sgentle/phantomjs-node/issues/287

Thank you


Fix Iris 2 errors part 2 of 4 (ensemble calibration)

As an Improver developer I want to upgrade to Iris 2 so that I can stay up to date and take advantage of exciting new technologies such as Dask.
Epic: #215
Related issues:

Part 1: #474
Part 3: #476
Part 4: #477
Implementation of Iris 2: #478

Part 2 is to deal with all the errors arising from the ensemble calibration unit tests. These are listed in the attached file - filtered output from improver tests unit.
Acceptance criteria:

Update all referenced unit tests to work with Iris 2.
If the updated code is backward-compatible with Iris 1.13.0, then submit code changes as usual. If not, then create a partial-PR and reference it in the Implementation ticket (#478).
Only the unit tests referred to in the attachment need to be updated.
If any known-good-output needs updating, this should be covered by this ticket too.

iris2.errors.ensemble_calibration.txt


[LEC] Create ExecutionCorrectness service

Motivation
2 commits:
1 . We need to move the traits to executor_types to tidy up the dependencies.
Also, a customized Error type is necessary for sending results over wire for the future use of this trait in execution correctness service.

Create the ExecutionCorrectness Service (LEC service) similar to safety-rules. No asymmetric cryptography involved yet.

Have you read the Contributing Guidelines on pull requests?
Y
Test Plan
CI

@bors-libra r=davidiw

:pushpin: Commit dabc24f has been approved by davidiw

:hourglass: Testing commit dabc24f9237df33c5bb5398a2a3e4dda4649c4de with merge 07fdd8a264b21c10760a3d5ad3aeb72ebd9fe85d...

:broken_heart: Test failed - checks-circle_commit_workflow

@bors-libra retry

:pushpin: Commit 3443759 has been approved by davidiw

:hourglass: Testing commit 34437597ab348027c6ec7b51b03f82b3bd199abf with merge 3c7c4fe6cecbddea30ce200230f2fef57fe65ced...

:sunny: Test successful - checks-actions_land_blocking_test, checks-circle_commit_workflow
Approved by: davidiw
Pushing 3c7c4fe6cecbddea30ce200230f2fef57fe65ced to master...


Add support for Database Delete using a static method like Native SDKs

As a developer I need to provide a static method for deleting a database file like the Native SDKs for Swift and Kotlin (Android)

this was fixed in the latest release


Quarto publishing error

Actions seem to be failing publishing with minor edits to .qmd files.
Running the following locally and then committing seems to fix it temporarily.
quarto publish gh-pages --no-browser
Ideally edits to .qmd files would not fail and this command not need to be ran locally prior to updating.

Fixed through modification to GH Action

Fixed through modification to GH Action


Use port 443 if UseSSL is set.

Problem: in the CLI the --use-ssl flag should cause the backend to be created on port 443 (currently no port is set in the call to the go-fastly API client and so the API itself is setting the default of port 80).

Going to close this PR as there are concerns around changing behaviours for backend that aren't ultimately controlled by Fastly. Also this might make code generation of API clients trickier also.


Add transpilation build step

The project doesn't currently include any transpilation, and the distributed package on npm is therefore unable to be used on older browsers.

I can submit a PR for this.
I would probably just add an npm script in package.json to call babel, rather than setting up webpack or any task runner etc.

Please use 'browserify -g bubleify'


Use concurrency for path scanning

As opposed to #402 which implemented concurrency at the scanPath level, this PR implements configurable concurrency at the path level, that is, all of the recursively discovered paths within a given scanPath.
By default, the concurrency is limited to runtime.NumCPU() and will automatically be set to 1 if the configured concurrency is less than 1. Similarly, the concurrency can not be set higher than the number of paths being scanned.
I converted map[any]any usages over to go-ordered-map to ensure that all of our dictionaries maintain their insertion order when iterated over.
Anecdotally, this change has provided a decent increase in speed depending on the concurrency value, number of files, and the size of each file.
Benchmarking with the default concurrency of runtime.NumCPU() takes ~50 seconds:
goos: darwin
goarch: arm64
pkg: github.com/chainguard-dev/bincapz/samples
cpu: Apple M3 Pro
BenchmarkRun-12    	       1<PHONE_NUMBER>2 ns/op	773853464 B/op	 4895873 allocs/op
PASS
ok  	github.com/chainguard-dev/bincapz/samples	49.446s

as opposed to ~80 seconds without concurrency (-j 1):
goos: darwin
goarch: arm64
pkg: github.com/chainguard-dev/bincapz/samples
cpu: Apple M3 Pro
BenchmarkRun-12    	       1<PHONE_NUMBER>0 ns/op	774942256 B/op	 4896912 allocs/op
PASS
ok  	github.com/chainguard-dev/bincapz/samples	80.366s

Anecdotally, scanning /usr/bin on my Framework Laptop takes ~60 seconds with concurrency and ~220 seconds without (-j 1).

Love it. Thank you!