How to set item_name and item_descrition?

Hi,all
I saw item_name and item_description in the https://www.paypal.com/cgi-bin/webscr?cmd=p/pdn/howto_checkout-outside , but i don't find these in the PP_AdaptivePayments.pdf.
thank you.

are you trying to make a set_payment_options call to update the InvoiceData fields? Where did the keys item_name and item_description come from?


SNOW-1018660: use split_blocks=True by default

Please answer these questions before submitting your pull requests. Thanks!

What GitHub issue is this PR addressing? Make sure that there is an accompanying issue to your PR.
Fixes #SNOW-1018660

Fill out the following pre-review checklist:

[ ] I am adding a new automated test(s) to verify correctness of my new code
[ ] I am adding new logging messages
[ ] I am adding a new telemetry message
[ ] I am adding new credentials
[ ] I am adding a new dependency

Please describe how your code solves the related issue.
Setting split_blocks=True until we get a resolution for default case. This also aligs with the recommendation from pyarrow maintainers.

would this impact user/do we need changelog for this?

I forgot to push the changelog. Updated now


[sql-lab] implement no tabs state, or disallow closing last tab open

Hi @ascott I will work on this issue. Can we make this like we open and close a tab on browser?

i think what we want to do here is disable the close tab option when there is only one tab left. what do you think @mistercrunch?

So, Basically user can create tabs but they can't close the last tab and they can should able to rename tabs. Right?

@ascott Something like this?


Dockerize the worker process

Create a Dockerfile to run the worker process (to try out the worker locally just run cargo run worker).
A/C

There should be a bash script to create the worker binary (e.g. cargo build --release) and create the Docker image
The Docker image should not contain Rust or Cargo, just the pre-compiled worker executable
Port 80 should be exposed (for web UI and REST API)
It should be possible to map a volume containing user-defined types and functions

Sure, this should be easy enough to do with the port mapping and volume stuff.  (Volume mapping will have to be done externally when docker run is specified, but this can be documented.)
Any specific directory structure you want me to use for the Dockerfile storage, or the build scripts?

No, I didn't have anything specific in mind,

Pretty happy with the work: https://github.com/andygrove/datafusion-rs/pull/52


The best performance of pretrained model

Thanks for sharing your released the pretrained model. I wonder whether the default model XMem.pth is training with stage 03 ?The proposed result on val and test set is only the 107K pth ?
Many thanks in advance !

The default is s03.
It is a 107K model if I recall correctly.

I have tried s02 but it has basically the same performance as in s03 so I opted for shorter training instead. If s02 works better in your case then go for it. I have not observed any overfitting in training stage 2. The only caveat is that it takes longer to train.

I have tried s02 but it has basically the same performance as in s03 so I opted for shorter training instead. If s02 works better in your case then go for it. I have not observed any overfitting in training stage 2, and the only caveat is that it takes longer to train.
Thanks. I evaulate my base training(stage03) result on val set with 2 A-100 gpu and 4 A-100 gpu training (keep batch size = 8 )，but the result is only 85.8 and 84.9.  Could you give some suggestions what caused that ?

I have only trained it on the few machines that I have access to and I have not had any significantly worse results so I have little idea. Have you tried to look at all the last few network weights (105K-110K) and see if any of them is better?
Another reason can be PIL 8 vs. PIL 9 -- they use different JPEG reading algorithms and I recently run into problems with one of my recent projects but I am not sure if it affects XMem.
If longer training works in your case it is probably the easiest thing to do.

There seems to be a similar issue in #60. This is probably not an isolated case but it is very hard for me to debug...

Thanks for your kind reply. The only difference between stage 02 and stage 03 is the number of iterations , right ? So I think the result of stage 02 and stage 03 in 100K iterations shoud be nearly same, but I tested them on DAVIS val set found it is 84.0 and 84.7, respectively. Could you give me some suggestions ?

We adjust the maximum skip between frames (curriculum learning) using the training progress in terms of the percentage of total iterations. So they are not the same when the total number of iterations is different.
I will try to investigate the training issue.

Continue in #71.


Run pre-commit on template

Fixes https://github.com/napari/cookiecutter-napari-plugin/issues/109. I also copied the included .pre-commit-config.yaml file to the root of this repository. I checked all the changes and they seemed 👍

👍 makes sense, done


Custom Seek bar (seekto() function )is not working in v3.0.4

Describe the bug
The player is working fine but seek bar is not working
To Reproduce
initiaize
  late final YoutubePlayerController controller;

  @override
  void initState() {
    controller = YoutubePlayerController(
        params: const YoutubePlayerParams(
      showControls: false,
      strictRelatedVideos: false,
      enableJavaScript: true,
      mute: false,
    ))
      ..onInit = () {
        controller.loadVideoById(
          videoId: widget.videoUrl,
          startSeconds: 0,
        );
        controller.playVideo();
      };
    super.initState();
  }
// player
  SizedBox(
                  width: Dimension.flullScreen,
                  height: Dimension.flullScreen,
                  child: YoutubePlayer(
                    controller: controller,
                    aspectRatio: 16 / 9,
                  ),
 ),

seek bar
  Widget VideoPositionIndicator(YoutubePlayerController controller) {
    return YoutubeValueBuilder(
        controller: controller,
        builder: (context, val) {
          return StreamBuilder<Duration>(
            stream: controller.getCurrentPositionStream(),
            initialData: Duration.zero,
            builder: (context, snapshot) {
              num position = snapshot.data?.inSeconds ?? 0;
              final duration = controller.metadata.duration.inSeconds;
              log("$position $duration ${position / duration}");
              return SliderTheme(
                data: SliderThemeData(inactiveTrackColor: Colors.blue[400]),
                child: Slider(
                  value: (position / duration).toString() == "NaN"
                      ? 0
                      : position / duration,
                  onChanged: (value) {
                    setState(() {
                      log((value * duration).toString() + " this is value ");
                      controller.seekTo(seconds: (value * duration).toDouble());
                      position = value * duration;
                    });
                  },
                  min: 0,
                  max: 1,
                ),
              );
            },
          );
        });
  }

Expected behavior
when pressing seek bar we need to change the video possision
Technical Details:

Device: Android emulator Api31

I am facing kind of a similar issue.
Changing Video position from the video controls works & can be detected by setting up a getCurrentPositionStream().
But using the seekto() function does not work fine, does not play when called from playing state & messes up the position stream.

You can do like this.
https://github.com/sarbagyastha/youtube_player_flutter/blob/667ce9a0d0d42eb491186353fce63a4484d0941f/packages/youtube_player_iframe/example/lib/main.dart#L222-L271

it has the same issue i think the seek function is not working ?


Pip installation failed

Describe the bug
Windows 10
To install nussl using pip in conda env.
python 3.8.5 in a conda environment with pip 20.3
command pip install nussl get error output:
 Using cached gpytorch-0.2.0.tar.gz (169 kB)     ERROR: Command errored out with exit status 1:      command: 'D:\Anaconda\envs\music_source_separation_general\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\lenovo\\AppData\\Local\\Temp\\pip-install-affhr0p0\\gpytorch_d51182a0078142c8b63a596c1b32fb17\\setup.py'"'"'; __file__='"'"'C:\\Users\\lenovo\\AppData\\Local\\Temp\\pip-install-affhr0p0\\gpytorch_d51182a0078142c8b63a596c1b32fb17\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\lenovo\AppData\Local\Temp\pip-pip-egg-info-2vozllyb'          cwd: C:\Users\lenovo\AppData\Local\Temp\pip-install-affhr0p0\gpytorch_d51182a0078142c8b63a596c1b32fb17\     Complete output (5 lines):     Traceback (most recent call last):       File "<string>", line 1, in <module>       File "C:\Users\lenovo\AppData\Local\Temp\pip-install-affhr0p0\gpytorch_d51182a0078142c8b63a596c1b32fb17\setup.py", line 40, in <module>         with open("requirements.txt", "r") as f:     FileNotFoundError: [Errno 2] No such file or directory: 'requirements.txt'     ---------------------------------------- ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

Still, I cannot regularly install nussl with pip install nussl and don't know the reason behind. So I decided to use nussl as a portable package, and tried to set up dependencies by pip install -r requirements.txt. But this command brings out errors, too. In my case (windows10, conda 4.9.2, python 3.8.5, pip 20.3), the main problem is to build torch and pytorch-ignite. So I removed these two packages in requirements.txt and then use conda install pytorch to install torch (because torch installation is included in pytorch installation in anaconda) later on. And after torch has been installed, use pip install pytorch-ignite to complete the installation of dependencies defined in original requirements.txt file.
But these have not get imort nussl to function normally for me yet. One problem is that in the __init__.py of module stempeg cound not find module ffmpeg or ffprobe, although I tried to use pip to install both modules to solve the problem. It seems in a conda environment, the code line in __init__.py of module stempeg to detect modules only find modules that also can be seen in Anaconda Navigator, because I used conda install ffmpeg, and problem solved.
Up to this position, import nussl in Jupyter-notebook has no problem.
But if I want to import nussl in a python IDE e.g. Spyder, it gives out an error saying SoX not found. So I followed the website suggestion to install SoX for my Windows and add it to system path as environment variable. Restart PC and everything works fine. (note: actually not everything works fine, my audio driver of PC cound not be found after system restart! Don't know whether related to installation of SoX, but follow repairing procedure of Windows Diagnose, Problem could be solved!)
Wrap up to a simple procedure that for me worked when I only want to use nussl as a portable package:

remove torch and pytorch-ignite in requirements.txt
pip install -r requirements.txt
conda install pytorch
pip install pytorch-ignite
conda install ffmpeg
Then it should be able to be used in Jupyter-notebook.
For use with Python IDE:
install SoX on Windows from here and add it to path.
restart your PC
if find problem with your audio driver, follow instructions of Windows Diagnose.


Please consider switching to Yarn for Javascript package management

I'm submitting a feature request
Please consider switching to Yarn over using raw npm, for Aurelia Bootstrapper and other js dep management for Aurelia.
See:
https://code.facebook.com/posts/1840075619545360

What is the motivation / use case for changing the behavior?

Yarn has many advantages over using npm directly. In particular, dependencies are not duplicated, and Yarn is much faster than npm.

why can't you use yarn already?

I can. I'm suggesting switching to using it for the examples and in the bootstrapper.

It seems a little premature to do all that.

Fair enough, closing.

One year down the line, would you still say it is premature? Can we potentially reopen this? Is Yarn the way to go now?

It’s supported in the cli now :)

@EisenbergEffect can we "unsupported" it? I am using NPM for dependencies and when I do, it will remove whole Aurelia project.


In coherence, suspected bug in the calculation of the expected state

For T1, I see that the BaseCoherenceFitter constructor is initialized with expected_state=1. Then BaseCoherenceFitter._calc_data contains the lines:
expected_state_list = [self._expected_state] * self._num_of_qubits
expected_state_str = ''.join(expected_state_list)

which generate, for two qubits, expected_state_str='11', instead of 01.
Perhaps I'm wrong, as test_t1 is supposed to fail if there really is a bug.

I'm not clear what point num_of_qubits has independent of qubit. I would suggest we switch to qubit as a list of qubits which we will do these experiments in parallel


Move pagination config to AjaxDatatablesRails:: Configuration

It's awful to have to remove and uncomment pagination options on each child class.

Completed


add integration tests based on examples to GH actions

to make sure that all examples work, we should add a GH action that retrieves the substrate-api-client-test-node artifact and tests against it

Closed by #177


TN-2715 Substudy patient list

address:  https://jira.movember.com/browse/TN-2715
specs here: https://promowiki.movember.com/pages/viewpage.action?spaceKey=ISS&title=Sub+Study+Patient+List

@pbugni I added backend changes for the sub-study patients list. I'd appreciate it if you can review those changes.

@pbugni Also, I forgot to mention that the frontend code will need to be rebuilt when you have a chance to try out these changes.

Hello @achen2401! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:

In the file portal/models/user.py:

Line 1696:17: E128 continuation line under-indented for visual indent
Line 1697:17: E128 continuation line under-indented for visual indent

Noting that this is ready for reviewing now.
@pbugni @ivan-c @mcjustin


Add database.yml in .gitigonre and creates an example file

Resolves #146
This PR adds database.yml to .gitignore file and creates database.yml.example.

First, thank you for the steps you took to open this PR! The find problem -> create issue -> clearly claim issue -> open PR steps are super helpful for tracking! 😄
I commented in #146, but a quick observation: It looks like while the file was added to .gitignore, it's still being tracked (note the "2 files added, 0 deletions" note on this PR). Git's tricky with un-tracking files: along with adding them to gitignore, you need to run git rm --cached <file> to remove it from the tracked repo (solution/explanation).

Re: the discussion on #146, I don't think we're going to go with this strategy: too much built tool complexity.
I'm closing this PR–we can keep talking in #146.


Investigate DB connection starvation

I left my pipeline-controller running over the weekend and today realized it has given a lot of exceptions. It seems after a while there are no more DB connections available to be acquired. This is an indication that we are leaking connections but I have not investigated the root cause yet. Here are some log lines followed by an exception that is repeated many times:
08:00:09.781 [scheduling-1] INFO  o.openmrs.analytics.PipelineManager org.openmrs.analytics.PipelineManager.checkSchedule:210 - Last run was at 2023-04-01T07:00:09.736194 next run is at 2023-04-01T08:00
08:00:09.781 [scheduling-1] INFO  o.openmrs.analytics.PipelineManager org.openmrs.analytics.PipelineManager.checkSchedule:212 - Incremental run triggered at 2023-04-01T08:00:09.781330
08:00:09.782 [scheduling-1] INFO  org.openmrs.analytics.DataProperties org.openmrs.analytics.DataProperties.createBatchOptions:104 - Converting options for fhirServerUrl http://hapi-server:8080/fhir
08:00:09.785 [scheduling-1] INFO  o.openmrs.analytics.PipelineManager org.openmrs.analytics.PipelineManager.buildJdbcPipeline:222 - Creating HAPI JDBC pipeline with options Current Settings:
  appName: DataProperties
  fhirDatabaseConfigPath: config/hapi-postgres-config_local.json
  fhirServerUrl: http://hapi-server:8080/fhir
  maxParallelism: 10
  optionsId: 61
  outputParquetPath: /dwh/controller_DWH_TIMESTAMP_2023_03_31T05_43_49_191250Z/incremental_run/
  processDeletedRecords: true
  resourceList: Patient,Encounter,Observation
  runner: class org.apache.beam.runners.flink.FlinkRunner
  since: 2023-03-31T05:43:51.101980Z

08:00:09.787 [scheduling-1] INFO  o.o.analytics.JdbcConnectionUtil org.openmrs.analytics.JdbcConnectionUtil.<init>:40 - Creating a JdbcConnectionUtil for jdbc:postgresql://hapi-fhir-db:5432/hapi with driver class com.mysql.cj.jdbc.Driver and max pool size 50
08:00:09.837 [scheduling-1] INFO  o.openmrs.analytics.PipelineManager org.openmrs.analytics.PipelineManager.runIncrementalPipeline:273 - No new resources to be fetched!
08:00:39.837 [scheduling-1] INFO  o.openmrs.analytics.PipelineManager org.openmrs.analytics.PipelineManager.checkSchedule:210 - Last run was at 2023-04-01T08:00:09.837788 next run is at 2023-04-01T09:00
08:00:39.965 [C3P0PooledConnectionPoolManager[identityToken->1hgeadiavf1bo2v1xbtbaz|736f9766]-HelperThread-#2] WARN  c.m.v.resourcepool.BasicResourcePool c.m.v2.log.slf4j.Slf4jMLog$Slf4jMLogger$WarnLogger.log:223 - com.mchange.v2.resourcepool.BasicResourcePool$ScatteredAcquireTask@dd255c1 -- Acquisition Attempt Failed!!! Clearing pending acquires. While tr
ying to acquire a needed new resource, we failed to succeed more than the maximum number of allowed acquisition attempts (30). Last acquisition attempt exception:
org.postgresql.util.PSQLException: FATAL: sorry, too many clients already
        at org.postgresql.core.v3.ConnectionFactoryImpl.doAuthentication(ConnectionFactoryImpl.java:646)
        at org.postgresql.core.v3.ConnectionFactoryImpl.tryConnect(ConnectionFactoryImpl.java:180)
        at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:235)
        at org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:49)
        at org.postgresql.jdbc.PgConnection.<init>(PgConnection.java:223)
        at org.postgresql.Driver.makeConnection(Driver.java:402)
        at org.postgresql.Driver.connect(Driver.java:261)
        at com.mchange.v2.c3p0.DriverManagerDataSource.getConnection(DriverManagerDataSource.java:175)
        at com.mchange.v2.c3p0.WrapperConnectionPoolDataSource.getPooledConnection(WrapperConnectionPoolDataSource.java:220)
        at com.mchange.v2.c3p0.WrapperConnectionPoolDataSource.getPooledConnection(WrapperConnectionPoolDataSource.java:206)
        at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool$1PooledConnectionResourcePoolManager.acquireResource(C3P0PooledConnectionPool.java:203)
        at com.mchange.v2.resourcepool.BasicResourcePool.doAcquire(BasicResourcePool.java:1176)
        at com.mchange.v2.resourcepool.BasicResourcePool.doAcquireAndDecrementPendingAcquiresWithinLockOnSuccess(BasicResourcePool.java:1163)
        at com.mchange.v2.resourcepool.BasicResourcePool.access$700(BasicResourcePool.java:44)
        at com.mchange.v2.resourcepool.BasicResourcePool$ScatteredAcquireTask.run(BasicResourcePool.java:1908)
        at com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread.run(ThreadPoolAsynchronousRunner.java:696)
08:00:39.966 [C3P0PooledConnectionPoolManager[identityToken->1hgeadiavf1bo2v1xbtbaz|736f9766]-HelperThread-#2] WARN  c.m.v.resourcepool.BasicResourcePool c.m.v2.log.slf4j.Slf4jMLog$Slf4jMLogger$WarnLogger.log:220 - Having failed to acquire a resource, com.mchange.v2.resourcepool.BasicResourcePool@6e43fbec is interrupting all Threads waiting on a resource t
o check out. Will try again in response to new client requests.

Here are more indications that we indeed are leaking connections: We can force incremental runs multiple times and monitor number of connections. Each run creates three more connections but they are not released after the incremental run is done. Here is a sample query showing this between two runs:
hapi=# SELECT datid, datname, numbackends, sessions, session_time, active_time FROM pg_catalog.pg_stat_database;
 datid |  datname  | numbackends | sessions |  session_time   | active_time
-------+-----------+-------------+----------+-----------------+-------------
     0 |           |           0 |        0 |               0 |           0
 13757 | postgres  |           0 |        2 |          70.221 |      65.104
 16384 | hapi      |          24 |   642358 |<PHONE_NUMBER>9.652 |  171082.081
     1 | template1 |           0 |        0 |               0 |           0
 13756 | template0 |           0 |        0 |               0 |           0
(5 rows)

hapi=#
hapi=#
hapi=#
hapi=# SELECT datid, datname, numbackends, sessions, session_time, active_time FROM pg_catalog.pg_stat_database;
 datid |  datname  | numbackends | sessions |  session_time   | active_time
-------+-----------+-------------+----------+-----------------+-------------
     0 |           |           0 |        0 |               0 |           0
 13757 | postgres  |           0 |        2 |          70.221 |      65.104
 16384 | hapi      |          27 |   642374 |<PHONE_NUMBER>2.689 |   171097.69
     1 | template1 |           0 |        0 |               0 |           0
 13756 | template0 |           0 |        0 |               0 |           0
(5 rows)

Input from @atulai-sg that he has seen it with the docker container as well but not with directly running the controller.


This commit adds email address, fixes #1

Just to make sure we have an email address pattern. #hacktoberfest <3

@lk-geimfari I got a question. I want to get PR register for the #hacktoberfest but seems like they're nos registering for any reason. Any ideas?

@imgglasses You need to test more formats of email. Please, look on issue #12


autobahn 18.11.1 and/or txaio 18.8.1 hangs

The exact same code works fine with autobahn==18.4.1 txaio==2.10.0. @meejah helped me write this so you know it's good 😉

async def main(loop):
    f = asyncio.Future()

    comp = Component(
        transports=opts.crossbar_url,
        realm=opts.crossbar_realm,
    )
    comp.loop = loop

    comp.start()
    comp.on('join', lambda s, d: f.set_result(None))

    do_work(comp)

    await f # don't exit until we connect to crossbar

...

loop = asyncio.get_event_loop()
loop.run_until_complete( main(loop) )

Sitting here with @meejah can can't reproduce.


Doesn't show duplicate flakes in makefu's config

https://github.com/makefu/nixos-config/blob/master/flake.lock
Should show:

disko, flake-parts and flake-utils

Fixed in https://github.com/Mic92/flake-linter/pull/5

github:nix-community/disko has multiple versions:
  disko is used by: clan-core
  disko_2 is used by: root
github:hercules-ci/flake-parts has multiple versions:
  flake-parts is used by: clan-core
  flake-parts_2 is used by: root
  flake-parts_3 is used by: lanzaboote
github:numtide/flake-utils has multiple versions:
  flake-utils is used by: crane, ha-ara-menu, pre-commit-hooks-nix, rust-overlay
  flake-utils_2 is used by: poetry2nix
  flake-utils_3 is used by: inventory4ce
  flake-utils_4 is used by: poetry2nix_2
  flake-utils_5 is used by: lanzaboote
  flake-utils_6 is used by: nix-writers
  flake-utils_7 is used by: vscode-server
  utils is used by: nix-ld
github:NixOS/nixpkgs has multiple versions:
  nixpkgs is used by: clan-core, crane, disko, disko_2, flake-parts, flake-parts_2, flake-parts_3, gitignore, ha-ara-menu, home-manager, inventory4ce, lanzaboote, nix-ld, nix-writers, nixos-generators, poetry2nix, poetry2nix_2, pre-commit-hooks-nix, root, rust-overlay, sops-nix, stockholm, treefmt-nix, vscode-server
  nixpkgs-stable is used by: pre-commit-hooks-nix
github:nix-community/poetry2nix has multiple versions:
  poetry2nix is used by: ha-ara-menu
  poetry2nix_2 is used by: inventory4ce
github:nix-systems/default has multiple versions:
  systems is used by: flake-utils
  systems_2 is used by: flake-utils_2
  systems_3 is used by: flake-utils_3
  systems_4 is used by: flake-utils_4
  systems_5 is used by: flake-utils_5
  systems_6 is used by: flake-utils_7


Show deep comparison on failure

Firstly, thanks for the great plugin for Jasmine :+1:
I have a small request to add a nice comparison between the two objects
This request is inspired by the chai immutable library, which given the test-setup
import chaiImmutable from 'chai-immutable';

chai.use(chaiImmutable);

With the test file:
import { expect } from 'chai';
import Immutable from 'immutable';

describe('Chai Immutable Comparisons', function () {
  it('Outputs a comparison on failure for different map values', function () {
    expect(Immutable.Map({ a: 20, b: 20 })).to.equal(Immutable.Map({ a: 22 }));
  });
});

Provides a nice visual difference of

This comparison works for deeply nested objects too

Yeah, you are totally right. I'll look into this.

I just checked, and chai-immutable and this library are doing the same: just calling toString on the objects. It's chai itself the one that provides the nice green/red diff. We should request this in the jasmine project I guess?


Some settings don't stick when default profile is activated and some profiles has issues with  staying on

The main issues I've been having are with the default profile not enabling everything when it is automatically triggered to apply. Like GPU max freq doesn't set to the profile's settings and sometimes other things. Another issue is with the per app profiles not enabling or staying enabled when using said app
Example: I open YouTube. It enables the profile that is set to apply when that app is open. Sometimes it will flip between the home/default profile and the profile that is applied to the YouTube app. This doesn't happen with just the YouTube app. It sometimes happens with many other apps too.

The profiles only save settings that have been toggled/changed in app.
They won't restore your kernel's default settings... I would have to scan and save all of those on boot in order to do that.


BUG:Chinese supports garbled characters

Query data returns garbled Chinese characters

The bug has been fix in v1.0.2 version, please upgrade the  plugin to latest version


Fix the linking situation

We have three sets of users to support:

Those who build the nix flake;
Those who build the project using rustup;
Those who build the project by hand using a nix-provided toolchain.

We should now correctly support all three, with error messages when we're in an unexpected situation. The setup is now as follows: charon-driver is never called directly; instead, call charon --no-cargo. In general, charon is the entrypoint that makes sure we have the right toolchain around.

Yes, that's why I left it as draft


omegaconf_ignore not working

from dataclasses import dataclass, field
@dataclass
class HasIgnoreMetadata:
   normal_field: int = 1
   field_ignored: int = field(default=2, metadata={"omegaconf_ignore": True})

cfg = OmegaConf.create(HasIgnoreMetadata())
cfg

Result - {'normal_field': 1, 'field_ignored': 2}
omegaconf_ignore doesn't ignore the field

it seems #988 is not included in omegaconf 2.3 version

Hello,
OmegaConf version 2.3 has not been released yet. The current release is OmegaConf v2.2.3.
The omegaconf_ignore feature will be included in the v2.3 release.
You can try a dev release to preview OmegaConf v2.3:
pip install omegaconf==2.3.0.dev1
https://pypi.org/project/omegaconf/2.3.0.dev1/


Generate the target list in wait-for-services.sh

Probably by using docker labels or parsing docker-compose.yml.

not sure this is needed atm -- closing for now, may be reopened for the development docker-compose


Tray background is always transparent

Are you using tray-transparent = true? See the notes on the wiki

I was able to fix the problem, so closing the issue. Thank you :)

Howw did you fix the problem?

@elliot-wasem This should never happen since version 3.3.0 as long as you have set tray-background to the same color as the bar background


transactions randomly hang until new blocks come in

Had it happen to me twice recently, even before the latest version. The last time, I think it waited for 2 blocks (may have published right around the time of the first one) for it to return from the blocking call. As soon as I saw the block come in, the publish finished.
We are also seeing timeouts on lbry.tv which could be related to this.

Better, but still an issue - 2 blocks came in before it accepted the tx. Client side? Server side?  Was connected to <IP_ADDRESS>:50001
2020-05-15 11:19:23,036 INFO     lbry.extras.daemon.daemon:680: stream_abandon () {'txid': '3fdbeb5565a6b065d235ff0aafd880d8d71efc721e761ab24ede1fa0df82644f', 'nout': 0, 'blocking': True}
2020-05-15 11:19:23,123 INFO     lbry.extras.daemon.daemon:2113: Deleted file 1995.199.16.b_full.tif
2020-05-15 11:19:32,116 INFO     lbry.wallet.ledger:153: lbc_mainnet: added BlockHeightEvent(height=764890, change=1) header blocks, final height 764890
2020-05-15 11:23:27,429 INFO     lbry.wallet.ledger:153: lbc_mainnet: added BlockHeightEvent(height=764891, change=1) header blocks, final height 764891
2020-05-15 11:23:29,619 INFO     lbry.wallet.ledger:138: (lbc_mainnet) on_transaction: address=bQMwMTB6chWPi62T6Pbxd2E1Aw6XM96kNS, height=764891, is_verified=True, tx.id=d0f65a02339b000143e43ae4d8b9be95a074e44894bc9c7f6ac1d14719fdacf2
2020-05-15 11:23:29,631 INFO     lbry.wallet.ledger:138: (lbc_mainnet) on_transaction: address=bL73LKYofSDry9HSRedz9ztPaWGTZRxynQ, height=764891, is_verified=True, tx.id=d0f65a02339b000143e43ae4d8b9be95a074e44894bc9c7f6ac1d14719fdacf2```

This should be fixed, but it seems to have caused a higher rate of missing input/mempool tx error rate.

This is still an issue and happens when a tx is submitted when a new block comes in - it hangs until the next block is processed.

This is still an issue and happens when a tx is submitted when a new block comes in - it hangs until the next block is processed.

Pleaseeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee

@shyba was looking at this recently

this is a pretty big change. we'd need to change the mempool to use zmq, which is on the roadmap for the hub rewrite. after jack is done with his current work, this could be next on his list

Still ran into it, but seems much harder to repro!
2021-07-22 16:22:53,206 WARNING  lbry.wallet.ledger:761: local history does not contain eb31d0ebdfb407a18ad08459e7df03064de2e6ac8ef4f07df9e54c3f11bf1bfc, requested height -1
2021-07-22 16:22:53,207 WARNING  lbry.wallet.ledger:761: local history does not contain eb31d0ebdfb407a18ad08459e7df03064de2e6ac8ef4f07df9e54c3f11bf1bfc, requested height -1
2021-07-22 16:22:54,205 WARNING  lbry.wallet.ledger:761: local history does not contain eb31d0ebdfb407a18ad08459e7df03064de2e6ac8ef4f07df9e54c3f11bf1bfc, requested height -1
2021-07-22 16:22:54,205 WARNING  lbry.wallet.ledger:761: local history does not contain eb31d0ebdfb407a18ad08459e7df03064de2e6ac8ef4f07df9e54c3f11bf1bfc, requested height -1
2021-07-22 16:22:54,206 WARNING  lbry.wallet.ledger:761: local history does not contain eb31d0ebdfb407a18ad08459e7df03064de2e6ac8ef4f07df9e54c3f11bf1bfc, requested height -1
2021-07-22 16:22:55,208 WARNING  lbry.wallet.ledger:761: local history does not contain eb31d0ebdfb407a18ad08459e7df03064de2e6ac8ef4f07df9e54c3f11bf1bfc, requested height -1
2021-07-22 16:22:55,208 WARNING  lbry.wallet.ledger:761: local history does not contain eb31d0ebdfb407a18ad08459e7df03064de2e6ac8ef4f07df9e54c3f11bf1bfc, requested height -1
2021-07-22 16:22:55,209 WARNING  lbry.wallet.ledger:761: local history does not contain eb31d0ebdfb407a18ad08459e7df03064de2e6ac8ef4f07df9e54c3f11bf1bfc, requested height -1
2021-07-22 16:22:56,200 WARNING  lbry.wallet.ledger:761: local history does not contain eb31d0ebdfb407a18ad08459e7df03064de2e6ac8ef4f07df9e54c3f11bf1bfc, requested height -1
2021-07-22 16:22:56,201 WARNING  lbry.wallet.ledger:761: local history does not contain eb31d0ebdfb407a18ad08459e7df03064de2e6ac8ef4f07df9e54c3f11bf1bfc, requested height -1
2021-07-22 16:22:56,201 WARNING  lbry.wallet.ledger:761: local history does not contain eb31d0ebdfb407a18ad08459e7df03064de2e6ac8ef4f07df9e54c3f11bf1bfc, requested height -1
2021-07-22 16:22:57,205 WARNING  lbry.wallet.ledger:761: local history does not contain eb31d0ebdfb407a18ad08459e7df03064de2e6ac8ef4f07df9e54c3f11bf1bfc, requested height -1
2021-07-22 16:22:57,205 WARNING  lbry.wallet.ledger:761: local history does not contain eb31d0ebdfb407a18ad08459e7df03064de2e6ac8ef4f07df9e54c3f11bf1bfc, requested height -1
2021-07-22 16:22:57,206 WARNING  lbry.wallet.ledger:761: local history does not contain eb31d0ebdfb407a18ad08459e7df03064de2e6ac8ef4f07df9e54c3f11bf1bfc, requested height -1
2021-07-22 16:22:58,211 WARNING  lbry.wallet.ledger:761: local history does not contain eb31d0ebdfb407a18ad08459e7df03064de2e6ac8ef4f07df9e54c3f11bf1bfc, requested height -1
2021-07-22 16:22:58,211 WARNING  lbry.wallet.ledger:761: local history does not contain eb31d0ebdfb407a18ad08459e7df03064de2e6ac8ef4f07df9e54c3f11bf1bfc, requested height -1
2021-07-22 16:22:58,212 WARNING  lbry.wallet.ledger:761: local history does not contain eb31d0ebdfb407a18ad08459e7df03064de2e6ac8ef4f07df9e54c3f11bf1bfc, requested height -1
2021-07-22 16:22:58,496 INFO     lbry.wallet.ledger:150: lbc_mainnet: added BlockHeightEvent(height=999583, change=1) header blocks, final height 999583
2021-07-22 16:22:59,207 WARNING  lbry.wallet.ledger:761: local history does not contain eb31d0ebdfb407a18ad08459e7df03064de2e6ac8ef4f07df9e54c3f11bf1bfc, requested height -1
2021-07-22 16:22:59,208 WARNING  lbry.wallet.ledger:761: local history does not contain eb31d0ebdfb407a18ad08459e7df03064de2e6ac8ef4f07df9e54c3f11bf1bfc, requested height -1

This still continues to cause issues on Odysee and YT sync
Some symptoms:
publishes fail due to timeout, users try to reupload, causing duplicates
tipping fails, causing duplicates since it's not clear/handled well
YT sync doesn't record channel data since the call doesn't return within a few minutes.


package for CTRLsum (easy to use)

Thanks for cool research. The results of this research were quite appealing to me, so I made the package to make it easier to use. The package is called summarizers. I ported the model you provided to Hugging Face Transformers, and I made it for use with codes 2 to 3 lines.  If anyone wants to try this model more easily, it would be good to use.
https://github.com/hyunwoongko/summarizers
Thanks for great research again.

Thank you very much! I added references to your repo as well as the huggingface interface into README.

I ported the following name on the Hugging Face.

https://huggingface.co/hyunwoongko/ctrlsum-cnndm
https://huggingface.co/hyunwoongko/ctrlsum-arxiv
https://huggingface.co/hyunwoongko/ctrlsum-bigpatent

Thanks a lot!

Thank you! I have a question for the unconditional summarization example: the unconditional summaries are generated with empty keywords/prompts in the package, right? I am asking just for clarification since it is different from the paper which uses automatic keywords, while I think it is still good and simple without an additional tagger.

Yeah. because It is just first draft version. I will add BERT tagger later (next version) Thanks.

hello，how to covert fairseq's CTRLsum to huggingface's CTRLsum。Thanks :)

Hi, the pretrained model checkpoints are already avaiable at huggingface, but we don't have a training script to train CTRLsum using Huggingface.
However, you can train CTRLsum with huggingface easily --  just run our preprocessing script to prepare the data, then run huggingface's summarization example script here following our training hyperparameters.


Package auto building - Mac OS

We need pkg file and brew repository.

Test pkg can be found at https://github.com/dataversioncontrol/dvc/releases/tag/<IP_ADDRESS>-travis-macos-release-test


Tp tutorial

Initial Transaction processor tutorial that supports multiple languages, and structure
for the App Dev Guide/SDKs for each language.
This PR is probably not the final PR. Creating to allow interested parties to view.

Note to reviewers: This PR creates Python and JavaScript tutorials. The code snippets for JavaScript  are still missing, however. I may back out the JavaScript part if we want to merge it before that code is ready.

This PR is replaced by PR # 431


build image from GBI in CI

Overview

Fixes #(issue)
Notes for reviewer

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


Audio continuously play after closing screen.

one amazing issue i raised.
When we open play screen that time load url in Sound like this.
  whoosh = new Sound("write  here any mp3 url", null, e => {       if (e) {         console.log('error loading track:', e);       } else {         whoosh.play(success => {           if (success) {             console.log('successfully finished playing');           } else {             console.log('playback failed due to audio decoding errors');           }         });       }
Step to Regenerate:

Load url in sound
We close the screen before the url complete loading
mp3 play after closing screen (I want to stop this playing).

I used
whoosh.release()
this work when url loaded completely and close the screen, that time audio stop.
### But when url is loading that time screen close that time audio continuously play. How to solve this?

hi @tarbundiyahitesh21 any solution ?

hi @tarbundiyahitesh21 any solution ?

no


pull request for e2e test at 12/01/2016 07:56:04

:white_check_mark: Validation status: passed
For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


Code block syntax highlighting is not working

just like demo show

@rahidelvi and @LoveqLRC I think this https://github.com/myJekyll/jasper2/commit/7a4ab9cc59145912f12989b6c5d4c185dbe3e9cb and https://github.com/myJekyll/jasper2/commit/c1adbe36524967e5cd490fe2dd2f89ad7ab91f9f helped as it now looks like Ghost's, but there is no actual syntax highlight. I will try with http://prismjs.com/ later on...
Thank you!
F:)

According to https://jekyllrb.com/docs/templates/#stylesheets-for-syntax-highlighting , an additional stylesheet syntax.css needs to be included:

In order for the highlighting to show up, you’ll need to include a highlighting stylesheet. For an example stylesheet you can look at syntax.css. These are the same styles as used by GitHub and you are free to use them for your own site. If you use linenos, you might want to include an additional CSS class definition for the .lineno class in syntax.css to distinguish the line numbers from the highlighted code.

This fixed the issue for me.

Still hope to fix it


TransferFunction _common_den rewrite - issue #194

On my machines I got a consistent issue #194 error. (Mac OSX and Linux).
After playing around with the seed in convert_test.py, I got slightly different results for the tests. I inspected _common_den (xferfcn.py) with the debugger, and found that in some cases a lot of cancelling poles would be added; the sorting for pole comparison did not consistently work.
I then re-thought and re-worked the _common_den function, instead of sorting, cycling through all known poles, comparing to poles in the current denominator, marking which ones are found -- to prevent accepting double poles, and remembering which ones are not found.
The whole thing is a lot shorter, and I believe also a lot more robust. I hope this eliminates the elusive #194

Coverage decreased (-0.2%) to 77.683% when pulling 05a6934423fbb5330633c5b150edecb9c143e6e4 on repagh:tf-combination into 601b58152080d89575cc677474ec7714e1a34ee2 on python-control:master.

I average coverage actually decreased, simply because I made xferfcn.py 58 lines shorter and that file had a coverage wel above average.

Please do not merge yet. I now realise that only poles common to an input can be removed from the tf's, (thanks to issue #111). I will try to resolve that over the next week or so.

@repagh It would be great to add a unit test that catches issue #111 while you are at it.

I think I got it this time.

The convert_test.py smoothly runs
test case for #111 also works
I modified/corrected a test case in xferfcn_test.py, same issue, deleted poles

Note that this relies on my fixes to Slycot; these fix a number of edge cases

I fixed up the Travis CI issues in PR #210 and tested this code (locally) to make sure that it passes unit tests.  On MacOS 10.13 I get the following error:
ERROR: testModred (control.tests.matlab_test.TestMatlab)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/murray/Dropbox/macosx/src/python-control/murrayrm/control/tests/matlab_test.py", line 400, in testModred
    modred(self.siso_ss3, [1], 'matchdc')
  File "/Users/murray/Dropbox/macosx/src/python-control/murrayrm/control/modelsimp.py", line 181, in modred
    raise ValueError("Matrix A22 is singular to working precision.")
ValueError: Matrix A22 is singular to working precision.

I haven't figured out what specifically in this PR is causing the problem, but need to chase this down before we can merge.
@repagh Can you run this against the latest version of slycot and see if you get the same error?

I get the same error.
However, I do not think this should be an issue. The modred is performed on a state-space system created with tf2ss, through slycot. One of the states is removed in modred, and since the tf2ss has been changed, a different set (of equally valid) states has come out of that step. Without control over what  states are chosen for a state-space system, one should not try to eliminate a specific single state.
Using siso_ss1 instead of self.siso_ss3 for the test works.

I also see a bunch of other tests failing (e.g. test_robust). I don't get that same behaviour locally.

The other tests are failing due to changes that are addressed in PR #210.  I'll test locally and if everything is working then I'll merge PR #210 and then this PR, which should get us back to a working master branch.

Confirmed that latest change (to modred unit tests) fixes the issue on my local machine.  PR #210 is now merged, so this PR is ready to go.


merge package from arlac77/npm-package-template

package.json

chore(package<EMAIL_ADDRESS>chore(scripts): cover@#overwrite c8 --temp-directory build/coverage ava && c8 report -r lcov --temp-directory build/coverage
chore(package): add nyc from template
chore(package): set $.ava.require='esm' as in template
chore(package): set $.ava.files='tests/-test.js,tests/-test.mjs' as in template
chore(package): set $.ava.extensions='js,mjs' as in template

Codecov Report

Merging #448 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #448   +/-   ##
=======================================
  Coverage   73.94%   73.94%
=======================================
  Files           2        2
  Lines         476      476
=======================================
  Hits          352      352
  Misses        124      124

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 8a605ba...8f8186e. Read the comment docs.

Coverage remained the same at 71.626% when pulling 8f8186e55f9520b5e7d240eb597032730a6a1416 on template-sync-1 into 8a605bada1fdd40378ead0b6f74fd93c9647de08 on master.

:tada: This PR is included in version 3.0.0 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Add support for enums

Some example:
#include<stdio.h>
enum week{Mon, Tue, Wed};
int main()
{
    enum week day;
    day = Wed;
    printf("%d",day); // result is : 2
    return 0;
}

#include<stdio.h>
enum year{Jan, Feb, Mar, Apr, May, Jun, Jul,
          Aug, Sep, Oct, Nov, Dec};
int main()
{
   int i;
   for (i=Jan; i<=Dec; i++)
      printf("%d ", i);
   return 0;
}

#include <stdio.h>
enum State {Working = 1, Failed = 0, Freezed = 0};
int main()
{
   printf("%d, %d, %d", Working, Failed, Freezed); // result : 1, 0, 0
   return 0;
}

#include <stdio.h>
enum day {sunday, monday, tuesday, wednesday, thursday, friday, saturday};
int main()
{
    enum day d = thursday;
    printf("The day number stored in d is %d", d); //Result : The day number stored in d is 4
    return 0;
}

#include <stdio.h>
enum day {sunday = 1, monday, tuesday = 5,
          wednesday, thursday = 10, friday, saturday};
int main(){
       printf("%d %d %d %d %d %d %d", sunday, monday, tuesday,
            wednesday, thursday, friday, saturday); // Result : 1 2 5 6 10 11 12
    return 0;}

#include <stdio.h>
enum State {WORKING = 0, FAILED, FREEZED};
enum State currState = 2;
 enum State FindState() {    return currState;}
 int main() {
   (FindState() == WORKING)? printf("WORKING"): printf("NOT WORKING");
   return 0;
}

Examples from  http://www.geeksforgeeks.org/enumeration-enum-c/

I working for this issue at this week

Ready for check


django/email-pwd signup/login support

Your project is very nice and working great for me for FB login. However, wanted to check if it'd be possible for you to add native django (email/password based) singup/login support as well to the project?

Thanks, Shantanu!
Currently i think, that we shall not include email/password login in this package. It can be done easily with   just django rest framework. This package is focused on social auth only.

No problem and thanks for taking the time to respond. :)
Will close this.


Add Ordering Support to API

Closes: #DNE
What's Changed

Introduce sorting of API responses via DRF's built-in OrderingFilter. Tests, Swagger, and manual testing are working but ignored by the Browsable API 🤷♂

👇 Need Feedback 👇
I added some tests in the base class to demonstrate some of the issues I'm running into:

Some being directly related to #2908 and #2909, I want the test outputs someplace other than local, so I can "expect fail" their cases.

See: https://github.com/nautobot/nautobot/actions/runs/4931961979/jobs/8814573676?pr=3708#step:7:277

Device and Virtual Machine fail because I believe we should be doing order_by("_name") instead of "name" under the hood, so special cases for that.

See: https://github.com/nautobot/nautobot/actions/runs/4931961979/jobs/8814573676?pr=3708#step:7:113

This is glossing over/missing cases where the API is behaving but masked by the order_by doing nothing (see Location). This probably means I should change the test to not use the querysets' response and instead manually sort it as the user would expect. This is a bit of a 🤷♂ because I'm finding these cases we don't support sorting in the UI currently anyway. So no loss of functionality.

Here's what I'm proposing & would like to do for this PR:

[x] I need to fix the failing tests (points 1 & 2 above) which should be quick
[x] Point 3 is up for debate
[x] Commit to: sort (the current name) vs ordering (DRF's OrderingFilter name) vs order_by (just like the QuerySet function)

Here's what I'd like to do for the next iteration (this release cycle) but allow us to have the API to filter on:

[ ] It appears nested fields are being picked off too eagerly in OrderingFilter's implementation, status__name should be available to sort fairly easily based on it calling order_by anyway

This would require a bespoke implementation of OrderingFilter

[ ] Append a model's existing ordering property to the end of the order_by. This is how I think sorting should work: If I sorted Device by -status__name I would still expect the results to be alpha sorted after the reverse status name is sorted

Also bespoke sorting, and not identical to the ORM, because order_by('-status__name') does not give you the devices alpha sorted within the reverse status name sort

Screenshot

TODO

[x] Explanation of Change(s)
[ ] Added change log fragment(s) (for more information see the documentation)
[x] Attached Screenshots, Payload Example
[x] Unit, Integration Tests
[ ] Documentation Updates (when adding/changing features)
[ ] Example Plugin Updates (when adding/changing features)
[ ] Outline Remaining Work, Constraints from Design

In doing some manual testing there is still some fields that aren't sorting correctly. For example name on Location or nested attributes which .order_by should be able to accept. I suspect something is up with the field validation in the OrderingFilter implementation: https://github.com/encode/django-rest-framework/blob/e08e606c82afd0d5ec82b2c58badec11a4ce825e/rest_framework/filters.py#L245

The reason a few of the tests have commented-out tests are due to our natural_key_field_lookups being triggered by OrderingFilter introspecting class properties:
https://github.com/encode/django-rest-framework/blob/99e8b4033efa44930ace40fb48a4d7bcd224f9fb/rest_framework/filters.py#L229-L233
Calling
https://github.com/nautobot/nautobot/blob/45424c6b48f4fede83e213dc74a4f53722457b70/nautobot/core/models/__init__.py#L145-L151
To be fixed by #2908 and #2909

The reason a few of the tests have commented-out tests are due to our natural_key_field_lookups being triggered by OrderingFilter introspecting class properties:
https://github.com/encode/django-rest-framework/blob/99e8b4033efa44930ace40fb48a4d7bcd224f9fb/rest_framework/filters.py#L229-L233
Calling
https://github.com/nautobot/nautobot/blob/45424c6b48f4fede83e213dc74a4f53722457b70/nautobot/core/models/__init__.py#L145-L151
To be fixed by #2908 and #2909

Hmm, starts to feel more and more like we might want to subclass or override the generic OrderingFilter to better suit our specific requirements?

The reason a few of the tests have commented-out tests are due to our natural_key_field_lookups being triggered by OrderingFilter introspecting class properties:
https://github.com/encode/django-rest-framework/blob/99e8b4033efa44930ace40fb48a4d7bcd224f9fb/rest_framework/filters.py#L229-L233
Calling
https://github.com/nautobot/nautobot/blob/45424c6b48f4fede83e213dc74a4f53722457b70/nautobot/core/models/__init__.py#L145-L151
To be fixed by #2908 and #2909

Hmm, starts to feel more and more like we might want to subclass or override the generic OrderingFilter to better suit our specific requirements?

Let's please keep the scope of this to a minimum. You can see the exceptions in the PR now and it's very seldom.
We will have to subclass for the other events but I don't think it should block being able to write the UI code to implement API-driven sort.


Can not set number of rounds manually for a Swiss tournament

Hi,
when managing a swiss format tournament I would like to have an option to play specified count of rounds and only after this number of rounds is played advance to the next phase.
Currently that is not possible I think because of
    start(): void {
        const players = this.players.filter(p => p.active === true);
        if ((this.stageOne.format === 'double-elimination' && players.length < 4) || players.length < 2) {
            throw `Insufficient number of players (${players.length}) to start event`;
        }
        if (this.sorting !== 'none') {
            players.sort((a, b) => this.sorting === 'ascending' ? a.value - b.value : b.value - a.value);
        }
        this.status = 'stage-one';
        this.round++;
        this.#createMatches(players);
        if (this.stageOne.format === 'swiss' && this.stageOne.rounds === 0) {
            this.stageOne.rounds = Math.ceil(Math.log2(this.players.length));
        } else {
            this.stageOne.rounds = this.matches.reduce((max, curr) => Math.max(max, curr.round), 0);
        }
    }

Specifically this.stageOne.rounds = this.matches.reduce((max, curr) => Math.max(max, curr.round), 0);
Is there please some way around?

Good catch! Should be fixed in v3.3.1
if (this.stageOne.format === 'swiss' && this.stageOne.rounds === 0) {
    this.stageOne.rounds = Math.ceil(Math.log2(this.players.length));
} else if (this.stageOne.format !== 'swiss') {
    this.stageOne.rounds = this.matches.reduce((max, curr) => Math.max(max, curr.round), 0);
}


chore: release 0.3.0

:robot: I have created a release *beep* *boop*
0.3.0 (2022-05-10)
Features

multiarch builds (#99) (927405b)

Bug Fixes

add full bee version with commit for bee-js update (#104) (b11aab3)
commit removing regex honors rc suffix (#98) (e146b84)
dont use promise fs namespace for node12 support (#97) (bef03ca)

This PR was generated with Release Please. See documentation.

:robot: Release is at https://github.com/ethersphere/bee-factory/releases/tag/v0.3.0 :sunflower:


Update to wasmvm beta7

CI to test on amd64
On Mac M1,
go build ./... and make install pass
go test -count=1 ./x/wasm/client/... passes
go test -count=1 ./x/wasm/keeper fails:
signal 16 received but handler not on signal stack
fatal error: non-Go code set up signal handler without SA_ONSTACK flag

runtime stack:
runtime: unexpected return pc for runtime.sigtramp called from 0x1a96c44e4
stack: frame={sp:0x14000f9c7d0, fp:0x14000f9c8a0} stack=[0x14000f946e0,0x14000f9cae0)
0x0000014000f9c6d0:  0x0000000000000039  0x0000014000f9c748
0x0000014000f9c6e0:  0x000000010244a6d0 <runtime.sigtrampgo+0x00000000000001a0>  0x0000000000000010
0x0000014000f9c6f0:  0x0000014000f9c730  0x0000014000f9c748

Narrowing it down:
$ go test -v -count=1 ./x/wasm/keeper -run TestExecuteWith

=== RUN   TestExecuteWithDeposit
=== RUN   TestExecuteWithDeposit/actor_with_funds
=== RUN   TestExecuteWithDeposit/actor_without_funds
=== RUN   TestExecuteWithDeposit/blocked_address_as_actor
=== RUN   TestExecuteWithDeposit/coin_transfer_with_all_transfers_disabled
=== RUN   TestExecuteWithDeposit/coin_transfer_with_transfer_denom_disabled
=== RUN   TestExecuteWithDeposit/blocked_address_as_beneficiary
--- PASS: TestExecuteWithDeposit (0.19s)
    --- PASS: TestExecuteWithDeposit/actor_with_funds (0.04s)
    --- PASS: TestExecuteWithDeposit/actor_without_funds (0.03s)
    --- PASS: TestExecuteWithDeposit/blocked_address_as_actor (0.03s)
    --- PASS: TestExecuteWithDeposit/coin_transfer_with_all_transfers_disabled (0.03s)
    --- PASS: TestExecuteWithDeposit/coin_transfer_with_transfer_denom_disabled (0.03s)
    --- PASS: TestExecuteWithDeposit/blocked_address_as_beneficiary (0.03s)
=== RUN   TestExecuteWithNonExistingAddress
--- PASS: TestExecuteWithNonExistingAddress (0.00s)
=== RUN   TestExecuteWithPanic
--- PASS: TestExecuteWithPanic (0.03s)
=== RUN   TestExecuteWithCpuLoop

Note that go test -v -count=1 ./x/wasm/keeper -run TestExecuteWithCpu passes about 2 of 3 runs

With https://github.com/CosmWasm/wasmd/pull/774/commits/feeccb666b8d114d015eff489f8fa24caa9abce6 I get go test -count=1 ./... to pass on my MacBook. But only by conditionally skipping tons of tests on arch = "arm64".
At least this is a starting point to investigate.
Note that each individual test may pass most of the time. So if you just unskip one and test it, you may need to test it a few times. However, when I remove the SkipIfM1(t) line, this command reliably failed:
go test -p 1  -v -count=1 ./x/wasm/keeper -run TestDispatchSubMsgErrorHandling

Thank you for giving it a try. I have a quick look but not idea what this issue means.

The error "signal 16 received but handler not on signal stack
fatal error: non-Go code set up signal handler without SA_ONSTACK flag" seems to come from a low-level (non-Go) dependency.
Not sure exactly which one, but this looks fixed now, as tests pass for me without the M1 skip.

When I check out (c8a7b83cdb3644108173690a4ed6d1ac38d06de3) i.e. before the fix, I get the same error as Ethan.
$ gcc -v
Configured with: --prefix=/Library/Developer/CommandLineTools/usr --with-gxx-include-dir=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/4.2.1
Apple clang version 13.0.0 (clang-13<IP_ADDRESS>)
Target: arm64-apple-darwin21.3.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin

$ go version
go version go1.17.8 darwin/arm64

So my target is one minor higher for some reason.
 None of them has number 16 as far as I can tell. So the big question is, where is this signal handler registered?

Interesting check with the gcc:
$ gcc -v
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/4.2.1
Apple clang version 13.0.0 (clang-13<IP_ADDRESS>)
Target: arm64-apple-darwin21.3.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin

Again: Target: arm64-apple-darwin21.3.0 like Simon, not Mauro. Not sure if this is something we can configure?

We have three choices:

Release 0.24 without this update
Release 0.24 with this PR as is, and follow up later to make it work fully on m1 (it is better on m1 than before, but we should comment that m1 is still not supported)
Dig in deep and make this work perfectly for 0.24.

I don't know how long #3 will take, but unless someone has time/energy and can finish it today or early tomorrow, I would rather not block on that. I am okay with both (1) and (2) or even (2) with 4 hours of investigation (time boxed 3)

I'm fine with (2), especially since there are people who need Wasmer 2.2.0 fixes independent of ARM.

I'm fine with (2), especially since there are people who need Wasmer 2.2.0 fixes independent of ARM.

Great. Can I get an approval on this? Or a concrete list of change requests.
eg. Shall I add some comment on the SkipIfM1 function?

Just seen your updates. I'm OK with releasing with these tests skipped. This looks like some (trivial?) change that needs to be done in one of the C libraries this stuff depends on.

So my target is one minor higher for some reason.

Reason being, that I'm not a fan of automatic updates and didn't update my Mac yet.

 None of them has number 16 as far as I can tell.  Probably some (recent lib / OS) changes added a sigurg handler somewhere, and didn't set SA_ONSTACK.
I would just wait and test again in a couple of days / weeks, as this will probably resolve "on its own".

I got response from a Wasmer dev who confirms this is a SIGURG and says they never came across this in Wasmer. This supports the idea that it is in some OS library.


cleanup(pubsub)!: remove redundant publisher option

BREAKING CHANGE:

Remove option to disable retries in Publisher::Publish. This is redundant as
the application can set a "no retries" retry policy. This is more consistent
with other Cloud Pub/Sub libraries. We include an example showing how to
configure a "no retries" retry policy.

This change is

/cc: @kamalaboulhosn


added CONTRIBUTING.md

I added CONTRIBUTING.md file, so that contributors can be noticed while creating submissions, as seen in Github Guidelines.

Thanks a ton for this @pajasevi! Hopefully this will cut down on a lot of our support requests/other fluff and allow everyone to focus on what is important!

I was happy to help, thank you for your time :)


Update generate-table-partition logic to work with filters and strings with quotes

fix generate-table-partitions: Fixes Issue 945 and Issue 950
When generating partition filters, fixes string literals that might have ' and includes filters provided in the data-validation command line.

/gcbrun

/gcbrun

/gcbrun

/gcbrun

/gcbrun


HADOOP-18028. High performance S3A input stream (#4752)

backport branch for S3A prefetching; initial big commit
=========
Contains
HADOOP-18028. High performance S3A input stream (#4109)
Contributed by Bhalchandra Pandit.
HADOOP-18180. Replace use of twitter util-core with java futures (#4115)
Contributed by PJ Fanning.
HADOOP-18177. Document prefetching architecture. (#4205)
Contributed by Ahmar Suhail
HADOOP-18175. fix test failures with prefetching s3a input stream (#4212)
Contributed by Monthon Klongklaew
HADOOP-18231.  S3A prefetching: fix failing tests & drain stream async.  (#4386)
* adds in new test for prefetching input stream
* creates streamStats before opening stream
* updates numBlocks calculation method
* fixes ITestS3AOpenCost.testOpenFileLongerLength
* drains stream async
* fixes failing unit test

Contributed by Ahmar Suhail

HADOOP-18254. Disable S3A prefetching by default. (#4469)
Contributed by Ahmar Suhail
HADOOP-18190. Collect IOStatistics during S3A prefetching (#4458)
This adds iOStatisticsConnection to the S3PrefetchingInputStream class, with
new statistic names in StreamStatistics.

This stream is not (yet) IOStatisticsContext aware.

Contributed by Ahmar Suhail

HADOOP-18379 rebase feature/HADOOP-18028-s3a-prefetch to trunk HADOOP-18187. Convert s3a prefetching to use JavaDoc for fields and enums. HADOOP-18318. Update class names to be clear they belong to S3A prefetching
Contributed by Steve Loughran
Change-Id: I3eca19564dc0c0cb83184f4a42605dbafd908937

Description of PR
How was this patch tested?
For code changes:

[ ] Does the title or this PR starts with the corresponding JIRA issue id (e.g. 'HADOOP-17799. Your PR title ...')?
[ ] Object storage: have the integration tests been executed and the endpoint declared according to the connector-specific documentation?
[ ] If adding new dependencies to the code, are these dependencies licensed in a way that is compatible for inclusion under ASF 2.0?
[ ] If applicable, have you updated the LICENSE, LICENSE-binary, NOTICE-binary files?

looks good so far, not sure if this helpful, but patches that came after this big commit are (listed in order they were committed to trunk):

ITestS3ACannedACLs failure; not in a span: JIRA, PR
fs.s3a.prefetch.block.size to be read through longBytesOption: JIRA, PR

s3a prefetching to use SemaphoredDelegatingExecutor for submitting work: JIRA, PR
hadoop-aws maven build to add a prefetch profile to run all tests with prefetching: JIRA, PR
s3a prefetching Executor should be closed: JIRA, PR & PR
Implement readFully(long position, byte[] buffer, int offset, int length) - JIRA, PR
S3PrefetchingInputStream to support status probes when closed - JIRA, PR
assertion failure in ITestS3APrefetchingInputStream - JIRA, PR
Remove lower limit on s3a prefetching/caching block size - JIRA, PR
S3A prefetching: Error logging during reads - JIRA, PR

Patch available, but not merged yet:
SingleFilePerBlockCache to use LocalDirAllocator for file allocation: JIRA, PR

thanks for the list; will xref in the jira and apply the patches.

pushed the pr up as a feature branch
feature-HADOOP-18028-s3a-prefetch-branch-3.3


In Members meeting we agreed that we will try the OGC process for this one

No objection was verbalized.


Refresh whitelist when detected change to whitelist file

Enhancement Type
Improve an existing feature
Describe the enhancement
Currently when adding players to the whitelist file provided to the WHITELIST_FILE environment variable the change isn't reflected till the container restarts which kinda sucks because to whitelist new players you have to basically kick any currently logged in players.
I propose using something akin to incrond to monitor changes in the whitelist file provided to the WHITELIST_FILE environment variable and when a change is detected running the relevant script based on the EXISTING_WHITELIST_FILE environment variable then sending an rcon command the server to reload the whitelist.

That's understandable, I might see if I can make a sidecar container to do that

You might be able to draw some inspiration from the mc-backup container since it has similar cross container rcon interactions
https://github.com/itzg/docker-mc-backup/blob/master/scripts/opt/backup-loop.sh


Fix grammar in README.md

README.md has a minor grammar issue:

it suffices to set the ith bit is set to one if...

I believe the intent was either:

it suffices to say the ith bit is set to one if..

or

it suffices to set the ith bit to one if...

or simply

the ith bit is set to one if...

I've made the change for the last one here.

+1


chore: Add boilerplate headers

Explain what this PR does.

@whynowy Hey Derek, just out of curiosity, how do we automatically add these headers to ALL files? And in the future if I am going to add new files to numaflow, how do I ensure I don't forget to include the header?

@whynowy Hey Derek, just out of curiosity, how do we automatically add these headers to ALL files? And in the future if I am going to add new files to numaflow, how do I ensure I don't forget to include the header?

Add in a batch with script ./hack/add-boilerplate.sh.


Rename bom -> platform

The name "bom" was confusing with regards to the old BOM and the new "core" BOM. We will now refer to the BOM which aggregates several Micronaut modules (including core), driving releases, as the "platform BOM".
Each module should have its own BOM, included in this project, and this is where the "core BOM" is included.
This will require both updates to the Micronaut Build plugins and Micronaut Gradle plugin.
The repository should also be renamed for clarity.

I think the static analysis error comes from the fact the project isn't found in Sonar anymore because of the rename /cc @alvarosanchez

The Sonar project is linked to a repo, not to a Gradle module. I still see the project at https://sonarcloud.io/project/overview?id=micronaut-projects_micronaut-bom
If it keeps failing after merging this, I can delete and re-import it.


dashing stopped working (after update?)

I am running dashing locally in a Ubuntu vm and remote on heroku. Everything worked fine until today where I tried to add redis object storing (using the instructions here: https://gocardless.com/blog/raspberry-pi-metric-dashboards/).
At first I thought I had introduced a bug, but rolling back to a previous version doesn't help. All I get is this error message for every job:
scheduler caught exception:
undefined method `[]=' for false:FalseClass
/var/lib/gems/1.9.1/gems/dashing-1.2.0/lib/dashing.rb:127:in `send_event'
/vagrant/jobs/facebook.rb:20:in `block in <top (required)>'
/var/lib/gems/1.9.1/gems/rufus-scheduler-2.0.23/lib/rufus/sc/jobs.rb:230:in `call'
/var/lib/gems/1.9.1/gems/rufus-scheduler-2.0.23/lib/rufus/sc/jobs.rb:230:in `trigger_block'
/var/lib/gems/1.9.1/gems/rufus-scheduler-2.0.23/lib/rufus/sc/jobs.rb:204:in `block in trigger'
/var/lib/gems/1.9.1/gems/rufus-scheduler-2.0.23/lib/rufus/sc/scheduler.rb:430:in `call'
/var/lib/gems/1.9.1/gems/rufus-scheduler-2.0.23/lib/rufus/sc/scheduler.rb:430:in `block in trigger_job'

It works on heroku, even after I commited the new Gemlock file and deploying it. I'm not a ruby developer so I'm a bit stuck here. Any help is appreciated! Thanks.

Thanks @maakuth ! You saved my day.

Just ran into this issue as well. However, deleting the history.yml file isn't correcting it for me. I find it weird how after changing nothing but the .erb files, I get this message. The error is really frustrating.

Worked for me as well, but strange thing is my history.yml was complete blan but the moment i got it deleted everything started working fine

Worked for me as well thanks :+1:

Many thanks, it worked for me too ;)


Optional Class Property Dependencies not detected

Bug Report

Q
A

Library Version
0.3.19

PHP version
8.1

Current behavior
When I use optional properties, the dependencies of the properties are not detected.
How to reproduce
In FileVisitorTest::test_it_parse_typed_property() make NotBlank optional:
public ?NotBlank $foo;
https://github.com/phparkitect/arkitect/blob/9e5c5a17517d131691c3333ce13dab8a73e817cd/tests/Unit/Analyzer/FileVisitorTest.php#L538
Expected behavior
Optional Property Dependencies should be detected correctly.

Thanks @AlessandroMinoccheri for the quick fix.
Optional Class Property Dependencies are recognized correctly.
In my project we work a lot with constructor property promotion. in this case your fix don't work 😢
How to reproduce
public function __construct(public ?NotBlank $foo){}

Hi @fp-cfr , can you please open a new issue for the new problem?
Thanks a lot 😊


Will this set of front end courses include mobile device's front end design and the usage of photoshop?

Will the front end courses include the specific front end design for mobile devices? not the responsive front-end framework.
Will the front end courses include the usage of photoshop? or is the skills of photoshop indispensable in front end design?
Thanks very much!

@cmal thanks for the suggestions. Although they would be great content to teach, I don't think the curriculum will change anytime soon to include any mobile-specific design challenges or challenges requiring Photoshop. These may be too specific for our curriculum, as ours is directed to just new coders.
cc/ @FreeCodeCamp/issue-moderators

This looks really wide to me. UI Design targets specific audiences and while important is generally not an mandatory requirement to learn to code. These can be take up as video courses IMHO as supplements.
Let's keep this off GitHub issues list unless confirmed as a request, I would urge you to discuss this in the forums or the chat rooms first, and then re-open.
To be closed if other moderators agree.

Closing. Feel free to open an issue on our wiki or hikes repos. However, we won't be integrating this content into the main curriculum, thanks!


Perf: Some query benchmarks currently show slower results than EF6

This is the full list of EF Core query micro-benchmarks that present results slower than EF6:

FuncletizationTests.SameQueryInstance:
SimpleQueryTests.Projection:
SimpleQueryTests.SkipTake:
SimpleQueryTests.Where:
SimpleQueryTests.ProjectionAcrossNavigation
SimpleQueryTests.OrderBy
SimpleQueryTests.LoadAll
SimpleQueryTests.Include
NavigationsQueryTests.PredicateAcrossOptionalNavigationAllResults
NavigationsQueryTests.PredicateAcrossOptionalNavigationFilteredResults
RawSqlQueryTests.StoredProcedure
RawSqlQueryTests.SelectParameterized
RawSqlQueryTests.SelectComposed

Note that:

Many of the RawSqlQueryTests and SimpleQueryTests seem to be regressions from 1.x.
The EF Core results of some of these benchmarks are very unstable (i.e. they are affected by #8299). When this happens the best results of EF Core tend to be close to EF6, but the spikes move the average time elapsed up.
In many benchmarks the tracking off/async variation is consistently slower than EF6 and the best results of the sync variation are about the same as EF6, e.g.:

SimpleQueryTests.Where
Tracking Off - Async (10 queries)

Tracking Off - Sync (10 queries)

No sure if this is still true or whether we can close this issue, so clearing up milestone.


doc: services: device_mgmt: smp: Add SMP version 2 details

Adds SMP version 2 error response details to the documentation.

@cfriedt would you be able to merge please?


Fix: Move platform-agnostic files outside of LIBCORO_FEATURE_THREADING

This implements the suggestion in #170.

Do you want me to merge in the main branch, or rebase this branch to main? I'm happy to, just let me know your workflow.
Is there anything else to do on this PR?

Generally whatever works best, I usually only squash and rebase into main so it's a singular commit in the final git log.

Looks like you merged main in successfully -- thanks! Do you need anything else from me on this PR?
I'm excited to get this merged; I think this will get us to successful builds on XCode and MSVC. I'll do some more testing/cleanup after the merge.

I was planning on merging this tonight, but I did take one last look at it and I do think some of the test files can probably be moved outside of the feature flag pretty easily by switching the tests from coro::io_scheduler to coro::thread_pool.  Unless if there is another reason you included them inside the feature flag?  Would you mind taking a look and letting me know what you think.


Upcoming Home Assistant version - Stricter MQTT config

In the next version of home assistant (0.87) stricter controls have been implemented.
As a result the MQTT discovery and manual config will have errors once 0.87 is released and installed
The on_command_type is no longer supported for Json schema
please see this issue for further information
https://github.com/home-assistant/home-assistant/issues/20685

@aidbish Thanks! Why are they breaking things ?!?! 😣
Comment out json["on_command_type"] = "first"; and check if it works?
What that line did was send ON command first from HA every time color change is done. The default was it sent color first and then ON command later. I need to test with MQTTfx or something to see what are the order of MQTT commands being sent.. 😵

I think their intention is to clean up old code and make consistent
commenting out the on_command_type in the manual config , the errors stops but have not been able to test the opeartion of the light yet
i will have a play with other discovered lights and modify the code and report back over next few days

yup, it happened. just updated to 0.87 and all my mclighting strips (12 of them) are now dead. could someone advice if I should go back to 0.86.4? thanks.

Have you manually defined the lights? if so remove on_command_type from the config.
If using discovery we need to wait for new version that is compatible
@debsahu Havn't forgot about testing, just busy with work at moment

I am using discovery so nothing to remove. However what worked for is the below.

comment out the two lines with 'on_command_type' (line #1022 & 1109) in request_handlers.h
recompile and update thru OTA.

@aidbish no worries, same on my end as well. Have to test the develop version too on my end, see if proposed changes is acceptable to @toblum, add this change in and maybe work on 2nd/3rd color settings as proposed in another issue.
@rgogada thanks for the input, can you confirm that on/off, changing colors, animations and brightness works after uploading the changes?

@debsahu yes, everything works.

I check with 0.88.1 and everything seems to be working.  We will be merging with master soon.


🐞[Bug]: Back button not working in Features Page

Is there an existing issue for this?

[X] I have searched the existing issues

Describe the bug
The back button present in the Features page is not working showing a 404 Error page.
Expected behavior
The back button should redirect to the main page.
Add ScreenShots
https://github.com/sk66641/Random-Disco-Light-Simulator/assets/153659573/6b0bf2dc-ff35-47a3-a002-3d655e032ff5
What browsers are you seeing the problem on?
No response
Record

[X] I have read the Contributing Guidelines
[X] I'm a GSSOC'24 contributor
[X] I want to work on this issue

Hey, @AkshitGarg24 , Assign this issue to me!!

It seems that someone has already fixed it in the previous PR. If you have any additional issues, feel free to reach out.


Shorten demo

This builds on #587.
I was planning to shorten the DS for tomorrow's demo by commenting out markers to skip, but that causes a whole host of errors when markers we specify in the python file don't exist. I'll try going through in the morning to see if there is a non-destructive, not-overly-messy way of doing this; else we will leave as is.
Meanwhile, this does a couple minor things:

end doppler calculation slideshow after a few slides in.
I added a front-end button to randomly select 5 galaxies, but I didn't know how to set that up based on the voila button, so it currently doesn't do anything. If @Carifio24 has a chance to set up the backend function to do this in the morning, that'd be great; else we can delete the button.

It has the "Fill Data" button. Since nothing is sent to the server it shouldn't matter if there are duplicates. I would suggest just deleting the button. But I will 'fill data' button on stage 3 so peole don't have to bounce back

Alternatively, we can use _fill_data for your new button

But if people use the "fill data" button, all the measurements will be complete in the table and the sequence where we have them make their own velocity and distance measurements won't make sense..

Ok how about this:

"Fill Galaxies" button gives the user the standard set of 5 galaxies but leaves wavelengths/velocities/ang_sizes/distances blank.
After the example galaxy lambda measurement/velocity calc, we show them their filled 5 galaxy table and move to stage 3. (I guess this would mean replacing any galaxies they actually picked with the default 5 galaxies, but I'm guessing no one will notice).
They do example theta measurement/distance calc, fill their table and move to stage 4.


FW 103 - Ike Yang

Files for FW 103

Please ping in the firmware channel to get a task! Our next meeting will be this Wednesday at 7pm in E5 2103 as well as online


How to upload images with Flask/Python

I want to know how to upload images to my server with Flask/Python.
My program is:
<form class="form-horizontal" method="post" enctype="multipart/form-data" action="{{ url_for('products.addproduct') }}" role="form" style="margin-top:60px">

   {{ form.hidden_tag() }}

     {% from "_producthelper.html" import render_field %}
     {% from "_renderdiscription.html" import render_desc %}
     {{ render_field(form.category, class="formradio list-inline") }}
     {{ render_field(form.productname, class="form-control", placeholder="ProductName") }}
     {{ render_field(form.easydescription, class="form-control", placeholder="EasyDescription") }}
     {{ render_field(form.pageimage, class="form-control", placeholder="FirstpageImage") }}
     {{ render_desc(form.description, class="editable", rows="4", placeholder="Description") }} #Here can insert images

          <button class="editor-submit" type="submit">Submit</button>

  </form>

When I add a image and submit, I found the "description" in mysql is

12

the  tags disappeared.
I have checked the docs at

https://github.com/blueimp/jQuery-File-Upload/wiki/Options

fileUploadOptions: {
                url: 'upload.php',
                acceptFileTypes: /(\.|\/)(gif|jpe?g|png)$/i
            },

Now , I prepare write upload.py to handle my upload images. How can I get the image information in the editor?

Can you reproduce your problem on https://jsfiddle.net/? Also what versions of the editor and the plugin do you use?


[client-v2] Added setting log_comment

Summary
There is an option to set a comment that will be seen in system.query_log record associated with a query. It is useful for troubleshooting. In case of HTTP interface client should send the comment thru query parameter log_comment.
Closes: https://github.com/ClickHouse/clickhouse-java/issues/1836
Checklist
Delete items not relevant to your PR:

[ ] Unit and integration tests covering the common scenarios were added
[ ] A human-readable description of the changes was provided to include in CHANGELOG
[ ] For significant changes, documentation in https://github.com/ClickHouse/clickhouse-docs was updated with further explanations or tutorials

Thanks @mzitnik! I've replaced code with shared constant from ClientSettings.

Thanks @mzitnik! I've replaced code with shared constant from ClientSettings.

Actually was referring if we can have a common base class since there is shared code

@mzitnik I think, we should not do it to keep developer away from idea of extracting common part.
I do not plan to add all server settings in such way and it should not be a problem for maintenance. What I'm afraid of that joining two separate mechanisms will lead to more rigid code and it will not save time as intendent.


Firefox 53 has support for clip-path basic shapes

This updates the page.

Here's the Bugzilla ticket about Clip-path supporting basic shapes in Firefox, with a note about it already being committed to FF53: https://bugzilla.mozilla.org/show_bug.cgi?id=1247229#c11

Thanks!


Implement auto shard selection for conv2d

In case user passes in interleaved tensor for conv activations, we should automatically select best sharding scheme given input tensors for the convolution.
Primary motivation of this work is to reduce number of Out-of-memory issues coming out of pytorch 2.0 ttnn integration.

This is a P1. @pavlejosipovic this can be your priority, but we should not pollute the P0 bug space.


Fix Default Window Size on Launch and Window Resizing

On my Windows 10 Laptop, the Elegit opens to a size slightly narrower but just as tall as the full screen and is positioned so that the top part of the program is beyond the top of the screen and the bottom partially obscured by the taskbar. Might as well open maximized by default.
Also, when maximized, the branch checkout version buttons on the bottom of the window are mostly obscured by the taskbar when the taskbar is positioned at the bottom.

Thank you for posting this - I was just about to file this bug myself :)
I'd like to add one more request to this: when one does resize the window the 'add' 'checkout files', etc buttons at the bottom stay put while the window shrinks. This means that as you make the window smaller (shorter, top-to-bottom) those buttons drop out of site and aren't accessible anymore.

I just bumped up the priority of this, now that it's clearly affecting two people. Good news is that @MarthanielX is here at Carleton, so we can hopefully easily duplicate it.

I'll further add to this bug that in when you resize the Elegit window, when you shrink the window by more than a bit, the tree windows etc don't resize as well as they should.
@MikeTheGreat and @erictwalker18 : what resolution are you running at?

@MikeTheGreat and @erictwalker18 : nevermind. I've duplicated the bug in a Windows VM. It's kind of cool because I can set the desktop to a variety of sizes.

Fixed and merged into master. @MikeTheGreat : I haven't created a new build yet, but feel free to snag and build yourself if you want to see it resizing properly now. (And of course, speak up if something isn't looking right). I'm aware of one or two other minor glitches, but the current master should hopefully be a big improvement regarding starting size.


Feature request: People widget

Hi,
I am currently trying to set up a new website for my lab, and I truly love the Academic theme for Hugo! Very, very good job! Perfect for what I'm looking for.
One piece I am missing though would be a specific widget for people. I know I could use a custom widget, for instance based on Teaching, but what I want is a layout similar to the Projects widget: a grid of people with their portraits, and a toolbar to filter them (in my case: "All", "Current" and "Alumni").
I have been able to work around it duplicating the project widget (and associated html page), as well as the CSS and JS pieces (into custom CSS and JS files), replacing every instance of project/projects by people. It almost works, with the same problem as #100, in which filtering in the toolbar seems to be global, and filters both Projects and People.
In other words, this is redundant to #100 in the sense that the essential problem is to be able to reuse the filter toolbar, but I also think that a People widget makes a lot of sense for an academic website.
Thanks!

I have almost the same requirement.
what I need is to have several topic,(such as Math and Computer) each has its own project. I love the card style for each project.
Actually, I have already duplicated the projects widget as math and computer. However, the projects are global, and projects for Math also appear in the Computer part.

The project widget is now reusable.
Thanks for the feedback, I will consider how much of a need there is for a dedicated People widget.

As a follow-up to this request, I think enabling Social buttons (see #326) for specific people (if there is a People widget!) would make a lot of sense too.
Thanks for considering my People widget request!

project widget is reusable but one can not specify a seperate directory to store items?

I second both @basille's praise for this theme and request for a People widget. Featuring lab members is a key aspect of academic websites for folks with faculty and other group leading positions and so making it easy to add pictures and information about group members would be a really valuable addition. This could be as simple as simply adding the #429 relevant "people" material as described in #429 to the main repo.
I also very much like @basille's suggestion in #326 to support social links for individual people as part of the ideal solution.

I would also love a people widget.

Now that the "project" widget is reusable, would it be an option to use the "about" widget in a new page once you click on someone's card?
From what I understood, the about widget only works on the homepage, right?

If I get it right, you can create a widget page that uses widgets. With this, you can create a "homepage style" for every people (especially use the "about" widget).

Thanks @Bertbk, I get the idea, but this does not seem to work as I'm already within a widget (in that case "project"). I would have to create a page that opens the "about" widget, once you click on the card corresponding to the "project" widget. As far as I know, this is not possible.
May that be an option for future devs @gcushen?

Sorry for the misunderstanding. I though you wanted a widget "project" where "people" appears as "cards". When clicking on "somebody card", say John,  this would redirect to e.g. /people/john which would be, in fact, a page with the about widget of John.
If yes then this seems possible using external_url pointing to people/john and people/john/index.md being a widget page with the about widget only (or more) ?
Otherwise, sorry again! :-)

Good point, I didn't think of external_url!
Still doesn't work though:
Imagine I have /people/john/index.md which corresponds to John project's card (according to the new architecture with one folder per project)
If I create /people/john/about/about.md and /people/john/about/_index.md, I get a 404 error, even though external_url = "people/john/about/" in  /people/john/index.md
But that's a good potential solution, I'll keep looking, thanks for the tip!

You're right I got the same 404 error. I don't know if it's because the file is in a "project" folder or not.
Either I missed something, too, or the only way to make it works is by using a separated aboutfolder:

about/john/_index.md
people/john pointing to about/john throughout external_url

This "hack" is not really elegant and it would have been better to have people/john/about as you proposed.

I confirm that everything works ok when creating a separate about folder.
One problem though is when clicking on the envelope of John's profile, it redirects to about/john/#contact, which doesn't exist (we need ~/#contact).
And we still need the possibility to show different pictures/social icons/contacts for different people.
So good temporary fix, and looking forward to v3.2!

For handling multiple people, I have done something like this:

Created a data file for each people in data/people/ folder.
Then in the authors field of publications/posts/pages, if the name of the author is specified as "@john", then look for a file data/people/john.yaml and get his name and displays that. Also if url field is defined in the YAML file, then make it a hyperlink. This way updating the single data/people/john.yaml will make sure it is updated in all the publication/posts/pages authors.

Look at the changes I made to the theme here: prateekkumarweb/hugo-academic
My website utilising the above feature : prateekkumarweb/prateekkumar.in
This can be extended for creating a people widget.
Say you define widget: true in the data file.
Then in the people widget, you can look for all the people with widget: true and display their information.
@gcushen : if you are interested, I can send a PR with these specific changes.

The official People widget is now implemented, see f40c63d7ac0c1cba8919228370742fed21f826eb .
To test the People widget, update to the latest master version of Academic, add the user_groups option for each user as per the the demo user in the commit link above, and then set the People widget to active = true.
However, Hugo will only generate a user profile page if there is content associated with it (since we are using authors as a Hugo taxonomy rather than a normal Hugo section). Therefore, links to author profile pages will be broken for users that do not have their name associated with any content (via the authors setting in posts etc.).
@Warkst Any ideas?

Thanks for the update @gcushen. I'm loving the new widget! It's much more stylish than the tabular alternative I had thrown together. I also noticed I got 404 pages for people with 0 pages associated to them. My workaround was to include the authors key in the front matter of each author index (I have a folder per person, containing an avatar and index.md). It's basically copy paste of the name key and changing the type to array, but then a page actually gets generated. All I then had to do was to modify the footer for the author detail page to filter out the author page from the related pages section. While doing so, I decided to modified it further so the relevant pages part is replaced in its entirety by several divs, one per (select) page type (publication, project, post, ...), and showing (only) the top K links. If there are no pages for a page type, the corresponding div is not generated. Finally, I've stripped the page header (since the author name is already strongly printed just below the picture, and adding it again just on top felt superfluous) and injected my slightly modified implementation of the tag cloud to show the top N research areas for the author just below the content placeholder. I've included a screenshot to give you an idea.

For an author with no pages (besides his own author document), the bottom section would be empty.

From a business point of view, I was considering modifying the tag detail page to show all relevant authors for a selected keyword, to help guide them towards who to contact. Also I'm in doubt on whether or not to keep the Interests bit, as it seems to more or less conflict/overlap with the added key research areas (which IMO are preferrable as they are auto-generated and debatably more indicative of actual active areas).

@Warkst your approach for rendering authors without content worked for me. I also like your modifications (divs for talks, publications, ...) and the "key reasearch areas" (based on tags for publications/talks?).
Could you share a working example with your modifications  based on the latest hugo-academic version? This would be super helpful for my use-case!

Override /layouts/author/list.html and replace the related-pages div by:
    {{ $pubs := first 6 (where .Pages "Type" "publication") }}
    {{ if gt (len $pubs) 0 }}

          {{ pluralize (i18n "publication") }}

          {{ range $pubs }}

            {{ .Title }}

          {{ end }}

    {{ end }}

This will place a div with the first 6 publications for the author of the page. Should be possible to cook something up to separate first author from co-author... Anyway, copy paste and adjust accordingly for other page types.
Override layouts/partials/widgets/about.html and put this somewhere:
        {{ $author := slice $person.name}}

          {{ if not (eq (len $.Site.Taxonomies.tags) 0) }}
            {{ $fontSmall := 0.3 }}
            {{ $fontBig := 1.5 }}
            {{ $max := add (len (where (index $.Site.Taxonomies.tags.ByCount 0).Pages "Params.authors" "intersect" $author )) 1 }}
            {{ $threshold := sub $max 2 }}
            {{ if lt $threshold 0 }}
              {{ $threshold = 0 }}
            {{ end }}
            {{ if gt $max $threshold }}

Key Research Areas

              {{ range $name, $taxonomy := $.Site.Taxonomies.tags }}
                {{ $tagCount := len (where $taxonomy.Pages "Params.authors" "intersect" $author)}}
                {{ $weight := div (sub (math.Log $tagCount) (math.Log $threshold)) (sub (math.Log $max) (math.Log $threshold)) }}
                {{ $fontSize := add $fontSmall (mul (sub $fontBig $fontSmall) $weight) }}
                {{ if gt $tagCount $threshold}}

                    {{ $name }}

                {{ end }}
              {{ end }}
            {{ end }}

          {{ end }}

Note how threshold is used to select only the K most frequently counted tags across all pages (not just publications/talks) whose authors intersects with the $author param, here derived from the front matter parameter name for an index.md file under content/author/xyz/. You might have to do some tweaking to find a value that works for you! Actually, it's even better to move this magic value to the front matter of the author document, so you can set a separate value per author...
Does this help you @mrustl ?

In follow up, something like adding this to your author document front matter (TOML here):
# Influence how many relevant research areas are shown (top K).
# Default is 2. A larger number will result in a larger amount of results.
# Values below 1 are ignored and truncated to 1.
topk = 2

and then the following modification to the template from above:
        {{ $topk := 2 }}
        {{ if isset $person "topk"}}
          {{ $topk = $person.topk }}
        {{ end }}
        {{ if lt $topk 1 }}
          {{ $topk = 1}}
        {{ end }}
    ...
            {{ $threshold := sub $max $topk }}
    ....

Thanks @gcushen and all contributors for implementing the People widget! This looks very very interesting, I'll try to install that as soon as possible!

Thanks all for a great resource. Just starting with a fresh academic-kickstart fork ... and found some problems with People/Authors. Or maybe I am doing something wrong here?
I've duplicated the 'admin' profile to generate a few authors, and their pages are showing ok (/authors/admin, /authors/author1, /authors/author2). However on the front page, the 'People' section only shows the group names (Principal Investigators, Researchers, Grad Students ... see below) but these are not linked to anything (they are not clickable). Authors are not listed here in the home page, even though I'm setting 'user_groups' correctly for each user, e.g.
In 'authors/admin/_index.md'
user_groups = ["Principal Investigators"]
In 'authors/author1/_index.md':
user_groups = ["Grad Students"]
In 'authors/author2/_index.md':
user_groups = ["Alumni"]
This is how my 'content/home/people.md' looks like,
+++
# People widget.
widget = "people"  # See https://sourcethemes.com/academic/docs/page-builder/
headless = true  # This file represents a page section.
active = true  # Activate this widget? true/false
weight = 68  # Order that this section will appear.

title = "People"
subtitle = ""

# List user groups to display.
#   Edit each user's `user_groups` to add them to one or more of these groups.
user_groups = ["Principal Investigators",
               "Researchers",
               "Collaborators",
               "Grad Students",
               "Administration",
               "Visitors",
               "Alumni"]
+++

See:

There were a problem that has been solved couple of hours ago, see issue #1070 . With a fresh update, does this still happens?

There were a problem that has been solved couple of hours ago, see issue #1070 . With a fresh update, does this still happens?

Indeed this solved the problem. Thanks @Bertbk

I have just upgraded to the latest version and I got somethin similar to @fernan..
Authors name are not linked to their personal profile page (not clickable), as seen in the following page:
https://www.alighandour.org/#people

Ok I figure it out:
in /content/authors/_index.md
To publish author profile pages, remove all of the _build and cascade settings below.


Web - Assign Task - Structure of the page broken when using long email as an Assignee

If you haven’t already, check out our contributing guidelines for onboarding and email<EMAIL_ADDRESS>to request to join our Slack channel!

Action Performed:

Go to URL https://staging.new.expensify.com/
Login with any account
Go to FAB -> Assign task
Enter a title and description and navigate to next page
Click on the "Assignee" and select account with a long name

Expected Result:
Structure of the page NOT broken
Actual Result:
Structure of the page broken
Workaround:
Unknown
Platforms:

Which of our officially supported platforms is this issue occurring on?

[ ] Android / native
[ ] Android / Chrome
[ ] iOS / native
[ ] iOS / Safari
[x] MacOS / Chrome / Safari
[ ] MacOS / Desktop

Version Number: 1.3.12
Reproducible in staging?: Yes
Reproducible in production?: Yes
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation

https://github.com/Expensify/App/assets/93399543/36ee347f-4b98-4411-94eb-fcb1eb5a0cc9
Expensify/Expensify Issue URL:
Issue reported by: Applause - Internal Team
Slack conversation:
View all open jobs on GitHub

I just noticed this - I am not sure why I am getting assigned, I am OOO till Monday. Re-assigning. Sorry for the surprise.

I am testing this now

Also updated the expected outcome to clarify that we want to see the arrows shown above the long email

We have a solution already proposed here. Maybe we can assign this one super quick

Nice. I'm out of office this week, but I wonder if @AndrewGable can weigh in on whether we should get an expert to look at cleaning up the component, maybe in a separate issue.

@kadiealexander Sorry, I applied the wrong label, I will unassign you since @muttmuure is already assigned.

can weigh in on whether we should get an expert to look at cleaning up the component

@muttmuure I think @hoangzinh can take care of the cleanups they have discovered.
There might be other cleanups needed, so it might be a good idea to ask someone to re-review these newly added components related to the Tasks feature.
anyway @hoangzinh let's go with your proposal!

Vinh and Rajat have been invited to the job in Upwork

Waiting for @parasharrajat and @hoangzinh to approve

Everything is done