Repositories without tags display error

Description
I am working on a repository without any tags and this seems to cause commit and general git operations to fail occasionally.
> git --no-pager --literal-pathspecs --no-optional-locks -c core.preloadindex=true -c color.ui=always describe --long --tags HEAD
fatal: No names found, cannot describe anything.

This is because the repository I work with doesn't have any tags I believe
Neovim version
NVIM v0.9.2
Build type: RelWithDebInfo
LuaJIT 2.1.1692716794
Operating system and version
Linux fedora 6.6.4-200.fc39.x86_64
Steps to reproduce
Create a commit in a repository without tags
Expected behavior
No response
Actual behavior
The commit message hangs after saving the message and never actually makes the commit.
Minimal config
-- NOTE: See the end of this file if you are reporting an issue, etc. Ignore all the "scary" functions up top, those are
-- used for setup and other operations.
local M = {}

local base_root_path = vim.fn.fnamemodify(debug.getinfo(1, "S").source:sub(2), ":p:h") .. "/.min"
function M.root(path)
  return base_root_path .. "/" .. (path or "")
end

function M.load_plugin(plugin_name, plugin_url)
  local package_root = M.root("plugins/")
  local install_destination = package_root .. plugin_name
  vim.opt.runtimepath:append(install_destination)

  if not vim.loop.fs_stat(package_root) then
    vim.fn.mkdir(package_root, "p")
  end

  if not vim.loop.fs_stat(install_destination) then
    print(string.format("> Downloading plugin '%s' to '%s'", plugin_name, install_destination))
    vim.fn.system({
      "git",
      "clone",
      "--depth=1",
      plugin_url,
      install_destination,
    })
    if vim.v.shell_error > 0 then
      error(string.format("> Failed to clone plugin: '%s' in '%s'!", plugin_name, install_destination),
        vim.log.levels.ERROR)
    end
  end
end

---@alias PluginName string The plugin name, will be used as part of the git clone destination
---@alias PluginUrl string The git url at which a plugin is located, can be a path. See https://git-scm.com/book/en/v2/Git-on-the-Server-The-Protocols for details
---@alias MinPlugins table<PluginName, PluginUrl>

---Do the initial setup. Downloads plugins, ensures the minimal init does not pollute the filesystem by keeping
---everything self contained to the CWD of the minimal init file. Run prior to running tests, reproducing issues, etc.
---@param plugins? table<PluginName, PluginUrl>
function M.setup(plugins)
  vim.opt.packpath = {}                      -- Empty the package path so we use only the plugins specified
  vim.opt.runtimepath:append(M.root(".min")) -- Ensure the runtime detects the root min dir

  -- Install required plugins
  if plugins ~= nil then
    for plugin_name, plugin_url in pairs(plugins) do
      M.load_plugin(plugin_name, plugin_url)
    end
  end

  vim.env.XDG_CONFIG_HOME = M.root("xdg/config")
  vim.env.XDG_DATA_HOME = M.root("xdg/data")
  vim.env.XDG_STATE_HOME = M.root("xdg/state")
  vim.env.XDG_CACHE_HOME = M.root("xdg/cache")

  -- NOTE: Cleanup the xdg cache on exit so new runs of the minimal init doesn't share any previous state, e.g. shada
  vim.api.nvim_create_autocmd("VimLeave", {
    callback = function()
      vim.fn.system({
        "rm",
        "-r",
        "-f",
        M.root("xdg")
      })
    end
  })
end

-- NOTE: If you have additional plugins you need to install to reproduce your issue, include them in the plugins
-- table within the setup call below.
M.setup({
  plenary = "https://github.com/nvim-lua/plenary.nvim.git",
  telescope = "https://github.com/nvim-telescope/telescope.nvim",
  diffview = "https://github.com/sindrets/diffview.nvim",
  neogit = "https://github.com/NeogitOrg/neogit"
})
-- WARN: Do all plugin setup, test runs, reproductions, etc. AFTER calling setup with a list of plugins!
-- Basically, do all that stuff AFTER this line.
require("neogit").setup({}) -- For instance, setup Neogit

local neogit = require('neogit')

neogit.setup {
  -- Hides the hints at the top of the status buffer
  disable_hint = false,
  -- Disables changing the buffer highlights based on where the cursor is.
  disable_context_highlighting = true,
  -- Disables signs for sections/items/hunks
  disable_signs = false,
  -- Do not ask to confirm the commit - just do it when the buffer is closed.
  disable_commit_confirmation = false,
  -- Uses `vim.notify` instead of the built-in notification system.
  disable_builtin_notifications = false,
  -- Changes what mode the Commit Editor starts in. `true` will leave nvim in normal mode, `false` will change nvim to insert mode, and `"auto"` will change nvim to insert mode IF the commit message is empty, otherwise leaving it in normal mode.
  -- When enabled, will watch the `.git/` directory for changes and refresh the status buffer in response to filesystem
  -- events.
  disable_insert_on_commit = true,
    filewatcher = {
    interval = 1000,
    enabled = true,
  },
  -- Used to generate URL's for branch popup action "pull request".
  git_services = {
    ["github.com"] = "https://github.com/${owner}/${repository}/compare/${branch_name}?expand=1",
    ["bitbucket.org"] = "https://bitbucket.org/${owner}/${repository}/pull-requests/new?source=${branch_name}&t=1",
    ["gitlab.com"] = "https://gitlab.com/${owner}/${repository}/merge_requests/new?merge_request[source_branch]=${branch_name}",
  },
  -- Allows a different telescope sorter. Defaults to 'fuzzy_with_index_bias'. The example below will use the native fzf
  -- sorter instead. By default, this function returns `nil`.
  telescope_sorter = function()
    return require("telescope").extensions.fzf.native_fzf_sorter()
  end,
  -- Persist the values of switches/options within and across sessions
  remember_settings = true,
  -- Scope persisted settings on a per-project basis
  use_per_project_settings = true,
  -- Table of settings to never persist. Uses format "Filetype--cli-value"
  ignored_settings = {
    "NeogitPushPopup--force-with-lease",
    "NeogitPushPopup--force",
    "NeogitPullPopup--rebase",
    "NeogitCommitPopup--allow-empty",
    "NeogitRevertPopup--no-edit",
  },
  -- Neogit refreshes its internal state after specific events, which can be expensive depending on the repository size.
  -- Disabling `auto_refresh` will make it so you have to manually refresh the status after you open it.
  auto_refresh = true,
  -- Value used for `--sort` option for `git branch` command
  -- By default, branches will be sorted by commit date descending
  -- Flag description: https://git-scm.com/docs/git-branch#Documentation/git-branch.txt---sortltkeygt
  -- Sorting keys: https://git-scm.com/docs/git-for-each-ref#_options
  sort_branches = "-committerdate",
  -- Change the default way of opening neogit
  kind = "tab",
  -- The time after which an output console is shown for slow running commands
  console_timeout = 2000,
  -- Automatically show console if a command takes more than console_timeout milliseconds
  auto_show_console = true,
  status = {
    recent_commit_count = 10,
    recent_commit_include_author_info = true,
  },
  commit_editor = {
    kind = "split",
  },
  commit_select_view = {
    kind = "tab",
  },
  commit_view = {
    kind = "vsplit",
  },
  log_view = {
    kind = "tab",
  },
  rebase_editor = {
    kind = "split",
  },
  reflog_view = {
    kind = "tab",
  },
  merge_editor = {
    kind = "split",
  },
  preview_buffer = {
    kind = "split",
  },
  popup = {
    kind = "split",
  },
  signs = {
    -- { CLOSED, OPENED }
    hunk = { "", "" },
    item = { "", "" },
    section = { "", "" },
  },
  -- Each Integration is auto-detected through plugin presence, however, it can be disabled by setting to `false`
  integrations = {
    -- If enabled, use telescope for menu selection rather than vim.ui.select.
    -- Allows multi-select and some things that vim.ui.select doesn't.
    telescope = nil,
    -- Neogit only provides inline diffs. If you want a more traditional way to look at diffs, you can use `diffview`.
    -- The diffview integration enables the diff popup.
    --
    -- Requires you to have `sindrets/diffview.nvim` installed.
    diffview = nil,
  },
  sections = {
    -- Reverting/Cherry Picking
    sequencer = {
      folded = false,
      hidden = false,
    },
    untracked = {
      folded = false,
      hidden = false,
    },
    unstaged = {
      folded = false,
      hidden = false,
    },
    staged = {
      folded = false,
      hidden = false,
    },
    stashes = {
      folded = true,
      hidden = false,
    },
    unpulled_upstream = {
      folded = true,
      hidden = false,
    },
    unmerged_upstream = {
      folded = false,
      hidden = false,
    },
    unpulled_pushRemote = {
      folded = true,
      hidden = false,
    },
    unmerged_pushRemote = {
      folded = false,
      hidden = false,
    },
    recent = {
      folded = true,
      hidden = false,
    },
    rebase = {
      folded = true,
      hidden = false,
    },
  },
  mappings = {
    finder = {
      ["<cr>"] = "Select",
      ["<c-c>"] = "Close",
      ["<esc>"] = "Close",
      ["<c-n>"] = "Next",
      ["<c-p>"] = "Previous",
      ["<down>"] = "Next",
      ["<up>"] = "Previous",
      ["<tab>"] = "MultiselectToggleNext",
      ["<s-tab>"] = "MultiselectTogglePrevious",
      ["<c-j>"] = "NOP",
    },
    popup = {
      ["?"] = "HelpPopup",
      ["A"] = "CherryPickPopup",
      ["D"] = "DiffPopup",
      ["M"] = "RemotePopup",
      ["p"] = "PushPopup",
      ["X"] = "ResetPopup",
      ["Z"] = "StashPopup",
      ["b"] = "BranchPopup",
      ["c"] = "CommitPopup",
      ["f"] = "FetchPopup",
      ["l"] = "LogPopup",
      ["m"] = "MergePopup",
      ["F"] = "PullPopup",
      ["r"] = "RebasePopup",
      ["v"] = "RevertPopup",
    },
    status = {
      ["q"] = "Close",
      ["I"] = "InitRepo",
      ["1"] = "Depth1",
      ["2"] = "Depth2",
      ["3"] = "Depth3",
      ["4"] = "Depth4",
      ["<tab>"] = "Toggle",
      ["x"] = "Discard",
      ["s"] = "Stage",
      ["S"] = "StageUnstaged",
      ["<c-s>"] = "StageAll",
      ["u"] = "Unstage",
      ["U"] = "UnstageStaged",
      ["d"] = "DiffAtFile",
      ["$"] = "CommandHistory",
      ["#"] = "Console",
      ["<c-r>"] = "RefreshBuffer",
      ["<enter>"] = "GoToFile",
      ["<c-v>"] = "VSplitOpen",
      ["<c-x>"] = "SplitOpen",
      ["<c-t>"] = "TabOpen",
      ["{"] = "GoToPreviousHunkHeader",
      ["}"] = "GoToNextHunkHeader",
    },
  },
}

This error is innocuous. It does not seem to be causing the problem I am seeing.

It appears to only be a cosmetic thing, not the root cause of this issue: https://github.com/NeogitOrg/neogit/issues/1069


build with --prod not working

[17:37:27]  ngc started ...
can't resolve module ./image-viewer-transitions from /home/mkamran/Repositories/waitforme-driver/node_modules/ionic-img-viewer/dist/src/module.d.ts
[17:37:31]  build prod failed: Cannot read property 'registerCustomTransitions' of undefined, resolving symbol
IonicImageViewerModule in
/home/mkamran/Repositories/waitforme-driver/node_modules/ionic-img-viewer/dist/src/module.d.ts, resolving
symbol IonicImageViewerModule in
/home/mkamran/Repositories/waitforme-driver/node_modules/ionic-img-viewer/dist/src/module.d.ts
[WARN] Error occurred during command execution from a CLI plugin (@ionic/cli-plugin-cordova).
Error: Cannot read property 'registerCustomTransitions' of undefined, resolving symbol IonicImageViewerModule in /home/mkamran/Repositories/waitforme-driver/node_modules/ionic-img-viewer/dist/src/module.d.ts, resolving symbol IonicImageViewerModule in /home/mkamran/Repositories/waitforme-driver/node_modules/ionic-img-viewer/dist/src/module.d.ts
Please provide you version information :

Dependency
Version

ionic2
2.1.0

angular
2.2.1

ionic-img-viewer
1.3.4

Have you checked...

[-] That npm install returns no warning ?

[-] Doing a purge of your node_modules folder ?

NPM Warnings.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY<EMAIL_ADDRESS>(node_modules/chokidar/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for<EMAIL_ADDRESS>wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY<EMAIL_ADDRESS>(node_modules/watchpack/node_modules/chokidar/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for<EMAIL_ADDRESS>wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN<EMAIL_ADDRESS>requires a peer of<EMAIL_ADDRESS>but none was installed.
npm WARN<EMAIL_ADDRESS>requires a peer of<EMAIL_ADDRESS>but none was installed.
npm WARN<EMAIL_ADDRESS>requires a peer of<EMAIL_ADDRESS>but none was installed.
npm WARN<EMAIL_ADDRESS>requires a peer of<EMAIL_ADDRESS>but none was installed.
npm WARN<EMAIL_ADDRESS>requires a peer of<EMAIL_ADDRESS>but none was installed.
npm WARN<EMAIL_ADDRESS>requires a peer of<EMAIL_ADDRESS>but none was installed.
npm WARN<EMAIL_ADDRESS>requires a peer of<EMAIL_ADDRESS>but none was installed.
npm WARN<EMAIL_ADDRESS>requires a peer of<EMAIL_ADDRESS>but none was installed.
npm WARN<EMAIL_ADDRESS>requires a peer of<EMAIL_ADDRESS>but none was installed.
npm WARN<EMAIL_ADDRESS>requires a peer of<EMAIL_ADDRESS>but none was installed.
npm WARN<EMAIL_ADDRESS>requires a peer of<EMAIL_ADDRESS>but none was installed.
npm WARN<EMAIL_ADDRESS>requires a peer of<EMAIL_ADDRESS>but none was installed.
npm WARN<EMAIL_ADDRESS>requires a peer of<EMAIL_ADDRESS>but none was installed.
npm WARN<EMAIL_ADDRESS>requires a peer of<EMAIL_ADDRESS>but none was installed.
npm WARN<EMAIL_ADDRESS>requires a peer of<EMAIL_ADDRESS>but none was installed.
npm WARN<EMAIL_ADDRESS>requires a peer of<EMAIL_ADDRESS>but none was installed.
npm WARN<EMAIL_ADDRESS>requires a peer of<EMAIL_ADDRESS>but none was installed.
npm WARN<EMAIL_ADDRESS>requires a peer of<EMAIL_ADDRESS>but none was installed.
npm WARN<EMAIL_ADDRESS>requires a peer of<EMAIL_ADDRESS>but none was installed.
npm WARN<EMAIL_ADDRESS>requires a peer of<EMAIL_ADDRESS>but none was installed.

I'm sorry but I won't publish fixes for old versions of the plugin.
If you problem persists, please upgrade to the latest versions of ionic-img-viewer & ionic-angular

This issue is not solved after upgrading to to latest versions of ionic-img-viewer & ionic-angular


Collect information on related projects

Am interested in tracking how well package data structures would harmonise with related projects, especially domain specific or larger ecological databases.
Got a related project? Please add details and feel free to get in touch!

BAAD: a Biomass And Allometry Database for woody plants
https://github.com/dfalster/baad
The Biomass And Allometry Database (BAAD) contains data on the construction of woody plants across the globe. These data were gathered from over 170 published and unpublished scientific studies, most of which was not previously available in the public domain. It is our hope that making these data available will improve our ability to understand plant growth, ecosystem dynamics, and carbon cycling in the world's woody vegetation. The dataset is described further in the publication

Biofuel Ecophysiological Traits and Yields database (BETYdb)
https://www.betydb.org/
BETYdb has been developed to support research, agriculture, and policy by synthesizing available information on potential biofuel crops.
https://github.com/pecanproject/bety
The website is primarily written in Ruby-on-Rails, and has a MySQL backend. BETYdb provides an interface for contributing and accessing data, and is the informatics backend for the Predictive Ecosystem Analyzer (PEcAn).

Coral Trait Database
https://coraltraits.org/
The Coral Trait Database is a growing compilation of scleractinian coral life history trait, phylogenetic and biogeographic data. As of today, there are 68248 coral observations with 105244 trait entries of 147 traits for 1548 coral species in the database. Most of these entries are for shallow-water, reef-building species.
Great web interface!!

Traitbase
https://github.com/ibartomeus/traitbase
This is a guide to create a package to host, manage and deliver small dynamic data to the world. Tinny datasets, often static, containing scientific data can be hosted in several places (e.g. dryad, figshare). Similarly, big projects generating big data have the power to create customized data portals (e.g. gbif). But there is a lot of medium sized data that its well curated, dynamic, but that usually lives in a local computer because is not technically easy and/or cheap to put in the public domain. This is an attempt to liberate such data in a programatic way and use it as a guide or template for others to do the same.

Very similar project which appears to be more developed in areas rmacroRDM is still lacking eg #4


Document the COPY statement

It is mentioned here https://www.cockroachlabs.com/docs/training/import-data.html but with no links and the COPY statement is not documented in the list of supported statements.

Closing in favor of https://github.com/cockroachdb/docs/issues/9022.


Improvements to doc strings for command-line help

This pull request fleshes out the documentation that helps command-line users use tmuxp:

Fix an inaccuracy in the freeze docstring
Expand documentation for the load command significantly, explaining how CONFIG is interpreted
Fix short help strings so they don't get cut off with ...
Add a global help string.
Minor spelling/wording improvements

good eye @myw!


Halloweenexperiments

I added animate.css (open source, MIT license) to the css folder and inserted animation classes to the text headers. Also added: Halloween-y text shadows.

Love it!


Platformer character sticking to walls instead of sliding down

I'm making a tile-based platformer, where every tile is it's own static rectangular physics body. I also have a platformer character which uses the following code to move on the beforeUpdate event:
beforeUpdateHandler(eventData: any): void {
	const deltaTime = eventData.delta as number;
	const vel = this.velocity.clone();

	//Apply gravity
	if (this.applyGravity){
		Matter.Body.applyForce(
			this._physicsObject!,
			this._physicsObject!.position,
			new Vector(0, -this._engine!.room.gravity)
		);

		//If an object is moving against gravity, remove the cumulative force to make control of object more natural
		if (this.velocity.y > 0){
			const newPhysVel = Vector.fromObject(this._physicsObject!.velocity);
			newPhysVel.y = this.velocity.y - this._engine!.room.gravity * 9.81;
			Matter.Body.setVelocity(this._physicsObject!, newPhysVel);
		}
	}

	//clamp object's velocity
	const maxVel = Sprite.DIMENSIONS / deltaTime;
	Matter.Body.setVelocity(this._physicsObject!, {
		x: Util.clamp(this._physicsObject!.velocity.x, -maxVel, maxVel),
		y: Util.clamp(this._physicsObject!.velocity.y, -maxVel, maxVel),
	});

	vel.add(this._physicsObject!.velocity as Vector).add(this.moveVector).scale(deltaTime);
	Matter.Body.translate(this._physicsObject!, vel);
	this.moveVector.set(0, 0);
}

However, I'm running into a problem where when the player jumps into a wall, they're overlapping slightly causing the player to 'stick,' between tiles instead of sliding all the way down. How can I fix this?

A full/runnable (preferably minimal) example that reproduces the problem would be easier to help with.

Ok, here is the simplest repro I could make that also recreates the original environment. The main matter related code is in Instance.js, and main.js only handles calling Matter.Engine.Create() and Matter.Engine.Update().
SimpleRepro.zip

Force.Engine.Create
Please, use:
matrix = 687/70
{1/2, 3/2, 5/2, 7/2}
{3/2, 5/2, 7/2, 9/2}
{1, 2, 3, 4}
{3/2, 5/3, 7/5, 9/7}
Changin values acceleration changes.
Changing acceleration matrix changes.
So on:
Matrix.Engine.Create

this.moveVector.set(0, 0) ~ this.moveVector.set(matrix)
matrix = 687, 70
On Earth

I'm like 90% sure mariomadrid is a bot or something. Either that, or they're having a stroke.


Docs Review Initial Pass

Summary
Details and comments

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 85.795%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
17413

Relevant Lines:
20296

💛  - Coveralls


Not working

When I used my jio network than app was only loading not come anything

Basically the same for me. It gets as far as "Initializing" and never plays anything.

no follow up & not clear


Disable URL change on record selection/edit

This was added with the newest release.
When a selection is made in Slickgrid, the URL changes.
See: http://serenity.is/demo/Northwind/Customer#edit/3

Why is this a problem i wonder, it lets your back button to work. Q.Router.enabled = false.


Separate javaType into 'existingJavaType' and 'javaType'

At present javaType has two jobs, it can be used to reference an existing classpath type and also to give a newly generated type a fixed fully-qualified name. This was a bad design, for instance:

All 'existing' referenced classes need to be present on the classpath to avoid getting a new class generated, even though in fact there is no need to require them at generation time.
Sources are not regenerated if previous class files are not cleaned from the project, because it's assumed that these types are 'existing' classes that are being used and should not be generated.

We should split these features, so that the schema author needs to be explicit.

First off, great plugin.  If this particular item has not been implemented yet, might it be possible to name it "existingJavaType"?
We use UML modeling toolsets that aid in auto-generating API JSON specifications which in turn we then leverage jsonSchema2Pojo durings builds.  As developers roll on and off we've witnessed with other jsonSchema2Pojo extensions that deviate a bit from the "norm" that the devs improperly name the extension to what seems intuitive which doesn't get picked up in our build process.
One example is the existing feature for "extendsJavaClass" extension that the plugin supports.  It never fails that periodically someone will declare it as "extendsJavaType" (which does seem to make logical sense as an extension of "javaType") but the resulting POJOs don't pick it up and it takes another cycle to fix.  Maybe a wish here...but if the plugin supported both "extendsJavaClass" for backwards compatibility as well as "extendsJavaType" perhaps it would eliminate this for anyone who's perhaps has also encountered it.
In any event, just throwing out thoughts from day-to-day experience.

Thanks!!

Benefits I think we'll get after implementing this:

People can use existingJavaType to reference a class even if that class is not on the classpath

People can re-run their build without having to 'clean', because the generated output will not depend on the current state of the classpath

It seems the feature of "existingJavaType" already works if we specify only "javaType" and no "type".
  "type":"object",
  "properties": {
    "baz": {
      "javaType": "my.Custom"
    }
  }
}

@pnmalav yes, that's right. javaType currently allows you to either create new classes or reference existing classes from the classpath.
In the next release, you will use javaType to give a specific name to a new class. If you want to refer to an existing class, you will use existingJavaType.

@joelittlejohn the example I provided works even if my.Custom is not in classpath. There is no Custom class created, unless I specify "type":"object".
This will create a Custom class as well
{
  "type":"object",
  "properties": {
    "baz": {
      "javaType": "my.Custom",
      "type": "object"
    }
  }
}

@pnmalav thanks, I wasn't aware of this workaround. I think this is the kind of ambiguous behaviour that we need to fix.

@joelittlejohn  in which version has this issue been fixed ?

@ajayboseac This change was introduced in 1.0.0-alpha3. Check the CHANGELOG.md (and the 'Milestone' field on this issue).


feat: Get DOM Tree Height

Recursive and iterative(BFS and DFS) solutions to get DOM tree height

thanks for your pr, please add the time & space cost for each approach and also you can add credit link to your github account.

thanks for your pr, please add the time & space cost for each approach and also you can add credit link to your github account.

@BFEdev These have been added.


Regenerate docs at latest public version using #1503 code

Fixes
#1457
Description
The doc generation code in #1503 results in pages using a newer Dokka theme than my original PR. This PR regenerates the currently checked-in docs using the new theme, resulting in a very noisy set of files changed but the actual content is the same.
Type
Documentation
Checklist

[x] I have read and acknowledged the Code of conduct.
[x] I have read the Contributing page.
[x] I have signed the Google Individual CLA, or I am covered by my company's Corporate CLA.
[ ] I have discussed my proposed solution with code owners in the linked issue(s) and we have agreed upon the general approach.
[ ] I have run ./gradlew spotlessApply and ./gradlew spotlessCheck to check my code follows the style guide of this project.
[ ] I have run ./gradlew check and ./gradlew connectedCheck to test my changes locally.
[ ] I have built and run the demo app(s) to verify my change fixes the issue and/or does not break the demo app(s).

It appears that test code is now getting picked up in the doc gen; I think I know what the fix on top of #1503 would be to avoid this.

Omitted test dirs
@jingtang10 PTAL

do you want to update this now that https://github.com/google/android-fhir/pull/1470 is in?
otherwise happy to merge.


run ci outside docker container

Codecov Report
Patch coverage has no change and project coverage change: +0.51% :tada:

Comparison is base (e87a822) 59.73% compared to head (a77a0ce) 60.25%.

:exclamation: Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.
Additional details and impacted files
@@            Coverage Diff             @@
##              dev     #421      +/-   ##
==========================================
+ Coverage   59.73%   60.25%   +0.51%
==========================================
  Files          34       34
  Lines        5228     5251      +23
==========================================
+ Hits         3123     3164      +41
+ Misses       2105     2087      -18

see 26 files with indirect coverage changes

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

did not yield any benefits


Last use case is expecting wrong anser

In the following challenge last use case is expecting wrong answer.
Use case:
drop([1, 2, 3, 9, 2], function(n) {return n > 2;}) should return [3, 9, 2]
Bug:
The answer should be [3, 9]
Challenge Bonfire: Drop it has an issue.
User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.86 Safari/537.36.
Please describe how to reproduce this issue, and include links to screenshots if possible.
My code:
function drop(arr, func) {
  var a =  arr.filter(function(v){
    return func.call(this, v);
  });

  //Fixing bug
  if(arr[arr.length - 1] == 2){
    a.push(2);
  }

  return a;
}
drop([1, 2, 3, 9, 2], function(n) {return n > 2;});
//drop([1, 2, 3], function(n) {return n < 3; });

This test case is correct. The instructions ask you to remove items from the front of the array until the predicate returns true, so as soon as you hit 3 and the predicate is true you should stop, leaving all the rest of the elements, including the 2.
In the future please ask for help in the Help Chat rather than filing a bug.
Thanks and happy coding!


Volumes of ARRR in iOS wallet don’t match volume of ARRR in Desktop Lite Chest

Volumes of ARRR in iOS wallet don’t match volume of ARRR in Desktop Lite Chest. Looking at the history of transactions it seems to be missing roughly a years history.
Not sure what to try at this stage. Any suggestions?
Thanks
Tye

Yes, try using earlier block height birthday to rescan your wallet if missing transactions and funds in calculated and scanned transactions with the birthday height you chose to setup wallet with. You can rescan your wallet with different block height birthday from settings of app.

Thanks this seems to make sense. How would I know what the correct block height birthday I chose was? I can’t remember if I’m honest.

If you don't know, the alternative will be to pick as earlier block height birthday you can. That will definitely work. The only downside is you have to keep your app open for longer time and don't let the app go in background or in sleep mode. We actually had this issue solved, unfortunately apple policy made us reverse our solution. Hope this clears and helps.


Refactor to avoid duplicates of MessageListView code

The code in MessageListView, specifically the functions used in the formatter for the message content, has been duplicated at least three times in other files and will make changing the formatting difficult.
We should move these functions into a separate component, changing the line in MessageListView (and any other component using this code) to:
formatter: (_cell, row) => <Message messageContent={row.text} slackUsers={slackUsers}></Message>

[ ] Make new file /components/ChannelMessages/Message and move the function createMarkup (and all the functions it calls) into it
[ ] Replace the formatter in every file that uses the createMarkup function with something like the code above

I think it would be nice to move the all the other formatters as well if possible, since right now we have 3 test files testing the same code basically.


fix: moved loadDependencies code to utils

Issue
No issue to link
Intent
Move load dependencies for a file to sasjs/utils. In order to sasjs/server can load dependencies for it's systemInit.sas
Implementation
Extracted code from loadDependencies to sasjs/utils and all of the functions it used with specs.
loadDependencies is stil present in sasjs/cli, it just provide all of the params to sasjs/utils function.
Checks

[x] Code is formatted correctly (npm run lint:fix).

[ ] Any new functionality has been unit tested.
[ ] All unit tests are passing (npm test).
Mocked:

Server:
[x] All CI checks are green.
[ ] JSDoc comments have been added or updated.
[x] Reviewer is assigned.

Server tests failed:


ClassName prop

It would be nice to be able to pass a className prop to style the wrapper div directly.

Just pushed PR #69 to handle this use case. Hopefully I can get this released in the next version for you asap. I will keep you posted in this thread.

@MartinMekk just merged, will be released in the next release version.


[WIP] - Container Service - Add OpenShift support

This checklist is used to make sure that common issues in a pull request are addressed. This will expedite the process of getting your pull request merged and avoid extra work on your part to fix issues discovered during the review process.
PR information

[X] The title of the PR is clear and informative.
[X] There are a small number of commits, each of which have an informative message. This means that previously merged commits do not appear in the history of the PR. For information on cleaning up the commits in your pull request, see this page.
[X] Except for special cases involving multiple contributors, the PR is started from a fork of the main repository, not a branch.
[X] If applicable, the PR references the bug/issue that it fixes.
[X] Swagger files are correctly named (e.g. the api-version in the path should match the api-version in the spec).

Quality of Swagger

[X] I have read the contribution guidelines.
[X] My spec meets the review criteria:

[X] The spec conforms to the Swagger 2.0 specification.
[X] The spec follows the guidelines described in the Swagger checklist document.
[X] Validation tools were run on swagger spec(s) and have all been fixed in this PR.

Automation for azure-sdk-for-python

Can one of the admins verify this patch?

Automation for azure-sdk-for-ruby

Automation for azure-sdk-for-go

Automation for azure-sdk-for-node

Automation for azure-sdk-for-java

Thanks @julienstroheker - please ping me when you've finished updating the spec (i.e. no longer WIP) so I can tag for ARM review. :)

@AutorestCI rebuild azure-sdk-for-python

Automation for azure-sdk-for-js

@julienstroheker - in the meantime - would you be able to take a look at the model validation errors in the examples?
error:
operationId: OpenShiftManagedClusters_Get
scenario: Get OpenShift Managed Cluster
source: response
responseCode: '200'
errorCode: OBJECT_MISSING_REQUIRED_PROPERTY
errorDetails:
  message: 'Missing required property: name'
  path: properties/masterPoolProfile
  title: /definitions/OpenShiftManagedClusterMasterPoolProfile

error:
operationId: OpenShiftManagedClusters_CreateOrUpdate
scenario: Create/Update OpenShift Managed Cluster
source: response
responseCode: '200'
errorCode: OBJECT_MISSING_REQUIRED_PROPERTY
errorDetails:
  message: 'Missing required property: name'
  path: properties/masterPoolProfile
  title: /definitions/OpenShiftManagedClusterMasterPoolProfile

error:
operationId: OpenShiftManagedClusters_UpdateTags
scenario: Update OpenShift Managed Cluster Tags
source: request
responseCode: ALL
errorCode: REQUIRED_PARAMETER_EXAMPLE_NOT_FOUND
errorDetails:
  code: REQUIRED_PARAMETER_EXAMPLE_NOT_FOUND
  id: OAV105
  message: >-
    In operation "OpenShiftManagedClusters_UpdateTags", parameter parameters is
    required in the swagger spec but is not present in the provided example
    parameter values.
  innerErrors: !<tag:yaml.org,2002:js/undefined> ''

error:
operationId: OpenShiftManagedClusters_UpdateTags
scenario: Update OpenShift Managed Cluster Tags
source: response
responseCode: '200'
errorCode: OBJECT_MISSING_REQUIRED_PROPERTY
errorDetails:
  message: 'Missing required property: name'
  path: properties/masterPoolProfile
  title: /definitions/OpenShiftManagedClusterMasterPoolProfile

@annatisch Thanks ! Which command can I run locally to get this validation?

@julienstroheker - I believe you can run autorest with the --model-validator flag
https://github.com/Azure/autorest/blob/master/docs/user/cli.md#validation

Also found
node scripts/modelValidations.js

ping @ravbhatnagar

@annatisch @ravbhatnagar any news on this ? Thanks

Only one outstanding item- adding the schema for the default response. Conditionally Signing off from ARM side.

@ravbhatnagar @annatisch I added the schema for the default response. Please let me know if it is ok ? Thanks

Thanks for the updates @julienstroheker - I'm just about to do a final review.
I see that you've bumped the Python version as a patch release - just checking, are you aware that in some languages there are potentially breaking changes in this PR?


Special characters for printing

Hello,
I use a themal printer Bixolon SPP-R210. I have a problem when i want to print frech special characters (àèé...).
I tested with utf-8 but not working.
Has anyone encountered the same situation as me?
My thanks

It won't support special characters. To solve this issue, Need to convert text to image & print image

how to convert text to image in dart, have you got a gist of code ? for  example"hello " as image

I got. But it's not working as we expected
On Sat, 12 Mar, 2022, 7:37 pm E.Mansur, @.***> wrote:

how to convert text to image in dart, have you got a gist of code ? for
example"hello " as image
—
Reply to this email directly, view it on GitHub
https://github.com/kakzaki/blue_thermal_printer/issues/87#issuecomment-1065889714,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAKSWYR3IGYRA6VXA5RYWKTU7SQITANCNFSM46UXDFBA
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
You are receiving this because you commented.Message ID:
@.***>

:))

Hello, is this issue been resolved? I'm having also the same error....

`List imgList = [];
late Uint8List imageInt;
late im.Image? receiptImg;
    ///image from Asset
    ByteData bytesAsset = await rootBundle.load("assets/election_mark.png");
    Uint8List imageBytesFromAsset = bytesAsset.buffer
        .asUint8List(bytesAsset.offsetInBytes, bytesAsset.lengthInBytes);

    bluetooth.printImageBytes(imageBytesFromAsset); //image from Asset

    //Main heading
    imageInt = await getBillImage("${Headings.election}\n", fontSize: 40);
    receiptImg = im.decodePng(imageInt);
    for (var i = 0; i <= receiptImg!.height; i += 200) {
      im.Image cropedReceiptImg = im.copyCrop(receiptImg, 0, i, 470, 200);
      Uint8List bytes = im.encodePng(cropedReceiptImg) as Uint8List;
      imgList.add(bytes);
    }

    //Party name
    imageInt = await getBillImage("${Headings.partyLine}\n", fontSize: 30);
    receiptImg = im.decodePng(imageInt);
    for (var i = 0; i <= receiptImg!.height; i += 200) {
      im.Image cropedReceiptImg = im.copyCrop(receiptImg, 0, i, 470, 200);
      Uint8List bytes = im.encodePng(cropedReceiptImg) as Uint8List;
      imgList.add(bytes);
    }

    //candidate
    imageInt = await getBillImage("${Headings.candidate}\n", fontSize: 35);
    receiptImg = im.decodePng(imageInt);
    for (var i = 0; i <= receiptImg!.height; i += 200) {
      im.Image cropedReceiptImg = im.copyCrop(receiptImg, 0, i, 470, 200);
      Uint8List bytes = im.encodePng(cropedReceiptImg) as Uint8List;
      imgList.add(bytes);
    }

    //main content
    imageInt = await getBillImage(voterString(widget.data), fontSize: 30);
    receiptImg = im.decodePng(imageInt);
    for (var i = 0; i <= receiptImg!.height; i += 200) {
      im.Image cropedReceiptImg = im.copyCrop(receiptImg, 0, i, 470, 200);
      Uint8List bytes = im.encodePng(cropedReceiptImg) as Uint8List;
      imgList.add(bytes);
      bluetooth.printNewLine();
    }

    bluetooth.printNewLine();

    for (var element in imgList) {
      bluetooth.printImageBytes(element);
    }`

replace Headings with your special char and print it works.

Uint8List

Can u provide getBillImage sir? Please help me!


Changed scrollbar css properties

Changed the css property for the scrollbar.
Closes #70

Hey please  linked ur issue number .

I have linked the issue number in the first comment


###Possible solution to the problem with plugin unavailable

  ### It's basically what the friend had already said above, but I'll give details on how to solve it.

Participating in a Telegram group, the official Grafana Brasil group, a colleague came up with the following solution:

Check the version of lld by running the command:

ldd --version

My case I'm using debian, update lld to the latest version, acceptable:

echo "deb http://ftp.debian.org/debian sid main" >> /etc/apt/sources.list
apt-get update
apt-get -t sid install libc6 libc6-dev libc6-dbg

This procedure must be done inside the plugin folder
You must run the GPX that corresponds to your OS:

./gpx_zabbix-plugin_linux_amd64

> root@frontzabbix:/var/lib/grafana/plugins/alexanderzobnin-zabbix-app# ./gpx_zabbix-plugin_linux_amd64
> {"@level":"debug","@message":"Profiler","@timestamp":"2023-08-29T09:24:50.970009-04:00","enabled":false}
> {"@level":"debug","@message":"Starting Zabbix datasource","@timestamp":"2023-08-29T09:24:50.970615-04:00"}
> {"@level":"debug","@message":"Serving plugin","@timestamp":"2023-08-29T09:24:50.971060-04:00","plugins":["resource","data","diagnostics"]}
> This binary is a plugin. These are not meant to be executed directly.
> Please execute the program that consumes these plugins, which will
> load any plugins automatically

Try to run the plugin again...
Commands must be run with root permission.
Originally posted by @ThomasJPF in https://github.com/grafana/grafana-zabbix/issues/1604#issuecomment-1697422094

I'll keep it open for a while, but basically, there's a build issue. I need to rebuild a plugin without glibc dependency (which is by default enabled).

Upgrading from Ubuntu 20.04 to 22.04 fixed this issue for me.

I've released a new version that fixes an issue.

Alexander, greetings.
The problem is not solved.
At least on Win10 (I decided to test the plugin on this OS)
Grafana Version: 10.1.5
Plugin Version: 4.4.3
Zabbix Version: 5.0.3
Error text: logger=context userId=1 orgId=1 uname=admin t=2023-10-16T16:10:41.3062578+03:00 level=warn msg="Plugin unavailable" error="plugin unavailable" traceID=
logger=context userId=1 orgId=1 uname=admin t=2023-10-16T16:10:41.3063929+03:00 level=error msg="Request Completed" method=POST path=/api/datasources/1/resources/ zabbix-api status=503 remote_addr=<IP_ADDRESS> time_ms=16 duration=16.3011ms size=46 referer=http://localhost:3000/connections/datasources/edit/af144246-751b-49b4-a5da-825089ac368b/ handler=/ api/datasources/:id/resources/*

@jojomsk can you please open a separate issue with your problem?


help!!!

i went in to CMD and wrote this go get github.com/gorilla/websocket
but i got an error message: go: missing Git command. See https://golang.org/s/gogetcmd
package github.com/gorilla/websocket: exec: "git": executable file not found in %PATH%
what did i do wrong?

i am running this version on windows 10 64bit go version go1.8 windows/amd64

You need to install git.


Add flags as an alternative to '*' to update all

Bash will parse the '*' on the shell level which results in a strange experience for everyone not familiar with it when trying to update all packages.
This adds -a and --all as alternatives.

I vote 👍 for this, scoop update */scoop cache rm */scoop cleanup * is really a bad usage in git-bash/msys (and I don't know why all the rest commands of scoop are designed as unix-like command, except for this little * thing.  I know somebody would tell me to set an alias. But adding this option is not a bad idea.
ps. you should rebase the pull request to the develop branch.

Rebase to the develop branch, any love for this? :)

Having flags is also more powershell-y. so I'm all for that.

Ping?

I'd also like to support this merge. scoop update "*" isn't that great...

I'd also like to support this merge. scoop update "*" isn't that great...

Related to #2800


EVM-416 Use one struct for Exit and StateSync proofs in jsonrpc

Description
This PR uses one placeholder struct for both ExitProof and StateSyncProof for jsonrpc calls.
type Proof struct {
	Data     []Hash // the proof himself
	Metadata map[string]interface{}
}

Changes include

[ ] Bugfix (non-breaking change that solves an issue)
[ ] Hotfix (change that solves an urgent issue, and requires immediate attention)
[x] New feature (non-breaking change that adds functionality)
[ ] Breaking change (change that is not backwards-compatible and/or changes current functionality)

Checklist

[x] I have assigned this PR to myself
[x] I have added at least 1 reviewer
[x] I have added the relevant labels
[ ] I have updated the official documentation
[ ] I have added sufficient documentation in code

Testing

[x] I have tested this code with the official test suite
[x] I have tested this code manually

Can you remind me the main motivation for this change?
In principle I prefer not to introduce this change, as this needs introduction of type castings, and less specific types hiding different underlaying structs.

It's something @ferranbt proposed because of that cycle import between types package and contractsapi.


[ANCHOR-553] Bump node to 20

Bump node version to 20
Nits

Something went wrong with PR preview build please check

Preview is available here:http://stellar-anchor-tests-pr136.previews.kube001.services.stellar-ops.com/

I think the changes look good but can we try running this against AP?

Yeah I've ran it on local with all seps and passed


Advertise New Blocks Via Inv Message to Non-Validators

[!WARNING]
This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

#1092  👈
#1091
feature/pos-networking-and-syncing

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @tholonious and the rest of your teammates on  Graphite


chore: Use collection expression

enforcing these

https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/ide0300
https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/ide0301
https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/ide0302
https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/ide0303
https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/ide0304
https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/ide0305

Microsoft Reviewers: Open in CodeFlow

@Meir017 I like the idea, but there's a huge set of (what look like) automated changes that are difficult to review in this PR. Would you be able to send out a PR just for the changes to .editorconfig? We have some automation to automatically run dotnet format that we can use: https://github.com/Azure/bicep/actions/workflows/run-formatter.yml

@anthony-c-martin created #14318


Docker for Interactive Broker only works for US Location, how can we make it work for Canada as well

Describe the feature
Just installed your Docker container using my MACBook-Pro, I’m just at the stage of connecting to the InteractiveBroker account on localhost:5000, I realized that’s takes me to US Location, where I’m residing in Canada.
It takes we here:
https://localhost:5000/sso/Login?forwardTo=22&RL=1&ip2loc=US
Expected interaction
The Canadian URL for Interactive Broker is:
Whereas actually for Canadian URL for Interactive Broker  we should be redirected to:
https://cdcdyn.interactivebrokers.com/sso/Login
Appreciate if we can get any help with this one..

Hi @SRobotic welcome to IBeam and thanks for outlining your issue 👋
Could I suggest having a look at these two configuration variables:
https://github.com/Voyz/ibeam/wiki/IBeam-Configuration#gateway-routes

IBEAM_GATEWAY_BASE_URL
IBEAM_ROUTE_AUTH

Would you be able to configure the path the way you require using these two?

Hi @Voyz
Thanks for this docker image.
I think the problem is perhaps with :
?forwardTo=22&RL=1&ip2loc=US
Should these parameters be changed for IB Canada accounts? If so, what should they be?
Is there a support on IB side that we can reach out to get more info on?
Thanks,

I compared the config different between conf.yaml and config.beta.yml
conf.yaml
ip2loc: "US"
proxyRemoteHost: "https://api.ibkr.com"
svcEnvironment: "v1"
config.beta.yml
ip2loc: "off"
proxyRemoteHost: "https://ndcdyn.interactivebrokers.com"
svcEnvironment: "beta"
if I change the conf.yaml to
ip2loc: "off"
proxyRemoteHost: "https://ndcdyn.interactivebrokers.com"
svcEnvironment: "v1"

Not sure if it's the right config values. I'm able to login, but can't run any Rest API against it .. it just hangs forever (maybe it's friday night maintainence)
eg, GET - https://localhost:5000/v1/api/portfolio/accounts
Any help is greatly appreciated. Thanks

Read the log here: https://www.interactivebrokers.com/en/index.php?f=46915
May 2020
May 4: Beta Gateway updated to Latest: With this update legacy /v1/portal or /v1/api can be used to communicate to api.ibkr.com.
April 2020
New api.ibkr.com infrastructure: To improve stability the new domain api.ibkr.com has been created exclusively for traffic for Web API users.
Looks like the right value is
proxyRemoteHost: "https://api.ibkr.com"
but the login failed for me even if i do
ip2loc: "CA"
proxyRemoteHost: "https://api.ibkr.com"
svcEnvironment: "v1"

I'm on the same boat. Anyone figure how to make it work with IB Canada account yet?
Maybe change the conf.yaml somehow? @SRobotic ?

Hey @codeforce1 - we've had canadian users of IBeam, I'm guessing it's possible. Did you try the setup parameters I suggested?

Hi @codeforce1 @SRobotic I'm closing this issue due to lack of activity, feel free to reopen if you'd like to continue the conversation. The solution to Canadian IBKR accounts seems to be setting the proxyRemoteHost: "https://1.api.ibkr.com" in conf.yaml. See #34
Thanks for participating 👍


Question: Do I need to put client.xreadgroup into a loop in order to get consumer group data?

Intuitively it seems that I shouldn't need to, but it's the only way I can get retrieval to work
Here's the code I came up with. But maybe you can correct me.
const redis = require('redis');
const client = redis.createClient();
const uuidv4 = require('uuid/v4');
const consumerId = uuidv4();

const streamName = process.env.BOMBARDIER_STREAM_NAME || 'BOMBARDIER';
const streamGroup = process.env.BOMBARDIER_CONSUMER_GROUP || 'BOMBARDIER_GROUP';

console.log(`Spinning up consumer ${consumerId} for stream ${streamName}`);

const timeout = setInterval(function () {
    client.xreadgroup('GROUP', streamGroup, consumerId, 'BLOCK', 1000, 'COUNT', 1, 'NOACK',
        'STREAMS', streamName, '>', function (err, stream) {
            if (err) {
                return console.error(err);
            }
            console.log(JSON.stringify({consumerId, stream}));
        });

}, 1000);

I use the same approach, not sure it is the best but it does the job.

Thank you, tgrall

@reselbob The interval is a weird solution (and error prone - JS timers / intervals are not precise - GC pauses and all). I tend to use async.js forever and just pass next in the callback.

Something like this I guess: (thanks @stockholmux for the hint)
async.forever(
    function(next) {
       redisClient.xreadgroup('GROUP', APPLICATION_ID,  CONSUMER_ID , 'BLOCK', 1000, 'COUNT', 10, 'NOACK', 'STREAMS', STREAMS_KEY, '>', function (err, stream) {
            if (err) {
                console.error(err);
                next();
            }
            console.log(JSON.stringify({ CONSUMER_ID : stream}));
            next();
        });

    },
    function(err) {
        // if next is called with a value in its first parameter, it will appear
        // in here as 'err', and execution will stop.
    }
);

@tgrall Correct, with a tweak. To get the error handling correct you'll need to do something like if (err) { next(err); } which will push it down to the second callback and break out of forever loop.

I'm going to go ahead and close this issue since it's not a problem with the module itself, but please proceed to work out the solution in the closed issue.

Thank you all.


Page coding issue

The angle brackets (<>) are not escaped correctly in the parameter table (<>). As a result, the first column of the table is empty for the first few rows.

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

ID: 0802ee27-f8e5-5f27-6eba-5f57940f4245
Version Independent ID: b648d937-afc1-d3c4-112a-f442a27e0001
Content: msinfo32
Content Source: WindowsServerDocs/administration/windows-commands/msinfo32.md
Product: windows-server-threshold
Technology: manage-windows-commands
GitHub Login: @coreyp-at-msft
Microsoft Alias: coreyp

This appears to be fixed now.


Server fixes

-Fixed obtaining Firefox path from registry. Firefox path will only be in Wow6432Node if OS is 64-bit.
-Fixed null reference exception disposing an object in JpgCompression
-Fixed multiple client form disposal on client disconnect for password recovery

We should wrap EncoderParams' Dispose in a try-catch block. The idea of a dispose call throwing an exception is unnerving...

I know :| I have been getting some weird server crashes I can't recall exactly what the stack said, but I decided to throw it in debugger to see what might be happening.  It was happening so rarely I couldn't figure out what was happening.
Btw, if you are bored and want to break something, try connecting a client to the server with the same password, stopping the server and changing the password, and starting the server again.  Then send a command to the client :S

@d3agle Stopping the server? As in disconnecting the socket?

Yes, sorry, stopping the listen server.  Connect client to server -> stop listen server -> change password -> start listen server (client will reconnect since socket is still open) -> issue command to client

I'm actually happy the way the server reacts to that situation. While it obviously should not let the client still connect and everything (or even touch the server's GUI), I am happy that it didn't crash either and only resulted in client disconnection.

It also didn't execute the packet entirely. :)
Unfortunately, my client is not reconnecting. :"(

Yeah :( In release mode the client will crash because the de-serialization of the packet isn't wrapped in a try/catch.  Also the socket will state that the client is connected, because it technically is, so the main loop that wraps the client will continue to run, and in the background it will continuously throw exceptions until the client is restarted.

We should add an additional check on the server to make sure that the client provides the correct password. The check should not be the client's responsibility to make sure of that.
Also, I tried to make the client ignore packets that it can not correctly handle in a better matter (with the intentions of possibly mismatching versions). On this change, @MaxXor modified my initial changes that wrapped it in a try-catch block. The catch block unfortunately always means that the clients inability to de-serialize eve one of the packets it receives will cause that client to fire its event meant for catastrophic client issues. :cry:

Perhaps, at most, we can just disconnect the client so that the client may connect again...
Also, I would try to find where the endless exceptions are being caught and place a conditional in the catch that will disconnect the client from the server (maybe attemping to disconnect).

The client can't crash when deserializing of a packet fails. It's handled correctly in a try-catch block.

I'm sorry, my memory is starting to worry me LOL.  I meant when it decrypts the packets.

Here is where it occurs.  To recreate this, run the client in debug mode and start the server.  Start the listen server with the same password the client was built with, stop the listen server after the client connects, then change the password and restart the listen server.  The client will connect again and will still maintain connection with the socket, so issue any command to the client... to reconnect or w.e. The client will break there in release mode because the packet that was sent couldn't be decrypted and any attempt to reconnect after that will fail until the client is completely restarted.

Thanks, I'll see what I an do.

Fixed it in the two latest commits.

@MaxXor I meant that it throws OnClientFail. Perhaps we can simply disconnect the client.

@yankejustin It's ok now. :)


Extension recommendation occurs after extension has already been installed

Does this issue occur when all extensions are disabled?: N/A

Originally from @v-ruizh in https://github.com/microsoft/vscode-docker/issues/3863
OS: Windows 10
Build Version: 20230309.12
Regression: Not a Regression
Repro Steps:

Make sure there is Docker extension installed.
Open a Go project in VS Code.
Add docker files to this project and open Dockerfile.
Close and reopen VS Code.
Check whether there is no extra notification "Do you want to install the recommended extensions for Dockerfile?".

Expect:
There is no notification "Do you want to install the recommended extensions for Dockerfile?".
Actual:
There is an extra notification "Do you want to install the recommended extensions for Dockerfile?".

Click "Show Recommendations" button, it navigates to Docker extension page.

More Info:

This issue also reproduces on the previous released Docker extension v1.24.0.
This issue does not reproduce for MVC/Express/Flask projects with Dockerfile opening.

I am not able to reproduce the issue. Is it happening on a specific project? Can you please share the project if possible? Can you please try our insiders and see if you can repro?

@v-ruizh can you try these steps from @sandy081?

@sandy081 This bug also reproduces on the latest VS Code Insiders 1.77.0. You can get the detailed info from below.
This is the project I used. dockergo.zip

Very weird, I tried to repro it in Mac and Windows with the provided repo and I could not. Added some code to wait until installed extensions are known to the system. Please try with tomorrow's insiders and let me know if you are still seeing the issue. Thanks.

Verified this issue on the latest VS Code Insiders build, it is no longer reproduce.

Awesome. Thanks for confirmation!


Issue-Makes refresh icon spin on load

Automated Review Comments
Issues in src/components/App.tsx:

(4, 'Hardcoded string found')
(8, 'Hardcoded string found')
(9, 'Hardcoded string found')
Issues in src/components/Header.tsx:
(26, 'Hardcoded string found')
(29, 'Hardcoded string found')
(30, 'Hardcoded string found')
(31, 'Hardcoded string found')
(32, 'Hardcoded string found')
(33, 'Line exceeds 80 characters')
(33, 'Hardcoded string found')
(34, 'Hardcoded string found')

I got it.


fix: dep update

:tada: This PR is included in version 6.3.7 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


[Feature Request] Import from PuTTY/KiTTY/etc

Wondering if it might be possible to support importing from PuTTY/KiTTY (KiTTY being a fork of PuTTY).
The settings are stored within the registry at the below locations:
KiTTY: HKEY_CURRENT_USER\Software\9bis.com\KiTTY\Sessions
PuTTY: HKEY_CURRENT_USER\Software\SimonTatham\PuTTY\Sessions
This looks like the following in the regedit:

Fields of interest may be the:
HostName - connection hostname
UserName - username to pass to the SSH session.
Protocol - with PuTTY supporting multiple protocols, this can be ssh, telnet, serial, etc.
Autocommand - this is a command which is sent to the SSH session once logged in.
The session name would come from the registry key name, it seems to use HTML encoding so %20 as spaces etc.

Hmm, there is still some information missing like authentication methods such as key files. Such an import functionality would only result in incomplete connections.
Do these tools support exporting to a SSH config file?

Thanks for taking a look! There's a couple of options stored in the registry key regarding authentication:
Password: this seems to be an encrypted value
PublicKeyFile: this is the file path to a putty version of the public key, this comes with an extension .ppk
There is then a key for AgentFwd which means "Allow agent forwarding". PuTTY has a version of the SSH agent where the keys can be loaded into, then used globally.
Looks like there's one project here: https://github.com/abdrakhmanov/PuTTY-to-OpenSSH-Converter might be an option.

Yeah the password can probably not be decrypted. The key files are in a putty-specific format and there are no command-line tools from putty available to convert that into a normal .pem key on Windows. (I guess that's vendor lock in for you) XPipe already support the putty agent (pageant).

Yeah without being able to convert keys I think this is going to be difficult

I wonder if making a little popup warning might be an option, something like "Please note: passwords and SSH key configs from PuTTY are not imported, these should be updated manually".
Then importing the configs themselves.

But then you still have to go through every single key in putty and export it manually and then add it in XPipe.

Good point there, if someone has lots it would be a pain.
Another possibility might be adding in support for the plink application, it can load sessions with the -load option and it can also take the key using -i options.

In theory it could just run plink -load <name>, yes. But that would not really be an import, more like another integration for a tool.


Theme needs these files in its own folder.

Changes to some colours. There is no scss file for these to be compiled from so these are hard coded.

Merged, thanks.
Note that 18.1.1 will be a bugfix release. The theme / css changes will be shipped in 18.1.2.

@fichtner Maybe it would be a good idea to make a SASS version of this so It is easier to create new templates.

must be supported by each individual upstream project

May be easier to just put comments in the css file as to what each colour applies to. I wish I had done that now. :)


Raw data pointer support for Ceres

@michele-franchi Can you provide more information about it, please?

https://github.com/aeternity/ae_mdw/pull/1708

@michele-franchi do you have some findings about this?

@janmichek here's an example of raw data pointers I created:
https://testnet.aeternity.io/mdw/v2/names/testaensrawpointers.chain
with the following NameUpdateTx:
    const nameUpdateTx = await sdk.aensUpdate(name, {
        Pointer1: encode(Buffer.from('example data for pointer 1'), Encoding.Bytearray),
        Pointer2: encode(Buffer.from('example data for pointer 2'), Encoding.Bytearray),
        Pointer3: encode(Buffer.from('example data for pointer 3'), Encoding.Bytearray),
        Pointer4: encode(Buffer.from('example data for pointer 4'), Encoding.Bytearray),
    });

As you can see these pointers are not decoded in different places:

Name details, custom pointers (notice the wrong pointer name, there's a comma at the beginning?):

Account details, names tab:

Custom pointers should be plain text if the value is not a valid blockchain entity. In a custom pointer I can add any string value.
Example mdw call: https://testnet.aeternity.io/mdw/v2/names/testaensrawpointers.chain


CameraCaptureUI doesn't inform the user that they cancelled permissions

When accessing the CameraCaptureUI API, the user will be asked for the first time if they would like to grant permissions for photo/video.
Pressing deny will return a result as if the user had not captured a photo/cancelled out of the activity.
It would be more ideal for the result of the activity to inform that the permissions were denied to allow a differentiation between cancellation.

I'll close this off for you @jamesmcroft. As I mentioned in the comment of the PR, can we look at fleshing out the sample app?


chore(package): increment ap stack

Signed-off-by: irmerk<EMAIL_ADDRESS>

An error with new testing, tracking here: https://github.com/accordproject/cicero-ui/issues/34#issuecomment-548395565
Merging despite this.


How can I get my BTC back if Bob is dishonest

If I paid the invoice and mint some token, but Bob refuses to pay or does not respond to the request, is there a mechanism I can get my BTC back?

Bob refuses to pay

If Bob is the mint and takes your BTC as a Lightning payment but doesn't then issue you a Cashu token, then no, there's not really any way to get your Bitcoin back -- in Cashu and eCash in general, you have to trust the mint to be an honest actor.
They have an incentive to be honest as otherwise you can tell everyone they stole your Bitcoin and then everyone can stop using the mint, but that's about the only protection you have.

@AngusP Thanks for your reply.
Can we design a punishment mechanism to prevent Bob(the mint) from doing evil?

Bob refuses to pay

If Bob is the mint and takes your BTC as a Lightning payment but doesn't then issue you a Cashu token, then no, there's not really any way to get your Bitcoin back -- in Cashu and eCash in general, you have to trust the mint to be an honest actor.
They have an incentive to be honest as otherwise you can tell everyone they stole your Bitcoin and then everyone can stop using the mint, but that's about the only protection you have.

@AngusP Thanks for your reply.
Can we design a punishment mechanism to prevent Bob(the mint) from doing evil?

Kinda -- it's worth bearing in mind Fedi, the other Bitcoin eCash project is trying to build out mechanisms for this kind of thing, using multiple people in a multisig setup to run the mint, and relying on 'social enforcement' as an incentive to be honest. You can't get to "money can't be stolen" with rules enforceable code. If you do change eCash enough so that you've "design a punishment mechanism to prevent Bob(the mint) from doing evil?" that works, you will have arrived at Bitcoin's design.
In eCash, the mint totally owns and controls consensus -- it isn't a distributed system, the mint maintains and keeps the ledger and has dictatorial power over it. The mint can try to prove-to/convince people that it is an honest actor, by proving its reserves (i.e. that all the Bitcoin it has is 1:1 matched by all the eCash it has issued (i.e. it hasn't printed fake bitcoin or stolen deposits)) or use some convoluted mechanism where it publishes enough info that misbehaviour like theft and money-printing could be detected by users in some cases. In any these scenarios, you would still have to withdraw from the mint with its co-operation: it will always be possible for an eCash mint to completely rugpull its users and run away with the money.
For Cashu, I won't speak for everyone, but as I see it the philosophy differs from Fedi in that the aim is to build something quick that works and can be shipped so it can then be built-upon quickly, rather than something more complex that'll take longer to get going, and is harder to understand and run.

Thanks for your explanation.
I agree with you about quick built-upon system. But I think there should be a balance between fast construction and financial security, rather than completely ignoring it.And the role of mint is totally centralized, I am not completely denying centralization, but the blockchain was intended to solve the problem of centralization, so whether it has returned to the original world?

Hi, thanks for your question. The short answer is: no.
Neither Fedimint, nor Cashu, nor any other "off-chain" protocol without unilateral exit properties can give you that ability. We're being very clear about this and not ignoring this at all. Cashu is a custodial system.
Fraud proofs would be possible in principle. Also, I've been working on a proof of liabilities scheme.


Open all matching files from "search project" (SPM s p) results

Please visit our Discord server to ask how-to and workflow questions:
https://discord.gg/qvGgnVx -- post on Doom's issue tracker as a last resort.

What are you trying to achieve?
Open all the files (in different buffers)  which match a pattern.
What have you tried?
SPC s p, which launches ripgrep and shows the results in a list. Currently I need to open SPC s p repeatedly, type in the search pattern again and open the next file in list.
System information

((emacs
  (version . "26.3")
  (features . "NOTIFY ACL GNUTLS LIBXML2 ZLIB MODULES THREADS")
  (build . "Oct 01, 2019")
  (buildopts "--disable-dependency-tracking --disable-silent-rules --enable-locallisppath=/usr/local/share/emacs/site-lisp --infodir=/usr/local/Cellar/emacs/26.3/share/info/emacs --prefix=/usr/local/Cellar/emacs/26.3 --with-gnutls --without-x --with-xml2 --without-dbus --with-modules --without-ns --without-imagemagick")
  (windowsys . batch)
  (daemonp . server-running))
 (doom
  (version . "2.0.9")
  (build . "HEAD -> develop 12249753e 2020-02-22 20:40:03 -0500")
  (dir . "~/.rc/doom.d/"))
 (system
  (type . darwin)
  (config . "x86_64-apple-darwin19.0.0")
  (shell . "/bin/zsh")
  (uname . "Darwin 19.2.0 Darwin Kernel Version 19.2.0: Sat Nov  9 03:47:04 PST 2019; root:xnu-6153.61.1~20/RELEASE_X86_64 x86_64")
  (path "~/.nimble/bin" "~/opt/python-language-server/output/bin/Release/osx-x64/publish" "/usr/local/opt/python/libexec/bin" "~/.miniconda3/bin" "/usr/local/bin" "/usr/bin" "/bin" "/usr/sbin" "/sbin" "/opt/X11/bin" "~/.cabal/bin" "/usr/local/MacGPG2/bin" "/usr/local/sbin" "/Applications/DevDesktop/drush" "/usr/local/texlive/2016/bin/x86_64-darwin" "/Library/TeX/texbin" "~/.emacs.d/bin" "/usr/local/Cellar/emacs/26.3/libexec/emacs/26.3/x86_64-apple-darwin19.0.0"))
 (config
  (envfile . envvar-file)
  (elc-files . 0)
  (modules :completion company (ivy +fuzzy) :ui doom doom-dashboard fill-column hl-todo modeline nav-flash ophints (popup +all +defaults) tabs treemacs workspaces :editor (evil +everywhere) file-templates multiple-cursors snippets :emacs dired electric ibuffer vc :term eshell shell term vterm :checkers syntax spell grammar :tools direnv (eval +overlay) (lookup +docsets) lsp magit :lang data emacs-lisp julia (latex +latexmk) markdown (org +jupyter +pandoc +present) (python +lsp) rst sh :email mu4e :app calendar :config (default +bindings +smartparens))
  (packages . "<(void-function sp-point-in-string)>")
  (elpa "n/a")
  (unpin "n/a")))

You can open a permanent, occur buffer from your search results with C-c C-o, or you can repeat the last ivy search with SPC '. You could also define a custom ivy action for counsel-rg to open all candidates:
(after! counsel
  (ivy-add-actions
   #'counsel-rg
   '(("a" (lambda (_path) (mapc #'counsel-git-grep-action ivy--all-candidates))
      "opne all pathes"))))

Hope that helps!

Perfect, thanks!

@hlissner Can you also provide the equivalent "open all matches" for projectile-find-file, reachable via SPC SPC (or SPC p f)?

@hlissner Thanks a lot for your quick support!! ... Unfortunately the last step is not working  ... no files will be opened..
As I can see the new menu item "a: Open all matches" I expect the issue is in line
'(("a" (lambda (_path) (mapc #'counsel-git-grep-action ivy--all-candidates))

But I do not know any (e)lisp (unfortunately again) .. just a wild guess: maybe the _path 'variable' is named differently in counsil-find-file, counsel-projectile-find-file, ...


Define possibilities for logging levels

I've set defaultLevel to Verbose and when I do log.Verbose(…) it still doesn't show in my host console (locally).
There's something missing here in the directions; either I'm using the wrong value, or this doesn't work as expected.

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

ID: 13672b67-22ea-3dda-8b6b-3332c24e6030
Version Independent ID: fdc60aeb-9971-1d9f-a6ba-b3ad818cf0d5
Content: Monitor Azure Functions
Content Source: articles/azure-functions/functions-monitoring.md
Service: functions
GitHub Login: @tdykstra
Microsoft Alias: tdykstra

Thanks for the feedback! We are currently investigating and will update you shortly.

@brandonh-msft I am not finding any reference in this doc to running log.verbose
Can you point me to the point in this doc where you are seeing that and having issues?

In a Function you can do the following:
[FunctionName("GameStateChanged")]
public static async Task GameStateChangedAsync(
[CosmosDBTrigger(...)]IReadOnlyList<Document> input,
TraceWriter log)
{
    log.Verbose("something verbose here");
    log.Info("something info here");
    log.Warning("something warning here");

but you will only see the .Warning and .Info calls, you won't see the Verbose ones. Neither in the console out, or in App Insights.
I've yet to find the combination of Logging Levels to get this to happen, and the docs don't give me the set of values that are valid (hence this bug)

What does your host.json look like?  Is it possible a category level is overriding the default level?

host.json is completely empty; standard Functions template.

I'm not. But when I tried (to get verbose messages to show up in the host or AppInsights) I did so by adding
"logger": {
        "categoryFilter": {
            "defaultLevel": "Verbose"
        }
    }

to my host.json file. This did nothing.

Try setting it to Trace instead of Verbose (per the Levels section that's the name of the lowest logging level).

my code:
log.Verbose(@"testing verbose message");
log.Info(@"testing Info message");
log.Error(@"testing Error message");
log.Warning(@"testing Warning message");

the output
[7/27/2018 7:00:55 PM] Reading host configuration file '...\bin\Debug\netstandard2.0\host.json'
[7/27/2018 7:00:55 PM] Host configuration file read:
[7/27/2018 7:00:55 PM] {
[7/27/2018 7:00:55 PM]   "logger": {
[7/27/2018 7:00:55 PM]     "categoryFilter": {
[7/27/2018 7:00:55 PM]       "defaultLevel": "Verbose"
[7/27/2018 7:00:55 PM]     }
[7/27/2018 7:00:55 PM]   }
[7/27/2018 7:00:55 PM] }
[7/27/2018 7:00:55 PM] Starting Host (...)
[7/27/2018 7:00:57 PM] Generating 1 job function(s)
[7/27/2018 7:00:57 PM] Found the following functions:
[7/27/2018 7:00:57 PM] FunctionClient.Greeter.GreetAsync
[7/27/2018 7:00:57 PM]
[7/27/2018 7:00:57 PM] Host initialized (5213ms)
[7/27/2018 7:00:58 PM] Host started (5593ms)
[7/27/2018 7:00:58 PM] Job host started
Listening on http://<IP_ADDRESS>:7071/
Hit CTRL-C to exit...

Http Functions:

        Greet: http://localhost:7071/api/Greet

[7/27/2018 7:01:03 PM] Executing 'Greet' (Reason='This function was programmatically called via the host APIs.', Id=f687c40f-a2c7-4572-9a3d-2e1525411983)
[7/27/2018 7:01:04 PM] testing Info message
[7/27/2018 7:01:04 PM] testing Error message
[7/27/2018 7:01:04 PM]
[7/27/2018 7:01:04 PM] testing Warning message

With Trace:
the output
[7/27/2018 7:03:19 PM] Host configuration applied.
[7/27/2018 7:03:19 PM] Reading host configuration file '...\bin\Debug\netstandard2.0\host.json'
[7/27/2018 7:03:19 PM] Host configuration file read:
[7/27/2018 7:03:19 PM] {
[7/27/2018 7:03:19 PM]   "logger": {
[7/27/2018 7:03:19 PM]     "categoryFilter": {
[7/27/2018 7:03:19 PM]       "defaultLevel": "Trace"
[7/27/2018 7:03:19 PM]     }
[7/27/2018 7:03:19 PM]   }
[7/27/2018 7:03:19 PM] }
[7/27/2018 7:03:19 PM] Starting Host (...)
[7/27/2018 7:03:19 PM] Debug file watch initialized.
[7/27/2018 7:03:19 PM] File event source initialized.
[7/27/2018 7:03:20 PM] Function metadata read.
[7/27/2018 7:03:20 PM] Binding providers loaded.
[7/27/2018 7:03:20 PM] Binding providers initialized.
[7/27/2018 7:03:20 PM] Extension loading complete.
[7/27/2018 7:03:21 PM] Metadata provider created.
[7/27/2018 7:03:21 PM] Adding Function descriptor provider for language dotnet.
[7/27/2018 7:03:22 PM] Function descriptors created.
[7/27/2018 7:03:22 PM] Generating 1 job function(s)
[7/27/2018 7:03:22 PM] Found the following functions:
[7/27/2018 7:03:22 PM] FunctionClient.Greeter.GreetAsync
[7/27/2018 7:03:22 PM]
[7/27/2018 7:03:22 PM] Host initialized (6120ms)
[7/27/2018 7:03:23 PM] Host started (6461ms)
[7/27/2018 7:03:23 PM] Job host started
Listening on http://<IP_ADDRESS>:7071/
Hit CTRL-C to exit...

Http Functions:

        Greet: http://localhost:7071/api/Greet

[7/27/2018 7:03:54 PM] Executing 'Greet' (Reason='This function was programmatically called via the host APIs.', Id=b13989bf-b126-466d-8898-4693fbf378b0)
[7/27/2018 7:03:54 PM] testing verbose message
[7/27/2018 7:03:54 PM] testing Info message
[7/27/2018 7:03:54 PM] testing Error message
[7/27/2018 7:03:54 PM]
[7/27/2018 7:03:54 PM] testing Warning message

The confusing here lies in that the TraceWriter object has both Verbose and Trace methods but we only show log levels pointing to Trace. The overload for .Trace, additionally, is very much different than the others which lead me to believe Info, Warning, etc were all "shortcuts" to an underlying call to Trace.
Request: At the very least we should point out that, to get Verbose-logged messages, one has to enable Trace-level logging in host.json as that isn't clear today.

we should point out that, to get Verbose-logged messages, one has to enable Trace-level logging in host.json

I agree and I've made a pull request with that change.  It should be live this afternoon or tomorrow.  Thanks for reporting the issue; I'm sure others have run into it as well.


Ollama from remote

Ollama is using always localhost.
I have 2 colab istances:
Colab1 (server)
# Set LD_LIBRARY_PATH so the system NVIDIA library
import os
import asyncio
os.environ.update({'LD_LIBRARY_PATH': '/usr/lib64-nvidia'})

async def run_process(cmd):
  print('>>> starting', *cmd)
  p = await asyncio.subprocess.create_subprocess_exec(
      *cmd,
      stdout=asyncio.subprocess.PIPE,
      stderr=asyncio.subprocess.PIPE,
  )

  async def pipe(lines):
    async for line in lines:
      print(line.strip().decode('utf-8'))

  await asyncio.gather(
      pipe(p.stdout),
      pipe(p.stderr),
  )

await asyncio.gather(
    run_process(['ollama', 'serve']),
    run_process(['ngrok', 'http', '--log', 'stderr', '11434']),
)

>>> starting ollama serve
>>> starting ngrok http --log stderr 11434
2024/01/07 18:10:03 routes.go:929: Listening on <IP_ADDRESS>:11434 (version 0.1.18)
t=2024-01-07T18:10:03+0000 lvl=info msg="started tunnel" obj=tunnels name=command_line addr=http://localhost:11434/ url=https://7b8c-34-83-27-150.ngrok-free.app/

Colab2 (client)
import os
os.environ["OLLAMA_HOST"]="https://7b8c-34-83-27-150.ngrok-free.app"

import subprocess
pr= subprocess.Popen(['ollama', 'run', 'openhermes'], stdout=subprocess.PIPE, stderr=subprocess.PIPE, text=True)

After running the subprocess "ollama run openhermes" the server start running the model, so the connection client server is working thanks to the OLLAMA_HOST variable
The problem is when I run ollama from langchain
from langchain.llms import Ollama
ollama_llm = Ollama(model="openhermes")
ollama_llm.generate(["hello"])

ConnectionError: HTTPConnectionPool(host='localhost', port=11434)
Why OLLAMA_HOST is not working with langchain?

Why OLLAMA_HOST is not working with langchain?

This is a bug in Langchain that it does not respect the OLLAMA_HOST variable. Please open an issue here: https://github.com/langchain-ai/langchain/issues

Ollama is using always localhost.
I have 2 colab istances: Colab1 (server)
# Set LD_LIBRARY_PATH so the system NVIDIA library
import os
import asyncio
os.environ.update({'LD_LIBRARY_PATH': '/usr/lib64-nvidia'})

async def run_process(cmd):
  print('>>> starting', *cmd)
  p = await asyncio.subprocess.create_subprocess_exec(
      *cmd,
      stdout=asyncio.subprocess.PIPE,
      stderr=asyncio.subprocess.PIPE,
  )

  async def pipe(lines):
    async for line in lines:
      print(line.strip().decode('utf-8'))

  await asyncio.gather(
      pipe(p.stdout),
      pipe(p.stderr),
  )

await asyncio.gather(
    run_process(['ollama', 'serve']),
    run_process(['ngrok', 'http', '--log', 'stderr', '11434']),
)

>>> starting ollama serve
>>> starting ngrok http --log stderr 11434
2024/01/07 18:10:03 routes.go:929: Listening on <IP_ADDRESS>:11434 (version 0.1.18)
t=2024-01-07T18:10:03+0000 lvl=info msg="started tunnel" obj=tunnels name=command_line addr=http://localhost:11434/ url=https://7b8c-34-83-27-150.ngrok-free.app/

Colab2 (client)
import os
os.environ["OLLAMA_HOST"]="https://7b8c-34-83-27-150.ngrok-free.app"

import subprocess
pr= subprocess.Popen(['ollama', 'run', 'openhermes'], stdout=subprocess.PIPE, stderr=subprocess.PIPE, text=True)

After running the subprocess "ollama run openhermes" the server start running the model, so the connection client server is working thanks to the OLLAMA_HOST variable
The problem is when I run ollama from langchain
from langchain.llms import Ollama
ollama_llm = Ollama(model="openhermes")
ollama_llm.generate(["hello"])

ConnectionError: HTTPConnectionPool(host='localhost', port=11434)
Why OLLAMA_HOST is not working with langchain?

try with base_url as shown in this tutorial

Yes, you should use the  following code as langchain does not use OLLAMA_HOST variables:
ollama_llm = OllamaEmbeddings(base_url="https://your_url:11434", model="llama2")

Thank you so much for your prompt reply @wrapss and @prusnak tomorrow I will try but I am quite sure you are right!!!

As others have mentioned, ollama serves on localhost by default. If you want to change this, set OLLAMA_HOST. Please see the FAQ for details

@HAL9KKK By any chance , have you hosted this code somewhere or mind sharing it to me, I am trying to setup similar thing. if you could share the entire setup , I shall start working on actual study work.
Host/serve llama on server
and access it in multiple clients.
thanks in advance.


Add JUnit formatter

PR checklist

[x ] Documentation update

Overview of change:
Documentation page for JUnit formatter.
Is there anything you'd like reviewers to focus on?

CHANGELOG.md entry:

Thank you for your contribution. But you don't need to update the gh-pages branch. The documentation is generated from the formatter metadata and updated when a new release is published.


LFS_ASSERT(pcache->block == LFS_BLOCK_NULL)

Hello, I use littleFS for SD card on STM32H7 with static allocation memory. My configure struct:
uint8_t read_buffer_sdio[4096];
uint8_t write_buffer_sdio[4096];
uint8_t lookahead_buf_sdio[512];
uint8_t file_buffer[4096];

  obj->lfs.read_buffer = read_buf;
  obj->lfs.prog_buffer = write_buf;
  obj->lfs.lookahead_buffer = lookahead_buf;
  obj->lfs.read_size = 512;
  obj->lfs.prog_size = 512;
  obj->lfs.block_size = 512;
  obj->lfs.lookahead_size = 512;
  obj->lfs.cache_size = 4096;
  obj->lfs.context = obj;
  obj->lfs.read = read_sd_card;
  obj->lfs.prog = write_sd_card;
  obj->lfs.erase = erase_sd_card;
  obj->lfs.sync = sync_sd_card;
  obj->lfs.block_cycles = 500;

memset(&obj->file_config, 0, sizeof(struct lfs_file_config));

  obj->file_config.buffer = file_buffer;
  obj->file_config.attr_count = 0;

I use function
lfs_file_opencfg(&obj->lfs_config, &obj->lfs_file,  name, LFS_O_WRONLY | LFS_O_CREAT, &obj->file_config);
for opening file with static buffer.
After first call function:
lfs_file_write(&obj->lfs_config, &obj->lfs_file, loggerBuffer_for_write.buffer, 1920);

I can assert:
LFS_ASSERT(pcache->block == LFS_BLOCK_NULL)
Dubugging show, that in function lfs_ctz_extend give argument nblock
For example:
In function **lfs_bd_prog**
if (block == pcache->block &&   //block  = 361 pcache->block = 360
                off >= pcache->off &&
                off < pcache->off + lfs->cfg->cache_size)  //Condition is not performed and assert

Call stack:

logger_task
lfs_file_write
lfs_ctz_extend
lfs_bd_prog

When I use cache size 512 bytes, some time the program work correctly.

Hi @9iggor6, thanks for opening an issue. A quick question: What version of littlefs are you using?
cache_size > block_size doesn't actually add anything, littlefs can only cache one block currently. Does your program work when cache_size = block_size (512)?
Maybe there should be an assert in littlefs to protect against this mistake.

Hi geky, LittleFS version 0x00020002.
You are right, some period of time(~15 min) the programm is working correctly , when cache_size = 512 and then I get assert
LFS_ASSERT(pcache->block == LFS_BLOCK_NULL).

Hi @9iggor6, just to clarify, do you hit the assert when cache_size <= 512?


Please invite me to the GitHub Community Organization

Name
Anurag Tiwari
Discord Username (if applicable)
No response
Additional Context
looking for the exposure and the new journey at EddieHub :)

thanks team :)


has_whiff_of_total function removal

Hi Matt, you might remember that around three months ago (last commission time, so we're back to that point once again!) I queried whether bcompiler -a (master to templates) was skipping data keys with 'total' in the name - based on a pattern I was seeing. I think I've found the issue.
There's a function in compile.py titles has_whiff_of_total which I think is being used to do just that.
Please could you simply remove this from the programme as it is no longer needed, as we use meta data tags in the dm master to filter out which keys into include in bcompiler - a dm csv file.
Cheers. Looking forward to our chat later.
Will.

Removed function, but untested! You will need to test with your live data. Please upgrade to version 1.13.23 using pip install -U bcompiler. Let me know if there are any problems.

tested and all good! thanks for sorting so quickly dude.

Great. Thanks for letting me know. Keep me up to date with any other problems as you enter this crucial period! Raising issues here is best way.... :-)


snmpsim-record-commands loops but does not finish

Expected behavior
I try to use snmpsim-record-commands --agent-udpv4-endpoint=<IP_ADDRESS> --output-file=/tmp/file.snmprec to dump the snmp data of an local agent
Actual behavior
But this command runs forever and continues to output more and more like this without doing anything:
OIDs dumped: 0/13000
OIDs dumped: 0/13100
OIDs dumped: 0/13200
OIDs dumped: 0/13300
OIDs dumped: 0/13400
OIDs dumped: 0/13500
OIDs dumped: 0/13600
OIDs dumped: 0/13700
OIDs dumped: 0/13800
OIDs dumped: 0/13900
OIDs dumped: 0/14000
OIDs dumped: 0/14100
OIDs dumped: 0/14200

When killed it outputs something like this
OIDs dumped: 28698, elapsed: 7.86 sec, rate: 1824.00 OIDs/sec, errors: 0
But nothing is written to the target file
Detailed steps
pip install snmpsim
snmpsim-record-commands --agent-udpv4-endpoint=<IP_ADDRESS> --output-file=/tmp/file.snmprec
Python package information
SNMP Simulator version 1.1.7
Operating system information
Linux Debian 11
Python information
3.9.2
(Optional) Contents of your test script
No response
Relevant log output
No response

New issues are marked as low priority by default. Becoming our commercial customers, and then your reports are handled with higher priority after triage.


Add RNG and Watchdog Timer devices to VMs running on KVM

This adds RNG (random number generator) and Watchdog timer features to KVM VMs. Without altering agent.properties setting no behaviour is changed.
To turn on RNG, the agent.properties needs to have:
vm.rng.enable=true
# This enabled the VirtIO Random Number Generator device for guests.
#
vm.rng.model=random
# The model of VirtIO Random Number Generator (RNG) to present to the Guest.
# Currently only 'random' is supported.
#
vm.rng.path=/dev/random
# Local Random Number Device Generator to use for VirtIO RNG for Guests.
# This is usually /dev/random, but per platform this might be different

Before enabling this, we need to think if it's wise to have all VMs use the /dev/random of the hypervisor, but we at least have the option to enable it should we want to.
The Watchdog timer is on by default, but it's up to the guest VM to start sending heartbeats. Next to that, the default action is None and that should be changed to reset to do something meaningful in case a VM stops sending heartbeats.
Settings in agent.properties related to the Watchdog timer:
vm.watchdog.model=i6300esb
# The model of Watchdog timer to present to the Guest
# For all models refer to the libvirt documentation.
# Recommend value is: i6300esb
#
vm.watchdog.action=reset
# Action to take when the Guest/Instance is no longer notifiying the Watchdog
# timer.
# For all actions refer to the libvirt documentation.
# Recommended values are: none, reset and poweroff.

Backport from ACS
Author: Wido den Hollander

Watchdog:

RNG:

Ping @borisroman

Integration tests have run and are green: https://beta-jenkins.mcc.schubergphilis.com/job/cosmic/job/0002-tracking-repo-branch-build/116/

All green, merging!


Errors in code snippets of Markers section

There are errors in code snippets of Marker section... Marker options are created with variable name markerOpt1, but added in the map with the name marker1.

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

ID: 746db42d-9af7-06b3-b059-cced44c12bc1
Version Independent ID: 84e72b26-cb39-145b-44e7-d73c325c04a2
Content: Maps API - Xamarin
Content Source: docs/android/platform/maps-and-location/maps/maps-api.md
Product: xamarin
GitHub Login: @mgmclemore
Microsoft Alias: mamcle

Hi @na2axl, thank you for the feedback! This topic has been updated and the changes should be published soon.


Add requirement on packaging

Checking the version of photutils requires the packaging module.
See:
https://github.com/spacetelescope/imexam/blob/da7e3c57cc51a4bf5a31ad444ff44c8b7e3f216f/imexam/imexamine.py#L62-L68
I happened to have photutils installed, but it was not detected by imexam becase trying to import packaging was throwing ImportError.

Coverage decreased (-0.01%) to 38.133% when pulling 8d4da3efb0d3830070e4b9fc3c40f6a8e22d811d on zonca:patch-1 into d6f21d13d0e46a07de21512c0a25d5a97084a138 on spacetelescope:master.


ENH: Speeding up filtering

This simplifies and speeds up the filtering calls (Old/New times listed in seconds on 6-core 3.6 GHz workstation for a ~6 minute, 1000 Hz sampled file):
>>> import mne
>>> import time
>>> raw = mne.fiff.Raw('Eric_SoP_001_01_raw_sss.fif', preload=True)
>>> t = time.time(); raw.filter(None, 55, n_jobs=6); print time.time() - t
Old: 118.4 New: 19.9
>>> t = time.time(); raw.filter(None, 55, n_jobs=1); print time.time() - t
Old: 586.9 New: 19.4
>>> t = time.time(); raw.filter(None, 55, n_jobs=6, filter_length=32768); print time.time() - t
Old: 37.9 New: 33.3
>>> t = time.time(); raw.filter(None, 55, n_jobs=1, filter_length=32768); print time.time() - t
Old: 75.6 New: 38.1

I think the negligible improvement for more jobs (!) is due to the overhead of pickling that much data, although I'm not 100% sure. @mluessi, any ideas here? In the meantime, it's at least faster than what we had before...
While I was at it, I also added a new feature:
>>> t = time.time(); raw.filter(None, 55, n_jobs='cuda'); print time.time() - t
4.3 (compare to 19.4 or 19.9 above)
>>> t = time.time(); raw.filter(None, 55, n_jobs='cuda', filter_length=32768); print time.time() - t
10.3 (compare to 38.1 or 33.3 above)

This feature requires installation of pycuda and scikits.cuda (and of course the underlying CUDA layer), but will gracefully fall back to n_jobs=1 if these things aren't installed. The ~3-4x speedup is worth these additional dependencies to me. I also have a 2-year old lower-end graphics card, so others may see bigger (or smaller) improvements, depending on hardware. And perhaps most importantly, the additional dependencies are completely optional (@agramfort I know you're concerned about adding dependencies). Plus this way we could say "support for CUDA in filtering raw files", which I think is cool :)
Eventually the CUDA support could also be transformed into OpenCL support for OSX and AMD folks, too, but this was the simplest path. It's also possible that I haven't optimized the CUDA code as much as I could, although I think it's close.

https://github.com/hgomersall/pyFFTW/commit/70ecefd2f9bde099f5f3d99e9031397b43ec4bc7
Pyfftw is now BSD.
Does that mean we can have the PyFFTW interface @Eric89GXL ? :)

FFTW itself is still GPL. Then again we use matplotlib which links to qt which is GPL licensed, so I get a little bit confused. @agramfort?

(this would likely bring much better speed gains than mklfft BTW)

AFAIK matplotlib links with pyside/qt which is L-GPL.
http://matplotlib.org/users/license.html
so there is no GPL issue.


cubic spline interpolation (ln)

Choosing interpMethod ==2 in getConstrainedQuantAtT2D() leads to exponentiating the concentration. Is this ever un-exponentiated anywhere else?

Closed by #188


Snake dev

resolves #1

have a look at it and if it looks good, da a "squash and merge" (in the dropdown next to the "merge pull request")


fix(diagnostic): Don't panic on empty spans

What does this PR try to resolve?
There is another level to this bug where we better point to where the
error occurs, see toml-rs/toml#669.
Fixes #13374
How should we test and review this PR?
Additional information

Feel free to r+ me when CI finishes

@bors r+

:pushpin: Commit 1c05d412af53d554f1f64470e5939bcfe953dd4f has been approved by Muscraft
It is now in the queue for this repository.

:hourglass: Testing commit 1c05d412af53d554f1f64470e5939bcfe953dd4f with merge 0f37cfb1f5da7e60ba60fd896751d8142882c582...

:sunny: Test successful - checks-actions
Approved by: Muscraft
Pushing 0f37cfb1f5da7e60ba60fd896751d8142882c582 to master...

:eyes: Test was successful, but fast-forwarding failed: 422 Changes must be made through a pull request.


Add frustum

@ajpmaclean : Is this fine Now?

You have conflicting files. Please resolve them. I have no idea of the relevance of the change to CMakeLists.txt in relation to this merge request.

I have removed the Conflicts Now. Please Check

Two issues:

Resizing the window doesn't resize the image, something seems to be missing here.
You are missing a test image, you can create it with code like this (remember to delete this code once the image is produced, also check that the image is the correct size):

import vtk.vtkPNGWriter;
import vtk.vtkWindowToImageFilter;

// ...
        renWin.GetRenderer().ResetCamera();

        vtkWindowToImageFilter windowToImageFilter = new vtkWindowToImageFilter();
        windowToImageFilter.SetInput(renWin.GetRenderWindow());
        // For some reason this has to be set to 2 to get a 400X400 image.
        windowToImageFilter.SetScale(2); // image quality
        windowToImageFilter.SetInputBufferTypeToRGB();
        windowToImageFilter.ReadFrontBufferOff();
        windowToImageFilter.Update();

        vtkPNGWriter writer = new vtkPNGWriter();
        writer.SetFileName("Frustum.png");
        writer.SetInputConnection(windowToImageFilter.GetOutputPort());
        writer.Write();

For some reason the image becomes detached from the window (not sure why) but the correct png is produced.

I have Created Test Image and have uploaded the same in src/Testing/Baseline/Java/GeometricObjects/TestFrustum.png
Which IDE are you using ? to check image resize problem.
It works fine with eclipse IDE. Let me also check with the one you are working.


Chrome can't download CSV results

Clicking on a CSV media type link in VocPrez in Croome (or Edge) does not result in a CSV data display or file download.
Works fine in Firefox.
Works if the link is copies and re-pasted into Chrome address bar.
Suspect certain disposition headers need to be set.
e.g. http://gssa-prez-linux-web-app.azurewebsites.net/vocab/MD_MaintenanceFrequencyCode?_profile=dd&_mediatype=text/csv

Couldn't reproduce issue on my version of chrome. Content disposition header added and pushed to SRA repo. Can see headers in SRA web app now.
https://gssa-prez-code-linux-web-app.azurewebsites.net


Add Database statistics and maintenance

Implement print of database statistics and give ability to clean up different parts or it.

Last portion of stats and delete options added to 0.0.61.


Is the Azure image no longer updated?

Yea finally the new preview is now online :). I also updated my Azure Machine directly to update the ReadMe. But I only get the February AL expansion. Do I have to go through the get ready program and is the Docker image just out of date? Or is this a bug?

As mentioned in the blog post https://blogs.msdn.microsoft.com/nav/2018/03/23/developer-preview-march-update/ the latest build should have become publicly available as of April 2nd. If that's not the case then it's a big.

Fixed with #1948


Add a function to standardize console output.

i.e.
INFO  Creating pipenv environment.
WARN  Network connect interrupted.
ERROR  Stack over flow!

Thanks for the initiative @isudox! I don't know if this will fall in line with how Kenneth has wanted to handle messaging from pipenv though. I think we're going to pass on this but please let us know if you have any other thoughts.


Update README.md

anywhere in the docs to update as well?

Codecov Report

Merging #116 (80fd881) into master (e01db16) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #116   +/-   ##
=======================================
  Coverage   90.57%   90.57%
=======================================
  Files           8        8
  Lines         403      403
=======================================
  Hits          365      365
  Misses         38       38

Continue to review full report at Codecov.

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


Postgres connection not working

I tried to connect to a local PostgreSQL database via
vdsql postgres://localhost:5432/my_db

but following error occurred:
Traceback (most recent call last):
  File "/Users/spren9er/.local/share/virtualenvs/vd-UPn86r9P/bin/vdsql", line 15, in <module>
    main.vd_cli()
  File "/Users/spren9er/.local/share/virtualenvs/vd-UPn86r9P/lib/python3.9/site-packages/visidata/main.py", line 350, in vd_cli
    rc = main_vd()
  File "/Users/spren9er/.local/share/virtualenvs/vd-UPn86r9P/lib/python3.9/site-packages/visidata/main.py", line 241, in main_vd
    vs = vd.openSource(p, create=True, **opts) or vd.fail(f'could not open {p}')
  File "/Users/spren9er/.local/share/virtualenvs/vd-UPn86r9P/lib/python3.9/site-packages/visidata/_open.py", line 95, in openSource
    vs = vd.openPath(Path(p), filetype=filetype)  # convert to Path and recurse
  File "/Users/spren9er/.local/share/virtualenvs/vd-UPn86r9P/lib/python3.9/site-packages/visidata/_open.py", line 50, in openPath
    return openfunc(p, filetype=filetype)
TypeError: open_vdsql() got an unexpected keyword argument 'filetype'

Database connection works in principle. Following command is successful without any issues
vd postgres://localhost:5432/my_db

but this is using psycopg2 and not ibis framework.

Hi @spren9er, thanks for reporting this bug; this should be fixed in the develop branch.  It will be in v0.2, which we are planning to release soon.