Some glyphicons not loading

I have problem with some glyphicons not working. I am using bootstrap-sass 3.3.5. For instance these work

and these do not work

In my application.css.scss file I am loading bootstrap-sprockets before bootstrap, i.e.
@import "bootstrap-sprockets";
@import "bootstrap";

I am using rails 4.2.2, sass-rails', '~> 4.0.4', 'sprockets-rails', '>=2.1.4'. Why is this not working?
Here is the relevant excerpt from the assets when I inspect the element chrome web tools:
/* line 24<EMAIL_ADDRESS>*/
.glyphicon {
  position: relative;
  top: 1px;
  display: inline-block;
  font-family: 'Glyphicons Halflings';
  font-style: normal;
  font-weight: normal;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* line 37, /Users/Chris/.rvm/gems/ruby-2.1.6@golf_mentor/gems/bootstrap-sass-  3.3.5/assets/stylesheets/bootstrap/_glyphicons.scss */
.glyphicon-asterisk:before {
  content: "\2a";
}

/* line 38, /Users/Chris/.rvm/gems/ruby-2.1.6@golf_mentor/gems/bootstrap-sass-    3.3.5/assets/stylesheets/bootstrap/_glyphicons.scss */
.glyphicon-plus:before {
  content: "\2b";
}

This question was asked on Stackoverflow 10 days ago without answer, so maybe it is an issue with this gem.

The icons do work (e.g. see https://glebm.github.io/gulp-webpack-react-bootstrap-sass-template/).
Please try clearing the cache:
rake tmp:cache:clear
rake assets:clean

I stopped my server, executed the two rake commands and then restarted the server.  I am still getting the same results, i.e. the star and asterisk glyphicons render properly, whereas heart and the thumbs-up render as empty black bordered boxes about the size of a bounding box for the two that do render.
I believe you that this works for most cases, but so far, not for my case.  Is a possible cause is that I am also loading an old version of the bootstrap somewhere, and if so, how do I check for this?

Make sure you are not serving a version of glyphicons from your project:
find . | grep glyphicons

Thank you, I did find some other bootstrap files, and deleted them.  I then stopped the server, cleared the cache with the two commands above, and restarted server.  However, the problem is persisting. I tried clearing the chrome browser's cache of file and pictures, and still no luck. I tried safari which gave the same result. Firefox was slightly different, in the square boxes that are being displayed for the heart and thumbs-up glyphicon, it had in the text E125 and E005.
I did  find . | grep glyphicons again and saw
./tmp/cache/assets/development/sass/f7d4d235b94ce2fd030546c66c6091e35d1ad1ca/_glyphicons.scssc

You can see in my initial post that when I inspect the elements source I am shown lines from the bootstrap-sass gem. Is there any way I can follow this trail further to see where the icons are loading from?

Another piece of information is that when I looked through the app, I found in the public folder, many files like
application-79ce58e54e439a9c8ddddf493571f366.css

which looked like caches for application.css and many images files.  These were not being cleared by the clear cache commands you gave me, and I do not know why they were there. I deleted them all but it did not solve the problem.

I'm having the same problem when compiling the sass with<EMAIL_ADDRESS>It looks like the @at-root directive is included in the css output, like;
@at-root {
    @font-face {
      font-family: 'Glyphicons Halflings';
      ...
    }
}

So, an update - bootstrap-sass does not compile properly on<EMAIL_ADDRESS>(i.e. libsass@<3.2.5).

@obromios This happens if you run rake assets:precompile in development.

@williamboman This is documented in https://github.com/twbs/bootstrap-sass#c-bower.

@glebm Yep, thanks :smile:!

I solved the problem by upgrading everything I could think of. The configuration that worked was
gem 'sprockets-rails', '>=2.1.4'
gem 'sass-rails', '~> 5.0.1'
gem 'compass-rails', '~> 2.0.4'
gem 'bootstrap-sass', '~> 3.3.5'

Not sure which did it, but I was very pleased to see those glyphicons.

I had the same issue using 3.3.5. Downgrading to 3.3.1 fixed it, as did @obromios's configuration above.

+1

+1 for @tfwright, I struggled for days with this. My final and successful gem config is:
gem 'rails', '4.2.1'
gem 'sass-rails', '~> 5.0.1'
gem 'bootstrap-sass', '~> 3.3.1'

I'm not using neither sprocket-rails, nor compass-rails gems as @obromios does.

Upgrading the sass-rails gem to 5.x did it for me.
Although I had updated my bundle yesterday, some other gems were updated as a result of this:
Installing sass 3.4.20 (was 3.2.19)
Installing concurrent-ruby 1.0.0
Installing tilt 2.0.2 (was 1.4.1)
Installing sprockets 3.5.2 (was 2.12.4)
Installing bootstrap-sass 3.3.6 (was 3.3.5)
Installing sprockets-rails 3.0.0 (was 2.3.3)
Installing sass-rails 5.0.4 (was 4.0.5)


fix(EMS-2557): No PDF - Your business - check/change business trading address

Introduction :pencil2:
This PR fixes some issues where, if a user is in one of the following summary lists:

"Insurance - Check your answers - Your business".
"Your business - Check your answers".

..and then, when clicking the "change" link to get back to the "Company details" form - the form would always redirect to the "alternative trading address" if the "alternative trading address" answer is "yes".
This should only happen when the "alternative trading address" answer is "yes" and a full address is not provided.
Resolution :heavy_check_mark:

Update the "company details" POST controller to determine if a "trading address" field is required.
Update the logic for "redirect to check/change" routes to include the "trading address" field check.
Improve E2E test coverage

Miscellaneous :heavy_plus_sign:

Improve the POST redirection documentation.

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

:exclamation: No coverage uploaded for pull request base (main-application-no-pdf@1faa0b7). Click here to learn what that means.

Additional details and impacted files
@@                    Coverage Diff                     @@
##             main-application-no-pdf    #1702   +/-   ##
==========================================================
  Coverage                           ?   98.34%
==========================================================
  Files                              ?      470
  Lines                              ?     7862
  Branches                           ?      851
==========================================================
  Hits                               ?     7732
  Misses                             ?      128
  Partials                           ?        2

Flag
Coverage Δ

unit-test
98.34% <0.00%> (?)

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

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


Fix: Fix response streams in template

What's happened
DataSources returned streams instead of arrays, but we haven't adjusted the template output:
{% req user %}
select * from users where id = {{ context.params.id }}
{% endreq %}
{{ user.value()[0].name }} --- this will be undefined

This PR consume the stream and download data for templates.

Codecov Report
Base: 92.40% // Head: 92.19% // Decreases project coverage by -0.20% :warning:

Coverage data is based on head (fbf2c2f) compared to base (5ff11a6).
Patch coverage: 53.84% of modified lines in pull request are covered.

Additional details and impacted files
@@                  Coverage Diff                   @@
##           fix/sampler-params      #42      +/-   ##
======================================================
- Coverage               92.40%   92.19%   -0.21%
======================================================
  Files                     221      221
  Lines                    3040     3037       -3
  Branches                  354      349       -5
======================================================
- Hits                     2809     2800       -9
- Misses                    169      176       +7
+ Partials                   62       61       -1

Flag
Coverage Δ

build
94.87% <ø> (ø)

core
92.72% <53.84%> (-0.41%)
:arrow_down:

extension-dbt
97.43% <ø> (ø)

extension-debug-tools
98.11% <ø> (ø)

integration-testing
95.00% <ø> (ø)

serve
88.78% <ø> (ø)

test-utility
∅ <ø> (∅)

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

Impacted Files
Coverage Δ

packages/core/src/models/extensions/dataSource.ts
100.00% <ø> (ø)

...uilt-in-extensions/query-builder/executorRunner.ts
35.29% <15.38%> (-64.71%)
:arrow_down:

packages/core/src/lib/data-source/pg.ts
42.85% <50.00%> (ø)

...ilt-in-extensions/query-builder/executorBuilder.ts
100.00% <100.00%> (ø)

...built-in-extensions/query-builder/reqTagBuilder.ts
94.91% <100.00%> (+2.23%)
:arrow_up:

...built-in-extensions/validator/parametersChecker.ts
100.00% <0.00%> (+7.69%)
:arrow_up:

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 at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.

Hi @kokokuo , all issues have been resolve, I also found another bug and fix it, https://github.com/Canner/vulcan/pull/42/commits/4a2fdca4d9325feb2e7a510ed6e9cb40ba3acc86


Mac: Undo, Redo, Select All not working in native dialogs (use roles for those?)

Please check the screenshot below, it should select all the text include the file extension, however it was not working.

This change brings back the "role" attribute to undo, redo and selectAll. From my testing this is not causing any harm because it seems to me using the keybindings within the workbench never reaches the menu. However, when you are in dev tools or in the native file dialog and invoke the keybindings, the menu to the top quickly flashes blue and indicates the action is used from there. Suggest we run with this change for a sprint and watch out for regressions.

This was causing https://github.com/Microsoft/vscode/issues/4717, reverting my change.

Marking as upstream. Imho this should work without special code from our end, or if any we have API to find out if a native dialog is opened or not.

https://github.com/Microsoft/vscode/issues/8439


There will be one more question mark by default, and there will be duplicate content in subsequent entries.

There will be one more question mark by default, and there will be duplicate content in subsequent entries.
If you don't use tmux, it's OK. I just used the recommended default configuration.
How to solve it？Thanks！

Hello @DeepTiming 👋
Please reach out to regular tmux support channels if it's not something specific to Oh my tmux!
That being said, double check the value of your TERM environment variable before and after launching tmux.
The tmux wiki has entries about TERM


Baloo support [Feature request]

Could Baloo (the desktop search indexer for the Plasma desktop) be supported in Cerebro? This way the KDE5/Plasma users could do document, file, web bookmarks, etc, search by content or tags, which is a very useful feature.
Thanks for you neat app.

Hi @eemantsal
Baloo support can be enabled if someone creates a plugin for that. We are moving this to the plugin requests thread.
moved to #112


Using existing HttpApi from advanced examples doesn't work

I'm using the following versions in my package.json
"devDependencies": {
    "@tsconfig/node16": "^1.0.3",
    "aws-cdk-lib": "2.62.2",
    "constructs": "10.1.156",
    "sst": "^2.2.6",
    "typescript": "^5.0.2"
  },

It seems that the documentation here is not correct:
https://docs.sst.dev/advanced/importing-resources
import { HttpApi } from "@aws-cdk/aws-apigatewayv2";

new Api(stack, "Api", {
httpApi: HttpApi.fromHttpApiAttributes(stack, "ExistingApi", {
  httpApiId,
}),
routes: {
  "GET /new": "src/lambda.main",
},
});

It mentions that you need to import from @aws-cdk which doesn't have that function. Adding aws-cdk as a dependency still doesn't solve this issue, as if you try to do so:

The reason I need this is because I have a legacy serverless.yaml app, which I want to migrate to use SST. However, with this problem this doesn't seem possible, as I'm not sure how to overcome this issue. The documentation seems to contradict itself, since it mentions that you don't need aws-cdk and then, in this example it seems to reference from it.
Any plans to address this issue?

Looks like the documentation should simply be updated to look like this, (also might need to explain or see why we need @aws-cdk
import { StackContext, Api } from 'sst/constructs';
import { HttpApi } from '@aws-cdk/aws-apigatewayv2-alpha';

export function API({ stack }: StackContext) {
  new Api(stack, 'KaznaServisAPI', {
    cdk: {
      httpApi: HttpApi.fromHttpApiAttributes(stack, 'HttpApi', {
        httpApiId: 'api-id',
      }),
    },
  });
}

https://github.com/serverless-stack/sst/pull/2696

Thanks @dev-cyprium!


Add generation of query wrapper with operation/fragments definitions

Add new apollo-api module that will share api classes between compiler and runtime modules, as we can't just add apollo-runtime (android lib module) as dependency to apollo-compiler (java module).
Add generation of wrapper query class that holds operation/fragments definitions as well as nested interface class that represents response.
@felipecsl @marwanad @martijnwalraven pls take a look
Connected to #41

As example of generated query class: https://github.com/apollostack/apollo-android/blob/6f7592bf0552ec00b77e820dc4778e0b10cf6edb/apollo-compiler/src/test/graphql/com/example/simple_fragment/SimpleFragmentExpected.java

@felipecsl For now, but we will require it to send as string to server, as we have to define with query all fragments being used. So I assume the query executor will aggregate all fragment sources to one string and send with query string.

@sav007 alright this seems to be good to go, wanna merge this? I'll need it for #47


[Bug]: pt_main_thread processes are not killed after main process is killed in MP distributed executor backend

Your current environment
PyTorch version: 2.3.1+cu121
Is debug build: False
CUDA used to build PyTorch: 12.1
ROCM used to build PyTorch: N/A

OS: Ubuntu 22.04.4 LTS (x86_64)
GCC version: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0
Clang version: 14.0.0-1ubuntu1.1
CMake version: version 3.30.0
Libc version: glibc-2.35

Python version: 3.10.12 (main, Mar 22 2024, 16:50:05) [GCC 11.4.0] (64-bit runtime)
Python platform: Linux-5.15.0-78-generic-x86_64-with-glibc2.35
Is CUDA available: True
CUDA runtime version: 12.5.82
CUDA_MODULE_LOADING set to: LAZY
GPU models:

A100s

Versions of relevant libraries:
[pip3] numpy==1.26.4
[pip3] nvidia-nccl-cu12==2.20.5
[pip3] torch==2.3.1
[pip3] torchvision==0.18.1
[pip3] transformers==4.42.4
[pip3] triton==2.3.1
[conda] Could not collect
ROCM Version: Could not collect
Neuron SDK Version: N/A
vLLM Version: 0.5.3.post1
vLLM Build Flags:
CUDA Archs: Not Set; ROCm: Disabled; Neuron: Disabled

🐛 Describe the bug
I am trying to understand the vllm's workflow for distributed serving via multiprocessing. The original setup is deploying a model with tensor parallel size = 2 through Triton Inference Server and distributed_executor_backend: mp . While inference is going well, when server is shutting down , 2 processes pt_main_thread are not killed and their status is  State:	S (sleeping) .
The closes reproducer outside of Triton is this:
from vllm import SamplingParams
from vllm.engine.arg_utils import AsyncEngineArgs
from vllm.engine.async_llm_engine import AsyncLLMEngine
from vllm.utils import random_uuid
import time
import asyncio

SAMPLING_PARAMETERS = {"temperature": 0, "top_p": 1}

VLLM_ENGINE_CONFIG = {
    "model":"facebook/opt-125m",
    "disable_log_requests": "true",
    "gpu_memory_utilization": 0.5,
    "enforce_eager": "true",
    "tensor_parallel_size":2
}

PROMPTS = [
    "The most dangerous animal is",
    "The capital of France is",
    "The future of AI is",
]

async def generate_python_vllm_output(prompt, llm_engine):
    request_id = random_uuid()
    sampling_params = SamplingParams(**SAMPLING_PARAMETERS)
    python_vllm_output = None
    last_output = None

    async for vllm_output in llm_engine.generate(prompt, sampling_params, request_id):
        last_output = vllm_output

    if last_output:
        python_vllm_output = [
            (prompt + output.text).encode("utf-8") for output in last_output.outputs
        ]

    return python_vllm_output

llm_engine = AsyncLLMEngine.from_engine_args(AsyncEngineArgs(**VLLM_ENGINE_CONFIG))
python_vllm_output = []
for i in range(len(PROMPTS * 1000)):
    python_vllm_output.extend(
        asyncio.run(generate_python_vllm_output(PROMPTS[i], llm_engine))
    )

And the workflow is the following:
# ps
    PID TTY          TIME CMD
      1 pts/0    00:00:00 bash
  21346 pts/0    00:00:00 top
  21927 pts/0    00:00:00 top
  22463 pts/0    00:00:00 ps
# python3 vllm_reproducer.py &
...
Loading pt checkpoint shards: 100% Completed | 1/1 [00:00<00:00,  7.38it/s]
Loading pt checkpoint shards: 100% Completed | 1/1 [00:00<00:00,  7.37it/s]

INFO 07-25 00:18:58 model_runner.py:692] Loading model weights took 0.1202 GB
(VllmWorkerProcess pid=22534) INFO 07-25 00:18:58 model_runner.py:692] Loading model weights took 0.1202 GB
INFO 07-25 00:18:58 distributed_gpu_executor.py:56] # GPU blocks: 68037, # CPU blocks: 14563

# pkill -9  python3
# ps
    PID TTY          TIME CMD
      1 pts/0    00:00:00 bash
  21346 pts/0    00:00:00 top
  21927 pts/0    00:00:00 top
  22465 pts/0    00:00:22 pt_main_thread
  22534 pts/0    00:00:14 pt_main_thread
  22576 pts/0    00:00:00 python3 <defunct>
  22745 pts/0    00:00:00 ps

And same, the above 2 processes are in the sleeping state based on cat /proc/_PID_/status
Any insights on vllm's distributed serving with multiprocessing is greatly appreciated.

I also observed similar thing... My current workaround is to pkill -f pt_main_thread after terminating vLLM server.

pkill -f pt_main_thread after terminating vLLM server.

Unfortunately, this is not a viable solution for me

same issue here. pkill -f does not work for my case neither.

pkill -f pt_main_thread after terminating vLLM server.

This did not help in my case. I had to do:
top -b -n 1 | grep pt_main_thread | awk '{print $1}' | xargs kill -9


send multicast every 500ms when discovery is procesed

Codecov Report

Merging #12 into master will decrease coverage by 1.15%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master      #12      +/-   ##
==========================================
- Coverage   48.71%   47.56%   -1.16%
==========================================
  Files          14       14
  Lines         780      780
==========================================
- Hits          380      371       -9
- Misses        330      340      +10
+ Partials       70       69       -1

Impacted Files
Coverage Δ

local/onboardDevice.go
47.36% <0%> (-23.69%)
:arrow_down:

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 7d7580b...0bf842e. Read the comment docs.


Fixed issue with throwing error message for unsupported datatype.

Fixes #449

Codecov Report

Merging #450 into dev will decrease coverage by 0.15%.
The diff coverage is 0%.

@@             Coverage Diff              @@
##                dev     #450      +/-   ##
============================================
- Coverage     46.45%   46.29%   -0.16%
+ Complexity     2207     2197      -10
============================================
  Files           108      108
  Lines         25212    25212
  Branches       4165     4164       -1
============================================
- Hits          11711    11673      -38
- Misses        11477    11512      +35
- Partials       2024     2027       +3

Flag
Coverage Δ
Complexity Δ

#JDBC41
46.03% <0%> (-0.28%)
2181 <0> (-16)

#JDBC42
46.12% <0%> (-0.15%)
2191 <0> (-12)

Impacted Files
Coverage Δ
Complexity Δ

...om/microsoft/sqlserver/jdbc/SQLServerResource.java
100% <ø> (ø)
4 <0> (ø)
:arrow_down:

...rc/main/java/com/microsoft/sqlserver/jdbc/DDC.java
44.26% <ø> (-0.45%)
104 <0> (-1)

...rc/main/java/com/microsoft/sqlserver/jdbc/dtv.java
63.43% <0%> (-0.07%)
0 <0> (ø)

...om/microsoft/sqlserver/jdbc/ReaderInputStream.java
44.94% <0%> (-3.38%)
16% <0%> (-1%)

...om/microsoft/sqlserver/jdbc/SimpleInputStream.java
51.11% <0%> (-1.49%)
11% <0%> (-1%)

...va/com/microsoft/sqlserver/jdbc/StreamColumns.java
87.83% <0%> (-1.36%)
21% <0%> (-1%)

...in/java/com/microsoft/sqlserver/jdbc/IOBuffer.java
53.98% <0%> (-0.64%)
0% <0%> (ø)

...c/main/java/com/microsoft/sqlserver/jdbc/Util.java
59.17% <0%> (-0.44%)
88% <0%> (-1%)

...m/microsoft/sqlserver/jdbc/SQLServerResultSet.java
32.94% <0%> (-0.33%)
241% <0%> (-5%)

... and 3 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 62c5c6e...be29264. Read the comment docs.


Support Google Translate

Support Google Translate as a translation service.

Support should be under the gtr command namespace


Project has no license

Hi,
first of all, your project looks really cool.
But it has no license attached to it, could you please add a license to clarify how you allow your project to be used?
If you need help there getting started, here's a link to github docs about licensing a project: https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/licensing-a-repository
I've wanted to build a docker image for hosting your bot, but I don't want to do that because legally I'm not allowed to do that without a license and would rather be safe with that. Also I had a few issues building the project, would be also great if you could make that clearer, because a regular mvn package does not work on this project or on your indexer project either. Same thing with the licensing there.
Thank you :)

But it has no license attached to it, could you please add a license to clarify how you allow your project to be used?

You are likely within your rights to run it privately already, but I can add a license in case you want to modify or distribute it.

Also I had a few issues building the project, would be also great if you could make that clearer, because a regular mvn package does not work on this project or on your indexer project either.

A regular maven package does work, but you need the correct dependencies locally. Namely, a custom spoon version based on this PR and the indexer. There isn't really a great way I am aware of to solve this. Github packages require auth so I will likely need to fall back to jitpack or similar services.
I wasn't really sure whether anybody but me would ever want to run this bot :P (And the spoon PR is open for quite some time as well…)

I've wanted to build a docker image for hosting your bot,

That's what I am doing as well. Maybe I should just let github actions build one and push it to the github registry. You will still need to build indices (which can be quite large) yourself though.
I will have a look at improving the "clone and pwn" experience easier after work today :)

but I can add a license in case you want to modify or distribute it.

Sounds great. Thank you very much :)
I've had bad experiences with jitpack, so i would recommend you to use something different like Maven Central/Sonatype Snapshots since it seems like you own the domain of your package name.
Thank you for the instructions for building, I've tried building your indexer but the missing spoon thing was it.
Also an offical docker image would be cool.

I will have a look at improving the "clone and pwn" experience easier after work today :)

Take all the time you need. Thank you very much

I see you also added a license so I'll close this issue now. I think will play with the docker image tomorrow. Thank you for your time and work :)


LDP says rdfs:label should only be used in vocabulary documents

In the best practices of LDP it says for rdfs:label "Only use this in vocabulary documents, to define the name of the vocabulary term." Currently we use it for various labels. Should we switch to dct:title?

I didn't know that! I've seen rdfs:label used in all kinds of places. I might raise this with some of the W3C folk. I thought dct:title was more like the title of a document?

There's also skos:prefLabel which seems to fit perfectly things like observedProperty or category labels. And skos:prefLabel is a subproperty of rdfs:label, so no idea why LDP is so strict about that.


Kafka-stream not serialize value as long

Kafka-stream not serialize value as long
I had code to read msg from kafka and send  to a new topic(out-put-topic).
@StreamListener("input")
  @SendTo("output")
  public KStream<String, Long> process(KStream<String, Event> input) {

    return input
        .map(((key, value) -> KeyValue.pair(LocalDate.now().toString(), 1L)))
        .filter(
            (key, msg) -> {
              System.out.println("Got a message! key = {}, value = {}" + key + "  " + msg);
              return true;
            })
        .groupBy(((key, value) -> key), Serialized.with(Serdes.String(), Serdes.Long()))
        .reduce((e1, e2) -> e1 + e2)
        .toStream();
  }

application.yml
spring.cloud.stream.bindings.output:
  destination: out-put-topic
  producer:
    useNativeEncoding: true
    keySerde: org.apache.kafka.common.serialization.Serdes$StringSerde
    valueSerde: org.apache.kafka.common.serialization.Serdes$LongSerde
    headerMode: raw

in another project i had code to read msg from out-put-topic
@KafkaListener(topics = "${spring.kafka.topic}")
  public void receive(ConsumerRecord<String, String> record) {
    System.out.println("key:" + record.key() + " value:" + record.value());
     }

application.yml
spring:
  kafka:
    bootstrap-servers: broker1:9092, broker2:9092, broker3:9092
    topic: out-put-topic
    consumer:
      group-id: myGroup
      client-id: clientid
      auto-offset-reset: latest
      key-deserializer: org.apache.kafka.common.serialization.StringDeserializer
      value-deserializer: org.apache.kafka.common.serialization.StringDeserializer
    template:
      default-topic: out-put-topic

value-deserializer must using org.apache.kafka.common.serialization.StringDeserializer
for value-deserializer: org.apache.kafka.common.serialization.LongDeserializer not working
Cause
org.apache.kafka.common.errors.SerializationException: Error deserializing key/value for partition out-put-topic-0 at offset 1. If needed, please seek past the record to continue consumption.
Caused by: org.apache.kafka.common.errors.SerializationException: Size of data received by LongDeserializer is not 8

2018-04-04 10:09:25.249 ERROR 1 --- [ntainer#0-0-C-1] essageListenerContainer$ListenerConsumer : Container exception

org.apache.kafka.common.errors.SerializationException: Error deserializing key/value for partition out-put-topic-0 at offset 1. If needed, please seek past the record to continue consumption.
Caused by: org.apache.kafka.common.errors.SerializationException: Size of data received by LongDeserializer is not 8

I am still getting the same issue with  Hoxton.RELEASE with Java 11

@mammenj Please do not comment on closed issues especially with questions. For questions we use Stack Overflow channel.


Design a uniform constructor parameter that lets users specify how to handeling the beginning of streams

ChatGPT suggest this.
The warmup_mode parameter could accept the following values:

"strict": For cases where we enforce the minimum observations, outputting NaN until the minimum is met.
"expanding": For cases where we allow an expanding window, reducing the minimum requirement until enough data is available.
"zeros": For cases where we fill initial values with zeros until the minimum number of observations is reached. This could be useful for cumulative measures where zeros provide a neutral starting point.

This setup gives users flexibility while allowing for future expansion by adding new values to warmup_mode. The name warmup_mode directly suggests the purpose of the parameter and maintains simplicity and readability in user code.
Here are a few alternative names for warmup_mode that also suggest control over the initialization phase:

start_mode: This indicates how the computation should behave at the start of the stream, focusing on the initial period setup.
init_handling: This suggests control over how the initial observations are handled, hinting at various possible treatments for start-up behavior.
bootstrap: This term often refers to initialization or start-up phases, capturing the idea of "getting up to speed" for the main computation.
seed_mode: The term "seed" suggests the initial values required to start the stream processing, with options on how to "seed" the computation.
beginning_mode: This describes how the computation behaves in the beginning of the data stream, implying options that address initialization.
buffer_mode: Since this is about handling the stream buffer during start-up, this name implies control over initial buffer behavior.
startup_policy: The term "policy" indicates a user-defined approach or rule, and "startup" directly addresses the initial period before full data availability.

"Spark Streaming refers to the initial phase as the "initial batch" or "initial window". It provides configurations like spark.streaming.backpressure.enabled to manage data ingestion rates during startup, ensuring the system doesn't get overwhelmed when historical data is sparse."

I've implemented "start_policy" with possible string values "strict", "expanding" or "zero". Below are results
INPUT:      10   11   12   13   14   15   16   17

DelayBuffer N=1
strict:    nan   10   11   12   13   14   15   16
expanding   10   10   11   12   13   14   15   16
zero         0   10   11   12   13   14   15   16

DelayBuffer N=2
strict:    nan  nan   10   11   12   13   14   15
expanding   10   10   10   11   12   13   14   15
zero         0    0   10   11   12   13   14   15

DelayBuffer N=3
strict:    nan  nan  nan   10   11   12   13   14
expanding   10   10   10   10   11   12   13   14
zero         0    0    0   10   11   12   13   14

INPUT:       1    2    3    4    5    6    7    8

RollingSum N=1
strict:      1    2    3    4    5    6    7    8
expanding    1    2    3    4    5    6    7    8
zero         1    2    3    4    5    6    7    8

RollingSum N=2
strict:    nan    3    5    7    9   11   13   15
expanding    1    3    5    7    9   11   13   15
zero         1    3    5    7    9   11   13   15

RollingSum N=3
strict:    nan  nan    6    9   12   15   18   21
expanding    1    3    6    9   12   15   18   21
zero         1    3    6    9   12   15   18   21

INPUT:       1    2    3    4    5    6    7    8

RollingMean N=1
strict:    1.0  2.0  3.0  4.0  5.0  6.0  7.0  8.0
expanding  1.0  2.0  3.0  4.0  5.0  6.0  7.0  8.0
zero       1.0  2.0  3.0  4.0  5.0  6.0  7.0  8.0

RollingMean N=2
strict:    nan  1.5  2.5  3.5  4.5  5.5  6.5  7.5
expanding  1.0  1.5  2.5  3.5  4.5  5.5  6.5  7.5
zero       0.5  1.5  2.5  3.5  4.5  5.5  6.5  7.5

RollingMean N=3
strict:    nan  nan  2.0  3.0  4.0  5.0  6.0  7.0
expanding  1.0  1.5  2.0  3.0  4.0  5.0  6.0  7.0
zero       0.3  1.0  2.0  3.0  4.0  5.0  6.0  7.0

Implemented this for all rolling functions.


The function parameter names are the same, but the return value is different. There will be an error

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

[X] Foundry
[ ] Foundryup

What version of Foundry are you on?
forge 0.2.0 (dffdfde 2023-08-14T00:21:17.235733800Z)
What command(s) is the bug in?
forge test --contracts exchange.sol
Operating System
Windows
Describe the bug
"The same function parameter name, but different return values.
For the 'exchange' function of the Curve pool, the 2.x version does not have a return value. The 3.x version has a return value. If I combine the two contract interface files into one file, there will be an error."
For example：
2.x version:
function exchange(int128 i, int128 j, uint256 dx, uint256 min_dy) external payable;
3.x version:
function exchange(int128 i, int128 j, uint256 dx, uint256 min_dy) external payable returns (uint256);

This error is from solidity, and it's telling you that the exchange function is defined twice, but one version has a return value and the other does not. Functions are uniquely identified by their selector, and function selectors are computed from the function name and input arguments, not their return data, so you cannot have two functions with the same input but different return data.
Check out the solidity docs for more info on function selectors. This duplicate definition is a problem because when you call .exchange, solidity won't know whether it should expect a uint256 to be returned, or if nothing should be returned


Split transport-specific tests and general tests into distinct test projects (#1588)

Here's today's Huge PR Of The Day™, addressing #1588.
I suggest reading through the commit history instead of looking at everything at once.

@mikeharder I'd like your input on the MaxRequestBufferSizeTests changes.

@davidfowl told me to :shipit: in person 😛


Built-in functions for R are stale

https://github.com/microsoft/vscode/blob/c965b118a67c0f22895d2af899736d0e0aa82ffd/extensions/r/syntaxes/r.tmLanguage.json#L592C2-L592C2
Latest R contains more functions, e.g. this includes isTRUE() but not isFALSE().
isFALSE() was part of R 3.5.0, circa April 2018:
https://github.com/r-lib/backports#backports-for-r-versions-prior-to-350
https://github.com/wch/r-source/tree/tags/R-3-5-0

Moved to https://github.com/REditorSupport/vscode-R/issues/1429


Warn that unsigned file aren't installable on release versions of FF (bug 1161486)

Fixes bug 1161486

r+


mapping gamepad in the input_edit menu window

You can map keyboard keys but gamepad keys are currently hardcoded in the renderer/core/controls.js
Unsure if we want people to double map keys. As in you can have your dpad on your controller map and also have your keyboard map.


⚠ Bofrost.at has degraded performance

In e724f04, Bofrost.at (https://www.bofrost.at) experienced degraded performance:

HTTP code: 200
Response time: 2669 ms

Resolved: Bofrost.at performance has improved in 028ae25 after 306 days, 23 hours, 12 minutes.


CUDA Exception: Warp Illegal Address

Description
tag:release/v5.0_tag
docker image: nvcr.io/nvidia/tensorflow:20.12-tf1-py3

Reproduced Steps
mkdir build
cmake -DSM=80 -DCMAKE_BUILD_TYPE=DEBUG ..
make -j
cuda-gdb --args ./bin/decoding_example 1 4 16  32 2048 15000  4 12 300 512  0 0.0 1

CUDA Exception: Warp Illegal Address
The exception was triggered at PC 0x56204c84ebf0 (cuda_fp16.hpp:255)

Thread 1 "decoding_exampl" received signal CUDA_EXCEPTION_14, Warp Illegal Address.
[Switching focus to CUDA kernel 2, grid 406, block (0,0,0), thread (384,0,0), device 0, sm 0, warp 14, lane 0]
0x000056204c84ec00 in operator* (lh=0x7f45aad14300, rh=0x7f45d4fffdb8)
    at /usr/local/cuda/bin/../targets/x86_64-linux/include/cuda_fp16.hpp:255
255     __device__ __forceinline__ __half operator*(const __half &lh, const __half &rh) { return __hmul(lh, rh); }
(cuda-gdb) bt
#0  0x000056204c84ec00 in operator* (lh=0x7f45aad14300, rh=0x7f45d4fffdb8)
    at /usr/local/cuda/bin/../targets/x86_64-linux/include/cuda_fp16.hpp:255
#1  fastertransformer::embeddingLookupPosEncoding<__half><<<(4,1,1),(512,1,1)>>> (from_tensor=0x7f45869a3400,
    embedding_table=0x7f45a7c00000, position_encoding=0x7f4583c00000, all_ids=0x7f45869a4e00, input_lengths=0x0, local_batch_size=4,
    hidden_units=512, step=0, max_input_length=0, batch_size=4, ite=0, scale=22.625)
    at /projs/AE/zhaoying/FasterTransformer/src/fastertransformer/kernels/decoding_kernels.cu:124
(cuda-gdb) up 1
#1  fastertransformer::embeddingLookupPosEncoding<__half><<<(4,1,1),(512,1,1)>>> (from_tensor=0x7f45869a3400,
    embedding_table=0x7f45a7c00000, position_encoding=0x7f4583c00000, all_ids=0x7f45869a4e00, input_lengths=0x0, local_batch_size=4,
    hidden_units=512, step=0, max_input_length=0, batch_size=4, ite=0, scale=22.625)
    at /projs/AE/zhaoying/FasterTransformer/src/fastertransformer/kernels/decoding_kernels.cu:124
124             T val = embedding_table[all_ids[id_offset + row_index] * hidden_units + col_index] * scale;
(cuda-gdb) l
119             const int row_index = index / hidden_units;
120             const int col_index = index % hidden_units;
121             const int step_offset = input_lengths == nullptr ?
122                                         step * hidden_units :
123                                         (step - max_input_length + input_lengths[row_index]) * hidden_units;
124             T val = embedding_table[all_ids[id_offset + row_index] * hidden_units + col_index] * scale;
125             val = val + position_encoding[step_offset + col_index];
126
127             from_tensor[index] = val;
128         }
(cuda-gdb) p all_ids[id_offset + row_index]
$1 = 50256
(cuda-gdb) p all_ids[id_offset + row_index] * hidden_units + col_index
$2 = 25731456
(cuda-gdb)

Hi, I think the problem is caused by start_id and end_id are set to 50256, which is larger than vocab size here.
Can you modify them to any number smaller than your vocab size and test again?

Hi, I think the problem is caused by start_id and end_id are set to 50256, which is larger than vocab size here. Can you modify them to any number smaller than your vocab size and test again?

thanks


position=current + opening file resets position in tree

Did you check docs and existing issues?

[X] I have read all the docs.
[X] I have searched the existing issues.
[X] I have searched the existing discussions.

Neovim Version (nvim -v)
0.9.1
Operating System / Version
MacOS 13.5.1
Describe the Bug
I'm using :Neotree position=current toggle to toggle Neotree. When going to a line in the tree and then toggling it off and on the cursor stays on the same position. If I open a file in the tree, of :e open a file when I'm in the Neotree buffer the tree gets reset and the cursor resets to the top of the tree.
Is is possible to keep the current state of the tree when opening a file? I looked at the events but I wasn't sure if I could use those to get the behavior I'm looking for.
Screenshots, Traceback
https://github.com/nvim-neo-tree/neo-tree.nvim/assets/3979/2e457eb9-5b66-4c15-8772-d2b35035e009
Steps to Reproduce

Open vim
Open Neotree with :Neotree position=current toggle
Move the cursor to a random position / other file
Close Neotree with q or :Neotree position=current toggle
Open Neotree again
Observe the cursor remained on the same position
Open the file under the cursor in the tree
Open Neotree again
Observe that the cursor jumped back to the top of the tree

Expected Behavior
I wanted the cursor to be in the same position before I opened the file.
Your Configuration
("neo-tree").setup({
    close_if_last_window = false, -- Close Neo-tree if it is the last window left in the tab
    popup_border_style = "rounded",
    enable_git_status = true,
    enable_diagnostics = true,
    enable_normal_mode_for_inputs = false,                             -- Enable normal mode for input dialogs.
    open_files_do_not_replace_types = { "terminal", "trouble", "qf" }, -- when opening files, do not use windows containing these filetypes or buftypes
    sort_case_insensitive = false,                                     -- used when sorting files and directories in the tree
    sort_function = nil,                                               -- use a custom function for sorting files and directories in the tree
    -- sort_function = function (a,b)
    --       if a.type == b.type then
    --           return a.path > b.path
    --       else
    --           return a.type > b.type
    --       end
    --   end , -- this sorts files and directories descendantly
    default_component_configs = {
        container = {
            enable_character_fade = true
        },
        indent = {
            indent_size = 2,
            padding = 1, -- extra padding on left hand side
            -- indent guides
            with_markers = true,
            indent_marker = "│",
            last_indent_marker = "└",
            highlight = "NeoTreeIndentMarker",
            -- expander config, needed for nesting files
            with_expanders = nil, -- if nil and file nesting is enabled, will enable expanders
            expander_collapsed = "",
            expander_expanded = "",
            expander_highlight = "NeoTreeExpander",
        },
        icon = {
            folder_closed = "",
            folder_open = "",
            folder_empty = "󰜌",
            -- The next two settings are only a fallback, if you use nvim-web-devicons and configure default icons there
            -- then these will never be used.
            default = "*",
            highlight = "NeoTreeFileIcon"
        },
        modified = {
            symbol = "[+]",
            highlight = "NeoTreeModified",
        },
        name = {
            trailing_slash = false,
            use_git_status_colors = true,
            highlight = "NeoTreeFileName",
        },
        git_status = {
            symbols = {
                -- Change type
                added     = "",  -- or "✚", but this is redundant info if you use git_status_colors on the name
                modified  = "",  -- or "", but this is redundant info if you use git_status_colors on the name
                deleted   = "✖", -- this can only be used in the git_status source
                renamed   = "󰁕", -- this can only be used in the git_status source
                -- Status type
                untracked = "",
                ignored   = "",
                unstaged  = "󰄱",
                staged    = "",
                conflict  = "",
            }
        },
        -- If you don't want to use these columns, you can set `enabled = false` for each of them individually
        file_size = {
            enabled = true,
            required_width = 64, -- min width of window required to show this column
        },
        type = {
            enabled = true,
            required_width = 122, -- min width of window required to show this column
        },
        last_modified = {
            enabled = true,
            required_width = 88, -- min width of window required to show this column
        },
        created = {
            enabled = true,
            required_width = 110, -- min width of window required to show this column
        },
        symlink_target = {
            enabled = false,
        },
    },
    -- A list of functions, each representing a global custom command
    -- that will be available in all sources (if not overridden in `opts[source_name].commands`)
    -- see `:h neo-tree-custom-commands-global`
    commands = {},
    window = {
        position = "left",
        width = 40,
        mapping_options = {
            noremap = true,
            nowait = true,
        },
        mappings = {
            ["<space>"] = {
                "toggle_node",
                nowait = false, -- disable `nowait` if you have existing combos starting with this char that you want to use
            },
            ["<2-LeftMouse>"] = "open",
            ["<cr>"] = "open",
            ["<esc>"] = "cancel", -- close preview or floating neo-tree window
            ["P"] = { "toggle_preview", config = { use_float = true } },
            ["l"] = "focus_preview",
            ["S"] = "open_split",
            ["s"] = "open_vsplit",
            -- ["S"] = "split_with_window_picker",
            -- ["s"] = "vsplit_with_window_picker",
            ["t"] = "open_tabnew",
            -- ["<cr>"] = "open_drop",
            -- ["t"] = "open_tab_drop",
            ["w"] = "open_with_window_picker",
            --["P"] = "toggle_preview", -- enter preview mode, which shows the current node without focusing
            ["C"] = "close_node",
            -- ['C'] = 'close_all_subnodes',
            ["z"] = "close_all_nodes",
            --["Z"] = "expand_all_nodes",
            ["a"] = {
                "add",
                -- this command supports BASH style brace expansion ("x{a,b,c}" -> xa,xb,xc). see `:h neo-tree-file-actions` for details
                -- some commands may take optional config options, see `:h neo-tree-mappings` for details
                config = {
                    show_path = "none" -- "none", "relative", "absolute"
                }
            },
            ["A"] = "add_directory", -- also accepts the optional config.show_path option like "add". this also supports BASH style brace expansion.
            ["d"] = "delete",
            ["r"] = "rename",
            ["y"] = "copy_to_clipboard",
            ["x"] = "cut_to_clipboard",
            ["p"] = "paste_from_clipboard",
            ["c"] = "copy", -- takes text input for destination, also accepts the optional config.show_path option like "add":
            -- ["c"] = {
            --  "copy",
            --  config = {
            --    show_path = "none" -- "none", "relative", "absolute"
            --  }
            --}
            ["m"] = "move", -- takes text input for destination, also accepts the optional config.show_path option like "add".
            ["q"] = "close_window",
            ["R"] = "refresh",
            ["?"] = "show_help",
            ["<"] = "prev_source",
            [">"] = "next_source",
            ["i"] = "show_file_details",
        }
    },
    nesting_rules = {},
    filesystem = {
        filtered_items = {
            visible = false, -- when true, they will just be displayed differently than normal items
            hide_dotfiles = true,
            hide_gitignored = true,
            hide_hidden = true, -- only works on Windows for hidden files/directories
            hide_by_name = {
                --"node_modules"
            },
            hide_by_pattern = { -- uses glob style patterns
                --"*.meta",
                --"*/src/*/tsconfig.json",
            },
            always_show = { -- remains visible even if other settings would normally hide it
                --".gitignored",
            },
            never_show = { -- remains hidden even if visible is toggled to true, this overrides always_show
                --".DS_Store",
                --"thumbs.db"
            },
            never_show_by_pattern = { -- uses glob style patterns
                --".null-ls_*",
            },
        },
        follow_current_file = {
            enabled = false,                    -- This will find and focus the file in the active buffer every time
            --               -- the current file is changed while the tree is open.
            leave_dirs_open = false,            -- `false` closes auto expanded dirs, such as with `:Neotree reveal`
        },
        group_empty_dirs = false,               -- when true, empty folders will be grouped together
        hijack_netrw_behavior = "open_default", -- netrw disabled, opening a directory opens neo-tree
        -- in whatever position is specified in window.position
        -- "open_current",  -- netrw disabled, opening a directory opens within the
        -- window like netrw would, regardless of window.position
        -- "disabled",    -- netrw left alone, neo-tree does not handle opening dirs
        use_libuv_file_watcher = true, -- This will use the OS level file watchers to detect changes
        -- instead of relying on nvim autocmd events.
        window = {
            mappings = {
                ["<bs>"] = "navigate_up",
                ["."] = "set_root",
                ["H"] = "toggle_hidden",
                ["/"] = "fuzzy_finder",
                ["D"] = "fuzzy_finder_directory",
                ["#"] = "fuzzy_sorter", -- fuzzy sorting using the fzy algorithm
                -- ["D"] = "fuzzy_sorter_directory",
                ["f"] = "filter_on_submit",
                ["<c-x>"] = "clear_filter",
                ["[g"] = "prev_git_modified",
                ["]g"] = "next_git_modified",
                ["o"] = { "show_help", nowait = false, config = {
                    title = "Order by", prefix_key = "o" }
                },
                ["oc"] = { "order_by_created", nowait = false },
                ["od"] = { "order_by_diagnostics", nowait = false },
                ["og"] = { "order_by_git_status", nowait = false },
                ["om"] = { "order_by_modified", nowait = false },
                ["on"] = { "order_by_name", nowait = false },
                ["os"] = { "order_by_size", nowait = false },
                ["ot"] = { "order_by_type", nowait = false },
            },
            fuzzy_finder_mappings = {
                -- define keymaps for filter popup window in fuzzy_finder_mode
                ["<down>"] = "move_cursor_down",
                ["<C-n>"] = "move_cursor_down",
                ["<up>"] = "move_cursor_up",
                ["<C-p>"] = "move_cursor_up",
            },
        },

        commands = {} -- Add a custom command or override a global one using the same function name
    },
    buffers = {
        follow_current_file = {
            enabled = false,         -- This will find and focus the file in the active buffer every time
            --                       -- the current file is changed while the tree is open.
            leave_dirs_open = false, -- `false` closes auto expanded dirs, such as with `:Neotree reveal`
        },
        group_empty_dirs = true,     -- when true, empty folders will be grouped together
        show_unloaded = true,
        window = {
            mappings = {
                ["bd"] = "buffer_delete",
                ["<bs>"] = "navigate_up",
                ["."] = "set_root",
                ["o"] = { "show_help", nowait = false, config = {
                    title = "Order by", prefix_key = "o" }
                },
                ["oc"] = { "order_by_created", nowait = false },
                ["od"] = { "order_by_diagnostics", nowait = false },
                ["om"] = { "order_by_modified", nowait = false },
                ["on"] = { "order_by_name", nowait = false },
                ["os"] = { "order_by_size", nowait = false },
                ["ot"] = { "order_by_type", nowait = false },
            }
        },
    },
    git_status = {
        window = {
            position = "float",
            mappings = {
                ["A"]  = "git_add_all",
                ["gu"] = "git_unstage_file",
                ["ga"] = "git_add_file",
                ["gr"] = "git_revert_file",
                ["gc"] = "git_commit",
                ["gp"] = "git_push",
                ["gg"] = "git_commit_and_push",
                ["o"]  = { "show_help", nowait = false, config = {
                    title = "Order by", prefix_key = "o" }
                },
                ["oc"] = { "order_by_created", nowait = false },
                ["od"] = { "order_by_diagnostics", nowait = false },
                ["om"] = { "order_by_modified", nowait = false },
                ["on"] = { "order_by_name", nowait = false },
                ["os"] = { "order_by_size", nowait = false },
                ["ot"] = { "order_by_type", nowait = false },
            }
        }
    },
    event_handlers = {
        -- {
        --     event = "neo_tree_buffer_leave",
        --     handler = function()
        --             error("zzz")
        --     end
        -- },
        --     {
        --         event = "file_open_requested",
        --         handler = function(file_path)
        --             error("zzz")
        --             -- auto close
        --             -- vimc.cmd(":Neotree position=current toggle<cr>")
        --             -- OR
        --             -- require("neo-tree.command").execute({ action = "close" })
        --         end
        --     },
        --     {
        --         event = "file_opened",
        --         handler = function(file_path)
        --             error("adfaf")
        --             -- auto close
        --             -- vimc.cmd(":Neotree position=current toggle<cr>")
        --             -- OR
        --             -- require("neo-tree.command").execute({ action = "close" })
        --         end
        --     },

    }
})

-- maybe add something like this: https://www.reddit.com/r/neovim/comments/118unhi/nvimtree_follow_open_files_buffers/j9kvxgb/
vim.keymap.set({ "n" }, "-", ":Neotree position=current toggle<cr>",
    { desc = "Toggle neotree" })

If I remember correctly, that's a limitation of position=current unfortunately.
Instead, how about position=float (which does remember your cursor position)? Or you could set the config option config.filesystem.follow_current_file.enabled = true to achieve something similar.

Actually I think this is a bug @pysan3. I never noticed because I have always used follow_current_file and reveal so it is always focused on my last used file. With the steps described I would have expected it to retain focus from the last session.

@LeonB I was testing the @cseickel solution and you actually need to make sure to use reveal along with config.filesystem.follow_current_file.enabled = true. In my case I'm using a keymap ':Neotree reveal toggle<CR>' and I always set the cursor in the tree exactly on my last open buffer. The only issue I can see is that this doesn't really remember the last position like in the position=float configuration but it does the trick if you don't really mind the behaviour I'm mentioning.

I had a similar issue, for the moment downgrading to tag "3.14" fix the issue for me.
use({ "nvim-neo-tree/neo-tree.nvim", tag = "3.14" })

Hi, could you test with the latest main branch againt?
I hope this is now fixed through a series of cursor position related PRs.

Latest commit didn't work for me. Rolling back to 3.14 did! Thanks @kasshedi117

The suggestion from @danieljonguitud seemed to work!
vim.keymap.set({ "n" }, "-", ":Neotree reveal position=current toggle<cr>",
    { desc = "Toggle neotree" })

Now toggling remember the cursor position


Typography的edit-end事件没有返回值

[ ] I'm sure this does not appear in the issue list of the repository

Basic Info

Package Name And Version<EMAIL_ADDRESS>Browser: chrome101.0.4951.54
Reproduction Link: https://codesandbox.io/s/staging-glade-8032hd?file=/src/App.vue

@Syritian 你好，谢谢，这是一个bug，近期会修复。
@Flsion Bugs
https://github.com/arco-design/arco-design-vue/blob/dba580d40fa8d0c7c644209e1a920e3355a3930f/packages/web-vue/components/typography/base.tsx#L317-L326
文档也有点问题
https://github.com/arco-design/arco-design-vue/blob/dba580d40fa8d0c7c644209e1a920e3355a3930f/packages/web-vue/components/typography/base.tsx#L228-L239

你好，这个事件确实不应该有返回值，我们改进一下文档


Privacy Issue: SAP BTP ABAP Trial Environment - email address of other users are visible

In the BTP Trial environment, everyone is using a common system.
So, when trying to add link to my own Git repo using abapGit view, I can see all the other Git repos that have already been linked and the email address of the users who have linked those repos.
I find it a bit strange that I can see all these emails.

This is a problem of the abapGit Eclipse add-in and the responsibility of SAP. We can't do anything about it here.


yas error in org capture templates

Happens when I type anything after a capture and hit the space button:
Debugger entered--Lisp error: (wrong-type-argument overlayp nil)
  overlay-start(nil)
  yas--snapshot-overlay-location(nil 40 103)
  yas--auto-fill()
  internal-auto-fill()
  self-insert-command(1)
  org-self-insert-command(1)
  funcall-interactively(org-self-insert-command 1)
  call-interactively(org-self-insert-command nil nil)
  command-execute(org-self-insert-command)

This appears to be a duplicate of https://github.com/hlissner/doom-emacs/issues/1401.


api monitoring

to be solve after 7.8.24 class

i connected prometheus and grafana and made a basic dashboard.
we need to build :

alarts
enhance the dashboard


Add Packages depending on BuildType

Hey,
I'm currently trying to add Open3D's pre-built packages into my project. They come as several individual packages (differ mainly in platform and build type). Each of these come with its own proper cmake Config files and they all declare the target Open3D::Open3D, thus simply adding all of them and reference the desired one via GeneratorExpression doesn't seem to work here.
I would like to link the debug package into my debug build and the release package into the release build. The straight forward way would be to use a if/else setup, checking for CMAKE_BUILD_TYPE, but that seems like an improper solution as this won't work for multi-config environments.
Is there anything cpm can do for me here? Or does a proper solution in vanilla cmake already exist?
For the reference:
I'm using a package-lock file and thus add the packages via CPMGetPackage

Unfortunately I don't know enough about multi-config builds to understand if or how CPM could help out here.


Bugfix/participation-websocket-service changes passed participation object

Checklist

[x] I run yarn run webpack:build:main: the project builds without errors.
[x] I run yarn lint: the project builds without code style warnings.
[ ] ~I updated the documentation and models.~
[x] I tested the changes and all related features on the test server https://artemistest.ase.in.tum.de.
[ ] ~I added (end-to-end) test cases for the new functionality.~

Description

The participation websocket service mutates the given participation by adding the exercise to it if provided.
Due to this in the programming exercise update component encounters a circular structure error when trying to save the exercise.
I have created a hotfix for this issue: https://github.com/ls1intum/ArTEMiS/pull/554
Steps for Testing

Log in to ArTEMiS
Create a programming exercise
=> Exercise creation should be successful

Screenshots

@maximilianmeier
Could you please take a quick look into this fix?
The only place also affected would be the course-exercise-detail, all other components don't pass in an exercise manually.
I think we should fix this now, because the more components use the service, the more likely it will be that this issue comes up again.

@krusche
I tested this PR on the test server:
Not only the creation/update of the programming exercises is concerned, also potentially the overview-exercise-detail pages (they also pass the exercise manually as a paremeter).
I went through the detail pages of the different exercise types and didn't see any issues.

I am a bit confused. I created several programming exercises in the last day on production and did not experience any issues. Can you clarify when this problem actually occurs?

Ok I assume that we introduced the problem after the last release


Change all line endings to LF for consistency

They're CR's now which works fine on the Mac in Script Editor. But it displays poorly on GitHub and will probably mess up future edits / commits.  See
http://www.apeth.com/sd5help/indexfolder/referencfolder/faqfolder/lineendings.html
https://apple.stackexchange.com/questions/89457/source-code-to-string-in-variable

I renamed the original source file (that contained CRs) and uploaded a new version that contains only LFs. The new one looks good online.


Website on bakery store

Hey, @shubham7668 I am currently making a website based on a bakery, So I want you to give me a chance to showcase my skills.
Thank you

Yes go ahead @Sivasanath06

I've a created many websites, can you assign this to me?


README: MDN-style formatting on JavaScript blocks

I had a hard time reading the example blocks. (this is an entirely personal opinion, I don't mind if this is denied)

It takes up more vertical space, but it does make it a lot easier to see how data changes with a merge.  Thanks!


Fix toolbar CSS

link to the component: https://github.com/noams24/Kef-Code/blob/main/src/layouts/editor/plugins/ToolbarPlugin/index.tsx
The toolbar isn't in the top of the text editor component,
the user can't see all the boxes.
To solve this problem, maybe make the boxes smaller and add flex-wrap
example in this website: https://platform.stratascratch.com/technical/2451-netflix-clone

can i take this issue?

can I take this issue?

Yes! Check my comment on the PR


Downloading scripts on the phone doesn't work

I've gotten it to download and process the Mozilla and OpenCellID databases, so that the button at the bottom says "Done". But then when I click that and it goes back to the settings screen it says that there's no database found. This is using MCC "310,311" which are the default and happens when doing just the Mozilla database and when doing both. The README mentions no other instructions so I assume the error isn't on my end.

If you exit the settings menu and then re-enter it, does it show a database date?
I think that is an artifact of how I handle synchronization between the download thread and the location lookup thread: The download thread puts the database file with a ".new" suffix into the /sdcard/.nogapps directory. When the lookup thread next has anything to do it checks and if there is a new database it closes the old database (if any) and then renames the current to ".old" and then ".new" to the current.
However all that happens after you return to the settings pane after the download is complete so at that time there is either no database (first time) or an old database (later downloads) which is shown.

No it doesn't. I've downloaded multiple times to where it's said finished and the buttons says Done.
But your comment about the files had me look into the filesystem. Which I neglected to take a screenshot of, but it had three files, a .db, a .new, and a .old file.
So now I've deleted them and an downloading a new Mozilla location Services file (can't do OpenCellID again today). It downloaded successfully, told me it was finished, and I hit okay. It still didn't show a database even when existing the settings and going back in. And looking at the .nogapps folder I don't see any files.

First, thank you for your patience! Waiting for downloads to complete can be very frustrating.
Question: Was there any text above the "Finished" that mentioned indexing?
I just had a failure that I think might be like you describe and on that one the "indexing" text was missing and no new database was created. Unfortunately, with the release build there is insufficient logging to show what went wrong. At the least, I need to expand on the logging to the screen to show if the "finished" was successful or not and if not why. Here is the screen shot of the failed load:

Here is one that worked (I had to only do Mozilla):

If you watch the /sdcard/.nogapps directory you can see how the database file management works:
shell@maguro:/sdcard/.nogapps $ ls -l
drwxrwx--- root     sdcard_r          2015-01-27 10:39 blankstore
-rw-rw---- root     sdcard_r 111808512 2015-01-23 19:32 lacells.db
-rw-rw---- root     sdcard_r 107044864 2015-01-13 16:26 lacells.db.bak
-rw-rw---- root     sdcard_r 38100992 2015-02-11 14:56 new_lacells-1387648386.db
-rw-rw---- root     sdcard_r    37448 2015-02-11 14:56 new_lacells-1387648386.db-journal
shell@maguro:/sdcard/.nogapps $ ls -l
drwxrwx--- root     sdcard_r          2015-01-27 10:39 blankstore
-rw-rw---- root     sdcard_r 111808512 2015-01-23 19:32 lacells.db
-rw-rw---- root     sdcard_r 107044864 2015-01-13 16:26 lacells.db.bak
-rw-rw---- root     sdcard_r 48066560 2015-02-11 14:56 lacells.db.new
shell@maguro:/sdcard/.nogapps $ ls -l
drwxrwx--- root     sdcard_r          2015-01-27 10:39 blankstore
-rw-rw---- root     sdcard_r 48066560 2015-02-11 14:56 lacells.db
-rw-rw---- root     sdcard_r 111808512 2015-01-23 19:32 lacells.db.bak
shell@maguro:/sdcard/.nogapps $

I have had downloads fail to index before, but the most recent one I last posted about did finish indexing.
Would it be worth you adding a logging feature that just saves a more detailed text log into the .nogapps directory of what's happening. This then won't clutter the UI but can still be used for debugging. And if it only ever saves the last download, it won't take up too much space.

Good idea on writing a text log to .nogapps. I'll definitely do that.

And I don't see any data in .nogapps anymore, even when the database download completes successfully. Would deleting the old .db file have broken this thing?

Deleting the old .db should have no effect. In the last hour I both checked the code and tried it and downloads work with no old .db file as well as with an old .db file.
But I've been beating on the download and I've had another failure, looks like the download loop exited because of an external state change request but, again, I didn't have enough logging to verify. Adding more logging for error conditions. Since it does not fail for me very often, it may take a while to chase this down.

No worries, I'm happy to help test also. I can't build .apks, but if you can post one, I'll run it for you.

I've just pushed a new version that adds a log file and some additional logging. If you are willing to wait, it seems F-Droid is fairly rapid at making versions. If you are not willing to wait, I put my latest on Dropbox at https://dl.dropboxusercontent.com/u/19663978/android_apps_gsmlp-debug.apk

Downloaded it and ran it, but I still see nothing in the .nogapps directory at all. It also failed to change the Cancel button into an Okay button after it says Finished, so this would've been nice to have seen a log for. Don't really know what to do at this point. :-/

Not even a lacells_gen.log file in .nogapps directory?
Is it possible to send a personal message on GitHub? I haven't seen a way but I'd like to send you my email address. It would make it easier to share files and notes to get to the bottom of this issue.

just email me, susurrus at gmail

and nothing in that directory

Looks like I lied. There is a log and db.new file in the directory.

Log doesnt say anything besides what I normally see on the screen. No extra errors or anything.

I'll try the Mozilla db again.

Try leaving the settings, verify that the backend is checked in the UnifiedNLP settings and then do something that needs a location. After that look in .nogapps and see if the .new file has been renamed to lacells.db

Also, if you can do a logcat, you should see some entries with the string "backend" in them including some from UnifiedNLP which will say which backend(s) it has gotten data from and what it got.

Never got the settings app to rename the db file, but doing it manually now has it showing up.
Havent see the backend popup yet. I'll post a log.

'''I/ActivityManager(  551): Start proc org.microg.nlp.backend.nominatim for service org.microg.nlp.backend.nominatim/.BackendService: pid=1171 uid=10107 gids={50107, 9997, 3003, 1028, 1015} abi=armeabi-v7a
I/ActivityManager(  551): Start proc org.fitchfamily.android.wifi_backend for service org.fitchfamily.android.wifi_backend/.BackendService: pid=1417 uid=10079 gids={50079, 9997} abi=armeabi-v7a
W/ActivityManager(  551): Unable to start service Intent { act=org.microg.nlp.LOCATION_BACKEND pkg=org.fitchfamily.android.gsmlocation cmp=org.fitchfamily.android.gsmlocation/.GSMService } U=0: not found
I/ActivityManager(  551): START u0 {act=android.intent.action.VIEW dat=https://github.com/n76/Local-GSM-Backend/issues/8 flg=0x90000 cmp=org.mozilla.firefox/.App (has extras)} from uid 10020 on display 0
D/NlpGeocodeBackendHelper(  950): Unbinding from: Intent { act=org.microg.nlp.GEOCODER_BACKEND pkg=org.microg.nlp.backend.nominatim cmp=org.microg.nlp.backend.nominatim/.BackendService }
D/NlpLocationBackendHelper(  950): Unbinding from: Intent { act=org.microg.nlp.LOCATION_BACKEND pkg=org.fitchfamily.android.wifi_backend cmp=org.fitchfamily.android.wifi_backend/.BackendService }
D/NlpGeocodeBackendHelper(  950): Binding to: Intent { act=org.microg.nlp.GEOCODER_BACKEND pkg=org.microg.nlp.backend.nominatim cmp=org.microg.nlp.backend.nominatim/.BackendService }
D/NlpLocationBackendHelper(  950): Unbinding from: Intent { act=org.microg.nlp.LOCATION_BACKEND pkg=org.fitchfamily.android.gsmlocation cmp=org.fitchfamily.android.gsmlocation/.GSMService }
D/NlpGeocodeBackendHelper(  950): Bound to: ComponentInfo{org.microg.nlp.backend.nominatim/org.microg.nlp.backend.nominatim.BackendService}
D/gsm-backend-service( 9673): Binder CLOSE called
D/NlpLocationBackendHelper(  950): Binding to: Intent { act=org.microg.nlp.LOCATION_BACKEND pkg=org.fitchfamily.android.wifi_backend cmp=org.fitchfamily.android.wifi_backend/.BackendService }
D/NlpLocationBackendHelper(  950): Binding to: Intent { act=org.microg.nlp.LOCATION_BACKEND pkg=org.fitchfamily.android.gsmlocation cmp=org.fitchfamily.android.gsmlocation/.GSMService }
D/NlpLocationBackendHelper(  950): Not (yet) bound.
D/NlpLocationBackendHelper(  950): Not (yet) bound.
D/NlpLocationBackendHelper(  950): Bound to: ComponentInfo{org.fitchfamily.android.wifi_backend/org.fitchfamily.android.wifi_backend.BackendService}
D/wifi-backend-configuation( 1417): fillFromPrefs(): Min GPS accuracy: 10.0
D/wifi-backend-configuation( 1417): fillFromPrefs(): Min GPS time: 5000
D/wifi-backend-configuation( 1417): fillFromPrefs(): Min GPS distance: 0.0
D/wifi-backend-configuation( 1417): fillFromPrefs(): AP min range: 50.0
D/wifi-backend-configuation( 1417): fillFromPrefs(): AP moved threshold: 1250.0
D/wifi-backend-configuation( 1417): fillFromPrefs(): AP moved guard count: 50
D/NlpLocationBackendHelper(  950): Bound to: ComponentInfo{org.fitchfamily.android.gsmlocation/org.fitchfamily.android.gsmlocation.GSMService}
D/gsm-backend-service( 9673): Starting location backend
D/gsm-backend-service( 9673): Binder OPEN called
D/gsm-backend-service( 9673): Starting reporter thread
D/NlpLocationBackendHelper(  950): Unbinding from: Intent { act=org.microg.nlp.LOCATION_BACKEND pkg=org.fitchfamily.android.wifi_backend cmp=org.fitchfamily.android.wifi_backend/.BackendService }
D/NlpGeocodeBackendHelper(  950): Unbinding from: Intent { act=org.microg.nlp.GEOCODER_BACKEND pkg=org.microg.nlp.backend.nominatim cmp=org.microg.nlp.backend.nominatim/.BackendService }
D/NlpGeocodeBackendHelper(  950): Binding to: Intent { act=org.microg.nlp.GEOCODER_BACKEND pkg=org.microg.nlp.backend.nominatim cmp=org.microg.nlp.backend.nominatim/.BackendService }
D/NlpLocationBackendHelper(  950): Unbinding from: Intent { act=org.microg.nlp.LOCATION_BACKEND pkg=org.fitchfamily.android.gsmlocation cmp=org.fitchfamily.android.gsmlocation/.GSMService }
D/NlpGeocodeBackendHelper(  950): Bound to: ComponentInfo{org.microg.nlp.backend.nominatim/org.microg.nlp.backend.nominatim.BackendService}
D/gsm-backend-service( 9673): Binder CLOSE called
D/NlpLocationBackendHelper(  950): Binding to: Intent { act=org.microg.nlp.LOCATION_BACKEND pkg=org.fitchfamily.android.wifi_backend cmp=org.fitchfamily.android.wifi_backend/.BackendService }
D/NlpLocationBackendHelper(  950): Binding to: Intent { act=org.microg.nlp.LOCATION_BACKEND pkg=org.fitchfamily.android.gsmlocation cmp=org.fitchfamily.android.gsmlocation/.GSMService }
D/NlpLocationBackendHelper(  950): Bound to: ComponentInfo{org.fitchfamily.android.wifi_backend/org.fitchfamily.android.wifi_backend.BackendService}
D/wifi-backend-configuation( 1417): fillFromPrefs(): Min GPS accuracy: 10.0
D/wifi-backend-configuation( 1417): fillFromPrefs(): Min GPS time: 5000
D/wifi-backend-configuation( 1417): fillFromPrefs(): Min GPS distance: 0.0
D/wifi-backend-configuation( 1417): fillFromPrefs(): AP min range: 50.0
D/wifi-backend-configuation( 1417): fillFromPrefs(): AP moved threshold: 1250.0
D/wifi-backend-configuation( 1417): fillFromPrefs(): AP moved guard count: 50
D/NlpLocationBackendHelper(  950): Not (yet) bound.
D/NlpLocationBackendHelper(  950): Bound to: ComponentInfo{org.fitchfamily.android.gsmlocation/org.fitchfamily.android.gsmlocation.GSMService}
D/gsm-backend-service( 9673): Starting location backend
D/gsm-backend-service( 9673): Binder OPEN called
D/gsm-backend-service( 9673): Starting reporter thread
D/gsm-backend-settings( 9673): prefsFragment.onCreate(): ociKeyPreference is OpenCellId API
D/gsm-backend-settings( 9673): prefsFragment.onCreate(): mccFilterPreference is MCC Filter
D/gsm-backend-settings( 9673): Use OpenCellID data = false
D/gsm-backend-settings( 9673): Use Mozilla data = true
D/gsm-backend-settings( 9673): OpenCellId API Key =
D/gsm-backend-settings( 9673): MCC filtering = 310,311
D/gsm-backend-settings( 9673): Inputs validated: Start background processing...
D/gsm-backend-settings( 9673): Use OpenCellID data = false
D/gsm-backend-settings( 9673): Use Mozilla data = true
D/gsm-backend-settings( 9673): OpenCellId API Key =
D/gsm-backend-settings( 9673): MCC filtering = 310,311
I/gsm-backend-dlActivity( 9673): onCreate(Bundle)
D/gsm-backend-dlActivity( 9673): Use OpenCellID data = false
D/gsm-backend-dlActivity( 9673): Use Mozilla data = true
D/gsm-backend-dlActivity( 9673): OpenCellId API Key =
D/gsm-backend-dlActivity( 9673): MCC filtering = 310,311
D/gsm-backend-dlFragment( 9673): downloadDataAsync.setState(0)
D/gsm-backend-dlFragment( 9673): downloadDataAsync:initialize(false, true, "", "310,311")
D/gsm-backend-dlFragment( 9673): downloadDataAsync: MCC filter: 310,311
I/gsm-backend-dlFragment( 9673): onAttach(Activity)
I/gsm-backend-dlFragment( 9673): onCreate(Bundle)
I/gsm-backend-dlFragment( 9673): onCreate(Bundle)
I/gsm-backend-dlActivity( 9673): onStart()
I/gsm-backend-dlFragment( 9673): onStart()
I/gsm-backend-dlActivity( 9673): onResume()
I/gsm-backend-dlFragment( 9673): onResume()
D/gsm-backend-dlFragment( 9673): downloadDataAsync: Getting Tower Data From Mozilla Location Services. . .
D/gsm-backend-dlFragment( 9673): downloadDataAsync: URL is https://d17pt8qph6ncyq.cloudfront.net/export/MLS-full-cell-export-2015-02-12T000000.csv.gz
D/gsm-backend-dlFragment( 9673): downloadDataAsync: Content length = 83350826
D/gsm-backend-dlFragment( 9673): downloadDataAsync: Records Read: 3601733, Inserted: 548657
D/gsm-backend-dlFragment( 9673): downloadDataAsync: Total Time: 381571ms (0.106ms/record)
D/gsm-backend-dlFragment( 9673): downloadDataAsync: Creating indicies for faster access.
D/gsm-backend-dlFragment( 9673): downloadDataAsync.setState(3)
D/gsm-backend-dlFragment( 9673): downloadDataAsync: Total Time: 398505ms
D/gsm-backend-dlFragment( 9673): downloadDataAsync: Finished.
I/gsm-backend-dlActivity( 9673): onPostExecute()
I/gsm-backend-dlActivity( 9673): mButton.onClick: Finish Activity
I/gsm-backend-dlFragment( 9673): onPause()
I/gsm-backend-dlActivity( 9673): onPause()
I/gsm-backend-dlFragment( 9673): onStop()
I/gsm-backend-dlActivity( 9673): onStop()
I/gsm-backend-dlFragment( 9673): onDestroy()
I/gsm-backend-dlFragment( 9673): cancel()
D/gsm-backend-dlFragment( 9673): downloadDataAsync.setState(1)
I/gsm-backend-dlActivity( 9673): onDestroy()
D/NlpLocationBackendHelper(  950): Unbinding from: Intent { act=org.microg.nlp.LOCATION_BACKEND pkg=org.fitchfamily.android.wifi_backend cmp=org.fitchfamily.android.wifi_backend/.BackendService }
D/NlpLocationBackendHelper(  950): Unbinding from: Intent { act=org.microg.nlp.LOCATION_BACKEND pkg=org.fitchfamily.android.gsmlocation cmp=org.fitchfamily.android.gsmlocation/.GSMService }
D/gsm-backend-service( 9673): Binder CLOSE called
D/NlpLocationBackendHelper(  950): Binding to: Intent { act=org.microg.nlp.LOCATION_BACKEND pkg=org.fitchfamily.android.gsmlocation cmp=org.fitchfamily.android.gsmlocation/.GSMService }
D/NlpLocationBackendHelper(  950): Not (yet) bound.
D/NlpLocationBackendHelper(  950): Bound to: ComponentInfo{org.fitchfamily.android.gsmlocation/org.fitchfamily.android.gsmlocation.GSMService}
D/gsm-backend-service( 9673): Starting location backend
D/gsm-backend-service( 9673): Binder OPEN called
D/gsm-backend-service( 9673): Starting reporter thread
D/NlpLocationBackendHelper(  950): Unbinding from: Intent { act=org.microg.nlp.LOCATION_BACKEND pkg=org.fitchfamily.android.gsmlocation cmp=org.fitchfamily.android.gsmlocation/.GSMService }
D/gsm-backend-service( 9673): Binder CLOSE called
D/NlpLocationBackendHelper(  950): Binding to: Intent { act=org.microg.nlp.LOCATION_BACKEND pkg=org.fitchfamily.android.gsmlocation cmp=org.fitchfamily.android.gsmlocation/.GSMService }
D/NlpLocationBackendHelper(  950): Not (yet) bound.
D/NlpLocationBackendHelper(  950): Bound to: ComponentInfo{org.fitchfamily.android.gsmlocation/org.fitchfamily.android.gsmlocation.GSMService}
D/gsm-backend-service( 9673): Starting location backend
D/gsm-backend-service( 9673): Binder OPEN called
D/gsm-backend-service( 9673): Starting reporter thread
D/gsm-backend-settings( 9673): prefsFragment.onCreate(): ociKeyPreference is OpenCellId API
D/gsm-backend-settings( 9673): prefsFragment.onCreate(): mccFilterPreference is MCC Filter
I/Timeline(  950): Timeline: Activity_launch_request id:org.fitchfamily.android.wifi_backend time:13614659
I/ActivityManager(  551): START u0 {act=android.intent.action.VIEW pkg=org.fitchfamily.android.wifi_backend cmp=org.fitchfamily.android.wifi_backend/.settings} from uid 10156 on display 0
I/ActivityManager(  551): Displayed org.fitchfamily.android.wifi_backend/.settings: +495ms
I/Timeline(  551): Timeline: Activity_windows_visible id: ActivityRecord{37b78bf1 u0 org.fitchfamily.android.wifi_backend/.settings t120} time:13615569
D/NlpLocationBackendHelper(  950): Unbinding from: Intent { act=org.microg.nlp.LOCATION_BACKEND pkg=org.fitchfamily.android.gsmlocation cmp=org.fitchfamily.android.gsmlocation/.GSMService }
D/gsm-backend-service( 9673): Binder CLOSE called
D/NlpLocationBackendHelper(  950): Binding to: Intent { act=org.microg.nlp.LOCATION_BACKEND pkg=org.fitchfamily.android.wifi_backend cmp=org.fitchfamily.android.wifi_backend/.BackendService }
D/NlpLocationBackendHelper(  950): Binding to: Intent { act=org.microg.nlp.LOCATION_BACKEND pkg=org.fitchfamily.android.gsmlocation cmp=org.fitchfamily.android.gsmlocation/.GSMService }
D/NlpLocationBackendHelper(  950): Bound to: ComponentInfo{org.fitchfamily.android.wifi_backend/org.fitchfamily.android.wifi_backend.BackendService}
D/wifi-backend-configuation( 1417): fillFromPrefs(): Min GPS accuracy: 10.0
D/wifi-backend-configuation( 1417): fillFromPrefs(): Min GPS time: 5000
D/wifi-backend-configuation( 1417): fillFromPrefs(): Min GPS distance: 0.0
D/wifi-backend-configuation( 1417): fillFromPrefs(): AP min range: 50.0
D/wifi-backend-configuation( 1417): fillFromPrefs(): AP moved threshold: 1250.0
D/wifi-backend-configuation( 1417): fillFromPrefs(): AP moved guard count: 50
D/NlpLocationBackendHelper(  950): Not (yet) bound.
D/NlpLocationBackendHelper(  950): Bound to: ComponentInfo{org.fitchfamily.android.gsmlocation/org.fitchfamily.android.gsmlocation.GSMService}
D/gsm-backend-service( 9673): Starting location backend
D/gsm-backend-service( 9673): Binder OPEN called
D/gsm-backend-service( 9673): Starting reporter thread
D/NlpLocationBackendHelper(  950): Unbinding from: Intent { act=org.microg.nlp.LOCATION_BACKEND pkg=org.fitchfamily.android.wifi_backend cmp=org.fitchfamily.android.wifi_backend/.BackendService }
D/NlpGeocodeBackendHelper(  950): Unbinding from: Intent { act=org.microg.nlp.GEOCODER_BACKEND pkg=org.microg.nlp.backend.nominatim cmp=org.microg.nlp.backend.nominatim/.BackendService }
D/NlpGeocodeBackendHelper(  950): Binding to: Intent { act=org.microg.nlp.GEOCODER_BACKEND pkg=org.microg.nlp.backend.nominatim cmp=org.microg.nlp.backend.nominatim/.BackendService }
D/NlpLocationBackendHelper(  950): Unbinding from: Intent { act=org.microg.nlp.LOCATION_BACKEND pkg=org.fitchfamily.android.gsmlocation cmp=org.fitchfamily.android.gsmlocation/.GSMService }
D/gsm-backend-service( 9673): Binder CLOSE called
D/NlpLocationBackendHelper(  950): Binding to: Intent { act=org.microg.nlp.LOCATION_BACKEND pkg=org.fitchfamily.android.wifi_backend cmp=org.fitchfamily.android.wifi_backend/.BackendService }
D/NlpGeocodeBackendHelper(  950): Bound to: ComponentInfo{org.microg.nlp.backend.nominatim/org.microg.nlp.backend.nominatim.BackendService}
D/NlpLocationBackendHelper(  950): Binding to: Intent { act=org.microg.nlp.LOCATION_BACKEND pkg=org.fitchfamily.android.gsmlocation cmp=org.fitchfamily.android.gsmlocation/.GSMService }
D/NlpLocationBackendHelper(  950): Bound to: ComponentInfo{org.fitchfamily.android.wifi_backend/org.fitchfamily.android.wifi_backend.BackendService}
D/wifi-backend-configuation( 1417): fillFromPrefs(): Min GPS accuracy: 10.0
D/wifi-backend-configuation( 1417): fillFromPrefs(): Min GPS time: 5000
D/wifi-backend-configuation( 1417): fillFromPrefs(): Min GPS distance: 0.0
D/wifi-backend-configuation( 1417): fillFromPrefs(): AP min range: 50.0
D/wifi-backend-configuation( 1417): fillFromPrefs(): AP moved threshold: 1250.0
D/wifi-backend-configuation( 1417): fillFromPrefs(): AP moved guard count: 50
D/NlpLocationBackendHelper(  950): Not (yet) bound.
D/NlpLocationBackendHelper(  950): Bound to: ComponentInfo{org.fitchfamily.android.gsmlocation/org.fitchfamily.android.gsmlocation.GSMService}
D/gsm-backend-service( 9673): Starting location backend
D/gsm-backend-service( 9673): Binder OPEN called
D/gsm-backend-service( 9673): Starting reporter thread
'''

Interesting that I don't see a log message with "NlpLocationBackendFuser" in it. The GSM backend will do all of its housekeeping (moving current db to db.bak, moving db.new to current, opening the new db, etc.) when it is asked for a location. And every time I've seen it asked for a location I also see a "NlpLocationBackendFuser" log message with the results.
In Settings->Location->Mode what do you have selected? Either "High accuracy" or "Battery saving" should exercise that logic but "Device only" will only use the GPS.
(Using UnifiedNLP with local GSM and my WiFi backend makes it confusing because all modes become "device only" as they don't use a data connection to get the network based location.)

To further clarify the system location settings:
"Device only" --> Only use GPS
"Battery saving" --> Only used network location (UnifiedNLP and its backend plug-ins in this case)
"High accuracy" --> Use both network location and GPS

So I may not have any locations in my area. I've downloaded the My Location Widget and activated it. I only have this location provider enabled. And this is what I see in logcat
D/NlpLocationBackendHelper( 1007): Unbinding from: Intent { act=org.microg.nlp.LOCATION_BACKEND pkg=org.fitchfamily.android.gsmlocation cmp=org.fitchfamily.android.gsmlocation/.GSMService }
D/gsm-backend-service( 1437): Binder CLOSE called
D/NlpLocationBackendHelper( 1007): Binding to: Intent { act=org.microg.nlp.LOCATION_BACKEND pkg=org.fitchfamily.android.gsmlocation cmp=org.fitchfamily.android.gsmlocation/.GSMService }
D/NlpLocationBackendHelper( 1007): Not (yet) bound.
D/NlpLocationBackendHelper( 1007): Bound to: ComponentInfo{org.fitchfamily.android.gsmlocation/org.fitchfamily.android.gsmlocation.GSMService}
D/gsm-backend-service( 1437): Starting location backend
D/gsm-backend-service( 1437): Binder OPEN called
D/gsm-backend-service( 1437): Starting reporter thread

I've downloaded a new OpenCell and Mozilla db no problem. Then I launched tried to get my location again and I see this from logcat
D/NlpLocationBackendHelper( 1007): Unbinding from: Intent { act=org.microg.nlp.LOCATION_BACKEND pkg=org.fitchfamily.android.gsmlocation cmp=org.fitchfamily.android.gsmlocation/.GSMService }
D/gsm-backend-service( 1437): Binder CLOSE called
D/NlpLocationBackendHelper( 1007): Binding to: Intent { act=org.microg.nlp.LOCATION_BACKEND pkg=org.fitchfamily.android.gsmlocation cmp=org.fitchfamily.android.gsmlocation/.GSMService }
D/NlpLocationBackendHelper( 1007): Not (yet) bound.
D/NlpLocationBackendHelper( 1007): Bound to: ComponentInfo{org.fitchfamily.android.gsmlocation/org.fitchfamily.android.gsmlocation.GSMService}
D/gsm-backend-service( 1437): Starting location backend
D/gsm-backend-service( 1437): Binder OPEN called
D/gsm-backend-service( 1437): Starting reporter thread
D/gsm-backend-settings( 1437): prefsFragment.onCreate(): ociKeyPreference is OpenCellId API
D/gsm-backend-settings( 1437): prefsFragment.onCreate(): mccFilterPreference is MCC Filter
D/gsm-backend-settings( 1437): Use OpenCellID data = true
D/gsm-backend-settings( 1437): Use Mozilla data = true
D/gsm-backend-settings( 1437): OpenCellId API Key = c40c278a-1c5f-4c12-a9d0-f61f86cba57e
D/gsm-backend-settings( 1437): MCC filtering = 310,311
D/gsm-backend-settings( 1437): Inputs validated: Start background processing...
D/gsm-backend-settings( 1437): Use OpenCellID data = true
D/gsm-backend-settings( 1437): Use Mozilla data = true
D/gsm-backend-settings( 1437): OpenCellId API Key = c40c278a-1c5f-4c12-a9d0-f61f86cba57e
D/gsm-backend-settings( 1437): MCC filtering = 310,311
I/gsm-backend-dlActivity( 1437): onCreate(Bundle)
D/gsm-backend-dlActivity( 1437): Use OpenCellID data = true
D/gsm-backend-dlActivity( 1437): Use Mozilla data = true
D/gsm-backend-dlActivity( 1437): OpenCellId API Key = c40c278a-1c5f-4c12-a9d0-f61f86cba57e
D/gsm-backend-dlActivity( 1437): MCC filtering = 310,311
D/gsm-backend-dlFragment( 1437): downloadDataAsync.setState(0)
D/gsm-backend-dlFragment( 1437): downloadDataAsync:initialize(true, true, "c40c278a-1c5f-4c12-a9d0-f61f86cba57e", "310,311")
D/gsm-backend-dlFragment( 1437): downloadDataAsync: MCC filter: 310,311
I/gsm-backend-dlFragment( 1437): onAttach(Activity)
I/gsm-backend-dlFragment( 1437): onCreate(Bundle)
I/gsm-backend-dlFragment( 1437): onCreate(Bundle)
I/gsm-backend-dlActivity( 1437): onStart()
I/gsm-backend-dlFragment( 1437): onStart()
I/gsm-backend-dlActivity( 1437): onResume()
I/gsm-backend-dlFragment( 1437): onResume()
D/gsm-backend-dlFragment( 1437): downloadDataAsync: Getting Tower Data From Open Cell ID. . .
D/gsm-backend-dlFragment( 1437): downloadDataAsync: URL is http://opencellid.org/downloads/?apiKey=c40c278a-1c5f-4c12-a9d0-f61f86cba57e&filename=cell_towers.csv.gz
D/gsm-backend-dlFragment( 1437): downloadDataAsync: Content length = 162186181
D/gsm-backend-dlFragment( 1437): downloadDataAsync: Records Read: 7177147, Inserted: 910398
D/gsm-backend-dlFragment( 1437): downloadDataAsync: Total Time: 697412ms (0.097ms/record)
D/gsm-backend-dlFragment( 1437): downloadDataAsync: Getting Tower Data From Mozilla Location Services. . .
D/gsm-backend-dlFragment( 1437): downloadDataAsync: URL is https://d17pt8qph6ncyq.cloudfront.net/export/MLS-full-cell-export-2015-02-12T000000.csv.gz
D/gsm-backend-dlFragment( 1437): downloadDataAsync: Content length = 83350826
D/gsm-backend-dlFragment( 1437): downloadDataAsync: Records Read: 3601733, Inserted: 548657
D/gsm-backend-dlFragment( 1437): downloadDataAsync: Total Time: 380650ms (0.106ms/record)
D/gsm-backend-dlFragment( 1437): downloadDataAsync: Creating indicies for faster access.
D/gsm-backend-dlFragment( 1437): downloadDataAsync.setState(3)
D/gsm-backend-dlFragment( 1437): downloadDataAsync: Total Time: 1127331ms
D/gsm-backend-dlFragment( 1437): downloadDataAsync: Finished.
I/gsm-backend-dlActivity( 1437): onPostExecute()
I/gsm-backend-dlActivity( 1437): mButton.onClick: Finish Activity
I/gsm-backend-dlFragment( 1437): onPause()
I/gsm-backend-dlActivity( 1437): onPause()
I/gsm-backend-dlFragment( 1437): onStop()
I/gsm-backend-dlActivity( 1437): onStop()
I/gsm-backend-dlFragment( 1437): onDestroy()
I/gsm-backend-dlFragment( 1437): cancel()
D/gsm-backend-dlFragment( 1437): downloadDataAsync.setState(1)
I/gsm-backend-dlActivity( 1437): onDestroy()
D/NlpLocationBackendHelper( 1007): Unbinding from: Intent { act=org.microg.nlp.LOCATION_BACKEND pkg=org.fitchfamily.android.gsmlocation cmp=org.fitchfamily.android.gsmlocation/.GSMService }
D/gsm-backend-service( 1437): Binder CLOSE called
D/NlpLocationBackendHelper( 1007): Binding to: Intent { act=org.microg.nlp.LOCATION_BACKEND pkg=org.fitchfamily.android.gsmlocation cmp=org.fitchfamily.android.gsmlocation/.GSMService }
D/NlpLocationBackendHelper( 1007): Not (yet) bound.
D/NlpLocationBackendHelper( 1007): Bound to: ComponentInfo{org.fitchfamily.android.gsmlocation/org.fitchfamily.android.gsmlocation.GSMService}
D/gsm-backend-service( 1437): Starting location backend
D/gsm-backend-service( 1437): Binder OPEN called
D/gsm-backend-service( 1437): Starting reporter thread

Could very well be that you are in an area with no towers mapped. That was the case for me when I first started. Near as I can tell, I am the only OpenCellId contributor in my area. And the few Mozilla contributions in my area are widely scattered. In that case I'd expect to see something like the following in logcat:
D/gsm-backend-database( 2992): DB Cursor empty for: mcc=310, mnc=260, lac=4080, cid=151107
Are you comfortable with scripting and/or grep search and replaces? If so, is it possible to grab the database off the phone, munge it into a GPX file and then load it into mapping software to show where the estimated towers positions. You will find that many are obviously incorrect but okay to use as an estimate of coverage area. If you are interested in that, I can walk you through the process off line.
Just to be sure that at least UnifiedNLP is working, enable the wifi backend and set your phone to "High accuracy". With some app the asks for location continuously, like a map display, walk around your neighborhood. It may take a while for the GPS to lock without an assist from network location (at least it does on my phone some newer phones lock pretty fast without assist).
Once you've done that, then set the phone to "Battery saving" so it only uses UnifiedNLP and see if the wifi backend gives you a location. There will need to be at least two WiFi APs detected for a position to be returned.

This is fixed as of the latest version. Thanks @n76!


Replace legacy Transaction.TimeStamp references

This PR replace legacy Transaction.TimeStamp references with NetworkOptions.IsProofOfStake.
See https://github.com/stratisproject/StratisBitcoinFullNode/issues/676

Testing a few more things.

Ready to commit.

That could be done in a separate PR, as in fixing the underlying issue, as it is not really related to the work being done here.

But then this PR is not very useful.

@Aprogiena , This PR (926) is replacing the static flags. Due to the number of changes required it is being broken down into smaller PRs and I am making every effort to keep those PRs as small as possible. Anything that is not 100% related to the static flags is best addressed in a separate PR.

Oh very sorry @quantumagi I was bamboozled. I thought that commit you made was actually a separate PR, so I thought I was commenting on a PR that just fixed that crash. This changes everything and what I said makes no sense. I apologize and will create separate issue for that.

Closing this PR as we will look at using the latest changes from NBitcoin


Vendor Buildah v1.7

Signed-off-by: TomSweeneyRedHat<EMAIL_ADDRESS>Vendors in Buildah 1.7 into Podman.

LGTM once CI goes green

@TomSweeneyRedHat Build failures.

Rats, forgot I need imagebuilder too.  Vendoring.

LGTM

/lgtm

@TomSweeneyRedHat Can you rebase? I think CI is fixed upstream.
(We might still have registry issues, but nothing we can do about those)

@mheon, will do.  And Eack, thought this had already made it through.  Thanks for the heads up.

/lgtm


Support Authentication header in client credentials

For client credentials, the client ID and client secret can be passed as form parameters or as Authentication header: https://datatracker.ietf.org/doc/html/rfc6749#section-4.4
Using client credentials with Insomnia requires Authentication header.

Coverage increased (+0.004%) to 95.191% when pulling 3f966b2c5ad0a37666275a34e291c5f5e827a174 on cody-client-credentials-auth-header into 14362a1fbc4ed9a57d2afab86aa91ae4d7c8ab55 on main.


Validate error keys \ ValidationProblemDetails when using System.Text.Json

As part of https://github.com/aspnet/AspNetCore/issues/8474, we landed on using the exception key as is. Validate that this works reasonably.

Seems fine. An example output:
{
    "errors": {
        "$.Ages[1]": [
            "The JSON value could not be converted to System.Collections.Generic.List`1[System.Int16]. Path: $.Ages[1] | LineNumber: 1 | BytePositionInLine: 24."
        ]
    },
    "type": null,
    "title": "One or more validation errors occurred.",
    "status": 400,
    "detail": null,
    "instance": null,
    "extensions": {}
}


Get rid of empty page__markup div in compiled pages

Relevant line of code that introduces this: https://github.com/lbryio/lbry.tech/blob/master/app/views/redirect.js#L124

I don't get what you mean. The div gets generated at the end of the markdown default function. Using the Resources page as an example, the link grid is generated via that function and the empty div comes with it.


Broadway producer & consumer

Reference: https://hexdocs.pm/broadway/custom-producers.html
Module: OffBroadway.Jetstream
Try to extract shared parts with PullConsumer API into what I would like to call a Low-Level API. See #8.
I wouldn't create a separate library for this. Instead, I would use soft-dependencies pattern and write the code in this library.

Hi @brandynbennett,
We already asked Michael and we'd like to know opinion too: are you OK with including the Jetstream Broadway producer in this library? Thanks.

@sswrk I think that makes sense so long as Broadway is a soft-dependency and is opt-in as mentioned above.


sed IS_BIOC_BUILD_MACHINE to false

sed -i 's/IS_BIOC_BUILD_MACHINE=true/IS_BIOC_BUILD_MACHINE=false/g' Renviron.bioc

That looks fragile. What if at some point in the future someone introduces a space between = and true, or replaces true with True? Also I would not be surprised if some packages around don't bother to actually check the value of IS_BIOC_BUILD_MACHINE and just do something like if (!identical(Sys.getenv("IS_BIOC_BUILD_MACHINE"), "")) ... to detect that they are on a BioC builder.
So maybe a more robust approach would be to simply remove any line that starts with IS_BIOC_BUILD_MACHINE?

I think the sed would be only on this file, so any change would be on our side not from package developers? In any case, I agree removing altogether is better, so I'll change it to a delete

I think the sed would be only on this file, so any change would be on our side not from package developers?

Correct. But we sometimes need to edit this file and whoever is going to edit it in the future wouldn't know they break your code by just introducing a space somewhere or replacing true with True. We want to be safe even against our own goofs :stuck_out_tongue_winking_eye:
Thanks for the change!


A bug is reported: A view was created in no_grad mode and is being modified inplace with grad mode enabled

Thank you very much for sharing this project.
My test code is:
from pytorch_mask_rcnn import maskrcnn_resnet50

model = maskrcnn_resnet50(True, 3).cuda()
print(model)
model.eval()

import torch
img = torch.rand(size=[3, 256, 256]).cuda()
p = model(img)

Then, a bug is reported:
Traceback (most recent call last):
  File "C:/Users/qiang_zhang.neu/Desktop/PyTorch-Simple-MaskRCNN-master/test.py", line 10, in <module>
    p = model(img)
  File "d:\programdata\anaconda3\envs\general\lib\site-packages\torch\nn\modules\module.py", line 889, in _call_impl
    result = self.forward(*input, **kwargs)
  File "C:\Users\qiang_zhang.neu\Desktop\PyTorch-Simple-MaskRCNN-master\pytorch_mask_rcnn\model\mask_rcnn.py", line 154, in forward
    result = self.transformer.postprocess(result, image_shape, ori_image_shape)
  File "C:\Users\qiang_zhang.neu\Desktop\PyTorch-Simple-MaskRCNN-master\pytorch_mask_rcnn\model\transform.py", line 72, in postprocess
    mask = paste_masks_in_image(mask, box, 1, ori_image_shape)
  File "C:\Users\qiang_zhang.neu\Desktop\PyTorch-Simple-MaskRCNN-master\pytorch_mask_rcnn\model\transform.py", line 117, in paste_masks_in_image
    im[y1:y2, x1:x2] = m[(y1 - b[1]):(y2 - b[1]), (x1 - b[0]):(x2 - b[0])]
RuntimeError: A view was created in no_grad mode and is being modified inplace with grad mode enabled. This view is the output of a function that returns multiple views. Such functions do not allow the output views to be modified inplace. You should replace the inplace operation by an out-of-place one.

My environment is:
win10
python 3.7
pytorch 1.8.0

Any suggestion is appreciated!

with torch.no_grad():
    p = model(img)


A "use server" file can only export async functions, found object.

When using the procedure and server action below I get the following error:
Error: A "use server" file can only export async functions, found object.
I read this issue on next.js about the export for a 'use server' file must be a async function but after updating to the latest version of next.js I am still getting the error.
Versions
    "next": "14.2.4",
    "zsa": "^0.5.0",
    "zsa-react": "^0.2.2"

"use server";

import { notFound } from "next/navigation";
import { z } from "zod";
import authedProcedure from "../procedures/authed";

const productSchema = z.object({
  product_group: z.string(),
  url_slug: z.string(),
});

const getProductProcedure = authedProcedure
  .createServerAction()
  .input(z.object({ slug: z.string() }))
  .output(productSchema)
  .handler(async ({ input, ctx }) => {
    const response = await fetch(``).then(r => r.json());
    const product = await productSchema.parseAsync(response.results?.at(0));
    if (product) notFound();
    return product;
  });

export default getProductProcedure;

"use server";
import { createServerActionProcedure, ZSAError } from "zsa";
import { currentUser } from "@clerk/nextjs/server";

const authedProcedure = createServerActionProcedure().handler(async () => {
  try {
    const user = await currentUser();

return {
      user
    };
  } catch {
    throw new ZSAError("NOT_AUTHORIZED", "User is not authenticated");
  }
});

export default authedProcedure;

Hi, the solution here is to not use "use server" on a file with exported procedures. Typically you can make a procedure file (no use server) and import them into your actions file.

Ah yes, that works like a charm. Thank you!


mergeProps 'name' Bug

There is a bug in the mergeProps "filterSelectors" function that is causing issues with named components.
Assertion that fails but should not in the mergeProps test:
describe('filterSelectors function', () => {
	it('removes selectors not within the treePath', () => {
		const treePath = `recommendationBundle BundledCTA price.price-msrp`;

		const selectors = {
			pagination: {},
			icon: {},
			'price': {},
			'search price': {},
			'autocomplete price': {},
			'price.bundle-strike-price': {},
			'recommendationBundle carousel result price': {},
			'recommendationBundle price.bundle-strike-price': {},
			'recommendationBundle price.bundle-price': {},
		};
		const expected = [
			'price',
		];

		expect(filterSelectors(selectors, treePath)).toEqual(expected);
	});
}

https://github.com/searchspring/snap-1.0/pull/24

Resolved and merged into develop of 1.0 fork.