Stuck trying to boot

I'm on an M1 MacBook and I followed all the instructions in the YouTube video & instructions in this repo. I ran make iso/nixos.iso to build an ISO. Tried with VMWare Fusion downloaded from here and brew install --cask vmware-fusion-tech-preview.
I get to this screen and select the top option

But I get stuck here

Any ideas how to fix this?

Same here

I just noticed this as well. This looks like a kernel issue (as in, broadly related to the kernel, kernel config, etc.).
Booting works with Kernel 5.15.26, but fails for me .31.
I'm unsure what to do so I reported a Fusion TP issue: https://communities.vmware.com/t5/Fusion-for-Apple-Silicon-Tech/Failure-to-boot-Linux-Kernel-5-15-31-works-with-5-15-26/m-p/2901884#M1245

I've been told this might be a kernel bug, and the fix is already in tree but not released.

Waiting for this commit to get released: https://github.com/torvalds/linux/commit/27599aacbaefcbf2af7b06b0029459bbf682000d (we think its that commit)

Unfortunately it is not that commit. I tried the 5.18-rc1 and no luck.

It looks like other hypervisors are having similar issues so it looks like we'll have to wait for VMware to update, is my guess, and stick to older kenels until then. https://gitlab.com/qemu-project/qemu/-/issues/899

I posted a very tricky workaround here
This patchset removes ID_AA64ISAR2_EL1 from 5.17 kernel which prevents the VM to boot. Not a good approach at all, as we are removing a kernel feature to support a broken hypervisor.
I personally use custom built kernel for a long time because VMware related drivers are not enabled by default on Arch Linux ARM's kernel config, so to apply an extra patch-set is not a big deal for me, but this would be a big problem for a lot who relies on prebuilt kernels.

The image built by iso/build.sh still exhibits this issue 🤔 How do we pin the kernel version there?

The image built by iso/build.sh still exhibits this issue 🤔 How do we pin the kernel version there?

I don't know, but this is a good question. I rarely rebootstrap from an ISO so I don't regularly hit this. There should be a way to pin a specific nixpkgs for the ISO build. I'm also looking into the YOLO solution that @gnattu posted, its very easy to apply kernel patches with Nix, but the downside is compiling a kernel is no small task. Early on, I had to compile a patched kernel for M1+Fusion support (like, right when M1 came out) and even on M1 devices it takes like 20 to 30 minutes.

Any update on this ? Anyone able to get an iso with an older kernel version ?

I ended up getting it working with an older kernal, but don't remember the details.

I ended up getting it working with an older kernal, but don't remember the details.

Would love to know how you actually specify kernel when building iso or finding iso with specific kernel ?

I was not able to install 21.05 either on M1 using VMWare Fusion Tech Preview.

Any update on this ? Anyone able to get an iso with an older kernel version ?

@marko911, you can find ISOs here: https://releases.nixos.org/?prefix=nixos/

@dmartzol I was able to install 21.05 but now running the bootstrap script fails with
building the system configuration...
error: attribute 'shellDryRun' missing

       at /nix/store/d5j5vgsfvwkaqmc1qhwaay5mp51yaqkm-source/modules/programs/bash.nix:12:9:

           11|     checkPhase = ''
           12|       ${pkgs.stdenv.shellDryRun} "$target"
             |         ^
           13|     '';

@dmartzol I was able to install 21.05 but now running the bootstrap script fails with
building the system configuration...
error: attribute 'shellDryRun' missing

       at /nix/store/d5j5vgsfvwkaqmc1qhwaay5mp51yaqkm-source/modules/programs/bash.nix:12:9:

           11|     checkPhase = ''
           12|       ${pkgs.stdenv.shellDryRun} "$target"
             |         ^
           13|     '';

Yes, sorry when I said I was not able to install I was referring exactly to this same error

I think the issue is that all the config files are using 22.05 as the version and so the missing attribute error throws because that attribute doesn't exist in the 21.05 version which is using old kernel ? My best guess. I'm new to this ecosystem

For the record, the VMWare issue was fixed in 22H2 (released on July 28th this year), it is compatible with the kernel  v5.18.6  available in NixOS 22.05.
🍾 🥳

@nbareil Yes, I just re-did it and it does work. But I still get the same error as above
<EMAIL_ADDRESS>Password:
building the system configuration...
error: attribute 'shellDryRun' missing

       at /nix/store/d5j5vgsfvwkaqmc1qhwaay5mp51yaqkm-source/modules/programs/bash.nix:12:9:

           11|     checkPhase = ''
           12|       ${pkgs.stdenv.shellDryRun} "$target"
             |         ^
           13|     '';

error: attribute 'shellDryRun' missing

Isn't it https://github.com/nix-community/home-manager/issues/2722 ?

error: attribute 'shellDryRun' missing

Isn't it nix-community/home-manager#2722 ?

No , because the versions for me aren't different. they're both 22.05

For anyone wondering, currently if you pull this repo and use aarch64 with 22.05 nixos , you must change lines 50 and 51 in flake.nix from
inherit overlays home-manager;
nixpkgs = inputs.nixpkgs-old-kernel;

to
inherit overlays nixpkgs home-manager;

Confirmed that master works on a new install/VM. I think this can be closed.

Confirmed that master works on a new install/VM. I think this can be closed.

What exactly did you do? I just this ISO with VMWare Fusion Tech Preview on an M1 and it never gets past this

The original issue is indeed fixed with VMW TP 22H2.

@justinmoon 🤷♂ I'm making my own ISO as the README suggests.


Wrong Body padding

Using the provided .elm, the HTML produced has vertical body overflow (hosted with elm-reactor) as in the image.
It looks as though Elm isn't correctly handling body padding. When the div was given the padding, there was no issue.
import Html exposing (..)
import Html.Attributes exposing (..)

main_theme = style [("background-color", "azure"), ("padding","10px")]

main =
    body [ main_theme] [
     div [] [text ("Interior crocodile alligator")]
    ]

I just removed Html.body because it doesn't make sense to create that in Elm.
When you run in the debugger, you are already in the <body> so the program you wrote is actually creating a second <body> inside that. I do not know what happens when you do that, but I suspect it explains the behavior you were seeing.
Thanks for the report!

Uhhh well alrighty. My two cents is that a body tag is something developers are accustomed to, and prefer to handle themselves. Thanks!


Downloading container bound projects

Hi,
I know about the limitation specified in the documentation regarding container bound "scripts" (not projects) https://developers.google.com/apps-script/import-export, but actually the download of the project files of an cotainer bound project is actually working.
The current implementation fails to fetch the project files of such a project because the getProjectTitle() method from download.js fails to find the flle with the id equal to the project id. But ignoring this error (e.g. considering a static or argument-passed project name) would cause the download of the files to work.
function getProjectTitle(fileId, auth) {
var deferred = Q.defer();
var drive = google.drive({ version: 'v2', auth: auth });
drive.files.get({ fileId: fileId }, function(err, res) {
//if (err) return deferred.reject('Error getting project');
title = null;
if(err) {
title = "project";
} else {
title = res.title;
}
console.log('Cloning into \'' + title + '\'...');
deferred.resolve(title);

});
return deferred.promise;
}
Furthermore I don't think it should impact the upload functionality, which btw I could not get working so far.
Thanks,
Ado

@szaboadorian can you clarify your distinction between "script" and "project" here?
Am I correct in understanding that you'd like the ability to download the Google Apps file that a given script is bound to? (i.e. a Google Sheet that has an Apps Script project bound to it)

To be more explicit:
I have a Google Sheet with a Project holding several .gs scripts for it (Project is only accessible via Tools -> Script Editor within the Sheet - so it is a "Container Bound" project).
In the https://developers.google.com/apps-script/import-export documentation is stated "Note that the file ID of a project is not the same as the project key. The file ID is the alphanumeric string in the project's URL."
So, this kind of project is not visible directly in Drive, and so we can not get its File ID (from the URL, similar to as you describe in the installation and usage guide of the tool). But still we can find the "Project Key", and calling the "https://script.google.com/feeds/download/export?id=" endpoint with it is actually working (even though I can not find any API specification of this endpoint- is it a deprecated one?). The fact that this is working lead me to think that the Google specs are actually limiting the manipulation of only one file from within a project and not manipulating an entire project (but I might be interpreting wrong because at the end the project is also seen as a file from Drive point of view, and the fact that using the project key is working in the export service is just a "hack" :) )
So considering the above, and running the download script with the Project Key and not the File ID, I notice that the getProjectTitle() function is of course failing, as it uses the Drive API which needs the File ID. This is why I was suggesting that with a small adjustment of ignoring the fail of getProjectTitle() for this case (or adding nee arguments like projectkey and projectname), could lead to a working version of downloading a container bound project.
Upload I don't think is possible to get working, as it uses the drive API (not the script.google.com API), which needs the FileID not the project key. I am wondering if there is any import endpoint trough the "script.google.com" API :)
Thanks,
Ado

Thanks for the detailed clarification. I didn't know you could download via Project Key, that's really interesting!
I'm not totally comfortable implementing a potentially deprecated (or even worse, completely unknown) endpoint. Without official support or documentation, this workaround could break at any time. Additionally, I'm not sure how useful it is without the upload side.
Really interesting find though. Feel free to fork/clone/push a copy and make the change to satisfy your needs.


Fix security issues SCL dataservice

As a risk owner
I want to fix the small LFx security scanner issues
So I know that known vulnerabilities are addressed
Background:
The security issues can be found in the LFx security scanner:
https://security.lfx.linuxfoundation.org/#/e8b6fdf9-2686-44c5-bbaa-6965d04ad3e1/issues
Acceptance criteria:
Start with the critical issues
Critical/High/Medium issues to be adressed
Quick fixes can be fixed directly
Major/complex issues require a seperate Github issue

Not relevant for now with the Dockerhub security scanner


Error when running extract-features.py

Hello, i have this error message when running extract-features with your configuration "Selected block normalization method is invalid"
do you know how to fix it ?

@blaisek I believe there is something wrong with _hog.py associated with default package. I replaced it with code I found from Github and it did work


Enhancement: Style tables similarly as codeblocks

You're code block styling is really great, but I wish tables looked as good (without needing custom css or something)

Raw edges on tables:

This is done using any of the available tables documented in https://sublime-and-sphinx-guide.readthedocs.io/en/latest/tables.html or just
+----+----+
| 2  |  1 |
+----+----+

I don't understand the question. What should be improved? Can you give me an example?

The table has square edges and the code blocks / other elements are rounded :D It'd be cool if they matched the rest of the theme.

Updated style for tables: https://shibuya.lepture.com/writing/table/
Please review the style, if it is ok, I'll make a new release.

Oh man that's perfect!

2024.4.8 released


Drop unused maxmatch from DB and CLI

In discussion with @kiepczi last week, we we unsure that we needed to keep the maxmatch parameter in the database.
This was used in legacy pyani to control how MUMmer was used (and indeed our dnadiff method does run nucmer with --maxmatch), but is not currently exposed as a user setting.
Currently this field is an optional boolean in the DB, i.e. in Python speak it can be True, False, or None. This is odd, especially for setting this at the command line.
It might make sense to replace with a more general mode string parameter, but this PR simply removes maxmatch.
Type of change

[x] Bug fix (non-breaking change that fixes an issue)
[ ] New feature (non-breaking change that adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality not to work as expected)
[ ] This change requires a documentation update
[ ] This is a documentation update

Action Checklist

[x] Work on a single issue/concept (if there are multiple separate issues to address, please use a separate pull request for each)
[ ] Fork the pyani-plus repository under your own account (please allow write access for repository maintainers)
[x] Set up an appropriate development environment (please see CONTRIBUTING.md for this repository)
[x] Create a new branch with a short, descriptive name
[x] Work on this branch

[x] style guidelines have been followed (please see CONTRIBUTING.md for this repository)
[ ] new code is commented, especially in hard-to-understand areas
[ ] corresponding changes to documentation have been made
[x] tests for the change have been added that demonstrate the fix or feature works

[x] Test locally with pytest-plus -v non-passing code will not be merged
[x] Rebase against origin/master
[x] Check changes with linting/formatting tools before submission (please see CONTRIBUTING.md for this repository)
[x] Commit branch
[x] Submit pull request, describing the content and intent of the pull request
[x] Request a code review
[x] Continue the discussion at Pull requests section in the pyan-plus repository

I'm not convinced about the rationale for dropping maxmatch from both the database and CLI.
A brief history of ANIm options
Historically, the original pyani script runs ANIm using MUMmer's -mum argument. This computes only matches that are unique in ech of the reference and query sequences.
The --maxmatch option was offered at the command line to enable users to override this option, enabling MUMmer's -maxmatch argument, which calculates all maximal matches, regardless of uniqueness in each sequence. This is expected to result in different output.
This arrangement is also the case in pyani v0.3.
The --mum option was probably chosen (my memory is cloudy and I don't think I wrote it down) on the basis of the MUMmer documentation, which has:

Setting either the -mum or -mumreference option can significantly cut down on the number of repeat induced matches as opposed to -maxmatch, and is recommended for most all applications.

I think this is a sound reason to prefer the --mum option in ANIm, but the option was made available to the user.
maxmatch as a database field
The maxmatch field in the database for v0.3 was meant to record - only for ANIm - whether the --maxmatch option was set at the CLI. It has no role in the other analyses offered in that version of the tool.  I see the argument for this being True or False (with False being the case when using ANIb, for instance), but there's an argument for None reflecting a null value in the database to explicitly represent cases where it is not an option and avoid confusion about it being set to "False" when it is not a relevant parameter.
However, when recording the full command line either for pyani or for the underlying tool, I can see why it would not need to be a field at all.
ANIm vs dnadiff
I don't see why we should change ANIm behaviour in this version of pyani, but I'm happy to hear arguments for why we should. As a default I think we should continue with the same methodology when it's not demonstrably in error. The original description of ANIm is not detailed (see https://pmc.ncbi.nlm.nih.gov/articles/PMC2776425/) and silent on the choice of -mum vs -maxmatch - but I suspect that -mum would have been used if the documentation was consulted.
From inspection of the MUMmer source, dnadiff does use the --maxmatch option with nucmer, but it also carries out a golden path analysis that isn't part of the ANIm specification. This can presumably be trusted to find a single unique path that best represents the pairwise alignment, so the --mum option may not be required to restrict the original alignment to unique matches only, avoiding repeats.
I think it's find to have --maxmatch in the dnadiff algorithm, but not in the ANIm algorithm.
tl;dr

ANIm should continue to use --mum by default and offer the --maxmatch option in the CLI.
I'm happy to drop the maxmatch database field if there's a better way to record the option.

But I'm open to argument.

Currently the code does not use the --maxmatch option, so that is effectively a bug to be fixed. Doing to and making the ANIm configurations record True or False, and other methods record None makes sense. New issue to follow.

I would prefer to replace the optional boolean "maxmatch" (which is very nucmer specific) with a string parameter, say "mode" which seems potentially applicable to other methods in the future. For ANIm this would be pyani-plus anim --mode mum ... (default) or pyani-plus anim --mode maxmatch ...

This PR can be closed.


[3pt]  - Add all items counter on the Homepage - Student A

Even if the API gives you the number of items, you will create a specific function to calculate it.
Make sure that the correct number is displayed on the Homepgae.

Pull request for this task


Warning when creating an extant variable

I added this warning to Scratch a while ago; Pixie should reflect the change.

Perhaps (NS) it would be good to add context when trying to add a global variable, like That name is already in use in Sprite1 and Sprite2.

These dialogs actually already exist; they were just hidden by a bug in the dialog keybindings. I like our text better (New List / A list with that name already exists.)


Block map colors

Currently, most blocks are missing map colors which makes them render strangely on world maps and minimaps. This would not be complicated to fix.

This should be closed by #50.

Closed by #50.


Simplify API for receiving updates on generated interfaces.

This PR removes all recv_*_update functions, and instead adds update.is/as/into_*() functions.
So instead of doing req.recv_foo_update().await?, you'll do req.recv_update().await?.into_foo()?.
Aditionally, the PR adds missing checks for duplicate service IDs for services and streams, and it adds checks for duplicate service/stream/update names.

So instead of doing req.recv_foo_update().await?, you'll do req.recv_update().await?.into_foo()?.

This is actually a slight lie, because recv_update() returns a Result<Option<Update>>. So it'd be more like req.recv_update().await?.ok_or_else(|| ....)?.into_foo()?


Memory usage display issues when creating project

I was creating a project from a 35MB CSV file and I noticed that the progress bar showing the memory usage had some issues:

The max memory showed as 4294MB but my max memory was set to 4096MB in refine.ini

The used memory stayed constant at 1728MB which seemed off. I checked ImportingJob.java and found that the used memory was being set as the total JVM memory when it should be total - free memory.

The max memory showed as 4294MB but my max memory was set to 4096MB in refine.ini

Likely a 10^6 vs 2^20 issue.

The used memory stayed constant at 1728MB which seemed off. I checked ImportingJob.java and found that the used memory was being set as the total JVM memory when it should be total - free memory.

I guess that depends on what you're trying to measure. The JVM has "total memory" allocated which means it is unavailable for any other process (e.g. the browser) to allocate. The fact that it isn't actively using the allocated memory doesn't make it any more available to anyone else.

The text says 'Memory usage', so my interpretation is the user would expect to see the memory in use, so we shouldn't include the portion of the total memory that is not in use. If total-free is close to max memory, that is a sufficient indicator of OOM.
The refine.ini file has the default min and max set to 1400M. As a result of this, the memory usage appears to be at 100% immediately which in a way is correct as in the JVM has reserved that memory as you mentioned. On the other hand, it is deceiving because a lot of that reserved memory may be free:


[HELP] with bufferline example

I got this from your example for bufferline: https://github.com/rebelot/heirline.nvim/blob/master/cookbook.md#bufferline
local M = {
	"rebelot/heirline.nvim",
	-- dependencies = "nvim-web-devicons",
	lazy = false,
}

function M.config()
	local TablineBufnr = {
		provider = function(self)
			return tostring(self.bufnr) .. ". "
		end,
		hl = "Comment",
	}

	-- we redefine the filename component, as we probably only want the tail and not the relative path
	local TablineFileName = {
		provider = function(self)
			-- self.filename will be defined later, just keep looking at the example!
			local filename = self.filename
			filename = filename == "" and "[No Name]" or vim.fn.fnamemodify(filename, ":t")
			return filename
		end,
		hl = function(self)
			return { bold = self.is_active or self.is_visible, italic = true }
		end,
	}

	-- this looks exactly like the FileFlags component that we saw in
	-- #crash-course-part-ii-filename-and-friends, but we are indexing the bufnr explicitly
	-- also, we are adding a nice icon for terminal buffers.
	local TablineFileFlags = {
		{
			condition = function(self)
				return vim.api.nvim_buf_get_option(self.bufnr, "modified")
			end,
			provider = "[+]",
			hl = { fg = "green" },
		},
		{
			condition = function(self)
				return not vim.api.nvim_buf_get_option(self.bufnr, "modifiable")
					or vim.api.nvim_buf_get_option(self.bufnr, "readonly")
			end,
			provider = function(self)
				if vim.api.nvim_buf_get_option(self.bufnr, "buftype") == "terminal" then
					return "  "
				else
					return ""
				end
			end,
			hl = { fg = "orange" },
		},
	}

	-- Here the filename block finally comes together
	local TablineFileNameBlock = {
		init = function(self)
			self.filename = vim.api.nvim_buf_get_name(self.bufnr)
		end,
		hl = function(self)
			if self.is_active then
				return "TabLineSel"
			-- why not?
			-- elseif not vim.api.nvim_buf_is_loaded(self.bufnr) then
			--     return { fg = "gray" }
			else
				return "TabLine"
			end
		end,
		on_click = {
			callback = function(_, minwid, _, button)
				if button == "m" then -- close on mouse middle click
					vim.api.nvim_buf_delete(minwid, { force = false })
				else
					vim.api.nvim_win_set_buf(0, minwid)
				end
			end,
			minwid = function(self)
				return self.bufnr
			end,
			name = "heirline_tabline_buffer_callback",
		},
		TablineBufnr,
		FileIcon, -- turns out the version defined in #crash-course-part-ii-filename-and-friends can be reutilized as is here!
		TablineFileName,
		TablineFileFlags,
	}

	-- a nice "x" button to close the buffer
	local TablineCloseButton = {
		condition = function(self)
			return not vim.api.nvim_buf_get_option(self.bufnr, "modified")
		end,
		{ provider = " " },
		{
			provider = "",
			hl = { fg = "gray" },
			on_click = {
				callback = function(_, minwid)
					vim.api.nvim_buf_delete(minwid, { force = false })
				end,
				minwid = function(self)
					return self.bufnr
				end,
				name = "heirline_tabline_close_buffer_callback",
			},
		},
	}

	-- The final touch!
	local TablineBufferBlock = utils.surround({ "", "" }, function(self)
		if self.is_active then
			return utils.get_highlight("TabLineSel").bg
		else
			return utils.get_highlight("TabLine").bg
		end
	end, { TablineFileNameBlock, TablineCloseButton })

	-- and here we go
	local BufferLine = utils.make_buflist(
		TablineBufferBlock,
		{ provider = "", hl = { fg = "gray" } }, -- left truncation, optional (defaults to "<")
		{ provider = "", hl = { fg = "gray" } } -- right trunctation, also optional (defaults to ...... yep, ">")
		-- by the way, open a lot of buffers and try clicking them ;)
	)

	require("heirline").setup({ tabline = BufferLine })
end

I use lazy.nvim to load the plugin, and at bottom I required tabline = BufferLine, so i expect it work but i always get this error:
Error detected while processing /home/user/.config/nvim/init.lua:
Failed to load `plugins.test`
...local/share/nvim/lazy/lazy.nvim/lua/lazy/core/plugin.lua:216: attempt to get length of local 'spec' (a boolean value)
# stacktrace:
  - ~/.config/nvim/lua/lazynvim.lua:18
  - ~/.config/nvim/init.lua:2

I have not too much experience with lazy but it seems there are some errors in the way you've set it up. Error is not coming from heirline. Did you forget to export M with return M at the end of this file?

Ah yes, sr, i forgot the return, same above config with adding bottom return M but i got this error:
Failed to run `config` for heirline.nvim
/home/user/.config/nvim/lua/plugins/test.lua:116: attempt to index global 'utils' (a nil value)
# stacktrace:
  - test.lua:116 _in_ **config**
  - ~/.config/nvim/lua/lazynvim.lua:18

look like line 116 is start with this line:
	-- The final touch!
	local TablineBufferBlock = utils.surround({ "", "" }, function(self)

You need to require heirline.utils, as described here. Heirline config requires a lot of lua code, although I made some efforts to thoroughly describe what is going on in the cookbook, it's advisable have some confidence with lua to be able to "enjoy" this plugin :)


Networking keepalive thread

We have keepalive messages in the protocol, but we aren't using them right now. Maybe we should implement a thread for that.

Keepalive messages dropped in v2.


Schedules support v2

Schedules v2. Added better response structure. Testing very much required.

Some improvements can still be done. They will follow in the next pr.


FindUUID: Always define UUID::UUID on Apple platforms

On Apple platforms, the headers of libuuid and its symbols are provided by the OS SDK, so no further linking is necessary.
Fix https://github.com/ignitionrobotics/ign-cmake/issues/127
Signed-off-by: Silvio Traversaro<EMAIL_ADDRESS>

diff without whitespace: https://github.com/ignitionrobotics/ign-cmake/pull/128/files?w=1

this looks reasonable to me; I'd just like to test it with a larger set of packages before approving

this looks reasonable to me; I'd just like to test it with a larger set of packages before approving

Thanks, I don't have currently a macOS box to test, so any additional test is welcome.

I actually was able to propagate the change in conda and test it in https://github.com/robotology/robotology-superbuild/pull/513/https://github.com/robotology/robotology-superbuild/pull/513/checks?check_run_id=1414508924, and I found another problem: the target should only be defined if no target with the same name is already defined, otherwise if you call twice find_package(UUID) as it happes when you call find_package(gazebo) thanks to dependencies, you will get the error:
2020-11-17T20:31:22.6139260Z CMake Error at /usr/local/miniconda/envs/test/share/cmake/ignition-cmake2/cmake2/FindUUID.cmake:61 (add_library):
2020-11-17T20:31:22.6140410Z   add_library cannot create imported target "UUID::UUID" because another
2020-11-17T20:31:22.6141100Z   target with the same name already exists.

sorry for the delayed review; this looks good. I suppose we can stop depending on the ossp-uuid formula in osrf/homebrew-simulation as well. I'll open a ticket for that


why not mean of class-wise accuracy ?

# best model on the validation set
stats, _ = validate(audio_model, val_loader, args, 'valid_set')
# note it is NOT mean of class-wise accuracy
val_acc = stats[0]['acc']
val_mAUC = np.mean([stat['auc'] for stat in stats])

for val_acc = stats[0]['acc']  ，I can't understand why only the accuracy of the first class is taken, can this also explain the problem, will it be more convincing to choose the mean of all classes?

Hi there,
As commented above the line, accuracy is not a class-wise metric (i.e., it is not a one vs all accuracy). All classes have the same accuracy value, so taking the mean should lead to the same value.
https://github.com/YuanGongND/ast/blob/87a80043154eb4bb34ebceb4dc3e2d91a99235f4/src/utilities/stats.py#L26
-Yuan

oh I see, thank you!


Add inspection to check, whether function name is in lower camel case

@dheid Thanks a lot, this is really appreciated :)


Bullet threading conflicts with Android

@import url("https://cdn.jsdelivr.net/gh/pengx17/logseq-dev-theme@main/bullet_threading.css");
Adding the above line to custom.css causes the right folding arrow (per https://github.com/logseq/logseq/pull/7492) to disappear.
Using Android 0.8.15.

Hi @ljunhui , It does not disappear, but appears to be adjacent to the left button


Moved to N-API

@simonbuchan ?

Yes, NAPI was experimental but now it is the way to be ABI compatible with different node versions, which is a major upside.
You could, by the way, edit the PR. As it is on a fork from your repo - you should have permissions to push to my branch. I have automatic default formatting with MSVC (which is a much cleaner style), but it's your repo and I'll respect your preferences.


Update store_replicate.go

replication operations should be equal to volume's replication setting

There is a tiny mistake, I should use glog.V(0).Infof instead of glog.V(0).Infoln, if possible, please let me create another pull request.

Just push another commit to your branch.  If possible, squash and/or rebase and push -f.

Hi,Damian
I did not find any new push commit in chrislusf:master or my forked one(hxiaodon:master), could you explain more clearly? Thanks!

More detailed instructions at http://stackoverflow.com/a/15055649

Damian
I read the instructions you provided, but I still failed to operate at my local

BTW, Could you share your IM account so I can ask your help by online chatting?
Thanks!

Damian,
Is below operation correct?

Thanks!

Why not follow the easiest option in the link?
To update a pull request (point #1), the only thing you need to do is checkout the same branch the pull request is from and push to it again:
cd /my/fork
git checkout master
...
git commit -va -m "Correcting for PR comments"
git push

I'm a little confused, Damian said that he had pushed another commit in my forked repository(github.com/hxiaodon/seaweedfs), but I did not find it .
The last commit is
https://github.com/hxiaodon/seaweedfs/commit/4e48f64512d3f6fdbab17e777fff3fe191592a76
and parent commit is
https://github.com/hxiaodon/seaweedfs/commit/4d56039ad4ee96db938af4df93bd4b0153c1400f
So I use Damian's suggested way(rebase) to make sure not to bring in any trouble


Upgrade upload/download-artifact in sync across all org

Because upload-artifact and download-artifact are not compatible across v3-v4 major bump, we need to upgrade them across all repos at the same time, instead of when Renovate opens a PR in one repo.
Probably also need to cut new releases for that.

Opened https://github.com/slsa-framework/slsa-github-generator/issues/3239 to also make sure the main repo is in the known.

This is done.


Setup GitHub actions to auto-build Dice for platforms

We need a way to build Dice DB for all platforms upon creating a new release tag. We can use GoReleaser to do this.

I would like to work on this task.

@Hakai-Shin go for it. I have assigned it to you.

@Hakai-Shin  where are you with the implementation? are you stuck somewhere? You can join the Discord Server for quick collaboration.

Hi @arpitbbhayani , I have got some hands-on with goreleaser tool, currently I am working with goreleaser for github actions. I will be closing this issue soon.

#59


Client contact info

When a client seeks access to a user resource provided by another client, there is an implicit API contract between them. If this API needs to change for any reason, there should be an easy way for the developer of the resource-providing client to notify the developers of all resource-consuming clients.
We have been resisting adding an API to Hasjob for years for fear of having to deal with broken APIs when the submission form changes. Making it easier to contact the other developers would go a long way to ease it.

Dupe of #127.


arribb24: init at 1.0.4

Description of changes

Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
24.05 Release Notes (or backporting 23.05 and 23.11 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[ ] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

Result of nixpkgs-review pr 292150 run on x86_64-linux 1

1 package built:

aribb24

Result of nixpkgs-review pr 292150 run on x86_64-linux 1

1 package built:

aribb24

Result of nixpkgs-review pr 292150 run on x86_64-linux 1

1 package built:

aribb24

[x] package path fits guidelines
[x] package name fits guidelines
[x] package version fits guidelines
[x] package builds on x86_64-linux
[x] executables tested on x86_64-linux
[x] meta.description is set and fits guidelines
[x] meta.license fits upstream license
[x] meta.platforms is set
[x] meta.maintainers is set
[x] build time only dependencies are declared in nativeBuildInputs
[x] source is fetched using the appropriate function
[x] the list of phases is not overridden
[x] when a phase (like installPhase) is overridden it starts with runHook preInstall and ends with runHook postInstall.
[x] patches have a comment describing either the upstream URL or a reason why the patch wasn't upstreamed
[x] patches that are remotely available are fetched rather than vendored


Add test build step

Should be possible to run unit tests headless, via command line. Can make use of QUnit's node-wrapper, even though that needs some love: https://github.com/jquery/qunit/blob/cli/test/suite.js
Maybe use node-qunit: https://github.com/kof/node-qunit

Fixed in 32b6db095f06c0bf6b10d251dcc0b2c83244d6cf


Reference counter is jittering

Issue Description
The reference counter jitters every time I type.
I have a gif of what is happening here
Steps to Reproduce
I installed C# extension on vscode, and from the start it jittered like that.
Expected Behavior
not jitter
Actual Behavior
the reference counter moves up and down
Logs
OmniSharp log
Post the output from Output-->OmniSharp log here
C# log
Post the output from Output-->C# here
Environment information
VSCode version: 1.52.1
C# Extension: 1.23.8
Dotnet Information
.NET SDK (reflecting any global.json):
 Version:   5.0.102
 Commit:    71365b4d42
Runtime Environment:
OS Name:     Windows
OS Version:  10.0.18363
OS Platform: Windows
RID:         win10-x64
Base Path:   C:\Program Files\dotnet\sdk\5.0.102\
Host (useful for support):
Version: 5.0.2
Commit:  cb5f173b96
.NET SDKs installed:
5.0.102 [C:\Program Files\dotnet\sdk]
.NET runtimes installed:
Microsoft.AspNetCore.App 5.0.2 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.NETCore.App 5.0.2 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.WindowsDesktop.App 5.0.2 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
To install additional .NET runtimes or SDKs:
https://aka.ms/dotnet-download

Visual Studio Code Extensions

Extension
Author
Version

csharp
ms-dotnettools
1.23.8

git-graph
mhutchie
1.28.0

identical-sublime-monokai-csharp-theme-colorizer
maximetinu
0.11.1

remote-wsl
ms-vscode-remote
0.52.0

scala
scala-lang
0.5.1

unity-debug
Unity
3.0.2

unity-tools
Tobiah
1.2.12

Thanks for capturing the GIF. However, this is a VS Code issue not a C# extension issue.
It is tracked here https://github.com/microsoft/vscode/issues/113384. Perhaps you can attach your information to that issue. Thanks.

Thanks for capturing the GIF. However, this is a VS Code issue not a C# extension issue.
It is tracked here https://github.com/microsoft/vscode/issues/113384. Perhaps you can attach your information to that issue. Thanks.


Errors in Camunda 8.1 don't show the platform version as "undefined"

It should say "An <Undefined Task> is not supported by Camunda 8.1"

Closed via https://github.com/camunda/linting/pull/27.


Remove remove_undocumented from parallel_for.

This isn't needed in core TF code as we have the public API
generation tool now. Also, this causes problem with the release
pip tests.

This is taking a while to make it into master branch. So submitting this change separately to 1.10 branch.


Add support for serde flatten

Address issue: https://github.com/juhaku/utoipa/issues/120
It's still an early draft and probably missing impl on other applicable areas and test cases. Do let me know if I'm heading towards the right direction.

Took a quick look and looks promising :+1:  :tada:  Indeed missing at least docs. Also eventually this need to be implemented to the IntoParams in into_params.rs but there is no serde support at all currently but that can be another story later on.

Thanks for the review, I'll add another test case where we have nested flatten and also looking into updating the docs as well. For IntoParams, I can take a quick look into it and see if I can add the support as well.

Hey @juhaku I have update the docs (I could be missing something as well...), added some test cases and I think is ready to be review.
For the IntoParams, since I have less context on it since I haven't need to use it so far. While I would still like to tackle on this, would you mind to sharing more details to me? For example:

is the goal to be supporting param(flatten)?
where should I be adding the test cases if I implemented it? I see a couple of files that might be related to this work like path_derive*.rs and path_parameter_derive*.rs. Having a pointer would be great hahaha

And I totally understand that you are occupied with personal things, so take all the time you need. Nothing is urgent here. I would just like to contribute some work back to upstream.

is the goal to be supporting param(flatten)?

Yes

where should I be adding the test cases if I implemented it?

utoipa-gen/tests/path_derive.rs Seems like the place.. There already is some IntoParams tests. Essentially the functionality is the same. It IntoParams is used to create openapi request parameters from rust structs.

The IntoParams implementation can be a separate PR. I can merge this one to master.


Are there any plans to add async await support?

Given that Graphiti and Vapor have now fully embraced async await, this seems like a good next step.

Oh never mind - I see there is async await support, but it's just not in the README.

Yeah, if you'd like to add an async/await example to the readme, I'd sure appreciate it!


Double click on the modal button to open the modal window (code is dynamic)

Description
I came across to an issue, where I'm loading my modal dynamically (code spinets http://codepen.io/kjankauskas/pen/MpJXRy). When the DOM is loaded I have to double click the button to open the modal? Any idea why?
Use this Codepen to demonstrate your issue. http://codepen.io/kjankauskas/pen/MpJXRy

This is because you are only instantiating the modal on the first button click? If you want to instantiate at the time of the click, just trigger an additional click on the modal after you initialize it but really you shouldn't be initializing it on every button click. Ideally you would initialize it right after you append the elements and only do it once.


[Bug]: process.stdin.setRawMode is not a function when running shopify theme dev after upgrade.

Please confirm that you have:

[X] Searched existing issues to see if your issue is a duplicate. (If you’ve found a duplicate issue, feel free to add additional information in a comment on it.)
[X] Reproduced the issue in the latest CLI version.

In which of these areas are you experiencing a problem?
Theme
Expected behavior
Running shopify theme dev should spin up a dev server w/o error after logging in from browser.
Actual behavior
When prompting to "Press any key to open the login page on your browser" an additional error is thrown:
process.stdin.setRawMode is not a function
Verbose output
2023-06-28T16:52:42.053Z: Running command theme dev
[0] 2023-06-28T16:52:42.062Z shopify:theme:dev init version<EMAIL_ADDRESS>argv: [ '--store', 'store.myshopify.com', '--verbose' ]
[0] 2023-06-28T16:52:42.075Z: Ensuring that the user is authenticated with the Theme API with the following scopes:
[0] []
[0]
[0] 2023-06-28T16:52:42.076Z: Ensuring that the user is authenticated with the Admin API with the following scopes for the store store.myshopify.com:
[0] []
[0]
[0] 2023-06-28T16:52:42.077Z: Getting session store...
[0] 2023-06-28T16:52:42.081Z: Validating existing session against the scopes:
[0] [
[0]   "openid",
[0]   "https://api.shopify.com/auth/shop.admin.graphql",
[0]   "https://api.shopify.com/auth/shop.admin.themes",
[0]   "https://api.shopify.com/auth/partners.collaborator-relationships.readonly",
[0]   "https://api.shopify.com/auth/shop.storefront-renderer.devtools",
[0]   "https://api.shopify.com/auth/partners.app.cli.access",
[0]   "https://api.shopify.com/auth/destinations.readonly"
[0] ]
[0] For applications:
[0] {
[0]   "adminApi": {
[0]     "scopes": [],
[0]     "storeFqdn": "store.myshopify.com"
[0]   }
[0] }
[0]
[0] 2023-06-28T16:52:42.082Z: Sending Identity Introspection request to URL: https://accounts.shopify.com/oauth/introspection
[0] 2023-06-28T16:52:42.082Z: Sending POST request to URL https://accounts.shopify.com/oauth/introspection
[0] With request headers:
[0]  - User-Agent: Shopify CLI; v=3.47.0
[0]  - Keep-Alive: timeout=30
[0]  - Sec-CH-UA-PLATFORM: win32
[0]  - Content-Type: application/json
[0]
[0] 2023-06-28T16:52:42.263Z: Request to https://accounts.shopify.com/oauth/introspection completed in 171 ms
[0] With response headers:
[0]  - cache-control: no-cache, no-store, private, must-revalidate, max-age=0
[0]  - content-type: application/json; charset=utf-8
[0]  - etag: W/"590b35b4bf02cee8eeba0b679279b1c8"
[0]  - x-request-id: 9448bb8b-d2fa-4fe6-8c34-f7399836cbb6
[0]
[0] 2023-06-28T16:52:42.266Z: The identity token is valid: true
[0] 2023-06-28T16:52:42.266Z: Initiating the full authentication flow...
[0] 2023-06-28T16:52:42.267Z: Authorizing through Identity's website...
[0]
[0] To run this command, log in to Shopify Partners.
[0] 👉 Press any key to open the login page on your browser
[0] ╭─ error ──────────────────────────────────────────────────────────────────────╮
[0] │                                                                              │
[0] │  process.stdin.setRawMode is not a function                                  │
[0] │                                                                              │
[0] │  To investigate the issue, examine this stack trace:                         │
[0] │    at (../../../../AppData/Roaming/nvm/v18.12.1/node_modules/@shopify/theme  │
[0] │    /node_modules/@shopify/cli-kit/src/public/node/ui.tsx:545)                │
[0] │      process.stdin.setRawMode(true)                                          │
[0] │    at new Promise                                                            │
[0] │    at keypress (../../../../AppData/Roaming/nvm/v18.12.1/node_modules/@shop  │
[0] │    ify/theme/node_modules/@shopify/cli-kit/src/public/node/ui.tsx:530)       │
[0] │      return new Promise((resolve, reject) => {                               │
[0] │    at authorize                                                              │
[0] │    (../../../../AppData/Roaming/nvm/v18.12.1/node_modules/@shopify/theme/no  │
[0] │    de_modules/@shopify/cli-kit/src/private/node/session/authorize.ts:42)     │
[0] │      await keypress()                                                        │
[0] │    at processTicksAndRejections (node:internal/process/task_queues:95)       │
[0] │    at async executeCompleteFlow                                              │
[0] │    (../../../../AppData/Roaming/nvm/v18.12.1/node_modules/@shopify/theme/no  │
[0] │    de_modules/@shopify/cli-kit/src/private/node/session.ts:191)              │
[0] │      const code = await authorize(scopes)                                    │
[0] │    at async ensureAuthenticated                                              │
[0] │    (../../../../AppData/Roaming/nvm/v18.12.1/node_modules/@shopify/theme/no  │
[0] │    de_modules/@shopify/cli-kit/src/private/node/session.ts:127)              │
[0] │      newSession = await executeCompleteFlow(applications, fqdn)              │
[0] │    at async ensureAuthenticatedAdmin                                         │
[0] │    (../../../../AppData/Roaming/nvm/v18.12.1/node_modules/@shopify/theme/no  │
[0] │    de_modules/@shopify/cli-kit/src/public/node/session.ts:84)                │
[0] │      const tokens = await ensureAuthenticated({adminApi: {scopes,            │
[0] │      storeFqdn: store}}, process.env, forceRefresh)                          │
[0] │    at async refreshTokens (../../../../AppData/Roaming/nvm/v18.12.1/node_mo  │
[0] │    dules/@shopify/theme/src/cli/services/dev.ts:140)                         │
[0] │      const adminSession = await ensureAuthenticatedThemes(store, password,   │
[0] │      [], true)                                                               │
[0] │    at run (../../../../AppData/Roaming/nvm/v18.12.1/node_modules/@shopify/t  │
[0] │    heme/src/cli/commands/theme/dev.ts:111)                                   │
[0] │      const {adminSession, storefrontToken} = await refreshTokens(store,      │
[0] │      flags.password)                                                         │
[0] │                                                                              │
[0] ╰──────────────────────────────────────────────────────────────────────────────╯
[0]
[0] 2023-06-28T16:52:42.395Z: Unable to log analytics event - no information on executed command
[0] 2023-06-28T16:52:42.429Z: Obtaining the dependency manager in directory C:/Users/matt/Desktop/Projects/Private/project...
[0] 2023-06-28T16:52:42.472Z:
[0] Running system process:
[0]   · Command: ruby -v
[0]   · Working directory: C:/Users/user/Desktop/Projects/Private/project

Reproduction steps

Upgrade to 3.47.0 on windows 10
run shopify theme dev

Operating System
Windows 10
Shopify CLI version (check your project's package.json if you're not sure)
3.47.0
Shell
No response
Node version (run node -v if you're not sure)
v18.12.1
What language and version are you using in your application?
Node

Hi! Thanks for opening the issue.
Which terminal are you using? I've checked that the login still works with Powershell, CMD, VSCode terminal...
Maybe Git Bash? We know there are some issues with that one, but not related to the latest version 🤔.

Hi! Thanks for opening the issue.
Which terminal are you using? I've checked that the login still works with Powershell, CMD, VSCode terminal...
Maybe Git Bash? We know there are some issues with that one, but not related to the latest version 🤔.

Hey Gonzaloriestra, this machine was using Hyper

Hmm I've just tried with Hyper 3.4.1 in Windows 11 with Node 18.12 and it works...
That error appears when the terminal tries to check if the user presses any key (to open the login window), but it doesn't support it. And that terminal apparently supports it.
What if you run shopify theme init (because it starts with a text prompt)? Does it say that the terminal is not supported?
I'll try to catch that ugly error and show something more meaningful, but I'd like to understand why it's failing. Anything else you are doing differently? Are you just running shopify theme dev after installing it globally through npm?

Hey @gonzaloriestra  thank you for your assistance here. I want to start by noting that the machine is running Windows 10 not 11.
Additionally, we actually only see this error happen when running shopify theme dev concurrently with  vite dev (for a build package)

No we run them using concurrently


Fix Code Cov Action

:warning: Please install the  to ensure uploads and comments are reliably processed by Codecov.
Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 84.32%. Comparing base (0ffaf3f) to head (1b5824e).
Report is 17 commits behind head on master.

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #554      +/-   ##
==========================================
+ Coverage   81.54%   84.32%   +2.78%
==========================================
  Files          60       60
  Lines        2216     2227      +11
==========================================
+ Hits         1807     1878      +71
+ Misses        409      349      -60

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


UI Crate

Branch: feature/ui

[x] Establish a new crate in crates/dotrix_ui
[ ] Add Widget structure, representing renderable area with some basic parameters: backgroundColor, backgroundTexture, size, position etc
[ ] Add Overlay service, which will be a World analog but for the UI Widgets
[ ] Add overlay rendering system, that will draw Widgets on the screen
[ ] Implement bindings between widgets and mouse actions
[ ] Implement text rendering
[ ] Prototype a UI library module with buttons etc

Blocked by #33 and #34

Postponed, because the egui does the job for now and there are other important things to do.


incubator error initial pokemon data

Expected Behavior
need check variable is not initial
Actual Behavior
error variable allready referenced program close
Steps to Reproduce
Incubator egg firs parse with initial pokemon_data inside worker

Other Information
on incubate_eggs_worker.py add none check before loop assignement :)
    if val != None:
            for pokemon in pokemon_data:
    	        # pokemon ids seem to be offset by one
    	        pokemon['name'] = self.bot.pokemon_list[(pokemon['pokemon_id']-1)]['Name']
            logger.log("-"*30, log_color)
            logger.log("[!] {} eggs hatched! Received:".format(len(pokemon_data)), log_color)

now is fixed on the dev branch please close


Add support for Jira BUGS project

I want to linkify the branch name even when it is related to an issue on BUGS project

I don't like the idea of having to touch 3 places in the script whenever we need to support a new project.
This could be an opportunity to introduce a common configuration script, we already talked about this with @maxcanna: we could have another monkey that fires an event on document passing some configurations; all the real script (the ones actually doing something with the page) will react to that event and do their thing using the configuration provided.
This way  and we can make our scripts reusable to other projects/contexts/whatever.
What do you think?

I totally agree with @demerzel3 on this!

@maxcanna @demerzel3 imho you're overengineering a monkey script, at least for the sake of this commit.
You could move the regular expression and the css selector ( /^.+((AAPP|BUGS)-\d+)$/ and .current-branch:contains('AAPP'), .current-branch:contains('BUGS') ) to two globals or functions and minimize the future changes of this nature, without having to maintain two monkey projects.
Since it's your project :-)  you can split it in two obviously if you like it more, but I'd open a new issue.

You'd go the ol-dirty-way in this PR and defer those refactor in a future one?


Why Orchard.Layouts does not define resources for AngularJS and other libraries?

/cc @sfmskywalker, @sebastienros, @Piedone
Orchard.Layouts creates bundle for AngularJS and some other libraries instead of defining resources. Please consider some other themes or modules depends on different versions of these libraries.
We can override a resource by specifying greater version number in ResourceManifest class but how can i override bundles?
I think this is absolutely wrong way.

Yes, what we actually need is a dedicated module such as Orchard.jQuery that provides these reusable resources as proposed in issue #5438. We didn't want Orchard.Layouts to be the one providing that resource to others, but using it privately instead. This however causes an obvious issue if you write a custom part that also relies on AngularJS, in which case you would probably best include the scripts from Orchard.Layouts using Script.Include (providing the full relative path to the various scripts necessary).
Closing this one as a duplicate of #5438, since Orchard.Layouts will be updated to take advantage of the yet to be written Orchard.Resources.

@sfmskywalker I don't agree. What is the meaning of "using it privately"?
The result of using it privately is this error: "Tried to load angular more than once."
Yes, You are right. We didn't want Orchard.Layouts to be the one providing that resource to others, but this module can define resource for now so that other developers be able to override that resource.
Please don't forget there are several custom modules and themes for Orchard in operational environments.
As i mentioned these modules may depend on newer version of AngularJS. For example i have several themes depend on AngularJS 1.4.6+. Do you think i can include AngularJS 1.3.3 from Orchard.Layouts?
What is the downside of resource definition until Client Libraries module will be available?
I'm surprised that you have closed this issue. I even think this issue needs hot patch because it has created problems in the functioning of many other modules.

What is the meaning of "using it privately"

I mean that it was not the module's purpose to provide AngularJS to others, hence no resource manifest is provided.
You seems to be saying that if we did provide a resource manifest, other modules would have been able to override that resource with a newer version of Angular. Do you know if people are doing the same with jQuery? I always assumed that modules providing back-end screens all used the jQuery version provided with Orchard - no overriding involved, because this becomes tricky very easily. So even if we provided an AngularJS resource manifest, the same principle would apply, where you would be "stuck" with the version of Angular that comes with Orchard.

i have several themes depend on AngularJS 1.4.6+. Do you think i can include AngularJS 1.3.3 from Orchard.Layouts?

In the case of themes, you can use any version of Angular you like - the Orchard.Layouts module does not include AngularJS scripts on the front-end - it's purely used for the layout editor in the back-end. So I don't foresee any conflicts here. Please do let me know if I'm wrong and share the actual issues and we can work them out.

What is the downside of resource definition until Client Libraries module will be available?

It would require work that we already know would be undone.
This is more of a philosophical issue maybe, but the module is not intended to be a resource manifest provider of AngularJS - it just needs it itself. And since there is no Orchard.Resources module yet, it simply includes it for its own personal use. Granted, this does pose a challenge to module developers developing custom part editors that also want to use AngularJS - I would advise these part editors to include the same AngularJS files as the LayoutEditor (just as other modules reference the same jQuery version dictated by Orchard).

Other than that, I guess there's no technical downside to providing a resource manifest other than that you would still be "stuck" on the version dictated by Orchard (unless you can actually override resource manifests - I tried this a few years back by setting a newer Version, but that didn't do it for me - but, things may have changed since then).

I'm surprised that you have closed this issue.

Well, despite the fact that your issue is absolutely valid, it will be solved by the other issue I referenced previously. No sense in keeping two same issues open, especially if the other issue provides the proper way to go about this situation.

I even think this issue needs hot patch because it has created problems in the functioning of many other modules.

I'm pretty sure that whatever problems you are seeing regarding Orchard.Layout not providing a resource manifest for Angular can be solved otherwise and does not require any hot fixing of the Layouts module. But, please do share the issues you're seeing, I'm happy to help where I can.

@sfmskywalker Thank you for taking the time and detailed answers.

I mean that it was not the module's purpose to provide AngularJS to others, hence no resource manifest is provided.

I think the purpose of resource definition is not only providing the resource for others. I think it is a good practice because it allows management for other developers. Orchard.Blogs defines three resources BlogsAdmin, BlogsArchives, BlogsArchives. Who may use this resource? no one. But this module allows you to manage these resources if necessary.
I think using resources privately specially about big frameworks such as AngularJS is a bad practice. Just imagine all modules follow such an approach.

Do you know if people are doing the same with jQuery?

I don't know they do or not. Overriding resources is a useful feature in Orchard that many other CMSs have not it. On other hands you know AngularJS is a special case and has differences with jQuery.
Also please click here to see other people use this feature even about jQuery.

this becomes tricky very easily

Yes. Overriding a resource can cause problem for main module but please don't forget the developer of a site have some custom private modules or themes and he (she) can override resources If any problem do not come to the main module. Yes, overriding a resource for a module and publishing it in gallery is very bad practice.

In the case of themes, you can use any version of Angular you like - the Orchard.Layouts module does not include AngularJS scripts on the front-end - it's purely used for the layout editor in the back-end. So I don't foresee any conflicts here. Please do let me know if I'm wrong and share the actual issues and we can work them out.

Yes, I know it's purely used for the layout editor in the back-end. but i develop some advanced Admin themes depend on AngularJS like many popular themes that exist today. Also i have several custom modules using AngularJS.

No sense in keeping two same issues open, especially if the other issue provides the proper way to go about this situation.

I think the issue you referenced is an improvement (Refactoring) issue but this is bug or conflict issue although you do not agree with this.
Dear Sipke, I understand your approach but in operational environment there are some differences. I have several sites with more than 36 custom modules and three custom back-end theme. Orchard.Layouts is very useful and modern feature and i wish to use it. but it drops all my custom modules and themes for this simple conflict.
I hate modifying the source code but this issue forces me to modifying the code for personal usage and this creates difficulties for the maintenance.
Anyway you are the Boss.
Thank you so much for developing Orchard.Layouts. It's really good feature. The new generation of content management.

I think using resources privately specially about big frameworks such as AngularJS is a bad practice

I agree, this is why we want #5438 to be done.

Anyway you are the Boss.

No I'm not. :)
So basically it sounds to me that we both agree AngularJS should be provided as a resource. The issue #5438 has been triaged and ready to be implemented. Although it has been assigned to @DanielStolt, perhaps you'd like to get started with it and submit a PR?
Thanks, really glad to hear it. :)

I will think about how we should implement this module. There are some issues for using resources such as jQueryUI, Bootstrap, etc. in RTL direction. I think these resource definition must be culture aware.
Thank you very much for your answers.


can't initialize on e2e_simulator.launch.xml

Checklist

[X] I've read the contribution guidelines.
[X] I've searched other issues and no duplicate issues were found.
[X] I'm convinced that this is not my fault but a bug.

Description
In the v1.0 branch, when running e2e_simulator.launch.xml,  localization is not functioning by "2D Pose Estimate". It seems there is an issue with initialization of the position.
Additionally, starting AWSIM leads to a system shutdown.
Would you like assistance in troubleshooting these issues or adjusting the settings?
Screencast from 11-10-2024 07:39:35 PM.webm

Expected behavior
Using the 2D Pose Estimate, the vehicle can be localized by manually setting its position. This method allows me to provide an initial pose estimate for the vehicle in the simulation.
Actual behavior
Using the 2D Pose Estimate, I can't setting vehicle model.
logs
`initializecall: /api/localization/initialize
[component_container_mt-77] [INFO] [1731240815.206639723] [default_ad_api.node.localization]: server call: /api/localization/initialize
[component_container_mt-77] [INFO] [1731240815.207852696] [default_ad_api.node.localization]: client call: /localization/initialize
[component_container_mt-77] [INFO] [1731240815.208617901] [default_ad_api.node.localization]: client exit: /localization/initialize
[component_container_mt-77] [INFO] [1731240815.208617850] [default_ad_api.node.localization]: server exit: /api/localization/initialize
[pose_initializer_node-37] [INFO] [1731240815.208209402] [localization.util.pose_initializer_node]: server call: /localization/initialize
[pose_initializer_node-37] [INFO] [1731240815.208356751] [localization.util.pose_initializer_node]: server exit: /localization/initialize
[service_log_checker-3] [ERROR] [1731240815.208494200] [system.service_log_checker]: /localization/initialize: status code 1 'The vehicle is not stopped.' (/localization/util/pose_initializer_node)
[service_log_checker-3] [ERROR] [1731240815.208828465] [system.service_log_checker]: /localization/initialize: status code 1 'The vehicle is not stopped.' (/default_ad_api/node/localization)
[service_log_checker-3] [ERROR] [1731240815.208909742] [system.service_log_checker]: /api/localization/initialize: status code 1 'The vehicle is not stopped.' (/default_ad_api/node/localization)
[service_log_checker-3] [ERROR] [1731240815.209521731] [system.service_log_checker]: /api/localization/initialize: status code 1 'The vehicle is not stopped.' (/localization/util/default_ad_api/helpers/automatic_pose_initializer)
[automatic_pose_initializer-38] [INFO] [1731240816.231051447] [localization.util.default_ad_api.helpers.automatic_pose_initializer]: client exit: /api/localization/initialize
[service_log_checker-3] [ERROR] [1731240816.231278897] [system.service_log_checker]: /api/localization/initialize: status code 1 'The vehicle is not stopped.' (/localization/util/default_ad_api/helpers/automatic_pose_initializer)
[gyro_odometer-39] [WARN] [1731240816.324664913] [localization.twist_estimator.gyro_odometer]: Twist msg is not subscribed
[component_container-66] [INFO] [1731240816.850879228] [planning.mission_planning.mission_planner]: waiting odometry... Route API is not ready.
[ekf_localizer-40] [WARN] [1731240816.904554298] [localization.pose_twist_fusion_filter.ekf_localizer]: The node is not activated. Provide initial pose to pose_initializer
[component_container_mt-73] [INFO] [1731240816.923455630] [planning.scenario_planning.parking.costmap_generator]: waiting for initial pose...
[ndt_scan_matcher-36] [ERROR] [1731240817.038243790] [localization.pose_estimator.ndt_scan_matcher]: Cannot find the reference position for map update. Please check if the EKF odometry is provided to NDT.
[scenario_selector-68] [INFO] [1731240817.132798727] [planning.scenario_planning.scenario_selector]: Waiting for current pose.
[system_error_monitor-22] [ERROR] [1731240817.132985509] [system.system_error_monitor]: vehicle_state_report msg is timeout...
[component_container_mt-71] [INFO] [1731240817.133226236] [planning.scenario_planning.lane_driving.behavior_planning.behavior_path_planner]: waiting for scenario_topic
[component_container_mt-72] [INFO] [1731240817.136136099] [planning.scenario_planning.lane_driving.motion_planning.surround_obstacle_checker]: waiting for dynamic object info...
[component_container-76] [INFO] [1731240817.137069250] [control.trajectory_follower.lane_departure_checker_node]: waiting for current_twist msg...
`
Steps to reproduce

ros2 launch autoware_launch e2e_simulator.launch.xml vehicle_model:=sample_vehicle sensor_model:=awsim_sensor_kit map_path:=$HOME/maps/nishishinjuku_autoware_map/
AWSIM起動
Using the 2D Pose Estimate

Versions

ubuntu22.04
Autoware Tag v1.0
AWSIM.Labs v1.3.1

Possible causes
No response
Additional context
No response

In the v1.0 branch

Because v1.0 is quite old and uses some outdated message types, I do not think it is compatible with recent versions of AWSIM.
Are you able to try the main branch ?

localization is not functioning by "2D Pose Estimate".

If everything works correctly then localization should happen automatically.

Additionally, starting AWSIM leads to a system shutdown.

You are probably running out of video memory.


support symlinks to the installed commands

The lib directory is not correctly found; the abspath in the generated script produces the absolute path to the symlink rather than the absolute path to the actual script, so the remaining path algebra doesn't work out.

cool!

cool!

Heh.  I'd thought this was straightened out long ago, but I guess I'd missed it.  Definitely better than having to keep adding directories to PATH.


about running

running  python evalaute_slr.py   this step
it will have a error,your code is
from transformer_slr_wassim import make_model as TRANSFORMER
from dataloader_slr_wassim import loader #For SLR
but your filename is transformer_slr and dataloader_slr

I am very sorry for the late response. I am aware of these type of problems that have been produced after migrating the code. I was busy  lately with work so i didn't have time to clean and fix the code errors. Hopefully in the next few weeks i will get back to it.
Thank you for your understanding :)


Add 60 key layout for Sofle

Hello, I created this for my Sofle keyboard, might be useful for others so I created this PR.

Thanks for committing the PR! I'd probably use a slightly different naming scheme:
╭─────────────────────────────┬─────────────────────────────╮
│ LN5 LN4 LN3 LN2 LN1 LN0     │     RN0 RN1 RN2 RN3 RN4 RN5 │
│ LT5 LT4 LT3 LT2 LT1 LT0     │     RT0 RT1 RT2 RT3 RT4 RT5 │
│ LM5 LM4 LM3 LM2 LM1 LM0     │     RM0 RM1 RM2 RM3 RM4 RM5 │
│ LB5 LB4 LB3 LB2 LB1 LB0 LEC │ REC RB0 RB1 RB2 RB3 RB4 RB5 │
╰───────╮ LH4 LH3 LH2 LH1 LH0 │ RH0 RH1 RH2 RH3 RH4 ╭───────╯
        ╰─────────────────────┴─────────────────────╯

This way, the "core alpha" keys will be consistently named across the other keypos definition files. So someone who has a 42 key corne and a Sofle can switch between them, and all the core keys will be the same. E.g., the home row keys will always be LM5 to RM5.
(The 58keys layout is an exception to this pattern, which I had missed when merging. It really should have had a numbers row added, instead of shifting all the other rows up.)

Ah yeah that makes sense, I was wondering why the 58key layout was named as such. I've fixed it in the latest commit.

Great, thanks!


cribe before each

Thanks for reporting an issue to us! We're glad you are using and invested in Enzyme.
Before submitting, please read over our commonly reported issues to prevent duplicates!
All common issues

common issues

Notoriously common issues

Webpack build issues
Cannot find module 'react-dom/lib/ReactTestUtils'
Query Selector fails
Testing third party libraries

Happy to reopen if you want to fill out the OP.


fix cookiecutter new proj template

Originating Project/Creator
fprime-tools

Affected Component
cookiecutter_templates

Affected Architectures(s)
N/A

Related Issue(s)
N/A

Has Unit Tests (y/n)
No

Builds Without Errors (y/n)
Yes

Unit Tests Pass (y/n)
N/A

Documentation Included (y/n)
No

Change Description
Cookiecutter's "new project" CMakeLists.txt template had "CMAKE_CURRENT_LIST_DIR" for FPrime.cmake file as shown below:
include("${FPRIME_FRAMEWORK_PATH}/cmake/FPrime.cmake")

This works fine if fprime folder is inside the project folder, but won't work if the fprime repo is outside of the project folder.
With the new fix it does not matter where the fprime folder is located as the path will be found from FPRIME_FRAMEWORK_PATH.
include("${FPRIME_FRAMEWORK_PATH}/cmake/FPrime.cmake")

Rationale
There is an inconsistency in the generated CMakeLists.txt for the new projects by the cookiecutter.
both FPrime.cmake and FPrime-Code.cmake are in the cmake folder in the fprime repo, but one is being search in CMAKE_CURRENT_LIST_DIR/fprime and the other is being searched in  ${FPRIME_FRAMEWORK_PATH}/cmake
Testing/Review Recommendations
Created a new project with the cookiecutter CLI and got the following CMakeLists.txt
Also was able to generate and build the project with the new path.
####
# This sets up the build system for the 'MyProject' project, including
# components and deployments from project.cmake. In addition, it imports the core F Prime components.
####

cmake_minimum_required(VERSION 3.13)
project(MyProject C CXX)

###
# F' Core Setup
# This includes all of the F prime core components, and imports the make-system.
###
include("${FPRIME_FRAMEWORK_PATH}/cmake/FPrime.cmake")
# NOTE: register custom targets between these two lines
include("${FPRIME_FRAMEWORK_PATH}/cmake/FPrime-Code.cmake")

# This includes project-wide objects
include("${CMAKE_CURRENT_LIST_DIR}/project.cmake")

Future Work
The cookiecutter currently clones the fprime repository inside the project base folder. It would be more convenient to update the cookiecutter to prompt the user for the fprime folder's location. It can then search for the folder, and if found, there would be no need to clone it again. However, if the fprime folder is not found, the cookiecutter should proceed to clone the repository into the given location. Additionally, to accommodate users who prefer to install fprime in the project folder, the cookiecutter can have the default option of placing it in the project root folder.

At the CMake level, FPRIME_FRAMEWORK_PATH is not set when that first include("${FPRIME_FRAMEWORK_PATH}/cmake/FPrime.cmake") is called. This still works with fprime-util because it will parse and feed that variable in to CMake. But if you were to run pure cmake without fprime-util (e.g. in an IDE), this would result in an error (unless you pass it in manually).
So rather than an inconsistency, I would call that a debatable design choice. The only downside I can find to keeping it like it currently is, is that if you were to move the fprime/ submodule around, one would have to modify this relative path as well. Am I missing anything else?
Looking at our tutorials and reference suite, it looks like we're kind of using both approaches (see LedBlinker vs SystemReference). We may want to converge on a standard practice.
I'm not opposed to taking that change in - I just want to make sure we are on the same page.
@LeStarch thoughts?

@thomas-bc, Thanks for the feedback!
As you pointed out, there is indeed no guarantee that a fprime repository will be directly in the root directory of a project. We have observed fprime repositories being placed in various locations based on the project's structure and needs. F Prime tools can either impose restrictions on the subfolder's location, leaving it up to the user to handle manually, or we can update the tool to offer users the flexibility to choose the subrepo's location.
In general, if this turns out to be a complex and potentially problematic issue, we can dismiss this pull request.  I am also open to workout our way to update the tool to support this change for both pure cmake call and fprime-util if I can get some pointers to where to start.

fprime-util new --project both creates the cookie-cutter and clones F´.  Thus, either of the above solutions (original, updated) would both work?  The template knows where it will be put, and standard practice is to run with fprime-util that properly sets variables.
Thus the trade is this:

Make IDE easier at the expense of making custom F´ locations harder
Make custom F´ locations harder at the expense of IDE configuration

@saba-ja in order to run into this issue, did you run fprime-util new --project and then move the fprime checkout somewhere else?

One possible solution would be to have an fprime-util setup-ide command that generates IDE configuration files.  This would allow us to specify the appropriate variables for IDEs and make running IDEs much easier.

Closing the PR for a favor of a more completed solution.
The Future work would be to add option fprime-util setup-ide to generate IDE configuration files.


zoomIn / zoomOut center on panzoom-element's center

Wouldn't it be the case in most uses that if you invoke zoomIn/zoomOut with keys or buttons you would want to center on the panzoom-element's center?

Hello,
I want to zoom from center of parent div instead of center of image. Can anyone suggest me how to achieve this or any workaround for that..?


City names with french accents are misspelled when zoomed out

Description
City names with french accents are misspelled when zoomed out
Steps to Reproduce
Problem can be observed with city of Montreal in canada on Eraser Map app

Mapzen SDK & Android Version
SDK version 1.2.1 and Android 7.1.1

Good catch.
This is reproducible in the JS renderer as well: http://tangrams.github.io/bubble-wrap/#7.41667/45.345/-73.086, which makes me think this is a problem with the underlying data or the way the scene file is interpreting it.

This is no longer an issue when using the latest version of the Android SDK (1.4.0)


Can't access profile flow directly after password reset flow

Core Library
MSAL.js (@azure/msal-browser)
Core Library Version
3.7.1
Wrapper Library
MSAL React (@azure/msal-react)
Wrapper Library Version
2.0.10
Public or Confidential Client?
Public
Description
I have setup B2C authentication in my React app. Everything seems to be working. After a user successfully resets their password the user is automatically logged into the app. However,  i can't access profile flow directly without re-login, Is this the expected behavior or is there something in my code that needs to be changed? I would expect that the user should be able access the profile flow since it's logged into the app.
Error Message
No response
MSAL Logs
No response
Network Trace (Preferrably Fiddler)

[ ] Sent
[ ] Pending

MSAL Configuration
auth: {
    clientId: "33a06ec5-1d70-4a77-926e-dabb3444d6c5",
    authority: https://testb2ctmrw.b2clogin.com/testb2ctmrw.onmicrosoft.com/B2C_1_SignUpAndSignIn,
  },
    cache: {
        cacheLocation: "localStorage"
    },

Relevant Code Snippets
import { authScopes, b2cPolicies } from "@/authConfig";
import {
  AccountInfo,
  InteractionStatus,
  PopupRequest,
} from "@azure/msal-browser";
import {
  AuthenticatedTemplate,
  UnauthenticatedTemplate,
  useIsAuthenticated,
  useMsal,
} from "@azure/msal-react";

export default function Home() {
  const { instance, inProgress } = useMsal();
  const account = instance.getActiveAccount() as AccountInfo;

  const isAuthenticated = useIsAuthenticated();

  const handleLogin = () => {
    instance
      .loginPopup(authScopes)
      .then((response) => {
        console.log("Login successful!", response);
        instance.setActiveAccount(response.account);
      })
      .catch(function (error) {
        console.log(error);
      });
  };

  const handleLogout = () => {
    instance
      .logoutPopup(authScopes)
      .then(() => {})
      .catch(function (error) {
        console.log(error);
      });
  };

  const handleProfileEdit = () => {
    if (isAuthenticated && inProgress === InteractionStatus.None) {
      instance
        .acquireTokenPopup(b2cPolicies.authorities.editProfile as PopupRequest)
        .then((response) => {
          console.log("Update profile successful!", response);
          instance.setActiveAccount(response.account);
        })
        .catch(function (error) {
          console.log(error);
        });
    }
  };

  return (

      <AuthenticatedTemplate>

Welcome {account?.name} - You are logged in!

        <textarea
          rows={20}
          cols={150}
          value={JSON.stringify(account, null, 2)}
        />

        <button onClick={handleProfileEdit}>Update Profile</button>
        <button onClick={() => handleLogout()}>Logout</button>
      </AuthenticatedTemplate>
      <UnauthenticatedTemplate>

Sign in with your email address

        <button onClick={() => handleLogin()}>Login</button>
      </UnauthenticatedTemplate>

  );
}

Reproduction Steps

User run Reset Password flow (integrated into Login / Signup flow)
User logged into app
User can't  access profile flow without re-login

Expected Behavior

User run Reset Password flow
User logged into app
User can access profile flow without re-login

Identity Provider
Azure B2C Basic Policy
Browsers Affected (Select all that apply)
Chrome, Safari
Regression
No response
Source
External (Customer)

This is a question best answered by the B2C service and may be policy dependent. I would recommend opening a ticket with B2C support for assistance.


Is the trusted issuer list fetched from the correct source in debug builds?

If I download and build the iOS verifier app will it get the real trusted issuer list? Testing some real issued QR-codes from Sweden and some of the test data QR codes yields "Cryptographic signature not valid". Right now it looks like the will fetch data from https://dgca-verifier-service.cfapps.eu10.hana.ondemand.com but there is not mention if this is the correct source?

The apps in this GitHub organization are only templates that can be adapted or copied into the member state apps.
The member states are responsible for providing a trust list for their applications, as the EU does not provide a union-wide access point. Therefore the included URL only provides trust lists for testing purposes, not the production trust list.


Add =~ operator for regex check

I suggest to add a new infix operator =~ for checking whether a string matches a regex using the following implementation:
infix operator =~
func =~ (lhs: String, rhs: String) -> Bool {
    return lhs.range(of: rhs, options: .regularExpression) == lhs.range(of: lhs)
}

Use:
let stringMatchesRegex = "ABC" =~ "[A-Z]+"

I must say, the usage example looks really weird to me. If not documented that way, I'm not against adding such an operator. It's used in many other languages, so I think having an operator here is fine.
Note though, that I would also find it interesting to add support for getting captures easily. Until now I always used https://github.com/sharplet/Regex which I think both reads great and is a breeze to write.

Would you be up for a PR?

Why's the usage example weird? Not such a common use, but very basic ;)
Captures would require more than just adding a single operator, so I would suggest only adding the operator for the initial PR, alright?

It's weird because it reads like this for an unexperienced developer:
"let stringMatchesRegex equal "ABC" equal (again?) "[A-~]+" ... WTF?" 😄
So for documentation, please use a more common usage example like this:
if "ABC" =~ "[A-Z]+" {
    // do something
}

One thing I wonder is, will Xcode give you Regex errors if you use the infix operator? I don't think so. Having used sharplet/Regex I know that it's working there which adds a lot of safety to defining Regex strings. Do you think, you can use an implementation that fixes that?
Regarding letting go of the captures: Sure, let's start with one feature and add others later on. What I was trying to say is: Wouldn't it go against one of the major three goals of Swift – namely being Expressive – to use an operator? Shouldn't we be using something like sharplet/Regex does, a type for the regular expression with lots of handy features?
I'm not entirely against this, but I'm not completely convinced it's a good addition either.

You're probably right about the operator not really fitting into the Swift language. There's a reason operators such as ++ where removed.
With this in mind, I would actually withdraw my proposal, but suggest adding some other way for better regex processing to HandySwift.

What do you think about copying the classes Regex, MatchResult and String+ReplaceMatching off from sharplet/Regex and cleaning them up to only include the core functionality? I feel like it's pretty Swifty and has a good coverage of use cases.

Seems like a good idea to include core regex functionality without blowing up this repo with too much regex interfaces. Will figure out what's needed imo and make a PR in the upcoming weeks.


pywraplp GLOP_LINEAR_PROGRAMMING timeout

Hi,
I'm using pywraplp GLOP_LINEAR_PROGRAMMING linear solver and I've tried to use set_time_limit() to catch solution resulting in long simulation but seems to not affect the time limit. After some test seems that exist a limit of 20467 iterations (retrived with iterations()). It's possible to edit this limit?
Thanks

I do not understand what you tried to do or the question. Sorry

Here a snipper of the code I am running
from ortools.linear_solver import pywraplp

solver = pywraplp.Solver('my_simluation', pywraplp.Solver.GLOP_LINEAR_PROGRAMMING)
solver.set_time_limit(420000)

... # model definition

solver.Solve()
print(self.solver.iterations()))
print(self.solver.wall_time()))

The line solver.set_time_limit(420000) seems to be ignored since the solution gives TIMEOUT result with a wall time of 146629 that is less than the timeout setted.

did you try SetTimeLimit instead ?
https://github.com/google/or-tools/blob/4a0e9b1860276a021335aacb8b69e10a0d08942c/examples/tests/pywraplp_test.py#L89

Yes same result with SetTimeLimit().
Also noticed that the wall time start counting from the moment solver is instantiated instead of real simulation execution from the moment Solve() is invoked, as i thought.
To catch TIMEOUT I am using response code 6 marked with NOT_SOLVED

the stange thing is that if I run an example like linear_programming if I specify SetTimeLimit(1) works correctly returning status code 6.
I'll try to better debug my model

After some test the problem seems not related to time out. I tried to remove SetTimeLimit() and execute a simulation with CLP_LINEAR_PROGRAMMING instead of GLOP_LINEAR_PROGRAMMING. CLP_LINEAR_PROGRAMMING gives solution optimal while GLOP_LINEAR_PROGRAMMING gives solution not solved (the timeout stated before )

Can you send us the model ? MPS or protobuf.
Laurent Perron | Operations Research |<EMAIL_ADDRESS>| (33) 1 42 68 53
00
Le mer. 4 déc. 2019 à 16:40, Paolo Fusari<EMAIL_ADDRESS>a
écrit :

After some test the problem seems not related to time out. I tried to
remove SetTimeLimit() and execute a simulation with
CLP_LINEAR_PROGRAMMING instead of GLOP_LINEAR_PROGRAMMING.
CLP_LINEAR_PROGRAMMING gives solution optimal while GLOP_LINEAR_PROGRAMMING
gives solution not solved (the timeout stated before )
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/google/or-tools/issues/1763?email_source=notifications&email_token=ACUPL3PIPHE6VSGYCQB7ENLQW7FNLA5CNFSM4JVFXCJ2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEF5OAAA#issuecomment-561700864,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ACUPL3M7BEBYEXQZLXDT5JLQW7FNLANCNFSM4JVFXCJQ
.

the same problem exists with java

I call the method solve() with timeout setting in java first time , it return not_solved. Then i call the solve() second time , it return feasible

I call the method solve() with timeout setting in java first time , it return not_solved. Then i call the solve() second time , it return feasible

cannot reproduce (no data). Reopen if needed.


⚠ Bofrost.fr has degraded performance

In 8308df1, Bofrost.fr (https://www.bofrost.fr) experienced degraded performance:

HTTP code: 200
Response time: 1664 ms

Resolved: Bofrost.fr performance has improved in e951a6d after 6 minutes.


Use nmcli on linux

nmcli comes with the network-manager package so no need to install other packages or grep network-manager's config

Thank you for this fix!

Thank you for this fix!

I don't believe this works properly. nmcli -t -f ssid dev wifi is giving me the output of all of my SSID's not just the connected one.

I don't believe this works properly. nmcli -t -f ssid dev wifi is giving me the output of all of my SSID's not just the connected one.

@littlediobolic
I'm thinking of dropping support for Linux for the time being. We can bring back support for Linux once we find a stable solution. What do you think?

@littlediobolic
I'm thinking of dropping support for Linux for the time being. We can bring back support for Linux once we find a stable solution. What do you think?

Its ultimately your choice, but I think its worth spending some time on a more fleshed out solution in a PR and do some more thorough testing to ensure the changes made work on most major distros. Unfortunately network management can vary from device to device making it hard to account for everything. For instance, the Raspberry Pi doesnt even use NetworkManager at all to manager Wifi AFAIK. I think it would be best to revert to a working state for now and see what comes up.

Its ultimately your choice, but I think its worth spending some time on a more fleshed out solution in a PR and do some more thorough testing to ensure the changes made work on most major distros. Unfortunately network management can vary from device to device making it hard to account for everything. For instance, the Raspberry Pi doesnt even use NetworkManager at all to manager Wifi AFAIK. I think it would be best to revert to a working state for now and see what comes up.

I have removed support for Linux in #23

I have removed support for Linux in #23


Getting exception on frontend after updating meta data.

Bug report
Title
Getting exception on frontend after updating meta data.
Issue Description
Getting exception on frontend after updating meta data.
Preconditions
1. framework Version- master

Steps to reproduce
1. step1- Go to velocity grid and in meta data section add images and update it.
2. step2- Go to frontend.

Expected result
Home page should display.
Actual result

Fixed

This Bug occurs again on version 1.1.0

Hi @jestainternetsolutions
Could you please mention reproduce steps.
In which section of advertisement images(one,two,,three) you are getting this issue.
Also mention your php version.

@vaishaliwebkul
Running on PHP 7.2.19
The problem occurs on all sections
Steps to reproduce

Navigate to Velocity => Meta data => images
Add images to one of the sections
Save the changes
Open front-end (then the changes are vissible)
Navigate to Velocity => Meta data => images (now there are no images in none of the sections)
Add images to another section
Save the changes
On this point all previous settiings are overwritten

https://www.loom.com/share/d321953cb37c4d5ca466415ea00aa4c7

@vaishaliwebkul can you give us an update on this issue?

@jestainternetsolutions
As I have checked exception is not occurs right now, instead of the actual issue is advertisement images are not saved in the asset.
This issue will fix soon OR by tomorrow.
Thanks.

@jestainternetsolutions
Now Issue has been fixed in master.
Take pull from the master branch and check again.


Raise an error if someone tries to start an app from a stub that is already starting or running

Describe your changes
Previously, it could lead to unexpected behavior in case a user accidentally put a stub.run() block within their local entrypoint and then called the script using modal run. The second call would take over the output management and overwrite the original app run's output, making it look like the app hangs during setup. User ran into this in beta-testing slack
I don't love adding this extra stuff the already large stub class, but I don't see an easy way around that in this case?

I did consider it but then didn't go that route for some reason. Can't see why now that I look at the code, so I'll change to using the already existing _set_app route (should be a super easy change)


Remove the custom Plasma session script

The custom Plasma session script must be removed so that the display manager will use the .desktop files instead. This is necessary to support Plasma on Wayland. It would also fix a bug where Plasma can be loaded with an unsupported window manager. The steps that currently run in the session script must still run at start-up; we should look at what Gnome does here.

Still relevant I think

Looks fixed now


Parallel Test

Coverage decreased (-0.05%) to 26.687% when pulling 93a8190f992279e737622128b4eed6db98012f4d on parallelTest into d4fdb71c0659fb0512d9f637ea8ad4973f2f277c on master.


Fixes the flickering scrollbar when withdrawing or depositing items i…

…n a bank tag while "Remove tab separators" is enabled.
I've added a new runelite_callback in bankmain_finishbuilding which allows plugins to change the bank scrollbar height argument. Fixing and re-using the old bank scroll height callback was not possible because it was coupled to the tag tab tab's skipping item drawing, so I removed it and updated the tag tab tab to use the new callback to set the scroll height.
Potential issues:

I'm not sure what https://github.com/runelite/runelite/pull/12466 does or if it still happens after my change. I deleted the code for it but I didn't notice any change in the behavior it was supposed to change.

It looks to me like this regresses #13761 since it is removing the isTagTabActive check to rebuild the scroll yet not replacing it?

It does not regress #13761. #13761 is re-implemented here in the change to TabInterface where a new callback for setScrollbarHeight is added. Scrollbar flickering occured with #13761, so it had to be changed to use the new setScrollbarHeight rather than the invokeLater.
the history of tag tab tab scrolling is:

initially it worked due to setBankScroll.
it broke when the script was incorrectly updated.
I fixed it using invokeLater in #13761.
Now I've updated it to not scrollbar flicker in this br.

fixed in c8ec004b7af874ab670b6494b9ba61a37db77502


Use a validator from a provider

Hi, i have a set of base validators in a provider and i want to use them as a route validator.
I add the singleton in the provider like this:
 this.app.singleton('Nuviio/Validators/UserOwnedListValidator', () => {
      return require('./Validators/UserOwnedListValidator')
    })

And i try to call it in a controller like this.
Route.get('/', 'Api/CampaignController.list')
    .middleware([
      'logRequest',
      'auth:jwt',
      'userIsActive',
      'processQueryParams'
    ]).validator(['Nuviio/Validators/UserOwnedListValidator'])

It always gives me a module_not_found error. Please help.

Closing since answered and no response from issue reporter.


UnboundLocalError on start attempt

Attempt to run the pot is failing with error.
OS: Windows 10 x64
Python: Python 3.8.5
Browser: Chrome 84.0.4147.105
PS C:\RailNationBot-master\code> py .\install.py
Requirement already satisfied: pyautogui in c:\python38\lib\site-packages (0.9.50)
Requirement already satisfied: pymsgbox in c:\python38\lib\site-packages (from pyautogui) (1.0.8)
Requirement already satisfied: PyTweening>=1.0.1 in c:\python38\lib\site-packages (from pyautogui) (1.0.3)
Requirement already satisfied: pyscreeze>=0.1.21 in c:\python38\lib\site-packages (from pyautogui) (0.1.26)
Requirement already satisfied: pygetwindow>=0.0.5 in c:\python38\lib\site-packages (from pyautogui) (0.0.8)
Requirement already satisfied: mouseinfo in c:\python38\lib\site-packages (from pyautogui) (0.1.3)
Requirement already satisfied: Pillow>=6.2.1 in c:\python38\lib\site-packages (from pyscreeze>=0.1.21->pyautogui) (7.2.0)
Requirement already satisfied: pyrect in c:\python38\lib\site-packages (from pygetwindow>=0.0.5->pyautogui) (0.1.4)
Requirement already satisfied: pyperclip in c:\python38\lib\site-packages (from mouseinfo->pyautogui) (1.8.0)
Requirement already satisfied: opencv-python in c:\python38\lib\site-packages (<IP_ADDRESS>)
Requirement already satisfied: numpy>=1.17.3 in c:\python38\lib\site-packages (from opencv-python) (1.19.1)
Requirement already satisfied: numpy in c:\python38\lib\site-packages (1.19.1)
Requirement already satisfied: pynput in c:\python38\lib\site-packages (1.6.8)
Requirement already satisfied: six in c:\python38\lib\site-packages (from pynput) (1.15.0)
PS C:\RailNationBot-master\code> py .\railBonuses.py
Program started at 00-14
Traceback (most recent call last):
  File ".\railBonuses.py", line 22, in <module>
    env.init(Resolution, Language)
  File "C:\RailNationBot-master\code\resources\env.py", line 45, in init
    name_images = lang.lang(Language)
  File "C:\RailNationBot-master\code\lang\lang.py", line 13, in lang
    return [assoc_1, assoc_2, continue_last, bonus_cant_already, lotery_free, lotery_bonus, bonus_you, video_present, secure_bonus, skip_buy_ticket, bonus_money, bonus_prestige, sudenly_error]
UnboundLocalError: local variable 'bonus_cant_already' referenced before assignment

Sorry this one is caused by attempt to set language to ru

ru is not suported ... yet.

yeah ive got it. but tha main thing here that i cant get it working even with EN locale

need some images from in-game. So please give me an invitation in an assoc. I am bad at russian language. :D

yeah ive got it. but tha main thing here that i cant get it working even with EN locale

it's about the other issue ?

@Cristishor201 i can provide you with screenshots both in eng and russian

that's even way better ;)

yeah ive got it. but tha main thing here that i cant get it working even with EN locale

it's about the other issue ?

no, its simply not working.
bot opens the associacion widget, movin cursor to the wighet header, moves cursor horizontally and falls asleep, really weird

screenshots russian.zip
here are russian screenshots

@Cristishor201 screenshots en.zip
And here are English (UK) as it is shown to me


Find a solution so the map components access the app-level RegionDB

work in progress https://www.dropbox.com/scl/fi/cv1o8tqqh3m5yk8gb9it4/Refactoring-Maps.paper?dl=0&rlkey=dscnn11usno213fi8n0dtml6z

Done


The error is not clear when creating a database for PostgreSQL server without configuring firewall to connect to it

OS: Win10
Build Version: 20230822.5
Regression: Not a Regression
Repro Steps:

Create one PostgreSQL server.
Don't configure firewall to connect to this PostgreSQL server.
Try to create a database for the above PostgreSQL server, an error occurs.
Check whether the error is clear or not.

Expect:
The error is clear, such as "Fail to create database, please configure firewall to connect server first".
Actual:
The error is not clear.

The below error occurs when creating a database for PostgreSQL Single server.

Another error occurs when creating a database for PostgreSQL Flexible server.

More Info:
This issue also reproduces on the current released extension v0.19.4.

Verified this bug on a newer build 20230927.1, the error message changes.

@v-ruizh The message is only shown when the extension's detected IP is already in the firewall rules but still fails to connect. Since the extension can only add the detected IP to the firewall rule, there is no point trying to do it again. The messages suggests people to try it on Portal because it may have a better chance of setting the correct IP.


How about use go-dockerclient ?

Just found this repo, it is easy to do a integration test with postgres for golang project.
How about using some golang dockerclient instead of wrapping docker cli and parsing byte output ?

go-dockerclient
dockerclient

Good point, docker-machine unfortunately has no go bindings yet which is why this was originally written using the CLI. However it might be smarter to detect if docker-machine is available, boot it and pass the env vars to go-dockerclient or dockerclient.
The reason why this has not been done yet is because of the adaptation of camlistores dockertest implementation, which uses the CLI as well.
If no issues arise from using the CLI instead of bindings/APIs, I'd flag this as nice-to-have/low-prio. Do you agree?

Okk.

Cool, thanks for bringing your thoughts to the project!

You can now do this with https://github.com/ory-am/dockertest/pull/46 and following