Initialize with genesis file

now it's ready for being reviewed

MSVC doesn‘t support such long strings unfortunately. CI Windows build is failing with C2026. As an alternative to huge string literals, let‘s try to construct json directly, i.e. something like
nlohmann::json kMainnetGenesis = {
    "alloc": {
      "3282791d6fd713f1e94f4bfd565eaa78b3a0599d": {
        "balance": "1337000000000000000000"
      },
      "17961d633bcf20a7b029a7d94b7df4da2ec5427f": {
        "balance": "229427000000000000000"
      },
      ...

Perhaps that works fine with MSVC.
Another possibility is to bypass JSON altogether and to use C++ types for better type safety. For example,
inline constexpr intx::uint256 uint256_from_string(const char* str) { return intx::from_string<intx::uint256>(str); };

const std::map<evmc::address, intx::uint256> kMainnetGenesisAllocation = {
    {0x3282791d6fd713f1e94f4bfd565eaa78b3a0599d_address, uint256_from_string("1337000000000000000000")},
    {0x17961d633bcf20a7b029a7d94b7df4da2ec5427f_address, uint256_from_string("229427000000000000000")},
    ...
};

Also, read this article: https://www.fluentcpp.com/2019/07/23/how-to-define-a-global-constant-in-cpp/
I‘m thinking we should declare the allocation constants as extern in the header, and define them in chain_genesis.cpp, so that we avoid a huge header.

Another option is to make use of cmake-bin2h.
Create the Json config specifications as plain text files and have the tool convert them into a byte array. Eventually nholman::json can parse from the byte array.

Besides the above ... honest question (my fault I don't get so ... sorry in advance)
Why should we embed config file(s) for known chains when the point of custom initialization of db is to set up unknown chains (i.e. private ones). where the init file should always be external ?

Besides the above ... honest question (my fault I don't get so ... sorry in advance)
Why should we embed config file(s) for known chains when the point of custom initialization of db is to set up unknown chains (i.e. private ones). where the init file should always be external ?

TG staged sync is a genesis sync, and genesis sync requires premining allocation. For the main net and other known chains it‘s public and immutable, so it makes sense to embed it into the executable rather than rely on something external. TG also embeds mainnet premine. This PR is essentially porting a necessary piece of functionality from TG to Silkworm.
As to unknown/private chains, we can add their support to Silkworm later. For that we probably should use the same JSON format as TG does, so perhaps we shouldn‘t bypass JSON for mainnet genesis so that we have the same initialization logic, only the source of JSON is different.

Got it. I thought genesis block (block 0) would simply p2p download as all other blocks.

Closing in favour of PR #219.


Add the diffusers examples of inference Tech

What does this PR do?
This PR includes three examples of  inference techniques.

Control brightness
Prompt weighting
Improve the image quality with Freeu

Known issues:
Currently HPU cannot support the torch.fft operations, so running these operations on CPU.

@regisss @libinta @mandy-li

Before submitting

[ ] This PR fixes a typo or improves the docs (you can dismiss the other checks if that's the case).
[x] Did you make sure to update the documentation with your changes?
[ ] Did you write any new necessary tests?

small change needed

What small changes are needed?

@regisss  please take a look

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

@yuanwu2017 , please run make style


Report of Black Box Modules

It would be nice if we could determine which black box modules actually got instantiated in a design to make it cleaner to include their source later.
This could be as simple as the BB constructor writing out to a file.

This should go hand-in-hand with parameterized blackbox support.

We now have parameterized black boxes and a way to include source with black boxes.


content/en/docs/architecture/ci-operator: Document explicit release version

Catching up with openshift/ci-tools#1927.  We'd flubbed 4.4.2 and earlier, so 4.4.3 ended up being the name of the first GA 4.4 release:
$ curl -sH accept:application/json 'https://api.openshift.com/api/upgrades_info/v1/graph?channel=stable-4.4' | jq -r '.nodes[] | .version + " " + .payload' | grep '^4[.]4[.]' | sort -V | head -n2
4.4.3 quay.io/openshift-release-dev/ocp-release@sha256:039a4ef7c128a049ccf916a1d68ce93e8f5494b44d5a75df60c85e9e7191dacc
4.4.4 quay.io/openshift-release-dev/ocp-release@sha256:baa687f29b0ac155d8f4c6914056d36d68f343feb9c1e82b46eef95819d00be5

/hold
Until openshift/ci-tools#1927 lands.

Implementation landed.
/hold cancel


Consistent Behavior With UTF-8 Encoding

At the beginning of some files, e.g. https://github.com/CDCgov/PyRenew/blob/main/pyrenew/latent/infections.py, there exists # -*- coding: utf-8 -*-. Other files, e.g. https://github.com/CDCgov/PyRenew/blob/main/pyrenew/datasets/generation_interval.py, do not possess this feature.
According to this StackOverflow thread (https://stackoverflow.com/questions/13807748/when-to-use-utf8-as-a-header-in-py-files), "UTF-8 is the default" for Python3 and "Some Windows editors don't have it by default. It won't hurt to declare it, and some editors may use it.".
Should we ensure all pyrenew files having this attribute or remove it?

I think we should remove it everywhere.


Confusing duplicate

Hey @ArtjomP could you hide your library from Nuget?

Done.
Unfortunately ValidateableModelBase is not inherited from ViewModelBase. I used it as ViewModelBase in my project. I'll try to change my way.

Now I see why we had such a mix up between us on the name of that class. By the way, I want to thank you for the time you put into this library. I think it was almost ready when you started playing with it and the effort you put in really made it valuable for the developer community interested in validation. Thank you again.


Does it only do lowercase predictions?

Hey, thanks for the work, is there any parameter that I can change in order to get the predictions for capital letters....?, is it case sensitive or only lowercase ?

It's only lowercase currently.
(https://github.com/GitYCC/crnn-pytorch/blob/master/src/dataset.py#L14)
You can change dataset to train your case sensitive model.
(https://github.com/GitYCC/crnn-pytorch/blob/master/src/dataset.py#L13)


DATRAS: New variable Conservation Status

WGBEAM requires to record conservation status of species: fresh, frozen, cooked...
In the context of this recommendation WGBIOP understands ‘conservation status’ to mean the way the fish specimen is pre-served. WGBIOP would suggest that rather than having a separate conservation status this would be merged with METFP, where the suggested states could be added.
I have been asked to check with RMG the option of adding the requested vocabulary in METFP (chemical preservation methods) risking the inconsistency of adding physical preservation methods (e.g. freezing, cooking) to a vocabulary for chemical preservation methods.

related to #345

Suggest WGBIOP (CC: WGBEAM) options:
https://vocab.ices.dk/?ref=1511
https://vocab.ices.dk/?ref=201
https://vocab.ices.dk/?ref=200
https://vocab.ices.dk/?ref=1681
or consider a new vocab

WGDG requests RMG to modify description of METST to host "conservation", Values are close to: froze, refrigerated, fresh, boiled+formalin, room temperature.

@odontaster and @pcrjoana to suggest WGBIOP (cc interested groups - Smartdots, stomach, DATRAS) to re-use the PreparationMethod, to change its description and add new relevant codes.
note: conservation should be preservation

@pcrjoana to contact BIOP chair.


delegate statement preparation to sqlx

The logic of preparing statements and caching them for later reuse is now entirely delegated to the sql driver library (sqlx).
This simplifies the code and logic inside sqlpage itself.
More importantly, statements are now prepared in a streaming fashion when a file is first loaded, instead of all at once, which allows referencing a temporary table created at the start of a file in a later statement in the same file.
fixes #100

@ipftalabua @nanawel : this pr should solve your respective problems, by allowing creating a temporary table and then referencing it from inside the same .sql file.


quiver() not supported

When using quiver() to plot arrows with directional components, a warning message and an error are being printed.
load('wind','x','y','u','v')
X = x(11:22,11:22,1);
Y = y(11:22,11:22,1);
U = u(11:22,11:22,1);
V = v(11:22,11:22,1);
quiver(X,Y,U,V)

fig2plotly(gcf, 'offline', false);

The previous code prints the following warning message:
Undefined function 'affine2d' for input arguments of type 'double'.
We had trouble parsing the quiver object.
This trace might not render properly.

And the following error:
Error using response_handler (line 31)
Hm... Plotly had some trouble decoding your 'args'. Are
you sure your data or styling object is in the right
format? Check out the examples at https://plotly.com/api
for guidance.

Need help? Please try searching Plotly's Stack
Overflow channel.

Error in makecall (line 32)
    response_handler(resp);

Error in plotly (line 28)
response = makecall(args, origin, structargs);

Error in plotlyfig/plotly (line 449)
                response = plotly(obj.data, args);

Error in fig2plotly (line 49)
p.plotly;

Error in untitled20 (line 11)
fig2plotly(gcf, 'offline', false);

Expected plot:

Examples on using quiver() can be found on:
https://www.mathworks.com/help/matlab/ref/quiver.html#responsive_offcanvas

Python implementation: https://plotly.com/python/quiver-plots/

Hi @gilbertogalvis,
Sorry but this still doesn't work for me using the current master. Could you check if it still works for you? Perhaps, a MATLAB version issue again!

Hi @gilbertogalvis,
Sorry but this still doesn't work for me using the current master. Could you check if it still works for you? Perhaps, a MATLAB version issue again!

Ok. I will test it again
can you share the test code here?

Sample code:
load wind
X = x(5:10,20:25,6:10);
Y = y(5:10,20:25,6:10);
U = u(5:10,20:25,6:10);
V = v(5:10,20:25,6:10);

quiver(X,Y,U,V);
pf = fig2plotly(gcf, 'offline', 1, 'open', 1);

PR #337 fix this issue in a more robust way
codes to test it:
load('wind','x','y','u','v')
X = x(11:22,11:22,1);
Y = y(11:22,11:22,1);
U = u(11:22,11:22,1);
V = v(11:22,11:22,1);
quiver(X,Y,U,V)

fig2plotly(gcf, 'offline', 0);

load wind
X = x(5:10,20:25,6:10);
Y = y(5:10,20:25,6:10);
U = u(5:10,20:25,6:10);
V = v(5:10,20:25,6:10);

quiver(X,Y,U,V);
pf = fig2plotly(gcf, 'offline', 0);

results looks as follow

@harshpurwar please test ir again
Thanks!


prevent 'TypeError: argument of type 'NoneType' is not iterable' when…

… content is None after query

Coverage decreased (-0.7%) to 76.038% when pulling 4c5426a3583733d94dcfb66cbc030f3cbef5d7ac on hagai26:master into 918ebd7f976502cb3f1be67af9b629e50894ea02 on DenisCarriere:master.

Thanks for the fix @hagai26


file:///storage/303B-30CA/Download/chrome_screenshot_1628771119989.pngAdd files via upload

https://github.com/bitdisaster/windows-focus-assist/pull/7#issue-968726337


Output strokes per iteration only.

Hi,
thank you for your work.
I am struggling to modify the code so that, when running python3 baseline/test.py --max_step=80 --actor=actor.pkl --renderer=renderer.pkl --img=path_to_image --divide=5, it generates images with only the strokes added during the latest iteration - instead of the sum of all strokes.
Do you have an idea on this?
Thank you

Hello,
Please look at line 51 in test.py, you can save color_stroke[:, i].

Thank you for quick and effective response.
I managed to achieve what I wanted by inserting save_img(color_stroke[:,i], args.imgid) at line 51 in test.py and modifying the save_img-function to save the single strokes in a separate folder.


Capture IDE related metadata at execution time

The PR aims to capture IDE metadata at execution time (in a buildFinished block).
Metadata initially read in the projectEvaluated callback are now read through a Provider in order to fix configuration cache restore scenarii.
This PR was tested with

Gradle 6.0, 7.2, 7.6
w/o configuration cache
Android Studio 2021.3.1 Patch 1

Signed-off-by: Jerome Prinet<EMAIL_ADDRESS>

Was this (and the following PR) tested with Gradle 4? I remember you also tested it with Gradle 4 at some point.
Now that Gradle 8 is out, can we also test it with Gradle 8 and the STABLE_CONFIGURATION_CACHE flag? It adds some stricter checks. I want to make sure we are always compatible.

Was this (and the following PR) tested with Gradle 4? I remember you also tested it with Gradle 4 at some point.
Now that Gradle 8 is out, can we also test it with Gradle 8 and the STABLE_CONFIGURATION_CACHE flag? It adds some stricter checks. I want to make sure we are compatible when the strictest checks are enabled.

I'll check what's up with Gradle 8 and 4, can't recall if this was tested with the latter


Index in the Pipfile.lock is implicitly stated for direct dependencies only

I'm trying to understand the purpose of "index" key in the Pipfile.lock file that is automatically inserted by Pipenv. For a simple Pipfile file shown bellow:
[[source]]
url = "https://index-aicoe.a3c1.starter-us-west-1.openshiftapps.com/fedora28/1.9/jemalloc"
verify_ssl = true
name = "redhat-aicoe-experiments"

[[source]]
url = "https://pypi.python.org/simple"
verify_ssl = true
name = "pypi"

[packages]
click = "<6.7"
tensorflow = {version="==1.9.0rc0", index="redhat-aicoe-experiments"}

[dev-packages]

Pipenv correctly computes Pipfile.lock file. However, the "index" key is stated in Pipfile.lock only for direct dependencies - in this case tensorflow and click where tensorflow was explicitly configured to use the provided index. All the transitive dependencies of these packages do not have the "index" key set (I observed this, not sure if this happens in every case) - see for example click (direct dependency) and termcolor (indirect dependency):
...
        "click": {
            "hashes": [...],
            "index": "pypi",
            "version": "==6.6"
        },
...
        "termcolor": {
            "hashes": [...],
            No index provided here
            "version": "==1.1.0"
        },
...

I'm wondering about the logic here (this is somehow related to the comment I posted earlier
in https://github.com/pypa/pipenv/issues/2159#issuecomment-426016543).

Is the index configuration stated only for direct dependencies?
I haven't check implementation details, but would it be possible to include also information about index that was used for indirect dependencies?
From where this "index" item comes from?
Why there is implicitly inserted the pypi index in case of click? (it was not explicitly configured in the Pipfile)

This issue is trying to start a discussion around this, if there is a need to write a PEEP, I'm happy to do it, but first I would like to understand the initial purpose of this behavior.

$ pipenv --support
Pipenv version: '2018.10.10.dev0'
Pipenv location: '/usr/local/lib/python3.6/site-packages/pipenv'
Python location: '/usr/bin/python3'
Python installations found:

3.6.5: /usr/bin/python3.6
3.6.5: /usr/bin/python3.6m
2.7.15: /usr/bin/python2.7

PEP 508 Information:
{'implementation_name': 'cpython',
 'implementation_version': '3.6.5',
 'os_name': 'posix',
 'platform_machine': 'x86_64',
 'platform_python_implementation': 'CPython',
 'platform_release': '4.17.3-200.fc28.x86_64',
 'platform_system': 'Linux',
 'platform_version': '#1 SMP Tue Jun 26 14:17:07 UTC 2018',
 'python_full_version': '3.6.5',
 'python_version': '3.6',
 'sys_platform': 'linux'}

System environment variables:

XDG_SEAT
GIO_LAUNCHED_DESKTOP_FILE_PID
XDG_SESSION_ID
WINDOWPATH
DISPLAY
BASH_ENV
HOSTNAME
COLORTERM
QTLIB
ENV
GNOME_DESKTOP_SESSION_ID
LOGNAME
MODULESHOME
GUESTFISH_PS1
SHELL
FPATH
GUESTFISH_INIT
PATH
HISTCONTROL
XMODIFIERS
GIO_LAUNCHED_DESKTOP_FILE
SSH_AUTH_SOCK
GUESTFISH_OUTPUT
XAUTHORITY
XDG_SESSION_DESKTOP
GDMSESSION
QT_IM_MODULE
HISTSIZE
SSH_ASKPASS
LESSOPEN
OLDPWD
XDG_MENU_PREFIX
MODULES_RUN_QUARANTINE
MAIL
USERNAME
XDG_RUNTIME_DIR
MODULES_CMD
MODULEPATH
DESKTOP_SESSION
GUESTFISH_RESTORE
QTDIR
USER
PWD
TERMINATOR_UUID
VTE_VERSION
QTINC
TERMINATOR_DBUS_PATH
HOME
DESKTOP_AUTOSTART_ID
XDG_DATA_DIRS
LOADEDMODULES
MODULEPATH_modshare
LANG
SHLVL
XDG_VTNR
GDM_LANG
TERMINATOR_DBUS_NAME
XDG_SESSION_TYPE
DBUS_SESSION_BUS_ADDRESS
XDG_CURRENT_DESKTOP
TERM
SESSION_MANAGER
LS_COLORS
ZSH
PAGER
LESS
LSCOLORS
VIRTUALENVWRAPPER_PROJECT_FILENAME
VIRTUALENVWRAPPER_WORKON_CD
VIRTUALENVWRAPPER_SCRIPT
WORKON_HOME
VIRTUALENVWRAPPER_HOOK_DIR
LC_CTYPE
GOPATH
_
PYTHONDONTWRITEBYTECODE
PIP_SHIMS_BASE_MODULE
PIP_PYTHON_PATH

Pipenv–specific environment variables:
Debug–specific environment variables:

PATH: /home/fpokorny/bin:/usr/local/cuda-8.0/bin:/usr/local/bin:/usr/lib64/qt-3.3/bin:/usr/share/Modules/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/home/fpokorny/bin
SHELL: /usr/bin/zsh
LANG: en_US.UTF-8
PWD: /tmp/a

Contents of Pipfile ('/tmp/a/Pipfile'):
[[source]]
url = "https://index-aicoe.a3c1.starter-us-west-1.openshiftapps.com/fedora28/1.9/jemalloc"
verify_ssl = true
name = "redhat-aicoe-experiments"

[[source]]
url = "https://pypi.python.org/simple"
verify_ssl = true
name = "pypi"

[packages]
click = "<6.7"
tensorflow = {version="==1.9.0rc0", index="redhat-aicoe-experiments"}

[dev-packages]

Contents of Pipfile.lock ('/tmp/a/Pipfile.lock'):
{
    "_meta": {
        "hash": {
            "sha256": "1810a5e07442ce802a21e3272b31e5768e357976087e24df3d4536f9c67f7907"
        },
        "pipfile-spec": 6,
        "requires": {},
        "sources": [
            {
                "name": "pypi",
                "url": "https://pypi.python.org/simple",
                "verify_ssl": true
            },
            {
                "name": "redhat-aicoe-experiments",
                "url": "https://index-aicoe.a3c1.starter-us-west-1.openshiftapps.com/fedora28/1.9/jemalloc",
                "verify_ssl": true
            }
        ]
    },
    "default": {
        "absl-py": {
            "hashes": [
                "sha256:6fcc3c04dc881fd93d793674a42ee8c73155570eda8f8b90c4477c8522478b7b"
            ],
            "version": "==0.5.0"
        },
        "astor": {
            "hashes": [
                "sha256:95c30d87a6c2cf89aa628b87398466840f0ad8652f88eb173125a6df8533fb8d",
                "sha256:fb503b9e2fdd05609fbf557b916b4a7824171203701660f0c55bbf5a7a68713e"
            ],
            "version": "==0.7.1"
        },
        "bleach": {
            "hashes": [
                "sha256:978e758599b54cd3caa2e160d74102879b230ea8dc93871d0783721eef58bc65",
                "sha256:e67f46adcec78dbc3c04462f3aba3213a673d5652eba2609ed1ef15492a44b8d"
            ],
            "version": "==1.5.0"
        },
        "click": {
            "hashes": [
                "sha256:cc6a19da8ebff6e7074f731447ef7e112bd23adf3de5c597cf9989f2fd8defe9",
                "sha256:fcf697e1fd4b567d817c69dab10a4035937fe6af175c05fd6806b69f74cbc6c4"
            ],
            "index": "pypi",
            "version": "==6.6"
        },
        "gast": {
            "hashes": [
                "sha256:7068908321ecd2774f145193c4b34a11305bd104b4551b09273dfd1d6a374930"
            ],
            "version": "==0.2.0"
        },
        "grpcio": {
            "hashes": [
                "sha256:00e0ed7a4558b65df24aed9369880c7e247bcd48c9c71c9c40f3143ab02842a5",
                "sha256:113d457cf87a2d642820f2a442008d714c52f9760fea2c02b22fe06aacc40531",
                "sha256:114399097a2af15fac768dd99c32171ed33804bf127945b5cba0fb9f4380b09d",
                "sha256:14a16eb13472cb16213dad17d4580d885824e04b93ae4323ed532168f99477a0",
                "sha256:15a5fc23ba2e5f30758fbb8763f79a764e3de1ffcb92c2ccd46f45ffa63910d2",
                "sha256:16cdd82a3aed9b6d3067492413bfffe61bf0f98c06f2942f887d79b8fd68898d",
                "sha256:21901beb267bd996a094d960996bff047db7c10ad3bfa7bd4689eb0374101e63",
                "sha256:253ae7ed8b50132ab331146ecb329d740330f9f76b6986cc36c3280eb74878c7",
                "sha256:25f2d6120e710223195027375855a06cfc5a4f448e89b20f8f09975527297aeb",
                "sha256:2767b87260b2256d738a496d5aaf8ce4bbeef34cdbe9c852508c09a36ff35631",
                "sha256:2fffb227db6d95e62086563720518cd5cdbf7127675f49067f55d3c7cca019c4",
                "sha256:3b16f12bedb3fc22db8c4a55119f460778330d0ca44cc9716d106170b4270685",
                "sha256:3f57682b103febfd603350d2e0c91bdb5240593dd3c377ade9ab27da0540f4ad",
                "sha256:4473f462accbfb6207174af8bbdd21c09d355a16d6a718e24810afb236ed237e",
                "sha256:4a70e37c6bf2f81f48f739184c058c9912caf9fd85db6b8688e8916b748b02cb",
                "sha256:529b872bddc0ad5243fa58f77dfbac1a04c9812f35a4d2033cba795e3b579411",
                "sha256:5f54bb445a443a12123d88f3f83a715d00c0579481201e08caa931a0c38f794e",
                "sha256:670e884e5b5c8805e30d214da790cb86487db27ed9e7ccd74f11a2bc5a27df2b",
                "sha256:67f1dd57935abe0d090f3b5f9fbc4d7ef84a53c9cd806c7cb91a2bda9dd8f14a",
                "sha256:6bb4acb354a0f84ca767658bf414b70dbfc88a41210456720e5ef1248354b0ad",
                "sha256:701534465e7936524e786f9448e9ccc9a519fddb59bca744ef2abe04fd737104",
                "sha256:7ab4fcef50ec8257a4ec5ff676001d9be466aa965df57ccf89873a263c7bb4ae",
                "sha256:7b2f2882a909213d038f399dcf07995870e3a2f27a93ce8dbfb65db860df30be",
                "sha256:9380f8365d9fd7fea6497615295b4e749345bdc7990655d52ad22fef0127f1d3",
                "sha256:aa4ca8f74500d90a6b8745aef03fb765b8c1655524f695baa46320763aad5822",
                "sha256:bf203d00fa7d7f9a67646c5468732b03330f7910fffa1bac7dcde956d27d3508",
                "sha256:cba9f8b4910644c6664f875ba20e8ea031919118d4567fe0b77aee28d7fa32c6",
                "sha256:d360ccb3aedec5b799c8b0d7968013b92a5a67fad00da77ff987360d59182f9f",
                "sha256:e0b262828da4b0986ab9994ed8727655b21f1575b6b31cf2f05ba0d9ca650bae",
                "sha256:e9caf61a789dd657404195d7bc0d3e521bf1878b43448ffe8b03bb03e27fb23d",
                "sha256:eade750711df77696ae8361412018c0b294bb078fc0a3b51f5a77e789af692c7",
                "sha256:f322631581149eb35f834ea0defcacf4edc8641db206f83027b9c239aa46a442"
            ],
            "version": "==1.15.0"
        },
        "html5lib": {
            "hashes": [
                "sha256:2612a191a8d5842bfa057e41ba50bbb9dcb722419d2408c78cff4758d0754868"
            ],
            "version": "==0.9999999"
        },
        "markdown": {
            "hashes": [
                "sha256:c00429bd503a47ec88d5e30a751e147dcb4c6889663cd3e2ba0afe858e009baa",
                "sha256:d02e0f9b04c500cde6637c11ad7c72671f359b87b9fe924b2383649d8841db7c"
            ],
            "version": "==3.0.1"
        },
        "numpy": {
            "hashes": [
                "sha256:1b1cf8f7300cf7b11ddb4250b3898c711a6187df05341b5b7153db23ffe5d498",
                "sha256:27a0d018f608a3fe34ac5e2b876f4c23c47e38295c47dd0775cc294cd2614bc1",
                "sha256:3fde172e28c899580d32dc21cb6d4a1225d62362f61050b654545c662eac215a",
                "sha256:497d7c86df4f85eb03b7f58a7dd0f8b948b1f582e77629341f624ba301b4d204",
                "sha256:4e28e66cf80c09a628ae680efeb0aa9a066eb4bb7db2a5669024c5b034891576",
                "sha256:58be95faf0ca2d886b5b337e7cba2923e3ad1224b806a91223ea39f1e0c77d03",
                "sha256:5b4dfb6551eaeaf532054e2c6ef4b19c449c2e3a709ebdde6392acb1372ecabc",
                "sha256:63f833a7c622e9082df3cbaf03b4fd92d7e0c11e2f9d87cb57dbf0e84441964b",
                "sha256:71bf3b7ca15b1967bba3a1ef6a8e87286382a8b5e46ac76b42a02fe787c5237d",
                "sha256:733dc5d47e71236263837825b69c975bc08728ae638452b34aeb1d6fa347b780",
                "sha256:82f00a1e2695a0e5b89879aa25ea614530b8ebdca6d49d4834843d498e8a5e92",
                "sha256:866bf72b9c3bfabe4476d866c70ee1714ad3e2f7b7048bb934892335e7b6b1f7",
                "sha256:8aeac8b08f4b8c52129518efcd93706bb6d506ccd17830b67d18d0227cf32d9e",
                "sha256:8d2cfb0aef7ec8759736cce26946efa084cdf49797712333539ef7d135e0295e",
                "sha256:981224224bbf44d95278eb37996162e8beb6f144d2719b144e86dfe2fce6c510",
                "sha256:981daff58fa3985a26daa4faa2b726c4e7a1d45178100125c0e1fdaf2ac64978",
                "sha256:9ad36dbfdbb0cba90a08e7343fadf86f43cf6d87450e8d2b5d71d7c7202907e4",
                "sha256:a251570bb3cb04f1627f23c234ad09af0e54fc8194e026cf46178f2e5748d647",
                "sha256:b5ff7dae352fd9e1edddad1348698e9fea14064460a7e39121ef9526745802e6",
                "sha256:c898f9cca806102fcacb6309899743aa39efb2ad2a302f4c319f54db9f05cd84",
                "sha256:cf4b970042ce148ad8dce4369c02a4078b382dadf20067ce2629c239d76460d1",
                "sha256:d1569013e8cc8f37e9769d19effdd85e404c976cd0ca28a94e3ddc026c216ae8",
                "sha256:dca261e85fe0d34b2c242ecb31c9ab693509af2cf955d9caf01ee3ef3669abd0",
                "sha256:ec8bf53ef7c92c99340972519adbe122e82c81d5b87cbd955c74ba8a8cd2a4ad",
                "sha256:f2e55726a9ee2e8129d6ce6abb466304868051bcc7a09d652b3b07cd86e801a2",
                "sha256:f4dee74f2626c783a3804df9191e9008946a104d5a284e52427a53ff576423cb",
                "sha256:f592fd7fe1f20b5041928cce1330937eca62f9058cb41e69c2c2d83cffc0d1e3",
                "sha256:ffab5b80bba8c86251291b8ce2e6c99a61446459d4c6637f5d5cc8c9ce37c972"
            ],
            "version": "==1.15.2"
        },
        "protobuf": {
            "hashes": [
                "sha256:10394a4d03af7060fa8a6e1cbf38cea44be1467053b0aea5bbfcb4b13c4b88c4",
                "sha256:1489b376b0f364bcc6f89519718c057eb191d7ad6f1b395ffd93d1aa45587811",
                "sha256:1931d8efce896981fe410c802fd66df14f9f429c32a72dd9cfeeac9815ec6444",
                "sha256:196d3a80f93c537f27d2a19a4fafb826fb4c331b0b99110f985119391d170f96",
                "sha256:46e34fdcc2b1f2620172d3a4885128705a4e658b9b62355ae5e98f9ea19f42c2",
                "sha256:59cd75ded98094d3cf2d79e84cdb38a46e33e7441b2826f3838dcc7c07f82995",
                "sha256:5ee0522eed6680bb5bac5b6d738f7b0923b3cafce8c4b1a039a6107f0841d7ed",
                "sha256:65917cfd5da9dfc993d5684643063318a2e875f798047911a9dd71ca066641c9",
                "sha256:685bc4ec61a50f7360c9fd18e277b65db90105adbf9c79938bd315435e526b90",
                "sha256:92e8418976e52201364a3174e40dc31f5fd8c147186d72380cbda54e0464ee19",
                "sha256:9335f79d1940dfb9bcaf8ec881fb8ab47d7a2c721fb8b02949aab8bbf8b68625",
                "sha256:a7ee3bb6de78185e5411487bef8bc1c59ebd97e47713cba3c460ef44e99b3db9",
                "sha256:ceec283da2323e2431c49de58f80e1718986b79be59c266bb0509cbf90ca5b9e",
                "sha256:fcfc907746ec22716f05ea96b7f41597dfe1a1c088f861efb8a0d4f4196a6f10"
            ],
            "version": "==3.6.1"
        },
        "six": {
            "hashes": [
                "sha256:70e8a77beed4562e7f14fe23a786b54f6296e34344c23bc42f07b15018ff98e9",
                "sha256:832dc0e10feb1aa2c68dcc57dbb658f1c7e65b9b61af69048abc87a2db00a0eb"
            ],
            "version": "==1.11.0"
        },
        "tensorboard": {
            "hashes": [
                "sha256:2651a4d9261a6593cb2c3514576e4bf25e273837c79e98f68a3cf51759f68725",
                "sha256:7776cc8bcfd0d07cd106e9e86c011ab8eca38c97b57f5433b9f0fd6bbf31a36e"
            ],
            "version": "==1.8.0"
        },
        "tensorflow": {
            "hashes": [
                "sha256:0588ac4f2b2e3994a5245c9be13a58e6128c26f7e6eb61c2ef90d82b58b78d4c",
                "sha256:1a83b8e789a5b9bfdfc671d4368b976a8d9cc5d217209264cc987885ff55a6b1",
                "sha256:4dedb5dacd20df1e545835a40ad6b337fda11e32432bd643e4a8cd484d72fe0a",
                "sha256:522b3f7c2e1f516c9dbd973e757189eb4b174ae752409583ca416e2e6d1eb8a4",
                "sha256:543327c6a3a81eab0e1ab5537a92e37562eb291af5e4acc60feaf619cb120f76",
                "sha256:7206e7339787f8e7f5ff617c6f5c6546b6405459dec84defd082917e43524d69",
                "sha256:7797c520b5c4deccf42f65d886c8b2207e02c37c5c2e8a8e66bfdd241f9be142",
                "sha256:901321bc8227f0bc08831f77daa8b3c44ae73dcd24a9f2fe1fbe7856f56fc495",
                "sha256:921707089807c4f6472ef0c90772d4e84641fa1b774a63bcff0fd923ef8a6261",
                "sha256:b763ae5db7645a653bd7c1975540200377b06e0ae9f1148ebb80d96db6432afb",
                "sha256:c6b99225b2c7732797162111641367542be2826f50c80404f2395d51e13254e0",
                "sha256:e61e0368e7eaa6e310f50b3d3538720e808b88ffba46e86e02e9b20e22812233"
            ],
            "index": "redhat-aicoe-experiments",
            "version": "==1.9.0rc0"
        },
        "termcolor": {
            "hashes": [
                "sha256:1d6d69ce66211143803fbc56652b41d73b4a400a2891d7bf7a1cdf4c02de613b"
            ],
            "version": "==1.1.0"
        },
        "werkzeug": {
            "hashes": [
                "sha256:c3fd7a7d41976d9f44db327260e263132466836cef6f91512889ed60ad26557c",
                "sha256:d5da73735293558eb1651ee2fddc4d0dedcfa06538b8813a2e20011583c9e49b"
            ],
            "version": "==0.14.1"
        },
        "wheel": {
            "hashes": [
                "sha256:9fa1f772f1a2df2bd00ddb4fa57e1cc349301e1facb98fbe62329803a9ff1196",
                "sha256:d215f4520a1ba1851a3c00ba2b4122665cd3d6b0834d2ba2816198b1e3024a0e"
            ],
            "markers": "python_version >= '3'",
            "version": "==0.32.1"
        }
    },
    "develop": {}
}

Otherwise it would be impossible to derive a lock file entry if (say) A and B are specified different indexes, but both require C as a dependency.

To be clear—it is theoretically possible to, say, specify C’s index only if it is requested by one top-level package, otherwise leave it unspecified, but I would argue it would make the behaviour much more confusing and difficult to debug.

Because otherwise it would be impossible to derive a lock file entry if (say) A and B are specified different indexes, but both require C as a dependency.
To be clear—it is theoretically possible to, say, specify C’s index only if it is requested by one top-level package, otherwise leave it unspecified, but I would argue it would make the behaviour much more confusing and difficult to debug.

What about specifying index based on where the package was actually installed from? AFAIK with the current implementation it is not possible (as there is passed passed --extra-index-url parameter with all the indexes configured?), but I don't see why this index entry cannot be determined for the transitive ones - there are already hashes computed so that they match artifacts installed from a package index, why the index entry cannot be set as well?

Because you may have specified --pypi-mirror, for example, in which case the entire point of the argument is to avoid doing that.  AT the end of the day, the index is not really that important, unless you specified it, because the relevant identity check is done against file hashes.
It isn't that the index can't be determined, it's that lockfiles aren't meant to be used as a means of re-calculating dependencies, it's just a set of package validation instructions for rebuilding the environment out of the same exact packages.  Whether they all came from the same place or not shouldn't actually matter.  If your index provides packages that don't match PyPI, that's more of a question about why the hashes are out of sync
This is out of scope for now, I think, so I'm going to go ahead and close it.  We may revisit it later but I feel relatively sure about it for the moment


version = versions[-1]               ~~~~~~~~^^^^ IndexError: list index out of range

When I download and install Seek thermal SDK, and run the code I get this error, I don't know how to fix it, hope you can fix it for me

It looks like you don't have SEEKTHERMAL_LIB_DIR in your environment as noted in the "Other dependencies" section of the README.

What should I do to fix that error? I downloaded Seek_Thermal_SDK_<IP_ADDRESS> and set up the path C:\Program Files\Seek Thermal\Seek Thermal SDK\Seek_Thermal_SDK_<IP_ADDRESS>\x64-windows\lib . I wonder if there is any way to fix the error version = versions[-1] ~~~~~~~~^^^^ IndexError: list index out of range? please let me know

While it looks like the "else" case could use a little clean-up, you are only getting there because the SEEKTHERMAL_LIB_DIR variable is not in the environment. Please open a new "command prompt" and type "set".  SEEKTHERMAL_LIB_DIR should be in the list.

When I follow your instructions I get the error RuntimeError: Failed to load seekcamera.dll from C:\Program Files\Seek Thermal\Seek Thermal SDK\Seek_Thermal_SDK_<IP_ADDRESS>\x64-windows\lib\seekcamera.dll \seekcamera.dll

Is the Seek Thermal <IP_ADDRESS> SDK installed in c:\Program Files\Seek Thermal\Seek _Thermal_SDK?

yes i have installed thermal camera sdk library

The env variable should not have seekcamera.dll in it. That automatically gets appended.

I don't get what you mean. Can you show how to fix this error?

I don't get what you mean. Can you show how to fix this error?

Set the env variable through Windows System Properties->Environment Variables. Select SEEKTHERMAL_LIB_DIR (or create it if you don't have one) and set it to the directory of the dll. Do not include the dll in the name though. Hit "OK" for all of these and then open a new command prompt to pick up the new variable.

Great


Replace temporary notification banners with dmBanner

https://trello.com/c/7UUGcFmw/92-2-replace-notification-banners-with-digitalmarketplace-govuk-frontend-banner-component-in-g-cloud-service-page-and-dos-opportuni
Remarkably straightforward! Thank @agalamatis for doing the hard work up front on the dmBanner macro in digitalmarketplace-govuk-frontend.
Changes made in this PR:

The new banners are now used on Brief pages, Service pages, and the Direct Award standstill messages for buyers (these have been moved from the right-hand side to the top, to be consistent with our other banners - see screenshot below).
I've gone for heading-level h2 on the banners as that's what we had before, and we don't want multiple h1s on the page of course. However the font size comes up much smaller than previously. Is this a good thing?
Renamed bits of Python code to no longer refer to temporary_message, hopefully this will make things less confusing for future Buyer FE coders
Decoupled the home page framework messages from the toolkit/temporary-message.html macro and just hardcoded the <div>, as it's not really a proper temporary message or a banner

Not made in this PR:

Removing every trace of temporary-message SCSS. It's too entangled and this PR is already too big

Screenshot of new Direct Award standstill message (see ticket for 'before'):

My review checklist
I've:

[ ] looked at the code
[ ] tested locally
[ ] run functional tests locally

I wonder if we should move the banners to below the page h1 🤔  It would be more semantically correct.

I wonder if we should move the banners to below the page h1 🤔 It would be more semantically correct.

I think we'd need designer input for that...

I've gone for heading-level h2 on the banners as that's what we had before, and we don't want multiple h1s on the page of course. However the font size comes up much smaller than previously. Is this a good thing?

I think the font size is okay, if you want though we can look at modifying the component to have the ability to control the font size using the govuk-heading--* styles.

We'll need to update the functional tests to be able to recognise the new banners.

Then I see a temporary-message banner message containing 'Awarded to'
features/step_definitions/common_steps.rb:252
Unable to find visible css ".banner-temporary-message-with-action" (Capybara::ElementNotFound)

We'll need to update the functional tests to be able to recognise the new banners.

Then I see a temporary-message banner message containing 'Awarded to'
features/step_definitions/common_steps.rb:252
Unable to find visible css ".banner-temporary-message-with-action" (Capybara::ElementNotFound)

Done! https://github.com/alphagov/digitalmarketplace-functional-tests/pull/774


[BUG][Android] Return key inserts two new lines on Android keyboard, Text entered out of order when using Android keyboard

Hi team!
I'm having an issue when pressing the return key on my Android keyboard. It moves down two lines at once and when entering text, the text I'm typing appears out of order going from right to left instead of left to right
To Reproduce
Steps to reproduce the behavior:

Input a text
Press down the line
Continue input text

Screenshots
https://github.com/the-airbender/quill_html_editor/assets/33709374/73bf848e-5da7-4005-959c-89154f547497
Smartphone (please complete the following information):

Device: [SamSung A52]
OS: [Android 13.0]

Flutter Doctor
Please run flutter doctor in the terminal and add the  log here.
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.10.5, on macOS 12.6.5 21G531 darwin-x64, locale
en-VN)
[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 14.2)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2022.3)
[✓] VS Code (version 1.81.1)
[✓] Connected device (3 available)
[✓] Network resources

Im having the same issue, when user clicks new line on the android keyboard two lines gets added.
ksdfkjnsdfkjn

|
Like this. please some one help. this is happening only on android


Make the header to vertical center.

I remove the sessions and footer, so make the dashboard just for watch.
let g:dashboard_custom_footer = []
let g:dashboard_custom_section = {}

It's possible to make the header position to vertical center, then make the cursor invisible.

no. vim can't control the cursor. because the vim like a cli in terminal so it just use terminal intreface.


Runtime exceptions

Hello there,
I'm new to Baleen, I read most of the documentation. Baleen is running in the background. But when I run my test application, I get some runtime exceptions. I ran my test application with -verbose on so I could see all the messages. I have copied my code at the bottom.
Error1:
This comes when I link my test application only with Baleen library. I get an exception "java.lang.NoClassDefFoundError: org/apache/http/config/Lookup".

Error2:
Then I linked httpCore4.4.x jar (which I hope I'm not supposed to do), ran, then I don't get above error. But I get another new exception java.lang.NoSuchMethodError: org.apache.http.entity.ContentType.withCharset(Ljava/lang/String;)Lorg/apache/http/entity/ContentType;

I assume that I must not link apache libraries since Baleen already has references to them and the libraries I link may cause to make conflicts between libraries. I'm on Windows 10, 64x and IDE is Netbeans. I'm using Baleen 2.2.0. Could someone help me to figure out what I'm missing here please?

Following is my test program.
package testbaleen;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;
import java.util.logging.Level;
import java.util.logging.Logger;
import org.apache.uima.analysis_engine.AnalysisEngine;
import org.apache.uima.analysis_engine.AnalysisEngineDescription;
import org.apache.uima.fit.factory.AnalysisEngineFactory;
import org.apache.uima.fit.factory.ExternalResourceFactory;
import org.apache.uima.jcas.JCas;
import org.apache.uima.resource.ExternalResourceDescription;
import org.apache.uima.resource.ResourceInitializationException;
import org.elasticsearch.client.Client;
import org.elasticsearch.common.settings.Settings;
import org.elasticsearch.node.Node;
import org.elasticsearch.node.NodeBuilder;
import uk.gov.dstl.baleen.consumers.ElasticsearchRest;
import uk.gov.dstl.baleen.resources.SharedElasticsearchRestResource;
/**
*

@author Susantha
*/
public class TestBaleen {
private static Path tmpDir;
private static final String ELASTICSEARCH = "elasticsearchRest";
protected static Client client;
protected static JCas jCas;
protected static AnalysisEngine ae;
/**

@param args the command line arguments
*/
public static void main(String[] args) {
 try {
     tmpDir = Files.createTempDirectory("elasticsearch");

     String s = tmpDir.toString();

     Settings settings = Settings.builder()
             .put("path.home", tmpDir.toString())
             .put("http.port", "19600")		//Don't use the default ports for testing purposes
             .put("transport.tcp.port", "19300")
             .build();

     Node node = NodeBuilder.nodeBuilder()
             .settings(settings)
             .data(true)
             .local(true)
             .clusterName("SusanthaSearch")
             .node();

     ExternalResourceDescription erd = ExternalResourceFactory.createExternalResourceDescription(ELASTICSEARCH, SharedElasticsearchRestResource.class, SharedElasticsearchRestResource.PARAM_URL, "http://localhost:19600");
     AnalysisEngineDescription aed = AnalysisEngineFactory.createEngineDescription(ElasticsearchRest.class, ELASTICSEARCH, erd);

     try
     {
         System.out.println("Now creating the engine");
         ae = AnalysisEngineFactory.createEngine(aed);
     }catch(ResourceInitializationException ex)
     {
         System.out.println("Caught"+ex.getMessage());
     }catch(Exception e)
     {
         System.out.println("Caught"+e.getMessage());
     }
     client = node.client();
     System.out.println("Done and dusted...");

 } catch (IOException ex) {
 Logger.getLogger(TestBaleen.class.getName()).log(Level.SEVERE, null, ex);
     //Logger.getLogger(ContentScrapper.class.getName()).log(Level.SEVERE, null, ex);
 } catch (ResourceInitializationException ex) {
 Logger.getLogger(TestBaleen.class.getName()).log(Level.SEVERE, null, ex);

}

}
}

I think there might be several things going on here.
Firstly, you're right in saying that some of the Apache HTTP Components classes seem to be missing from Baleen 2.2.0 - I'm not sure why that is (it's a sub-dependency of one of Baleen's dependencies rather than something we use directly, so it might be something to do with the version we're using there). However, in the latest snapshots of Baleen 2.3.0 it does seem to be included so perhaps consider using that instead?
However, looking at the test code you've provided I'm not sure you're using Baleen in the correct way. Instantiating a single annotator on it's own almost certainly won't work as it will be missing a lot of the additional functionality provided by Baleen and required by a Baleen annotator.
What is it you're trying to achieve? If you're trying to run Baleen inside your application, have you looked at this Wiki page: https://github.com/dstl/baleen/wiki/Run-as-a-Standalone-Application

Thanks for the quick reply. I'm not sure from where I can get 2.3.0. Under releases, only 2.2.0 appears as the latest release. I should try that version definitely.
As I came across these issues in my application, I just copied part of it to a sample application to make it simpler. To give you an overview of what I'm trying to do, I just copied few more lines of my program to this test application. Basically, I'm reading some external files (for the moment only a csv file) and read its data (employee data) and store them in ElasticSearch cluster through Baleen, so that later, when a search is performed, easily data can be retrieved.
Logic is something similar to this. (This code may not compile, as I have just copied some lines from the main application)
public static void main(String[] args) {
        try {
            tmpDir = Files.createTempDirectory("elasticsearch");

            String s = tmpDir.toString();

            Settings settings = Settings.builder()
                    .put("path.home", tmpDir.toString())
                    .put("http.port", "19600")		//Don't use the default ports for testing purposes
                    .put("transport.tcp.port", "19300")
                    .build();

            Node node = NodeBuilder.nodeBuilder()
                    .settings(settings)
                    .data(true)
                    .local(true)
                    .clusterName("SusanthaSearch")
                    .node();

            ExternalResourceDescription erd = ExternalResourceFactory.createExternalResourceDescription(ELASTICSEARCH, SharedElasticsearchRestResource.class, SharedElasticsearchRestResource.PARAM_URL, "http://localhost:19600");
            AnalysisEngineDescription aed = AnalysisEngineFactory.createEngineDescription(ElasticsearchRest.class, ELASTICSEARCH, erd);

            try
            {
                System.out.println("Now creating the engine");
                ae = AnalysisEngineFactory.createEngine(aed);
            }catch(ResourceInitializationException ex)
            {
                System.out.println("Caught"+ex.getMessage());
            }catch(Exception e)
            {
                System.out.println("Caught"+e.getMessage());
            }
            client = node.client();

            String path = "RealFolderPathMustBeGiven"; // folder path where all the files resides
            Files.walk(Paths.get(path)).forEach(filePath -> {

            FileInputStream fis; // Finds the workbook instance for XLSX file
                    fis = new FileInputStream(filePath.toString());
            XSSFWorkbook myWorkBook = new XSSFWorkbook(fis); // Return first sheet from the XLSX workbook
                    XSSFSheet sheet = myWorkBook.getSheetAt(0);
                    ArrayList<String> columnList = new ArrayList();

                    Iterator<Row> rowIterator = sheet.iterator();
                    if (rowIterator.hasNext()) {
                        //First Row
                        // excelsheet header values can be retrieved and store
                    }
            while (rowIterator.hasNext()) {
                  //2nd row on wards
                        Employee employee = new Employee(jCas);

                        Row row = rowIterator.next();
                        for (int i = 0; i < columnList.size(); i++) {
                            if (row.getCell(i) != null) {
                                if(columnList.get(i).equals("LastName"))
                                {
                                    employee.setLastName(row.getCell(i).toString());
                                }
                                else if(columnList.get(i).equals("FirstName"))
                                {
                                    employee.setFirstName(row.getCell(i).toString());
                                }
                                else if(columnList.get(i).equals("Gender"))
                                {
                                    employee.setGender(row.getCell(i).toString());
                                }
                                else if(columnList.get(i).equals("Birthday"))
                                {
                                    employee.setBirthday(row.getCell(i).toString());
                                }
                                else if(columnList.get(i).equals("BirthCountry"))
                                {
                                    employee.setBirthCountry(row.getCell(i).toString());
                                }
                                employee.addToIndexes();
                            }

                        }

                    }

            ae.process(jCas);

            }

        } catch (IOException ex) {
        Logger.getLogger(TestBaleen.class.getName()).log(Level.SEVERE, null, ex);
            //Logger.getLogger(ContentScrapper.class.getName()).log(Level.SEVERE, null, ex);
        } catch (ResourceInitializationException ex) {
        Logger.getLogger(TestBaleen.class.getName()).log(Level.SEVERE, null, ex);
    }

}

//Then from somewhere else I can perform searches like this
{
SearchHit result = client.search(new SearchRequest()).actionGet().getHits().hits()[0];
List<Map<String, Object>> entities = (List<Map<String, Object>>) result.getSource().get("entities");
//I hope this will give all the employees
//Later I need to perform some other searches. Like, for the given parameter (lastName or Birthday), retrieving the employee.
}

Here Employee class is similar to Person class in Baleen which is inherited from Entity. Employee_Type also there similar to Person_Type.
Idea here to use Baleen for our project is to annotate important data, so that searching would be comprehensive and easy. Our web application needs to perform advance searches like above which I haven't written them yet. Still I'm writing the text processing, reading and indexing them to ES cluster.

To get Baleen 2.3.0-SNAPSHOT, you will need to compile it yourself (i.e. clone the repo and run mvn package).
In terms of what you're trying to acheive, it sounds like what you really want to do is develop additional components for Baleen and then use Baleen as normal with a pipeline including your components. Any components that are on the Classpath are automatically picked up and available for use. You can also add in additional types (Employee in your case) using a similar method (i.e. making them available on the Classpath).
Have you read the Development Guides included in Baleen? Based on the code above, you probably want to develop your own ContentExtractor to handle your CSV files (or possibly your own CollectionReader) to read in the data and annotate it as appropriate. Your pipeline would then look something like:
collectionreader:
  class: your.class.on.the.classpath.XslxCollectionReader
  file: C:\your\file.xlsx

annotators:
# None required here unless you want to do additional extraction, e.g. finding e-mail addresses and phone numbers?

consumers:
- Elasticsearch

Have a look also at the following pages for some examples: https://github.com/dstl/baleen/wiki/Additional-Components

1.Thanks. I'll go through the docs again.
2.Some build errors cause not to compile.
I followed this (https://github.com/dstl/baleen/blob/master/BUILD.md) but at the before step 5, I get some compiler errors. Snapshot of console output is copied at the bottom.

I'm wondering whether you could make Baleen to support Netbeans too.

{{
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] Baleen
[INFO] Baleen Core
[INFO] Baleen UIMA
[INFO] Baleen Resources
[INFO] Baleen Annotators
[INFO] Baleen Collection Readers
[INFO] Baleen Consumers
[INFO] Baleen Jobs
[INFO] Baleen History
[INFO] Baleen Runner
[INFO] Baleen Javadoc
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Baleen 2.2.0
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- jacoco-maven-plugin:<IP_ADDRESS>502262128:prepare-agent (default-prepare-agent) @ baleen ---
[INFO] argLine set to "-javaagent:C:\Users\Susantha\.m2\repository\org\jacoco\org.jacoco.agent\<IP_ADDRESS>502262128\org.jacoco.agent-<IP_ADDRESS>502262128-runtime.jar=destfile=D:\official\Coordinate Projects\VSALT\baleen-master\baleen-master\baleen\target\jacoco.exec"
[INFO]
[INFO] --- jacoco-maven-plugin:<IP_ADDRESS>502262128:report (default-report) @ baleen ---
[INFO] Skipping JaCoCo execution due to missing execution data file:D:\official\Coordinate Projects\VSALT\baleen-master\baleen-master\baleen\target\jacoco.exec
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Baleen Core 2.2.0
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- jacoco-maven-plugin:<IP_ADDRESS>502262128:prepare-agent (default-prepare-agent) @ baleen-core ---
[INFO] argLine set to "-javaagent:C:\Users\Susantha\.m2\repository\org\jacoco\org.jacoco.agent\<IP_ADDRESS>502262128\org.jacoco.agent-<IP_ADDRESS>502262128-runtime.jar=destfile=D:\official\Coordinate Projects\VSALT\baleen-master\baleen-master\baleen\baleen-core\target\jacoco.exec"
[INFO]
[INFO] --- maven-resources-plugin:2.5:resources (default-resources) @ baleen-core ---
[debug] execute contextualize
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 66 resources
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ baleen-core ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-resources-plugin:2.5:testResources (default-testResources) @ baleen-core ---
[debug] execute contextualize
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 22 resources
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:testCompile (default-testCompile) @ baleen-core ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-surefire-plugin:2.10:test (default-test) @ baleen-core ---
[INFO] Surefire report directory: D:\official\Coordinate Projects\VSALT\baleen-master\baleen-master\baleen\baleen-core\target\surefire-reports

T E S T S
Results :
Tests run: 0, Failures: 0, Errors: 0, Skipped: 0
[INFO]
[INFO] --- jacoco-maven-plugin:<IP_ADDRESS>502262128:report (default-report) @ baleen-core ---
[INFO] Analyzed bundle 'Baleen Core' with 75 classes
[INFO]
[INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ baleen-core ---
[INFO]
[INFO] --- maven-jar-plugin:2.4:test-jar (default) @ baleen-core ---
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Baleen UIMA 2.2.0
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- jacoco-maven-plugin:<IP_ADDRESS>502262128:prepare-agent (default-prepare-agent) @ baleen-uima ---
[INFO] argLine set to "-javaagent:C:\Users\Susantha\.m2\repository\org\jacoco\org.jacoco.agent\<IP_ADDRESS>502262128\org.jacoco.agent-<IP_ADDRESS>502262128-runtime.jar=destfile=D:\official\Coordinate Projects\VSALT\baleen-master\baleen-master\baleen\baleen-uima\target\jacoco.exec"
[INFO]
[INFO] --- maven-resources-plugin:2.5:resources (default-resources) @ baleen-uima ---
[debug] execute contextualize
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 9 resources
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ baleen-uima ---
[INFO] Compiling 86 source files to D:\official\Coordinate Projects\VSALT\baleen-master\baleen-master\baleen\baleen-uima\target\classes
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] \official\Coordinate Projects\VSALT\baleen-master\baleen-master\baleen\baleen-uima\src\main\java\uk\gov\dstl\baleen\types\semantic\Entity.java:[19,7] error: Entity is not abstract and does not override abstract method getTypeName() in Recordable
[ERROR] \official\Coordinate Projects\VSALT\baleen-master\baleen-master\baleen\baleen-uima\src\main\java\uk\gov\dstl\baleen\types\semantic\Event.java:[22,7] error: Event is not abstract and does not override abstract method getTypeName() in Recordable
[ERROR] \official\Coordinate Projects\VSALT\baleen-master\baleen-master\baleen\baleen-uima\src\main\java\org\apache\uima\jcas\tcas\DocumentAnnotation.java:[286,60] error: incompatible types: String cannot be converted to String[]
[ERROR] \official\Coordinate Projects\VSALT\baleen-master\baleen-master\baleen\baleen-uima\src\main\java\uk\gov\dstl\baleen\types\semantic\Relation.java:[19,7] error: Relation is not abstract and does not override abstract method getTypeName() in Recordable
[ERROR] \official\Coordinate Projects\VSALT\baleen-master\baleen-master\baleen\baleen-uima\src\main\java\uk\gov\dstl\baleen\uima\grammar\ParseTree.java:[72,68] error: cannot find symbol
[ERROR] \official\Coordinate Projects\VSALT\baleen-master\baleen-master\baleen\baleen-uima\src\main\java\uk\gov\dstl\baleen\uima\grammar\ParseTree.java:[73,20] error: cannot find symbol
[ERROR] \official\Coordinate Projects\VSALT\baleen-master\baleen-master\baleen\baleen-uima\src\main\java\uk\gov\dstl\baleen\uima\grammar\ParseTree.java:[156,31] error: cannot find symbol
[ERROR] \official\Coordinate Projects\VSALT\baleen-master\baleen-master\baleen\baleen-uima\src\main\java\uk\gov\dstl\baleen\uima\grammar\ParseTree.java:[157,40] error: incompatible types: invalid method reference
[INFO] 8 errors
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Baleen ............................................ SUCCESS [4.146s]
[INFO] Baleen Core ....................................... SUCCESS [11.700s]
[INFO] Baleen UIMA ....................................... FAILURE [3.081s]
[INFO] Baleen Resources .................................. SKIPPED
[INFO] Baleen Annotators ................................. SKIPPED
[INFO] Baleen Collection Readers ......................... SKIPPED
[INFO] Baleen Consumers .................................. SKIPPED
[INFO] Baleen Jobs ....................................... SKIPPED
[INFO] Baleen History .................................... SKIPPED
[INFO] Baleen Runner ..................................... SKIPPED
[INFO] Baleen Javadoc .................................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 19.299s
[INFO] Finished at: Wed Jan 04 11:07:26 GMT+05:30 2017
[INFO] Final Memory: 20M/47M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default-compile) on project baleen-uima: Compilation failure: Compilation failure:
[ERROR] \official\Coordinate Projects\VSALT\baleen-master\baleen-master\baleen\baleen-uima\src\main\java\uk\gov\dstl\baleen\types\semantic\Entity.java:[19,7] error: Entity is not abstract and does not override abstract method getTypeName() in Recordable
[ERROR] \official\Coordinate Projects\VSALT\baleen-master\baleen-master\baleen\baleen-uima\src\main\java\uk\gov\dstl\baleen\types\semantic\Event.java:[22,7] error: Event is not abstract and does not override abstract method getTypeName() in Recordable
[ERROR] \official\Coordinate Projects\VSALT\baleen-master\baleen-master\baleen\baleen-uima\src\main\java\org\apache\uima\jcas\tcas\DocumentAnnotation.java:[286,60] error: incompatible types: String cannot be converted to String[]
[ERROR] \official\Coordinate Projects\VSALT\baleen-master\baleen-master\baleen\baleen-uima\src\main\java\uk\gov\dstl\baleen\types\semantic\Relation.java:[19,7] error: Relation is not abstract and does not override abstract method getTypeName() in Recordable
[ERROR] \official\Coordinate Projects\VSALT\baleen-master\baleen-master\baleen\baleen-uima\src\main\java\uk\gov\dstl\baleen\uima\grammar\ParseTree.java:[72,68] error: cannot find symbol
[ERROR] \official\Coordinate Projects\VSALT\baleen-master\baleen-master\baleen\baleen-uima\src\main\java\uk\gov\dstl\baleen\uima\grammar\ParseTree.java:[73,20] error: cannot find symbol
[ERROR] \official\Coordinate Projects\VSALT\baleen-master\baleen-master\baleen\baleen-uima\src\main\java\uk\gov\dstl\baleen\uima\grammar\ParseTree.java:[156,31] error: cannot find symbol
[ERROR] \official\Coordinate Projects\VSALT\baleen-master\baleen-master\baleen\baleen-uima\src\main\java\uk\gov\dstl\baleen\uima\grammar\ParseTree.java:[157,40] error: incompatible types: invalid method reference
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn  -rf :baleen-uima
}}

Have you tried building from the command line rather than through Eclipse? The Eclipse and Maven integration can be somewhat buggy, so it's possible that's the issue. The other thing to try might be building it on a path without spaces. I will try doing a clean compile of the code here later, but have built it before without issues.
What JDK are you using to build Baleen?
With regards to NetBeans, the files on GitHub don't include the Eclipse specific project files, so you should be able to import the Maven projects into NetBeans.

I've just build the latest code from the command line and it worked fine, suggesting it's something with your setup (or possibly an Eclipse bug).

The method that it complains about not in your logs is a default method, which were introduced with Java 8 - are you building with JDK7?

Thanks a lot, I was able to compile and build Baleen 2.3.0 without errors after fixing couple of issues in my side.
I removed whitespaces in my folder path, that solved some compiler errors.
I was using Eclipse Java EE IDE for Web Developers version, for some reason, it allows only up to 1.7 Java version. So I couldn't move forward with Eclipse. Probably I was using a wrong version of eclipse.
Then I imported Maven project to Netbeans, after removing the whitespaces in the project path, I was able to build Baleen. Cause for the some jar file missing errors was I had been using Baleen-core, but after importing to Netbeans I realized complete set of jar dependencies are available in the root of Baleen, so referencing to root Baleen solved those errors also.
What I'm going to do next is rather try to load annotators on their own, use the framework and callbacks. I'll be back if I encounter any problems again.
One last question Could you please send me the pipeline configuration file for this (https://github.com/jamesdbaker/Baleen-Components)? That would be handy to have a look at real example.
I was referring this  (https://github.com/dstl/baleen/wiki/Sample-Pipeline) pipeline and am not too sure certain information there. For example
annotators:

language.OpenNLP
class: misc.DocumentTypeByLocation
baseDirectory: C:\baleen\data
gazetteer.Country
class: gazetteer.Mongo
type: Buzzword
collection: buzzwords
class: gazetteer.Mongo
type: Location
collection: location
class: gazetteer.Mongo
type: Organisation
collection: organisations
class: gazetteer.Mongo
type: Person
collection: people

What is the convention of these definitions?

class:gazetteer.Mongo" Does it refer to Baleen Mongo class or something user defined class? Baleen doesn't have Mongo class, but has MongoGazetteer.java
misc.DocumentTypeByLocation" Is it a user defined class? What is the baseDirectory there?
What does mean by 'type' and 'collection' under class:gazetteer.Mongo?
I read in the documentation; annotators, consumers and collectionReader are the main clauses to define in pipeline. ( I can see these are high level package names of some Baleen projects.  So other than Baleen Annotators, Baleen Collection Readers and Baleen Consumers, if I need to use other classes in other packages, can I define them by their high level package name? For example if I need to use Entity.java and it comes under baleen.types.semantic package. So similar to 'annotators:' above, can I use like this;

types:
-semantic.Entity

Thanks in advance for your answers.

Please read the 'Running Baleen with Additional Annotators' guide included within Baleen and the Javadoc for PipelineCpeBuilder, this will answer some of your questions.
Also, consider using the Plankton tool to play around with building pipelines as this will produce the correct YAML for you. The one from that additional components project would look something like:
annotators:
  - jamesbaker.baleen.annotators.HashTag

gazetteer.Mongo refers to the Mongo class in uk.gov.dstl.baleen.annotators.gazetteer. All built in annotators are under uk.gov.dstl.baleen.annotators, so we only need to specify the end of the class. If the annotator you want to load is not under this package, then you need to provide the full name.
type and collection are configuration properties for the Mongo gazetteer annotator. Information about the configuration properties for each annotator (or any component) can be found in the Javadoc.
To include new entity types, I believe they just need to be on the classpath and defined in such a way that UimaFIT will detect them. Please refer to the UimaFIT documentation for how to do this.

Thank you for the references, they are very helpful.


The 502 bad issue

I have followed the guide to deploy the pinot cloudformation template with cdk. And the cloudformation template is successfully implemented. However, I cannot visit the controller. the browser gives me the 502 bad gateway message. Would you please take a look? Thank you very much for your attention.

We had to update to Pinot latest version as they removed version 0.12.2.


TilingSprite does not use default Texture.EMPTY

@Zyie
@bigtimebuddy
Hey guys!
I faced an error, which can happen very rarely (depends on how you want to create sprites), the error relates to textures you use while instantiating new TilingSprite (s).
It is not an urgent fix but more an enhancement, pls take a look
https://github.com/pixijs/pixi.js/blob/528b44223bb96e18580e72ff94461abd20ed4857/packages/sprite-tiling/src/TilingSprite.ts#L64
Expected Behavior
TilingSprite uses this.texture property of super class
Current Behavior
TilingSprite DOES not use this.texture property of super class which causes an error
Possible Solution
// will use texture or default wich has been set in superclass Texture.EMPTY ( to be more consistent )
this.uvMatrix = this.texture.uvMatrix || new TextureMatrix(texture);

yes, that's a problem. Care to make a PR? =)


CODE_OF_CONDUCT

Thanks for sending a code of conduct for the project I really appreciate it however the code of conduct provided by you seems more as an appropriate code of conduct of an organisation or community  , if you could change it to be more specific towards a project based then I would gladly accept it. Thanks .


Implement department choice

need to decide if it's everything, blips, notifications and sound or if it's something else and what to do about the scanner

ok, after some thinking,

scanner shows all text alerts
possibly add a radio item for audio alerts but that's a while away
will need to go through the zones table and divide it up into jurisdictions, could also come with a revision of the popzones table
blips will be shown regardless of jurisdiction
so this will only affect text and audio alerts

I already have a base for jurisdictions. I will send it to you when I find it. Need to look at the clutter folders of mine.

@Soverign92 any luck on here, I'd like to move forward with this

@DokaDoka I have looked for the chart I made and all I was able to find was one of patrol zones for Los Santos. I need to remake it. I can do that either tonight or somtime tomorrow and post the image here.

alright cool I can work with that

Green = Polito Bay
Pink = Grapeseed
Purple = Sandy Shores
Blue = LSPD
Black = Zancudo
Sheriff and SASP = Whole Map.

So I've done it by zone, by default the agency for that zone will get the alert, LSPD takes the city and everything else is BCSO for now. Changing the agency for the zone in the config is trivial, we can even assign a group to a zone.


Note: Profiling durations of notebook cell executions

Currently, the CI takes 5-10 min to set up the environment and about 40 min to test about 30 notebooks. Keep here a list of cells that execute >5s.


feat: create avatar component

feat: create avatar component

I think we should also add "primary" value for color, it will have the gradient bg color as we can see in the button


Temp. doesn't always work?

Hi Matt,
Check out: http://mynestreport.com/
Do you know why the temperature doesn't always record? If you check June 15th for example, it seems like it doesn't get the temp properly.
Maybe there should be a catch in there if it doesn't get a correct response to use the last temp recorded or simply not add a data point?
Roch

I noticed the same thing around that date (and the day after), it was probably a problem with the Weather Underground API which returned bad data for a few minutes.  I fixed my graphs by going in the SQL database and removing the records with the bad data.  This eventually made a mess of my graphs because the code assumes the SQL datapoints will already be in time order.  I fixed it by adding an ORDER BY statement to the SQL query; I'll submit a pull request with that shortly.

Merged submission from @amaiman

I just initiated a pull request #23 that will help with this problem.


[Python] Reassigning a function parameter treats it as undefined until reassignment

Test case:
def f(x):
    self.say(x + '') # output: undefined, expected: 1
    x = 2
f(1)

filbert turns:
def f(x):
    print(x + '')
    x = 2
f(1)

into
(function(__pythonRuntime){function f() {
    var __params0 = arguments.length === 1 && arguments[0].formals && arguments[0].keywords ? arguments[0] : null;
    var __formalsIndex0 = 0;
    var __args0 = arguments;
    function __getParam0(v, d) {
        var r = d;
        if (__params0) {
            if (__formalsIndex0 < __params0.formals.length) {
                r = __params0.formals[__formalsIndex0++];
            } else if (v in __params0.keywords) {
                r = __params0.keywords[v];
                delete __params0.keywords[v];
            }
        } else if (__formalsIndex0 < __args0.length) {
            r = __args0[__formalsIndex0++];
        }
        return r;
    }
    var x = __getParam0('x');
    return function () {
        __pythonRuntime.functions.print(__pythonRuntime.ops.add(x, ''));
        var x = 2;
    }.call(this);
}
f(__pythonRuntime.utils.createParamsObj(1));})(filbert.pythonRuntime);

Thanks.
Hm, that output is a bit more complex than I expected. My Python may be not sharp enough to figure out why all that is necessary, but I can see the problem: there's an "intermediate scope" where the parameters are defined and a child scope for the function body itself -- the function body scope's var x shadows the parameters scope's x, resulting in the error.
I believe the correct solution would be to not re-declare a variable when a formal parameter with the same name exists, but I may need to research a bit to be sure.
At least we know it is a bug with Filbert. :smile:

Reported in Filbert's issue tracker: https://github.com/differentmatt/filbert/issues/70

Should be fixed with @basicer's new Esper interpreter.


amiSelector field unknown ERROR

Version

Karpenter: v0.16.0

Kubernetes: v1.22.0
Expected Behavior

I want to add a custom AMI to the nodes provisioned by Karpenter
Actual Behavior

The Karpenter APIs are failing to recognize the field amiSelector. I tried both on the main provisioner definition under provider. Then I tried again by creating a providerRef and adding a AWSNodeTemplate and adding it there. It failed in both scenarios.
Steps to Reproduce the Problem

Add the field (amiSelector with any config Name, ami-ids, etc...) to the provisioner definition or an AWSNodeTemplate and reference it in the provisioner definition under spec.providerRef.name. Note if I change the amiFamily to something like AL2 and add amiSelector filed configuration instead of Custom and reference a public AMI it acts like it's working. But, if I look at the AWSNodeTemplate definition the field is omitted and I see it spinning up an EC2 instance with a different AMI than I selected.
Resource Specs and Logs

First attempt with just the fields under spec.provider in the provisioner definition:
resource "kubectl_manifest" "karpenter_jenkins_agent_provisioner" {
  yaml_body = <<-YAML
  apiVersion: karpenter.sh/v1alpha5
  kind: Provisioner
  metadata:
    name: ${var.cluster_name}-agent
  spec:
    labels:
      purpose: jenkins-agent
    requirements:
      - key: "kubernetes.io/arch"
        operator: In
        values: ["amd64"]
    limits:
      resources:
        cpu: ${var.cpu_limit}
        memory: ${var.memory_limit}
    provider:
      amiFamily: Custom
      amiSelector:
        Name: base-master-1660719974
      instanceProfile: ${var.instance_profile}
      subnetSelector:
        Name: "${var.cluster_name}-private*"
      securityGroupSelector:
        Name: "eks-cluster-sg-${var.cluster_name}*"
      blockDeviceMappings:
        - deviceName: /dev/xvda
          ebs:
            volumeSize: ${var.ebs_volume_size}
            volumeType: ${var.ebs_volume_type}
            deleteOnTermination: ${var.ebs_delete_on_termination}
    ttlSecondsAfterEmpty: ${var.ttl_seconds_after_empty}
  YAML
}

These are the logs
2022-08-24T16:45:07.897Z	ERROR	controller.consolidation	consolidating cluster, determining candidate nodes, listing instance types for jenkins-nonprod-production-agent, strict decoder error for {"amiFamily":"Custom","amiSelector":{"Name":"base-master-1660719974"},"blockDeviceMappings":[{"deviceName":"/dev/xvda","ebs":{"deleteOnTermination":true,"volumeSize":"100Gi","volumeType":"gp3"}}],"instanceProfile":"KarpenterNodeInstanceProfile-jenkins-nonprod-production-us-east-1","securityGroupSelector":{"Name":"eks-cluster-sg-jenkins-nonprod-production*"},"subnetSelector":{"Name":"jenkins-nonprod-production-private*"}}: v1alpha1.AWS.ReadObject: found unknown field: amiSelector, error found in #10 byte of ...|iSelector":{"Name":"|..., bigger context ...|{"amiFamily":"Custom","amiSelector":{"Name":"base-master-1660719974"},"blockDeviceMap|...	{"commit": "639756a"}
2022

This is trying with an AWSNodeTemplate:
resource "kubectl_manifest" "karpenter_jenkins_agent_provisioner" {
  yaml_body = <<-YAML
  apiVersion: karpenter.sh/v1alpha5
  kind: Provisioner
  metadata:
    name: ${var.cluster_name}-agent
  spec:
    labels:
      purpose: jenkins-agent
    limits:
      resources:
        cpu: ${var.cpu_limit}
        memory: ${var.memory_limit}
    providerRef:
      name: custom-family
    ttlSecondsAfterEmpty: ${var.ttl_seconds_after_empty}
  YAML
}

resource "kubectl_manifest" "karpenter_jenkins_agent_provisioner_launch_template" {
  yaml_body = <<-YAML
  apiVersion: karpenter.k8s.aws/v1alpha1
  kind: AWSNodeTemplate
  metadata:
    name: custom-family
  spec:
    amiFamily: Custom
    instanceProfile: ${var.instance_profile}
    subnetSelector:
      Name: "${var.cluster_name}-private*"
    securityGroupSelector:
      Name: "eks-cluster-sg-${var.cluster_name}*"
    amiSelector:
      Name: "base-master-1660719974"
    blockDeviceMappings:
      - deviceName: /dev/xvda
        ebs:
          volumeSize: ${var.ebs_volume_size}
          volumeType: gp2
          deleteOnTermination: ${var.ebs_delete_on_termination}
  YAML
}

It fails to deploy with a console log of:
│ Resource: "karpenter.k8s.aws/v1alpha1, Resource=awsnodetemplates", GroupVersionKind: "karpenter.k8s.aws/v1alpha1, Kind=AWSNodeTemplate"
│ Name: "custom-family", Namespace: ""
│ for: "/var/folders/ff/b7kqy67n71v_mz7vywmqg0y80000gn/T/756130312kubectl_manifest.yaml": admission webhook "validation.webhook.provisioners.karpenter.sh" denied the request: validation failed: missing field(s): spec.amiSelector
│
│   with module.jenkins_nonprod_production_cluster_karpenter_provisioner.kubectl_manifest.karpenter_jenkins_agent_provisioner_launch_template,
│   on ../modules/karpenter-provisioner/main.tf line 62, in resource "kubectl_manifest" "karpenter_jenkins_agent_provisioner_launch_template":
│   62: resource "kubectl_manifest" "karpenter_jenkins_agent_provisioner_launch_template" {

As noted aboved if I don't use a amiFamily=Custom and use something like AL2 in the AWSNodeTemplate it deploys fine but ignores the amiSelector field.
resource "kubectl_manifest" "karpenter_jenkins_agent_provisioner" {
  yaml_body = <<-YAML
  apiVersion: karpenter.sh/v1alpha5
  kind: Provisioner
  metadata:
    name: ${var.cluster_name}-agent
  spec:
    labels:
      purpose: jenkins-agent
    limits:
      resources:
        cpu: ${var.cpu_limit}
        memory: ${var.memory_limit}
    providerRef:
      name: custom-family
    ttlSecondsAfterEmpty: ${var.ttl_seconds_after_empty}
  YAML
}

resource "kubectl_manifest" "karpenter_jenkins_agent_provisioner_launch_template" {
  yaml_body = <<-YAML
  apiVersion: karpenter.k8s.aws/v1alpha1
  kind: AWSNodeTemplate
  metadata:
    name: custom-family
  spec:
    amiFamily: AL2
    instanceProfile: ${var.instance_profile}
    subnetSelector:
      Name: "${var.cluster_name}-private*"
    securityGroupSelector:
      Name: "eks-cluster-sg-${var.cluster_name}*"
    amiSelector:
      aws-ids: "ami-0c751afe30028f2c4"
    blockDeviceMappings:
      - deviceName: /dev/xvda
        ebs:
          volumeSize: ${var.ebs_volume_size}
          volumeType: gp2
          deleteOnTermination: ${var.ebs_delete_on_termination}
  YAML
}

As you can see when I describe it on the cluster its omitted ():
➜  ~ kubectl describe AWSNodeTemplate
Name:         custom-family
Namespace:
Labels:       <none>
Annotations:  <none>
API Version:  karpenter.k8s.aws/v1alpha1
Kind:         AWSNodeTemplate
Metadata:
  Creation Timestamp:  2022-08-24T15:54:19Z
  Generation:          2
  Managed Fields:
    API Version:  karpenter.k8s.aws/v1alpha1
    Fields Type:  FieldsV1
    fieldsV1:
      f:metadata:
        f:annotations:
          .:
          f:kubectl.kubernetes.io/last-applied-configuration:
      f:spec:
        .:
        f:amiFamily:
        f:blockDeviceMappings:
        f:instanceProfile:
        f:securityGroupSelector:
          .:
          f:Name:
        f:subnetSelector:
          .:
          f:Name:
    Manager:         HashiCorp
    Operation:       Update
    Time:            2022-08-24T15:56:47Z
  Resource Version:  11246108
  UID:               59197b84-7049-436d-955d-66faecb52fd4
Spec:
  Ami Family:  AL2
  Block Device Mappings:
    Device Name:  /dev/xvda
    Ebs:
      Delete On Termination:  true
      Volume Size:            100Gi
      Volume Type:            gp2
  Instance Profile:           KarpenterNodeInstanceProfile-jenkins-nonprod-production-us-east-1
  Security Group Selector:
    Name:  eks-cluster-sg-jenkins-nonprod-production*
  Subnet Selector:
    Name:  jenkins-nonprod-production-private*
Events:    <none>

It should work in the AWSNodeTemplate. If you had a previous version of Karpenter w/ the CRDs installed, you would need to replace the CRDs to pick up the new fields. The process is outlined here: https://karpenter.sh/v0.16.0/upgrade-guide/#custom-resource-definition-crd-upgrades
Let us know if that fixes the issue.

@bwagner5  That was absolutely it and totally missed it. Thanks for providing this information 🙌

No Problem! Glad you got it working!


CheckFiles does not check general configs

In the configuration check for req/opt properties, running the toolbox in CheckFiles mode skips the general check.  Generally, this goes unnoticed.  The latest update for Zip attachments relies on the general.os.slash property.  When not set, it'll cause errors like File not found ... [item uuid]/[item version]/null_zips/mypackage.zip.  (notice the null )
The fix is to call the general config checks when launching CheckFiles, which should in turn fail the launch if the general configurations are missing.

added in the general.os.slash as a required config for CheckFiles


Provides signal handler (IndexableSignalHandler) to index model subclasses of Indexable mixin on change.

Included in v0.5


Consider removing python2.6 from AppVeyor

Now tests at AppVeyour partially fail because pytest requires Python >= 2.7. May be it's time to deprecate 2.6 support or to not test it at least?

Drop it entirely (from Travis CI etc.).
Python 2.6 has been EOL for four years and no longer receives security updates. Many other important Python libraries are also dropping it, and it's little used.

https://en.wikipedia.org/wiki/CPython#Version_history
Here's the pip installs for marisa-trie from PyPI for the last month (via pypinfo --percent --pip marisa-trie pyversion), showing virtually no usage.

python_version
percent
download_count

2.7
59.3%
3,048

3.5
20.9%
1,074

3.6
14.3%
734

3.4
5.4%
279

2.6
0.1%
4


Logic-Group ZIF 5030

Checklist

[X] It is not in the configuration DB

[X] It was not merged recently or has a pending PR

Which device is missing?
Logic-Group ZIF 5030
Manufacturer ID
0x0234
Product Type
0x0003
Product ID
0x0010A
Firmware Version
1.1
Is the device listed on the Z-Wave Alliance website?
No response
Do you have a manual?
zif5030_datablad-3.pdf
zif5030-users-manual-en.pdf
I have made the .json-file for this, but can't get it to work properly.
Probably due to the structure in the configuration database for Logic Group products, that include a lot of templating.
Would be happy to provide the files for review.

Would be happy to provide the files for review.

Yeah, go ahead. We can help you through it.

I have made the .json-file for this, but can't get it to work properly.
Probably due to the structure in the configuration database for Logic Group products, that include a lot of templating.

If you want to test them in the user-config dir, you need to copy the template file and potentially the master template aswell. Make sure to use the same structure:
templates/master_template.json
0x0234/templates/logic_group_template.json
0x0234/your-file.json

Adding the folder structure (and identifying an error in the productId :-) ) did the trick (for recognizing the device).
Status

The ten relay switches are now available - and controllable - in the control panel.

Challenges
Endpoints
The specification say:

• Root device; an intersection of all the devices (endpoint 0).
• 10 switch devices to control each of the relay outputs (endpoint 1 – 10).
• 4 switch devices representing the digital inputs (endpoint 11 – 14).
• 4 sensor devices representing the analogue inputs (endpoint 15 – 18).
Endpoints 11-14 are not "real" switches - they can not be switched by the user, they are in fact "[...] typically used for reporting the actual status of the input to the Controller for the Controller to visualize the input in its user interface."
Thus, while it is technically represented in the correct way in the controller, I think it is confusing (and unnecessary) that those endpoints are represented as switches - as they are not switchable by the user...

Configuration
All configuration parameters are present.
However, for the four sensor devices (endpoint 15-18, configuration parameters 10-48), it seems like all values (when refreshing the parameters in the interface) ends up at sensor 1.
Naming
Switches are named "[61-37-1-targetValue] Target value" etc.
In the file, the association groups are labelled ""label": "Relay output 1 (Basic Report On / Off)", e.g.
Is it possible to label the switches also? Like "Relay 1" etc.?
(That could also be a cool addition to other Logic Group devices, that has a relay and four physical switches, if they could be named "Relay", "Switch 1", etc. instead of the more generic naming, that may be rather confusing sometimes)
Tried to add the config-files here, but for some reason I can't add json-files - but they can be found here: https://1drv.ms/u/s!AiJbSZ6oHDf7jKthYPrsGmw60OjdLw?e=eMFntb

Is it possible to label the switches also? Like "Relay 1" etc.?

No. Maybe when I've solved #552 we'll be a bit more flexible here, but I got bigger fish to fry atm.

However, for the four sensor devices (endpoint 15-18, configuration parameters 10-48), it seems like all values (when refreshing the parameters in the interface) ends up at sensor 1.

Which driver version are you on?

Would be cool with the naming - but need to fix is more important than nice to improve ;-)
Driver etc:
zwavejs2mqtt: 5.4.2
zwave-js: 8.0.5

zwave-js: 8.0.5

Ok I thought you might be on an old one. Can you share a driver log (loglevel debug) which shows the effect that all values end up on sensor 1?

Sure.
Just thougt about, if I should try excluding and reincluding the device first? Not sure if that would do any real difference compared to re-interviewing the device?
(I did of course restart the container with zwavejs2mqtt a couple of times already)

if I should try excluding and reincluding the device first?

No, unless you changed a parameter which changes the capabilities of the device, this is not necessary.

It's node 61
zwavejs_2021-07-29.log
zwavejs2mqtt.log

Something is not right there. First, I don't see any log that the re-interview was started - just that all config paramters get queried.
Second, the device doesn't respond to the config paramters after no. 14. Are you sure you have the correct device/firmware?

Sorry, didn't realise that you needed a re-interview...
New log files:
zwavejs2mqtt.log
zwavejs_2021-07-29.log
The device is without doubt a ZIF 5030 and it has the newest available firmware.

Sorry, didn't realise that you needed a re-interview...

Sorry, I got confused for a second here. I probably don't...
However none of your logs include the situation you described above.

for the four sensor devices (endpoint 15-18, configuration parameters 10-48), it seems like all values (when refreshing the parameters in the interface) ends up at sensor 1.

The first is just the config parameter query and the second one is an interview that's not done yet. What I can see is that there are no endpoints 15-18 though:
2021-07-29T11:42:29.408Z CNTRLR « [Node 061] received response for device endpoints:
                                  endpoint count (individual): 14
                                  count is dynamic:            false
                                  identical capabilities:      false
                                  endpoint count (aggregated): 0
...
2021-07-29T11:42:30.155Z CNTRLR « [Node 061] received endpoints: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14

and that it only responds to the config parameters 1-7 and 10-14 - all the others result in a report for parameter 1. Your config file definitely has a lot more defined.

The device is without doubt a ZIF 5030 and it has the newest available firmware.

Could you verify with the manufacturer please? For reference, this is the device fingerprint:
manufacturer id: 0x0234
product type:    0x0003
product id:      0x010e
firmware version 1.1

Short update:
Communicating with the lead developer from Logic-Group - he'll look into to it when he's back from vacation.


MAPREDUCE-7356. Remove few duplicate dependencies from mapreduce-client's child poms

:broken_heart: -1 overall

Vote
Subsystem
Runtime
Logfile
Comment

+0 :ok:
reexec
0m 32s

Docker mode activated.

_ Prechecks _

+1 :green_heart:
dupname
0m  0s

No case conflicting files found.

+0 :ok:
codespell
0m  1s

codespell was not available.

+1 :green_heart:
@author
0m  0s

The patch does not contain any @author tags.

-1 :x:
test4tests
0m  0s

The patch doesn't appear to include any new or modified tests. Please justify why no new tests are needed for this patch. Also please list what manual steps were performed to verify this patch.

_ trunk Compile Tests _

+0 :ok:
mvndep
12m 40s

Maven dependency ordering for branch

+1 :green_heart:
mvninstall
20m 19s

trunk passed

+1 :green_heart:
compile
2m 29s

trunk passed with JDK Ubuntu-11.0.11+9-Ubuntu-0ubuntu2.20.04

+1 :green_heart:
compile
2m  6s

trunk passed with JDK Private Build-1.8.0_292-8u292-b10-0ubuntu1~20.04-b10

+1 :green_heart:
mvnsite
1m 15s

trunk passed

+1 :green_heart:
javadoc
0m 56s

trunk passed with JDK Ubuntu-11.0.11+9-Ubuntu-0ubuntu2.20.04

+1 :green_heart:
javadoc
0m 52s

trunk passed with JDK Private Build-1.8.0_292-8u292-b10-0ubuntu1~20.04-b10

+1 :green_heart:
shadedclient
54m 18s

branch has no errors when building and testing our client artifacts.

_ Patch Compile Tests _

+0 :ok:
mvndep
0m 27s

Maven dependency ordering for patch

+1 :green_heart:
mvninstall
0m 55s

the patch passed

+1 :green_heart:
compile
2m 20s

the patch passed with JDK Ubuntu-11.0.11+9-Ubuntu-0ubuntu2.20.04

+1 :green_heart:
javac
2m 20s

the patch passed

+1 :green_heart:
compile
2m  0s

the patch passed with JDK Private Build-1.8.0_292-8u292-b10-0ubuntu1~20.04-b10

+1 :green_heart:
javac
2m  0s

the patch passed

+1 :green_heart:
blanks
0m  0s

The patch has no blanks issues.

+1 :green_heart:
mvnsite
0m 58s

the patch passed

+1 :green_heart:
xml
0m  3s

The patch has no ill-formed XML file.

+1 :green_heart:
javadoc
0m 38s

the patch passed with JDK Ubuntu-11.0.11+9-Ubuntu-0ubuntu2.20.04

+1 :green_heart:
javadoc
0m 36s

the patch passed with JDK Private Build-1.8.0_292-8u292-b10-0ubuntu1~20.04-b10

+1 :green_heart:
shadedclient
15m  7s

patch has no errors when building and testing our client artifacts.

_ Other Tests _

+1 :green_heart:
unit
6m 47s

hadoop-mapreduce-client-core in the patch passed.

+1 :green_heart:
unit
2m 53s

hadoop-mapreduce-client-nativetask in the patch passed.

+1 :green_heart:
asflicense
0m 34s

The patch does not generate ASF License warnings.

88m 37s

Subsystem
Report/Notes

Docker
ClientAPI=1.41 ServerAPI=1.41 base: https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-3193/1/artifact/out/Dockerfile

GITHUB PR
https://github.com/apache/hadoop/pull/3193

Optional Tests
dupname asflicense compile javac javadoc mvninstall mvnsite unit shadedclient codespell xml

uname
Linux e906e1517c36 4.15.0-58-generic #64-Ubuntu SMP Tue Aug 6 11:12:41 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

Build tool
maven

Personality
dev-support/bin/hadoop.sh

git revision
trunk / eae9e4e71cd25ae36db17a5de5e519ae4ddd72bc

Default Java
Private Build-1.8.0_292-8u292-b10-0ubuntu1~20.04-b10

Multi-JDK versions
/usr/lib/jvm/java-11-openjdk-amd64:Ubuntu-11.0.11+9-Ubuntu-0ubuntu2.20.04 /usr/lib/jvm/java-8-openjdk-amd64:Private Build-1.8.0_292-8u292-b10-0ubuntu1~20.04-b10

Test Results
https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-3193/1/testReport/

Max. process+thread count
1578 (vs. ulimit of 5500)

modules
C: hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-nativetask U: hadoop-mapreduce-project/hadoop-mapreduce-client

Console output
https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-3193/1/console

versions
git=2.25.1 maven=3.6.3

Powered by
Apache Yetus 0.14.0-SNAPSHOT https://yetus.apache.org

This message was automatically generated.

@ayushtkn would you like to take a look if you have bandwidth?
Thanks


changes the tailwind forms strategy

This PR improves the package's usability in conjunction with other packages for example Powergrid  that use custom forms and don't necessarily use @tailwindcss/form in their project.
To fix the problem it was necessary to use the require('@tailwindcss/forms') package
with the class strategy.
According to the @tailwindcss/forms  documentation, it is recommended to use this strategy so that the effects are applied to the component you use.
https://github.com/tailwindlabs/tailwindcss-forms#using-classes-instead-of-element-selectors
// tailwind.config.js
plugins: [
  require("@tailwindcss/forms")({
    strategy: 'class',
  }),
],

Also added the necessary attributes for the package to work, eg form-input, form-select ...

@luanfreitasdev this idea is so good, thanks


[Distributed-calculator] Got 400 error when I deployed to aks

I deployed the demo to aks according to the document guidelines, and it prompts 400 when I visit the calculator website. The error is as follows.

After analysis, check the daprd container log and find the error log:
2021-01-12T14:53:25.966648603Z time="2021-01-12T14:53:25.966545203Z" level=error msg="error getting secret: secrets \"redis\" is forbidden: User \"system:serviceaccount:dapr:default\" cannot get resource \"secrets\" in API group \"\" in the namespace \"dapr\"" app_id=multiplyapp instance=multiplyapp-56bcbdff6c-lm75n scope=dapr.runtime type=log ver=0.11.3
2021-01-12T14:53:25.969698819Z time="2021-01-12T14:53:25.969613018Z" level=warning msg="error initializing state store state.redis: redis store: error connecting to redis at redis-master:6379: NOAUTH Authentication required." app_id=multiplyapp instance=multiplyapp-56bcbdff6c-lm75n scope=dapr.runtime type=log ver=0.11.3

That's mean the default service account has no permission to the redis sceret (Which deploy by helm with bitnami/redis).
So I create a ClusterRoleBinding to solve the issue.
kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1beta1
metadata:
  name: admin
  annotations:
    rbac.authorization.kubernetes.io/autoupdate: "true"
roleRef:
  kind: ClusterRole
  name: cluster-admin
  apiGroup: rbac.authorization.k8s.io
subjects:
- kind: ServiceAccount
  name: default
  namespace: dapr

The purpose of writing this issue is to help beginners so as not to get into trouble, so I suggest to update the document and give relevant tips. I have created a PR for that.

Before we add this to the documentation, can you try this against the latest dapr runtime? It looks like you are using runtime version 0.11.3. Our master docs branch tracks the latest release candidate (1.0.0-rc.3) and I want to be sure this issue exists against the latest Dapr before we update the docs.

Also, for reference, which version of Kubernetes are you running?

My K8S server version is v1.18.10. I pull the latest 1.0.0-rc.3 code but get the same error. After creating ClusterRoleBinding it works again. You can see the detail information from screenshots.

@wcs1only Can you take a look at this again?

Closing as this is no longer an issue with this sample. This was fixed on the K8s deployment to include this role binding.


The noetic branch of moveit_tutorials is missing.

Hello. The noetic branch of moveit_tutorials is missing.

It's simply called master.

Ok thanks. But this page doesn't open correctly :https://ros-planning.github.io/moveit_tutorials/doc/perception_pipeline/perception_pipeline_tutorial.html

Noetic's tutorials are no longer available.
https://ros-planning.github.io/moveit_tutorials/

The tutorials have been migrated to https://moveit.github.io/moveit_tutorials

OK. Thanks.


Added Source Code of Git & GitHub Video Docs

Closes #45
Check List

[x] My code follows the code style of this project.
[x] This PR does not contain plagiarized content.
[x] The title of my pull request is a short description of the requested changes.

Screenshots

Hey @ManishBisht777, I removed that file can you please review it.


Share icon

Is your icon request related to a problem? Please describe.
In VS Code for Education, instructors will be asked to "share" a lesson to students that will be required to complete.
Describe the solution you'd like
I would like to have a standard share icon similar to what is used in Fluent
Additional context

Fixed in #214


Architecture Mbed IP integration

Problem
We don't know how to integrate Mbed's IP connectivity solution into CHIP.
Proposed Solution
Elaborate strategies based on results from #35 . These strategies must be displayed in the Wiki.

This is small but we've discussed it offline.
Thanks @ATmobica  https://github.com/ARMmbed/connectedhomeip/wiki/Mbed-IP-integration-with-CHIP . I'm closing this for this Sprint.


Changing Default Font & Size

Hi Paul,
I have been playing with this wonderful tool for a couple of days and have managed to get it working through FileMaker on Windows, which is not simple what with the interface being based in IE11! Anyway, I am stuck and unable to get the correct syntax to change the font on installation. Nowhere in the css seems to point to the font-family that is used, and having tried changing everything. Can you point me in the right direction please?
Many thanks
James

Hello James
You can try something like the below, it worked for me.
.jexcel {
  font-size: 9px;
  font-family: 'Courier New', Courier, monospace;
}

Oh my word - it's all in the syntax and knowing where to put it!
Thank you so much Rawand - you've saved me hours!!
http://www.storganise.co.uk/
If you think we are worth 5 stars on Google, Click Here http://search.google.com/local/writereview?placeid=ChIJM5bAf5N730cRsM2EPT58EO8 If not, please tell us how we can be.

On 16 Mar 2021, at 03:49, Rawand hawez @.***> wrote:
Hello James
You can try something like the below, it worked for me.
.jexcel {
font-size: 9px;
font-family: 'Courier New', Courier, monospace;
}
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub https://github.com/jspreadsheet/ce/issues/1342#issuecomment-799923425, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIX6UVOAZMO76FH2HTXHMRLTD3ILVANCNFSM4ZHGQ6YA.

Thanks


Request storage in batch

just for poc test

use storage multi-thread
https://github.com/vesoft-inc/nebula-storage/pull/503


[AUTO] [ RTI-15639 ] Update Dependencies

This is expected given rebar3_lint's recent update. Merging...