Not suitable for use

Microsoft originally provided a 'Data Export' feature that pushed data from CRM to an external SQL database.  The feature was included with the CRM licence at no extract cost.  'Data Export' has been removed without a viable alternative.
This solution is a very poor substitute for 'Data Export' and very expensive to run:

The pipeline processes are very slow - with little or no data (mostly out of hours runs), 50 tables (out of a total in dataverse of 560) usually takes 8-10 mins to process.  With even a small amount of data, the process timings can jump to 15-20 minutes.
Instead of a 'replicated' database, the process runs on a batch process which means your data is always out of date - due to how long it takes for the pipelines to run with no data, the shortest timeout period I was able to use was 60 minutes.  Add on the processing time and, in the middle of the working day, you can be 80+ minutes out of date!
There is no rerun capability - due to the length of time it takes to run, failures are inevitable.  I managed to put a rerun process together but, because each 'batch' must be processed in order, if not caught in time, the rerun process can take a day or more to complete!
Data movement costs are excessive - transferring data from Azure Storage to Azure SQL database for our subset of CRM data cost €600+ for March
Pipeline costs are excessive - part of the reason the pipelines are slow (I think?) is that there are a huge number of actions in the pipelines - triggered at once an hour when data was entered (we're mostly a 09:00 to 18:00 shop) incurred costs of €400+ for March

We will be removing this solution and searching for alternatives.  It appears that Microsoft have backed Dataverse users into an expensive corner and don't want to let them out...!

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

ID: 7a8d324c-cc14-c8f9-8adf-4b9af10f55ce
Version Independent ID: 7a8d324c-cc14-c8f9-8adf-4b9af10f55ce
Content: Copy Dataverse data into Azure SQL - Power Apps
Content Source: powerapps-docs/maker/data-platform/azure-synapse-link-pipelines.md
Service: powerapps
Sub-service: dataverse-maker
GitHub Login: @JasonHQX
Microsoft Alias: matp

Thanks for your comment, @JohnTMP. This issue has been assigned to the doc author for review.


Is there any way to read the wallet?

Is there any way to read the wallet from an account?

@dehenne the account itself could be read as on the base OAuth project example (/me endpoint) but the blockchain reading itself is not accomplished by this project. SC goal is to broadcast operations.
A second project, to be started in this week, is intended to take care of that by providing an RPC client for Steem built with PHP.
Stay tuned, it.
If you would live to support this and other PHP related projects, please consider voting me as a witness.
Thank you

hey @hernandev. Thank you for the work. Another question comming up, is it possible to make a transfer with sc2-sdk-php? i didn't find anything in the documentation.


[DOCS] Fix homography warper docs

As discussed and proved in https://github.com/arraiyopensource/kornia/issues/157 we need to:

Replace in documentation dst_homo_src -> src_homo_dst.
1.1 Add integration test for 1) - probably the code I shared in https://github.com/arraiyopensource/kornia/issues/157
Call kornia.normalize_pixel_coordinates in here when normalized_coordinates is set to true.
2.1 Add a unit test show normalized vs pix coords.

@stefat77 could you contribute with this ?


Bind delayed task creating functions to the object instance.

I tried to use @create_after with task definitions created from class methods and it didn't work. I thought this would work because nothing in the documentation implies that it doesn't. I dug into this and it seems to be a simple fix.
The @create_after decorator stashes a reference to the unbound method in a DelayedLoader instance. To work with tasks defined by methods the reference must be bound to the task creating class instance.
Please let me know if you have any comments or suggested improvements.
Simple Example:
#!/usr/bin/env python3
import sys
import glob

from doit.cmd_base import ModuleTaskLoader
from doit.doit_cmd import DoitMain
from doit import create_after
from doit.task import DelayedLoader

class SomeTasks:

    @create_after(executed='early', target_regex='.*\.out')
    def task_build(self):
        for inf in glob.glob('*.in'):
            yield {
                'name': inf,
                'actions': ['cp %(dependencies)s %(targets)s'],
                'file_dep': [inf],
                'targets': [inf[:-3] + '.out'],
                'clean': True,
            }

    def task_early(self):
        """a task that create some files..."""
        inter_files = ('a.in', 'b.in', 'c.in')
        return {
            'actions': ['touch %(targets)s'],
            'targets': inter_files,
            'clean': True,
        }

if __name__ == "__main__":
    obj = SomeTasks()
    task_methods = {key: getattr(obj, key) for key in dir(obj) if key.startswith('task_')}
    loader = ModuleTaskLoader(task_methods)
    sys.exit(DoitMain(loader).run(sys.argv[1:]))

Coverage decreased (-0.01%) to 99.725% when pulling 0bff6832dcbc5c3fd34b20a98e34ece17dadfd1c on rbdixon:create_after_object into 83a94d13ffa2d8cf02b39616decdf4f8daa1eacc on pydoit:master.

I'll be traveling for a week but would love to see this merged. Let me know if something needs work.

Yes, your example should work...
But your solution is not good. We should solve the problem of decorating a function that takes whatever parameters. Not solving only the specific case where there is only self as parameter.

I was not aware that a task building function would ever be called with parameters.
   def _process_gen():
        task_list.extend(generate_tasks(name, ref(), ref.__doc__))

From loader.py
Curious to add more I modified the task building function to have the following signature:
class SomeTasks:

    @create_after(executed='early', target_regex='.*\.out')
    def task_build(self, a, b=True):

I then modified loader.py to print the function signature:
    def _process_gen():
        import inspect
        print(f'{ref.__name__}{inspect.signature(ref)}')
        task_list.extend(generate_tasks(name, ref(), ref.__doc__))

Try it out:
$ python ./example.py list --all build
task_build(a, b=True)

This is followed, of course, by an error because the mandatory argument a is not provided.
This leads me to believe that the bound task making function with the signature task_build(self, a, b=True) would work if _process_gen() called ref() with the appropriate arguments. I think this PR is appropriate for the general case of a task making function with any signature.
Perhaps I am confused. Is there another test case I should consider?

I was not aware that a task building function would ever be called with parameters.

Yes, currently not possible. But look at #311
I did not try your patch but i guess it is too fragile. It would not work if a creates parameter is used https://github.com/pydoit/doit/pull/307/files#diff-5630eb760323efa68588bcd0a48cf04bR153
Or how about a method with @classmethod where first parameter is cls?
What i am saying is that solution would be better to change the decorator itself. something like "Decorating Functions With Arguments" https://realpython.com/primer-on-python-decorators/ .
Probably not as straightforward as their example because we dont call the decorated function straight away...

#311: That would be very nice. I have bent some of my tasks into knots working around the absence of task group parameters like this. I'll work out the details on my patch to modify the @create_after decorator as suggested.

What I have pushed is just a simplified version of the prior work but I believe does everything you are interested in in the simplest way possible. As I understand the requirements:

The objective is to ensure that, for class-based task definitions, when doit/control.py#469 is executed the bound method is available as ref: new_tasks = generate_tasks(to_load, ref(), ref.__doc__)
Additionally, in preparation for #311, there should be no new restrictions added on passing parameters to the bound method.
Lastly the code must not break function-based task definition and must also work with the creates argument to the @create_after() decorator.

The @create_after() decorator just adds an attribute to the function, .doit_create_after, which holds a DelayedLoader instance that jots down the decorator arguments and a reference to the decorated function or method. In the case of a method the class is not yet instantiated and therefore the method is unbound. Since the decorator does not modify the function signature or wrap the function no modifications need to be made to the decorator. The only difficulty is that the DelayedLoader has, for class-defined tasks, cached a reference to the method too-soon.
To reach the objective the loader is load_tasks() method of loader.py has been modified to simply, and unconditionally, update the DelayedLoader().creator attribute to the current value of ref. There are two cases:

For standard function-based task definitions this re-assignment changes nothing. The .creator attribute is already set to ref.
For class-based task definitions the unbound method assigned to .creator during class definition is replaced by the bound method assigned to ref. This satisfies the objective.

Requirement #2 is supported because nothing about the task creating method's signature is modified by the decorator and the method is not wrapped. doit/control.py#469 calls the intended method directly.
Requirement #3 is supported because nothing is modified that interferes with either function-based task definition or the creates argument of @create_after.
The @create_after and DelayedLoader code you have now is elegant and I didn't want to do anything more complicated. The only problem is that for class-based definitions the bound method can't be cached in the DelayedLoader instance while the decorator functions since the class has not been instantiated yet. This short patch just updates the DelayedLoader instance when the loader runs. That's all that is really required to get the job done.
I'm attaching the function-based (dodo.py) and method-based (example.py) tests I used during development.
function:
#!/usr/bin/env python3
import sys
import glob
import types

from inspect import signature

from doit.cmd_base import ModuleTaskLoader
from doit.doit_cmd import DoitMain
from doit import create_after
from doit.task import DelayedLoader

@create_after(executed='early', target_regex='.*\.out', creates='build')
def task_build_maker():
    yield {
        'basename': 'build',
        'name': None,
    }

    for inf in glob.glob('*.in'):
        yield {
            'name': inf,
            'actions': ['cp %(dependencies)s %(targets)s'],
            'file_dep': [inf],
            'targets': [inf[:-3] + '.out'],
            'clean': True,
        }

def task_early():
    """a task that create some files..."""
    inter_files = ('a.in', 'b.in', 'c.in')
    return {
        'actions': ['touch %(targets)s'],
        'targets': inter_files,
        'clean': True,
    }

class:
#!/usr/bin/env python3
import sys
import glob

from inspect import signature

from doit.cmd_base import ModuleTaskLoader
from doit.doit_cmd import DoitMain
from doit import create_after
from doit.task import DelayedLoader

class SomeTasks:

    @create_after(executed='early', target_regex='.*\.out', creates=['build'])
    def task_build_maker(self):
        'Delayed task'
        yield {
            'basename': 'build',
            'name': None,
        }

        for inf in glob.glob('*.in'):
            yield {
                'name': inf,
                'doc': f'SomeTasks.task_build_maker{signature(self.task_build_maker)}',
                'actions': ['cp %(dependencies)s %(targets)s'],
                'file_dep': [inf],
                'targets': [inf[:-3] + '.out'],
                'clean': True,
            }

    def task_early(self):
        """a task that create some files..."""
        inter_files = ('a.in', 'b.in', 'c.in')
        return {
            'actions': ['touch %(targets)s'],
            'targets': inter_files,
            'clean': True,
        }

if __name__ == "__main__":
    obj = SomeTasks()
    task_methods = {key: getattr(obj, key) for key in dir(obj) if key.startswith('task_')}
    loader = ModuleTaskLoader(task_methods)
    sys.exit(DoitMain(loader).run(sys.argv[1:]))

Thanks.
I looked at your code and was really doubting it would work until i run it myself :rofl:
My expectation was that the DelayedTask would save not only a reference to the function but also to its parameters.

and unconditionally, update the DelayedLoader().creator attribute to the current value of ref

So I guess there is no point in setting it in the first place.
Sorry, I think I will merge this together with #311. I am hesitant to make a call without having the code for both.

Rebased to master so that it can be merged after issue #311 / PR #323.

@schettino72 Any further work required for this PR?

Bump.... would love to see this merged. Thanks.


Adding alarms

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

test


chore(sass): added sass configuration successfully

Alright so this is where I am at so far. I was lucky enough to not have to poke around with it too much, but now that we have it going with sass there is a bunch that we can do 😄.
I am not sure if you want to follow any naming conventions but I am open to whatever. I am keen to styling so I plan on trying out a few different things (possible creating a custom calendar layout using flexbox or something of that nature).
Also, I am definitely down to add support for a stylelint. If this grows into a Sass-heavy project we could get sassdoc running as well.

This looks great! I've also added a couple of nit-picky comments but other than that LGTM! 😄
My SASS / CSS / sass conventions knowledge is extremely basic, so feel free to rename classes to fit a convention, use mixins or any other sass features which you feel could help improve the flexibility.

@mattlewis92 not a problem man. I refactored all of the code to fit with your last review. It should be all ready to rock now 👍. From here I can sift through the .scss files and change any code to adhere to best practices.

Awesome, thanks for sorting that out! I look forward to seeing what you come up with for the rest of it 😄


Preserve NoneType types in UUID fields

Discussed in https://github.com/aws/aws-sdk-pandas/discussions/1873

Originally posted by joshmatthews-ch December 15, 2022
I am using this library to read data from Postgres into a Pandas dataframe and have noticed that when the datatype in the source table is uuid, null values in those columns appear in the resulting dataframe as the "None".
To me this seems unexpected behaviour as it is caused by the Python decision to have str(None) == "None".
Should this be changed so that NoneType types are not cast to strings?
Proposed change
Change the above linked line from
        array: pa.Array = pa.array(obj=[str(x) for x in values], type=dtype, safe=True)

to
        array: pa.Array = pa.array(obj=[str(x) if x is not None else None for x in values], type=dtype, safe=True)

Testing
I ran a Docker container using the postgres 10-alpine image. I created a table and populated it
create table example (col1 uuid, col2 text, col3 bigint);
insert into example (col1, col2, col3) values (gen_random_uuid(), 'lorem ipsum', 42);
insert into example (col1, col2, col3) values (null, null, null);

I ran the following Python snippet without making changes
import pg8000
conn = pg8000.connect(...)
from awswrangler import postgresql
df = postgresql.read_sql_table("example", conn)
df

which returned
                                   col1         col2  col3
0  ae6fb54b-729e-485f-8616-9f55afc23f26  lorem ipsum    42
1                                  None         <NA>  <NA>

where <NA> is an instance of <class 'pandas._libs.missing.NAType'>.
I then ran the same snipped but applying the change and this returned
                                   col1         col2  col3
0  ae6fb54b-729e-485f-8616-9f55afc23f26  lorem ipsum    42
1                                  <NA>         <NA>  <NA>

as desired.
Performance
I ran the following on my laptop to demonstrate performance of the new list comprehension isn't much worse
>>> import uuid
>>> import time
>>>
>>> n = int(10e6)
>>>
>>> uuids = [uuid.uuid4()] * n
>>> start = time.time()
>>> a = [str(x) for x in uuids]
>>> end = time.time()
>>> print(end - start)
12.15282917022705
>>>
>>>
>>> start = time.time()
>>> a = [str(x) if x is not None else None for x in uuids]
>>> end = time.time()
>>> print(end - start)
13.189699649810791
>>>
>>>
>>> nones = [None] * n
>>> start = time.time()
>>> a = [str(x) for x in nones]
>>> end = time.time()
>>> print(end - start)
3.240807056427002
>>>
>>>
>>> start = time.time()
>>> a = [str(x) if x is not None else None for x in nones]
>>> end = time.time()
>>> print(end - start)
0.5311591625213623

Thanks for the fix, it was merged and will be available in the next release


reuse SourcegraphCompletionsClient.complete across browser/node

They both use the standard fetch API, so the impl can be shared.
Nothing was using the browser complete method yet, so this does not change anything today, it only allows future use of this by browser clients.
Test plan
n/a

@dominiccooney:

Do we already have CORS on that endpoint to make this go?

Yep.


Allow to use podman instead of docker

Currently building and running tests in Cilium requires docker. It would be nice to support Cilium development with podman and using podman as a workload.
Action items:

[x] Allow to override docker commands (i.e. docker run, docker rm etc.) in Makefile
[ ] Allow to use podman pod create instead of docker compose
[ ] ~Add workloads module for podman~
[ ] Check if podman can be used with Cilium as a CNI plugin, if yes - document that, if no - fix what's needed

@mrostecki Are there any remaining items here? I was under the impression that the workloads package was deprecated in a recent release, so it seems like we could close this issue.

@joestringer Yes, there are remaining items.

We still have some scripts using docker-compose, I would like to check if there is a possibility to use podman instead.
I would like to check if it's possible to use Cilium as a CNI plugin for podman and use it in similar way on local machines like you can do with Docker and libnetwork.

I will work on that this week.

OK, no pressure. Just checking in on old issues to see if they're still relevant :)

Nobody else shared an interest, so I'm closing


fix origin not defined for email signup

title.
simple 1 line fix, origin wasn't defined for the signup, but is defined for the forget password

Since email verification is turned off by default we don't need the origin in this function.


Update readme

Since there are map and type list implemented the readme.md is not updated

Done it


ios device "websocket: connection error"

Hi,
I'm not sure if this functionality is supported, but when I try to run the app on a real ios device, I get the following error:
2017-02-08 13:18:52.831 [error][tid:com.facebook.react.JavaScript] 'websocket: connection error', 'The operation couldn’t be completed. Connection refused'
2017-02-08 13:18:52.865 [error][tid:com.facebook.react.JavaScript] 'websocket: connection closed', undefined, undefined

E

This is because react native uses "localhost" as the default port for the packager.  This doesn't work for react native storybook.  I'm guessing because it expects that the storybook server is running on the same host as the packager.  However, the storybook host is not on the ios device, it is on your development computer.  So, replace all the localhost references with your computer's internal IP address.  That can be found by going to System Settings > Network.
If your internal ip address is <IP_ADDRESS>:
open your react native project with XCode and go to the group:
ProjectName > Libraries > RCTWebSocket.xcodeproj > RCTWebSocketExecutor.m
got to the method - (void)setUp and (toward the top) change
host = @"localhost" to host = @"<IP_ADDRESS>".

create storybook like this:
const StorybookUI = getStorybookUI({ port: 7007, host: "<IP_ADDRESS>" });
start it like this:
npm run storybook -- -h <IP_ADDRESS>
After making all the changes, I'd probably close all simulators, stop all packagers and close the app on the phone.

Please open an issue over at the new repo if you're still experiencing this issue, thanks!


Invalid factory data when copying from blueprint.

Factorio & Factorissimo version number
3.77/NA
Describe the bug
When I try pasting a blueprint of a factory(probably with crushers 1 from EV refining) from one save to another it returns an error saying incorrect factory data
To Reproduce
Steps to reproduce the behavior from a new save:
Start a save
put down a factory
put a building inside a factory
save the factory as a blueprint
reload save/start new one
paste the factory
Expected behavior
Factory to be pasted with appropriate building inside
Screenshots
https://github.com/user-attachments/assets/9b44244d-3cb6-4a1e-8bf9-8b1cd7d7f9a3
Additional context
Save file & log
factorio-current.log

Thanks for the report.
After some investigation I have decided I will not fix this. Here is why:

Factory interior cloning does not store any data on the blueprint itself. It instead just stores 4 numbers, the positions of a rect to clone from the source factory to the destination factory.
I imagine your desired behavior would be to clone factory interiors across save, however due to the way this feature is implemented cross-save blueprinting is impossible.
There is no way in the API for me to detect a blueprint that has originated from a different save. Removing or changing the error message here would have the side effect of removing the error in all valid cases that the factory went invalid for some reason.

Unfortunately, due to these technical reasons I cannot resolve this ticket.

Good news is I found a crash while investigating, which is now fixed.

Thanks for the report. After some investigation I have decided I will not fix this. Here is why:

Factory interior cloning does not store any data on the blueprint itself. It instead just stores 4 numbers, the positions of a rect to clone from the source factory to the destination factory.
I imagine your desired behavior would be to clone factory interiors across save, however due to the way this feature is implemented cross-save blueprinting is impossible.
There is no way in the API for me to detect a blueprint that has originated from a different save. Removing or changing the error message here would have the side effect of removing the error in all valid cases that the factory went invalid for some reason.

Unfortunately, due to these technical reasons I cannot resolve this ticket.

So I cant make a blueprint with a factory and stuff inside of it? I have to make a sperate blueprint for the stuff inside and then paste it into an already placed factory?

You can make a blueprint of a factory with stuff inside, however that blueprint just cannot be transferred to another save.


Does not work

I bought the PDFs from Humble bundle and this will not work with their books even though they are legit

Hi, the pdfs from the last humble bundle aren't in the list of the support
pdf. See the 'supported pdfs' list in the module interface, or here :
https://github.com/deidril/pf2-pdf-en-import/blob/master/README.md
Le sam. 4 févr. 2023 à 21:00, vampiregoat699 @.***> a
écrit :

I bought the PDFs from Humble bundle and this will not work with their
books even though they are legit
—
Reply to this email directly, view it on GitHub
https://github.com/deidril/pf2-pdf-en-import/issues/28, or unsubscribe
https://github.com/notifications/unsubscribe-auth/ADD3GLQO7H6XNJRKOOHJHKLWV2YNFANCNFSM6AAAAAAURK6GYM
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>


MINOR: Bump CCS 2.6 Kafka to next version 6.0.1

CP 6.0.0 is released. Time to bump CCS kafka to 6.0.1
This also contains a merge from Apache Kafka 2.6. Conflicts were in the version files from when Apache Kafka bumped their versions to 2.6.1, I resolved them to the CCS versions.
Committer Checklist (excluded from commit message)

[ ] Verify design and implementation
[ ] Verify test coverage and CI build status
[ ] Verify documentation (including upgrade notes)

PR build failed due to the downstream verifier not "finding" version 6.0.1, which it shouldn't, because thats the version we're bumping too.


add logging tools & practice

add generalizeable logging tools & practice

logging schema
a tool for creating logs across the pipeline
a separate container for collecting logs from dev & prod environments

ML model creation workflow (template as it is now) serves as model creation log.
Model training data versioning future work -> create new issue
Therefore conventional logging requirement is limited to API -> create new issue
Separate monitoring from logging ->  create new issue


database

hi atsanna, what is credentials from phpmyadmin and database ?

Hello Fakriardian,
the username is root, the password is the one set in the docker-compose.yml file [MYSQL_ROOT_PASSWORD]

Hello Fakriardian,
The credentials for the database are set in the docker-compose.yml file
      MYSQL_ROOT_PASSWORD: rootpassword
      MYSQL_DATABASE: codeigniter4
      MYSQL_USER: codeigniter4
      MYSQL_PASSWORD: codeigniter4

For phpmyadmin, if you log in with the root user the password is the one set in the MYSQL_ROOT_PASSWORD variable, otherwise you can use the values of the MYSQL_USER and MYSQL_PASSWORD variables.
I hope I have helped you.

I think the problem is here

when I check the logs from image mariadb:10.5.5, The logs is here

Hello Fakriardian,
The credentials for the database are set in the docker-compose.yml file
      MYSQL_ROOT_PASSWORD: rootpassword
      MYSQL_DATABASE: codeigniter4
      MYSQL_USER: codeigniter4
      MYSQL_PASSWORD: codeigniter4

For phpmyadmin, if you log in with the root user the password is the one set in the MYSQL_ROOT_PASSWORD variable, otherwise you can use the values of the MYSQL_USER and MYSQL_PASSWORD variables.
I hope I have helped you.

Hi atsanna,
The problem is solved, just need use named volumes to codeigniter4_msysql.
_https://stackoverflow.com/questions/40109596/docker-mariadb-mysql-startup-fails-on-windows-host_


Do not autogenerate names of resources

What this PR does / why we need it:
Right now we prepend name of the instance to all resources, we decided to step away from that because it's not suitable for certain kinds of resources like namespaces.

Fixes #945

The last failing test is in the operators repo - I can update that one as well but then all other PRs will be failing 🤷♀ So i just created PR here https://github.com/kudobuilder/operators/pull/95 I guess when this one merges, that one should merge as well (to dev branch)

merging both now


Should probably have some sort of auto-update mechanism

Or it should be able to inform the user if there's a more recent version.

In practice, the fact that every Xcode update also necessitates an OFPlugin update probably works well enough. I don't really have the time to add an update mechanism and it kind of seems like overkill, really.


fix(lint): Remove requirement that directory name and chart name match

The constraint that directory name and chart name must match was removed from helm package in https://github.com/helm/helm/pull/4141. This PR removes it from linting.
$ helm lint ./helm
==> Linting ./helm
[ERROR] Chart.yaml: directory name (helm) and chart name (example) must be the same

Error: 1 chart(s) linted, 1 chart(s) failed

pkg/lint/rules/chartfile_test.go:44:5: var `goodChart` is unused (unused)
var goodChart, _ = chartutil.LoadChartfile(goodChartFilePath)
    ^
make: *** [Makefile:84: test-style] Error 1
Exited with code 2

@sco11morgan, doesn't it also need to be removed in rules/chartfile.go?
I'm experiencing this problem as well. This was a huge crutch in v2, and I'm hoping v3 will be more CI-friendly. 😊

@james-r-smith The entire function that does the checking is removed in this PR that includes the function in rules/chartfile.go.

Pingback to https://stackoverflow.com/questions/79166730/helm-how-to-enforce-that-the-directory-name-must-match-the-chart-name for those of us who would like to re-add this check in 2024.
(Sorry for posting in an old thread, but in this case there is value in linking to workarounds.)


code --wait <file> with pre-existing editor no longer exits when <file> is closed

Type: Bug
This used to work fine, regressed a couple weeks ago.
The reason this is a problem is that I usually have a project open in VS Code, and also use code --wait as a git editor (for rebase TODOs and squashed commit messages and such).
And now I have to close the entire project for git to proceed with the operation it started the editor for.
VS Code version: Code 1.84.2 (1a5daa3a0231a0fbba4f14db7ec463cf99d7768e, 2023-11-09T10:50:47.800Z)
OS version: Linux x64 6.5.8-200.fc38.x86_64
Modes:

System Info

Item
Value

CPUs
AMD Ryzen 9 5950X 16-Core Processor (32 x 4266)

GPU Status
2d_canvas: enabledcanvas_oop_rasterization: disabled_offdirect_rendering_display_compositor: disabled_off_okgpu_compositing: enabledmultiple_raster_threads: enabled_onopengl: enabled_onrasterization: enabledraw_draw: disabled_off_okvideo_decode: enabledvideo_encode: disabled_softwarevulkan: disabled_offwebgl: enabledwebgl2: enabledwebgpu: disabled_off

Load (avg)
2, 3, 3

Memory (System)
31.23GB (9.14GB free)

Process Argv
.

Screen Reader
no

VM
0%

DESKTOP_SESSION
plasma

XDG_CURRENT_DESKTOP
KDE

XDG_SESSION_DESKTOP
KDE

XDG_SESSION_TYPE
wayland

Extensions (54)

Extension
Author (truncated)
Version

language-x86-64-assembly
13x
3.1.4

meson
asa
1.3.0

vscode-django
bat
1.14.0

QML
bbe
1.0.0

vscode-as3mxml
bow
1.19.0

vscode-nextgenas
bow
2.0.0

vscode-swf-debug
bow
1.8.2

ccls
ccl
0.1.29

opt-info
dam
0.7.0

vscode-eslint
dba
2.4.2

vscode-lark
dir
0.1.0

vscode-wasm
dts
1.4.1

gitlens
eam
14.4.1

vscode-firefox-debug
fir
2.9.10

code-runner
for
0.12.1

vscode-opencl
gal
0.8.2

copilot
Git
1.135.0

copilot-chat
Git
0.10.1

vscode-github-actions
git
0.26.2

git-tree-compare
let
1.16.0

MagicPython
mag
1.1.0

git-graph
mhu
1.30.0

prettify-json
moh
0.0.3

vscode-docker
ms-
1.27.0

isort
ms-
2023.10.1

python
ms-
2023.20.0

vscode-pylance
ms-
2023.11.10

jupyter
ms-
2023.10.1003070148

jupyter-keymap
ms-
1.1.2

jupyter-renderers
ms-
1.0.17

vscode-jupyter-cell-tags
ms-
0.1.8

vscode-jupyter-slideshow
ms-
0.1.5

remote-containers
ms-
0.321.0

hexeditor
ms-
1.9.12

makefile-tools
ms-
0.7.0

vsliveshare
ms-
1.0.5892

vshaxe
nad
2.30.0

color-highlight
nau
2.5.0

wgsl
Pol
0.1.16

show-offset
ram
0.0.4

vscode-xml
red
0.26.1

llvm
RRe
0.1.1

rust-analyzer
rus
0.3.1722

vscode-header-source
ryz
1.3.0

omnetpp-ned
sch
0.0.4

crates
ser
0.6.3

shader
sle
1.1.5

even-better-toml
tam
0.19.2

simple-rst
tro
1.5.4

vscode-lldb
vad
1.10.0

debug
web
0.26.1

jinja
who
0.0.8

clang-format
xav
1.9.0

markdown-all-in-one
yzh
3.5.1

If this is a confirmed regression, it would help to know which change caused it. We maintain a node.js based CLI tool  vscode-bisect that automatically downloads and runs previous VS Code insiders and asks for each build if the issue reproduces. It takes up to 8 steps to find exactly the build that caused the regression.
Steps:

install node.js (if not yet done)
npx --yes @vscode/vscode-bisect@latest
follow the instructions until you found the offending build (its fine to leave the commit empty)
report back the commit range in this issue

Thanks!

Can you provide clear step by step instruction show to reproduce this?

Never mind, closing all files/editors in the instance of VS Code with my usual project folder open solved this.


atsec/16 - paragraph 619 - incorrect table reference

Comment:
paragraph 619 incorrectly references Table 1. It should be Table 2 "Mapping between DSC Exportable Services and SFRs".
Proposal:
Replace Table 1 with Table 2.
Priority: 1

Table reference is now 5, but that is a function of how the tables are numbered in the adoc


How to create a filter on a field of a nested resource

Here is model, Person has_many Phone_numbers through Contact_data. I want to create a filter for phone_numbers in the list view of Person. How could I do that?
class Person < ActiveRecord::Base
  has_many :contact_datas, as: :contactable
  has_many :phone_numbers, through: :contact_datas
end

class ContactData < ActiveRecord::Base
  has_many :phone_numbers
end

# == Schema Information
#
# Table name: phone_numbers
#
#  id              :integer          not null, primary key
#  location        :string(255)
#  number          :string(255)
#  contact_data_id :integer
#  created_at      :datetime
#  updated_at      :datetime
#

class PhoneNumber < ActiveRecord::Base
end

I'd like some help on this as well, there is a partial solution mentioned here #1434 but it does not offer all the "contains", "is exacly", etc modifiers belongs_to does.


Add Appleskin Compatibility

Unfortunately, I've had to provide a mixin as the API does not support changing the check for if an item is edible or not. But other than this, I've tested the game with and without AppleSkin on the client.
This PR adds support to AppleSkin for the following power types:

Edible Item
Modify Food
Prevent Item (for food)

I've accidentally screwed with the indentation of the mixin json, my bad.


Change license url in Ix.NET/Source/Directory.build.props

The current license url is invalid (Http 404 - Not Found).
The new url (http://go.microsoft.com/fwlink/?LinkID=261272) is the same as in Rx.NET/Source/Directory.build.props and it redirects to file https://github.com/dotnet/reactive/blob/master/LICENSE

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

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


Make Icons for Top/bottom Surgeries

done in the first release for transgender website in the summer 2020


Adding Shared Access resource support for azure

Description
Azure Blob storage has multiple modes of authentication. One of them is Shared access resource
 . This is very useful in cases when we do not want to add the account key in the druid properties .

Added a new config sharedAccessStorageToken which can be passed as part of azure properties to enable this behavior. Users can either set the key or the  sharedAccessStorageToken but not both for authenticating with azure blob storage.
Key changed/added classes in this PR

extensions-core/azure-extensions/src/main/java/org/apache/druid/storage/azure/AzureAccountConfig.java
extensions-core/azure-extensions/src/main/java/org/apache/druid/storage/azure/AzureStorageDruidModule.java

This PR has:

[ ] been self-reviewed.

[ ] using the concurrency checklist (Remove this item if the PR doesn't have any relation to concurrency.)

[ ] added documentation for new or modified features or behaviors.
[ ] added Javadocs for most classes and all non-trivial methods. Linked related entities via Javadoc links.
[ ] added or updated version, license, or notice information in licenses.yaml
[ ] added comments explaining the "why" and the intent of the code wherever would not be obvious for an unfamiliar reader.
[ ] added unit tests or modified existing tests to cover new code paths, ensuring the threshold for code coverage is met.
[ ] added integration tests.
[ ] been tested in a test Druid cluster.

Minor comments. LGTM otherwise.


Add matplotlib to environment.yml

Create Documentation
Add the matplotlib module to the dependencies in the environment.yml for the block-on-spring tutorial notebook.

This should go in the repo for the example app.


{Core} Additional logic to judge whether client is track2

Description

Current logic of is_track2  is not accurate, especially when the client is patched with hidden signature: https://github.com/Azure/azure-sdk-for-python/pull/23089#discussion_r808768258.

Instead of depending on internal files like _version.py, attributes like _send_request or method signature, we definitely need a more official and solid way to determine whether a client is Track 2 or not.


Code workflow

merge the branch

microsoft

@microsoft-github-policy-service agree [company="{digifloat}"]

@microsoft-github-policy-service agree


Datadog monitor for OpenLDAP "Remaining Available Threads" is useless

Steps to reproduce the issue:

Set up OpenLDAP
Configure the Datadog OpenLDAP monitor

Describe the results you received:
The monitor generates garbage output
Describe the results you expected:
Accurate useful results.
As you can see in the below image, the monitor says some servers have "-1,204.3 threads" available.  This seems to come from a core misunderstanding of the OpenLDAP monitoring database.  For example:
cn=Max,cn=Threads,cn=Monitor is the total number of threads the server has, like:
dn: cn=Max,cn=Threads,cn=Monitor
monitoredInfo: 16
description: Maximum number of threads as configured

Then this is broken down into the state of these threads, such as:
dn: cn=Open,cn=Threads,cn=Monitor
monitoredInfo: 2
description: Number of open threads

dn: cn=Starting,cn=Threads,cn=Monitor
monitoredInfo: 0
description: Number of threads being started

dn: cn=Active,cn=Threads,cn=Monitor
monitoredInfo: 1
description: Number of active threads

dn: cn=Pending,cn=Threads,cn=Monitor
monitoredInfo: 0
description: Number of pending threads

dn: cn=Backload,cn=Threads,cn=Monitor
monitoredInfo: 1
description: Number of active plus pending threads

It is impossible to have NEGATIVE threads available.  I assume that what's intended here is the monitor should be doing Max threads MINUS active threads, or perhaps better would be max threads MINUS Backload.

In looking at an active system and the results reported in DD, I find the following:
Server has 16 max threads
4 threads are open (I.e., attached to a file descriptor)
1 of those 4 open threads is active (it's the one processing my search of the monitor backend)
1 thread shows in backlog (since it is active + pending).
So Datadog does the following math:
16 total threads - 4 open threads - 1 active thread - 1 backlog thread = 10 threads available.  This is not correct.  The correct answer is 12:
16 total threads - 4 open threads = 12.
The 1 active thread above is already included in the 4 open threads.  Backlog is active + pending.
This metric should ONLY be doing:
Total threads MINUS open threads to get the number of available threads.

Also the plugin is terrible written in that it fails to store each of the thread metrics individually, but thinks they can be all globbed together into a single metric 'openldap.threads' which is incorrect.

The 'Threads by Status' monitor is also obviously flawed.  For one thing, it's treating active, pending, and backload as separate things, when backload is actually active + pending.

Hello! If I understand correctly you're referring to the OpenLDAP OOTB dashboard (not monitor, since we don't provide default monitors for this integration as far as I know). Specifically, to the two graphs under the "Thread Metrics", is that right?
First of all, OOTB dashboards are provided as a starting point for our customers to get up and running quickly, so they're not necessarily the ultimate guide about how to monitor a specific service, less so for specific needs. You're encouraged to clone the dashboard and make the necessary adjustments you need (it looks like just a few tweaks would do for your case).
That being said,

I'll have a look at the "Remaining Available Threads" graph and try to fix the formula. Thanks for pointing this out!
I'm not sure about the "Threads by Status" graph. Even if some of the statuses overlap, it might still be useful enough as it is. But feel free to make suggestions to make it better.

Hi again! I've updated both graphs, fixing the formula for "Remaining Available Threads" and changing the "Thread by Status" graph to use lines instead of areas to make it clearer that the different thread states actually overlap and can't be summed like that. I hope that solves your issue, I'm marking this as solved but feel free to comment or reopen if necessary.

@alopezz Sorry for the delay.  thanks for handling this!


Use less verbose output when finish album download

Is your feature request related to a problem? Please describe.

When album is downloaded, the app shows last finished track.
bandcamp-dl https://sivyjyar.bandcamp.com/album/golden-threads
(6/6) [==================================================] :: Finished:  Footsteps Shimmer Silver in the Dew...

Describe the solution you'd like
Completely remove output after progress indicator. To be like:
bandcamp-dl https://sivyjyar.bandcamp.com/album/golden-threads
(6/6) [==================================================]

It makes no sense for me to show latest track stats. The other way around is to show album name:
bandcamp-dl https://sivyjyar.bandcamp.com/album/golden-threads
(6/6) [==================================================] :: Finished:  Golden Threads

But its to verbose because album name is part of the link in this case.
I prefer first solution.
Describe alternatives you've considered
Use it like it is)
Additional context
None.

Don't see how this would be an improvement, instead you would have no idea what track its on (Without comparing track number against track list on the site) or what stage of the download and metadata embedding process its on. It does show more than what track finished downloading last, it also tells you if its downloading, embedding the metadata, renaming, finished, or being skipped as it already exists in the directory, it just happens fairly fast on most peoples systems.
Unless you mean specifically as an album finishes downloading and not as its downloading tracks, even then I don't see a reason to change it, people using it are either going to start another download in which case the terminal will wipe the output or close their terminal entirely.
Best possible change in this scenario would be:
bandcamp-dl https://sivyjyar.bandcamp.com/album/golden-threads
(6/6) [==================================================] :: Complete!

Or something to make it obvious the entire process is done, though simply seeing (6/6) (or however many tracks) and "Finished" should make that immediately obvious.
If it bothers anyone enough simply add:
print_clean(f'\r({self.track_num}/{self.num_tracks}) [{"=" * done}{" " * (50 - done)}] :: Complete!')

Above: https://github.com/iheanyi/bandcamp-dl/blob/d35c7edd4fb3b9a3c19455629f0994281adaabd9/bandcamp_dl/bandcampdownloader.py#L226
As the print_clean() function wipes the output then prints.
If you are attempting to do something with bandcamp-dl that relies on the output being a certain way let me know and maybe I can help you.

Don't see how this would be an improvement, instead you would have no idea what track its on (Without comparing track number against track list on the site) or what stage of the download and metadata embedding process its on.

My point is if all tracks downloaded successfully just show that album download if complete. Without info about last track.
I got your point. But at user perspective when you download an album you are interested of the status of the album - is it downloaded or not. Not sure if individual track status makes makes sense. In case it says that full album is downloaded and last track is downloaded as well.
I don't want to make changes in the local script. Updating it using brew or such will remove all local changes.
If you don't want to make any changes please close the issue.


NPE when VM is planned to migrate to other host during dynamic scaling

Description
NPE occurred when dynamic scaling tried on VM and as part of this when MS tries to migrate VM if current host does not have capacity.
Repro Steps:
1. Create a VM on host1
2. Make host1 capacity full by deploying multiple VMs
3. Try Dynamic scaling on VM on host1
4. NPE occurs when MS tries to find host to migrate the VM and then scale.
2020-03-27 05:37:15,899 WARN  [c.c.v.UserVmManagerImpl] (API-Job-Executor-6:ctx-f7c76e69 job-3021 ctx-d68f535a) (logid:3189e554) Received exception while scaling
java.lang.NullPointerException
at com.cloud.deploy.DeploymentPlanningManagerImpl.planDeployment(DeploymentPlanningManagerImpl.java:255)
at com.cloud.vm.VirtualMachineManagerImpl.findHostAndMigrate(VirtualMachineManagerImpl.java:3768)
at com.cloud.vm.UserVmManagerImpl.upgradeRunningVirtualMachine(UserVmManagerImpl.java:1816)
at com.cloud.vm.UserVmManagerImpl.upgradeVirtualMachine(UserVmManagerImpl.java:1702)
at com.cloud.vm.UserVmManagerImpl.upgradeVirtualMachine(UserVmManagerImpl.java:1641)
Root cause: VM profile is not initiated properly with serviceoffering before planning for deployment
Solution: Initiate VM profile with serviceoffering and also make sure custom compute parameters are handled

Types of changes

[ ] Breaking change (fix or feature that would cause existing functionality to change)
[ ] New feature (non-breaking change which adds functionality)
[x] Bug fix (non-breaking change which fixes an issue)
[ ] Enhancement (improves an existing feature and functionality)
[ ] Cleanup (Code refactoring and cleanup, that may add test cases)

Screenshots (if appropriate):
How Has This Been Tested?
1. Create a VM on host1
2. Make host1 capacity full by deploying multiple VMs
3. Try Dynamic scaling on VM on host1
4. Successfully scaled the VM after migration of VM to host2

@blueorangutan package

@harikrishna-patnala a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress.

Packaging result: ✖centos7 ✖debian. JID-1105

@blueorangutan package

@harikrishna-patnala a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress.

Packaging result: ✔centos7 ✔debian. JID-1106

@blueorangutan package

@borisstoyanov a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress.

Packaging result: ✔centos7 ✔debian. JID-1225

@blueorangutan package

@rhtyd a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress.

Packaging result: ✔centos7 ✔debian.  I'll keep you posted as I make progress.

Packaging result: ✔centos7 ✖debian. JID-1384

Debian build failure was env related, I'll kick test
@blueorangutan test

@rhtyd a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests

After merging https://github.com/apache/cloudstack/pull/3991, are you LGTM on this as well @borisstoyanov and @DaanHoogland ?

code looks good, but i'm not familiar with the use case / bug; +0.1

@rhtyd @DaanHoogland This is not related to #3991. While testing that PR I came across with this bug and fixed it here. This is required PR as NPE is not good in any case.

Trillian test result (tid-1750)
Environment: kvm-centos7 (x2), Advanced Networking with Mgmt server 7
Total time taken: 52130 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr3998-t1750-kvm-centos7.zip
Intermittent failure detected: /marvin/tests/smoke/test_vpc_redundant.py
Smoke tests completed. 82 look OK, 1 have error(s)
Only failed tests results shown below:

Test
Result
Time (s)
Test File

test_03_create_redundant_VPC_1tier_2VMs_2IPs_2PF_ACL_reboot_routers
Failure
637.84
test_vpc_redundant.py


Fix vulnerabilities by new image

https://quay.io/repository/open-cluster-management/grc-ui-api/manifest/sha256:3955e019ce0ee9948e90bea856ffed5f8cab6e5666bd95576a46e4d007e81ed2?tab=vulnerabilities

/cherry-pick release-2.3


Consolidate DateTimeOffset conversion to a single place

We are converting DateTimeOffset values to the Campaign timezone in a few different places. Would be nice to avoid the duplication of code here.

Examples in TaskController.cs, ActivityEditCommandHandler.cs and EditTaskCommandHandler.cs

Assign to me please

we're also doing this work in TimeTagHelper.cs: and campaign.js, so it's pretty much all over the place at this point.

@dpaquette, I have a VERY simple spike of a "provider" that wraps up a lot of the duplicate code here:
https://github.com/mgmccarthy/allReady/tree/DateTimeOffsetProvider
Again, this is just a baby step towards a better DateTime solution. This spike does not address the duplicate code that has leaked into TimeTagHelper.cs and campaigns.js, but I don't think this code belongs in tag helpers or javascript.
My goal here was to start to "centralize" this logic. Once we have that done, it should be easier to move forward with a more mature DateTime solution for the project, whether that means implementing what I proposed in #710, using NodaTime or a combination of both.

@dpaquette @mgmccarthy still open?

@tonysurma we consolidated where we needed to so this can be closed


Orange color tile

Topmost Orange color tile has black text on it. Think its supposed to have white.
https://styleguide.github.com/primer/support/color-system

Well spotted, thanks @jghightman!

Interestingly @broccolini when I tried to make a label on a repo, it came out with dark text on the orange background.

For this particular situation, it took until $orange-800 for it to give me some light text to go with. (This however may be a different issue to bring up elsewhere for GitHub).
I couldn't find where the code for this lives, otherwise I would have made a PR and included these details there instead 😅 sorry!

How got idea ?


Problem with missing type after running New-StubModule

I ran the following command
New-StubModule -FromModule ActiveDirectory -Path C:\projects\stub -FunctionBody {
    throw '{0}: StubNotImplemented' -f $MyInvocation.MyCommand
}

When using the stubs in the unit tests, the type Microsoft.ActiveDirectory.Management.Commands.ValidateNotNullOrEmptyADEntityAttribute was missing (not sure why). So I generated that with
New-StubType -Type Microsoft.ActiveDirectory.Management.Commands.ValidateNotNullOrEmptyADEntityAttribute

Which gave me the following result, which I just copied into the correct namespace in the stub module (the namespace already existed and contained enums).
Add-Type -IgnoreWarnings -TypeDefinition @'
namespace Microsoft.ActiveDirectory.Management.Commands
{
    public class ValidateNotNullOrEmptyADEntityAttribute
    {
        // Constructor
        public ValidateNotNullOrEmptyADEntityAttribute() { }

        // Property
        public System.Object TypeId { get; set; }

    }

}

'@

When running the tests again I get the following error when Pester tries to use the mock, when Pester is building the dynamic parameters.
MethodException: Cannot find an overload for "Add" and the argument count: "1".
        CmdletInvocationException: Cannot find an overload for "Add" and the argument count: "1".
        ParameterBindingException: Cannot retrieve the dynamic parameters for the cmdlet. Cannot find an overload for "Add" and the argument count: "1".

The same error can be reproduced by the following code.
Add-Type -IgnoreWarnings -TypeDefinition @'
namespace Microsoft.ActiveDirectory.Management.Commands
{
    public class ValidateNotNullOrEmptyADEntityAttribute
    {
        // Constructor
        public ValidateNotNullOrEmptyADEntityAttribute() { }

        // Property
        public System.Object TypeId { get; set; }
    }
}
'@

$attributes = New-Object System.Collections.Generic.List[Attribute]
$attribute = New-Object Microsoft.ActiveDirectory.Management.Commands.ValidateNotNullOrEmptyADEntityAttribute
$attributes.Add($attribute)

What is missing from the stub type output for it to work to be added into an array?

/cc @kungfu71186 I'm giving this as whirl to get the correct stubs in xActiveDirectory.

I got it pass the error using this code, though not sure this will work since Validate doesn't do anything. Not sure if it needs to do anything. 🤔
Add-Type -IgnoreWarnings -TypeDefinition @'
namespace Microsoft.ActiveDirectory.Management.Commands
{
    public class ValidateNotNullOrEmptyADEntityAttribute : System.Management.Automation.ValidateArgumentsAttribute
    {
        // Constructor
        public ValidateNotNullOrEmptyADEntityAttribute() {}

        // Property
        public System.Object TypeId { get; set; }

        protected override void Validate(object arguments, System.Management.Automation.EngineIntrinsics engineIntrinsics) {}
    }
}
'@

$attributes = New-Object System.Collections.Generic.List[Attribute]
$attribute = New-Object Microsoft.ActiveDirectory.Management.Commands.ValidateNotNullOrEmptyADEntityAttribute
$attributes.Add($attribute)

There are also types needed for parameter attributes that are not created either, for example for Get-ADReplicationFailure. The parameter Filter needs Microsoft.ActiveDirectory.Management.Commands.TransformFilterAttribute which is in another namespace. Seems that all missing types are in another namespace.
        # Filter
        $attributes = New-Object System.Collections.Generic.List[Attribute]

        $attribute = New-Object Microsoft.ActiveDirectory.Management.Commands.TransformFilterAttribute
        $attributes.Add($attribute)

        $attribute = New-Object System.Management.Automation.ValidateNotNullOrEmptyAttribute
        $attributes.Add($attribute)

        $attribute = New-Object System.Management.Automation.ParameterAttribute
        $attributes.Add($attribute)

        $parameter = New-Object System.Management.Automation.RuntimeDefinedParameter("Filter", [System.String], $attributes)
        $parameters.Add("Filter", $parameter)


nimble/transport: Add generic IPC transport with flow control

This adds generic IPC transport that should be used as a base for any transport with LL on separate core. It's similar to HCI H4, but has a bit different header to simplify processing and supports internal flow control to make sure LL does not send data that other core does not have free buffers for.
IPC transport requires memory shared between cores to keep track of number of available buffers on application core. Application core will initialize counters to total number of available buffers. Then on each alloc LL will atomically test and decrease relevan counter and will allocate buffer only if that counter was non-zero. The counter will be increased by application core if relevant buffer was freed.

requires also some core changes: https://github.com/apache/mynewt-core/pull/2889


Shape Issue - Impact

In Shape under newShapeNoCopy, in the following for loop:
/*
 * Remove axes with dimension 1 from the old array. They have no effect
 * but would need special cases since their strides do not matter.
 */
    for (oi = 0; oi < arr.rank(); oi++) {
        if (arr.size(oi) != 1) {
            olddims[oldnd] = arr.size(oi);
            oldstrides[oldnd] = arr.stride(oi);
            oldnd++;
        }
    }

The MultiLayerNetwork mutates input from 1x784 to 784x784 when running activate in MLN on CNNProcessorTest testCNNInputPreProcessorMnist. Attemped using dup to free up input but that is not resolving the mutation.

Fixed d43a98846938f6fc42e620590b2103d16fabe8cb. Added conditional if isVector


Test New LLMs (Llama2, CodeLlama, etc.) on Chat-UI?

Hi @AndreasMadsen,
Notice you forked chat-ui. if you're trying to test other LLMs (codellama, wizardcoder, etc.) with it, I just wrote a 1-click proxy to translate openai calls to huggingface, anthropic, togetherai, etc. api calls.
code
$ pip install litellm

$ litellm --model huggingface/bigcode/starcoder

#INFO:     Uvicorn running on http://<IP_ADDRESS>:8000

>> openai.api_base = "http://<IP_ADDRESS>:8000"

Here's the PR on adding openai to chat-ui: https://github.com/huggingface/chat-ui/pull/452
I'd love to know if this solves a problem for you

Hi @AndreasMadsen,
What did you feel was missing from this? Any feedback would be helpful

You spammed 100+ people about this. You need to submit the PR to https://github.com/huggingface/chat-ui, not to me. But I think you know that 😉 .


Eyedropper not working for higher pixel density devices

Need to adjust the scaling of the html2canvas canvas for the pixel tracker.

Resolved in https://github.com/helpscout/artboard/releases/tag/v0.0.19


[Inbound Outbound] stabilize inbound outbound

What

Stabilize:

PSTN
One to N calling
Tems adhoc
Inbound calling

Why

Opens up all of the adhoc calling scenarios in stable

How Tested

Built locally

Flyout has disappeared from these snapshots


Create an inbound NAT port-forwarding rule Instructions

It looks like the portal has been updated and now a Network IP configuration has to be chosen before the NAT forwarding will work.

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

ID: 76d17b95-622f-2952-a9cc-b74ba56a8e8a
Version Independent ID: ba5bc45f-6196-9658-bd8e-91bb70871e15
Content: Tutorial: Configure port forwarding in Azure Load Balancer using the Azure portal
Content Source: articles/load-balancer/tutorial-load-balancer-port-forwarding-portal.md
Service: load-balancer
GitHub Login: @asudbring
Microsoft Alias: allensu

@jlmace  , Thank you for your feedback. We will investigate and get back to you shortly.

PR: https://github.com/MicrosoftDocs/azure-docs-pr/pull/91968

PR: MicrosoftDocs/azure-docs-pr#91968
Link fails, goes to a 404 error page


❓ is my app size increase of 16mb to expect?

Question
I installed this lib along with react-native-reanimated and vision-camera-code-scanner and my app size went from 9mb to about 26mb on ios. I realize react-native-reanimated may be the culprit here but is this a number to expect or have I configured something wrong?
What I tried
No response
VisionCamera Version
2.14.1
Additional information

[ ] I am using Expo
[X] I have read the Troubleshooting Guide
[X] I agree to follow this project's Code of Conduct
[X] I searched for similar questions in the issues page as well as in the discussions page and found none.

Closing as this is a stale issue - this might have been fixed with the full rewrite in VisionCamera V3 (🥳) - if not, please create a new issue.
I don't think 16mb is normal unless you include ML models, then yes.


Issue #263

Fixes issue #263

Looks like you need to update your local fork before submitting your pull request. Otherwise you end up with this, where you have all the interim commits as well.

Sorry, wrong base branch selected. Closing this one.


Task details page

https://github.com/Real-Dev-Squad/todo-action-items/issues/77
Closes #249
Closes #211
The task details page will enable everyone to see the progress and details of a particular task when clicking on the title of a task on the home page. The basic design when page is in the edit mode has been inspired from GitHub.

All basic details of the task that is created from https://dashboard.realdevsquad.com/ by the super user will be shown.
It will enable the super user to edit the details like title and description.
Everyone will be able to see the priority of a task.

https://github.com/Real-Dev-Squad/website-backend/issues/739
https://github.com/Real-Dev-Squad/website-dashboard/pull/233

Everyone will be able to see the taskNo. This will be implemented once https://github.com/Real-Dev-Squad/website-backend/pull/825 has been merged
It will enable everyone to see the progress of a task through Activity logs. This feature will be implemented once https://github.com/Real-Dev-Squad/website-backend/issues/733 has been implemented in the backend.

Normal View - Edit button will not be visible for normal users

Super user view

Edit mode

Mobile View

Is it a bug?
No
Dev Tested?

[x] Yes
[ ] No

Tested on:
Platforms

[x] Web

Browsers

[x] Chrome
[x] Firefox

Feature recording
https://user-images.githubusercontent.com/75324135/200337712-b340e159-29a8-474a-810d-aefe419f1dee.mp4
Changes in the firestore database after pressing Save button

Can you assign me this task ?

@kotesh-arya could you please resolve the conflicts in this PR

Resolved ✅

I found test cases to be unhelpful, correct me If I am wrong.
Update:

Requested changes will be done in next/future PR

Ticket for Writing Tests for TaskDetails page https://github.com/Real-Dev-Squad/website-status/issues/504


Stable and maintained Zstandard bindings

Currently this project relies on https://github.com/rmw-lib/cppzst, which appears to be the most up-to-date set of bindings to zstd. However, I have no idea whether @gcxfd is really intending their fork for public consumption or if they are indeed committed to maintaining the bindings going forward, which means that I can't really commit to this compression codec working going forward, as I'm not able to maintain cppzst or any other node-zstd fork myself.
I'm filing this issue as a note so that if there is at some point a set of bindings that the community congregates around and maintains, those are the ones we should be using. Until then, this codec is really provided on a best-effort basis.

What do you think about https://github.com/yoshihitoh/zstd-codec#readme ?

The emscripten ports have a size limitation on the buffer that they can compress or decompress (I don't remember the details since it was months I looked at this), so they're not a very good general purpose drop-in replacement unless you know the size of your payloads are going to be less than the limit, which as a library we can't be.


More detailed Metrics

Can we also get these metrics -
keycloak_failed_login_attempts
keycloak_failed_authentication_attempts
keycloak_failed_authorization_attempts
keycloak_login_success_total
keycloak_login_failure_total
keycloak_authorization_success_total
keycloak_authorization_failure_total

From which event you want to create this metrics?

These are from User events

Hello, can this be done?

Of course this can be done, just create a pull request. I myself have no time at the moment and i don't know which events are missing.

ok, sure I'll add and raise PR

@subhidh any updates?

Closed because no response.


Style darker theme

Base the colors off the Zekrom color palette? I do enjoy the ones there.
This should come at the end of all the asset-based tasks.

Issue #84 should also be closed first.


Types of Methods in Java

Description
brief explanation of types of methods in java (main division).
Documentation
Domain
Java_Domain
Type of Contribution
Documentation
Code of Conduct

[X] I follow Contributing Guidelines & Code of conduct of this project.

/assign documentation

/assign

I have unsigned my self by mistakely i have assigned my self

/assign audio

/assign documentation

@VedRatan please assigned me to this issue. I think currently no one work on this issue.


Add OWASP Dependency Checker to the GH CI workflows

Motivation
Detect CVEs early and make them visible to the committers
Modifications
Added GH workflow that will fail if new CVE with level > 7 detected. The plan is to not treat it as blocking merge.
Currently some projects that will not pass the check and aren't included into the suppressions for variety of reasons are excluded.
Verifying this change

[ ] Make sure that the change passes the CI checks.

This change is a trivial rework / code cleanup without any test coverage.
Does this pull request potentially affect one of the following parts:
If yes was chosen, please highlight the changes

Dependencies (does it add or upgrade a dependency): (yes / no)
The public API: (yes / no)
The schema: (yes / no / don't know)
The default values of configurations: (yes / no)
The wire protocol: (yes / no)
The rest endpoints: (yes / no)
The admin cli options: (yes / no)
Anything that affects deployment: (yes / no / don't know)

Documentation
Check the box below or label this PR directly (if you have committer privilege).
Need to update docs?

[ ] doc-required
(If you need help on updating docs, create a doc issue)

[x] no-need-doc
(Please explain why)

[ ] doc
(If this PR contains doc changes)

/pulsarbot run-failure-checks

/pulsarbot run-failure-checks

+1


fix: goto type include state

Please don't delete this checklist! Before submitting the PR, please make sure you do the following:

[x] It's really useful if your PR references an issue where it is discussed ahead of time. In many cases, features are absent for a reason. For large changes, please create an RFC: https://github.com/sveltejs/rfcs
[x] This message body should clearly illustrate what problems it solves.
[ ] Ideally, include a test that fails without this PR but passes with it.

Closes #11397
Tests

[x] Run the tests with pnpm test and lint the project with pnpm lint and pnpm check

Changesets

[x] If your PR makes a change that should be noted in one or more packages' changelogs, generate a changeset by running pnpm changeset and following the prompts. Changesets that add features should be minor and those that fix bugs should be patch. Please prefix changeset messages with feat:, fix:, or chore:.

This also closes #11391 I believe

This also closes #11391 I believe

Uh definitely...forgot to check if there was already an open issue -.-"

Thank you!


Automatically reload changed source code files

In order to improve the development experience and not have to restart the server to pick up any changes to files that may have been done while it was running it would be great if any changes could be picked up automatically that reloading a web page from the server will already respect the new changes.
In my mind https://github.com/jeremyevans/rack-unreloader looks like an interesting candidate to achieve this. (It's also one of the recommendations from sinatra on this topic)
@Garllon any thoughts from your side on this?

Defiantly sounds like a good idea.  I never used the gem, but make things easier. So go ahead. :)


Strange behaviour of DeepAREstimator with NormalOutput

To Reproduce
From the README with minor changes
import pandas as pd
from gluonts.dataset.pandas import PandasDataset
from gluonts.dataset.split import split
from gluonts.torch import DeepAREstimator
from gluonts.torch.distributions import NormalOutput

# Load data from a CSV file into a PandasDataset
df = pd.read_csv(
    "https://raw.githubusercontent.com/AileenNielsen/"
    "TimeSeriesAnalysisWithPython/master/data/AirPassengers.csv",
    index_col=0,
    parse_dates=True,
)
dataset = PandasDataset(df, target="#Passengers")

# Split the data for training and testing
training_data, test_gen = split(dataset, offset=-36)
test_data = test_gen.generate_instances(prediction_length=12, windows=3)

# Train the model
model = DeepAREstimator(
    prediction_length=12, freq="M", trainer_kwargs={"max_epochs": 3}, distr_output=NormalOutput(),
).train(training_data)

Error message or code output
Loss values are way off with gluonts 0.13 compared to 0.12, suggesting a potential regression.
v0.12
Epoch 0: : 50it [00:02, 20.47it/s, v_num=10, train_loss=5.670]
Epoch 1: : 50it [00:02, 19.70it/s, v_num=10, train_loss=4.760]
Epoch 2: : 50it [00:02, 21.59it/s, v_num=10, train_loss=4.600]

v0.13
Epoch 0: : 50it [00:02, 19.36it/s, v_num=11, train_loss=9.3e+21]
Epoch 1: : 50it [00:02, 22.46it/s, v_num=11, train_loss=3.8e+22]
Epoch 2: : 50it [00:02, 22.23it/s, v_num=11, train_loss=4.64e+22]

Environment

Operating system: macOS 13
Python version: 3.8
GluonTS version: 0.13.0
Torch: 2
Lightning: 2

(Add as much information about your environment as possible, e.g. dependencies versions.)

The datasets are loaded identically between the two versions, as seen by storing it as JSON lines with
import json
with open('dataset.json', 'w') as f:
    for entry in dataset:
        json.dump(encode(entry), f)
        f.write('\n')

and comparing the resulting files:
$ md5 dataset_13.json dataset_12.json
MD5 (dataset_13.json) = 12d09d9f0870d097e9a5169c564567b8
MD5 (dataset_12.json) = 12d09d9f0870d097e9a5169c564567b8

With a similar check, also training_data results in exactly the same data

According to git bisect 97d7082b424137fae133c17555d14042e35dfce1 is the first bad commit

Tests are added in #2633 where in fact a few differences are introduced compared to the mxnet version. We may want to revisit these and the changes in #2600


Create *_with_collection views

Continuing discussion from https://github.com/open-contracting/kingfisher-process/issues/236
Views depends on Process, insofar as any change to Process' database schema can break Views (see https://github.com/open-contracting/kingfisher-process/issues/187 for a discussion of how to mitigate that).
As of https://github.com/open-contracting/kingfisher-process/issues/236 (PR https://github.com/open-contracting/kingfisher-process/issues/255), collection_id is available on the record, release and compiled_release tables.
As such, the *_with_collection tables are deprecated, but should be kept around as notebooks, etc. might expect them. We can keep the deprecated views in Process. However, since all other views are in Views, I think it makes more sense to keep them here.
For now, these views will continue to exist until we drop the database or move to a new server, so there is no urgency to write a migration or script to re-create them.

However, since all other views are in Views,

I don't think this follows?
The name of views is just a name (and it turns out, a badly chosen name, as we already have confusion between a "view" as a postgres object like a table but not, and "view" a collection of tables and views which hold data on a collection, of which you used to only have one that was rebuilt evey night whether it needed it or not, and now you can have many, to avoid excessive rebuilding and allow instant triggering, and which we call "view" but postgres calls "schema".)
We should be instead keeping code in the most relevant place. The code that created these views is in Process, and I think we should deal with them there. Having a view created in one app but deleted/modified in another app makes for confusing code and odd race conditions around different install situations.

For now, these views will continue to exist until we drop the database

That's not true, I think.
Both Currently - and when https://github.com/open-contracting/kingfisher-process/pull/255 is merged - the database migrations in Process will create the views but nothing will delete them. So any third party spinning up this app will get the views.
What I think we should do with *_with_collection views:
Just leave them. My understanding of Postgres internals is that if no-one queries these views, there will be no extra load on the server. Give the analysts plenty of time to move to using the new tables, there's no need to rush them.
Also - we could redefine them to not have joins any more - the definition becomes a simple select. That way, I think the performance of queries is basically the same, whether someone uses "release" or "release_with_collection".
(But I think any redefinition should happen in the "Process" app.)
What we need to do in "views" app tho
https://github.com/open-contracting/kingfisher-views/blob/master/sql/002-tmp_release_and_parties.sql has reference to *_with_collection views - we should change these in a bit.

I made a PR so that Process no longer creates the views: https://github.com/open-contracting/kingfisher-process/pull/256
I'm happy if that PR is merged and nothing further happens. If it's merged, the views will remain available for analysts – unless we drop the database and restart from scratch. If so (very unlikely) we can still just manually run the SQL in https://github.com/open-contracting/kingfisher-process/blob/98fecdcf49212bec5562b44d35e371325aafc1dc/ocdskingfisherprocess/maindatabase/migrations/versions/aef60ba6c0bc_view.py to re-create the views.
If, at a later date, we want to clean up the database, we can drop the views.


Add fpga target

Add a placeholder FPGA target. It currently cannot be evaluated but it does compile. Once this is merged, we can work with other teams to implement the functionality to run on the FPGA defined by the function signatures here

Is there anything else that's gating this PR? I think I've addressed the comments

Just another comment and request from me. We can track/tag the other targets from this change set in later issues.
I think the other issue/questions with @umangyadav also need to be resolved.

@TedThemistokleous I'm getting an error with the target not being registered in CI but make check runs and passes fine for me locally. How do I fix that?
Do we really need to add the fpga/ tests to the CI to merge this PR? Ultimately, these tests will require hardware that the CI will not have so they won't run anyway. I don't think the GPU backend is enabled in these CI tests either because the HAS_HIP check fails

@TedThemistokleous I'm getting an error with the target not being registered in CI but make check runs and passes fine for me locally. How do I fix that?
Do we really need to add the fpga/ tests to the CI to merge this PR? Ultimately, these tests will require hardware that the CI will not have so they won't run anyway. I don't think the GPU backend is enabled in these CI tests either because the HAS_HIP check fails

Yes, but we don't have to make a requirement that it'll pass for things to work when the FPGA flag is on. What we should require though is the stock MIGraphx stuff doesn't break with new changes as we add a new target.
I've added another section to the set of CI builds called linux-fpga that will test debug builds for the fpga target with the flag on that should use. I'll ping in the comments and explain things.
I can help you get the other checks passing since it won't actually let us submit a PR if any checks with the required flag next to them go in.

Thanks for your help @TedThemistokleous


Reddit images bypassing BetterViewer due to redirects(?)

Describe the bug
A month or two ago, Reddit introduced a change that broke the way opening images worked. Normally the image would be direct and BetterViewer would be able to open it. Currently, the image redirects into Reddit's own website, bypassing BetterViewer.
To Reproduce

Find an image on Reddit.
Open it into a new tab.

Expected behavior
Opens the direct image into BetterViewer.
Screenshots

Desktop:

OS: [Windows]
Browser [Firefox]
Version [116.0b8]

Additional context
Images smaller than 1080p seems to work exactly like expected. Here is a Reddit post for additional info..

I'm current using the "Load Reddit Images Directly" extension to fix this: Chrome - Firefox
The extension "simple-modify-headers" is also able to fix it — see this reddit thread — but that requires a bit of manual setup.
The code seems very lightweight and easy to implement, but the current released version of BetterViewer is 3 feature patches behind the codebase and still non-compliant with Manifest V3, so I don't think an internal fix is going to happen.
There are userscripts/bookmarklets that also fix this, but additional reddit updates have broken the ones I was using, so unfortunately using an extra extension seems to be the best fix currently.


Investigate how to get run ID of current action being executed

Then it would be possible to put public url into comment, so everyone can see log of action, not only collaborators.
Related: #13, #11, #15, ...

https://github.community/t5/GitHub-API-Development-and/Github-Actions-url-to-run/td-p/16471

As new version of actions was released I need to investigate again and write to GitHub stuff for some update


TagQuery.cs can't find how to use it

in AWSSDK.S3.dll we can see class TagQuery, but i can't find where should i pass that instance to. And i didn't found any example...
Your tech support offered to ask here too.
AWSSDK.S3 version <IP_ADDRESS>

Hi, this file was erroneously added to the repo.  It's not being used anywhere. We'll remove this in the future release.

Hi, Steven. What should i to do you don't remove it but implemented? ))


Add ability to generate per-{year, month, day} archives

I'm in process of migrating a blogger based blog to hugo. Compare blogger site to hugo-backed site (source here).
One thing that I'll lose as a result of this migration is an archive of posts (like this one). I don't really care all that much, and I'll most likely replace it with a list of all posts, with a different layout, generated from layouts/section/post.html. I'd like to ask you, however, to consider adding a capability for hugo to generate time-based archives. Such archives would most likely be useful to people who want to preserve their existing archive pages.
It'd generate content under public/<section>/2014/index.html for example, from layouts/post/list.html. It'd need to allow per-section and per-level (yearly, monthly, daily) control. It'd also need to play well with permalinks parameter from config.yaml - I don't really have a good idea how to address that.
Is such feature request a sensible one? :)

Just fox example from Wordpress:
https://wordpress.org/plugins/compact-archives/
http://www.wpbeginner.com/archives/

Any progress on this or workarounds?

Any ideas on this one?

FWIW, I've stopped using Hugo for the site that I wanted this feature for, so I'm muting this bug - don't expect any answers here :>

I'm not a Hugo expert and my templates may have some newbie errors but I managed to make archives work using taxonomies.
Check out this repo: https://github.com/mcliment/f1blog-archived/ -there are taxonomies per year defined in config.toml and in every post there's the corresponding frontmatter information-.
The resulting site is here: http://f1blog.climens.net/ with most of the things I had in Wordpress.

Did this one get dropped for good?
I can see how the taxonomy approach would work, but when thinking from a cms point of view I think it would require it to be able to pull the month from the date and add it to the frontmatter without requiring the user to enter redundant data. As well as making sure the config has the needed year taxonomies as time goes on, though I am curious if that part might be able to be done with webpack or something prior to running hugo. I haven't given that any thought just a spur of the moment idea. Anyway, this feature sounds like it was intended to be much more ideal.

Did this one get dropped for good?

It isn't like there are a crazy amount of Hugo developers, and we "all" have our priorities.

serious design limitation

I am keeping an eye on that as I wish to use it. (I am sad I don't understand much of the code, it's way too abstract to me.)

Really hoping you can come up with a simple to use solution for this as I'm finding it a frustration with Hugo which otherwise I'm loving.
The use of a taxonomy is not scalable but the idea of having something similar to pagination would work for me I think.
Apologies that I don't know GoLang so I'm not able to contribute code here.

This workaround https://blog.atj.me/2017/10/generate-yearly-and-monthly-archive-pages-with-hugo-sections/ was promising for a while but needing to disable the section pages ended up being too much of an annoyance for me.

We have 2021 and this ticket is now open for seven years. It is surprising for a newcomer to hugo to see such a basic functionality missing given that hugo has no problems auto-generating pages for tags and categories. And it is not that this feature isn't needed. The internet is full of half-baked solutions to this problem:

https://discourse.gohugo.io/t/monthly-archive-pages-for-blog/122
https://discourse.gohugo.io/t/pagination-and-group-by-date/1441
https://randomgeekery.org/post/2016/04/yearly-post-archives-in-hugo/
https://blog.atj.me/2017/10/generate-yearly-and-monthly-archive-pages-with-hugo-sections/
https://smartshitter.com/musings/2017/12/monthly-archive-and-proper-pagination-in-hugo/
https://discourse.gohugo.io/t/how-to-generate-chronological-blog-archives-in-hugo/13491/4
https://melcher.dev/2019/01/inconvenient-hugo-yearly/monthly-archives/
https://www.thedroneely.com/posts/generating-archive-pages-with-hugo/
https://rohanverma.net/blog/2019/11/15/archive-pages-group-by-year-hugo/
https://github.com/gohugoio/hugo/issues/6992
https://www.jayeless.net/2021/04/taxonomies-archive-hugo.html

I collected these just to underline the need for this feature. It would be very nice if you could consider giving this feature a higher priority. I think hugo should not release v1.0 before it hasn't implemented automatic generation of a per-{year, month, day} archive if hugo wants to be a relevant framework for bloggers.

@asmaier
Thank you for this list.
Although their approaches may be imperfect, to characterize the authors' efforts and generosity as "half baked" is... unfortunate.

Sorry, I did not mean to belittle the work of the authors of these solutions. English it not my mother tongue. I edited my post and now call these solutions workarounds. I hope that is a more neutral description.

Any news here? Will this be implemented. This is a blocker issue!

Will this ticket ever be solved?
Just a quote from one of the workarounds

So there you have it! This is the method I’ve used to create monthly archives for my blog in Hugo. It might seem like a lot of effort for something that other blogging platforms handle by default, but it works, and isn’t too much ongoing effort once set up.

https://www.jayeless.net/2021/04/taxonomies-archive-hugo.html

For anyone still interested in archives by year, month, and day...
git clone --single-branch -b hugo-forum-topic-46777 https://github.com/jmooring/hugo-testing hugo-forum-topic-46777
cd hugo-forum-topic-46777
rm -rf prebuild/public/ public/ && hugo -s prebuild && hugo server -e production

It really easy to do:

No extra front matter fields to manage
No external scripts
Widgets are easy to create, e.g.

Make sure to read the README.

for those who want to read first:
https://github.com/jmooring/hugo-testing/tree/hugo-forum-topic-46777

For anyone still interested in archives by year, month, and day...
git clone --single-branch -b hugo-forum-topic-46777 https://github.com/jmooring/hugo-testing hugo-forum-topic-46777
cd hugo-forum-topic-46777
rm -rf prebuild/public/ public/ && hugo -s prebuild && hugo server -e production

It's really easy to do:

No extra front matter fields to manage
No external scripts
Widgets are easy to create, e.g.

Make sure to read the README.

I'm trying to wrap my head around this. So I understand you are basically using a first hugo run on the prebuilt directory to create a directory structure for the archive. Then the second run of hugo will mount the output of the first run into it's content directory and make use of the prebuilt directory structure to create daily, monthly and yearly archives. Is this correct or?
So from what I understand the first hugo run is basically just a "misuse" of hugo as an external script. That is smart, but doesn't seem like a convincing solution to me. I think from a user perspective I would like to see the prebuilt step being done by hugo internally if some config option in hugo.toml is activated, e.g. enableArchiveByDate. Would something like this be possible?

For anyone still interested in archives by year, month, and day...
git clone --single-branch -b hugo-forum-topic-46777 https://github.com/jmooring/hugo-testing hugo-forum-topic-46777
cd hugo-forum-topic-46777
rm -rf prebuild/public/ public/ && hugo -s prebuild && hugo server -e production

It's really easy to do:

No extra front matter fields to manage
No external scripts
Widgets are easy to create, e.g.

There is one thing I'm missing from this example. The year.html, month.html and day.html used to generate the yearly, monthly and daily archive do not offer a link to the next and previous archive page. So I would expect  on the page posts/2022 to have a link to the next archive at posts/2023 and to the previous one at posts/2021. The same for monthly , e.g. on the page posts/2022/01/ I would like to have a link to the previous month posts/2021/12 and to the next month posts/2022/02 . Can this be done? This would then also solve https://github.com/gohugoio/hugo/issues/6992 .

@asmaier The list pages are paginated. So in additional to prev/next on each pager pointing to the previous or next pager, you also want navigation to the next/previous year/month/day? That seems a bit busy to me, but probably do-able.

So in additional to prev/next on each pager...That seems a bit busy to me

You are right. I don't want additional navigation, but instead have a different alternative date based pagination instead of the normal pagination.

@jmooring I found a way how to create the navigation between the date based sections of your example code as I imagined it. I opened a pull request https://github.com/jmooring/hugo-testing/pull/4 . This might not be the perfect code, but maybe it helps to understand better what I want.

Hello.
I have an interest in this issue. I see that solutions are being proposed. Does it means there will be such a thing in the near future ?
Thanks

This uses a relatively simple module to create year, month, and day archive pages for one section of a site. The module leverages the content adapters feature introduced in v0.126.0. The module itself requires v0.126.2 or later.
Example:
git clone --single-branch -b hugo-github-issue-448 https://github.com/jmooring/hugo-testing hugo-github-issue-448
cd hugo-github-issue-448
mkdir -p assets/data
hugo mod verify
hugo list published > assets/data/published-content.csv
hugo server

Details:
https://github.com/jmooring/hugo-module-archive
Note that this approach relies on the hugo list published command, for which there is no API promise. Although the output of this command is unlikely to change in a breaking fashion, such breakage is a possibility, and may require a change to the module in order to provide forward compatibility.

Any updates on this? What are the current plans to get archives (without workarounds)?
Especially as #6992 was closed with reference to this issue here.


minor: Fix heading levels on docs homepage

What kind of changes does this PR include?

Minor content fixes (broken links, typos, etc.)

Description
a11y guidelines state that heading levels should increment by one level at a time (e.g. <h4> must be preceded by an <h3>) We were using <h4> for the first two headings on the docs homepage, which violates that rule. I suspect this was to keep these headings out of the sidebar or for stylistic reasons (smaller font size).
I’ve switched back to <h2> to fix this a11y issue (it impacts Lighthouse scores amongst other things), and used a literal <h2> tag for the first mini section to avoid that showing up in the table of contents.

LGTM! 💜


[SPARK-12368] [ML] [DOC] Better doc for the binary classification evaluator' metricName

For the BinaryClassificationEvaluator, the scaladoc doesn't mention that "areaUnderPR" is supported, only that the default is "areadUnderROC".
Also, in the documentation, it is said that:
"The default metric used to choose the best ParamMap can be overriden by the setMetric method in each of these evaluators."
However, the method is called setMetricName.
This PR aims to fix both issues.

Test build #47816 has started for PR 10328 at commit a6691d4.

Test build #47816 has finished for PR 10328 at commit a6691d4.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/47816/
Test PASSed.

cc @jkbradley @mengxr

Cc @jkbradley

@BenFradet Thank you for pinging again!  It looks fine except for that odd diff line.

LGTM pending tests

Test build #2339 has started for PR 10328 at commit a6691d4.

Test build #2339 has finished for PR 10328 at commit a6691d4.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Merging with master
Thanks!


Can we support thr:in-reply-to tags?

I'm trying to use elfeed to read the atom feeds of a kernel patch series, as in<EMAIL_ADDRESS>It would be nice to have the entries sorted in a tree view.
The data is available in the feed as Atom's threading extensions (https://datatracker.ietf.org/doc/rfc4685/).
Are you open to parsing this thr:in-reply-to tag?

This can be solved with a custom parser. Credits go to the elfeed-goodies package for this example:
(defun elfeed-threaded--parse-in-reply-to (_type entry db-entry)
  "Take TYPE (ignored), ENTRY, DB-ENTRY, parse thr:in-reply-to and store it in DB-ENTRY."
  (let ((in-reply-to (xml-query* (in-reply-to :ref) entry)))
    (setf (elfeed-meta db-entry :in-reply-to) in-reply-to)))

(add-hook 'elfeed-new-entry-parse-hook #'elfeed-threaded--parse-in-reply-to)


intermediate changes to for schedule and config just rpm

This PR pairs with:

https://github.com/ublue-os/config/pull/18
https://github.com/ublue-os/main/pull/87

It accomplishes the two changes directly related to the above PRs which reduces the complexity of #72 , which is where I sourced these changes.
The merge process should be:

https://github.com/ublue-os/config/pull/18 (wait for build success :watch:)
https://github.com/ublue-os/main/pull/87 (wait for build success :watch:)
https://github.com/ublue-os/nvidia/pull/80 (celebrate :partying_face:)

This removes the just build process and will likely (as far I read through it) cause the images to successfully build with just in main, but it will not enable the nvidia specific just commands added in the containerfile, which would be a regression.

This removes the just build process and will likely (as far I read through it) cause the images to successfully build with just in main, but it will not enable the nvidia specific just commands added in the containerfile, which would be a regression.

Agreed, I knew about that regression and didn't call it out, but arguably, there's already a bug in that the "main" justfile is not present.
I'm not sure if there was ever a plan for merging them...
I imagine, this nvidia build could check for the existence of /etc/justfile after installing ublue-os-just.rpm   and append to it... but that breaks the concept of of the RPM controlling the files.


Fix version interpolation in PolarClock 3.0

Correct version interpolation in screen_saver stanza to fix:
Error: It seems the Screen Saver source is not there: '/usr/local/Caskroom/polar-clock/3.0/PolarClock #{version}.saver'.

Thanks 🍻


UBI goes distrib

This what I understand about distributed Solr.

UBIComponentDistrQueriesTest fails with
12544 WARN  (qtp1249319859-57) [n: c: s: r: x: t:] o.e.j.s.HttpChannel /solr/collection1_shard2_replica_n1/select
          => java.lang.AssertionError
	at org.apache.solr.handler.component.RealTimeGetComponent.addDocListToResponse(RealTimeGetComponent.java:1180)
java.lang.AssertionError: null
	at org.apache.solr.handler.component.RealTimeGetComponent.addDocListToResponse(RealTimeGetComponent.java:1180) ~[main/:?]

and it doesn't seem specific to UBI. I'm stuck. Don't know how to get through it.

Would it be useful to add you to the epugh/solr repo?

Would it be useful to add you to the epugh/solr repo?

nope. I can push into https://github.com/apache/solr/pull/2452 as a maintainer.
Just merge this once please, since it's a kind of ground level for distributed UBI.
And then I'll continue in https://github.com/apache/solr/pull/2452 if you don't mind.

Merged!  and please do continue!  this is super great to have a collaborator!


doc: add listen-addr section to gateway op-guide

LGTM. /cc @xiang90 @heyitsanthony

@kragniz @heyitsanthony I feel we should have a generic configuration doc for gateway instead of a specific section for the listen addr flag.

@xiang90 sure, agreed

Yeah, I guess so. I thought it might be a bit too small to warrant a full doc


[FLINK-6702] fix SIGABRT during GC in the CEP unit tests

Looks good. I will merge this after #3976 to avoid merge conflicts.

I'll merge this now.


cgo creating char** from CString corrupts initial entries

$ uname -srvm
Linux 4.3.0-1-amd64 #1 SMP Debian 4.3.3-5 (2016-01-04) x86_64
$ go version
go version go1.6rc1 linux/amd64

(also tested on 1.5 before upgrading)
I'm trying to create a char** in Go to pass to a C function but the first entries are mangled when I read them back.
The smallest reproducible case I could manage is:
package main

import (
	"fmt"
	"unsafe"
)

//#include <stdlib.h>
import "C"

var xs = []string{
	"1",
	"",
	"squirrel",
	"2",
	"two",
}

func main() {
	fmt.Println("Test conversion")
	fmt.Printf("\tN\t=\t%20s\t%20s\n", "Go", "C")
	//if I delete this loop everything works as intended
	for i, x := range xs {
		cvt := C.GoString(C.CString(x))
		//always equal
		fmt.Printf("\t%d\t%t\t%20q\t%20q\n", i, x == cvt, x, cvt)
	}

	//create an array meant to be passed to C
	//and a view into it to update the data
	arr := (**C.char)(C.malloc(C.size_t(C.int(len(xs)))))
	view := (*[1 << 30]*C.char)(unsafe.Pointer(arr))[0:len(xs):len(xs)]

	fmt.Println("To C", &view[0], arr)
	fmt.Printf("\tN\t=\t%20s\t%20s\t&C\n", "Go", "C")
	for i, x := range xs {
		view[i] = C.CString(x)
		// (deleting the rest of this loop has no effect on the issue, but it's interesting that it still works at this point)
		g := C.GoString(view[i])
		//always equal
		fmt.Printf("\t%d\t%t\t%20q\t%20q\t%v\n", i, x == g, x, g, view[i])
	}

	//Everything is fine so far, but reading the values back out
	//(whether in Go or C) does not work
	fmt.Println("From C", &view[0], arr)
	fmt.Printf("\tN\t=\t%20s\t%20s\t&C\n", "Go", "C")
	for i, x := range view {
		g := C.GoString(x)
		//only the same after the first few entries
		fmt.Printf("\t%d\t%t\t%20q\t%20q\t%v\n", i, xs[i] == g, xs[i], g, x)
	}

}

When I run this I get something like
Test conversion
	N	=	                  Go	                   C
	0	true	                 "1"	                 "1"
	1	true	                  ""	                  ""
	2	true	          "squirrel"	          "squirrel"
	3	true	                 "2"	                 "2"
	4	true	               "two"	               "two"
To C 0x111b480 0x111b480
	N	=	                  Go	                   C	&C
	0	true	                 "1"	                 "1"	0x111b4a0
	1	true	                  ""	                  ""	0x111b4c0
	2	true	          "squirrel"	          "squirrel"	0x111b4e0
	3	true	                 "2"	                 "2"	0x111b500
	4	true	               "two"	               "two"	0x111b520
From C 0x111b480 0x111b480
	N	=	                  Go	                   C	&C
	0	false	                 "1"	     " \xb5\x11\x01"	0x111b4a0
	1	true	                  ""	                  ""	0x111b4c0
	2	true	          "squirrel"	          "squirrel"	0x111b4e0
	3	true	                 "2"	                 "2"	0x111b500
	4	true	               "two"	               "two"	0x111b520

The first entry get mangled. (Different every time, but mangled every time).
The number of mangled entries is proportional to the number of entries in xs, but the mangled entries are always at the start of the list. With less than 5 entries, there is no mangling. With 9, the first two are mangled. With 13, the first three are mangled.
As the code notes, if I delete the first loop I always get the expected, irrespective of the length of xs.
(I had no equivalent in the program I abstracted this from, but it's required to reproduce here).
To C 0x1fa8050 0x1fa8050
	N	=	                  Go	                   C	&C
	0	true	                 "1"	                 "1"	0x1fa8400
	1	true	                  ""	                  ""	0x1fa8420
	2	true	          "squirrel"	          "squirrel"	0x1fa8440
	3	true	                 "2"	                 "2"	0x1fa8460
	4	true	               "two"	               "two"	0x1fa8480
From C 0x1fa8050 0x1fa8050
	N	=	                  Go	                   C	&C
	0	true	                 "1"	                 "1"	0x1fa8400
	1	true	                  ""	                  ""	0x1fa8420
	2	true	          "squirrel"	          "squirrel"	0x1fa8440
	3	true	                 "2"	                 "2"	0x1fa8460
	4	true	               "two"	               "two"	0x1fa8480

If I'm just doing something wrong with cgo, I apologize for the noise.

arr := (**C.char)(C.malloc(C.size_t(C.int(len(xs)))))
you only allocates len(xs) bytes of storage, and then
you treat it as len(xs) char* pointers. How could that
work?

Gah, thanks.
For any future searchers, the fix is changing that line to
size := C.size_t(unsafe.Sizeof((*C.char)(nil)))
length := C.size_t(len(xs))
arr := (**C.char)(C.malloc(length * size))


3.x: Micrometer documentation mentions deprecated MicrometerMeterRegistry

Environment Details

Helidon Version: 3.2.8
Helidon SE
JDK version: 17
OS: n/a
Docker version (if applicable): n/a

Problem Description
Micrometer metrics documentation mentions MicrometerMeterRegistry, it is deprecated and removed.
Steps to reproduce
See https://helidon.io/docs/v3/se/metrics/micrometer#_create_and_update_meters_in_your_application_service

This is a doc typo. In the 3.x source Helidon's MicrometerSupport#registry method actually returns a MeterRegistry (not the type MicrometerMeterRegistry).
https://github.com/helidon-io/helidon/blob/224714191e89ff0f4785202fb23b0aa27b49dbcf/integrations/micrometer/micrometer/src/main/java/io/helidon/integrations/micrometer/MicrometerSupport.java#L87-L95


Images in a hidden div

There are cases when you have images which are in viewport but not visible, because in display:none or outside of overflow:hidden. I use jquery.lazyloadxt.bg.js with data-bg.
Is here a way not to load this invisible images and loading when images get visible?

Any update on this request?

I have change the code by my self and add this function in it http://stackoverflow.com/a/15203639/706420


Change a player's access level using /nlip without having to remove first with /nlrm

I cannot for example, move someone from MODS to ADMINS without first removing them.  When I type "/nlip orion itaqi ADMINS" for example, it will tell me that itaqi is already part of the orion group.
In order to change someone's access level I have to remove them then add them.  I would like to be able to just do /nlip and not have to do /nlrm first.

duplicate https://github.com/Civcraft/NameLayer/issues/49