Add Publishing your actor section

The purpose of this section is to offer a guide for developers to publish and monetize their code on the Apify platform.
@mstephen19 This is my first PR to the academy. I tried to maintain the same style and conventions I observed in the way you are structuring the content, but I might have missed some things. Let me know if there is anything wrong and I will promptly fix it. Thanks for the patience man. Cheers 🍻

@mstephen19 Hey Matt, I struggled a little with finding all the broken paths, but it should be sorted out now 😅
I added a brief overview section and fixed the deployment errors, but I won't have enough time to implement all the suggestions anytime soon. Can you take another look at the files to see if everything is correct? If there are no major mistakes, I believe we can go ahead and publish the sections and keep adding to the content in the future.
Cheers 🍻

Looks great to me! Thanks @PerVillalva. Let's get a second pair of eyes from @mnmkng

Ping @PerVillalva, there are still some unresolved comments.

Thanks for the reminder @mnmkng!
I've resolved all comments. The only problem is that I cannot preview the images after I saved them in this repo and changed the paths, and I noticed that's also the case for the already published content. Is there anything I can do on my side to preview the images? Otherwise, everything should be ready. You can take another look to see if I wrote the paths correctly. Cheers 🍻


Several Hours Fine Now No Data Returned?

Several Hours Fine Now No Data Returned?
PS C:\WINDOWS\system32> Get-Module -Name PSHardwareMonitor
ModuleType Version    Name                                ExportedCommands

Script     1.0.3      PSHardwareMonitor                   {Get-HWInformationLog, Get-HWMeasurement, Get-HWObject, New-HWCustomObject...}
PS C:\WINDOWS\system32> Get-HWMeasurement
[No Output]

Gave up on figuring out why the class/module stopped reporting and just called the DLL direct.  For some reason loading the DLL via Add-Type resulted in errors?  So used .Net LoadFile.  Here is an example of a test of the DLL for those that might find it useful.  This is raw access to the DLL,
Try {
    $thePath = "C:\Automation\Library\OpenHardwareMonitor 0.9.6\OpenHardwareMonitorLib.dll"
    [System.Reflection.Assembly]::LoadFile($thePath) | Out-Null
    $theVersion = (Get-Item -Path $thePath).VersionInfo.FileVersion
    Write-Host "Open Hardware Monitor Version $theVersion"

    #
    $theMonitor = New-Object OpenHardwareMonitor.Hardware.Computer
    $theMonitor.Open()
    $theMonitor.CPUEnabled = $true
    #$theMonitor.GPUEnabled = $true
    #$theMonitor.FanControllerEnabled = $true
    #$theMonitor.HDDEnabled = $true
    #$theMonitor.RAMEnabled = $true
    #$theMonitor.MainboardEnabled = $true

    While ($true) {

        $theMonitor.Hardware.Update()
        $theTemperatures = $theMonitor.Hardware.Sensors | Select-Object SensorType,Name,Index,Min,Max,Value | Where-Object {$_.SensorType -eq "Temperature"}
        if ($theTemperatures) {
            Write-Host "$($theTemperatures.Name), $($theTemperatures.Index), $($theTemperatures.Value), $($theTemperatures.Min), $($theTemperatures.Max)"
        }
        Start-Sleep 1
    }

}
Catch  {
#
Write-Host $_.Exception

}
Finally {
#

If ($theMonitor) {
    $theMonitor.Close()

}

}

Sample output from script above...
PS C:\WINDOWS\system32> C:\Automation\Test-OpenHardwareManager.ps1
Open Hardware Monitor Version <IP_ADDRESS>
CPU Package, 0, 40.875, 40.875, 40.875
CPU Package, 0, 40.375, 40.375, 40.875
CPU Package, 0, 40, 40, 40.875
CPU Package, 0, 39.75, 39.75, 40.875
CPU Package, 0, 39.5, 39.5, 40.875
CPU Package, 0, 39.25, 39.25, 40.875
CPU Package, 0, 39.25, 39.25, 40.875
CPU Package, 0, 39.125, 39.125, 40.875
CPU Package, 0, 39.25, 39.125, 40.875
CPU Package, 0, 39.125, 39.125, 40.875


Help.

I use the latest version of Python.I start CS:GO and after that a Python scrpit.
My dll still gets detectable,what to do?

Try this: https://github.com/danielkrupinski/OneByteLdr/issues/5

Try this: #5

@jxian725 i am using pymem version 1.2 thats the issue???

Try this: #5

@jxian725 i am using pymem version 1.2 thats the issue???

im using latest,but cmd opens for a second then close

@jxian725 @danielkrupinski
i am getting this after installing 32-bit version of python and pymem 1.2 version
C:>python OneByteLdr.py
The token does not have the specified privilege.
Traceback (most recent call last):
File "OneByteLdr.py", line 4, in
pm = pymem.Pymem('csgo.exe')
File "C:\Python\Python38-32\lib\site-packages\pymem_init_.py", line 45, in init
self.open_process_from_name(process_name)
File "C:\Python\Python38-32\lib\site-packages\pymem_init_.py", line 198, in open_process_from_name
self.open_process_from_id(self.process_id)
File "C:\Python\Python38-32\lib\site-packages\pymem_init_.py", line 220, in open_process_from_id
raise pymem.exception.CouldNotOpenProcess(self.process_id)
pymem.exception.CouldNotOpenProcess: Could not open process: 14800

Try this: #5

@jxian725 i am using pymem version 1.2 thats the issue???

im using latest,but cmd opens for a second then close

Run the python script from cmd. not direct double clicking it

@jxian725 @danielkrupinski
i am getting this after installing 32-bit version of python and pymem 1.2 version
C:>python OneByteLdr.py
The token does not have the specified privilege.
Traceback (most recent call last):
File "OneByteLdr.py", line 4, in
pm = pymem.Pymem('csgo.exe')
File "C:\Python\Python38-32\lib\site-packages\pymem__init__.py", line 45, in init
self.open_process_from_name(process_name)
File "C:\Python\Python38-32\lib\site-packages\pymem__init__.py", line 198, in open_process_from_name
self.open_process_from_id(self.process_id)
File "C:\Python\Python38-32\lib\site-packages\pymem__init__.py", line 220, in open_process_from_id
raise pymem.exception.CouldNotOpenProcess(self.process_id)
pymem.exception.CouldNotOpenProcess: Could not open process: 14800

Just run as admin for the command. If the problem still exist you may try downgrade your pymem to v1.0 as suggested by daniel

I have installed Python.I tried to install Pymem but cmd closed after milisecond.Same problem with bypass..

How to run command from cmd or python?

Open cmd then run:
[python.exe path] [OneByteLdr.py path]

How to run command from cmd or python?

Open cmd then run:
[python.exe path] [OneByteLdr.py path]

invalid syntax

Can someone record a tutorial about this?? xD

How to run command from cmd or python?

Open cmd then run:
[python.exe path] [OneByteLdr.py path]

how to install pymem?

How to run command from cmd or python?

Open cmd then run:
[python.exe path] [OneByteLdr.py path]

how to install pymem?

pip install pymem in cmd

How to run command from cmd or python?

Open cmd then run:
[python.exe path] [OneByteLdr.py path]

how to install pymem?

pip install pymem in cmd
help i got this error when try to install it
https://prnt.sc/t9bblx

How to run command from cmd or python?

Open cmd then run:
[python.exe path] [OneByteLdr.py path]

how to install pymem?

pip install pymem in cmd
help i got this error when try to install it
https://prnt.sc/t9bblx

you can also install pymem manually here:
https://pypi.org/project/Pymem/#files

How to run command from cmd or python?

Open cmd then run:
[python.exe path] [OneByteLdr.py path]

how to install pymem?

pip install pymem in cmd
help i got this error when try to install it
https://prnt.sc/t9bblx

pip install pymem has to be run from a normal CMD window, not a window with python running in it.

Try this: #5

@jxian725 i am using pymem version 1.2 thats the issue???

im using latest,but cmd opens for a second then close

Run the python script from cmd or python.exe. not direct double clicking it so that you may see and troubleshoot token error for the failure.
Most probably is that your python missing pymem and win32api module

Im getting the same error. I have the latest version of python and pymem 1.0 and win32api. Still gives me the error when I try to run the OneByteLdr.py


build/custom: no need to check out ose repo at all

Let doozer do it as needed.
PTAL @adammhaile @tbielawa

3.x builds still use it :)


Crash when rendering partials out of context?

We have code we use to inter-operate between our legacy PHP code (compiled with Phalanger to .NET code), and I have a class I built that allows me to render any Action or Partial from out of the normal controller or view context, to a string. That allows me to call across to MVC Actions or Partials from our legacy PHP code pages and insert the output into the PHP page. It all works fine, but when I turned on Glimpse and try to render a partial it seems to crash somewhere in the bowels of Glimpse. Here is the class I am using:
/*
 * Copyright (C) 2009-2013 Good Time Hobbies, Inc.
 * All Rights Reserved
 */

using System;
using System.IO;
using System.Text;
using System.Web;
using System.Web.Mvc;
using System.Web.Mvc.Html;
using System.Web.Routing;

namespace GoodTimeHobbies.WebScaffold.Scaffold
{
    public static class MvcHelper
    {
        /// <summary>
        /// Simple class for a fake controller we can create for our controller context
        /// </summary>
        private class FakeController : ControllerBase
        {
            protected override void ExecuteCore() { }
        }

        /// <summary>
        /// Helper function to invoke an action out of place
        /// </summary>
        /// <param name="controllerContext">Controller context we are invoking the action from</param>
        /// <param name="actionName">Name of the action to invoke</param>
        /// <param name="controllerName">Name of the controller to invoke</param>
        /// <param name="routeValues">Route values for the action to be invoked</param>
        /// <returns>String representing the HTML for the item</returns>
        public static string InvokeAction(
            ControllerContext controllerContext,
            string actionName,
            string controllerName,
            RouteValueDictionary routeValues)
        {
            // If we don't have a current controller context, create a fake one
            if (controllerContext == null) {
                // Get the HttpContext
                if (HttpContext.Current == null) {
                    throw new ArgumentNullException("HttpContext.Current", "HttpContext.Current cannot be null");
                }

                // Create the controller context
                controllerContext = new ControllerContext(new HttpContextWrapper(HttpContext.Current), new RouteData(), new FakeController());
            }

            // Create a fake view
            var view = new WebFormView(controllerContext, "tmp");

            // Create a fake view context so we can create an HtmlHelper instance
            var viewContext = new ViewContext(controllerContext, view, new ViewDataDictionary(), new TempDataDictionary(), TextWriter.Null);

            // Now create a HtmlHelper instance we can use to invoke the action
            var htmlHelper = new HtmlHelper(viewContext, new ViewPage());

            // Render the action and return it
            return htmlHelper.Action(actionName, controllerName, routeValues).ToString();
        }

        /// <summary>
        /// Helper function to invoke an action out of place. The only requirement is to either pass in
        /// a valid ControllerContext, or if you pass null, HttpContext.Current must not be null.
        /// </summary>
        /// <param name="controllerContext">Controller context we are invoking the action from</param>
        /// <param name="result">ActionResult from T4MVC action invocation</param>
        /// <returns>String representing the HTML for the item</returns>
        public static string InvokeAction(
            ControllerContext controllerContext,
            ActionResult result)
        {
            var mvcResult = result.GetT4MVCResult();
            return InvokeAction(controllerContext, mvcResult.Action, mvcResult.Controller, mvcResult.RouteValueDictionary);
        }

        /// <summary>
        /// Helper function to render a partial view
        /// </summary>
        /// <param name="partialViewName">Name of the partial view to render</param>
        /// <param name="model">Model to pass to the partial view</param>
        /// <returns>HTML representing the contents of the partial view</returns>
        public static string Partial(
            string partialViewName,
            object model)
        {
            // Get the HttpContext
            if (HttpContext.Current == null) {
                throw new ArgumentNullException("HttpContext.Current", "HttpContext.Current cannot be null");
            }

            // Build the route data, pointing to the dummy controller
            var routeData = new RouteData();
            routeData.Values.Add("Controller", typeof(FakeController).Name);

            // Create the controller context
            var controllerContext = new ControllerContext(new HttpContextWrapper(HttpContext.Current), routeData, new FakeController());

            // Find the partial view
            var view = FindPartialView(controllerContext, partialViewName);

            // Create a string writer to capture the contents
            var writer = new StringWriter();

            // Create the view context and pass in the model
            var viewContext = new ViewContext(controllerContext, view, new ViewDataDictionary { Model = model }, new TempDataDictionary(), writer);

            // Finally, render the view to our string writer
            view.Render(viewContext, writer);

            // And return the result
            return writer.ToString();
        }

        /// <summary>
        /// Internal function to find a partial view
        /// </summary>
        /// <param name="controllerContext">Controller context to lookup the partial view for</param>
        /// <param name="partialViewName">Partial view name to lookup</param>
        /// <returns>Partial view found (throws exception if not found)</returns>
        private static IView FindPartialView(
            ControllerContext controllerContext,
            string partialViewName)
        {
            // Try to find the partial view
            var result = ViewEngines.Engines.FindPartialView(controllerContext, partialViewName);
            if (result.View != null) {
                return result.View;
            }

            // Wasn't found - construct error message
            var locationsText = new StringBuilder();
            foreach (string location in result.SearchedLocations) {
                locationsText.AppendLine();
                locationsText.Append(location);
            }
            throw new InvalidOperationException(String.Format("Partial view {0} not found. Locations Searched: {1}",  partialViewName, locationsText));
        }
    }
}

It is a pretty handy class to have (we plan to use it for HTML emails at some point also), but it is not clear why it is crashing. The InvokeAction() method works just fine, it is just the Partial() method that crashes.
Any quick pointers? I will probably have to set up a local copy of Glimpse and build it, so I can debug this myself if it is not easy to fix.

I've this problem too even I set ValueProvider which OP said that is a fix.
https://github.com/Glimpse/Glimpse/issues/409#issuecomment-19948844

In my case the problem is that I'm creationg FakeController inside HostingEnvironment.QueueBackgroundWorkItem callback.


Cannot expand the resources under non-java root in multi-root workspace

When I open a multi-root workspace with two roots like "java-debug" and "vscode-java-debug", the root "java-debug" with java projects is displayed well, but the non-java root "vscode-java-debug" only shows a fake node, and cannot expand its resources. This forces me to use the File Explorer instead of the Project Explorer when working with multi-root workspaces. This is an issue that we need to resolve if we want the Java Projects view to have all the functionalities of the File Explorer.

The root cause is that no IProject found under the root vscode-java-debug. Because of that, the resource workspace tree at the server side does not have element under that folder.
To fully support such case, one possible solution might be:

Client side first get the FS hierarchy.

If any folder/file has a corresponding Java Model at server side, render it with Java element style.
Otherwise, render it as a normal file/folder.

By doing this, we can have an explorer more like the current the File explorer, but with special Java nodes inside it. (The one similar to the IDEA's style)
But that requires a huge amount of refactoring work, so I would like to wait to see if enough users will be interested in this.

I´m experiencing same problem after update to 0.22 version.
Children maven projects from a father maven project didn´t not appear source folders and classes anymore.
It was necessary to downgrade to 0.21.2.

@rossinineto How does your project structure look like? I think you can just turn the setting java.project.explorer.showNonJavaResources to false without downgrade.


chore(main): release 0.4.7

:robot: I have created a release beep boop
0.4.7 (2023-03-09)
Dependency Updates

deps: bump github.com/onsi/ginkgo/v2 from 2.8.4 to 2.9.0 (#258) (90a4a3a)
deps: bump github.com/vektra/mockery/v2 from 2.20.2 to 2.21.4 (#262) (e888f71)
deps: update ghcr.io/aquasecurity/trivy docker tag to v0.38.2 (#261) (3fdbffc)

This PR was generated with Release Please. See documentation.

:robot: Release is at https://github.com/statnett/image-scanner-operator/releases/tag/v0.4.7 :sunflower:


ROS 2 IDL support

add ros2idl option to parser
add ros2idl grammar for idl parsing
add tests for ros2idl grammar

Open questions:

do we want to keep the message paths separated by :: ? or should I replace those with a /?
Does the IDL parsing also need to perform fixup types? As an extension,  I'm not sure how we want to handle #includes or if we just assume that everything needed should be in the message definition string. I imagine everything needed should be in the message definition string.

Checklist:

[x] Clean up grammar and add comments
[x] Normalize definitions and update tests
[x] Support scientific notation without signs
[x] Support multiple declarations in a single line?

do we want to keep the message paths separated by :: ? or should I replace those with a /?

What is the correct format for names from idl? For example in protobuf we keep the period separator because that is idiomatic protobuf and how you reference types and nested types in packages. For IDL is the expectation that you use :: ? I know that the / separator is a ROS message-ism so might not be the right approach for IDL.
Does this support concatenated IDL messages? @james-rms can probably point you to some examples on this but my recollection of our rosbag storage mcap support for IDL is that it takes multiple separate IDL definition files and produces a single text with each of these concatenated with some separator. This is similar to how multiple ROS .msg files are concatenated and stored in a schema in mcap. I believe the handling of those concatenated text schemas is also handled within this module during parsing.

What is the correct format for names from idl? For example in protobuf we keep the period separator because that is idiomatic protobuf and how you reference types and nested types in packages. For IDL is the expectation that you use :: ? I know that the / separator is a ROS message-ism so might not be the right approach for IDL.

@defunctzombie So within the file it looks like everything references the :: name but I'm not sure what the expectation is for displaying/using the ros2idl package resource name elsewhere.


Hide Account

Once account is hidden, it should land on the HSS and the account should not be visible (not in a 'hidden' mode)

When we hide the account it land on the home page, but the account is not hidden immediately. We have to login the app again only then that particular account will not appear on the home page.
-The account should disappear from the home page immediately.
Testedon dev app v1.8.0(320)

Verified this issue on dev app v1.8.5(325)


Public Recipe List

Should display a list of all public recipes ordered by the newest as in the wireframe.
Should lead to recipe details.


Compile Error

Dear author:
Have you ever met this error?
chamfer_dist]$ python setup.py install --user
running install
/public/home/hpc220270/anaconda3/envs/pointmae/lib/python3.8/site-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated.
!!
    ********************************************************************************
    Please avoid running ``setup.py`` directly.
    Instead, use pypa/build, pypa/installer or other
    standards-based tools.

    See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details.
    ********************************************************************************

!!
self.initialize_options()
/public/home/hpc220270/anaconda3/envs/pointmae/lib/python3.8/site-packages/setuptools/_distutils/cmd.py:66: EasyInstallDeprecationWarning: easy_install command is deprecated.
!!
    ********************************************************************************
    Please avoid running ``setup.py`` and ``easy_install``.
    Instead, use pypa/build, pypa/installer or other
    standards-based tools.

    See https://github.com/pypa/setuptools/issues/917 for details.
    ********************************************************************************

!!
self.initialize_options()
running bdist_egg
running egg_info
creating chamfer.egg-info
writing chamfer.egg-info/PKG-INFO
writing dependency_links to chamfer.egg-info/dependency_links.txt
writing top-level names to chamfer.egg-info/top_level.txt
writing manifest file 'chamfer.egg-info/SOURCES.txt'
reading manifest file 'chamfer.egg-info/SOURCES.txt'
writing manifest file 'chamfer.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-x86_64/egg
running install_lib
running build_ext
error: [Errno 2] No such file or directory: 'which'
Thanks

Hi, it seems like an error related to the external package. I think you should check your environment. We have tested on 3090s/V100s and everything works fine.

I guess it may be caused by the CUDA version. Please try to downgrade your CUDA version and try again. Another way is to use another PyTorch package, such as https://github.com/krrish94/chamferdist, to replace this one.


ApplySchema tries to reload schema on slaves.

@michael-berlin
After applying a schema change to the master of each shard, vtctl ApplySchema will now tell each slave tablet to reload schema once it receives the DDLs through MySQL replication. In the happy path, this makes the slave tablets appear to reload the new schema immediately. Previously, you had to either wait for the periodic reload as configured by the vttablet -queryserver-config-schema-reload-time flag, or send vtctl ReloadSchema to each tablet manually.
If any slaves take longer than -wait_slave_timeout (as specified on the ApplySchema command) to confirm the schema reload, we will print warnings to indicate that the operator should retry the ReloadSchema command on that tablet.

This change is

Reviewed 39 of 58 files at r1.
Review status: 39 of 58 files reviewed at latest revision, 10 unresolved discussions, some commit checks broke.

go/vt/mysqlctl/mysql_daemon.go, line 330 [r1] (raw file):

// WaitMasterPos is part of the MysqlDaemon interface
func (fmd *FakeMysqlDaemon) WaitMasterPos(ctx context.Context, pos replication.Position) error {

optional: If a parameter is unused, you can set its name to "_". Same comment applies to the other changes in this file.

go/vt/mysqlctl/query.go, line 78 [r1] (raw file):

// executeFetchContext calls Execute() on the given connection,
// while respecting Context deadline and cancellation.
func (mysqld *Mysqld) executeFetchContext(ctx context.Context, conn dbconnpool.PoolConnection, query string, maxrows int, wantfields bool) (*sqltypes.Result, error) {

As discussed offline: Ctrl + F does not find any users of this function at this point.

go/vt/mysqlctl/query.go, line 90 [r1] (raw file):

	}

	// Execute the query.

Mention here that you call it asynchronously to be able to check its completion and the context Done channel at the same time?

go/vt/mysqlctl/query.go, line 111 [r1] (raw file):

		}

		// Try to kill the connection.

Please add a reason why you want to kill the connection here.

go/vt/mysqlctl/query.go, line 158 [r1] (raw file):

	}

	_, err := killConn.ExecuteFetch(fmt.Sprintf("kill %d", connID), 10000, false)

Any particular reason why you have 10k for maxrows? Is it worth a comment?

go/vt/vtctld/api.go, line 225 [r1] (raw file):

	http.HandleFunc(apiPrefix+"schema/apply", func(w http.ResponseWriter, r *http.Request) {
		req := struct {
			Keyspace, SQL       string

optional: I'm a fan of one field per line. But I'm fine with the current version :)

go/vt/wrangler/schema.go, line 64 [r1] (raw file):

		}
		// We got a partial result. Do what we can, but warn that some may be missed.
		wr.logger.Warningf("Failed to fetch all tablets for %v/%v. Some slave tablets may not have schema reloaded (use vtctl ReloadSchema to fix individual tablets)", keyspace, shard)

Is it worth to have this special case? Does it happen that often?
Should we not just error here instead?

go/vt/wrangler/schema.go, line 67 [r1] (raw file):

	}

	wg := &sync.WaitGroup{}

Why get the pointer here instead of the instance?

Comments from Reviewable

I've reviewed everything now.
LGTM after the comments are resolved.

Reviewed 19 of 58 files at r1.
Review status: all files reviewed at latest revision, 16 unresolved discussions, some commit checks broke.

go/vt/schemamanager/tablet_executor.go, line 200 [r1] (raw file):

	defer func() { execResult.TotalTimeSpent = time.Since(startTime) }()

	// lock the keyspace

nit: "Lock the keyspace."

go/vt/schemamanager/tablet_executor.go, line 233 [r1] (raw file):

func (exec *TabletExecutor) executeOnAllTablets(ctx context.Context, execResult *ExecuteResult, sql string) {
	wg := &sync.WaitGroup{}

No need for storing the pointer instead of the object?

go/vt/schemamanager/tablet_executor.go, line 263 [r1] (raw file):

	// execute the schema change via replication. This is best-effort, meaning
	// we still return overall success if the timeout expires.
	wg = &sync.WaitGroup{}

You could reuse the waitGroup from above?
Alternatively, I would prefer to not reuse variable names and give this a different name.

go/vt/tabletmanager/rpc_schema.go, line 35 [r1] (raw file):

	}

	if waitPosition != "" {

optional: You could define a constant for this. The code would read more naturally then. For example, name the constant "currentPosition":
if waitPosition != currentPosition {

go/vt/tabletserver/schema_info.go, line 273 [r1] (raw file):

	// The following section requires us to hold mu.
	errs := &concurrency.AllErrorRecorder{}
	func() {

The extra func() is probably not necessary?
I assume the intent here was to scope the "defer". But based on the current code, it would get executed on the end of the function anyway.

test/local_example.sh, line 66 [r1] (raw file):

# This is not necessary, but it helps make this test more representative of
# what a human would do. It simulates the case where a periodic health check
# occurs before the user gets around to running the next command.

It's not clear to me which implications a healthcheck us: What's the reason you want to simulate this? Maybe add this to the comment here.

Comments from Reviewable

Review status: 0 of 58 files reviewed at latest revision, 16 unresolved discussions.

go/vt/mysqlctl/mysql_daemon.go, line 330 [r1] (raw file):
Previously, michael-berlin (Michael Berlin) wrote…
> optional: If a parameter is unused, you can set its name to "_". Same comment applies to the other changes in this file.

Done.

go/vt/mysqlctl/query.go, line 78 [r1] (raw file):
Previously, michael-berlin (Michael Berlin) wrote…
> As discussed offline: Ctrl + F does not find any users of this function at this point.

Oops! I forgot to change the call sites after writing this function... Fixed.

go/vt/mysqlctl/query.go, line 90 [r1] (raw file):
Previously, michael-berlin (Michael Berlin) wrote…
> Mention here that you call it asynchronously to be able to check its completion and the context Done channel at the same time?

Done.

go/vt/mysqlctl/query.go, line 111 [r1] (raw file):
Previously, michael-berlin (Michael Berlin) wrote…
> Please add a reason why you want to kill the connection here.

Done.

go/vt/mysqlctl/query.go, line 158 [r1] (raw file):
Previously, michael-berlin (Michael Berlin) wrote…
> Any particular reason why you have 10k for maxrows? Is it worth a comment?

No reason that's specific to this invocation. The 10k value is cargo-culted all over the codebase as a value that means "more than zero, but less than infinity". If you want to fix it, we should do that separately and fix all occurrences.

go/vt/schemamanager/tablet_executor.go, line 200 [r1] (raw file):
Previously, michael-berlin (Michael Berlin) wrote…
> nit: "Lock the keyspace."

Done.

go/vt/schemamanager/tablet_executor.go, line 233 [r1] (raw file):
Previously, michael-berlin (Michael Berlin) wrote…
> No need for storing the pointer instead of the object?

Oops. I made this change to make it easier to do the right thing when passing `wg` to child functions. Then I decided passing `wg` to child functions at all is a bad idea. Forgot to revert this.

go/vt/schemamanager/tablet_executor.go, line 263 [r1] (raw file):
Previously, michael-berlin (Michael Berlin) wrote…
> You could reuse the waitGroup from above?
>
> Alternatively, I would prefer to not reuse variable names and give this a different name.

At the time, I checked WaitGroup docs and didn't see any guarantees that it's safe to reuse them. I just checked again and I did find that guarantee in the docs for `Add()`.

go/vt/tabletmanager/rpc_schema.go, line 35 [r1] (raw file):
Previously, michael-berlin (Michael Berlin) wrote…
> optional: You could define a constant for this. The code would read more naturally then. For example, name the constant "currentPosition":
>
> ```go
> if waitPosition != currentPosition {
> ```

I'd rather think of it as "wait position is empty; therefore don't wait" rather than "wait position is a magic constant that means current position".

go/vt/tabletserver/schema_info.go, line 245 [r1] (raw file):
Previously, sougou wrote…
> This is racy because si can get closed immediately after the check. The better way will be to use the startRequest pattern at the tabletserver level.

I looked at `startRequest` and it seems more complex than what I need here. I believe I've addressed the races by using an "action mutex" concept, similar to tabletmanager.

go/vt/tabletserver/schema_info.go, line 273 [r1] (raw file):
Previously, michael-berlin (Michael Berlin) wrote…
> The extra func() is probably not necessary?
>
> I assume the intent here was to scope the "defer". But based on the current code, it would get executed on the end of the function anyway.

Done.

go/vt/tabletserver/schema_info.go, line 321 [r1] (raw file):
Previously, sougou wrote…
> I'm thinking we can get rid of both functions and just call ReloadSchema instead.

I added the actionMutex to DropTable and CreateOrUpdateTable, but kept the direct calls from QueryExector. I used the `func *Locked()` convention to avoid double locking via Reload().
If you think it's better to just call Reload() from QueryExecutor, I think that's a separate consideration orthogonal to locking.

go/vt/vtctld/api.go, line 225 [r1] (raw file):
Previously, michael-berlin (Michael Berlin) wrote…
> optional: I'm a fan of one field per line. But I'm fine with the current version :)

I would agree for a named struct, especially if it's part of a public API. But for a one-off anonymous struct, I appreciate brevity.

go/vt/wrangler/schema.go, line 64 [r1] (raw file):
Previously, michael-berlin (Michael Berlin) wrote…
> Is it worth to have this special case? Does it happen that often?
>
> Should we not just error here instead?

GetTabletMapForShard first lists the tablets and then does a GetTablet on each one.  It's not uncommon for one of the GetTablet calls to fail out of hundreds. In that case, we don't want to abort the whole thing, especially since that one failure may be non-transient which would make retrying the ReloadSchemaShard fail every time. Since ReloadSchemaShard is itself guaranteeing only best-effort reloads, we should continue with whatever we have.

go/vt/wrangler/schema.go, line 67 [r1] (raw file):
Previously, michael-berlin (Michael Berlin) wrote…
> Why get the pointer here instead of the instance?

No reason. Fixed.

test/local_example.sh, line 66 [r1] (raw file):
Previously, michael-berlin (Michael Berlin) wrote…
> It's not clear to me which implications a healthcheck us: What's the reason you want to simulate this? Maybe add this to the comment here.

Done.

Comments from Reviewable

Reviewed 13 of 13 files at r3, 7 of 7 files at r4, 15 of 17 files at r5, 10 of 10 files at r6, 1 of 1 files at r7, 6 of 8 files at r8, 2 of 2 files at r9, 1 of 1 files at r10, 3 of 3 files at r11.
Review status: all files reviewed at latest revision, 4 unresolved discussions, some commit checks failed.

go/vt/mysqlctl/query.go, line 158 [r1] (raw file):
Previously, enisoc (Anthony Yeh) wrote…
> No reason that's specific to this invocation. The 10k value is cargo-culted all over the codebase as a value that means "more than zero, but less than infinity". If you want to fix it, we should do that separately and fix all occurrences.

No worries. I already thought this was the case. I'm fine with keeping the tradition :)

go/vt/schemamanager/tablet_executor.go, line 263 [r1] (raw file):
Previously, enisoc (Anthony Yeh) wrote…
> At the time, I checked WaitGroup docs and didn't see any guarantees that it's safe to reuse them. I just checked again and I did find that guarantee in the docs for `Add()`.

FYI: We're also reusing WaitGroups in the resharding code e.g. split_clone.go.

go/vt/tabletserver/schema_info.go, line 245 [r1] (raw file):
Previously, enisoc (Anthony Yeh) wrote…
> I looked at `startRequest` and it seems more complex than what I need here. I believe I've addressed the races by using an "action mutex" concept, similar to tabletmanager.

I discussed with with Sugu on Wednesday and he was fine with using a mutex in all calls as well.

Comments from Reviewable

LGTM


CI: Install make on Ubuntu

Fix CI build failures on Ubuntu 16.04 due to make not being installed.
Fixes #134.
Signed-off-by: James O. D. Hunt<EMAIL_ADDRESS>

Still failing... This is weird, because make is also installed when the VM launches.

lgtm , still failing but good to install it explicitly.

lgtm

@jodh-intel, the static-checks.sh script is being executed before installing make in the setup.sh, that is why it failed again.
I've also fixed the VM cloudinit file, because it was suppose to install make and it was not. Now it installs make correctly.

make: command not found still :cry:

@jodh-intel I see that it failed in another step:
http://jenkins.katacontainers.io/job/kata-containers-osbuilder-ubuntu-16-04-PR/37/consoleFull
Restarting the job.
Anyway, can you move the call of bash "${cidir}/static-checks.sh" after installing make?

Hi @chavafg - branch updated.

\o/ all green


feat: add new sample app Hello World Tab with Backend

Will update readme later, which doesn't block test.


Fix flipped conditional in 5.6.2

Fixes #192.
From the issue:

Describe the Issue
6.5.2 has a flipped conditional, and locks out roughly the complement
of the set it should lock out.
Expected Behavior
System accounts (UID<1000) have shell set to nologin, and have a
locked password in /etc/shadow.
Actual Behavior
All accounts except those (well, not counting an off-by-one bug with
the account 1000) get locked out, but not the onew that are supposed
to be locked out.
Control(s) Affected
6.5.2
Additional Notes
As noted in the CIS documentation, rhel8cis_int_gid should be parsed
out of /etc/login.defs, not hardcoded.
The CIS docs suggest we should be comparing the item.uid of the
user, not item.gid.
Since I'm not aware of the full rationale behind those two points,
I've excluded those fixes from the PR.

Signed-off-by: Chandler Swift<EMAIL_ADDRESS>Overall Review of Changes:
A general description of the changes made that are being requested for merge
Issue Fixes:
Please list (using linking) any open issues this PR addresses
Enhancements:
Please list any enhancements/features that are not open issue tickets
How has this been tested?:
Please give an overview of how these changes were tested. If they were not please use N/A

hi @ChandlerSwift
Excellent catch on this issue, thank you for raising these.
As you rightly pointed out it would be better to capture the UID from logins.def and maybe this is a good time to add the extra feature?
Maybe something similar to work we've carried out for the STIG? (below for the UID values in prelim task)?
That way it could be more specific rather than hardcoded values?

name: "PRELIM | Gather interactive user ID min"
block:
- name: "PRELIM | Gather interactive user ID min"
shell: grep ^UID_MIN /etc/login.defs | awk '{print $2}'
changed_when: false
failed_when: false
register: rhel8cis_min_uid
- name: "PRELIM | Gather interactive user ID max"
  shell: grep ^UID_MAX /etc/login.defs | awk '{print $2}'
  changed_when: false
  failed_when: false
  register: rhel8cis_max_uid

- name: "PRELIM | Setting the fact"
  set_fact:
      rhel8uid_interactive_uid_start: "{{ rhel8cis_min_uid.stdout | string }}"
      rhel8uid_interactive_uid_stop: "{{ rhel8cis_max_uid.stdout | string }}"

Hi! Today we also stumbled upon the issue. If this PR could be merged a second Improvement PR could be opened with the suggestion by @uk-bolly because as described in the issue "blindly" hardening a system results i it being almost unusable

Hi
@ChandlerSwift
@makefu
Thank you for chasing this through, I have merged this PR to devel, will aim to follow up with changing the GID to UID, hopefully over the next couple of days.
Thanks uk-bolly


Store initializer is gone from ember-data

The "store" initializer is gone, there is now only "ember-data":
https://github.com/emberjs/data/commit/fff110bc0c5ae17e815e8aad46e5c850e7ea5884#diff-f260869162b3be4d4d886975e77be4a6R14

 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.You have signed the CLA already but the status is still pending? Let us recheck it.


Search by Enter click

The user should also be given the opportunity to search a specific entry of the leaderboard table after clicking enter for increased comfort.

Can you elaborate a little bit? There is no need to press enter because it searches as you type. Do you mean it should select the text in the textbox so you can just type another username without needing to delete the old name?

Yes but with pagenation and not all reults loaded there is the need for a seperate server request

Current leaderboard searches as you type


Added uors_app_folder to C_includes. Changed uros_app_folder to wildc…

I changed the Makefile in the Olimex extension to include the UROS_APP_FOLDER in C_INCLUDES, asweel as changing it to a wildcard in C_SOURCES to add all .c files.
This way, I'm able to structure my applications a better in different files.
So far I have not run into any problems.
regards

LGTM, STMCubeMX project rebuild does not interfere with these changes


Please add all S4 items

Thanks!

For example:
https://tbc.wowhead.com/item=35179/guardians-silk-cuffs
https://tbc.wowhead.com/item=35164/guardians-silk-belt
https://tbc.wowhead.com/item=35149/guardians-silk-footguards
https://tbc.wowhead.com/item=35008/brutal-gladiators-endgame
https://tbc.wowhead.com/item=35107/brutal-gladiators-touch-of-defeat
https://tbc.wowhead.com/item=35102/brutal-gladiators-spellblade


Fails on booleans, and possibly more.

You have a check for numbers but nothing else, using a simple true or false breaks the module.

Seems like example above solved the problem. Closing.


feature enable s3 file writer with multi part uploading concurrently

Proposed changes
Issue Number: close #xxx
Formerly S3FileWriter has to write each buffer with 5MB or more then upload one part, after all these works are done it could then process the incoming data, it's blocking and inefficient. This pr brings one bufferpool where the data could write into memory buffer immediately if has free buffer and then it would be uploaded into the S3.
This pr doesn't provide the ability to elegantly support cases where there is no free buffer, i'll leave it as one future work.
Problem summary
Describe your changes.
Checklist(Required)

[ ] Does it affect the original behavior
[ ] Has unit tests been added
[ ] Has document been added or modified
[ ] Does it need to update dependencies
[ ] Is this PR support rollback (If NO, please explain WHY)

Further comments
If this is a relatively large or complex change, kick off the discussion at<EMAIL_ADDRESS>by explaining why you chose the solution you did and what alternatives you considered, etc...

run buildall

run buildall

TeamCity pipeline, clickbench performance test result:
the sum of best hot time: 33.42 seconds
stream load tsv:          443 seconds loaded<PHONE_NUMBER>9 Bytes, about 161 MB/s
stream load json:         25 seconds loaded<PHONE_NUMBER> Bytes, about 89 MB/s
stream load orc:          73 seconds loaded<PHONE_NUMBER> Bytes, about 14 MB/s
stream load parquet:          30 seconds loaded 861443392 Bytes, about 27 MB/s
https://doris-community-test-1308700295.cos.ap-hongkong.myqcloud.com/tmp/20230404063535_clickbench_pr_124493.html

run buildall

run buildall

run buildall

run buildall

run buildall

run buildall


Set up CI for this template

CI should

run the local version of the template (not 100% sure how to do this with npm init and local packages)
verify that it builds afterwards (npm run build)

am I missing anything else it should do?

For reference, here is the (very simple) create-wasm-app CI config: https://github.com/rustwasm/create-wasm-app/blob/master/.travis.yml

waiting for wasm-pack build command


Upgrade DeprecationWarnings to UserWarnings

DeprecationWarning is hidden by default. This will mean using deprecated args will start making more noise. Only to be merged when making the v1.0 release.

Well... They are deprecation warnings...


ReferenceError: Worker is not defined

System: Macbook, Apple M2 Pro, MacOS Ventura
Issue: When creating a new Application class, I get the following error:
ReferenceError: Worker is not defined
/node_modules/@pixi/assets/lib/_virtual/checkImageBitmap.worker.js:22

"@pixi/node": "^7.3.0",

I'm also having this issue.

I am seeing this too
import { Application, Graphics } from "@pixi/node"
import { writeFileSync } from "fs"

const app = new Application()

const square = new Graphics(0, 0, 100, 100)
square.fill = "blue"
app.stage.addChild(square)

app.renderer.render(app.stage)
const base64Image = app.renderer.extract
  .canvas(app.stage)
  .toDataURL("image/png")

const base64Data = base64Image.replace(/^data:image\/png;base64,/, "")
const output = `./test.png`

writeFileSync(output, base64Data, "base64")

Yeah, I'm trying to get 7.4.1 out this week. Hang tight should be resolved soon.

@bigtimebuddy Ah, you're awesome - thank you again!

@bigtimebuddy Wanted to check in on the status, I saw https://github.com/pixijs/pixijs/pull/10254 is awaiting a review. Are we still waiting on a PIXI release?

@notchris bump 👍

@shanealsingh TY for the bump, I think this got resolved in the newest release, right @bigtimebuddy ?

@notchris Did you try? Just tried it out n got:
class WorkerInstance extends Worker {
                             ^
ReferenceError: Worker is not defined

:(

I just published<EMAIL_ADDRESS>Can you try that version which has the fix for this Worker issue

@bigtimebuddy I wonder if i'm doing something wrong.
yarn add @pixi/node

I have a simple test file:
import { Application } from '@pixi/node';

import express from 'express';

const app = express();
const port = 3000;

app.get('/', async (req, res) => {
    // Create a new application
   const app = new Application();

    res.send('Hello World!');
});

app.listen(port, () => {
  console.log(`Example app listening on port ${port}`);
});

Still seeing the same issue :(

Yeah, this is a publishing problem with dist-tags. Working on fixing now.

I verified that this is fixed. Here's the hello-world setup:
{
  "name": "pixi-node-test",
  "version": "1.0.0",
  "description": "",
  "type": "module",
  "main": "index.js",
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1"
  },
  "keywords": [],
  "author": "",
  "license": "ISC",
  "dependencies": {
    "@pixi/node": "^7.3.0"
  }
}

import { Application, Assets, Sprite } from '@pixi/node';
import path from 'path';
import { writeFileSync } from 'fs';

// This package requires the new asset loader to be used.
// Initialize the new assets loader
await Assets.init();

// The application will create a renderer using WebGL. It will also setup the ticker
// and the root stage Container.
const app = new Application();

// load a sprite
const bunnyTexture = await Assets.load(path.join(process.cwd(), 'bunny.png'));
// create sprite from texture
const bunny = Sprite.from(bunnyTexture);

// Setup the position of the bunny
bunny.x = app.renderer.width / 2;
bunny.y = app.renderer.height / 2;

// Rotate around the center
bunny.anchor.x = 0.5;
bunny.anchor.y = 0.5;

// Add the bunny to the scene we are building.
app.stage.addChild(bunny);

// Listen for frame updates
app.ticker.add(() => {
    // each frame we spin the bunny around a bit
    bunny.rotation += 0.01;
});

// extract and save the stage
app.renderer.render(app.stage);

const base64Image = app.renderer.view.toDataURL('image/png');
const base64Data = base64Image.replace(/^data:image\/png;base64,/, '');
const output = `./test.png`;

writeFileSync(output, base64Data, 'base64');

process.exit(0);

@bigtimebuddy I did a quick test in my repo. Looks good. I don't see the Worker error


Feat:

Describe the feature
The fields in the flipkart profile page are so near to each other that's it almost merging
Describe the solution you'd like
I would like to make changes for it look visually appealing
Describe alternatives you've considered
.
Add ScreenShots

Record

[X] I agree to follow this project's Code of Conduct
[X] I'm a GSSOC'24 contributor
[X] I want to work on this issue

@arghadipmanna101 please assign me this issue


Is hbt.elapse(100_000_000) used in live trading?

hi, hbt.elapse(100_000_000) is used in both backtesting and live trading code samples. My understanding of hbt.elapse() is to accumulate events happening during that time window(100ms in above case), then make trade decision based on the latest time window's data.
My original hunch is that it's fine for backtesting. However, I guess we should not use it in live trading code since many things happening during that time window. Maybe a more practical way is to actively react to each event received through TCP connection?
Moreover, do you have a discord channel?

If you want to react more frequently, you can decrease the elapsed interval or use the wait_next_feed method. In any case, I believe a strategy should be validated through backtesting first. The strategy should exhibit the same behavior as it did during backtesting and vice-versa.
https://discord.gg/K9pDsWrPEe


Text cursor on dropdown input on mobile

Hello,
I've found this issue about dropdownjs. When on desktop it works fine but on mobile browser (actually I'm testing it on iOS 9 and safari) when I tap on the input to expand the list, the cursor gets the focus of the input and start blinking in text mode also when I scroll the list. The input is actually set in readonly mode but I couldn't find any way to work it out properly. Then, I saw that the same issue occurs also in the official demo of this materia stylel bundle.
Thank for this resource, anyways!
-Tania

Can we verify this?

Sure! http://www.fantagazzetta.com/squadre/bologna
From ios9 and safari, Scroll the page and stop when you find a box with colored progress bars (the title of the box is "Probabili formazioni"). in this box there a drop down with the name of the football teams.
There you can see the cursor always blinking as I explained in my previous post.
Thanks,
-Tania


[release] split git commands in sh steps with some labels

What does this PR do?
Add the label to help with the UI visualisation and the semantic
Add --force in case the branch already exists when running the checkout
       -f, --force
           When switching branches, proceed even if the index or the working tree differs from HEAD. This is used to throw away local changes.

           When checking out paths from the index, do not fail upon unmerged entries; instead, unmerged entries are ignored.

:green_heart: Build Succeeded

the below badges are clickable and redirect to their specific view in the CI or DOCS

Expand to view the summary

Build stats

Start Time: 2021-11-16T09:42:41.356+0000

Duration: 69 min 37 sec

Commit: 19c7fa9a272dfb0236c82f573fd3a1180541f8c4

Test stats :test_tube:

Test
Results

Failed
0

Passed
2544

Skipped
21

Total
2565

:green_heart: Flaky test report
Tests succeeded.
:robot: GitHub comments
To re-run your PR in the CI, just comment with:

/test : Re-trigger the build.

run benchmark tests : Run the benchmark test.

run compatibility tests : Run the JDK Compatibility test.

run integration tests : Run the APM-ITs.

run elasticsearch-ci/docs : Re-trigger the docs validation. (use unformatted text in the comment!)


200 navigation button

closes #200

A bug you need to take a look at: After starting the Navigation using the Navigate button, I can still drag-and-drop the B-Marker to change the destination, but when clicking on the map to change my destination, it takes (Windows 10, Edge) about 10 seconds until the waypoint changes, so this definitely needs to be looked at. This is very likely linked to your changes, since when I click the map without having prior used the Navigate button, the changes are instant. The same bugged behaviour continues if I first click the Stop navigation button and then try to click on the map.

On macOS Firefox: can't reproduce
on macOS Edge: Can reproduce, time is random between 1-10s for me, but feels overall very strange and erratic

I did another test on Chrome, where it also took ~ 10 seconds whenever I changed the target

A bug you need to take a look at: After starting the Navigation using the Navigate button, I can still drag-and-drop the B-Marker to change the destination, but when clicking on the map to change my destination, it takes (Windows 10, Edge) about 10 seconds until the waypoint changes, so this definitely needs to be looked at. This is very likely linked to your changes, since when I click the map without having prior used the Navigate button, the changes are instant. The same bugged behaviour continues if I first click the Stop navigation button and then try to click on the map.

I think this Issue is not related to our Code. If I checkout the dev branch I have the same issues. I found out where the error occurs. It comes from this function
export function showMarker(position) {   // .locate() function returns map, so chaining works   mymap     .locate()     .off("locationfound")     .on("locationfound", function (e) {       routingControl.setWaypoints([e.latlng, position]);     })     .off("locationerror")     .on("locationerror", function (e) {       console.log(e)       console.log("location error. Use previous start point for navigation");       const previousStart = routingControl.getWaypoints()[0];       routingControl.setWaypoints([previousStart, position]);     }); }
And I get the following error:
{code: 3, message: 'Geolocation error: Timeout expired.', type: 'locationerror', target: NewClass, sourceTarget: NewClass}
The position has the right values, so I am not sure why this happens. Maybe you have an idea from where it comes.


Allow multiple Sitemap configs in robots.txt

See details in this issue: https://github.com/jbaubree/vite-plugin-sitemap/issues/59
Can we get an option to add additional sitemap endpoints that may be generated by other means?
Example:
{
  additionalSitemaps: [
    'https://example.com/sitemap2.xml',
    'https://example.com/sitemap3.xml',
  ]
}

https://github.com/jbaubree/vite-plugin-sitemap/issues/59#issuecomment-1815810509


build: Add -Werror -Wall to default compiler flags.

I found that we were using CPPFLAGS where we should have been using
CXXFLAGS in the process of working this out. This has been fixed here as
part of pulling in these new compiler flags.
Signed-off-by: Philip Tricca<EMAIL_ADDRESS>

this doesn't work the way I thought it did :(


ABCD notebook

This PR brings new hists to the config and a new starter nb to investigate samples and make simple isolation and ABCD plots.
NOTE Dask was not successfully run here. The ABCD nb works w/o Dask, but with Dask the set of hists in the output is reduced. Perhaps a different version of the configs etc are used when running w. Dask.

I just realized that there is a link to https://github.com/btcardwell/SIDM, so the Dask issue might be resolved when the merge is done and it's able to fetch the latest hist definitions from the remote

Hey @btcardwell, hists.py should better adhere to the max line length standards now. I will also adopt the workflow as you describe for future development.

Hey @murtaza-safdari, looks great, thank you! I'll merge now.


Column Component - items not working in mysql

Introduction
When attempting to use the new columns component, using Mysql database, the item are not being displayed.
Using the same example from documentation, only change is to use the JSON_OBJECT to generate json for item.
select
    'columns' as component;

select
    'Standard Plan' as title,
    '$49'           as value,
    'star'          as icon,
    'A standard plan for small teams.' as description,
	JSON_OBJECT("icon", "check", "color", "green", "description", "Collaboration Tools") as item,
	JSON_OBJECT("icon", "check", "color", "green", "description", "Custom data sources") as item,
	JSON_OBJECT("icon", "check", "color", "green", "description", "Priority support") as item,
    '#'             as link,
    'Select'        as button_text,
    'success'       as button_color,
    'green'         as value_color,
    '/month'        as small_text;

Actual behavior

Expected behavior

Hello !
I'm sorry but I cannot reproduce your issue:

Could you give more information about how to reproduce the problem ?
Maybe replace 'columns' as component with 'debug' as component to be sure what your database returns.

Thanks for you reply @lovasoa !
I still see the issue in both firefox and chrome, using sqlpage v0.29.0.
Below is the debug output.
{"component":"debug"}
{"size":2,"title":"Standard Plan","value":"$49","icon":"star","description":"A standard plan for small teams.","item":["{\"icon\": \"check\", \"color\": \"green\", \"description\": \"Collaboration Tools\"}","{\"icon\": \"check\", \"color\": \"green\", \"description\": \"Custom data sources\"}","{\"icon\": \"check\", \"color\": \"green\", \"description\": \"Priority support\"}"],"link":"#","button_text":"Select","button_color":"success","value_color":"green","small_text":"/month"}

Is the item expected to be an array as seen above in debug ? Not sure where the array is coming from though, since the sql above only creates a json object.

Looks like you are using SQLite and not mysql. Look at the item elements: it's strings instead of objects.
You can use the dynamic component to generate json objects in SQLite.

Thanks for the reply @lovasoa , I am using MariaDB, not mysql as I have mistakenly mentioned above, and its definitely not sqlite.
From the Database container logs -
Starting MariaDB 11.3.2-MariaDB-1:11.3.2+maria~ubu2204

From SQLPage logs -
[2024-10-05T10:58:45.487Z INFO sqlpage::webserver::database::connect] Connecting to database: mysql://<user>:<pwd>@mariadb:3306/testdb

Contrarily to mysql, mariadb does not have a native json data type, and json functions in mariadb just return strings: https://mariadb.com/kb/en/json-data-type/
What you can do to make sqlpage parse these strings as json is use the dynamic component:
select
    'columns' as component;
SELECT 'dynamic' as component,
  JSON_OBJECT(
    'title', 'Standard Plan',
    'value', '$49',
    'icon', 'star',
    'description', 'A standard plan for small teams.',
    'item', JSON_ARRAY(
        JSON_OBJECT('icon', 'check', 'color', 'green', 'description', 'Collaboration Tools'),
        JSON_OBJECT('icon', 'check', 'color', 'green', 'description', 'Custom data sources'),
        JSON_OBJECT('icon', 'check', 'color', 'green', 'description', 'Priority support')
    ),
    'link', '#',
    'button_text', 'Select',
    'button_color', 'success',
    'value_color', 'green',
    'small_text', '/month'
) AS properties;

I added a ne feature in the upcoming release to automatically detect json functions in sql queries, and parse the results as json even when the database returns it as text.

Thank you @lovasoa for the mariadb specific solution, and the new feature for json sounds great, look forward to the next release !


Should ParseBytes use stringBytes() ?

ParseBytes is documented as being preferred over Parse(string(json)) but all it does is call Parse(string(json)).
Perhaps you meant to call Parse(stringBytes(json)). This would mean not copying the byte array so it would be quicker, especially for large JSON inputs.

I think that Parse(string(json)) is the correct way to go because the Parse operation pretty much does two things: left-trims off the space of the json, and then determines its type. The result json, which is exactly the same as the original input (minus some leading whitespace), is then assigned to the Raw string member of the Result type. So one way or another the input []byte must be copied to the Result.Raw string. Since both will be nearly identical, using the Go's builtin []byte to string casting is optimal.
This makes ParseBytes(data) a mere convenience method over Parse(string(data)). Thus, I should probably remove the comment:
// If working with bytes, this method preferred over Parse(string(data))

Yes you're right.
Your stringBytes function 'cheats' by using the unsafe package; I've seen this done elsewhere and it's a reasonable thing to do provided you API doesn't leak this to its callers.
But if part of the input string is assigned to Raw without there having been a copy, then the original []byte could be changed and affect the Rawvalues by side-effect. Not good. It needs to copy the data because otherwise the immutable semantics ofstring` could be subverted.
So what you've got is safe because it involves a copy.
(btw Go doesn't have casting)


TensorFlow graph model for selfie segmentation

System information (Please provide as much relevant information as possible)

MediaPipe Solution (you are using): Selfie segmentation
Programming language: JS/TS
Are you willing to contribute it (Yes/No): No (unable to)

Describe the feature and the current behavior/state:
Only TFLite models are currently publicly released. Are there plans to make the uncompressed (non-TFLite) graph models available?
Please specify the use cases for this feature:
Some platforms are unable to run TFLite, notably WebGL. However, the TF.js WebGL backend is able to run uncompressed JSON graph models.
TFLite is available in the browser, but only through WASM, which may not be compatible with all use cases.

The solution does not willingly expose TFlite models, and does not currently run under WebGL.  A WebGL inference engine may be in the works, but I have no timeline for this feature.


Decrease the repeated consumption probability of expired message

RocketMQ client will send back the expired message in push consumer, which should not be put into message listener anymore.
Before message is consumed,  we should ignore the message which is removed from process queue.

link to #5480


go.mod: github.com/cpuguy83/go-md2man v2.0.5

related PR in cobra (but not sure when they do a new release);

https://github.com/spf13/cobra/pull/2201

full diff: https://github.com/cpuguy83/go-md2man/compare/v2.0.4...v2.0.5

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

Project coverage is 67.73%. Comparing base (a33364e) to head (852266b).

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #59   +/-   ##
=======================================
  Coverage   67.73%   67.73%
=======================================
  Files           5        5
  Lines         623      623
=======================================
  Hits          422      422
  Misses        139      139
  Partials       62       62

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


[BUG] An exception occurred while running bloxstrap

Acknowledgement of preliminary instructions

[X] I have read the preliminary instructions, and I am certain that my problem has not already been addressed.

What problem did you encounter?

Issue has been awaiting clarification for over a month, closing as stale. If you have anything further to add, just respond and I'll reopen.


Aero shading border

https://github.com/dg9ngf/MultiSelectTreeView/blob/master/MultiSelectTreeView/Themes/MultiSelectTreeViewItem.Aero.xaml#L224
I was wondering what controls this border's appearance. Currently, in the demo project, it appears to only affect the last selected treeview item (which is no longer selected). In our project, that border is always on and we can't style it away, so we're wondering if there's a property or something that's toggling it.
We've also noticed that it was removed for the Aero2 (Windows 8) theme. Is there a way to just force that theme to be loaded instead?

This border is part of the Aero (as in Vista/Win7) design. It's there intentionally and cannot be styled away other than replacing the entire style. That's how XAML works. XAML will also select the appropriate theme based on the current system theme. I don't know whether this can be force-changed. Please look elsewhere for that information.

Yes, we ended up just replacing the whole style. Thanks anyway though!


Can't pip install google-cloud ?

(from a customer)
Hi-
I tried installing the newly renamed google-cloud libraries via pip but it doens't look like the python repo got updated.
What this basically means you'd have to use the older gcloud-python version...which is fine but anyone going through our install instructions is in for a surprise (and a pretty miserable experience)
https://github.com/GoogleCloudPlatform/google-cloud-python#quick-start
https://googlecloudplatform.github.io/google-cloud-python/
(env)srashid@srashid-glaptop2:~/Desktop/emulators/pyapp$ pip install google-cloud
Downloading/unpacking google-cloud
Could not find any downloads that satisfy the requirement google-cloud
Cleaning up...
No distributions at all found for google-cloud
Storing debug log for failure in /home/srashid/.pip/pip.log
in pip.log
Downloading/unpacking google-cloud
Getting page https://pypi.python.org/simple/google-cloud/
URLs to search for versions for google-cloud:

https://pypi.python.org/simple/google-cloud/
Analyzing links from page https://pypi.python.org/simple/google-cloud/
Could not find any downloads that satisfy the requirement google-cloud
Cleaning up...
Removing temporary dir /home/srashid/Desktop/emulators/pyapp/env/build...
No distributions at all found for google-cloud
Exception information:
Traceback (most recent call last):
File "/home/srashid/Desktop/emulators/pyapp/env/local/lib/python2.7/site-packages/pip/basecommand.py", line 122, in main
status = self.run(options, args)
File "/home/srashid/Desktop/emulators/pyapp/env/local/lib/python2.7/site-packages/pip/commands/install.py", line 278, in run
requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)
File "/home/srashid/Desktop/emulators/pyapp/env/local/lib/python2.7/site-packages/pip/req.py", line 1177, in prepare_files
url = finder.find_requirement(req_to_install, upgrade=self.upgrade)
File "/home/srashid/Desktop/emulators/pyapp/env/local/lib/python2.7/site-packages/pip/index.py", line 277, in find_requirement
raise DistributionNotFound('No distributions at all found for %s' % req)
DistributionNotFound: No distributions at all found for google-cloud

gcloud's references shows:
https://pypi.python.org/simple/gcloud/
bug google-cloud is empty:
https://pypi.python.org/simple/google-cloud/

I believe once the 0.19.0 release gets cut, that this will be resolved.
See: https://github.com/GoogleCloudPlatform/google-cloud-python/pull/2270.
@dhermes, maybe until that release get's cut we should revert the README?

Indeed. Was planning on getting it in on Thursday but there was some pushback. If we don't have movement on it today we can make those temporary edits.

If so, you can re-open/merge this PR @2264 and revert it when the migration is complete.

Thanks for being alert on this @Ofekmeister

@dhermes I doubt https://github.com/GoogleCloudPlatform/google-cloud-python/issues/2258 will be done today, so it's your choice what release you would like to cut (0.18.2 or 0.19.0) to address this immediate concern, knowing that the namespace breaking change will be available in another couple days.

@bjwatson The "immediate concern" can be addressed by just fixing up some docs / README

Awesome. Thanks @dhermes.

The pressing issue is fixed by #2264 but we still need to cut a final monolithic release and then I'll start work in the release-by-service approach.

The issue of the install command being wrong was fixed but all of the imports in the examples are still wrong which will cause just as much confusion.

This is helpful to see.  Is this why after installing the modules and following the example for Google Storage I get this?
from google.cloud import storage

which returns:
ImportError: cannot import name storage

For those of us just finding this, can someone point out the proper place for an example of accessing Google Storage until the fix is done?  I just installed from the GitHub trunk and the problem persists.

@jorvis Check out http://google-cloud-python.readthedocs.io/en/stable/ and/or https://googlecloudplatform.github.io/google-cloud-python/stable/
The README on https://pypi.python.org/pypi/gcloud is also correct.

Pre-emptively closing since once the tag builds this will be on PyPI. (The build has been waiting to start for 40+ minutes, so hopefully soon.)


代码生成问题

Describe the need of your request
codegpt代码自动联想的功能，目前是自动触发，可不可以关闭自动触发而使用快捷键触发的方式。
Proposed solution
No response
Additional context
No response

Seems to be a duplicate of #610


Hashed files

Check the MD5 of a file against the previous version before writing it in order to reduce the number of updated files to be synced offsite.

The problem with the files being re-uploaded might have to do with our sync script:
https://github.com/alphagov/govuk-puppet/pull/5612
If that works, we don't need this change

I'll close thise until we've checked the results of that change


field exclude fix

field exclude flag works only for serialization.

Codecov Report

Merging #103 (f784346) into dev (aa36764) will decrease coverage by 0.18%.
Report is 5 commits behind head on dev.
The diff coverage is 88.88%.

:exclamation: Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.
@@            Coverage Diff             @@
##              dev     #103      +/-   ##
==========================================
- Coverage   92.09%   91.92%   -0.18%
==========================================
  Files          23       23
  Lines        1240     1250      +10
==========================================
+ Hits         1142     1149       +7
- Misses         98      101       +3

Flag
Coverage Δ

unittests
91.92% <88.88%> (-0.18%)
:arrow_down:

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

Files Changed
Coverage Δ

pydantic_xml/serializers/factories/union.py
85.39% <50.00%> (-2.56%)
:arrow_down:

pydantic_xml/element/element.py
99.42% <100.00%> (ø)

pydantic_xml/serializers/factories/model.py
95.72% <100.00%> (+0.09%)
:arrow_up:


[C++] Skyhook still uses deprecated BufferReader(const uint8_t*, int64_t) API

Describe the bug, including details regarding any error messages, version, and platform.
FAILED: src/skyhook/CMakeFiles/arrow_skyhook_objlib.dir/protocol/skyhook_protocol.cc.o
/bin/ccache /bin/c++ -DARROW_EXTRA_ERROR_CONTEXT -DARROW_HAVE_RUNTIME_AVX2 -DARROW_HAVE_RUNTIME_AVX512 -DARROW_HAVE_RUNTIME_BMI2 -DARROW_HAVE_RUNTIME_SSE4_2 -DARROW_HAVE_SSE4_2 -DARROW_MIMALLOC -DARROW_WITH_RE2 -DARROW_WITH_TIMING_TESTS -DARROW_WITH_UTF8PROC -DBOOST_ALL_NO_LIB -I/home/kou/work/cpp/arrow.kou/cpp.build/src -I/home/kou/work/cpp/arrow.kou/cpp/src -I/home/kou/work/cpp/arrow.kou/cpp/src/generated -isystem /home/kou/work/cpp/arrow.kou/cpp/thirdparty/flatbuffers/include -isystem /home/kou/work/cpp/arrow.kou/cpp/thirdparty/hadoop/include -isystem /home/kou/work/cpp/arrow.kou/cpp.build/google_cloud_cpp_ep-install/include -isystem /home/kou/work/cpp/arrow.kou/cpp.build/crc32c_ep-install/include -isystem /home/kou/work/cpp/arrow.kou/cpp.build/orc_ep-install/include -isystem /home/kou/work/cpp/arrow.kou/cpp.build/awssdk_ep-install/include -isystem /home/kou/work/cpp/arrow.kou/cpp.build/xsimd_ep/src/xsimd_ep-install/include -isystem /home/kou/work/cpp/arrow.kou/cpp.build/jemalloc_ep-prefix/src -isystem /home/kou/work/cpp/arrow.kou/cpp.build/mimalloc_ep/src/mimalloc_ep/include/mimalloc-2.0 -Wno-noexcept-type -Wno-self-move  -fdiagnostics-color=always  -Wall -Wno-conversion -Wno-sign-conversion -Wunused-result -Wdate-time -fno-semantic-interposition -msse4.2  -g -Werror -O0 -ggdb -g3 -std=c++17 -fPIC -MD -MT src/skyhook/CMakeFiles/arrow_skyhook_objlib.dir/protocol/skyhook_protocol.cc.o -MF src/skyhook/CMakeFiles/arrow_skyhook_objlib.dir/protocol/skyhook_protocol.cc.o.d -o src/skyhook/CMakeFiles/arrow_skyhook_objlib.dir/protocol/skyhook_protocol.cc.o -c /home/kou/work/cpp/arrow.kou/cpp/src/skyhook/protocol/skyhook_protocol.cc
/home/kou/work/cpp/arrow.kou/cpp/src/skyhook/protocol/skyhook_protocol.cc: In function ‘arrow::Status skyhook::DeserializeScanRequest(ceph::bufferlist&, ScanRequest*)’:
/home/kou/work/cpp/arrow.kou/cpp/src/skyhook/protocol/skyhook_protocol.cc:77:88: error: ‘arrow::io::BufferReader::BufferReader(const uint8_t*, int64_t)’ is deprecated: Deprecated in 14.0.0. Use FromString or BufferReader(std::shared_ptr<Buffer> buffer) instead. [-Werror=deprecated-declarations]
   77 |                                                    request->projection_schema()->size());
      |                                                                                ^
In file included from /home/kou/work/cpp/arrow.kou/cpp/src/arrow/io/api.h:25,
                 from /home/kou/work/cpp/arrow.kou/cpp/src/skyhook/protocol/skyhook_protocol.cc:22:
/home/kou/work/cpp/arrow.kou/cpp/src/arrow/io/memory.h:159:3: note: declared here
  159 |   BufferReader(const uint8_t* data, int64_t size);
      |   ^~~~~~~~~~~~
/home/kou/work/cpp/arrow.kou/cpp/src/skyhook/protocol/skyhook_protocol.cc:79:82: error: ‘arrow::io::BufferReader::BufferReader(const uint8_t*, int64_t)’ is deprecated: Deprecated in 14.0.0. Use FromString or BufferReader(std::shared_ptr<Buffer> buffer) instead. [-Werror=deprecated-declarations]
   79 |                                                 request->dataset_schema()->size());
      |                                                                                ^
/home/kou/work/cpp/arrow.kou/cpp/src/arrow/io/memory.h:159:3: note: declared here
  159 |   BufferReader(const uint8_t* data, int64_t size);
      |   ^~~~~~~~~~~~
cc1plus: all warnings being treated as errors

Related change: GH-37360
Component(s)
C++

Do we have CI for skyhook? How can I avoid that I change a IO module and found the skyhook user have used the deprecated function?

We have the "test-skyhook-integration" nightly job for it.

Oh-ok, maybe we should trigger this CI if something was mark deprecated?
So sorry for not catching that

No problem. :-)


Document cleanup steps for Submariner

This is to document cleanup steps for Submariner:
Originally posted by @Tarjei400 in https://github.com/submariner-io/submariner-operator/issues/88#issuecomment-647333866
A real example from our OSP-AWS env:
https://qe-jenkins-csb-skynet.cloud.paas.psi.redhat.com/job/Submariner-OSP-AWS/810/Test-Report/
Cleanup steps:
On all the data/member clusters
1 # Delete Submariner namespace:
  $ oc delete namespace submariner-operator
2 # Deleting submariner CRDs in the cluster
  customresourcedefinition.apiextensions.k8s.io "clusters.submariner.io" deleted
  customresourcedefinition.apiextensions.k8s.io "endpoints.submariner.io" deleted
  customresourcedefinition.apiextensions.k8s.io "gateways.submariner.io" deleted
  customresourcedefinition.apiextensions.k8s.io "multiclusterservices.lighthouse.submariner.io" deleted
  customresourcedefinition.apiextensions.k8s.io "servicediscoveries.submariner.io" deleted
  customresourcedefinition.apiextensions.k8s.io "serviceexports.lighthouse.submariner.io" deleted
  customresourcedefinition.apiextensions.k8s.io "serviceimports.lighthouse.submariner.io" deleted
  customresourcedefinition.apiextensions.k8s.io "submariners.submariner.io" deleted

3 # If you are using vanilla Submariner, please delete the following iptable chains from the nat/filter table of worker nodes
  SUBMARINER-INPUT
  SUBMARINER-POSTROUTING

4 # The following chains will have to be deleted if you are using Globalnet:
  SUBMARINER-GN-INGRESS
  SUBMARINER-GN-EGRESS
  SUBMARINER-GN-MARK

5 # its recommended that you delete the vx-submariner interface from all the nodes.
6 # Clean Lighthouse ServiceExport DNS list:
$ oc apply -f -  <<EOF
  apiVersion: operator.openshift.io/v1
  kind: DNS
  metadata:
    finalizers:
    - dns.operator.openshift.io/dns-controller
    name: default
  spec:
    servers: []
EOF

7 # Remove submariner gateway labels
$ oc label --all node submariner.io/gateway-
On the Broker cluster
8 # Delete the Broker namespace
$ oc delete namespace submariner-k8s-broker

@vthapar , @nyechiel

bump

missing ClusterRoles and ClusterRoleBindings
oc delete clusterrole submariner-operator
oc delete clusterrolebinding submariner-operator
oc delete clusterrole submariner-operator-globalnet
oc delete clusterrolebinding submariner-operator-globalnet


Question: EnsureExactlyOnce

I look at the ExactlyOnceTest.ExactlyOnce_DbInboundLog_DuplicatedMessagesIgnored  and wounder about the KafkaEndpoint configuration:
config.EnableAutoCommit = false;
config.CommitOffsetEach = 1;

When the message Id is stored for each consumed message within the "AddInboundLogDatabaseTable()"  table, why is it needed to disable auto commit and commit each message to Kafka? I would expect that configuration for the StoreOffsets strategy.

Hi @soernt
It's not needed. 😉
That was just something I used to do in the tests to optimize their run time. Since I assert that the committed offset is the one I expect, I would have needed to wait until the auto commit took place (and the default auto commit interval is 5 seconds).
Now, in the latest versions of Silverback, I automatically override that interval to 50 milliseconds (if not otherwise configured) but I didn't clean up all the tests.
You can ignore it.

Thank you very much for the clarification!


Backtracking nKnights problem

Description
nKnights problem in backtracking
Place N-knights on NxN board such that they do not attack each other.

QuickSort added in Searching and Sorting algorithms

@jindal2209 remove other files

Pls review again other files have been removed


Advanced notification customization

[ ] Mute notifications from specific people (maybe)
[ ] Mute notifications from specific threads (maybe)
[ ] Get notifications for specific items from your news feed
[ ] Customize what's displayed in the desktop notification

Think of more stuff to do

Nah for threads, if they don't want notifications they can just press the unwatch thread link at the top of the thread


Migrate to postcss-preset-env (postcss-cssnext deprecated)

WARN deprecated<EMAIL_ADDRESS>'postcss-cssnext' has been deprecated in favor of 'postcss-preset-env'. Read more at https://moox.io/blog/deprecating-cssnext/

Would you like a PR?

This now appears to be causing a warning due to outdated dependencies.
The deprecated postcss-cssnext depends on an outdated version of autoprefixer that depends on older versions of caniuse-lite and 'browserslist`.
This doesn't appear to be breaking anything, but I'm now getting the warning:
Browserslist: caniuse-lite is outdated. Please run next command `yarn upgrade caniuse-lite browserslist`

Everything is locked due to postcss-cssnext, so it looks like this should be updated. @jacobq did you ever get a PR ready?

This is fixed in https://github.com/mansona/ember-cli-notifications/pull/251#issuecomment-552737340 🎉 let me know if you have any questions 👍


Fixed kong.client.get_forwarded_ip() usage

@maxipavlovic Thanks for your submission, but this doc topic is generated directly from the code. Please open a PR against the file in the kong/kong repo to update this content: https://github.com/Kong/kong/blob/master/kong/pdk/client.lua

Sure, thx, https://github.com/Kong/kong/pull/7486


Setting for default timeout

Currently we allow default timeouts on Linux via /etc/resolv.conf. On Windows there's no such thing we support. It would be cool to have a global setting for the timeout I think that can be set on Windows.
Relates to https://github.com/kelunik/acme-client/issues/44.

Related: http://serverfault.com/a/431219/217277

This can now be implemented by passing a custom ConfigLoader in the Amp v2 version.


Remove gulpfile and fix linting

An alternative to #41, removing the gulpfile completely
Closes #41

Took me an hour to push, Github is under a DDoS attack. Same reason Travis failed


Convert config files to yaml and force yaml formal for config files

Signed-off-by: Ian Costanzo<EMAIL_ADDRESS>Convert config files to yaml format and force yaml format

Note: works with the released version of ConfigArgParse and yaml format


Fails to install when deploying with ArgoCD

Due to the way that ArgoCD converts the Helm hooks this chart fails to deploy in ArgoCD. In the chart on this page one can see the helm.sh/hook: pre-upgrade get converted to a argocd.argoproj.io/hook: PreSync which gets executed on every sync. ArgoCD under the hood does not use helm in the way one would think. It's likely that other GitOps tools will have similar issues. This causes the job pre-upgrade to be executed on first run before the PVC it needs is created. It get's stuck in a progressing state and will not complete unless you selectively sync everything except the two applications.

Hello,
We have checked ArgoCD and saw that its pre-install and pre-upgrade Hooks run at the same time which is not allowed when installing our chart, since the Job that runs during the update needs the application to be already installed and working.
At this point we'd recommend using FluxCD. We have tested this solution and it works with Helm natively, so there is no such issue.
The possible solution to the problem in case with ArgoCD will be adding the possibility to turn on and off pre-install and pre-upgrade Jobs, depending on the scenario.
We have implemented the following changes that are available at this branch. These changes will be added with the next release.
Until then, you can test them using this branch.
Specifically, during the chart first-time installation you will need to set the following parameters
install:
  job:
    enabled: true

upgrade:
  job:
    enabled: false

Then, after the successful deployment of the application, prior to a subsequent synchronization, you will need to change the parameters like this
install:
  job:
    enabled: false

upgrade:
  job:
    enabled: true

and leave them this way.

Thanks! This will work just fine for my use case. I appreciate the prompt reply.


Request to relax test case requirements

This issue has been migrated from :
https://github.com/mike-goodwin/owasp-threat-dragon/issues/68
and was opened by @subashsn :
We've added Gitlab as a provider along with Github for Threat Dragon. Currently it's functional, but the test cases are failing due to ES6 syntax and changes done to accomodate multiple providers; Github and Gitlab. Can we relax this?
If this is okay, I'd be happy to raise a pull request that adds Gitlab integration for Threat Dragon. Thanks

Hello @subashsn
Good to see the gitlab integration at https://github.com/appsecco/owasp-threat-dragon-gitlab
Is it possible to combine this back into this original TD repo?
Thanks, Jon

Closing this as a Won't Do / Duplicate
Gitlab integration is requested in issue #9


Evaluator column loading

Instead of loading the pipeline inputs into memory this PR just wraps the original dataset in a DatasetColumn class. This allows to evaluate on huge datasets (e.g. ImageNet) without OOM errors.
cc @fxmarty

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint.

Great I'll test tomorrow morning!


[BUG] Use Real Name instead of username for Direct Messages in channel list

Your Rocket.Chat.Android app version: 2.0.4 Build #2014

Your Rocket.Chat server version: 63.3

Device model (or emulator) you're running with: Galaxy S6, Android 7.0

Steps to reproduce:

Under 'Administration' > 'Layout' set "Use Real Name" to true
create a Direct Message
in the channel list the Direct Message will use the user's username, not their "Real Name"

Duplicated of #1102


Feature: response.json

Codecov Report

Merging #54 into master will increase coverage by 0.03%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master      #54      +/-   ##
==========================================
+ Coverage   94.38%   94.41%   +0.03%
==========================================
  Files          10       10
  Lines         534      537       +3
==========================================
+ Hits          504      507       +3
  Misses         30       30

Impacted Files
Coverage Δ

ruia/response.py
100% <100%> (ø)
:arrow_up:

Continue to review full report at Codecov.

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


Enable / Disable Notifications per Website

Allow the user to enable or disable notifications (currently Pushbullet-only) per Website and not globally.

Finished in d723a01f98a5e9de44b419b21ffd1145465acb77


capture MSR access (rdmsr/wrmsr)

** Description**
I've set X64MsrExit and WHvRunVpExitReasonX64MsrAccess reason but I can't receive all of type MSR access (only 0x611/0x619/0x639/0x641). Also I tried rdmsr and wrmsr access with my kernel but I can't catch it in WHvRunVpExitReasonX64MsrAccess.
Link to doc:
https://docs.microsoft.com/en-us/virtualization/api/hypervisor-platform/funcs/whvrunvirtualprocessor

We hugely appreciate your contribution, feedback, and support to our technical documentation.
We’ve phased out GitHub Issues on this repository as the feedback mechanism for content and have replaced it with a new feedback system. For more information see, Content User Feedback. As part of this rollout, we are migrating your issue where our team will use your comments to improve the documentation experience. Unfortunately, this does mean you won't be able to access this issue after the migration is complete.
All issues will be migrated by Thursday 29th August 2024.
Once again, thank you for your valuable feedback, we hope you’ll continue to contribute using our new feedback system.


scss file is not compiling to css using Webpack

Hi all,
I am facing an issue with SCSS loader.  I have raised a question in stackoverflow but that solution doesn't work. I have explained my issue clearly in below link, please help me with it.
Stackover flow
In simple words, my issue is, My external file is in LESS(using Semantic UI LESS), for custom styles using SCSS. But if I am using LESS for my project custom css it is working fine, When I am using SCSS it is giving a bunch of different errors! I am expecting help from you. Thanks in advance.

Thank you for creating this issue. However, issues need to follow one of our templates so that we can clearly understand your particular circumstances.
Please help us help you by recreating the issue using one of our templates.
Please wait the asnwer.


cat_fielddata shouldn't be in a json file

cat_fielddata shouldn't be in a json file

Actually, back in the 1.0 version I was emitting it as json.  I think someone asked me to do that, but in any case it didn't get moved over to 2.0.  It should have the txt extension back in the next version.


Adding Android KeywordRecognizer sample.

Purpose

Adding Android KeywordRecognizer sample.

Pull Request Type
What kind of change does this Pull Request introduce?

[ ] Bugfix
[x] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Documentation content changes
[ ] Other... Please describe:

GlobalSection(SolutionConfigurationPlatforms) = preSolution

why UWP things are visible in this PR ?

Refers to: quickstart/csharp/uwp/keyword-recognizer/helloworld.sln:9 in 68b7459. [](commit_id = 68b7459cdfb1c3ce8b61ca17b133a0a892dc8ad5, deletion_comment = False)

GlobalSection(SolutionConfigurationPlatforms) = preSolution

why UWP things are visible in this PR ?
Refers to: quickstart/csharp/uwp/keyword-recognizer/helloworld.sln:9 in 68b7459. [](commit_id = 68b7459, deletion_comment = False)

I removed the BOM to those files (that was breaking the CI process)

Thanks for samples! We shall add these to release note

thank you again.


Empty Variables Now Contain Default Message

Describe the bug
When passing an empty variable to SwiftDialog, it now displays the default text "This contains important message content Please read".
To Reproduce
My script that reproduces this error-
#! /bin/bash
userIDError=""

userid_dialog=$(/usr/local/bin/dialog \
   --title "Asset Check Out $version" \
   --message "$userIDError" \
   --button1text "OK" \
   --json \
   --button2)

Expected behavior
In previous versions of SwiftDialog, an empty variable would simply display no text, as shown below.
Screenshots
swiftDialog version <IP_ADDRESS>34

swiftDialog version <IP_ADDRESS>50

Desktop (please complete the following information):
macOS version - 14.3
swiftDialog version - <IP_ADDRESS>50

cheers. I'll take a look.
in the meantime as long as there's something not null in there it won't default to the boilerplate text, e.g. --message "$userIDError " (added space after the variable)


ODP Enumerate the contents of a shared folder API is not the same like document.

Hi,
I am trying to porting shared folder behaviour and I read document from: https://dev.onedrive.com/misc/working-with-links.htm
API need to indicate drive-id as prefix to retrieve children under other drive.
But when I use the Console(APIGEE) of your own, this will failed

https://api.onedrive.com/v1.0/drive/a174a883faed7af/items/A174A883FAED7AFA!113845/children
HTTP/1.1 400 Bad Request
X-QosStats:
{"ApiId":0,"ResultType":2,"SourcePropertyId":0,"TargetPropertyId":42}
Strict-Transport-Security:
max-age=31536000; includeSubDomains
X-MSNSERVER:
BL3301____PAP031
Date:
Thu, 14 Apr 2016 07:54:32 GMT
X-ThrowSite:
5b44.8246
P3P:
CP="BUS CUR CONo FIN IVDo ONL OUR PHY SAMo TELo"
Content-Length:
71
X-AsmVersion:
UNKNOWN; <IP_ADDRESS>
Connection:
keep-alive
Content-Type:
application/json
Server:
Microsoft-HTTPAPI/2.0

{
  "error":  {
    "code": "invalidRequest",
    "message": "Invalid API or resource"
  }
}

But if i remove the drive-id, it will work fine.
I wonder if this is a bug or document without updated cause this will affect the implementation if the api format could not be sure.
Thanks.

The issue here was the use of drive instead of drives when providing the drive-id value. The URL should have been:

https://api.onedrive.com/v1.0/drives/a174a883faed7af/items/A174A883FAED7AFA!113845/children

Obviously such a comment after such a long time isn't entirely useful so I hope you managed to resolve the issue on your own!


Missing recommended package for Ubuntu install of CS engine

The CS Docker engine Ubuntu docs show:
Install additional virtual drivers not in the base image.
$ sudo apt-get install -y linux-image-extra-virtual

There is a chance they will get devicemapper if the virtual package pulls down a newer version of the kernel that is available.  This puts the users in a non-supported configuration.  It should be:
Install additional virtual drivers not in the base image.
$ sudo apt-get install linux-image-extra-$(uname -r) linux-image-extra-virtual

/ping @mbentley

@mbentley Has there been a pull request with commit fefc408 yet? Looks like you were approaching a fix for this!

@johndmulhausen - https://github.com/docker/docker.github.io/pull/103

#103 is still waiting on tech feedback.


Newer version of arm GCC

We have to stick to v10.2.1 (10-2020-q4) as any newer version causes compilation issues in CODAL:
https://github.com/lancaster-university/microbit-v2-samples/issues/33#issuecomment-951708083

The issue with GCC v10.3 was fixed in:

https://github.com/lancaster-university/codal-core/pull/144

But there is an issue with v11.2, which looks like a compiler bug:

https://github.com/lancaster-university/microbit-v2-samples/issues/47
https://community.arm.com/support-forums/f/compilers-and-libraries-forum/52623/gcc-11-2-arm-none-eabi-internal-compiler-error-illegal-instruction
https://bugs.linaro.org/show_bug.cgi?id=5825

This issue is resolved in v11.3, but that release is much bigger:

https://github.com/carlosperate/docker-microbit-toolchain/issues/4

There are issues building micro:bit V1 repos and DAPLink with gcc 12, so cannot move yet:

https://github.com/bbcmicrobit/micropython/issues/795
https://github.com/lancaster-university/microbit-dal/issues/493
https://github.com/ARMmbed/DAPLink/issues/1040


3.5 with delta - NakedLocalFileSystem$NakedLocalFileStatus cannot be cast to FileStatusWithMetadata

running the ExtensionsDeltaTest with 3.5 snap causes this to be thrown from many of the tests that do not use onlyWithExistingSession / wrapWithExistingSession (i.e. those to run on Databricks / notebooks).
java.lang.ClassCastException: com.globalmentor.apache.hadoop.fs.NakedLocalFileSystem$NakedLocalFileStatus cannot be cast to org.apache.spark.sql.execution.datasources.FileStatusWithMetadata

same delta version on 3.4 per latter #25 builds have no issue.  (some of them also failed with the npe issue 629)

as that's new for 3.5 an expected new delta would be needed

also
 java.lang.NoSuchMethodError: org.apache.spark.sql.types.StructType.toAttributes()Lscala/collection/Seq;


ERROR: Could not find a version that satisfies the requirement torch==1.9.0+cu111

Hi,
I'm trying to install UVR at Rocky Linux 9. However I receive an error during the installation. While torch=1.9.0+cu111 has been installed. Any idea how to solve this?
pip install torch==1.9.0+cu111 torchvision==0.10.0+cu111 torchaudio==0.9.0 -f https://download.pytorch.org/whl/torch_stable.html
bash: The: command not found...
bash: If: command not found...
Looking in links: https://download.pytorch.org/whl/torch_stable.html
Collecting torch==1.9.0+cu111
Downloading https://download.pytorch.org/whl/cu111/torch-1.9.0%2Bcu111-cp39-cp39-linux_x86_64.whl (2041.4 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.0/2.0 GB 6.8 MB/s eta 0:00:00
Collecting torchvision==0.10.0+cu111
Downloading https://download.pytorch.org/whl/cu111/torchvision-0.10.0%2Bcu111-cp39-cp39-linux_x86_64.whl (23.1 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 23.1/23.1 MB 70.1 MB/s eta 0:00:00
Collecting torchaudio==0.9.0
Downloading torchaudio-0.9.0-cp39-cp39-manylinux1_x86_64.whl (1.9 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.9/1.9 MB 13.9 MB/s eta 0:00:00
Requirement already satisfied: typing-extensions in /root/.conda/envs/xxx/lib/python3.9/site-packages (from torch==1.9.0+cu111) (4.9.0)
Requirement already satisfied: numpy in /root/.conda/envs/xxx/lib/python3.9/site-packages (from torchvision==0.10.0+cu111) (1.26.4)
Requirement already satisfied: pillow>=5.3.0 in /root/.conda/envs/xxx/lib/python3.9/site-packages (from torchvision==0.10.0+cu111) (9.3.0)
Installing collected packages: torch, torchvision, torchaudio
Attempting uninstall: torch
Found existing installation: torch 1.9.1+cu111
Uninstalling torch-1.9.1+cu111:
Successfully uninstalled torch-1.9.1+cu111
Attempting uninstall: torchvision
Found existing installation: torchvision 0.10.1+cu111
Uninstalling torchvision-0.10.1+cu111:
Successfully uninstalled torchvision-0.10.1+cu111
Attempting uninstall: torchaudio
Found existing installation: torchaudio 0.9.1
Uninstalling torchaudio-0.9.1:
Successfully uninstalled torchaudio-0.9.1
Successfully installed torch-1.9.0+cu111 torchaudio-0.9.0 torchvision-0.10.0+cu111
Preparing metadata (setup.py) ... done
ERROR: Could not find a version that satisfies the requirement torch==1.9.0+cu111 (from versions: 1.7.1, 1.8.0, 1.8.1, 1.9.0, 1.9.1, 1.10.0, 1.10.1, 1.10.2, 1.11.0, 1.12.0, 1.12.1, 1.13.0, 1.13.1, 2.0.0, 2.0.1, 2.1.0, 2.1.1, 2.1.2, 2.2.0, 2.2.1)
ERROR: No matching distribution found for torch==1.9.0+cu111

This can be closed. It has been solved.

Will UVR's system record the models I download? Please delete the model I downloaded and please reply to me immediately when you see this issue, thanks


Store changed timestamp in Unix ms, not s

I want more accurate timestamps, but I still want them to fit in an integer field.

Figured out the recipe for that here: https://github.com/simonw/sqlite-history/issues/1#issuecomment-1501013498
It's a bit weird!
cast((julianday('now') - 2440587.5) * 86400.0 * 1000 as integer)

Got a TIL out of this: https://til.simonwillison.net/sqlite/unix-timestamp-milliseconds-sqlite


Temporary fix for capabilities with Kernel <4.14

What does this PR do?
A brief description of the change being made with this pull request.
Motivation
What inspired you to submit this pull request?
Additional Notes
Anything else we should know when reviewing?

@vboulineau
Could you cross reference the initial issue in the description of this PR

In fact, it wont't fix the issue as the kernel is check is implement in setxattr() so the setfattr function is also impacted