Hi ! How to turn menu settings white

How to turn menu settings white，Blue is so dazzling

You can change it on your settings.json.
Add this:
"workbench.colorCustomizations": {
"menu.foreground": "#fff"
}
Refs:
https://code.visualstudio.com/docs/getstarted/themes
https://code.visualstudio.com/api/references/theme-color


GSNGM-584: Update dependencies

@gberaudo I updated dependencies using npm update and test it. Seems like everything works as before.


use wrapping operations, use next_power_of_two, improve tests

For large lengths, there's a chance some hash operations may overflow. I don't know if it could ever happen with standard stack/heap sizes but it costs nothing to change it.
next_power_of_two should be faster than the "bit twiddling" version on most platforms
The tests were hashing twice as much as necessary

Nice, thanks for the contribution!


Getting started example not working

This project got my interest and wanted to give it a shot. Was attempting the getting started docker example and ran into issues:
LocalAI version:
Latest image
Environment, CPU architecture, OS, and Version:
Running in an ubuntu 22.04 VM with docker. Got an Xeon E3 with 4 cores+8threads; All threads are available for this VM with 16gig ram.
Describe the bug/reproduce
Ran this command:
docker run -p 8888:8080 -ti --rm quay.io/go-skynet/local-ai:latest --models-path /home/wouter/docker/LocalAI/models --context-size 700 --threads 4
Was assuming this would get my container up and running but ran into bugs as seen below is the output of the files.
Also attempted to pre-download a model using this:
wget https://gpt4all.io/models/ggml-gpt4all-j.bin -O models/ggml-gpt4all-j
Expected behavior
A running container :)
Logs
`CMake Error at tests/CMakeLists.txt:145 (set_target_properties):
set_target_properties called with incorrect number of arguments.
-- Configuring incomplete, errors occurred!
See also "/build/go-ggml-transformers/build/CMakeFiles/CMakeOutput.log".
See also "/build/go-ggml-transformers/build/CMakeFiles/CMakeError.log".
make[1]: *** [Makefile:144: ggml.o] Error 1
make[1]: Leaving directory '/build/go-ggml-transformers'
make: *** [Makefile:181: go-ggml-transformers/libtransformers.a] Error 2`
Additional context
Hope somebody knows the answer!

Hello @wouterverduin,
I run maybe in similar problems when I started to play around with this docker containers.
Have you tried to add the env variable
-e "REBUILD=false"
this prevent the rebuilding of the application inside of the container.
Currently I am not sure why this is possible, but my expectation is to just pull and run the container without recompile
all the stuff.
Maybe you can test:
docker run -e "REBUILD=false" -p 8888:8080 -ti --rm quay.io/go-skynet/local-ai:latest --models-path /home/wouter/docker/LocalAI/models --context-size 700 --threads 4
Also you can try to run it with:
docker run -v models:/build/models -e "REBUILD=false" -p 8888:8080 -ti --rm quay.io/go-skynet/local-ai:latest
If you want to pass more options take a look at: https://github.com/go-skynet/LocalAI/blob/master/.env
there you can see also the comment on
## Uncomment and set to false to disable rebuilding from source
# REBUILD=false

Hope that helps

@finger42
Thanks for the reply! I ran a docker command (havent triede a compose file yet) and is running now.
This is my output:
`Starting LocalAI using 4 threads, with models path: /home/wouter/docker/LocalAI/models
unexpected end of JSON input
7:34AM ERR error loading config files: open /home/wouter/docker/LocalAI/models: no such file or directory
┌───────────────────────────────────────────────────┐
│                   Fiber v2.47.0                   │
│               http://<IP_ADDRESS>:8080               │
│       (bound on host <IP_ADDRESS> and port 8080)       │
│                                                   │
│ Handlers ............ 31  Processes ........... 1 │
│ Prefork ....... Disabled  PID ................. 6 │
└───────────────────────────────────────────────────┘
`
So i made progress. When i go to my link it the webrowser it shows:
{"error":{"code":404,"message":"Cannot GET /","type":""}}
But when i curl http://localhost:8888/v1/models it says:
{"error":{"code":500,"message":"open /home/wouter/docker/LocalAI/models: no such file or directory","type":""}}
The things is when i cd into '/home/wouter/docker/LocalAI/models' i have two files:
-rw-r--r-- 1 root root<PHONE_NUMBER> Apr 15 15:17 ggml-gpt4all-j -rw-r--r-- 1 root root        180 Jul  5 09:26 ggml-gpt4all-j.tmpl
Are these the wrong files? Or is there another reason it cant acces this folder?
Yet again; Any help would be greatly appreciated!

@wouterverduin I haven't tried it without docker-compose, but it seems like your local models folder (/home/.../models) has to be mapped as a volume (/models), and then the models-path env variable should point to that volume ?
I'm having a similar problem getting the GPT4ALL-J model running locally using Docker on a 2021 MacBook M1 Pro.
First I noticed the unexpected end of JSON input error in the Docker logs, but that got fixed after uncommenting more env variables in .env (I think it was the GALLERIES that fixed it).
Now I'm having no errors:
$ docker-compose up --pull always
[+] Running 1/1
 ✔ api Pulled                                                                                1.6s
[+] Running 1/1
 ✔ Container localai-api-1  Created                                                                                0.0s
Attaching to localai-api-1
localai-api-1  | Starting LocalAI using 4 threads, with models path: /models
localai-api-1  | <nil>
localai-api-1  |
localai-api-1  |  ┌───────────────────────────────────────────────────┐
localai-api-1  |  │                   Fiber v2.47.0                   │
localai-api-1  |  │               http://<IP_ADDRESS>:8080               │
localai-api-1  |  │                                                   │
localai-api-1  |  │ Handlers ............ 33  Processes ........... 1 │
localai-api-1  |  │ Prefork ....... Disabled  PID ................. 7 │
localai-api-1  |  └───────────────────────────────────────────────────┘
localai-api-1  |
localai-api-1  | [<IP_ADDRESS>]:43294  200  -  GET      /readyz
localai-api-1  | [<IP_ADDRESS>]:39004  200  -  GET      /readyz
localai-api-1  | [<IP_ADDRESS>]:43076  200  -  GET      /readyz
localai-api-1  | [<IP_ADDRESS>]:34776  200  -  GET      /readyz
localai-api-1  | [<IP_ADDRESS>]:35052  200  -  GET      /readyz
localai-api-1  | [<IP_ADDRESS>]:54114  200  -  GET      /readyz

but, I get no response from the API:
$ curl http://<IP_ADDRESS>:8080/v1/models
curl: (52) Empty reply from server

Did anyone get the GPT4ALL-J example working using Docker?

-v models:/build/models
      ^             ^
      |               path inside of your container
      path in your host

The host path should be something like: /home/wouter/docker/LocalAI/models
The path inside of the container should be /build/models
I get also these errors at the start of the container:
unexpected end of JSON input
But I ignore it currently.
@wouterverduin  Can you post your complete docker command + the output ?
My current way to spin it up is:
docker run -it --rm -v ~/LLM/models:/build/models:cached -p 8080:8080 -e "ADDRESS=<IP_ADDRESS>:8080" -e "DEBUG=true" -e "CORS=true"  -e "THREADS=8" -e "REBUILD=false"  quay.io/go-skynet/local-ai:v1.20.1

You can play arrount with the -e options
Starting LocalAI using 8 threads, with models path: /build/models
unexpected end of JSON input

 ┌───────────────────────────────────────────────────┐
 │                   Fiber v2.47.0                   │
 │               http://<IP_ADDRESS>:8080               │
 │       (bound on host <IP_ADDRESS> and port 8080)       │
 │                                                   │
 │ Handlers ............ 33  Processes ........... 1 │
 │ Prefork ....... Disabled  PID ................. 7 │
 └───────────────────────────────────────────────────┘
[<IP_ADDRESS>]:44416  200  -  GET      /v1/models

Also to get the list of loaded models:
curl http://localhost:8080/v1/models
{"object":"list","data":[{"id":"ggml-nous-gpt4-vicuna-13b.bin","object":"model"}]}

For me the issue is fixed. I just restarted the container with the default env vars and waited quite a bit longer, then suddenly the API started responding, with no change in the logs.

Thank you guys' feedback.
The binary inside the image is rebuilt at the start of the container to enable CPU optimizations for the execution environment, you can set the environment variable REBUILD to false to prevent this behavior.
And about the model path @finger42 already given a clear answer.

Because the whole thing does not work for me in docker, I am now trying to build it locally.
However, I am running into the same error as OP (just outside of docker, on the host machine).
Cmake throws a ton of warnings before it stops with
`CMake Error at tests/CMakeLists.txt:145 (set_target_properties):
set_target_properties called with incorrect number of arguments.'
Any ideas?

Okay, I figured it out.
Mind you, OP and I stumbled across
CMake Error at tests/CMakeLists.txt:145 (set_target_properties): set_target_properties called with incorrect number of arguments.
Which happens when you rebuild local-ai (either in docker or outside) and which is set as the default behaviour.
The solution presented here so far is to avoid rebuilding local-ai. Unfortunately, that didn't work for me as I needed to rebuild local-ai without avx2 support (which is active per default).
So, without further ado, the solution:
There is a set of double quotes missing in go-ggllm/ggllm.cpp/CMakeLists.txt in line 145:
It reads in the repo
 set(LLAMA_EXTRA_LIBS ${LLAMA_EXTRA_LIBS} ${ACCELERATE_FRAMEWORK})
but should read
 set(LLAMA_EXTRA_LIBS "${LLAMA_EXTRA_LIBS} ${ACCELERATE_FRAMEWORK}")
With this change, for me the build process goes through without the error.
Not being a software developer, unfortunately, I don't know yet how to make a PR to correct this myself. I am going to learn that but I thought it would be better to provide the solution faster. @mudler will have this fixed in no time whereas I would probably need a couple of days to set up an IDE, git, etc. just to make the PR.
Thanks @mudler for this wonderful project! I really admire what you have created here.

Hi, @gitwittidbit , thanks for your feedback. I wonder if this line would work if you do not rebuild the project? Here, go-ggllm/ggllm.cpp is an bounding project, and it was loaded by make command. It should not have this kind of issue.

Hi, @gitwittidbit , thanks for your feedback. I wonder if this line would work if you do not rebuild the project? Here, go-ggllm/ggllm.cpp is an bounding project, and it was loaded by make command. It should not have this kind of issue.

Yes, if you don't rebuild the project, an error in the source/build code won't be a problem. For me it was a problem because I needed to rebuild the project.
And if you do rebuild it and the build process stop with the error
CMake Error at tests/CMakeLists.txt:145 (set_target_properties): set_target_properties called with incorrect number of arguments.
the you can fix this by correcting line 145 in CMakeLists.txt.

Okay, I figured it out.
Mind you, OP and I stumbled across
CMake Error at tests/CMakeLists.txt:145 (set_target_properties): set_target_properties called with incorrect number of arguments.
Which happens when you rebuild local-ai (either in docker or outside) and which is set as the default behaviour.
The solution presented here so far is to avoid rebuilding local-ai. Unfortunately, that didn't work for me as I needed to rebuild local-ai without avx2 support (which is active per default).
So, without further ado, the solution:
There is a set of double quotes missing in go-ggllm/ggllm.cpp/CMakeLists.txt in line 145:
It reads in the repo  set(LLAMA_EXTRA_LIBS ${LLAMA_EXTRA_LIBS} ${ACCELERATE_FRAMEWORK})
but should read  set(LLAMA_EXTRA_LIBS "${LLAMA_EXTRA_LIBS} ${ACCELERATE_FRAMEWORK}")
With this change, for me the build process goes through without the error.
Not being a software developer, unfortunately, I don't know yet how to make a PR to correct this myself. I am going to learn that but I thought it would be better to provide the solution faster. @mudler will have this fixed in no time whereas I would probably need a couple of days to set up an IDE, git, etc. just to make the PR.
Thanks @mudler for this wonderful project! I really admire what you have created here.

I'll try to have a look soon - however you can skip building the gglm backend if you don't need it like this:
make BUILD_TYPE=... GRPC_BACKENDS="backend-assets/grpc/langchain-huggingface backend-assets/grpc/falcon-ggml backend-assets/grpc/bert-embeddings backend-assets/grpc/bloomz backend-assets/grpc/llama backend-assets/grpc/gpt4all backend-assets/grpc/dolly backend-assets/grpc/gpt2 backend-assets/grpc/gptj backend-assets/grpc/gptneox backend-assets/grpc/mpt backend-assets/grpc/replit backend-assets/grpc/starcoder backend-assets/grpc/rwkv backend-assets/grpc/whisper" build

Using the fix listed above fixed it for me

Adding the " didn't seem to fix it for me

For those trying this out on the Windows OS and facing the above issue, I got it working by following the below steps:

Replace the $PWD with the absolute path while mounting the volume and change the internal container path to /build/models
Remove the environment variable MODELS_PATH since this defaults to the mentioned value within the .env file in the repo

Sample command while using the CUDA enabled image is shared below. Note that I've manually downloaded the models along with the config yaml file into the ./models folder within the cloned repo.
docker run -ti --gpus all -p 8080:8080 -e THREADS=1 -v "C:\Users\XXX\YYY\LocalAI\models":/build/models localai/localai:v2.6.0-cublas-cuda12-ffmpeg-core


Legend: how to toggle visibility for each plottable

Should be fairly simple. I pulled the source code and did a quick test.
In ScottPlot.Plottable.ScatterPlot:
public bool ShowInLegend { get; set; } = true;
       public LegendItem[] GetLegendItems()
        {

if (!ShowInLegend) return null;
            var singleLegendItem = new LegendItem()
            {
                label = Label,
                color = Color,
                lineStyle = LineStyle,
                lineWidth = LineWidth,
                markerShape = MarkerShape,
                markerSize = MarkerSize
            };
            return new LegendItem[] { singleLegendItem };
        }

That seemed to work well, I can now choose if I want a plot to be displayed in the legend or not. Simply adding
 public bool ShowInLegend { get; set; } = true;

and
            if (!ShowInLegend) return null;

to all Plottables which don't return null on GetLegendItems should work.

Hi @CD-SailingPerf, thanks for the suggestion!
There is room to improve the API/discoverability/documentation, but current behavior of most (perhaps all) plottable objects is that if they have a Label property, they will appear in the legend. To toggle between showing/hiding any plottable in the legend, set that label to null or give it a string value. The legend rendering code will not list any item in the legend that has a null label. Knowing this may help you solve your problem 👍
However, I'll leave this issue open to track progress toward creating interfaces like IHasLegendItem and IHasLegendItems. Not all plottables should appear in the legend (e.g., scalebar), and some plottables have multiple items (e.g., grouped population plots). If plottables with legends had a bool ShowInLegend it would be easier to figure-out how to show/hide items in the legend. This seems like a better pattern than using magic null strings as well...


Only use Depth sensor to reproduce Sec.5 in publication?

❓ Questions and Help
In the Sec.5 of Habitat publication, the best learning-based baseline is using depth only.
If we want to reproduce this result, shall we only use the "DEPTH_SENSOR" in the ppo_pointnav.yaml? I saw the current ppo_pointnav.yaml uses both RGB and DEPTH sensors.
Thank you!

If you want to reproduce the results for the depth-only agent, yes, you should use only the depth sensor.


StoreKit 2 compatibility

Hello,
Is this library compatibile with new StoreKit 2 version or requires some changes?
Thanks.

Up


build databse schema

Congratulation on your first successfull merge. I am so proud of you. @NoubissiViany

Thanks @manwar for your availability and comprehension. I'm so happy to have a mentor like you


[volume.fsck] error: findExtraChunksInVolumeServers: purging volume 95: delete fileId 95,5c7af00000000: volume 95 is read only

Describe the bug
It seemed to me that deletion from read-only volumes should be allowed
System Setup
3.19-dev
weed -defaultReplication=010

Additional context
volume.fsck -v -reallyDeleteFromVolume
....
purging orphan data for volume 3501...
purging process for volume 1091.
purging files from volume 1091
purging orphan data for volume 1091...
purging process for volume 2462.
purging files from volume 2462
purging orphan data for volume 2462...
purging process for volume 95.
temporarily marked 95 on server fast-volume-2:8080 writable for forced purge
marked 95 on server fast-volume-2:8080 writable for forced purge
purging files from volume 95
purging orphan data for volume 95...
error: findExtraChunksInVolumeServers: purging volume 95: delete fileId 95,5c7af00000000: volume 95 is read only

echo "volume.list -volumeId 95" | weed shell | grep 'volume id:95'
          volume id:95 size:1728088 collection:"json" file_count:643 delete_count:639 deleted_byte_count:76537 read_only:true replica_placement:10 version:3 compact_revision:10 modified_at_second:1649420672
          volume id:95 size:1728216 collection:"json" file_count:643 delete_count:639 deleted_byte_count:76537 read_only:true replica_placement:10 version:3 compact_revision:10 modified_at_second:1664524707

after volume mark writable and run volume.fsck
error: findExtraChunksInVolumeServers: purging volume 95: delete fileId 95,2a7a38009421c80f00000000: sorted needle write error: write /data/json_95.sdx: bad file descriptor

The problem is that purging stops

It was also great to have a tool that from volume 95 will move the remaining 4 files to remove the broken volume file

Problem still here after two years...disappointed

> volume.fsck -forcePurging -reallyDeleteFromVolume -volumeId=7
total 7 directories, 2 files
dataNode:<IP_ADDRESS>:8181      volume:7        entries:9955    orphan:9955     100.00% 847183412B
temporarily marked 7 on server <IP_ADDRESS>:8181 writable for forced purge
marked 7 on server <IP_ADDRESS>:8181 writable for forced purge
purging orphan data for volume 7...
error: findExtraChunksInVolumeServers: purging volume 7: delete fileId 7,61b100000000: volume 7 is read only


Fix CryoTanks vref

I am not quite sure why this broke, but CryoTanks has its own .version
file and running NetKAN confirms that it is finding the correct one
For reference, the error is this:
AVC: Invalid path to remote GameData/KerbalAtomics/Versioning/KerbalAtomics.version, doesn't match any of: GameData/CryoTanks/Versioning/CryoTanks.version,

Looks good. Merging with thanks!


ssh-keyscan doesn't work for submodules on a different host

Some of my builds are failing, because they rely on submodules on a different host.
This means that while the repo provider's SSH key is scanned, and the repo is pulled (from bitbucket.org), when it comes to pull the submodules, the host verification (for github.com) fails.

Fixed in https://github.com/buildkite/agent/pull/509


'#' in file and folder names causes problems

If I enter a folder name in the web interface containing #, everything after # is ignored (treated as a comment?). If a file or folder is synced from the local folder using owncloud, it shows up in the web interface, but clicking on it leads to a 404.

Happens for me too. Unfortunately i put some files containing # to one of my davros installs via sync client (Syncovery) but am not able to delete of view or download them afterwards, although they exist physically.
WebUI and sync client cannot acces them. (Tried both).

& is another character that causes problems.  Also related to #15.

These are characters that have special meaning in URLs; I would hazard a guess that fixing this is just a matter of putting encodeURIComponent/decodeURIComponent in the right places.

I see the issue; generally we automatically uri-encode things but creating a new directory puts the new directory name in the path of a MKCOL. Should be a straightforward fix.

Fyi, for me the & was in a filename, not a folder name.  (Specifically, I uploaded a file named b&w.png, but clicking on it led to a 404.)


Remove deprecated fossa

Fossa's being removed / decomm'd. Removing for now until we move to a replacement

Fossa's being removed / decomm'd. Removing for now until we move to a replacement

We're blocked because of this in builds.
It seems to emit wrong warnings.

Same as for Cadence repo here: https://github.com/uber/cadence/pull/6212


Exercise the 'WRITE_TRUNCATE' feature.

See: #2326.

@tseaver This test case is really long, can we start to refactor common chunks out? Things like the flintstone names are definitely elsewhere, as are just creating the dataset.

@dhermes We could probably just close this PR:  I don't thing the WRITE_TRUNCATE feature is important enough to warrant a separate system test.  I pushed it up mostly so that @DannyLee12 could see a working example, when I was trying to reproduce #2326.

OK SGTM


Add an extra query/parameter to fetch without pagination

Is your feature request related to a problem? Please describe.
Most of the time I was to fetch my data in a paginated way, so I'm don't want to use
@QueryOptions({ pagingStrategy: PagingStrategies.NONE })

But in some specific scenarios, I don't want to have paginated data but I want to fetch the entire list.
I cannot reuse the generated queries as they require paging.first to be not null and >1
For example, the generated query would be:
type Query {
  users(
    """Limit or page results."""
    paging: CursorPaging = {first: 10}

    """Specify to filter the records returned."""
    filter: UserFilter = {}

    """Specify to sort results."""
    sorting: [UserSort!] = []
  )
}

input CursorPaging {
  """Paginate before opaque cursor"""
  before: ConnectionCursor

  """Paginate after opaque cursor"""
  after: ConnectionCursor

  """Paginate first"""
  first: Int

  """Paginate last"""
  last: Int
}

Because of that, I have to create a custom @Query.
Have you read the Contributing Guidelines?
Yes
Describe the solution you'd like
It would be nice to create an un-paginated query or support paging.first being null (or whatever other solution) to fetch the unpaginated list of records.
Describe alternatives you've considered
I'm creating a new query end point by hand.

Have you tried something like this:
NestjsQueryGraphQLModule.forFeature({
  imports: [TodoModule],
  resolvers: [
    {
      // Assuming Todo is decorated with `@QueryOptions({ pagingStrategy: PagingStrategies.NONE })`
      DTOClass: Todo,
      EntityClass: Todo,
      // ...
    },
    {
      DTOClass: Todo,
      EntityClass: Todo,
      pagingStrategy: PagingStrategies.CURSOR,
      read: {
        // Give a custom name to not conflict with the first resolver.
        many: { name: 'todoPaginated' },
      },
      // ...
    },
  ],
}),

Thanks @GP4cK , that did it


Can't download the the checkpoint folder

Hello
Thank you very much for your answer to my previous question. I appreciate this article very much and am very interested in it. I have tried to run the code. But i get error is'failed to perform copy command due to error: Login Credentials missing. No SAS token or OAuth token is present and the resource is not public'  So I can't download the the checkpoint folder andIR data  with azcopy. Hope to get your help, thank you.

Dear @YiFangN ,
Thank you for your interest in our work!
I carefully checked, and the problem seems to be related to the VinVL links from the OSCAR repository. Some other users experienced the same problem very recently, as it seems that the resource is no longer public and needs a SAS token to be accessed.
I solicited OSCAR developers to generate a SAS token also for the VinVL data here: https://github.com/microsoft/Oscar/issues/206#issuecomment-1711274382
Let's hope they solve the issue ASAP.
Thank you, and sorry for the inconvenience.

oh，we only wait for OSCAR developers to generate a SAS token. Thank you.


Allow package:version:create to run with codecoverage

What does this PR do?
set language in project-scratch-def.json to ensure scratch org is created in English to ensure apex unit test cases pass due top WITH ENFORCE_SECURITY. It also means that force:package:version:create with --codecoverage needs to explicitly reference the scratch org file.
What issues does this PR fix or reference?
Unable to build package version with codecoverage as org wasn't necessarily created in English and WITH SECURITY_ENFORCED require a user with correct perms
#
The PR fulfills these requirements:
[ ] Tests for the proposed changes have been added/updated.
[ ] Code linting and formatting was performed.
Functionality Before
<insert gif and/or summary>
Functionality After
<insert gif and/or summary>

@pozil this is a very nice way of achieving the same thing so I've reverted the change to the scratch org def file and incorporated the approach to the unit test and pushed a new commit


Android: No Credentials Found in 3.0.0-beta2

I have Digital Asset Links all setup for Android (instructions), but I am getting the following error in 3.0.0-beta2 when attempting to authenticate with existing credentials from rpId: myapp.com:
{
  "error": "NoCredentials",
  "message": "No viable credential is available for the user."
}

This credential already exists on my relying party domain, and it works perfectly on iOS, only Android is encountering this issue. Authentication request:
Passkey.get({
  rpId: 'myapp.com',
  timeout: 1800000,
  userVerification: 'preferred',
  challenge: encodedChallenge,
  allowCredentials: [], // expected to allow all credentials
});

@syntag Does downgrading to v2 help? The only changes made to android in v3 were an update to the underlying androidx library and error logging.


get 2 scores returned

Hi Mark,
I just pulled the so-frreqserver (which runs the same command line as yours)
docker pull securityonionsolutions/so-freqserver
docker run -p 10004:10004 securityonionsolutions/so-freqserver
How come it returns 2 scores when I query it? When I installed freq_server from scratch I never had that.
root@ubuntu:/opt# curl http://localhost:10004/measure/crimsoncore.be
(10.0239, 8.6545)
Cheers,
Luk

If the README is not a sufficient explanation you I recommend this video.
https://youtu.be/dfrh1FaFUic
Mark

On Sep 8, 2019, at 3:02 PM, gnomefish<EMAIL_ADDRESS>wrote:
Hi Mark,
I just pulled the so-frreqserver (which runs the same command line as yours)
docker pull securityonionsolutions/so-freqserver
docker run -p 10004:10004 securityonionsolutions/so-freqserver
How come it returns 2 scores when I query it? When I installed freq_server from scratch I never had that.
root@ubuntu:/opt# curl http://localhost:10004/measure/crimsoncore.be
(10.0239, 8.6545)
Cheers,
Luk
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.

Hey Mark, yeah this is great - thanks so much!
Luk

I think you probably got the code from the SANS blueteam fork.   They fork it so it stays synchronized with the courseware.  I think it’s a few revisions behind.


⚠ Bofrost.be has degraded performance

In 2a1576a, Bofrost.be (https://www.bofrost.be) experienced degraded performance:

HTTP code: 200
Response time: 2014 ms

Resolved: Bofrost.be performance has improved in 23ebd8b after 54 minutes.


Add "new starter" doc to community menu

https://www.pombase.org/documentation/getting-started
put at top of community menu
2nd item in "about" menu

Done!


Clicking “Add an ID” on obs edit for an obs without any photos should open Search Taxa

Right now, when you click “Add an ID” on obs edit for an observation without any photos, it opens the suggestions screen with an endless spinner. Instead, when there are no photos for an observation, add an ID should open the “Search Taxa” screen.

Fixed by 44c12e1af981e697462b4ffd11d83693cc7595a0, will be in the next release.


Voice activated macros

Description of the new feature / enhancement
Perform Macros, or certain actions like opening specific folders or files using user defined voice commands
Scenario when this would be used?

Easy access for deep nested folders without the need for many shortcuts

Macros are self explanatory as a mouse/keyboard only has so many buttons or memorable key combinations so being able to come up with a voice command would be very useful

Quickly opening apps without the need for search
User defined voice commands to keep dictionary small and customizable for different use cases

Supporting information
No response

So basically, a new Cortana? I've seen something on YouTube once, it was named Jarvis, after the Iron Man movies. Looked very sofisticated.

Well having it integrated into Cortana would be even better but Microsoft development with voice assistants seems stagnant and far behind. I am not suggesting a fully fledged voice assistant that replies back or can understand a different way of phrasing something, but rather a lightweight/user customizable voice activated macro's/file actions since that's what Cortana and Microsoft's other voice assistant lacks and it's incredibly useful for anyone who has tried mouse activated macros for example

Good idea but i don't think PowerToys would build this style interaction out.  This is actually a pretty massive undertaking for our small team.

I've seen something like that on YouTube a while ago. Called Jarvis.


Add YOLO Loose format

Summary

Ticket no. 104512
Currently, YOLO format requires too strict directory structure and too many meta files.
Add YoloLooseImporter and revisit notebooks/06_tiling.ipynb to use it.
Add documentation for YoloLoose format.

How to test
I added tests to cover this change and made some refactoring of the existing tests by moving some tests to tests/unit/data_formats/test_yolo_format.py.
Checklist

[x] I submit my changes into the develop branch
[x] I have added description of my changes into CHANGELOG
[x] I have updated the documentation accordingly
[x] I have added tests to cover my changes
[x] I have linked related issues

License

[x] I submit my code changes under the same MIT License that covers the project.
Feel free to contact the maintainers if that's a concern.
[x] I have updated the license header for each file (see an example below)

# Copyright (C) 2023 Intel Corporation
#
# SPDX-License-Identifier: MIT

Codecov Report
Patch coverage: 84.75% and no project coverage change.

Comparison is base (21755d3) 78.59% compared to head (4596f11) 78.60%.

Additional details and impacted files
@@            Coverage Diff            @@
##           develop     #856    +/-   ##
=========================================
  Coverage    78.59%   78.60%
=========================================
  Files          198      200     +2
  Lines        24377    24497   +120
  Branches      4932     4950    +18
=========================================
+ Hits         19159    19255    +96
- Misses        4118     4133    +15
- Partials      1100     1109     +9

Flag
Coverage Δ

macos-11_Python-3.8
?

ubuntu-20.04_Python-3.8
78.60% <84.75%> (+0.01%)
:arrow_up:

windows-2019_Python-3.8
?

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files
Coverage Δ

datumaro/components/format_detection.py
93.54% <ø> (ø)

datumaro/components/importer.py
89.68% <ø> (ø)

datumaro/plugins/data_formats/yolo/importer.py
81.39% <81.39%> (ø)

datumaro/plugins/data_formats/yolo/base.py
87.50% <84.74%> (-2.33%)
:arrow_down:

datumaro/components/dataset_base.py
74.69% <100.00%> (ø)

datumaro/components/media.py
83.56% <100.00%> (ø)

datumaro/plugins/data_formats/yolo/format.py
100.00% <100.00%> (ø)

datumaro/util/definitions.py
100.00% <100.00%> (ø)

datumaro/util/os_util.py
66.66% <100.00%> (+1.96%)
:arrow_up:

... and 1 file with indirect coverage changes
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.


Suggestion: Add notion of SubTask

Today we have tasks such as tasks.classification.mutli_class that are very general by using things like: class_type then we can have sentiment and emotion classification under the same task by using AddFields(fields={"class_type":"sentiment") for sentiment for example.
I suggest to add a concept of SubTask that is also a Task but can be made by filling fields of the Task it inherits from.
For example tasks.classification.mutli_class.sentiment_extraction:
SubTask(parent="tasks.classification.mutli_class", with={"class_type": "sentiment"})

That way you can enjoy both worlds: (1) have very general tasks with templates that can fit many tasks (2) when needed you can create specific template for specific tasks.

I think different  tasks have both different defaults and different field names.  It's a question of whether  adding a new concept will have a significant advantage over just reusing the basic building blocks (metrics, templates classes, post processors).
In general, I think tasks should have the options for default field names (e.g. "text_type": "text")


Is there an aim to expose a RESTful interface for developers to consume data?

I am a developer with no real knowledge of Java, but this seems like a great tool/framework to poll devices for data.
I would like a simple way to deploy this and be able to ingest data into Elastic Logstash. Is there a simple interface that I can do this through? Perhaps even a RESTful one?
Kind regards,

I don't see a good way to do that without writing java code. Leshan is a java library, the idea is to use it to develop easily your own java server supporting LWM2M protocol.


Reproducing your results on validation set

First thank you for your fantastic work and the codebase you provided.
Recently, I've been trying to reproduce your result (Mix-Teaching + MonoFlex) on validation set.
I did 3 rounds of training, and got a best result of 21.3691 (AP40, moderate Car 3D) on validation set, which is about 0.9 less than your 22.27 baseline. I would like to know if I made some mistake while reproducing your results. Here are my settings:
Round 1
Followed your suggestion in another issue (https://github.com/yanglei18/Mix-Teaching/issues/5#issuecomment-1703683316). For the first round, I trained 5 MonoFlex models only for 100 epochs in the supervised mode. Then I did pseudo-labeling.
Round 2 and 3
Starting from round 2, I initialized all the student model from the corresponding best pth from previous round. (like a parallel initialization, as shown in the following figure).

I trained each model on round 2 and 3 for 300 epochs in the semi-supervised model.
I finally got the best result of 21.3691 at the round 3, and 19.84 average mAP for 5 models.
I'm wondering if I did something wrong while reproducing your results. Looking forward to your reply. Thank you in advance.

Thank you for your attention to our work.
For each training round, we initialize all the student models as follows:

Thank you for your attention to our work. For each training round, we initialize all the student models as follows:

Thank you for your quick reply. However I still have some confusion, hope you can help me with it.
From my understanding, you're training 3 rounds, 1 with supervised mode 100 epochs, 2 with ssl mode 300 epochs.
You choose one best model to initialize all models of next round.
But do you initialize with the final pth (model_final.pth) or the best pth (model_moderate_best_soft.pth)?
Thank you again!


Refactor core + unit tests; Preparation for moving core parts away

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.Anton Hinz seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.You have signed the CLA already but the status is still pending? Let us recheck it.


Favicon

It would be nice if the returned metadata included links to the favicon. Do you think such a feature is in scope of this package?

We should already be returning the favicon - so maybe the code for doing so needs tweaking.
https://github.com/jacktuck/unfurl/blob/76cab79ec1fbc02e9e3e2e928d224c4c52b8a26b/src/index.ts#L195
Do you have an example where the favicon is not being picked up?

I was not looking at the source code, I was looking at the Metadata type that is described in the readme, which does not mention the favicon. The favicon is indeed being extracted correctly in the few tests I did.
Maybe the readme can link directly to the TypeScript Metadata type in the source code instead of repeating it?


Add book_offers RPC tests (RIPD-1283):

Migrate orderbook-test.js to cpp tests. Provide
coverage for error conditions in book_offers
RPC method.

Current coverage is 64.57% (diff: 100%)

Merging #1851 into develop will increase coverage by 0.14%

@@            develop      #1851   diff @@
==========================================
  Files           704        704
  Lines         50747      50747
  Methods           0          0
  Messages          0          0
  Branches          0          0
==========================================
+ Hits          32693      32768    +75
+ Misses        18054      17979    -75
  Partials          0          0

Powered by Codecov. Last update 8e9f959...ccaa51f

👍

:+1: I did find a minor formatting nit, you're call if you want to fix that. But passed either way.

Merged as 05e7373086769790a2f7a559631016976c5526c5


FairStaking-2

We are FairStaking, professional validator. We manage and secure PoS based blockchain and nodes supporting many blockchain protocols on Testnet and Mainnet. We was participating on Namada Trusted Setup and we would like to support more Namada on Public Testnet.
Official Website : https://fairstaking.com
Discord ID : aliefaisala#3118
Telegram : aliefaisala
Twitter : fairstaking

I've merged the other PR


Avoid using bare raise_error

We (or are going to) recommend people don't use a bare raise_error so we shouldn't either :D

These could all be expect { }.to fail given we've defined a fail helper method:
https://github.com/rspec/rspec-mocks/blob/40911d52d71fbc6283568356113789ef85b39343/spec/support/matchers.rb#L3-L5

I changed mine and made them all consistent :P

Decided I didn't care enough about fail_with(&block) vs fail(&block) and changed them

Thanks, merged.


[NeedsReview] B07902117 陳漱宇

A Pull Request (PR) should explain why we need this PR and how you implement it, so others could understand it quickly.
Since this is just a homework, you do not need to explain why and how.
Do NOT change the status to NeedsReview if you do not want to be graded yet.
Please fill in the following questions as feedback. It is totally optional and would not be graded.
What is the most challenging part in this homework?
Is this homework helpful for you?
Is there any suggestion?

PR readiness check list

[  ] Did it pass the Flake8 check?
[  ] Did you test this PR?
[  ] Did you change the title of this PR to the correct format ([status] student_ID)?

Do NOT send two PR. It's a duplicate of #150

Do NOT send two PRs. It's a duplicate of #150

I had changed the previous name "Needs Review" to "test".

-5 for duplicated PRs

@amjltc295 I have added some commit messages to my repo. Is it okay now?


batch_size

hello, when i set 2 to sampler_per_gpu in /projects/configs/surroundocc/surroundocc.py，the problem is shown as follows:
RuntimeError: stack expects each tensor to be equal size, but got [62812, 4] at entry 0 and [43226, 4] at entry 1
this is my training shell code
CONFIG=./projects/configs/surroundocc/surroundocc.py
GPUS=2
SAVE_PATH=./work_dirs/surroundocc
PORT=${PORT:-28108}
NCCL_DEBUG=INFO
PYTHONPATH="$(dirname $0)/..":$PYTHONPATH
CUDA_VISIBLE_DEVICES=0,1 python -m torch.distributed.launch --nproc_per_node=$GPUS --master_port=$PORT
$(dirname "$0")/train.py $CONFIG --work-dir ${SAVE_PATH}  --launcher pytorch ${@:4} --deterministic
distributed training, 2gpus i used.
looking forward to your reply, thanks!

Hi, we do not test the case that sample_per_gpu > 1 and in our experiment we fix sample_pre_gpu as 1. I think the bug maybe caused by dataloader since the the shape of occupancy ground truth is different in different sample.


bazel: add --config=remote-asan with vptr checks.

Signed-off-by: Piotr Sikora<EMAIL_ADDRESS>

Ping?


stricter types, throws error if from > to, devcontainer

There were some parametric types which are now Union{Month, Year} #6
If from>to there is now an error that is thrown, tests are added for this behavior. #10
Config files for a devcontainer are added, I believe codespaces are now generally available

Other comments/questions:

The new error looks good to me.
I'm indifferent to the devcontainer but if you would use it or think others would then fine by me

I added a commit using just Dates.Period but I need to change it to {T<:Dates.Period} so that users can define custom types? Or will it work as is?
I use the devcontainer.

Better to use {T<:Dates.Period} over just Dates.Period. The former will actually create a different concrete type for whatever T the user gives, while the latter will always have to be able to contain any Period subtype, making it less efficient (performance and memory)

I'm having trouble finding support for the use of parametric types over abstract types here, I looked at these threads -

https://discourse.julialang.org/t/difference-between-function-that-accepts-abstract-types-and-another-that-uses-type-parameters/61687
https://discourse.julialang.org/t/elaboration-on-parametric-methods/61531

The manual notes:

the two types have different representations in memory:
An instance of Point{Float64} can be represented compactly and efficiently as an immediate pair of 64-bit values;
An instance of Point{Real} must be able to hold any pair of instances of Real. Since objects that are instances of Real can be of arbitrary size and structure, in practice an instance of Point{Real} must be represented as a pair of pointers to individually allocated Real objects.

It will really hurt performance of downstream functions if the concrete return type is not known in advance.
If using the AbstractType, Julia can't be sure what type will return. This can be confirmed with the introspective macro @code_warntype tells us this:
julia> using Dates, ExperienceAnalysis

julia> using BenchmarkTools

julia> struct Anniversary1 <: ExperienceAnalysis.ExposurePeriod
           pol_period::Dates.Period
       end

julia> struct Anniversary2{T<:Dates.Period} <: ExperienceAnalysis.ExposurePeriod
           pol_period::T
       end

julia> """
       Simple function to use a a basic benchmark
       """
       function f(period)
               a = Date(2010,1,1)
               b = Date(2020,5,4)
               length(a:period.pol_period:b)
       end
f

julia> @code_warntype f(Anniversary1(Year(rand(1:3))))
MethodInstance for f(::Anniversary1)
  from f(period) in Main at REPL[14]:4
Arguments
  #self#::Core.Const(f)
  period::Anniversary1
Locals
  b::Date
  a::Date
Body::Any
1 ─      (a = Main.Date(2010, 1, 1))
│        (b = Main.Date(2020, 5, 4))
│   %3 = a::Core.Const(Date("2010-01-01"))
│   %4 = Base.getproperty(period, :pol_period)::Period
│   %5 = (%3:%4:b::Core.Const(Date("2020-05-04")))::StepRange
│   %6 = Main.length(%5)::Any
└──      return %6

julia> @code_warntype f(Anniversary2(Year(rand(1:3))))
MethodInstance for f(::Anniversary2{Year})
  from f(period) in Main at REPL[14]:4
Arguments
  #self#::Core.Const(f)
  period::Anniversary2{Year}
Locals
  b::Date
  a::Date
Body::Int64
1 ─      (a = Main.Date(2010, 1, 1))
│        (b = Main.Date(2020, 5, 4))
│   %3 = a::Core.Const(Date("2010-01-01"))
│   %4 = Base.getproperty(period, :pol_period)::Year
│   %5 = (%3:%4:b::Core.Const(Date("2020-05-04")))::Core.PartialStruct(StepRange{Date, Year}, Any[Core.Const(Date("2010-01-01")), Year, Date])
│   %6 = Main.length(%5)::Int64
└──      return %6

The fact that the function returns an Any type is more apparent with the red warning highlighting in the Julia REPL:

Thanks I misunderstood. struct definitions are now parametric.
I didn't write the functions with parametric types as they were before -
function exposure(p::AnniversaryCalendar{T,U}, from, to, continued_exposure=false) where {T,U}

Instead they are written like -
function exposure(p::AnniversaryCalendar, from::Date, to::Date, continued_exposure::Bool=false)

But it seems like this might not be an issue, following your example on use of @code_warntype I see only blue.

Thanks!


No Module after Import SlideMenuController.swift

As a subject
When I'm importing this show error , No Such module :(

You used cocoapods?
Try a "clean" from Xcode, and try again.

I'm also having this error.
Using cocoapods & did "clean" project

Just add Xcodeproject on your project and build again
dont forget to add framework SlideMenuControllerSwift

any solution to this issue?

https://github.com/dekatotoro/SlideMenuControllerSwift/labels/help wanted

still no solution.. plz help

Having the same issue

I had the same issue when adding SlideMenuControllerSwift as well.
First I did a clean and build which solved my issue
The other thing I can think of is that after installing a pod through cocoapods you need to stop using the xcode project and switch over to the workspace created by cocoapods.
The last possibility is that your project settings aren't configured the right away, which might mean that your project is not finding the installed pod. It is most likely one of the first two issues though.

check this in build setting.

Mr. Yuji Hato dekatotoro.
Please help us getting cleared. I hope u know why we getting this. Otherwise u too dont know how it has to be sorted out.

@yamamotoakiyoshi thanks alot, I quick the xcode and then run pod install. Now it worked for me. thanks


File input not always populated in edit form

When using big files or api's behind the url used when creating the file, the file input doesn't get populated always which makes the whole validation form to fail and the submit button can't be used being disabled.
Eg in the image below, also in the debug the files type is no longer 'hidden' it defaults to 'ipfs' when this is reproduced.

So this is related to big files. Any proposed solution? And what would be the effort?

@bogdanfazakas let's move this to someone else ;)

agreed, I was not able to reproduce the issue (tried big files 1gb, url, ipfs etc, rest-api's etc),
tho if we can reproduce it somehow i'm happy to help with fixing it :)

This is so weird, but I found a way to reproduce it.

Go on your nework tab
Set "slow 3g"
Refresh

If the internet connection is slow, for some reason the file input gets override / cleared.
https://www.loom.com/share/982976088011432f97e232aec528f7e3?sid=1f54558a-8dcc-41ca-b2fb-778d39c08c3e
I'll look into it 👍🏽


test for identity and tagged linear operator

for identity linear operator

created an input structure with jax.ShapeDtypeStruct (ref)
created an identity linear operator with lx.IdentityLinearOperator (ref)
finally tested 3 simple assert cases

for tagged linear operator

constructed a matrix with the tags
created a matrix linear operator with the corresponding tags with lx.MatrixLinearOperator (ref)
created a tagged operator with the matrix linop using lx.TaggedLinearOperator (ref)
finally tested 3 simple assert cases

LGTM!


[SSCP][libkernel][llvm-to-host] Assume that local memory is always aligned to 512 byte boundaries

The local memory pointer for the host is constructed to be aligned to page sizes in omp_queue.cpp. So far we haven't exploited this.
This PR asserts to the optimizer that the local memory segment on host is at least aligned to 512 bytes, which seems a safe assumption given that the page size is larger on all relevant systems.

@fodinabor Good idea, done!


Setting cluster routing to primaries before deleting pod causes forbidden replica allocation error

After we added the jvm setting for all OS nodes to the opensearachcluster CR, only the coordinator pods bounced as expected. The master pods won't bounce because of the following allocations error and the OS cluster stays yellow after all the coordinator pods bounced hours ago.
"explanation" : "replica allocations are forbidden due to cluster setting [cluster.routing.allocation.enable=primaries]"

Is that an expected behavior? Is there any reason why we need to move the cluster routing to primary instead of keeping the default (all) setting before deleting the pods?
Should we also add a new field in opensearchcluster CR to let the user customize that behavior.
May be consider the new field calls ClusterShardAllocationBeforePodDelete or ClusterRoutingBeforePodDelete.

@prudhvigodithi, facing that issue again, we need to remove the cluster.routing.allocation.enable=primaries at the end of the process .

@prudhvigodithi Facing this issue, can you please look into this

Hey sure let me take a look at this today and I will post some updates, thanks

Hey @aarontams to help further can you please share your yaml file used?

apiVersion: opensearch.opster.io/v1
kind: OpenSearchCluster
metadata:
  finalizers:
  - Opster
  generation: 7
  name: opensearch-cluster
  namespace: logging
spec:
  confMgmt:
    smartScaler: true
  dashboards:
    enable: true
    image: .../opensearch-dashboards:1.2.3
    opensearchCredentialsSecret: {}
    replicas: 2
    resources:
      limits:
        cpu: 500m
        memory: 1Gi
      requests:
        cpu: 500m
        memory: 1Gi
    version: 1.2.0
  general:
    httpPort: 9200
    image: .../opensearch:1.2.3
    serviceName: opensearch-cluster
    vendor: opensearch
    version: 1.2.3
  nodePools:
  - component: masters
    diskSize: 2000Gi
    jvm: -Xms6g -Xmx6g
    persistence:
      pvc:
        accessModes:
        - ReadWriteOnce
        storageClass: oci-bv
    replicas: 5
    resources:
      limits:
        cpu: 3000m
        memory: 8Gi
      requests:
        cpu: 1000m
        memory: 8Gi
    roles:
    - master
    - data
  - component: nodes
    diskSize: 2000Gi
    jvm: -Xms4g -Xmx4g
    persistence:
      pvc:
        accessModes:
        - ReadWriteOnce
        storageClass: oci-bv
    replicas: 3
    resources:
      limits:
        cpu: 3000m
        memory: 6Gi
      requests:
        cpu: 1000m
        memory: 6Gi
    roles:
    - data
  - component: coordinators
    diskSize: 50Gi
    jvm: -Xms2g -Xmx2g
    persistence:
      pvc:
        accessModes:
        - ReadWriteOnce
        storageClass: oci-bv
    replicas: 2
    resources:
      limits:
        cpu: 500m
        memory: 3Gi
      requests:
        cpu: 500m
        memory: 3Gi
    roles:
    - ingest

@swoehrl-mw any news on this? we see the same issue where after the securityconfig update job has run and all opensearch pods have been restarted we are stuck with this
"explanation":"replica allocations are forbidden due to cluster setting [cluster.routing.allocation.enable=primaries]

I have to manually set the routing to all afterwards:
curl -XPUT -H "Content-Type: application/json" -H "Accept: application/json" -k https://admin:...@localhost:9200/_cluster/settings -d '{
  "transient": {
    "cluster.routing.allocation.enable": "all"
  }
}'

Hi @balpert89. @prudhvigodithi was the last to try and debug this, not sure what the current status is.


[Enhancement] Adding TRIM support for x amount of jobs ran

Hello,
As I am plotting away happily with Plotman, I did noticed a serious performance degradation of my IO. Disk IO would drop to the 150 MB/s range, which is indicative of the SSD needing to read-write-read the cells to fit in new temporary plots.
After I discovered this behavior, I stopped all plotting processes immediately (probably Plotman can add a "kill all" command), and issued sudo fstrim -a -v. This operation effectively removes old temporary plot residues and releases the cache. Now my SSD is back to normal, but I do expect it will get filled up again, even if the temporary plots are finalized and moved to the destination folder.
What I am purposing here is that Plotman can add fstrim to the existing framework. Since Plotman already has a phase monitoring tool built-in, it would be hell of a lot easier to add a "TRIM after x jobs completed". For a 1TB SSD, this could be set to 3, meaning for every 3 jobs completed, fstrim will run once.
More about fstrim here: https://man7.org/linux/man-pages/man8/fstrim.8.html#:~:text=fstrim is used on a,unused blocks in the filesystem.

The general recommendation is to mount ssd's with the discard option.  You can also use the fstrim timer service if you prefer periodic trims.  There is some debate about optimal scheduling of trims, but I'm skeptical that Plotman is where trim scheduling should happen.  Let me try to loop in an expert.

It is very simple:
Chia writes a lot of data - an amount that no sane person will ever write consistently for days on end. Mount SSD with DISCARD flag is great and all, but it definitely did not foresee there will be such a day where a group of Linux operators consistently writing hundreds of TBs of data per day into their little NVMe SSDs.
If I plot 7 jobs in parallel, a 2TB NVMe SSD gets filled in a bit over 6 hours. In that sense, every page of the SSD will have been written on, and there will be nothing left for the next job. I mean - if Plotman can do it, that'd be great. If not, this needs to be done for everyone that's plotting out there anyway if they want their temp drive to last a little bit longer.

I understand lots of data is being written.  My understanding is that
discard addresses this.  See e.g.
https://wiki.archlinux.org/index.php/Solid_state_drive#Continuous_TRIM
and the "enabling TRIM" section of
https://chiadecentral.com/chia-blockchain-ssd-buying-guide/
I'm happy to be proven wrong, but this is not just a Plotman thing, if more
frequent trim's were helpful, that would apply to all chia plotting, and in
the discussions of trim and discard I've been a part of over the past year
I haven't ever heard anyone recommend more frequent manual trim'ing.  If it
were helpful to trim more often than 'discard' does, I'd like to see some
additional evidence of that.
Check with storage_jm@ on keybase; he's the one that wrote the chia
decentral guide and has a fair bit of knowledge of the various trim
implementations.
On Sun, Apr 25, 2021 at 7:43 PM Michael Huang @.***>
wrote:

It is very simple:
Chia writes a lot of data - an amount that no sane person will ever write
consistently for days on end. Mount SSD with DISCARD flag is great and all,
but it definitely did not foresee there will be such a day where a group of
Linux operators consistently writing hundreds of TBs of data per day into
their little NVMe SSDs.
If I plot 7 jobs in parallel, a 2TB NVMe SSD gets filled in a bit over 6
hours. In that sense, every page of the SSD will have been written on, and
there will be nothing left for the next job. I mean - if Plotman can do it,
that'd be great. If not, this needs to be done for everyone that's plotting
out there anyway if they want their temp drive to last a little bit longer.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/ericaltendorf/plotman/issues/167#issuecomment-826463537,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ARPZIFXYTF7PEIKRBRIFMMTTKTHNFANCNFSM43RXR4XQ
.

plotman could read the fstab file and see if discard has been added as an option.
If not I agree with the OP that running fstrim every 3 plots per 1 tera SSD is a sensible option for PlotMan to do in order to keep peak performance of the SSD drives.

Note that the default for the fs trim timer is once a week. That's about 14x too late if you plot 3 plots every 12 hours. Like OP said, it's not got Chia plotters in mind.

I can totally how adding fstrim to PlotMan would be a real gain for ppl.

Automatically doing the wrong solution doesn't seem like a thing we need to add.  I do imagine at some point adding a plotman config check command which could reasonably make commentary on tmp drive configuration such as this.


Added the ability to export lists to a text file

I would like the ability to export the list to a text file (e.g. json).
Could you please consider adding it?

I think the export/import feature is a good idea.
Please wait for a little while longer.

I am looking forward to it.


May delete label when using replace  action in relabel_configs

Bug Report
What did you do?
prometheus config file such as:
scrap_configs:

job_name: xxx
relabel_configs:

source_labels: [pod]
action: replace
target_label: "pod_name"

What did you expect to see?
For two metrics, such as:
metric_normal("test":"aaaa", "pod": "bbbb")
metric_abnormal("test":"cccc", "pod_name": "dddd")
For "metric_normal", the "pod" should rename to "pod_name", for "metric_abnormal", should keep the "pod_name".
What did you see instead? Under which circumstances?
For "metric_normal", the replace action works well, and rename "pod" to "pod_name", but for "metric_abnormal", the “pod_name” label will be dropped.
I checked the source code,  and found why this is happened. The "replace" action source code is :
case Replace:
	indexes := cfg.Regex.FindStringSubmatchIndex(val)
	// If there is no match no replacement must take place.
	if indexes == nil {
		break
	}
	target := model.LabelName(cfg.Regex.ExpandString([]byte{}, cfg.TargetLabel, val, indexes))
	if !target.IsValid() {
		lb.Del(cfg.TargetLabel)
		break
	}
	**res := cfg.Regex.ExpandString([]byte{}, cfg.Replacement, val, indexes)**
	if len(res) == 0 {
		lb.Del(cfg.TargetLabel)
		break
	}
	lb.Set(string(target), string(res))
	glog.Infof("after labels: %v", lb.Labels())

For "metric_abnormal", the "val" is an empty string. and "cfg.Regex.ExpandString([]byte{}, cfg.Replacement, val, indexes)" return an empty string, then delete the target label. I wonder why should delete the target label?  also shall we just return when "val" is null?

Are you sure you're using relabel_configs and not metric_relabel_configs? What version is this?

I‘m sure using the "relabel_configs".  The version is "2.10", I also tried the source codes from "master" branch, and still have the problems.

Can you share exactly what's on the /metrics for these, and this target's row on the Target status page?

/metrics like:
curl http://xxx:5678/metric
HELP container_request_gpu_memory request of gpu memory in MiB
TYPE container_request_gpu_memory gauge
container_request_gpu_memory{container_name="gpu",namespace="default",node="xxx",pod_name="xxx",req_of_gpu_memory="total"} 2560
container_request_gpu_memory{container_name="gpu",namespace="default",node="xxx",pod_name="xxx",req_of_gpu_memory="total"} 2560
"Target status page", do you mean this?

hi, @brian-brazil . There is an easy way to reproduce the problem. You can collect any metrics, such as  metric_name("label1":"xx", "label2":"xx"), the metric has the label named "label2", then set the config like:
relabel_configs:

source_labels: [xxx] (xxx must not equal to the value of any label)
action: replace
target_label: "label2"

then the "label2" will be dropped.

Okay, that'd be a bug then.

Is this a bug? The default regex is (.*), so I would expect matching an empty string/missing label like in PromQL is the desired behaviour.
Either way, adding
regex: (.+)

to the relabel config makes it explicit that you only want to match when your source_labels have a value.

hi, @csmarchbanks . Yes, we have added the "regex: (.+)" to match non-empty value, to avoid dropping the label. While this based on we have checked the resource codes and know how it works.

hi, @brian-brazil,  it is "metric_relabel_configs", not "relabel_configs", so sorry for that!

In that case, this is working as expected.

Is there any tricks to make metric_relabel_configs not to drop the existing target label if source label is not found?

@jnummelin Please don't ask usage questions on issues as it makes things hard to follow, the prometheus-users mailing list is a better place for them.

Going through our bug scrub, this seems to be behaving as expected so closing.


Script to enable full chain issuance across multiple chained credentials to a data attestation of a signed report.

This PR includes:

Script to enable full chain issuance across multiple chained credentials to a data attestation of a signed report.

Adding TEL out of order processing.

Added parameters to issue, list and sign kli commands.

Added saidify and vc export kli commands.

Signed-off-by: pfeairheller<EMAIL_ADDRESS>

Codecov Report

Merging #187 (5d869da) into master (d376d6f) will decrease coverage by 0.30%.
The diff coverage is 42.57%.

@@            Coverage Diff             @@
##           master     #187      +/-   ##
==========================================
- Coverage   90.49%   90.19%   -0.31%
==========================================
  Files         153      155       +2
  Lines       35122    35313     +191
==========================================
+ Hits        31785    31851      +66
- Misses       3337     3462     +125

Impacted Files
Coverage Δ

src/keri/app/habbing.py
85.12% <ø> (-0.03%)
:arrow_down:

src/keri/app/kiwiing.py
80.83% <ø> (+0.07%)
:arrow_up:

src/keri/core/eventing.py
78.61% <ø> (-0.02%)
:arrow_down:

tests/conftest.py
93.57% <ø> (ø)

src/keri/app/cli/commands/vc/list.py
32.92% <6.66%> (-0.84%)
:arrow_down:

src/keri/app/cli/commands/vc/issue.py
26.21% <14.28%> (-4.74%)
:arrow_down:

src/keri/vdr/viring.py
82.35% <15.38%> (-1.37%)
:arrow_down:

src/keri/app/cli/commands/vc/export.py
27.61% <27.61%> (ø)

src/keri/vdr/verifying.py
77.72% <33.33%> (-1.28%)
:arrow_down:

src/keri/vdr/credentialing.py
83.03% <56.81%> (+0.15%)
:arrow_up:

... and 12 more

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 d376d6f...5d869da. Read the comment docs.


Makefile unable to install cocoapods on M1 Macbook Air

When installing via the makefile bootstrap, cocoapods crashes with the following:
/Users/jerome/Documents/alpha-wallet-ios/vendor/bundle/ruby/2.6.0/gems/ethon-0.12.0/lib/ethon/curls/classes.rb:35: [BUG] Illegal instruction at 0x0000000100870000 ruby 2.6.8p205 (2021-07-07 revision 67951) [universal.arm64e-darwin21]

Upgrading to Ruby 3.0.3 via rbenv seems to work. But this means I had to delete the Gemfile.lock file to get Ruby 3.0.3 compatible versions of the Gems. Is this an acceptable work around?

Is this an acceptable work around?

Yes, I think so. And I think it's the right way to go, not so much a workaround :)
If it poses a problem for some people to upgrade to Ruby 3.0.3, then they can bypass the Makefile for now.

Is this an acceptable work around?

Yes, I think so. And I think it's the right way to go, not so much a workaround :)
If it poses a problem for some people to upgrade to Ruby 3.0.3, then they can bypass the Makefile for now.

Ok so I will include instructions on how to build with and without the make file.

Nah. Just fix the make file and leave it for now and we will see what happens. The product is more important that instructions for others to build it.

@eviltofu Actually, this is a bit strange. Can you specify the simplest command(s), without involving using make to produce the error prior to the PR? It seems to be working for me, with Ruby 2.7. If you can reproduce it, can you clone the repo to another folder and repeat that to be sure? Here's what worked for me:
bundle
bundle exec pod install

(maybe the problem is with the Makefile and how it specifies the vendor directory. There's switch to bundle which does that actually, but let's not get into it yet if that's not the problem).

@eviltofu Actually, this is a bit strange. Can you specify the simplest command(s), without involving using make to produce the error prior to the PR? It seems to be working for me, with Ruby 2.7. If you can reproduce it, can you clone the repo to another folder and repeat that to be sure? Here's what worked for me:
bundle
bundle exec pod install

(maybe the problem is with the Makefile and how it specifies the vendor directory. There's switch to bundle which does that actually, but let's not get into it yet if that's not the problem).

This will work. The crash only happens when you do bundle exec pod install --repo-update which was in the original makefile. Pull Request #3507 was to simply remove the --repo-update command line option.

Got it. Thanks for the clarification.


More Green Tests in DiagrammedAssertionsSpec

Rewritten some tests in DiagrammedAssertionsSpec so that it passes in both Scala 2.x and Dotty.

@cheeseng Thanks, I just noticed this PR. Now I have made Dotty version conforms to Scala2, so it seems we don't need this fix.


DROOLS-1235 MBean naming rework

reflecting internal api / implementation of KieContainerImpl
constructor change, requiring a container Id (normally a new
KieContainerImpl is called via KieServices so transparently, but in this
case is explicitly required manual management).

ref: https://github.com/droolsjbpm/drools/pull/866/files#diff-e543bc3de6e92024156f45b7159043d0L106
ref: droolsjbpm/drools#866

Unless there's any strong objections.. this gets a +1 from me to merge (when green).

@tarilabs Why close?

Sorry @etirelli  @manstis , I'm just realizing the reflecting internal api / implementation new KieContainerImpl() is being called also in Optaplanner, and who know what I'll found out next. At this point, I think I will manage the case internally (anyway is being a deliberate internal call) and having the ID with custom marker + uuid done directly there. Possibly I'll mark constructor deprecated, so can be managed on all other projects in due time.


Report file name should include date and time

Append the date and time to the report file name so that reports are preserved and can be compared.
eg, instead of
ExchangeAnalyzerReport.html
use
ExchangeAnalyzerReport-20160117-0930.html
Suggested by Jeff Gullet. Should be easy to implement, I have some code from another script that will do this.

It would be good to accept a parameter (-ReportFile?) that allows the administrator to specify an output path for the html file. This would make the script a lot easier for anyone who may want to automate it and have it written out to a UNC share for monitoring systems and the like.

@chrisbrownie agreed.
A non-mandatory parameter with no default value:
    [Parameter( Mandatory=$false)]
    [string]$FileName,

Then, if no report file specified by user, calculate a unique report file name based on time and date. Code re-use FTW, this was written years ago for Get-Mailboxreport.ps1
#If no filename specified, generate report file name with random strings for uniqueness
#Thanks to @proxb and @chrisbrownie for the help with random string generation

if ($filename)
{
	$reportfile = $filename
}
else
{
	$timestamp = Get-Date -UFormat %Y%m%d-%H%M
	$reportfile = "$($myDir)\ExchangeAnalyzerReport-$($timestamp).html"
}

Chris has submitted a PR for this.

This improvement has been merged to development branch.


Now compiles on BSD with clang 3.3, added CI unit test dashboard to github front page.

Does this PR have an associated JIRA MAID number?

@rossmuir For me at least this is part of MAID-700, in that I can't orchestrate BSD jail testing for CRUX if CRUX doesn't work on BSD at all.

This now has merge conflicts, can you please take a look @ned14 We should try and get this merged if at all possible as it's taking to long through the system now. Not your issue, ours in house I think

Yep, bits of my branch were merged without cherry picking, so now my branch won't merge. I'll fix that up tomorrow morning.

@ned14 Regarding the FreeBSD pthread library, I got the information from the FreeBSD man pages, but I just noticed that my bookmark was linking to an old version (from 1998.)
My biggest concern is that the workaround is using NOT WIN32 rather than narrowing down on the platforms that actually need the workaround. The -pthread vs -lpthread problem still applies to many platforms... or at least it did last time I looked into it.

@breese I think I now have it detecting FreeBSD and only doing the explicit pthread link on FreeBSD alone.
I agree about the BSD man pages being stale. There are enormous changes just between 9 and 10 alone, when they moved over to clang as the system compiler they also changed a vast amount of stuff. I've had to dig into the source code quite a few times this past month.

Changes requested made.


Apple Mach-O Linker Error in example app

I can't run example app in XCode tool.

Steps:

clone the repo
switch to tag v3.0.0
Go to examples/OneSignalRNExample
npm i
cd ios && pod install
go to XCode and press Run

Could you help me to find where I did a mistake?
P.S.:
I've encountered the issue like these:
https://github.com/geektimecoil/react-native-onesignal/issues/19
https://github.com/geektimecoil/react-native-onesignal/issues/133
and decided to compare your example app with mine to be sure I don't miss anything.
Everything was OK until I updated to React 0.40.0 and all related modules.

Did you Run from the XCode project or workspace?
Make sure you entered the workspace.

By the way, the full example is updated to RN 0.32. I definitely need to update it to RN 40.

I'm also encountering the same bug in a project with react-native version 0.37. Installed using Cocoapods and followed all the installation instructions. The weird thing is that when I did the same in a clean project with same version it worked.

@avishayil When I run it from workspace it starts working. My fault.
BTW,
I would like to see an example with 0.40.0 react native.

Can this issue be re-opened? I'm still encountering this bug. I can provide more details if needed

For me it worked to add "${PODS_ROOT}/OneSignal/iOS_SDK/Framework" to any architecture in Framework search paths.

I'm using pod this line was added automatically.

I got the same issue while I'm trying to run on iOS 7s Plus 10.3.1.
I tried to reopen Xcode and restart the React packager. It works for me.


markdown-oxide: 0.0.16 -> 0.0.17

Automatic update generated by nixpkgs-update tools. This update was made based on information from https://github.com/Feel-ix-343/markdown-oxide/releases.
meta.description for markdown-oxide is: A markdown LSP server inspired by Obsidian
meta.homepage for markdown-oxide is: https://github.com/Feel-ix-343/markdown-oxide
Updates performed

Version update

To inspect upstream changes

Release on GitHub

Compare changes on GitHub

Impact
Checks done

built on NixOS
The tests defined in passthru.tests, if any, passed
found 0.0.17 in filename of file in /nix/store/rvx8qrhd675yq1fdynj8fpb78gd469w1-markdown-oxide-0.0.17

Rebuild report (if merged into master) (click to expand)

1 total rebuild path(s)

1 package rebuild(s)

First fifty rebuilds by attrpath
markdown-oxide

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/rvx8qrhd675yq1fdynj8fpb78gd469w1-markdown-oxide-0.0.17 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A markdown-oxide https://github.com/r-ryantm/nixpkgs/archive/2e51e3cda5db2edc889237da747592c3e510ec85.tar.gz

Or:
nix build github:r-ryantm/nixpkgs/2e51e3cda5db2edc889237da747592c3e510ec85#markdown-oxide

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/rvx8qrhd675yq1fdynj8fpb78gd469w1-markdown-oxide-0.0.17
ls -la /nix/store/rvx8qrhd675yq1fdynj8fpb78gd469w1-markdown-oxide-0.0.17/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
Result of nixpkgs-review --extra-nixpkgs-config '{ allowInsecurePredicate = x: true; }' run on x86_64-linux 1

1 package built:

markdown-oxide

Maintainer pings
cc @linsui for testing.

@NixOS/nixpkgs-merge-bot merge


[Improvement-5880][api] Optimized data structure of pagination query API results

[5880][refactor]Optimized data structure of pagination query API results

refactor PageInfo and delete returnDataListPaging in API
modify the related Controller and Service and the corresponding Test
this closes [Improvement][API] Page paging query API result data structure optimization #5880

Codecov Report

Merging #5895 (d65f662) into dev (8571461) will increase coverage by 1.62%.
The diff coverage is 46.66%.

@@             Coverage Diff              @@
##                dev    #5895      +/-   ##
============================================
+ Coverage     45.08%   46.70%   +1.62%
- Complexity     3653     3747      +94
============================================
  Files           606      607       +1
  Lines         24810    24831      +21
  Branches       2829     2829
============================================
+ Hits          11185    11597     +412
+ Misses        12557    12097     -460
- Partials       1068     1137      +69

Impacted Files
Coverage Δ

...cheduler/api/controller/AccessTokenController.java
6.66% <0.00%> (ø)

...scheduler/api/controller/AlertGroupController.java
8.33% <0.00%> (+0.33%)
:arrow_up:

.../api/controller/AlertPluginInstanceController.java
8.00% <0.00%> (+0.30%)
:arrow_up:

...heduler/api/controller/DataAnalysisController.java
9.09% <ø> (ø)

...scheduler/api/controller/DataSourceController.java
4.34% <0.00%> (+0.18%)
:arrow_up:

...uler/api/controller/ProcessInstanceController.java
4.54% <0.00%> (ø)

...nscheduler/api/controller/ResourcesController.java
3.57% <0.00%> (ø)

...nscheduler/api/controller/SchedulerController.java
4.76% <0.00%> (ø)

...lphinscheduler/api/controller/UsersController.java
4.16% <0.00%> (ø)

...cheduler/api/controller/WorkerGroupController.java
6.66% <0.00%> (ø)

... and 44 more

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 8571461...d65f662. Read the comment docs.

Just my personal opinion: servece should only contain specific data, Result is generally the encapsulated carrier of external interaction data, should not be reflected in the service. Related errors can be directly thrown exceptions, API unified exception capture interception. This is a historical legacy, but it would be better if it could be solved at once.

@CalvinKirs @soreak
I also agree with this point, this change involves a lot of code, it is recommended to start a new PR for optimization.

I think we should discuss the rationality of such a change in the API

I think we should discuss the rationality of such a change in the API

The current situation of the paging interface is that there are two data structures, and the current change is to change to a common data structure.

Common methods should be modified here, not every api internal method.

Common methods should be modified here, not every api internal method.

There are currently several situations, resulting in the need to modify each Service layer

Multiple controllers use Page paging query
The original logic is to obtain PageInfo data at the controller layer and convert it into a new data structure. The PageInfo data structure is reconstructed here, and all the Service layers involved need to be modified.
A small part of the controller layer directly returns the PageInfo data structure.

this issue: #5880

The Result stuctue should not be returned in the service layer

BTW,the code for API modifications should be pushed to the json_split_two branch

The Result structure should not be returned in the service layer

Yes, considering that this change involves too much code, and this contributor contributed for the first time, let him submit a PR to optimize this problem.

For PR with improved api module, please submit to the json_split_two branch, this branch leads dev a lot.

For PR with improved api module, please submit to the json_split_two branch, this branch leads dev a lot.

ok,


List example using xml comments not coming through for a post request

Is there something that I'm missing here... I have xml comments included (as described in the documentation and in this issue).
However, with a setup similar to the following:
/// <param name="ids" example='[]'>blah</param>
[HttpPost]
public IActionResult Post(List<int> ids)

The resulting example & default value within the swagger page is:
[
  0
]

The generated xml looks normal:
<member name="M:Namespace.Controllers.TestController.Post(System.Collections.Generic.List{System.Int32})">
 <summary> ... </summary>
  <param name="ids" example="[]">blah.</param>
</member>

I have just checked and the generated schema for the parameter is:
{
            "name": "ids",
            "in": "query",
            "description": "blah",
            "schema": {
              "type": "array",
              "items": {
                "type": "integer",
                "format": "int32"
              }
            }
          }

The example section is not filled, but I see it's Ok, because SwashBuckle reports it's an OpenApiArray. @laventnc  can you please check with the latest version?

@jgarciadelanoceda can confirm with v6.6.2 its the same behavior. I tried with/without the xml comments & the following signatures :
public void Post(List<int> ids);
public void Post(List<int>? ids);
public void Post(List<int?> ids);

I only added the example tag to the xml comment to try to help it, I feel like by default arrays should just be empty.

Sorry @laventnc .. I do not see the example with the array set when the example is [], maybe you can create a project in Github and make it public? just to see it?


initial templates for JDV image

This can't be pushed for a number of reasons.

The driver jar needs to be removed completely
The subdirectories are very specific and should be repackaged as a generic template, which can go in this project, and example code, which should go in the jboss-quickstarts or jboss-examples project.

I'm going to close this out and try to refactor things.


create post feature

on the top of the home page, let the user be able to tap to create a new post, he/she should be able to add media to the post too.

@tbm5k please check your discord chat for my message on the group


clean-rich-text-editor missing

Description
https://github.com/refined-github/refined-github/issues/7011
How to replicate the issue + URL
This issue
Extension version
23.10.5
Browser(s) used
Chrome

Maybe a good opportunity for #6512? But the new native menu on mobile is kinda broken (it scrolls the page to the top for no reason, and I can't see the menu at all sometimes)

Yeah totally. Whatever is PR'd first


WP5 - Update postcss-loader

Update<EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS>Changes:

indent is no longer needed accordingly to changelog
options from Object to Array syntax
postcss is now a peer dependency

ref: https://github.com/webpack-contrib/postcss-loader/blob/master/CHANGELOG.md#400-2020-09-07
Part of making way for Webpack 5 #9994
yarn docker:e2e --test-suite simple is passing*
(When fixing the new babel jsx as it breaks tests, disabling eslint jest/no-conditional-expect on a couple of tests and adding .eslintcache to .gitignore in each of the templates... I didn't bother with the rest of the tests as I know a few of those are also broken but for other reasons)

@raix do we know what's going on with the broken builds here?

When fixing tests locally the simple test passes - but the test suite in general for CRA is broken.

I had to revert this unfortunately. See https://github.com/facebook/create-react-app/pull/10216#issue-534138009


Escape sequences

Challenge Escape Sequences in Strings has an issue.
User Agent is: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.99 Safari/537.36.
Please describe how to reproduce this issue, and include links to screenshots if possible.
I ran in my console through Dev Tools and it worked

My code:

var myStr = "FirstLine\n\\SecondLine\\\n\rThirdLine"; // Change this line

@EricL2001 thanks for the report but the correct and expected sequence is written out in the challenge instructions.

FirstLinenewline backslashSecondLinebackslash carriage-returnThirdLine

Your code doesn't match the same.
Please double check and visit the Help Chat Room.

I am not sure, but I think I found a bug because the console states that I have the correct answer but it does not show exactly the answer I was suppose to have in the yellow boxed answer.

var myStr="FirstLine\n\\SecondLine\\\rThirdLine"; // Change this line


feat: add github-actions post

:tada: This PR is included in version 1.0.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


Development: Update cypress to 12.5.1

Checklist
General

[ ] I tested all changes and their related features with all corresponding user types on a test server.
[x] This is a small issue that I tested locally and was confirmed by another developer on a test server.
[x] Language: I followed the guidelines for inclusive, diversity-sensitive, and appreciative language.
[x] I chose a title conforming to the naming conventions for pull requests.

Description

This PR updates cypress to version 12.5.1.
Changelog can be found here:
https://docs.cypress.io/guides/references/changelog#12-5-1
Code Review

[x] Review 1
[ ] Review 2

Manual Tests

[ ] Test 1
[ ] Test 2

Codecov Report

Merging #6216 (2909577) into develop (0ff3475) will increase coverage by 3.85%.
The diff coverage is n/a.

:mega: This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more
Additional details and impacted files
@@              Coverage Diff              @@
##             develop    #6216      +/-   ##
=============================================
+ Coverage      76.41%   80.26%   +3.85%
- Complexity         0    12909   +12909
=============================================
  Files           1228     2285    +1057
  Lines          46659    88605   +41946
  Branches        8689    13098    +4409
=============================================
+ Hits           35653    71121   +35468
- Misses          5689     9740    +4051
- Partials        5317     7744    +2427

Impacted Files
Coverage Δ

...idebar/conversation-selection-sidebar.component.ts
88.66% <0.00%> (-0.67%)
:arrow_down:

...m/in/www1/artemis/service/OrganizationService.java
100.00% <0.00%> (ø)

...ateProgrammingExerciseParticipationRepository.java
100.00% <0.00%> (ø)

...w1/artemis/web/rest/repository/FileSubmission.java
100.00% <0.00%> (ø)

...www1/artemis/service/listeners/ResultListener.java
81.81% <0.00%> (ø)

...ors/bamboo/BambooBuildPlanLinkInfoContributor.java
25.00% <0.00%> (ø)

...ce/connectors/jenkins/JenkinsBuildPlanService.java
90.15% <0.00%> (ø)

...e/tum/in/www1/artemis/service/PlantUmlService.java
84.44% <0.00%> (ø)

.../rest/errors/ComplaintResponseLockedException.java
100.00% <0.00%> (ø)

...in/www1/artemis/service/dto/AuditingEntityDTO.java
100.00% <0.00%> (ø)

... and 1049 more

Flag
Coverage Δ

client
76.41% <ø> (ø)

server
84.55% <ø> (?)

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 0ff3475...2909577. Read the comment docs.


When using tf.gradients in the forward pass, my codes stop at compute_gradients

System information

Have I written custom code (as opposed to using a stock example script provided in TensorFlow): yes
OS Platform and Distribution: Linux Ubuntu 16.04
TensorFlow installed from (source or binary): binary (conda install)
TensorFlow version (use command below): 1.9.0
Python version: 3.5
CUDA/cuDNN version: 390.25
GPU model and memory: GTX1080, 11GB

1. What I did:
My codes like this example: tensorpack faster rcnn example
I used DetectModel as the base class to implement the detection model of the SSD architecture. The training, optimizer, and get_inference_tensor_names are unchanged, the build_graph is reimplemented in the subclass, and the preprocess is modified. Other modules (such as anchor_generator, target_assign), I used the code in tensorflow offical models] (https://github.com/tensorflow/models/tree/master/research/object_detection).
my codes as follow

class MyMetaArch(ModelDesc):

    def inputs(self):
        ret = [
            tf.placeholder(tf.float32, (None, None, None, 1), 'image'),
            tf.placeholder(tf.float32, (8, None, 4), 'gt_boxes'),
            tf.placeholder(tf.int64, (8, None,), 'gt_labels')
        ]
        return ret

    def build_graph(self, *inputs):
        inputs = dict(zip(self.input_names, inputs))
        images = inputs["image"]

        x = Conv2D('conv1', images, filters=16, kernel_size=3, strides=(2, 2))
        x = Conv2D('conv2', x, filters=32, kernel_size=3, strides=(2, 2))
        x = Conv2D('conv3', x, filters=64, kernel_size=3, strides=(2, 2))
        x = Conv2D('conv4', x, filters=64, kernel_size=3, strides=(2, 2))
        ...
        class_prediction_with_background = tf.concat(...) # concat multi branches
        class_prediction_with_background = class_prediction_with_background [:,:,1] # face detector, only care about the foreground

        gradients = tf.gradients(class_prediction_with_background , [images])[0]
        regular_vals = tf.reduce_mean(gradients)
        ...
        class_losses = class_losses + regular_vals

2. What I observed:
(1) Include the ENTIRE logs here:
But there are not any errors. The runtime log as follows， and and I added some extra logs.
[0312 17:31:05 @interface.py:86] setup_graph
[0312 17:31:05 @tower.py:217] _setup_input
[0312 17:31:05 @input_source.py:220] Setting up the queue 'QueueInput/input_queue' with size Tensor("QueueInput/input_queue_Size:0", shape=(), dtype=int32) for CPU prefetching ...
[0312 17:31:05 @tower.py:219] _setup_graph
[0312 17:31:05 @trainers.py:186] SyncMultiGPUTrainerReplicated _setup_graph
[0312 17:31:05 @trainers.py:189] _make_get_grad_fn
[0312 17:31:05 @trainers.py:191] call_for_each_tower
[0312 17:31:05 @training.py:109] Building graph for training tower 0 on device /gpu:0 ...
[0312 17:31:05 @training.py:116] override_to_local_variable /gpu:0
[0312 17:31:05 @tower.py:248] get_grad_fn: start
[0312 17:31:05 @tower.py:280] NOT XLA_COMPILE: compute_grad_from_inputs
[0312 17:31:05 @tower.py:253] compute_grad_from_inputs start
[0312 17:31:05 @model_desc.py:262] start build_graph
[0312 17:31:06 @registry.py:125] conv1/conv1 input: [8, 644, 644, 1]
[0312 17:31:06 @registry.py:133] conv1/conv1 output: [8, 160, 160, 12]
...
[0312 17:31:07 @registry.py:125] conv3_1 input: [8, 20, 20, 64]
[0312 17:31:08 @registry.py:133] conv3_1 output: [8, 20, 20, 128]
[0312 17:31:08 @registry.py:125] conv3_2 input: [8, 22, 22, 128]
[0312 17:31:08 @registry.py:133] conv3_2 output: [8, 10, 10, 256]
[0312 17:31:08 @registry.py:125] conv4_1 input: [8, 10, 10, 256]
[0312 17:31:08 @registry.py:133] conv4_1 output: [8, 10, 10, 128]
[0312 17:31:08 @registry.py:125] conv4_2 input: [8, 12, 12, 128]
[0312 17:31:08 @registry.py:133] conv4_2 output: [8, 5, 5, 256]
[0312 17:31:08 @registry.py:125] prediction_layers/box_encoding_predictor_0 input: [8, 20, 20, 64]
[0312 17:31:08 @registry.py:133] prediction_layers/box_encoding_predictor_0 output: [8, 20, 20, 84]
[0312 17:31:08 @registry.py:125] prediction_layers/class_predictor_0 input: [8, 20, 20, 64]
[0312 17:31:08 @registry.py:133] prediction_layers/class_predictor_0 output: [8, 20, 20, 42]
[0312 17:31:08 @registry.py:125] prediction_layers/box_encoding_predictor_1 input: [8, 10, 10, 256]
[0312 17:31:08 @registry.py:133] prediction_layers/box_encoding_predictor_1 output: [8, 10, 10, 4]
[0312 17:31:08 @registry.py:125] prediction_layers/class_predictor_1 input: [8, 10, 10, 256]
[0312 17:31:08 @registry.py:133] prediction_layers/class_predictor_1 output: [8, 10, 10, 2]
[0312 17:31:08 @registry.py:125] prediction_layers/box_encoding_predictor_2 input: [8, 5, 5, 256]
[0312 17:31:08 @registry.py:133] prediction_layers/box_encoding_predictor_2 output: [8, 5, 5, 4]
[0312 17:31:08 @registry.py:125] prediction_layers/class_predictor_2 input: [8, 5, 5, 256]
[0312 17:31:08 @registry.py:133] prediction_layers/class_predictor_2 output: [8, 5, 5, 2]
[0312 17:31:11 @FaceboxesModel.py:325] cls_losses: Tensor("tower0/Loss/Loss_1/mul:0", shape=(8, 8525), dtype=float32, device=/device:GPU:0)
[0312 17:31:13 @FaceboxesModel.py:236] start regularize_cost
[0312 17:31:13 @regularize.py:95] regularize_cost() found 35 variables to regularize.
[0312 17:31:13 @regularize.py:20] The following tensors will be regularized: conv1/conv1/W:0,...,conv3_1/W:0, conv3_2/W:0, conv4_1/W:0, conv4_2/W:0,...
[0312 17:31:13 @FaceboxesModel.py:239] end regularize_cost
[0312 17:31:13 @FaceboxesModel.py:242] start add_n
[0312 17:31:13 @FaceboxesModel.py:244] end add_n
[0312 17:31:13 @model_desc.py:264] end build_graph
[0312 17:31:13 @model_desc.py:268] _build_graph_get_cost return Tensor("tower0/total_cost:0", shape=(), dtype=float32, device=/device:GPU:0)
[0312 17:31:13 @tower.py:255] get_cost_fn Tensor("tower0/total_cost:0", shape=(), dtype=float32, device=/device:GPU:0)
[0312 17:31:13 @tower.py:268] get_opt_fn

The code seems to be stuck at this line: https://github.com/tensorpack/tensorpack/blob/master/tensorpack/train/tower.py#L261
The function is compute_gradients

As I have commented in the original issue, please try to provide enough information (code, instructions) so that others can reproduce your issues.
Otherwise it's unlikely your issues can be timely diagnosed. See also https://stackoverflow.com/help/mcve

@ppwwyyxx I think maybe caused by tf.concat. I try use the convolution before concat as a parameter of tf.gradients , the graph can be created.

This question is better asked on StackOverflow since it is not a bug or feature request. There is also a larger community that reads questions there.
If you think we've misinterpreted a bug, please comment again with a clear explanation, as well as all of the information requested in the issue template. Thanks!

This question is better asked on StackOverflow since it is not a bug or feature request. There is also a larger community that reads questions there.
If you think we've misinterpreted a bug, please comment again with a clear explanation, as well as all of the information requested in the issue template. Thanks!

This question is better asked on StackOverflow since it is not a bug or feature request. There is also a larger community that reads questions there.
If you think we've misinterpreted a bug, please comment again with a clear explanation, as well as all of the information requested in the issue template. Thanks!

This question is better asked on StackOverflow since it is not a bug or feature request. There is also a larger community that reads questions there.
If you think we've misinterpreted a bug, please comment again with a clear explanation, as well as all of the information requested in the issue template. Thanks!


new changes for context_match

Closing, @HardiRathod will fix this properly as discuss in the Table Linker meeting on 6th Aug


First draft of covid19 cheminformatics tutorial

Things still to do:

[x] Upload files to Zenodo.
[x] Add some images.
[x] Update workflow, it has an extra step which needs to be removed.

@bgruening, does this look okay to you?

Not sure what to make of this error: internally linking to /training-material/topics/computational-chemistry/tutorials/covid19-docking/workflows/, which does not exist. It exists as far as I can see.

You need to add a file like that: https://github.com/galaxyproject/training-material/pull/1859/files#diff-3932db172e9fbbeb123b826e296ef80fR1

This is ready to merge as far as I'm concerned @bgruening - let me know if I should make further changes.

Wonderful, great first tutorial.

Awesome, thanks for reviewing Björn!


Transactions

Hi there,
I'd just like to confirm that the Transactions are not currently being populated.
Thanks
Luke

hi Luke,
yep, it's on the todo list. feel free to raise a PR to add transactions
Jamie


today() + 14 no longer returning a datestring but a number

Seen in Chrome. Could be caused by browser update.

I also saw it in Safari

Not sure what I was thinking. This has always been the case.

in ODK Collect:
10 + "2012-07-24" returns no result (probably NaN)
10 + date("2012-0-24") = 15555
today()+10 as date = crash
today()+10 as string = 17238

Maybe enketo-core could convert numbers to dates. It seems like Enketo does things correctly though.

yep, seems like this should be done when setting a value in the model in Enketo Core


Seg fault on simple DPP optimization

Describe the bug
A simple DPP optimization produces a seg fault when pre multiplying by a constant.
To Reproduce
import cvxpy as cp
import numpy as np

a = cp.Variable((1, 1))
b = cp.Variable((1,))

param = cp.Parameter(1)

constraints = []
objective = cp.Minimize(
    # cp.sum_squares(a) - b @ (2 * param) # no seg fault
    cp.sum_squares(a) - 2 * b @ param # seg fault
)

problem = cp.Problem(objective, constraints)

param.value = np.array([1])
problem.solve(verbose=True)

Expected behavior
The code should not produce a seg fault.
Output
===============================================================================
                                     CVXPY
                                    v1.1.17
===============================================================================
(CVXPY) Nov 17 01:34:57 PM: Your problem has 2 variables, 0 constraints, and 1 parameters.
(CVXPY) Nov 17 01:34:57 PM: It is compliant with the following grammars: DCP, DQCP
(CVXPY) Nov 17 01:34:57 PM: CVXPY will first compile your problem; then, it will invoke a numerical solver to obtain a solution.
-------------------------------------------------------------------------------
                                  Compilation
-------------------------------------------------------------------------------
(CVXPY) Nov 17 01:34:57 PM: Compiling problem (target solver=OSQP).
(CVXPY) Nov 17 01:34:57 PM: Reduction chain: CvxAttr2Constr -> Qp2SymbolicQp -> QpMatrixStuffing -> OSQP
(CVXPY) Nov 17 01:34:57 PM: Applying reduction CvxAttr2Constr
(CVXPY) Nov 17 01:34:57 PM: Applying reduction Qp2SymbolicQp
(CVXPY) Nov 17 01:34:57 PM: Applying reduction QpMatrixStuffing
Segmentation fault (core dumped)

Version

OS: Ubuntu 18.04
CVXPY Version: 1.1.17

Additional context
Not sure why the ordering of the multiplication matters.

I looked into this, and the issue only comes up when a and b are scalars. If you increase the dimension of b the problem goes away. So there must be a bug somewhere around special casing of scalars.

Chiming in. NumPy behaves as follows
>>> np.array([[1]]) @ np.array(1)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ValueError: matmul: Input operand 1 does not have enough dimensions (has 0, gufunc core with signature (n?,k),(k,m?)->(n?,m?) requires 1)

>>> np.array([1]) @ np.array(1)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ValueError: matmul: Input operand 1 does not have enough dimensions (has 0, gufunc core with signature (n?,k),(k,m?)->(n?,m?) requires 1)

Of course, the problem should be fixed, and cvxpy makes no claims that we mimic numpy, but it's worth noting.
I think the issue might be that we make assumptions that the size of some expressions is a nonempty tuple. The code below would produce a segfault if it was implemented directly in C/C++.
>>> np.array(1).shape
()

>>> np.array(1).shape[0]
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
IndexError: tuple index out of range

Was it fixed?

Fixed in https://github.com/cvxpy/cvxpy/pull/1556

I installed cvxpy now from source but I still get the segmentation error running the code from @spfrommer
===============================================================================
CVXPY
v1.1.17
(CVXPY) Nov 20 07:50:36 PM: Your problem has 2 variables, 0 constraints, and 1 parameters.
(CVXPY) Nov 20 07:50:36 PM: It is compliant with the following grammars: DCP, DQCP
(CVXPY) Nov 20 07:50:36 PM: CVXPY will first compile your problem; then, it will invoke a numerical solver to obtain a solution.
                              Compilation

(CVXPY) Nov 20 07:50:36 PM: Compiling problem (target solver=OSQP).
(CVXPY) Nov 20 07:50:36 PM: Reduction chain: CvxAttr2Constr -> Qp2SymbolicQp -> QpMatrixStuffing -> OSQP
(CVXPY) Nov 20 07:50:36 PM: Applying reduction CvxAttr2Constr
(CVXPY) Nov 20 07:50:36 PM: Applying reduction Qp2SymbolicQp
(CVXPY) Nov 20 07:50:36 PM: Applying reduction QpMatrixStuffing
[1]    67 segmentation fault (core dumped)  python t.py

We haven't merged in the patch yet. It still needs to be approved. So the source code is not updated yet.


Change PowerBI Desktop download link

The former download url pointed to a txt file containing:
"This download has been deprecated.  Please visit https://aka.ms/pbiSingleInstaller to download the latest release of Power BI Desktop."

Thanks - good spot 💯