module 'inn' not found:

I tried to install
"luarocks install inn" but i found error
Installing https://raw.githubusercontent.com/torch/rocks/master/inn-1.0-0.rockspec...
Using https://raw.githubusercontent.com/torch/rocks/master/inn-1.0-0.rockspec... switching to 'build' mode
Cloning into 'imagine-nn'...
remote: Counting objects: 27, done.
remote: Compressing objects: 100% (25/25), done.
remote: Total 27 (delta 1), reused 9 (delta 0), pack-reused 0
Receiving objects: 100% (27/27), 15.26 KiB | 0 bytes/s, done.
Resolving deltas: 100% (1/1), done.
Checking connectivity... done.
cmake -E make_directory build;
cd build;
cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH="/home/stylabs/torch/install/bin/.." -DCMAKE_INSTALL_PREFIX="/home/stylabs/torch/install/lib/luarocks/rocks/inn/1.0-0";
make
-- The C compiler identification is GNU 5.4.0
-- The CXX compiler identification is GNU 5.4.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found Torch7 in /home/stylabs/torch/install
-- Found CUDA: /usr (found suitable version "7.5", minimum required is "6.5")
-- Compiling for CUDA architecture: 3.5
-- Configuring done
-- Generating done
-- Build files have been written to: /tmp/luarocks_inn-1.0-0-1407/imagine-nn/build
[ 33%] Building NVCC (Device) object CMakeFiles/inn.dir/inn_generated_ROIPooling.cu.o
/usr/include/string.h: In function ‘void* __mempcpy_inline(void*, const void*, size_t)’:
/usr/include/string.h:652:42: error: ‘memcpy’ was not declared in this scope
return (char *) memcpy (__dest, __src, __n) + __n;
^
CMake Error at inn_generated_ROIPooling.cu.o.cmake:267 (message):
Error generating file
/tmp/luarocks_inn-1.0-0-1407/imagine-nn/build/CMakeFiles/inn.dir//./inn_generated_ROIPooling.cu.o
CMakeFiles/inn.dir/build.make:70: recipe for target 'CMakeFiles/inn.dir/inn_generated_ROIPooling.cu.o' failed
make[2]: *** [CMakeFiles/inn.dir/inn_generated_ROIPooling.cu.o] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/inn.dir/all' failed
make[1]: *** [CMakeFiles/inn.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2
Error: Build error: Failed building.

that seems to be problem with inn rather the project itself. Are you using luarocks from torch repo or from the linux distro?

@paucarre yes. I install from torch repo and install with CUDA. I tried to install with inn repo but still its shows the same error.
Could please help.

which cuda version and gcc version are you using?
Keep in mind if you use GCC 5, you have to use CUDA 8.
take a look at https://github.com/BVLC/caffe/issues/4046

Closing the issue as it's not Tiefvision-related but rather inn.


Not possible to define fontFace with local()

Bug Report
I am trying to define @font-face with local():
  @font-face {
    font-family: MyHelvetica;
    src: local("Helvetica Neue Bold"), local("HelveticaNeue-Bold"),
        url(MgOpenModernaBold.ttf);
    font-weight: bold;
  }

It will not be properly handled if I will try to use paths and will cause infinite loop:
{
  name: "Segoe UI Local",
  paths: [
     'Segoe UI Light',
     'SegoeUI-Light',
     'Segoe WP Light',
   ],
}

The infinite loop will be caused because Fela in renderer.renderFont() expects files:

It must have one of the following file extensions: .woff, .woff2, .eof, .ttf or .svg

Workaround
We are passing font.style in this.topLevelFelaRenderer.renderFont(font.name, font.paths, font.style) so I can do this:
  {
    name: "Segoe UI Local",
    paths: [],
    style: {
      localAlias: [
        'Segoe UI Light',
        'SegoeUI-Light',
        'Segoe WP Light',
      ],
    }
  },

However, it will cause TS error Error:(8, 7) TS2322: Type 'string[]' is not assignable to type 'string'. because we expect plain strings in style.
Solution
Expose localAliases in FontFace type and pass it down Fela renderer.
Version
0.32.0

Blocking issue was fixed in<EMAIL_ADDRESS>https://github.com/rofrischmann/fela/issues/709


pluggable providers: textual summary for vm architecture

always display architecture if the records hardware has bitness
I'm not sure if this is really wanted from the UI perspective,
but we scan amazon and azure for hardware bitness too, so my
guess is, that was never displayed?
Another approach would be to explicitly say in the providers vm,
that it supports hardware bitness. But imho thats too much.
If it's there, then display it.

@miq-bot add_labels ui, providers
cc @dclarizio @blomquisg @martinpovolny @Ladas

lgtm :+1:

ok @martinpovolny thanks for the uncomplicated merge :smile:

@martinpovolny @durandom @blomquisg darga?


anvil fork: base fee from eth_feeHistory is inconsistent with block base fee after executing transaction

Component
Anvil
Have you ensured that all of these are up to date?

[X] Foundry
[X] Foundryup

What version of Foundry are you on?
forge 0.2.0 (8e7e0be 2022-11-24T00:13:02.397364Z)
What command(s) is the bug in?
No response
Operating System
macOS (Apple Silicon)
Describe the bug
Fork the mainnet:
anvil --fork-url <MAINNET_RPC_URL> --fork-block-number 16000000 --accounts 1

Retrieve base fee directly and via eth_feeHistory call:
cast block-number # 16000000
cast basefee #<PHONE_NUMBER>9
cast rpc eth_feeHistory '[1, "latest", []]' --raw # {"baseFeePerGas":["0x2976ca599","0x2ad7f734b"], ...}
cast to-base 0x2976ca599 10 #<PHONE_NUMBER>9

We see that they are consistent now.
Now, let's execute arbitrary transaction:
cast send 0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266 --value 1 \
    --private-key 0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80

Let's check base fees again:
cast block-number # 16000001
cast basefee #<PHONE_NUMBER>7
cast rpc eth_feeHistory '[1, "latest", []]' --raw # {"baseFeePerGas":["0x257ee3ab8","0x20d0b53dc"], ...}
cast to-base 0x257ee3ab8 10 #<PHONE_NUMBER>4

Numbers are no longer consistent: output from basefee command is exactly the base fee of mainnet block 16000001, while output from eth_feeHistory seems to be the actual result of base fee calculation for a new block containing only a single transaction that we sent.
The unfortunate consequence is that if gas price oracle relies on eth_feeHistory, we might send underpriced transactions (which happened to me).

perhaps there's a off-by-one error since<PHONE_NUMBER>4 is cast basefee --block pending?
Tbh I'm having a hard time to make sense of the eth_feeHistory docs

BASEFEEPERGAS: An array of block base costs for each gas. This includes returning the next block after the latest block in the range, as this value can be derived from the latest block.

In eth_feeHistory, baseFeePerGas is an array of base fees for each block in requested range (determined by blockCount and newestBlock params) as well as of the next block after newestBlock, which is a function of baseFee and gasUsedRatio of the latter:
$$
\text{base fee}_{n+1} = \text{base fee}_n \left( 1 + 0.125  \cdot \frac{\text{ratio}_n - 0.5}{0.5} \right)
$$
I believe cast basefee is completely correct:

in the block 16000001 base fee is known to be<PHONE_NUMBER>7
in the pending block, by the formula above with $\text{base fee}_n$ equal to<PHONE_NUMBER>7 and $\text{ratio}_n$ equal to 0.0007 (21K gas of our transfer tx / 30M block gas limit), it is precisely<PHONE_NUMBER>4

So must be something with eth_feeHistory.

Not sure if helpful, but I've just discovered one more thing it does not as expected:
(run Anvil as before)
# call eth_feeHistory for 3 blocks -- notice 4 values in baseFeePerGas
cast rpc eth_feeHistory '[3, "latest", []]' --raw # {"baseFeePerGas":["0x2c93e3533","0x2a1e15147","0x2976ca599","0x2ad7f734b"], ...}

# execute a tx
cast send 0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266 --value 1 \
    --private-key 0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80

# call eth_feeHistory for 3 blocks again -- this time, only 2 values
cast rpc eth_feeHistory '[3, "latest", []]' --raw # {"baseFeePerGas":["0x257ee3ab8","0x20d0b53dc"], ...}

Examined how eth_feeHistory is implemented in Anvil.
When forking, fee_history output is either the result of fork's eth_feeHistory if newestBlock <= forkBlock, or the result of computation based on fee history cache (which in the example above is made of a single tx) otherwise.
This behaviour breaks if oldestBlock <= forkBlock <= newestBlock, and in this case an ideal behavior would be to "concat" the results of fork's fee history for blocks oldestBlock..forkBlock and cache-based calculations for the rest.

This behaviour breaks if oldestBlock <= forkBlock <= newestBlock, and in this case an ideal behavior would be to "concat" the results of fork's fee history for blocks oldestBlock..forkBlock and cache-based calculations for the rest.

this sounds right, I guess this could be fixed by requesting the missing entries.

When forking, fee_history output is either the result of fork's eth_feeHistory if newestBlock <= forkBlock, or the result of computation based on fee history cache (which in the example above is made of a single tx) otherwise.

this is how it's implemented. But what's wrong?

But what's wrong?

Pre-fork, everything is correct. Post-fork, the problem is that the function considers only fee history cache, which is formed purely from transactions sent to the Anvil node, and is thus unaware of any fee history data from the forked chain. So when the requested range happens to contain both pre-fork and post-fork blocks, the result is wrong simply by not having all the input data needed for correct computation.


feat: add GitHub Codespaces support

Signed-off-by: Berry Phillips<EMAIL_ADDRESS>Closes #2216
The configs are auto-generated by Visual Studio Code and I have added additional configuration to support the basic needs of this repository. I added a section in the FAQ for this. I don't know if that's the best place or if there should be a dedicated doc for this 🤷🏻♂
Testing
Spin up a new Codespace from my branch and ensure the following:

Visual Studio Code loads without errors or warnings
The dagger and cue commands are available in the terminal and are the correct versions (dagger should be compiled from the branch source and cue should be the same version as specified in go.mod)
.cue files have syntax highlighting and can be auto formatted
You can run dagger commands that interact with buildkit

Thanks for the comments, I'll get those fixed.

Just a quick comment : do not forget to also prefix your commit with ˋfeat` so it will be correctly handle by the Changelog

Looks like this is missing from the live contribution docs for commit messages.

And last thing, is there a way to automatically test .devcontainer? I saw you manually tested but we should find a way to verify with an action or something

One thing we can do is to build and run the container that it uses (there is a Dockerfile), which is pretty heavy but if that test only runs against main then that shouldn't be an issue. I'll look into further possibilities.

Added CI job to Build the Codespaces image and run the post-install script. Tried to use a schema validator for the config file devcontainer.json but it's not possible with the schema MS generates.

Did you manage to try this out @helderco? I am curious to try it out myself.

Did you manage to try this out @helderco? I am curious to try it out myself.

Not yet, but I want to!

:wave: just tried this and it works perfect. I think we should definitely merge it!

@berryp what a coincidence that we are  both working on it this sunday after a few days of being stale :raised_hands: . Thx for fixing the conflicts and apologize for taking some time to merge.

@helderco @gerhard @jpadams this LGTM! Lets merge as soon as someone else approves :pray:


ERROR: Cannot read property 'reduce' of undefined

Node version: 10.21.0
Sequelize version: 6.6.2
bluebird version: 3.7.2
I am getting this error when I use the .allows() method while running seeders. Anyone else facing the same issue?

Hey @anirudh-addepalli have get any fix for this. I am facing same issue.

you can use following library that works fine for me
acl-sequelize-backend


[Bug]: reverse_ image_ Search cannot run in an offline environment

Is there an existing issue for this?

[X] I have searched the existing issues

Current Behavior
when I follow
https://github.com/milvus-io/bootcamp/tree/v2.0.2/solutions/reverse_image_search/quick_deploy
Option 2: Deploy with source code
When I upload pictures for indexing, Python src/main.py has the following error:
_```
[root@localhost src]# python3 main.py
/usr/local/python3/lib/python3.8/site-packages/pandas/compat/init.py:124: UserWarning: Could not import the lzma module. Your installed Python is incomplete. Attempting to use lzma compression will result in a RuntimeError.
warnings.warn(msg)
2022-07-07 15:07:44,036 -<PHONE_NUMBER>60064 - milvus_helpers.py-milvus_helpers:19 - DEBUG: Successfully connect to Milvus with IP:<IP_ADDRESS> and PORT:19530
2022-07-07 15:07:44,051 -<PHONE_NUMBER>60064 - selector_events.py-selector_events:59 - DEBUG: Using selector: EpollSelector
INFO:     Started server process [20602]
2022-07-07 15:07:44,066 -<PHONE_NUMBER>60064 - server.py-server:64 - INFO: Started server process [20602]
2022-07-07 15:07:44,066 ｜ INFO ｜ server.py ｜ serve ｜ 64 ｜ Started server process [20602]
INFO:     Waiting for application startup.
2022-07-07 15:07:44,066 -<PHONE_NUMBER>60064 - on.py-on:26 - INFO: Waiting for application startup.
2022-07-07 15:07:44,066 ｜ INFO ｜ on.py ｜ startup ｜ 26 ｜ Waiting for application startup.
INFO:     Application startup complete.
2022-07-07 15:07:44,067 -<PHONE_NUMBER>60064 - on.py-on:38 - INFO: Application startup complete.
2022-07-07 15:07:44,067 ｜ INFO ｜ on.py ｜ startup ｜ 38 ｜ Application startup complete.
INFO:     Uvicorn running on http://<IP_ADDRESS>:5000 (Press CTRL+C to quit)
2022-07-07 15:07:44,067 -<PHONE_NUMBER>60064 - server.py-server:199 - INFO: Uvicorn running on http://<IP_ADDRESS>:5000 (Press CTRL+C to quit)
2022-07-07 15:07:44,067 ｜ INFO ｜ server.py ｜ _log_started_message ｜ 199 ｜ Uvicorn running on http://<IP_ADDRESS>:5000 (Press CTRL+C to quit)
2022-07-07 15:08:04,083 -<PHONE_NUMBER>60064 - milvus_helpers.py-milvus_helpers:121 - DEBUG: Successfully get the num:0 of the collection:milvus_img_search
2022-07-07 15:08:04,084 -<PHONE_NUMBER>60064 - main.py-main:125 - INFO: Successfully count the number of images!
2022-07-07 15:08:04,084 ｜ INFO ｜ main.py ｜ count_images ｜ 125 ｜ Successfully count the number of images!
INFO:     <IP_ADDRESS>:51662 - "POST /img/count HTTP/1.1" 200 OK
INFO:     <IP_ADDRESS>:51681 - "OPTIONS /img/load HTTP/1.1" 200 OK
--------------------resnet50_extract_feat 111-----------------------------
2022-07-07 15:12:06,351 -<PHONE_NUMBER>60064 - connectionpool.py-connectionpool:1001 - DEBUG: Starting new HTTPS connection (1): towhee.io:443
2022-07-07 15:12:06,353 -<PHONE_NUMBER>60064 - load.py-load:37 - ERROR: Error with extracting feature from image HTTPSConnectionPool(host='towhee.io', port=443): Max retries exceeded with url: /api/v1/repos/towhee/image-decode (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f273c1a5fd0>: Failed to establish a new connection: [Errno 111] Connection refused'))
2022-07-07 15:12:06,353 ｜ ERROR ｜ load.py ｜ extract_features ｜ 37 ｜ Error with extracting feature from image HTTPSConnectionPool(host='towhee.io', port=443): Max retries exceeded with url: /api/v1/repos/towhee/image-decode (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f273c1a5fd0>: Failed to establish a new connection: [Errno 111] Connection refused'))
--------------------resnet50_extract_feat 111-----------------------------
2022-07-07 15:12:06,357 -<PHONE_NUMBER>60064 - connectionpool.py-connectionpool:1001 - DEBUG: Starting new HTTPS connection (1): towhee.io:443
2022-07-07 15:12:06,358 -<PHONE_NUMBER>60064 - load.py-load:37 - ERROR: Error with extracting feature from image HTTPSConnectionPool(host='towhee.io', port=443): Max retries exceeded with url: /api/v1/repos/towhee/image-decode (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f273c1d6af0>: Failed to establish a new connection: [Errno 111] Connection refused'))
2022-07-07 15:12:06,358 ｜ ERROR ｜ load.py ｜ extract_features ｜ 37 ｜ Error with extracting feature from image HTTPSConnectionPool(host='towhee.io', port=443): Max retries exceeded with url: /api/v1/repos/towhee/image-decode (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f273c1d6af0>: Failed to establish a new connection: [Errno 111] Connection refused'))
--------------------resnet50_extract_feat 111-----------------------------
2022-07-07 15:12:06,362 -<PHONE_NUMBER>60064 - connectionpool.py-connectionpool:1001 - DEBUG: Starting new HTTPS connection (1): towhee.io:443
2022-07-07 15:12:06,363 -<PHONE_NUMBER>60064 - load.py-load:37 - ERROR: Error with extracting feature from image HTTPSConnectionPool(host='towhee.io', port=443): Max retries exceeded with url: /api/v1/repos/towhee/image-decode (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f273c1d6700>: Failed to establish a new connection: [Errno 111] Connection refused'))
2022-07-07 15:12:06,363 ｜ ERROR ｜ load.py ｜ extract_features ｜ 37 ｜ Error with extracting feature from image HTTPSConnectionPool(host='towhee.io', port=443): Max retries exceeded with url: /api/v1/repos/towhee/image-decode (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f273c1d6700>: Failed to establish a new connection: [Errno 111] Connection refused'))
2022-07-07 15:12:06,382 -<PHONE_NUMBER>60064 - milvus_helpers.py-milvus_helpers:72 - ERROR: Failed to load data to Milvus: list index out of range
2022-07-07 15:12:06,382 ｜ ERROR ｜ milvus_helpers.py ｜ insert ｜ 72 ｜ Failed to load data to Milvus: list index out of range
ERROR:    Exception in ASGI application
Traceback (most recent call last):
File "/data/milvus/bootcamp/solutions/reverse_image_search/quick_deploy/server/src/milvus_helpers.py", line 65, in insert
mr = self.collection.insert(data)
File "/usr/local/python3/lib/python3.8/site-packages/pymilvus/orm/collection.py", line 528, in insert
if not self._check_insert_data_schema(data):
File "/usr/local/python3/lib/python3.8/site-packages/pymilvus/orm/collection.py", line 179, in _check_insert_data_schema
infer_fields = parse_fields_from_data(data)
File "/usr/local/python3/lib/python3.8/site-packages/pymilvus/orm/schema.py", line 296, in parse_fields_from_data
d_type = infer_dtype_bydata(d[0])
IndexError: list index out of range
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/python3/lib/python3.8/site-packages/uvicorn/protocols/http/h11_impl.py", line 396, in run_asgi
result = await app(self.scope, self.receive, self.send)
File "/usr/local/python3/lib/python3.8/site-packages/uvicorn/middleware/proxy_headers.py", line 45, in call
return await self.app(scope, receive, send)
File "/usr/local/python3/lib/python3.8/site-packages/fastapi/applications.py", line 269, in call
await super().call(scope, receive, send)
File "/usr/local/python3/lib/python3.8/site-packages/starlette/applications.py", line 124, in call
await self.middleware_stack(scope, receive, send)
File "/usr/local/python3/lib/python3.8/site-packages/starlette/middleware/errors.py", line 162, in call
await self.app(scope, receive, _send)
File "/usr/local/python3/lib/python3.8/site-packages/starlette/middleware/cors.py", line 92, in call
await self.simple_response(scope, receive, send, request_headers=headers)
File "/usr/local/python3/lib/python3.8/site-packages/starlette/middleware/cors.py", line 147, in simple_response
await self.app(scope, receive, send)
File "/usr/local/python3/lib/python3.8/site-packages/starlette/exceptions.py", line 82, in call
await self.app(scope, receive, sender)
File "/usr/local/python3/lib/python3.8/site-packages/fastapi/middleware/asyncexitstack.py", line 18, in call
await self.app(scope, receive, send)
File "/usr/local/python3/lib/python3.8/site-packages/starlette/routing.py", line 670, in call
await route.handle(scope, receive, send)
File "/usr/local/python3/lib/python3.8/site-packages/starlette/routing.py", line 266, in handle
await self.app(scope, receive, send)
File "/usr/local/python3/lib/python3.8/site-packages/starlette/routing.py", line 65, in app
response = await func(request)
File "/usr/local/python3/lib/python3.8/site-packages/fastapi/routing.py", line 227, in app
raw_response = await run_endpoint_function(
File "/usr/local/python3/lib/python3.8/site-packages/fastapi/routing.py", line 160, in run_endpoint_function
return await dependant.call(**values)
File "main.py", line 70, in load_images
total_num = do_load(item.Table, item.File, MODEL, MILVUS_CLI, MYSQL_CLI)
File "/data/milvus/bootcamp/solutions/reverse_image_search/quick_deploy/server/src/operations/load.py", line 59, in do_load
ids = milvus_client.insert(table_name, vectors)
File "/data/milvus/bootcamp/solutions/reverse_image_search/quick_deploy/server/src/milvus_helpers.py", line 73, in insert
sys.exit(1)
SystemExit: 1
2022-07-07 15:12:06,382 -<PHONE_NUMBER>60064 - h11_impl.py-h11_impl:399 - ERROR: Exception in ASGI application
Traceback (most recent call last):
File "/data/milvus/bootcamp/solutions/reverse_image_search/quick_deploy/server/src/milvus_helpers.py", line 65, in insert
mr = self.collection.insert(data)
File "/usr/local/python3/lib/python3.8/site-packages/pymilvus/orm/collection.py", line 528, in insert
if not self._check_insert_data_schema(data):
File "/usr/local/python3/lib/python3.8/site-packages/pymilvus/orm/collection.py", line 179, in _check_insert_data_schema
infer_fields = parse_fields_from_data(data)
File "/usr/local/python3/lib/python3.8/site-packages/pymilvus/orm/schema.py", line 296, in parse_fields_from_data
d_type = infer_dtype_bydata(d[0])
IndexError: list index out of range

@shiyu22 Could you please have a look? Thanks.

Hi @2132660698 I think this is caused by the failure to download the operator in hub. If you are in offline environment , can you download the towhee operator and python dependencies of reverse image search first?
For example in the encode process, it will use this pipeline to deal with the image data:
feat = towhee.glob(img_path) \
                .image_decode() \
                .image_embedding.timm(model_name='resnet50') \
                .to_list()

So you need to download the image_decode and image_embedding.timm op to ~/.towhee, and install the requirements.txt om the repo. I think you can run the above code on another machine and copy the whole ~/.towhee folder.
Another suggestion is that you can run this solution with docker method, then you can use docker cp <container id>:~/.towhee . to get the file, of course you can get the python environment too.

It's OK,Thanks!


"Abornal data. Please uninstall the game and download it from the official channel"

Like the title says, I've installed, ran this program and the moment I hit "Play" I get :
"Abornal data. Please uninstall the game and download it from the official channel"
Had to reinstall the game afterwards.

This is normal and can happen sometimes - it isn't always related to the FPS unlocker, more enough corrupt files.

I did indeed made a folder and put the file inside as was instructed in the YT video I've watched that lead me to this post.


Alerts smtp

alerts_smtp.py server plugin file required for testing
This plugin is a copy of clockwork_sms alert plugin, only switched to use the smtp2go api.

I'd like the plugin to be renamed to alerts_email_via_smtp2go so we keep it with the alerts_{{ type }}_via_{{ how }} syntax. Should stand by though for additional review comments.

Well testing this didn't go well. First I get an exception that user has no attribute email. I'm pretty sure you meant email_address so I changed it to that. Now however I'm getting a different exception:
AttributeError: 'Smtp2goResponse' object has no attribute 'error_code'

That was my bad. Yes, user.email should be user.email_address
the smtp2go response was not handled correctly because it returns a list rather than individual error, error_code, and status as the clockwork_sms API did, which was a bad check on my part.
This is working now and the requests are behind handled. SMTP2go setup must take place for further testing to occur.

There was an issue where the recipients needed to be defined as a list. I fixed that in commit 78f25a6d59651536dcdfd8d58cca71a1a816e32a and then got this merged. Thanks @True-Demon!


AutoPr-Billing-asarkar84-REST Spec PrNumber 5546

@wilcobmsft is this good to be merged or would you like to open a PR manually

@dsgouda Go for it.


Generate BIF files in parallel

I have a pretty big library and even with hardware acceleration it's taking some time to plough through all those files and generate the BIF files. I think it could be nice to generate multiple BIF files simulatenously or at least generate multiple sizes per media file simulatenously.
How would you feel about making it possible to do parallel generation and make it a configurable option?

My only concern with this is that ffmpeg already trys to maximize hardware usage like cores and threads and by default will put the cpu to 80-100%. Using HW accel also put my gpu decode to 100%. So if another generation task is added I wonder if it wouldn't end up doing two times the work at half the speed leading to no improvement.
It's worth doing some actual tests but I'm not sure if it's something that will be beneficial.

That is fair. It's also only really an issue for me currently because my library is pretty large and I'm starting from 0%>
When doing software decoding it'll mostly utilise my CPU, which'll sit at around 80%. So notuch headroom.
With HW acceleration though it's only utilising 3% of my GPU. Which is why I figured I'd have headroom to do parallel work. I also use a Quadro card so I think that allows for more parallel encode/decode tasks compared to consumer cards without a driver patch.
I was tempted to generate the files in parallel myself but didn't want to store them in my media directory and I'm not sure how Jellyfin maps the video files to the internal metadata directory. I guessed it was probably something like an md5 or sha1 sum on the file path or just the file name but I couldn't figure out exactly how it does it.
On 16 Feb 2023, 18:41 +0000, Nick @.***>, wrote:

My only concern with this is that ffmpeg already trys to maximize hardware usage like cores and threads and by default will put the cpu to 80-100%. Using HW accel also put my gpu decode to 100%. So if another generation task is added I wonder if it wouldn't end up doing two times the work at half the speed leading to no improvement.
It's worth doing some actual tests but I'm not sure if it's something that will be beneficial.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: @.***>

Oh yeah if it's only doing 3% GPU maybe it could work out for you. I don't have the hardware to test, but if you want to look into it jellyfin metadata is structured like this:
Given a media ID of 92716b0f099f417b92a57549103eb609 the metadata will be stored in {jellyfin_config}/metadata/92/92716b0f099f417b92a57549103eb609/. So it's just the first two numbers of the ID jellyfin generates for that media then another folder using the full ID.

How does it generate and map the ID though? The bit I struggled on was a simple way of putting the manually generated files in the right directory.
I figured I'd have to either do an API lookup on the media file or use the media file to generate the ID, like using an md5sum or sha1sum. But wasn't sure exactly how that ID is generated or mapped. I had a brief look in the sqlite databases too but also didn't find any instantly recognisable references to mapping a media file to a specific ID.

I think it's a GUID generated from a .net internal library, so I don't think they're predictable from the source file.
If you have Visual Studio you could change private static readonly SemaphoreSlim BifWriterSemaphore = new SemaphoreSlim(1, 1); in VideoProcessor to ```new SemaphoreSlim(3, 3)`` for 3 concurrent streams. The only problem is that VideoProcessor is not setup in a very multi-threaded friendly way as target media is not queued, but rather a new instance of the object is made that waits on this semaphore. This means that if two duplicate media were to run at the same time they could end up generating and trying to write to the same bif file at the same time.
Also, the media encoder used to spawn ffmpeg processes, OldMediaEncoder, is limited to one process at a time, so multiple resolutions would not generate simultaneously without changing that too.
If you could do a PoC where you copy the ffmpeg extraction command and then run three parallel processes on the same file (changing the output folder for each), on your card they should all finish around the same time. If that were the case I'd be happy to look into getting the code working multi-threaded.

Thanks.
I'll have a tinker tomorrow or over the weekend.
On 16 Feb 2023, 19:47 +0000, Nick @.***>, wrote:

I think it's a GUID generated from a .net internal library, so I don't think they're predictable from the source file.
If you have Visual Studio you could change private static readonly SemaphoreSlim BifWriterSemaphore = new SemaphoreSlim(1, 1); in VideoProcessor to ```new SemaphoreSlim(3, 3)`` for 3 concurrent streams. The only problem is that VideoProcessor is not setup in a very multi-threaded friendly way as target media is not queued, but rather a new instance of the object is made that waits on this semaphore. This means that if two duplicate media were to run at the same time they could end up generating and trying to write to the same bif file at the same time.
Also, the media encoder used to spawn ffmpeg processes, OldMediaEncoder, is limited to one process at a time, so multiple resolutions would not generate simultaneously without changing that too.
If you could do a PoC where you copy the ffmpeg extraction command and then run three parallel processes on the same file (changing the output folder for each), on your card they should all finish around the same time. If that were the case I'd be happy to look into getting the code working multi-threaded.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: @.***>

From my observation only one video core is used on QSV, while newer Intel IGPU's have 2.
Running a second ffmpeg process would probably run it on both.
Still I would not bother with that, just let it run for a couple of days, mine took 2.5 days with hardware acceleration on 700 movies.

Another solution could be to use multiple gpus. I do this with my script that I made to generate bifs. It can cut down generation time, just make sure the script isn't running on the same directories or it can cause conflicts.

So @nicknsy, I did a few tests.
For these tests I used remuxed bluray TV episodes that are about 58 minutes in length.
By remux I mean they are basically straight rips from the bluray in to an MKV container,
so they are the same size and with the same encoding (h264 Main10) as they have on the disc.
2 of the episodes are 25Gb in size, the other is 18Gb in size.
This one is just a baseline - generating a set of 320px images from a single video file:
GPU usage:
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 515.48.07    Driver Version: 515.48.07    CUDA Version: 11.7     |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|                               |                      |               MIG M. |
|===============================+======================+======================|
|   0  Quadro P2000        Off  | 00000000:01:00.0 Off |                  N/A |
| 51%   41C    P0    26W /  75W |    615MiB /  5120MiB |      9%      Default |
|                               |                      |                  N/A |
+-------------------------------+----------------------+----------------------+

+-----------------------------------------------------------------------------+
| Processes:                                                                  |
|  GPU   GI   CI        PID   Type   Process name                  GPU Memory |
|        ID   ID                                                   Usage      |
|=============================================================================|
|    0   N/A  N/A     15705      C   ...ib/jellyfin-ffmpeg/ffmpeg      611MiB |
+-----------------------------------------------------------------------------+

Time taken:
real    6m41.168s
user    0m57.486s
sys     0m11.421s

This one takes that same remuxed bluray episode and generates 320px and 640px images in parallel using GPU decoding:
GPU usage:
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 515.48.07    Driver Version: 515.48.07    CUDA Version: 11.7     |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|                               |                      |               MIG M. |
|===============================+======================+======================|
|   0  Quadro P2000        Off  | 00000000:01:00.0 Off |                  N/A |
| 52%   43C    P0    26W /  75W |   1226MiB /  5120MiB |      9%      Default |
|                               |                      |                  N/A |
+-------------------------------+----------------------+----------------------+

+-----------------------------------------------------------------------------+
| Processes:                                                                  |
|  GPU   GI   CI        PID   Type   Process name                  GPU Memory |
|        ID   ID                                                   Usage      |
|=============================================================================|
|    0   N/A  N/A     24546      C   ...ib/jellyfin-ffmpeg/ffmpeg      611MiB |
|    0   N/A  N/A     24547      C   ...ib/jellyfin-ffmpeg/ffmpeg      611MiB |
+-----------------------------------------------------------------------------+

Time taken:
real    13m23.880s
user    1m2.782s
sys     0m14.604s

real    13m23.893s
user    1m2.160s
sys     0m15.775s

And this final one takes 3 remuxed bluray episodes and generates 320px images in parallel:
GPU usage:
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 515.48.07    Driver Version: 515.48.07    CUDA Version: 11.7     |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|                               |                      |               MIG M. |
|===============================+======================+======================|
|   0  Quadro P2000        Off  | 00000000:01:00.0 Off |                  N/A |
| 57%   54C    P0    25W /  75W |   1837MiB /  5120MiB |     10%      Default |
|                               |                      |                  N/A |
+-------------------------------+----------------------+----------------------+

+-----------------------------------------------------------------------------+
| Processes:                                                                  |
|  GPU   GI   CI        PID   Type   Process name                  GPU Memory |
|        ID   ID                                                   Usage      |
|=============================================================================|
|    0   N/A  N/A      1735      C   ...ib/jellyfin-ffmpeg/ffmpeg      611MiB |
|    0   N/A  N/A      1738      C   ...ib/jellyfin-ffmpeg/ffmpeg      611MiB |
|    0   N/A  N/A      1741      C   ...ib/jellyfin-ffmpeg/ffmpeg      611MiB |
+-----------------------------------------------------------------------------+

Time taken:
real    15m32.133s
user    0m49.414s
sys     0m15.247s

real    17m39.238s
user    1m0.021s
sys     0m19.074s

real    18m5.899s
user    1m5.027s
sys     0m18.635s

I think what this shows is there is some benefit to running multiple hardware accelerated decodes in parallel, but nowhere near as much as I was expecting.
I'm unsure why too, since you can see it's not an issue of power, GPU utilisation, or GPU memory.

Very interesting results! Thank you for taking the time to do this.
It shows almost no benefit, but also the gpu utilization goes from 9% with one process to 10% with three, which would seem to indicate that it's only using a single streaming multiprocessor.
Could you post the ffmpeg command you used for the three process test? If you run the command again removing any -threads arguments does it change anything?

That utilisation value fluctuates, that was me just grabbing it during the runs. I was watching it with the watch command throughout. It'd bounce from 8-12%.
As for the ffmpeg command, it is the exact same command that the Jellyfin plugin uses, just grabbed from the log with the file path changed. All I did was wrap it using find /path/ -type f -name '*.mkv' | while read f and then used $f as the input file and as part of the output path.
I can try it again later, removing the threads argument sure.

@nicknsy I tried it without the -thread arguments, no difference. Here it's even more apparent how bad this approach is.
I did these runs with a smaller file (7Gb anime remux).
1 decode
real    1m32.774s
user    0m19.473s
sys     0m4.379s

3 parallel decodes
real    4m38.486s
user    0m22.372s
sys     0m6.441s

real    4m38.565s
user    0m22.499s
sys     0m6.294s

real    4m38.571s
user    0m22.518s
sys     0m6.328s

Script
Note: this sort of cheats a little, it uses the same file to decode with to make things a bit easier.
#!/bin/bash
if [[ "$#" -ne "1" ]]
then
  echo "Usage: trickplay.sh <number_of_parallel_runs>"
  exit
fi

i=1
while true
do
  if [[ "$i" -gt "$1" ]]
  then
    break
  fi

  mkdir "/media/__temporary_content/$i"
  time /usr/lib/jellyfin-ffmpeg/ffmpeg \
   -loglevel error \
   -init_hw_device cuda=cu:0 \
   -filter_hw_device cu \
   -hwaccel cuda \
   -hwaccel_output_format cuda \
   -autorotate 0 \
   -i file:"/media/__temporary_content/filename.mkv" \
   -autoscale 0 \
   -an \
   -sn \
   -vf "fps=1/10,setparams=color_primaries=bt709:color_trc=bt709:colorspace=bt709,scale_cuda=w=640:h=360:format=yuv420p,hwdownload,format=yuv420p" \
   -c:v mjpeg \
   -f image2 \
   "/media/__temporary_content/$i/img_%08d.jpg" &

  i=$((i+1))
done

Is the GPU urilization still the same with the threads not set?

Yep. With this source file it doesn't breach 3% utilisation no matter if it's a single process or 3 in parallel.

Damn. I'm really not knowledgeable enough about HWA to know why that would be the case, but I appreciate you testing all this. Maybe ffmpeg treats no threads differently with the GPU.

No worries, I have a couple of thoughts on some more things I want to test out just for the hell of it now.
My library is now at nearly 20% so only another 8 days or so to go, now this is more of a curiosity for me than anything else.

I tried a few things over lunch, rewrote the ffmpeg command to be much simpler, using nv12 rather than yuv420p and none of it helped. I wanted to try using npp for scaling but I think the version of jellyfin-ffmpeg might not be built with npp support because despite having those libraries on the system scale_npp was still not listed as an available filter. ¯\_(ツ)_/¯


Timeouts on git.savannah.gnu.org. Unable to bootstrap my configuration

I'm getting
$ cd /home/sho/.emacs.d/straight/repos/
$ git clone --origin origin --no-checkout https\://git.savannah.gnu.org/git/emacs/nongnu.git /home/sho/.emacs.d/straight/repos/nongnu-elpa/ --single-branch

Cloning into '/home/sho/.emacs.d/straight/repos/nongnu-elpa'...
fatal: unable to access 'https://git.savannah.gnu.org/git/emacs/nongnu.git/': Failed to connect to git.savannah.gnu.org port 443 after 135866 ms: Could not connect to server

After brief research it seems that gnu.org is down for few month now. Is there a way to install straight.el without using gnu package repositories?

After brief research it seems that gnu.org is down for few month now

There have been several intermittent outages, but it has been up the majority of the time.
Here is where the FSF posts out of band updates:
https://hostux.social/@fsfstatus
As you can see, they've had a data center issue recently.
It's already being resolved.

Is there a way to install straight.el without using gnu package repositories?

That would involve addressing this:
https://github.com/radian-software/straight.el/blob/88e574ae75344e39b436f863ef0344135c7b6517/bootstrap.el#L109-L154

Thanks, it's been back again I can confirm now. I ended up just rsync-ed my config folder from my other machine which worked like a charm.


lxd/backup: Fix URL in lifecycle events

Signed-off-by: Stéphane Graber<EMAIL_ADDRESS>

As noticed during the 4.9 live stream, name is using the instance/backup syntax so we need to split it up the same we do for snapshots.

@tomponline good to go (red is caused by go-qmp)


Hash Sum mismatch when updating ubuntu-trusty. Started happening with v0.2.0

I tried the command below.
~/Dev/workspace/lattice (9eb76b1 ✔) ᐅ vagrant up --provider virtualbox
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Importing base box 'lattice/ubuntu-trusty-64'...
==> default: Matching MAC address for NAT networking...
==> default: Checking if box 'lattice/ubuntu-trusty-64' is up to date...
==> default: Setting the name of the VM: lattice_default_1426650570571_26450
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
default: Adapter 1: nat
default: Adapter 2: hostonly
==> default: Forwarding ports...
default: 22 => 2222 (adapter 1)
==> default: Booting VM...
==> default: Waiting for machine to boot. This may take a few minutes...
default: SSH address: <IP_ADDRESS>:2222
default: SSH username: vagrant
default: SSH auth method: private key
default: Warning: Remote connection disconnect. Retrying...
default:
default: Vagrant insecure key detected. Vagrant will automatically replace
default: this with a newly generated keypair for better security.
default:
default: Inserting generated public key within guest...
default: Removing insecure key from the guest if its present...
default: Key inserted!  They have been ignored, or old ones used instead.
The SSH command responded with a non-zero exit status. Vagrant
assumes that this means the command failed. The output for this command
should be in the log above. Please read the output to determine what
went wrong.

Looks like a trusty package failed to download - can you try again?  This is likely a transient fluke.

I just tried again and same thing happened. I also changed the branch to an older one that used to work (v0.2.0-rc.2-11-g5d70cfe) with me. But now I am getting Hash sum mismatch errors as well.
Wondering, if I can bypass these steps because I am getting
Error verifying target: Get http://receptor.<IP_ADDRESS>.xip.io/v1/desired_lrps: dial tcp <IP_ADDRESS>:80: connection refused
When trying to set the target : ltc target <IP_ADDRESS>.xip.io

@caxqueiroz Are you behind a network proxy or have anything that might be caching web requests?  We attempted to reproduce the problem you describe and wasn't able to -- we see this occasionally on our CI system and re-running the vagrant up redownloads the packages list with no issue.  I did some searching on the hash sum mismatch error and found:
http://askubuntu.com/questions/41605/trouble-downloading-packages-list-due-to-a-hash-sum-mismatch-error
There is also a comment on the page talking about using US repositories internationally (assuming you're located in Australia).  There is a recommendation to use local repositories instead (e.g., switching http://us.archive.ubuntu.com/ubuntu/ to http://au.archive.ubuntu.com/ubuntu/ in /etc/apt/sources.list), but that would require re-compiling lattice to install..
We are discussing moving package installs from the on-boot install script to the vagrant box image / AMI as a long-term fix

Hi David,
I've tested it using a VPN and I didn't have any problem. Definitely something going on with my connection.
I will close this issue as it is not related with lattice itself.

Thanks!  You can monitor https://www.pivotaltracker.com/story/show/90623714 to see when we implement the long-term "fix", it's not scheduled presently but hope to get to it in the next few weeks.


Cant find module

Hi, im trying to register a plugin in vue like this:
Vue.registerElement('YoutubePlayer',
() => require('@triniwiz/nativescript-youtubeplayer').YoutubePlayer)
getting an error:
ERROR in ./app.js
Module not found: Error: Can't resolve '@triniwiz/nativescript-youtubeplayer'
what im doing wrong?

Seems like there was a build issue publishing a new build

Done 4.0.3 should be good to go

closed with https://github.com/triniwiz/nativescript-plugins/commit/745a08711ae9fe1af3536a746b851e08440714a3


⚠ SceneTime has degraded performance

In e2b52f9, SceneTime ($ST) experienced degraded performance:

HTTP code: 200
Response time: 1388 ms

Resolved: SceneTime performance has improved in c56d75c after 7 minutes.


Correction for raw affiliation Department of International Studies and Consultancy, Aeres University of Applied Sciences, Dronten, the Netherlands; School of Physics, Engineering, and Computer Science, University of Hertfordshire, Hatfield, United Kingdom

Correction needed for raw affiliation Department of International Studies and Consultancy, Aeres University of Applied Sciences, Dronten, the Netherlands; School of Physics, Engineering, and Computer Science, University of Hertfordshire, Hatfield, United Kingdom
raw_affiliation_name: Department of International Studies and Consultancy, Aeres University of Applied Sciences, Dronten, the Netherlands; School of Physics, Engineering, and Computer Science, University of Hertfordshire, Hatfield, United Kingdom
new_rors: 03jnx2c74;0267vjk41
previous_rors: 015d5s513;0267vjk41
works_examples: W4388202699
contact: 24a48086942af08fbb9a3d80bfd437c9:871858b6a4b11b4a8222 @ hotmail.com

This issue was accepted and ingested by the OpenAlex team on 2024-10-10. The new affiliations should be visible within the next 7 days.


name 'gui' is not defined

hi, thanks for your great work!
when running python main.py with guiOn = True in config.py, i encouter an error "name 'gui' is not defined", could you please help me?

sorry. my fault

Hey there and thank you for using pedsumo. I have updated the requirements and fixed a missing import. It should now work.
Kind regards

thanks :)


add readme of spring data cosmos

Add README.md for spring-data-cosmos project and associated sample code.

Hi @hemanttanwar , here is an issue on maven-javadoc-plugin when checking "@" symbol in sdk\cosmos\azure-spring-data-cosmos\README.md. In our case, we have a usage of "@" as #{@someBean.getContainerName()} in the non-code area, and the javadoc plugin cannot recognize it. It seems that javadoc plugin regard content after the left curve brace as code I guess. And @saragluna and I have tried to replace content like "{@" in README.md with "{{@literal }" and then javadoc check can succeed. Could you help to take a look at this issue? Thanks~

/azp run java - cosmos - ci

@yiliuTo / @saragluna - did we confirm the location of samples ?
Is it still runnable (as in do we have any CI for testing that samples work properly) ?

Hi @kushagraThapar , we haven't decided yet where the sample project should be. But for the sdk\cosmos\azure-spring-data-cosmos\src\samples in this PR, they are the embeded codes in the REAEME.md rather than the sample project and thus code in this directory is not runable as a complete project.

@yiliuTo Ah, I see, makes sense. Thanks for the information, please proceed with this PR.

Hi @kushagraThapar , I have updated with your comment, and for the Javadoc issue on pipeline, here is the PR to fix it.

Hi @kushagraThapar , I have updated with your comment, and for the Javadoc issue on pipeline, here is the PR to fix it.

Sounds good @yiliuTo , thanks for making the changes, the PR looks good.


[Feature Request]: OAuth provider for AWS Cognito hosted UI

Description
Hi,
I've been working on a new OAuth provider for AWS Cognito's hosted UI.
I can put together a PR if there's interest.

Thanks, would be a good addition to the library 👍


Copy link with ?category=1&product=1 returns ?category=1&product=1

Is it possible to disable this feature?
What i need is a link that users can copy paste in there browser

Same here. %26 works for me! Thanks @ShariqT for hint!


[GOBBLIN-632] Template for Incremental Avro Ingestion

Dear Gobblin maintainers,
Please accept this PR. I understand that it will not be reviewed until I have checked off all the steps below!
JIRA

[x] My PR addresses the following Gobblin JIRA issues and references them in the PR title. For example, "[GOBBLIN-XXX] My Gobblin PR"

https://issues.apache.org/jira/browse/GOBBLIN-632

Description

[x] Here are some details about my PR, including screenshots (if applicable):
Add template which uses DatePartitionedAvroFileSource for incremental avro ingestion.

Tests

[x] My PR adds the following unit tests OR does not need testing for this extremely good reason: Adding a template file, not changing code behavior.

Commits

[x] My commits all reference JIRA issues in their subject lines, and I have squashed multiple commits if they address the same issue. In addition, my commits follow the guidelines from "How to write a good git commit message":

Subject is separated from body by a blank line
Subject is limited to 50 characters
Subject does not end with a period
Subject uses the imperative mood ("add", not "adding")
Body wraps at 72 characters
Body explains "what" and "why", not "how"

@htran1 could you look this over?


Add redis adapter

---
Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/5423031-add-redis-adapter?utm_campaign=plugin&utm_content=tracker%2F155789&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F155789&utm_medium=issues&utm_source=github).

Hello, all! I'd like to jump in and help write a Redis adapter for ROM. It ties in with some things I've been working on, and while Ohm is fantastic I'd like to be able to use Redis via ROM.
I've reviewed the existing adapters (primarily rom-sql) and have a decent handle on how to go about building a rom-redis adapter based on the information in this thread. I'd like to start down the path of building the adapter on redis-rb.
Anything to discuss before I start slinging code?

@bryanp hey! that's awesome news. I'm a total redis n00b so I can only help you with ROM-specific stuff.
The best starting point is to make it possible to configure a connection with default options and come up with a basic dataset class. If it can be an array-like object you can use a helper module like described in #86. If you can come up with some interface that connects to redis and returns dataset objects then you've got a working adapter done. The rest is just expanding the interface with features (like some query DSL, command objects etc.).
Please also remember that we are very open to improve adapter interface because the goal is to be able to really easily build any adapter. If you see something fishy please tell about it. If something feels too hard, tell about it too. We already managed to build basic functionality for sql, mongo and file-based (as we call them) adapters like csv and yaml. Redis is super important as it's a key-value store which is a different type of a database.
I'm hanging out on gitter on a daily basis so ping me if you need some help or just report issues if something is not working for you.

We'll make a good team then! I'm a ROM noob but more experienced in Redis :)
Will do some preliminary work in the next few days and shoot you a note when there's something to look at.

Sounds like a good plan :)

Lemme know if you need any help on this, @bryanp or whoever else is working on this. I'm pretty experienced with Redis and I have a huge desire to get it put into ROM.

Hi @billywatson that would be awesome, actually. Haven't had a chance to do much the last little bit. I certainly want to help, but also don't want to be a blocker for anyone else.

@billywatson @bryanp would it be helpful if I started the project with some basic structure so that we have a redis connection setup in place?

Sure, @solnic that'd be a huge help to a guy fairly new to ROM, like myself

@solnic That'd be great!

OK I'll try to kick it off tomorrow :)

@billdueber @bryanp I just pushed rom-rb/rom-redis to github with some super basic stuff working. I've no idea what the strategy should be so I just did the simplest thing that could possibly work for a good start :)
oh and sorry it took so long...
@soveran I would appreciate if you could take a look too :)

Awesome, thanks!

@billywatson have you started on an aspect of this? would be good to coordinate somehow.
and thanks @solnic!

I haven't started yet, no. I've been trying to finish the project that needs this without it so that I could see where it would fit in. Did you have a place to start?

Same here, actually. I was looking to drive it based on needed features, which to start with would just be basic CRUD operations. That would likely descend into more complex queries.

Well it looks like from my previous research that the CUD portions aren't as well defined in ROM yet so I was planning on just sticking with implementing good read interfaces for now. What do you think?

CUD is handled by commands and the interface is very simple, every adapter can provide Commands namespace with Create, Update and Delete classes that inherit from ROM::Commands::* base classes. You can take a look at memory adapter, this is really simple stuff. The only interface that's required is #execute which receives various args depending on the type of command.

I guess I misspoke. "Well-defined" clearly isn't right, but some of the docs said that CUD is "in-flux" or something of the sort. Is that not correct?

It is getting more stable. Adding more adapters contributes to this process that's why it would be fantastic to get it working for redis too :)

On 23 Feb 2015, at 21:47, Billy Watson<EMAIL_ADDRESS>wrote:
I guess I misspoke. "Well-defined" clearly isn't right, but some of the docs said that CUD is "in-flux" or something of the sort. Is that not correct?
—
Reply to this email directly or view it on GitHub.

Cool; I'll start with CR. Getting really close to needing this so I should start in the next couple days.

Redis adapter exists: https://github.com/rom-rb/rom-redis this issue should still be open?

Yes because this is still help-wanted :)

@solnic hi! In current version you implement storing data in JSON, but what if we will be store it as is? Just like array of values – user can choose right structure and we can respond it's relation as collection of simple values.
And I can take this adapter, btw :)

@artemeff hey :) we should support any format of course, I just started with JSON for a simple PoC version. I'm not a redis user so I don't know how this adapter should work, unfortunately :/


fix: ensure packaging works

I broke this with #64

Codecov Report

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

@@           Coverage Diff           @@
##           master      #70   +/-   ##
=======================================
  Coverage   98.82%   98.82%
=======================================
  Files          14       14
  Lines        2727     2727
  Branches      156      156
=======================================
  Hits         2695     2695
  Misses         19       19
  Partials       13       13

Continue to review full report at Codecov.

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


Add "A" Special mask's characters + IBAN test

Any eyes on this? Would really be useful for the project I'm working on, alphanumeric matchers is a must. Trying to decide between this and inputmask-core, this project has a much better API but needs some features. I can help out with PRs, but want to know whether or not they'll get merged.

Resolved in version 0.3.0.
Thanks a lot for the pull request!


Search box colors almost no contrast

Hi TK, one of the last updates changed the search box colors, or its css dunno, now its very difficult to read what is being typed if you use the dark theme.

Hi @pablopeu , this custom CSS should fix it.
#navbar-menubar>#quicksearch input[type="text"] {
  color: inherit;
}

Thanks Thomas, far better, if I wanted to leave it as it was versions before, I mean the inside of seach box in white background what should I change?

Im back at this, there is an inconsistence, on desktop the search box background is dark and per your CSS fix the font is gray. But on mobile the background is white and the text is still gray so its barely visible. Is there CSS fix for this?
Thanks as always!

Hi,
yes, it needs to be wrapped in a media query, like:
@media (min-width: 768px) {
  #navbar-menubar>#quicksearch input[type="text"] {
    color: inherit;
  }
}

Hi Thomas, Im transitioning to a new server with better capabilities and Im
moving the gallery, so far it works great, some minor cosmetic issues, I
recall you told me how to customize the height of the menu, but I can't
find which file to modify and what is the modification, here are the
captures of the old site (still in production) and the new one that need
modification which is on latest version of BS Darkroom. can you help me?
Thanks
On Thu, Oct 12, 2017 at 9:28 AM, Thomas Kuther<EMAIL_ADDRESS>wrote:

Hi,
yes, it needs to be wrapped in a media query, like:
@media (min-width: 768px) {
#navbar-menubar>#quicksearch input[type="text"] {
color: inherit;
}
}
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/tkuther/piwigo-bootstrap-darkroom/issues/103#issuecomment-336116807,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AYlubDRX6md-NS7342ryHrwqavYd7GxTks5srgX9gaJpZM4PrYa3
.

Hi Pablo,
it's custom CSS
.navbar-main {
  min-height: 150px;
}

..something like that

Hi Thomas, tried that, if I put a large value you see clearly that the
navbar is taller, but if you put lower values, even 1, it does not reduce
as it happened in the 1.5 release, the one that was live on my site until
yesterday
On Wed, Dec 20, 2017 at 5:54 PM, Thomas Kuther<EMAIL_ADDRESS>wrote:

Hi Pablo,
it's custom CSS
.navbar-main {
min-height: 150px;
}
..something like that
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/tkuther/piwigo-bootstrap-darkroom/issues/103#issuecomment-353179795,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AYlubIk4h7WMICFv9gl3i3HXO76Ul4Oyks5tCXQTgaJpZM4PrYa3
.

You asked how to make it taller, right? Making it smaller than the font line height + margins/paddings won't work, and also wouldn't make any sense. Or am I misunderstanding what you're trying to achieve?

smaller :)
check how it was before: https://github.com/tkuther/piwigo-bootstrap-darkroom/issues/103#issuecomment-352918829

Oh, OK. The lower picture looks like it should look, IMHO at least.
Try using height instead of max-height, and maybe even !important. Or higher z-index on the logo.


60 days

Hey devs, its been 60 days. Is there a nightly release available or do we have to build this together ?

This package is still going through pre-alpha development. We don't have a timeline set for releases.


Add concurrencyPolicy: Forbid to check-reaper cronjob

We should not allow the check-reaper cronjob to build up extra pods if it can't complete a run.  This can cause a breakage in the cluster by spawning thousands of pods.

this was completed with PR #692 as part of refactoring the check-reaper to delete the new khjob


Intent links opened from GMAIL cause java.lang.IllegalArgumentException

Description
Intents from links (we are using Branch.io for deeplinking), and while links from the browser or Messages, etc (and anything on iOS) work fine, links from android GMAIL cause a crash. App crashes in react-native/ReactAndroid/src/main/java/com/facebook/react/bridge/Arguments.java in the fromBundle method. Adding some logs, it looks like in the case of GMail, the intent in including a value that is of Uri type (these are the key and value values from fromBundle):
 System.out              com.sippd.dev                        I  key: org.chromium.chrome.browser.eenp value type: class java.util.ArrayList val: [] System.out              com.sippd.dev                  I  key: android.intent.extra.REFERRER value type: class android.net.Uri$StringUri val: android-app://com.google.android.gm/
Because this intent value is not a String or Boolean or Array/List, it is throwing
java.lang.IllegalArgumentException: Could not convert class android.net.Uri$StringUri : android-app://com.google.android.gm/
React Native Version
0.71.6
Output of npx react-native info
System:
OS: macOS 13.3.1
CPU: (12) arm64 Apple M2 Max
Memory: 3.03 GB / 64.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 14.21.3 - ~/.nvm/versions/node/v14.21.3/bin/node
Yarn: 1.22.18 - ~/.nvm/versions/node/v14.21.3/bin/yarn
npm: 6.14.18 - ~/.nvm/versions/node/v14.21.3/bin/npm
Watchman: 2<IP_ADDRESS> - /opt/homebrew/bin/watchman
Managers:
CocoaPods: 1.12.0 - /Users/adammarr/.rbenv/shims/pod
SDKs:
iOS SDK:
Platforms: DriverKit 22.4, iOS 16.4, macOS 13.3, tvOS 16.4, watchOS 9.4
Android SDK: Not Found
IDEs:
Android Studio: 2022.1 AI-221.6008.13.2211.9619390
Xcode: 14.3/14E222b - /usr/bin/xcodebuild
Languages:
Java: 11.0.18 - /usr/bin/javac
npmPackages:
@react-native-community/cli: Not Found
react: 18.2.0 => 18.2.0
react-native: 0.71.6 => 0.71.6
react-native-macos: Not Found
npmGlobalPackages:
react-native: Not Found
Steps to reproduce
I'm not fully sure on the technical aspects of branch and what might be different from branch vs another type of app link from GMail, but in this case it happens simply by opening the link in GMail that then turns into the app link Intent that causes RN to crash.
Snack, code example, screenshot, or link to a repository
Happens prior to any application code running.

@adammarr sure. Someone will take a look into it :)
Cc: @cortinico

System.out com.sippd.dev I key: org.chromium.chrome.browser.eenp value type: class java.util.ArrayList val: [] System.out com.sippd.dev I key: android.intent.extra.REFERRER value type: class android.net.Uri$StringUri val: android-app://com.google.android.gm/

Could you share the full stacktrace @adammarr ?

Not trying to be a pain (honestly), but is that necessary? The failure is
java.lang.IllegalArgumentException: Could not convert class android.net.Uri$StringUri
and from what I can tell, any Intent calls run through that fromBundle method in Arguments.java, at least any of our Intents. My guess is there are not a lot of ways to get to that fromBundle method, and its probably a pretty standard/linear path from Messaging. If you really do need it, let me know and I'll remove the patch, rebuild and retest, but that takes time and I don't really see the benefit in this case, though maybe I'm missing something, I'm certain not familiar with the RN sdk code.

Found somewhere I had copied the log text from by previous debug sess:
2023-06-22 09:40:13.352  6821-7055  unknown:ReactNative     com.sippd.dev                        E  ReactInstanceManager caught exception in setupReactContext                                                                                java.lang.IllegalArgumentException: Could not convert class android.net.Uri$StringUri : android-app://com.google.android.gm/                                                                                at com.facebook.react.bridge.Arguments.fromBundle(Arguments.java:317)                                                                                at com.facebook.react.ReactInstanceManager.attachRootViewToInstance(ReactInstanceManager.java:1271)                                                                                at com.facebook.react.ReactInstanceManager.setupReactContext(ReactInstanceManager.java:1183)                                                                                at com.facebook.react.ReactInstanceManager.access$1600(ReactInstanceManager.java:135)                                                                                at com.facebook.react.ReactInstanceManager$5$2.run(ReactInstanceManager.java:1137)                                                                                at android.os.Handler.handleCallback(Handler.java:942)                                                                                at android.os.Handler.dispatchMessage(Handler.java:99)                                                                                at com.facebook.react.bridge.queue.MessageQueueThreadHandler.dispatchMessage(MessageQueueThreadHandler.java:27)                                                                                at android.os.Looper.loopOnce(Looper.java:201)                                                                                at android.os.Looper.loop(Looper.java:288)                                                                                at com.facebook.react.bridge.queue.MessageQueueThreadImpl$4.run(MessageQueueThreadImpl.java:228)                                                                                at java.lang.Thread.run(Thread.java:1012) 2023-06-22 09:40:13.352  6821-7055  unknown:ReactNative     com.sippd.dev                        E  Exception in native call                                                                                java.lang.IllegalArgumentException: Could not convert class android.net.Uri$StringUri : android-app://com.google.android.gm/                                                                                at com.facebook.react.bridge.Arguments.fromBundle(Arguments.java:317)                                                                                at com.facebook.react.ReactInstanceManager.attachRootViewToInstance(ReactInstanceManager.java:1271)                                                                                at com.facebook.react.ReactInstanceManager.setupReactContext(ReactInstanceManager.java:1183)                                                                                at com.facebook.react.ReactInstanceManager.access$1600(ReactInstanceManager.java:135)                                                                                at com.facebook.react.ReactInstanceManager$5$2.run(ReactInstanceManager.java:1137)                                                                                at android.os.Handler.handleCallback(Handler.java:942)                                                                                at android.os.Handler.dispatchMessage(Handler.java:99)                                                                                at com.facebook.react.bridge.queue.MessageQueueThreadHandler.dispatchMessage(MessageQueueThreadHandler.java:27)                                                                                at android.os.Looper.loopOnce(Looper.java:201)                                                                                at android.os.Looper.loop(Looper.java:288)                                                                                at com.facebook.react.bridge.queue.MessageQueueThreadImpl$4.run(MessageQueueThreadImpl.java:228)                                                                                at java.lang.Thread.run(Thread.java:1012)

Found somewhere I had copied the log text from by previous debug sess:

Thanks for the stacktrace.
You should be able to update the Bundle in your MainActivity like this:
public class MainActivity extends ReactActivity {
  public static class MainActivityDelegate extends DefaultReactActivityDelegate {
    private Bundle updatedBundle = null;
    private final @Nullable ReactActivity mActivity;

    public MainActivityDelegate(ReactActivity activity, String mainComponentName) {
      super(activity, mainComponentName, DefaultNewArchitectureEntryPoint.getFabricEnabled());
      this.mActivity = activity;
    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
      Bundle bundle = mActivity.getIntent().getExtras();
      if (bundle != null && bundle.containsKey("...")) {
        Bundle updatedBundle = new Bundle();
        updatedBundle.putString("key", "value");
      }
      super.onCreate(savedInstanceState);
    }

    @Nullable
    @Override
    protected Bundle getLaunchOptions() {
      return updatedBundle;
    }
  }

  @Override
  protected ReactActivityDelegate createReactActivityDelegate() {
    return new MainActivityDelegate(this, getMainComponentName());
  }

  @Override
  protected String getMainComponentName() {
    return "MainApp";
  }
}

@cortinico  Ahh, OK, thats better than me patching RN and having to build it with every build (which is honestly causing headaches). Thanks, much appreciated.  That said, bundle.get returns an Object, so throwing an exception and crashing the app instead of logging a warning seems overly harsh in this scenario, especially when the cause is somewhat esoteric for those of us who aren't as fluent on the native side of mobile dev, not to mention somewhat harmless probably if the bundle contains an object the Arguments.java code hasn't accounted for. Also, bundle.get() is apparently deprecated anyway [https://developer.android.com/reference/android/os/BaseBundle#get(java.lang.String)] though I'm not sure how you would get around it given the way the fromBundle method works.

Ahh, OK, thats better than me patching RN and having to build it with every build (which is honestly causing headaches). Thanks, much appreciated

Closing then 👍

Kinda forgot the last part of the message... you guys are crashing people's applications when they aren't passing specific types to an untyped Object in Bundle. This should be a warning, not something that crashes people's application, its been quite a headache the last month to figure this error out.

you guys are crashing people's applications when they aren't passing specific types to an untyped Object in Bundle.

Yup this change is totally doable, are you up for sendign a PR to add a fallback for non supported types?

you guys are crashing people's applications when they aren't passing specific types to an untyped Object in Bundle. This should be a warning, not something that crashes people's application, its been quite a headache the last month to figure this error out.

Definitely, this is not a good DX. And, it needs to be fixed at some point in time.
Sidenote/Tip:
I always follow 2hr rule while debugging, If I can't figure it out on my own I just ask for help without wasting much time :)

Yup this change is totally doable, are you up for sendign a PR to add a fallback for non supported types?

How about we open a new issue (or convert this) to fix this w/ "Help Wanted" label so "anyone" interested can send a PR for the same? WDYT Nicola?

How about we open a new issue (or convert this) to fix this w/ "Help Wanted" label so "anyone" interested can send a PR for the same? WDYT Nicola?

Yup we can open a follow-up here


Selecting multiple nodes adds empty Reference section in the inspector

Godot version:
3.2 alpha3
Steps to reproduce:

Create 2 nodes (best observable with Node)
Select both of them
This appears at the bottom of the inspector

I guess it shouldn't be there.

Still valid in cb77e8d6c

Still valid in v4.1.beta.custom_build [2b373f795]

That's probably because the multi-node selection is handled by the MultiNodeEdit class, which inherits RefCounted.
It might need an ad hoc fix to hide this fact to the users.


Hotfix PROD DB - Update Profile 76

Describe the issue
There is an unexpected project name change CSB Access 2 Audio FrontEnd made to the Profile 76. The project needs to be reverted back to its previous name Access 2 Audio FrontEnd in order to unblock the current GitOps sync process (for applying the deny-all knp in dev environment on OCP4 silver cluster).
Additional context
It's on the Registry team's TODO lists to decide on when / how the new requested name can be applied and take actions from there.
Definition of done
When the name is reverted and the sync is no longer blocked.

cc @j-pye @sbathgate ^

Closing as the hotfix on PROD DB is complete and sync process is no longer blocked by this issue.


not able to set num_threads using c_api interface

Hi, I am using lightgbm c_api interface, and not able to set num_threads. The program will also run with the max of avaiable cpus. Instead, I would like to run it in only one cpu. I am running it with c++ under linux system. Below is the sample code
{
......
//initialize model from a file
int suc = LGBM_BoosterCreateFromModelfile(_modelFile.c_str(),&_out_num_iterations, &_out);
//set num_threads as 1
const char * param = "num_threads=1 ";
int suc2 = LGBM_BoosterResetParameter(_out, param);
............
//make prediction
int suc2 = LGBM_BoosterPredictForMat(_out,data,C_API_DTYPE_FLOAT64,n1,n2,1,C_API_PREDICT_NORMAL,_out_num_iterations,"num_threads=1 ",&out_len,out_result);
......
}
Could someone please let me know why the program is not running with one cpu? And what is the correct way to do it? Thanks.
Sincerely,
Hui
Please search your question on previous issues, stackoverflow or other search engines before you open a new one.
For bugs and unexpected issues, please provide following information, so that we could reproduce on our system.
Environment info
Operating System:
CPU:
C++/Python/R version:
Error Message:
Reproducible examples
Steps to reproduce

It is very strange. From your code, the number of threads should be set.
can you try to use omp_set_num_threads(1); ? (need to include "omp.h")

Hi @guolinke,
Thanks for your quick response. I tested what your described. This is what command "ps -fTP" outputs:
UID          PID    SPID    PPID PSR  C STIME TTY          TIME CMD
hnie     3980609 3980609 3356829  22 99 09:34 pts/0    00:03:06 ./binary -p config
hnie     3980609 3980610 3356829  25  0 09:34 pts/0    00:00:00 ./binary -p config
hnie     3980609 3980611 3356829  17  0 09:34 pts/0    00:00:00 ./binary -p config
hnie     3980609 3980612 3356829  26  0 09:34 pts/0    00:00:00 ./binary -p config
hnie     3980609 3980613 3356829   2  0 09:34 pts/0    00:00:00 ./binary -p config
hnie     3980609 3980614 3356829  27  0 09:34 pts/0    00:00:00 ./binary -p config
hnie     3980609 3980615 3356829  19  0 09:34 pts/0    00:00:00 ./binary -p config
hnie     3980609 3980616 3356829  28  0 09:34 pts/0    00:00:00 ./binary -p config
hnie     3980609 3980617 3356829  20  0 09:34 pts/0    00:00:00 ./binary -p config
hnie     3980609 3980618 3356829  29  0 09:34 pts/0    00:00:00 ./binary -p config
hnie     3980609 3980619 3356829  21  0 09:34 pts/0    00:00:00 ./binary -p config
hnie     3980609 3980620 3356829  30  0 09:34 pts/0    00:00:00 ./binary -p config
hnie     3980609 3980621 3356829  22  0 09:34 pts/0    00:00:00 ./binary -p config
hnie     3980609 3980622 3356829  31  0 09:34 pts/0    00:00:00 ./binary -p config
hnie     3980609 3980623 3356829  23  0 09:34 pts/0    00:00:00 ./binary -p config
hnie     3980609 3980624 3356829  24  0 09:34 pts/0    00:00:00 ./binary -p config
hnie     3980609 3980625 3356829  16  0 09:34 pts/0    00:00:00 ./binary -p config
hnie     3980609 3980626 3356829   8  0 09:34 pts/0    00:00:00 ./binary -p config
hnie     3980609 3980627 3356829   1  0 09:34 pts/0    00:00:00 ./binary -p config
hnie     3980609 3980628 3356829  16  0 09:34 pts/0    00:00:00 ./binary -p config
hnie     3980609 3980629 3356829   9  0 09:34 pts/0    00:00:00 ./binary -p config
hnie     3980609 3980630 3356829   3  0 09:34 pts/0    00:00:00 ./binary -p config
hnie     3980609 3980631 3356829  10  0 09:34 pts/0    00:00:00 ./binary -p config
hnie     3980609 3980632 3356829   4  0 09:34 pts/0    00:00:00 ./binary -p config
hnie     3980609 3980633 3356829  11  0 09:34 pts/0    00:00:00 ./binary -p config
hnie     3980609 3980634 3356829   5  0 09:34 pts/0    00:00:00 ./binary -p config
hnie     3980609 3980635 3356829  12  0 09:34 pts/0    00:00:00 ./binary -p config
hnie     3980609 3980636 3356829   6  0 09:34 pts/0    00:00:00 ./binary -p config
hnie     3980609 3980637 3356829  13  0 09:34 pts/0    00:00:00 ./binary -p config
hnie     3980609 3980638 3356829   7  0 09:34 pts/0    00:00:00 ./binary -p config
hnie     3980609 3980639 3356829  14  0 09:34 pts/0    00:00:00 ./binary -p config
hnie     3980609 3980640 3356829  18  0 09:34 pts/0    00:00:00 ./binary -p config
It seems that only the first line has the non-zero running time "00:03:06", which probably means it is running on this threads. All others have 0. But it seems that the job still reaches all cpus, even if running time is 0. Is it by design? If not, is there a way that I could only run this job on one pre-specified cpu?
Thanks.
Sincerely,
Hui

@niehui1983
We use openmp for the multi-threading, I think it may is the feature of openmp.

@guolinke'
Yeah, it could be the case.


What does this date '2015-05-01' indicate?

What does this date '2015-05-01' in the following line indicate? How do I determine what date value to use?
"value": "[reference(resourceId('microsoft.insights/components/', variables('appInsightsName')), '2015-05-01').InstrumentationKey]"

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

ID: 7feaa3d0-7233-a3cb-cb9b-a9a55b1f0d7a
Version Independent ID: f41f9d51-52f8-1f45-1043-1344a3b74458
Content: Use Key Vault references - Azure App Service
Content Source: articles/app-service/app-service-key-vault-references.md
Service: app-service
GitHub Login: @mattchenderson
Microsoft Alias: mahender

@lipalath-ms Thanks for the feedback! We are currently investigating and will update you shortly.

@lipalath-ms  Thanks for asking question! As mentioned in the below document 2015-05-01-preview indicate the API Versions. https://docs.microsoft.com/en-us/azure/templates/microsoft.sql/2015-05-01-preview/servers/keys

@lipalath-ms We will now proceed to close this thread. If there are further questions regarding this matter, Please let us know.


Is there a portable version available?

Calcpad software has brought me a lot of convenience. I want to install calcpad on my work computer, but my work computer has no administrator rights and no network.
Can you provide a portable version that can be free of installation and administrator rights?

OK. I will try and will come back soon. :)

Hi,
I tried to publish a portable version. You can download it and try from here:
https://github.com/Proektsoftbg/Calcpad/blob/main/Setup/calcpad-portable-5.8.9.exe
It is a self-extracting archive. Extract it somewhere on your computer and click Calcpad.application. If nothing happens, try setup.exe. Please, share your experience after.

Hi,
I tried to publish a portable version. You can download and try it from here:
https://github.com/Proektsoftbg/Calcpad/blob/main/Setup/calcpad-portable-5.8.9.exe
It is a self-extracting archive. Extract it somewhere on your computer and click Calcpad.application. If nothing happens, try setup.exe. Please, share your experience after.

It works, thank you.


Improve swipe gesture to reveal year scroller

Fixes #190
Some notes for review.

Only way to really review this is to simply try this out with an Android and/or iOS device. If your device has too large screen, you might need to tweak the iron-media-query in vaadin-date-picker-overlay and increase the min-width.
This PR improves three things.

A costly repaint is avoided by adding the will-change CSS property to the icon that gets rotated.
The on-track is moved one level up in the DOM to actually track also when swiping on top of the year scroller to hide it.
Handling the track state is rewritten and should now feel more natural and also support a fast fling instead of just a deliberate and slow swipe.

This change is

Tested on ios and android, seems to work really nice

Reviewed 1 of 1 files at r1.
Review status: all files reviewed at latest revision, 1 unresolved discussion, some commit checks failed.

vaadin-date-picker-overlay.html, line 523 at r1 (raw file):

      _handleTrack: function(e) {
        if (Math.abs(e.detail.dx) < 10 || Math.abs(e.detail.ddy) > 10) {

What does magic number 10 mean in here? have no idea :)

Comments from Reviewable

Review status: 0 of 1 files reviewed at latest revision, 1 unresolved discussion, some commit checks failed.

vaadin-date-picker-overlay.html, line 523 at r1 (raw file):
Previously, samiheikki (Sami Suo-Heikki) wrote…
> What does magic number `10` mean in here? have no idea :)

Moved and clarified some related comments. Would this be better?

Comments from Reviewable

Reviewed 1 of 1 files at r2.
Review status: all files reviewed at latest revision, all discussions resolved, some commit checks failed.

Comments from Reviewable

Review status: all files reviewed at latest revision, all discussions resolved, some commit checks failed.

Comments from Reviewable

For some reason the year scroller isn't scrollable (on iPad 2) with this change... if that's not an issue then

Comments from Reviewable

was it before ?

Review status: all files reviewed at latest revision, all discussions resolved, some commit checks failed.

Comments from Reviewable

Yes it was

Comments from Reviewable

So probably we shouldn't break that. Could you @tehapo take a look before merging this to figure out what is broken?

Review status: all files reviewed at latest revision, all discussions resolved, some commit checks failed.

Comments from Reviewable

Oh, good catch. I'll take a look at it.

Review status: all files reviewed at latest revision, all discussions resolved, some commit checks failed.

Comments from Reviewable

Fixed. And also rebased on top of master.

Review status: 0 of 1 files reviewed at latest revision, all discussions resolved.

Comments from Reviewable

Review status: 0 of 1 files reviewed at latest revision, all discussions resolved, some commit checks failed.

Comments from Reviewable

Fixed linting error.

Review status: 0 of 1 files reviewed at latest revision, all discussions resolved.

Comments from Reviewable

Reviewed 1 of 1 files at r3.
Review status: all files reviewed at latest revision, all discussions resolved.

Comments from Reviewable


Re-use analysis context between executions of AnalysisImpl.

This allows us to take advantage of the analysis cache so that we don't do redundant analysis when multiple input files import (or export) common libraries.
This saves a tremendous amount of time when analyzing complex projects.  For example, we can now analyze all of "pub" in about 1.5 minutes instead of 20 minutes.

Changes Unknown when pulling d8af382ec3362be58cfb0295c63e04cbb2087de9 on share-analysis-context into ** on master**.

@pq

LGTM!


Can you add mute options for "Not enough Resources"/"Experiment Interrupted"?

I will begin working on adding new notification mutes as new ones have been added.


Add PyDantic to evaluation specifications

The purpose of the evaluation specification classes is to (mostly) deserialize data and ferry it back and forth.
Adding Pydantic to the existing classes might make it far easier to implement cleaner configuration pages that fit the aesthetics of the other pages for elements that also use pydantic.

This will require a number of model conversions, notably with several abstract models. Most of not all atomic fields will need examples for their fields. New models should also be constructed for requests and probably websocket communication. The library exporter should also be updated to consider the models in order to enforce their structure.
Models to convert:

[ ] Specification
[ ] TemplatedSpecification
[ ] BackendSpecification
[ ] LoaderSpecification
[ ] DatasourceSpecification
[ ] EvaluationSpecification
[ ] FieldMappingSpecification
[ ] ValueSelector
[ ] AssociatedField
[ ] LocationSpecification
[ ] CrosswalkSpecification
[ ] MetricSpecification
[ ] SchemeSpecification
[ ] ThresholdDefinition
[ ] ThresholdApplicationRules
[ ] ThresholdSpecification
[ ] UnitDefinition

RequiredParameters objects for ActionDescribers should probably be reengineered to route based on deserialized messages (whose types will need to be created) rather than matching on those required parameters. LaunchConsumer.receive will need to be rearranged to perform said routing.


join([]) causes "Expected 2 strings to have 1 values"

An example: https://runkit.com/croolsby/sql-template-tag-join-issue
If you run join() on an empty array, I.E. join([]), it returns an error "Expected 2 strings to have 1 values".
I think it's correct for join([]) to throw an error because it's not clear what value join([]) should return. If join([]) returns and empty string or null, that would cause an error in SQL syntax, usually.
However, I think the error message is unhelpful for debugging. Can we change the error message to something more helpful for this special case: join([])?

I'm not 100% convinced this should be an error, if only because plain JavaScript isn't, e.g. [].join(). I'd be inclined to follow the standard language behavior first. Do you have strong feelings against this?

That's a good point.
Personally, I would like it to throw an error because it's never my intention that join([]) returns the empty string. I think the most common use cases for join([]) is in WHERE IN and INSERT VALUES statements, for example:
const sql = sqltag`
  SELECT * FROM User WHERE IN (${join([])});
`

const users = [{name: 'Alice'}, {name: 'Bob'}]
const values = users.map(u => sqltag`(${u.name})`)
const sql = sqltag`
  INSERT INTO User (
    name
  ) VALUES ${join(values)};
`

Using the examples above, if join([]) were to return the empty string, then we would get:
SELECT * FROM User WHERE IN ('');

INSERT INTO User (name) VALUES '';

The INSERT statement will throw an error if it's executed, however, what I'm worried about is the WHERE IN case. This will not throw any error and unexpected behavior will happen.
In either case, I can't see why anyone would want join([]) to return the empty string.

BTW, in normal javascript, the examples above would actually be:
SELECT * FROM User WHERE IN ();

INSERT INTO User (name) VALUES ;

This is because
const sql = sqltag`${''}`

gets flattened to "''", that is, a string containing ''.
However, in normal javascript
const sql = `${''}`

gets flattened to '', which is the empty string.

Just to clarify, the intention would never be for join([]) to return an empty string, but rather empty SQL, e.g.
sql``

However, I think your argument is reason and will make this throw an error instead. I can't currently see a use-case for join([]) working within any of my own code (it's probably a bug that'll produce a SQL syntax error later). I do have a few places where it's negligible if it does nothing though.

In my example above the difference is that join(['']) would produce { text: '$1', values: [''] } while join([]) would produce { text: '', values: [] }. Hope that explains things a bit better, opening a PR with it being an error now though!


Duplicate keys in attack parameter dictionaries

Hi,
some of the attack parameter dictionaries contain the key "eps_iter" two times. The dictionaries with

"method": "bim", "eps": 5 and
"method": "mim", "eps": 5 do so.

Cheers,
Johannes
https://github.com/lsgos/uncertainty-adversarial-paper/blob/559af3e4a5df7727db3ec6c3493831c81618887c/ROC_curves_cats.py#L359-L394

Hi,
This is indeed a mistake (the second key will override the first) ; however, its luckily not too serious, as 0.5 is an ok setting of the eps_iter parameter here
I don't think I'm going to change this, as this repository is intended to allow the exact reproduction of the experiments in the paper draft, including any mistakes, so changing it would defeat that purpose.
However, thanks for raising it; I have some other code that is based on this that suffered from the same bug, which I have now fixed


Create py.typed

Without it, an error appears every time typing is checked
Skipping analyzing "diffrax": module is installed, but missing library stubs or py.typed marker  [import]

Same as https://github.com/patrick-kidger/equinox/pull/547

Ah, makes sense! We should probably add this to Lineax and Optimistix too.
It looks like your branch has some spurious commits on it, but I'd be happy to click accept if you can remove those?

Oops wrong branch, here it is https://github.com/patrick-kidger/diffrax/pull/408


Is slowing the explorer.exe(Desktop) when the configurator is opened

My system is an Windows 10 Pro with an AMD Radeon RX 560 Series and an Intel Core i5-9400 9-Generation.
When i move the window around, it's lagging(the window) and an second curser is visible.
The window itself is moving to the dragging possition and stops there and the second curser disappears.
Video for the Window: https://youtu.be/-laM8Tk3-fc

@Minecodes It's a bug that should be fixed in the pre-release <IP_ADDRESS>.

Okay, try it

It works 👍


Circular Sector Shape Calculator added

Related Issue
Fixes #2902
Describe the changes you've made
I have added the calculator along with the steps.
Checklist:

[x] My code follows the style guidelines of this project.
[x] I have performed a self-review of my own code.
[x] I have commented my code, particularly in hard-to-understand areas.
[x] I have made corresponding changes to the documentation.
[x] My changes generate no new warnings.

instead of adding into old.html, add the option in the required page inside appdata/menudata

@sairish2001 done the changes.


:term command not available in vim 8.0

I am using vim 8.0 in Amazon-ami-linux
I know that the :term command works from vim version 8 ,but the :term command is not working in my release,
How to get the :term working in my version of vim?
**Command vim --version output **
--version
VIM - Vi IMproved 8.0 (2016 Sep 12, compiled Jun 13 2019 21:28:49)
Included patches: 1-503, 1365
Modified by<EMAIL_ADDRESS>Compiled by<EMAIL_ADDRESS>Huge version without GUI.  Features included (+) or not (-):
+acl             +file_in_path    +mouse_sgr       +tag_old_static
+arabic          +find_in_path    -mouse_sysmouse  -tag_any_white
+autocmd         +float           +mouse_urxvt     -tcl
-balloon_eval    +folding         +mouse_xterm     +termguicolors
-browse          -footer          +multi_byte      +terminfo
++builtin_terms  +fork()          +multi_lang      +termresponse
+byte_offset     +gettext         -mzscheme        +textobjects
+channel         -hangul_input    +netbeans_intg   +timers
+cindent         +iconv           +num64           +title
-clientserver    +insert_expand   +packages        -toolbar
-clipboard       +job             +path_extra      +user_commands
+cmdline_compl   +jumplist        +perl            +vertsplit
+cmdline_hist    +keymap          +persistent_undo +virtualedit
+cmdline_info    +lambda          +postscript      +visual
+comments        +langmap         +printer         +visualextra
+conceal         +libcall         +profile         +viminfo
+cryptv          +linebreak       +python          +vreplace
+cscope          +lispindent      -python3         +wildignore
+cursorbind      +listcmds        +quickfix        +wildmenu
+cursorshape     +localmap        +reltime         +windows
+dialog_con      -lua             +rightleft       +writebackup
+diff            +menu            +ruby            -X11
+digraphs        +mksession       +scrollbind      -xfontset
-dnd             +modify_fname    +signs           -xim
-ebcdic          +mouse           +smartindent     -xpm
+emacs_tags      -mouseshape      +startuptime     -xsmp
+eval            +mouse_dec       +statusline      -xterm_clipboard
+ex_extra        +mouse_gpm       -sun_workshop    -xterm_save
+extra_search    -mouse_jsbterm   +syntax
+farsi           +mouse_netterm   +tag_binary
system vimrc file: "/etc/vimrc"
user vimrc file: "$HOME/.vimrc"
2nd user vimrc file: "~/.vim/vimrc"
user exrc file: "$HOME/.exrc"
defaults file: "$VIMRUNTIME/defaults.vim"
fall-back for $VIM: "/etc"
f-b for $VIMRUNTIME: "/usr/share/vim/vim80"
Compilation: gcc -c -I. -Iproto -DHAVE_CONFIG_H     -O2 -g -pipe -Wall -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1
Linking: gcc   -L. -fstack-protector -rdynamic -Wl,-export-dynamic -Wl,--enable-new-dtags -Wl,-rpath,/usr/lib64/perl5/CORE   -L/usr/local/lib -Wl,--as-needed -o vim        -lm -lnsl   -lncurses -lacl -lattr -lgpm -ldl   -Wl,--enable-new-dtags -Wl,-rpath,/usr/lib64/perl5/CORE  -fstack-protector  -L/usr/lib64/perl5/CORE -lperl -lresolv -lnsl -ldl -lm -lcrypt -lutil -lpthread -lc -L/usr/lib64/python2.7/config -lpython2.7 -lpthread -ldl -lutil -lm -Xlinker -export-dynamic   -L/usr/lib64/ruby/2.0 -lruby -lpthread -lrt -ldl -lcrypt -lm

Your :version does not mention the terminal feature and indeed, the main feature of Vim 8.1 was the terminal command (see https://www.vim.org/vim-8.1-released.php). So you need a Vim 8.1. release.

8.0.0693 was the initial patch for the terminal feature, so at least that patchlevel is needed. Of course that version is unstable, so 8.1 is recommended.

so how to install vim 8.1 in your device if it is not available in your OS package manager, sorry I am a beginner

This depends on your operating system and your user rights.
Please ask user questions on the vim_use mailinglist or use vi.stackexchange.com. This here is a bug tracker for problems with Vim. We cannot provide individual help here.

so how to install vim 8.1 in your device if it is not available in your OS package manager, sorry I am a beginner

To get the latest official Vim source: see https://vim.fandom.com/wiki/Getting_the_Vim_source_with_Mercurial
To compile on Unix-like (i.e. non-Windows) systems: see http://users.skynet.be/antoine.mechelynck/vim/compunix.htm

You don't need to uninstall your distro's Vim because the home-compiled one will reside before it in the $PATH: in /usr/local/bin (the default) if you have system administration rights, and in ~/bin (which can be set by an additional configure argument) otherwise.
Best regards,
Tony.


feat: use batching in vector store index

Fixes: https://github.com/run-llama/LlamaIndexTS/issues/483

don't merge missing the changes to OpenAIEmbedding that @EmanuelCampos and I discussed

LGTM


[BACKUP] az backup container unregister: Add support for MAB --backup-management-type

Description

az backup container unregister: Added MAB as a valid input for --backup-mangement-type argument

Testing Guide

History Notes

[Component Name 1] BREAKING CHANGE: az command a: Make some customer-facing breaking change.
[Component Name 2] az command b: Add some customer-facing feature.

This checklist is used to make sure that common guidelines for a pull request are followed.

[ ] The PR title and description has followed the guideline in Submitting Pull Requests.

[ ] I adhere to the Command Guidelines.

[ ] I adhere to the Error Handling Guidelines.

Thanks for the contribution.