Better handling of <esc>

Neovim captures the first <esc> when in a yazi buffer.
As a fix I added vim.keymap.set('t', '<esc>', '<esc>', { buffer = yazi_buffer }) in the set_keymappings_function.
Then this hack is not needed anymore: https://github.com/mikavilpas/yazi.nvim/blob/1efb48847944c4036bfd4114590bd617b274adf9/lua/yazi/window.lua#L93-L100

Hmm, interesting idea. This is definitely hacky and could be improved.
However, I tried this out a bit and ran into some issues. Can you see if it works for you on this branch better-handling-of-esc-idea?
https://github.com/mikavilpas/yazi.nvim/pull/127
I added instructions on how this could be tried out to https://github.com/mikavilpas/yazi.nvim/blob/master/documentation/for-developers/setting-up.md#managing-your-development-code

#127 works fine!

For me, running nvim -u repro.lua . (to start neovim with yazi.nvim showing the current directory) doesn't show yazi.nvim after this change. The suggested change might have caused this, and this should be fixed before merging the change in.
Details

-- You can use this file to reproduce an issue with your configuration.

---@module "yazi"
---@module "lazy"

-- DO NOT change the paths and don't remove the colorscheme
local root = vim.fn.fnamemodify('./.repro', ':p')

-- set stdpaths to use .repro
for _, name in ipairs({ 'config', 'data', 'state', 'cache' }) do
  vim.env[('XDG_%s_HOME'):format(name:upper())] = root .. '/' .. name
end

-- bootstrap lazy
local lazypath = root .. '/plugins/lazy.nvim'
if not vim.loop.fs_stat(lazypath) then
  vim.fn.system({
    'git',
    'clone',
    '--filter=blob:none',
    'https://github.com/folke/lazy.nvim.git',
    lazypath,
  })
end
vim.opt.runtimepath:prepend(lazypath)
vim.g.mapleader = ' '

-- install the following plugins
---@type LazySpec
local plugins = {
  'folke/tokyonight.nvim',
  {
    'mikavilpas/yazi.nvim',
    branch = 'better-handling-of-esc-idea',
    dependencies = {
      'nvim-lua/plenary.nvim',
    },
    event = 'VeryLazy',
    keys = {
      {
        -- 👇 choose your own keymapping
        '<leader>fy',
        function()
          require('yazi').yazi()
        end,

        { desc = 'Open the file manager' },
      },
    },
    ---@type YaziConfig
    opts = {
      open_for_directories = false,
    },
  },
}
require('lazy').setup(plugins, {
  root = root .. '/plugins',
})

vim.cmd.colorscheme('tokyonight')
-- add anything else here

You have set open_for_directories = false...

Oops, you're right. My bad. I'll look into it more.

Something seems to conflict in lazyvim:
https://github.com/mikavilpas/yazi.nvim/assets/300791/a50d0da7-d497-4fbe-a455-0e6c905add6e
Details

-- You can use this file to reproduce an issue with your configuration.

---@module "yazi"
---@module "lazy"

-- DO NOT change the paths and don't remove the colorscheme
local root = vim.fn.fnamemodify('./.repro', ':p')

-- set stdpaths to use .repro
for _, name in ipairs({ 'config', 'data', 'state', 'cache' }) do
  vim.env[('XDG_%s_HOME'):format(name:upper())] = root .. '/' .. name
end

-- bootstrap lazy
local lazypath = root .. '/plugins/lazy.nvim'
if not vim.loop.fs_stat(lazypath) then
  vim.fn.system({
    'git',
    'clone',
    '--filter=blob:none',
    'https://github.com/folke/lazy.nvim.git',
    lazypath,
  })
end
vim.opt.runtimepath:prepend(lazypath)
vim.g.mapleader = ' '

-- install the following plugins
---@type LazySpec
local plugins = {
  'folke/tokyonight.nvim',
  { 'LazyVim/LazyVim', import = 'lazyvim.plugins' },
  {
    'mikavilpas/yazi.nvim',
    dependencies = {
      'nvim-lua/plenary.nvim',
    },
    branch = 'better-handling-of-esc-idea',
    event = 'VeryLazy',
    keys = {
      {
        -- 👇 choose your own keymapping
        '<leader>fy',
        function()
          require('yazi').yazi()
        end,

        { desc = 'Open the file manager' },
      },
    },
    ---@type YaziConfig
    opts = {
      open_for_directories = true,
    },
  },
  {
    'nvim-neo-tree/neo-tree.nvim',
    opts = {
      filesystem = {
        hijack_netrw_behavior = 'disabled',
      },
    },
  },
}
require('lazy').setup(plugins, {
  root = root .. '/plugins',
})

vim.cmd.colorscheme('tokyonight')
-- add anything else here

I like this idea a lot though. If you can resolve this issue, I would like to merge it.

The issue is: On pressing <esc> your yazi window leaves the insert mode?
I do not have this issue with your config, but in the video your status line is modified, while mine is vanilla, so I would guess there is a conflict with a plugin.

That's it exactly. Can you reproduce the behaviour with the reproduction script in my previous message?

Nope, works also fine with the updated repro script.
Maybe you are running in this issue again:
     -- HACK Sometimes pressing "<esc><esc>" exits insert mode the first time it's pressed.
      -- Work around this by starting insert mode after the first time the mode changes.

Maybe try deleting the .repro directory

Just tried deleting the .repro directory, but I'm still getting the same behaviour. Did you also try after removing your .repro directory?
I think it should effectively start over from scratch in that case.

LazyVim has in the Terminal mode a mapping for <esc> defined:
t  <Esc><Esc>  * <C-\><C-N>
                 Enter Normal Mode
	Last set from ~/.repro/plugins/LazyVim/lua/lazyvim/util/init.lua line 218

Just merged the refactor in. Thanks again for the idea and help!


Can't resolve JavaScript dependency on Github Package Registry

Dependabot keeps creating an issue with the following error message in my lerna monorepo:
Error whilst updating fs-extra in /packages/api/package-lock.json:
404 Not Found - GET https://registry.npmjs.org/@myorg/package - Not found

The weird thing is that @myorg/package is not listed in /packages/api/package-lock.json (it is however in package.json). Additionally it is not hosted on registry.npmjs.org, but on npm.pkg.github.com.
$ grep "@myorg/package" packages/api/package-lock.json
$

I have added credentials to Github Package Registry in https://app.dependabot.com using a personal access token with read:packages permissions.
Should I try adding an .npmrc file with @myorg scope to the repo?
@myorg:registry=https://npm.pkg.github.com

Edit: Adding the .npmrc file did not help.

Would love to know if anyone has some insight on this. We have a bunch of linked packages.

I'm stuck on this too circleci just reads my .npmrc file and everything is fine why can't dependabot do the same thing.

Getting the same issue

Same for me

I created a new personal token with those rights:

Pasted in the dependabot var config form:

And worked like a charm. I just don't know which of the selected rights did the trick. :smile:

This did not work for me unfortunately

Are you still running into this with the GH native version of Dependabot? It seems like a configuration issue, because this feature works as expected for other users and some internal test repo's we have.

Are you still running into this with the GH native version of Dependabot? It seems like a configuration issue, because this feature works as expected for other users and some internal test repo's we have.

No, I managed to fix it. Thank you for your consideration.


Working upload page

Completed the upload page and replaced the home page garbo with it. Fully functional, but not entirely protected as there is no "canedit" variable for users so anyone who is affiliated can post and edit their chapter.

oops

If you are going to add this I would recommend only using the changes you made to the navbar and the "Feed" page. The homepage formatting is messed up in several places and is now lacking the color contrast it once had since you tried to merge the "About Us" with the homepage.


Tailwind Plugin breaks existing page design

What version of starlight are you using?
0.10.1
What version of astro are you using?
3.1.0
What package manager are you using?
pnpm
What operating system are you using?
Linux
What browser are you using?
Chrome
Describe the Bug
I just installed Starlight into an existing astro project, in wich the documentation should live under /docs. As I already use tailwind, I only added the plugin and imported the main.css into the starlight config.
However, adding the tailwind plugin overwrites the base CSS reset Tailwind uses.
I already tried splitting up my tailwind config, one for the website and one for the docs and use @config at the top of the file.
For some reason astro still picks the docs.css over main.css.
Right now, all my buttons and links look like this (font fell back to Times New Roman):

Link to Minimal Reproducible Example
No response
Participation

[X] I am willing to submit a pull request for this issue.

Thanks for the issue @spaceemotion!
Could you share a list of the styles that you lost?
It would also be helpful to see some code/a reproduction as there are a lot of moving parts here (existing site routes, Tailwind config, CSS files, Starlight config, etc), so it's hard to know what the issue is without a bit more detail.

Styles breaks for me by just setting up a starlight repo with the template, and running: npx astro add tailwindcss.
After adding tailwindcss:

Before:

I am trying to get starlight running on an existing site as well. I also noticed that the tailwind integration broke things. The solution I found was to disable default styles in Tailwind. So in the astro config file use this:
integrations: [
    tailwind({
      applyBaseStyles: false,
    }),
    starlight({
      title: "My Docs",
    }),
  ],

Thanks everyone. Reading this it sounds like there are two scenarios:

Tailwind was added, but without following our Starlight + Tailwind guide, meaning some Tailwind styles that conflict with Starlight being applied. In this case, I’d recommend reading through that guide as it explains how to get Tailwind working inside your Starlight pages.

Tailwind was added, but was only actually needed in some non-Starlight pages. The fix here was using applyBaseStyles: false and importing a Tailwind base.css only in the pages that needed it as per the Astro Tailwind docs.

We could potentially add a note about that second case to the Starlight docs, but for now I feel like there isn’t a bug described here for us to fix, so going to close this as resolved.

@delucis let me try if i can build up an example this week, because this hasn't been my experience. i did follow the guide and it definitely didn't work as expected. maybe it has been fixed in the meanwhile without me noticing though! i still have that cobbled-together setup that somewhat works.

@spaceemotion Thanks! Yeah, a reproduction would be super helpful in understanding what’s up.


第一次加载程序崩溃

第一次家在程序崩溃在这里
private func setupCacheChecking() {
maybeCachedCheckingQueue.async {
do {
self.maybeCached = Set()
try self.config.fileManager.contentsOfDirectory(atPath: self.directoryURL.path).forEach { fileName in
self.maybeCached?.insert(fileName)
}
} catch {
// Just disable the functionality if we fail to initialize it properly. This will just revert to
// the behavior which is to check file existence on disk directly.
self.maybeCached = nil
}
}
}
具体是泵在try self.config.fileManager.contentsOfDirectory(atPath: self.directoryURL.path).forEach { fileName in
                }

Do you have a reproducing example or some more detail stack information when this crash happens?


Use shorter IO timeouts to allow faster closing of connection

I noticed that closing connections can sometimes take a long time, which can create memory pressure on iOS. The reason is that while a read or write is blocked, we can't complete our close. Previously, we used half the idle timeout as our IO timeout to unblock reads and writes, but for long idle timeouts like our 30 second timeout on clients, that means we have to wait up to 15 seconds to close.
I don't think there's any need for read or write timeouts greater than 1 second, so this enforces that as a limit.

[x] Do the tests pass? Consistently?

Closing in favor of #21


Fix changelog links

For the new release automation its expecting 3 dots not 2 in changelog links.
https://github.com/giantswarm/architect/blob/b85a96fa76e666da98c0df9f68e874c9a8a09896/cmd/preparerelease/internal/modifier.go#L73-L77

Going with a ping.


Missing haarcascades xml files

First thanks for putting this package together!
I'm trying to perform face detection by following this tutorial: http://docs.opencv.org/trunk/d7/d8b/tutorial_py_face_detection.html, however this leads to an error as the haarcascade xml files appear to be missing from the wheel:
import cv2
face_cascade = cv2.CascadeClassifier('haarcascade_frontalface_default.xml')
print(face_cascade.empty())
img = cv2.imread(<path/to/an/image/file>)
gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY)
faces = face_cascade.detectMultiScale(gray, 1.3, 5)

This should print False and then perform face detection. However, it prints True and then leads to an error:
opencv-python/opencv/modules/objdetect/src/cascadedetect.cpp:1698: error: (-215) !empty() in function detectMultiScale
It looks as though the files under https://github.com/opencv/opencv/tree/master/data are missing from the wheels so I guess that adding them should fix this.
(This works as expected using the conda package).

macOS Sierra 10.12.6
x86-64
opencv-python v<IP_ADDRESS>

Thanks!

Thanks for the report, I'll add them to the package in next release. I have to go first through the licenses of those files. Most of them seem to be under BSD-like license so shouldn't be a problem to include them.

Great, thanks!

Maybe add from cv2 import DATA as a helper for os.path.dirname(cv2.__file__)?
Or maybe even a constant cv2.data.haarcascade if there are not many files.

Yes, I was thinking about something like cv2.data.haarcascades which is the path to the folder which contains the haarcascade files.

The haarcascades path can be accessed now via cv2.data.haarcascades.

Can anybody tell how to set path for xml files

Hi all..I am using openCV2 with OS X Xcode....why there is no data folder in opencv framework ? to use haar cascade xml file..kindly help me out


Fix -Wpedantic warning

This fixes the following warning when compiling with -Wpedantic
/usr/local/include/restclient-cpp/restclient.h:62:2: warning: extra ‘;’ [-Wpedantic]
 };  // namespace RestClient

oh awesome! Thanks for the patch!


Add rotation handle.

I am working on attaching a rotation handle to the element but having a few issues. I have taken the approach of adding the handle to the wrapper in the selector. I want the handle to have access to the mouse down, mouse up, and the mouse move and update the angle of the element base off of where the handle is updated.

@Peterksharma  Thanks for your suggestion. I already had plans to develop this feature in the future.

Do you have a roadmap for when it will be developed? Would I be able to hire you for help?

@Peterksharma Hi, I plan to implement this feature about rotation before the end of Feb.
At percent, you don't need to hire me. iDraw.js is my hobby project in my space time, and I currently developing it based on my interest.

@Peterksharma Hi, I have implemented rotation handle of element


Social Login

[ ] Facebook
[ ] Google
[ ] Github
[ ] LinkedIn

I did some testing today and yesterday on the social SDKs to get a better idea of how they work and what we'd need to do to support them.
Currently, we're still waiting on the express-stormpath API to support a social login flow, but it should be completed soon. When that happens, we'll be able to pass a social provider token to the endpoint, and retrieve and access & refresh token from Stormpath.
Here's my thoughts on integrating with them:
Facebook and Google's SDKs are relatively well-designed and I would not hesitate to suggest asking our users to integrate their SDKs. As time goes on, we could probably do more with them.
LinkedIn's SDK is a bit more clunky and I'd be hesitant to ask users to do this. GitHub doesn't support mobile very well so we'd have to implement the OAuth flow ourselves. I would elect to wait a bit for these two integrations as we figure out a more general way to support social providers.

Yeah, in addition the LinkedIn SDK for mobile doesn't give you an access token that's usable on the server, but only on the mobile SDK. We would need to go through the normal OAuth flow to get an auth code (and then pass it to the server to get an access token).

Facebook and Google added in d16eeeb. GitHub / LinkedIn will be added in the future.


HPX should detect the number of cores on the build machine

Expected Behavior
HPX should build for the number of cores on the machine you're on by default
Actual Behavior
It builds for 64 or less cores

This shouldn't be difficult to achieve if we assume that cmake runs on the node the built libraries should be used on (by default). cmake supports cmake_host_system_information(RESULT NUM_CPUS_VARIABLE QUERY NUMBER_OF_PHYSICAL_CORES) to query the number of cores at configuration time.

I still think that we should use dynamic bitsets by default for the CPU masks giving you no limit. They are mainly accessed during scheduler setup, and definitely not in a hot loop in the scheduler. While detecting the number of cores of the host system works in many cases, it won't work on many clusters where login and compute nodes are different.
I've opened https://github.com/STEllAR-GROUP/hpx/pull/5663 to test this hypothesis. If it turns out the dynamic bitsets really do affect performance then detecting the number of cores on the host is still an improvement over the current situation.

They are mainly accessed during scheduler setup, and definitely not in a hot loop in the scheduler.

Aren't those accessed during work stealing?

They are mainly accessed during scheduler setup, and definitely not in a hot loop in the scheduler.

Aren't those accessed during work stealing?

No, only to set up the datastructures used in work stealing.

They are mainly accessed during scheduler setup, and definitely not in a hot loop in the scheduler.

Aren't those accessed during work stealing?

No, only to set up the datastructures used in work stealing.

Ok, in that case it doesn't really make sense to optimize the masks for up to 64 cores.

The only "tangible" downside I know of is that the shared priority queue scheduler will be disabled when it's using dynamic bitsets (because it sets up std::arrays of the maximum core count).

The only "tangible" downside I know of is that the shared priority queue scheduler will be disabled when it's using dynamic bitsets (because it sets up std::arrays of the maximum core count).

Do those have to be static? Replacing them with std::vectors might be an option that should incur just some overhead at startup, not during scheduler operation.

There's of course the extra indirection from using vectors but my expectation is that it wouldn't make a difference. @biddisco would know if there is actually any measurable impact of using arrays there instead of vectors. From a purely functional perspective vectors would absolutely be easier than arrays.


gadgets/run: Add support for toppers and implement top file

gadgets/run: Add support for toppers and implement top file
This PR adds support for top gadgets in a containerized way and implements the top file gadget using it.
How to use
export IG_EXPERIMENTAL=true
docker build -f Dockerfiles/ebpf-builder.Dockerfile -t ebpf-builder .
cd gadgets/top_file/
go run --exec "sudo -E" ../../cmd/ig/... image build -t top_file --builder-image ebpf-builder:latest .
go run --exec "sudo -E" ../../cmd/ig/... run top_file

TODO before merging

[x] Support max rows
[ ] Support basic sorting
[x] https://github.com/inspektor-gadget/inspektor-gadget/pull/2107
[x] https://github.com/inspektor-gadget/inspektor-gadget/pull/1866

Can you please indicate how does it collide with #2512? I would like to review it, but if we merge #2512 and everything is modified in consequence, I would rather focus on #2512.

Part of the code of this PR will need to be updated after #2512. However, in today's dev sync meeting, we agreed to go ahead with this PR because:

We expect it to be easy to review.
The refactor will take some time to get merged thus we don't want to start blocking developments on it.

I managed most comments. From the approvals, I conclude it's fine to merge this PR as it is and the missing tasks can be managed in future PRs (I'll create issues for them):

Sort on the server side.
Sort by strings is not working.
Study the possibility of using Iterate().
Study the possibility of using BatchLookupAndDelete

Do we all agree?

Rebased to update the metadata unit-tests with the HomepageURL, DocumentationURL and SourceURL, now that https://github.com/inspektor-gadget/inspektor-gadget/pull/2522 was merged.


Not working

The script doesn't work and I get the below error:

Same HERE. dID YOU FIXED?

updated


Change template parameter in front-end in definitions like superset.

With this change front-end superset(I(0,1),I(2,3)) is delegated to back-end subset(pair(2,3),pair<double<0,1>).
After the change it is delegated to subset(pair(2,3),pair(0,1))

The above text was scrambled by marup language. New edition:
Before the change front-end  superset(I<float>(0,1),I<double>(2,3>) was delegated to back-end subset(REP<double>(2,3),REP<double>(0,1)). I think that this is due to automatic conversion from std::pair<float,float>(0,1) to std::pair<double,double>(0,1). After the change the same front-end is delegated to back-end subset(REP<double>(2,3),REP<float>(0,1)).

Well spotted...


When you change voice status in any other way(mute/unmute, etc.) bot reacts

While developing the next commit, I found that bot thinks as any voice status change as leaving the channel, and so, with v!voicemessage, stops recording

Fixed


Domain Error on iOS 8 not on iOS 10 version?

Hi All,
We are facing domain error only on iOS 8 versions and not able to get response from API but the same code works fine on iOS 10 versions. I have attached the required information below, please check and let me know if any solution.
AFNetworking Version : 3.1.0
ERROR: " Error Domain=com.alamofire.error.serialization.response Code=-1011 "Request failed: unauthorized (401)" UserInfo=0x7fd440dc6e00 {com.alamofire.serialization.response.error.response=<NSHTTPURLResponse: 0x7fd44586cbb0> { URL: http://......../users/login } { status code: 401, headers {
"Accept-Ranges" = none;
Connection = "keep-alive";
"Content-Length" = 381;
"Content-Type" = "text/html; charset=iso-8859-1";
Date = "Fri, 27 Oct 2017 10:17:40 GMT";
"Keep-Alive" = "timeout=5, max=100";
"Proxy-Support" = "Session-Based-Authentication";
Server = Apache;
Via = "HTTP/1.1 sophos.http.proxy:3128";
"Www-Authenticate" = "Basic realm="Restricted"";
} }"
AFHTTPSessionManager *manager = [AFHTTPSessionManager manager];     AFJSONRequestSerializer *serializer = [AFJSONRequestSerializer serializer];     [serializer setValue:@"application/json" forHTTPHeaderField:@"Content-Type"];     [serializer setValue:@"application/json" forHTTPHeaderField:@"Accept"];     manager.requestSerializer = serializer;     manager.responseSerializer = [AFHTTPResponseSerializer serializer];     manager.securityPolicy.allowInvalidCertificates = YES;     manager.securityPolicy.validatesDomainName = NO; [manager POST:url parameters:parameters constructingBodyWithBlock:^(id<AFMultipartFormData>  _Nonnull formData) {     } progress:^(NSProgress * _Nonnull uploadProgress) {     } success:^(NSURLSessionDataTask * _Nonnull task, id  _Nullable responseObject) {         [MBProgressHUD hideHUDForView:[UIApplication sharedApplication].keyWindow.rootViewController.view animated:YES];         NSLog(@"responseObject %@",responseObject);     } failure:^(NSURLSessionDataTask * _Nullable task, NSError * _Nonnull error) {                NSLog(@"err : %ld",(long)[error code]);                 NSLog(@"err : %@",[error description]);     }];
API: HTTP (Development)
we have added
<key>NSAppTransportSecurity</key>    <dict>         <key>NSAllowsArbitraryLoads</key>         <true/>     </dict>
in plist.
Please let me know if any solution.
Thanks!

It’s going to be tough to know why your server is returning a 401 error for some iOS versions and not others. Might be better asked on StackOverflow.


Upgrade more GitHub Actions versions to remove deprecation warnings

In the previous PR I missed three actions upgrades.

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

Project coverage is 81.51%. Comparing base (180c7b5) to head (0172cc3).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #147   +/-   ##
=======================================
  Coverage   81.51%   81.51%
=======================================
  Files          11       11
  Lines        1082     1082
=======================================
  Hits          882      882
  Misses        128      128
  Partials       72       72

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


Output password minimum length value instead of key to configuration

1. Why is this change necessary?
This is the html in the register form:
<input
    type="password"
    class="form-control"
    autocomplete="new-password"
    id="personalPassword"
    placeholder="Passwort eingeben ...*"
    name="password"
    minlength="shopware.config.core.loginRegistration.passwordMinLength"
    data-form-validation-length="8"
    data-form-validation-length-message="Das Passwort muss mindestens 8 Zeichen lang sein."
    required="required">

Zoom in
    placeholder="Passwort eingeben ...*"
    name="password"
    minlength="shopware.config.core.loginRegistration.passwordMinLength"
    data-form-validation-length="8"
    data-form-validation-length-message="Das Passwort muss mindestens 8 Zeichen lang sein."

More zoom
    name="password"
    minlength="shopware.config.core.loginRegistration.passwordMinLength"
    data-form-validation-length="8"

Aaah
    minlength="shopware.config.core.loginRegistration.passwordMinLength"

2. What does this change do, exactly?
Twig changes:
    minlength="{{ shopware.config.core.loginRegistration.passwordMinLength }}"

3. Describe each step to reproduce the issue or behaviour.

Install shopware

4. Checklist

[ ] I have written tests and verified that they fail without my change
[x] I have squashed any insignificant commits
[ ] I have written or adjusted the documentation according to my changes
[ ] This change has comments for package types, values, functions, and non-obvious lines of code
[x] I have read the contribution requirements and fulfil them.

Hello,
thank you for creating this pull request.
I have opened an issue on our Issue Tracker for you. See the issue link: https://issues.shopware.com/issues/NEXT-7809
Please use this issue to track the state of your pull request.

I just did it myself
Thank you for your contribution :blue_heart: :tada:

There was an additional password field as well? 😁 I must admit I didn't expect there two password fields but I got it
You're welcome :)


GUI not working on Python 3.10

Launching the GUI gives an error related to the TraitsUI dependency (see https://github.com/enthought/traitsui/issues/1906).

Fixed by #517.


Is there example/documentation of a custom view engine?

I see the code for the Razor view engine, but I don't seen how view engines (including Razor) get registered with MVC

I think I found what I was looking for in
Mvc/test/WebSites/CompositeViewEngineWebSite

I'm trying that example. But I get this error
File name: 'XslMvc' ---> Microsoft.Framework.Runtime.Roslyn.RoslynCompilationException:
C:\ShufflePoint\dev\XslMvc\Startup.cs(17,29): error CS1061:
'MvcOptions' does not contain a definition for 'ViewEngines' and no extension
method 'ViewEngines' accepting a first argument of type 'MvcOptions' could be found  (are you missing a using directive or an assembly reference?)
Which .net version/runtime should I use to test this?

The sample I had stumbled upon was a branch with this code
        // Add a view engine as the first one in the list.
        services.AddMvc()
            .ConfigureMvc(options =>
            {
                options.ViewEngines.Insert(0, typeof(TestViewEngine));
            });

The dev branch has
        services.AddMvc()
            .ConfigureMvcViews(options =>
            {
                options.ViewEngines.Insert(0, typeof(TestViewEngine));
            });

Using that I get a different error:
error CS1503: Argument 2: cannot convert from 'System.Type' to 'Microsoft.AspNet.Mvc.ViewEngineDescriptor'

@back5576 sounds like now you've found a sample, you're hitting versioning issues. Make sure you are using Beta 6 packages and runtime when trying the dev sample.

I'm just starting - and know just enough to be dangerous. How do I assure that I am using Beta6 packages?
I did this to set the runtime
dnvm use 1.0.0-beta6-12032 -r clr -arch x86

You're runtime is the Beta 6 runtime. The project.json file lists what packages dnu restore should find and project.lock.json what it actually found.

My project.json is the same as in the example. The project.lock.json has various beta6 versions.
I did a "dnvm upgrade -u" since I hadn't done that in a couple days. Now I get a different errors:
TestPartialView.cs(11,27):
error CS1983: The return type of an async method must be void, Task or Task
TestPartialView.cs(11,22): error CS0433: The type 'Task' exists in both 'System.Threading.Tasks, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' and 'mscorlib, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=b77a5c561934e089'
TestPartialView.cs(7,36): error CS0738: 'TestPartialView' does not implement interface member 'IView.RenderAsync(ViewContext)'. 'TestPartialView.RenderAsync(ViewContext)' cannot implement 'IView.RenderAsync(ViewContext)' because it does not have the matching return type of 'Task'.
TestView.cs(11,27): error CS1983: The return type of an async method must be void, Task or Task
The piece of the puzzle I don't get is how to setup to run the provided examples? How does one assure they have the same runtime and packages?
Thanks,
Chris

Anyone? Am stuck here.

https://github.com/aspnet/Docs/issues/137

@back5576 Looks like you are having an issue resolving the correct Task type. This is probably due to a version mismatch or it could be a bad beta6 build. Make sure you are running on beta6 with a consistent set of beta6 packages.

I got it working by first running build.cmd in the root folder of the Mvc git project. Now I have to figure out why that worked.


NFS Installer on Windows breaks when spaces present

The Problem/Issue/Bug:
The NFS Installer on Windows errored out.
How this PR Solves The Problem:
The $HOME variable isn't quoted and when a space is present in the profile it gets expanded into another parameter to the docker command.
This PR quotes the value to prevent unintended consequences.
Manual Testing Instructions:
Automated Testing Overview:

Related Issue Link(s):
Release/Deployment notes:

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

Thanks for this! I could have sworn that class of failures was already fixed in there :)


Fix: Destructure users and rooms

@KlausMikhaelson I removed all the console logs and slashes

LGTM !

Thanks for your contribution @MahirMahdi , if we get more people contributing to our projects than I will make https://sharktanks.tech/ (an online multiplayer game using threejs, nodejs, expressjs, socketio) open sourced too !


Add example view components as a gem shared_view_components

Summary
This PR introduces a new section of the guide called Creating a Gem. This tutorial walks users through how to set up their own gem for custom view components.
The PR also includes an example gem within the shared-view_components folder.
Other Information
N/A

Thanks for your work on this @coderberry, this guide will be a great addition to the docs!
I'm wondering if it's really necessary to include a full example (about 1000 lines of code) at the root of the repo. Could it live in another repository maybe?

I'm wondering if it's really necessary to include a full example (about 1000 lines of code) at the root of the repo. Could it live in another repository maybe?

@Spone I could go either way on this. I'm not super interested in setting up and managing another repo, but could see the argument for not making the VC repo heavier. My vote would be to slim down the example to the bare minimum, and keep it in the repo.

I could go either way on this. I'm not super interested in setting up and managing another repo, but could see the argument for not making the VC repo heavier. My vote would be to slim down the example to the bare minimum, and keep it in the repo.

If kept in the repo, I would suggest:

to move it to a root examples folder, in order to make the intent of this folder clear when browsing the source
mention the existence of the example in the docs (preferably at the beginning, since the docs are basically a "how-to" guide to replicate the example), else I'm afraid some people might miss it

@Spone I'm 👍🏻 to all of those suggestions.

Closing as stale. Please reopen if you'd like to continue your work here ❤

@coderberry no worries! I'd be very happy to be able to merge this, and my offer to assist still stands, let me know how I can help!

Yes, feel free to share what you have, and we'll start from that. I'll reopen this PR.
I'm in the process of building a gem that includes ViewComponents, so I'll be able to try out the instructions / code you have.

Closing as stale. Please reopen if/when you plan to pick this up, @Spone ❤


Dimensions {'member_id'} do not exist in 2020ECAHM-scikit-downscale

Hello,
Hope you are doing great. I have been trying to run the code for downscaling and have been able to run it except for last cell.when i reach the last cell of model.predict i receive an error "Dimensions {'member_id'} do not exist. Expected one or more of ('time', 'lat', 'lon')". As far as i understand when we access the cmip6 data, member_id becomes part of xarray dataarray, and when i apply model.predict i get this error. I shall be highly obliged if you could look into this.

When i run this :
predicted = model.predict(holdout_subset).load()
display(predicted)
predicted.isel(time=0).plot()
Following error comes: ValueError: Dimensions {'member_id'} do not exist. Expected one or more of ('time', 'lat', 'lon')

I have figured out the issue. So in my case member_id was 2. I then did catalog column search for 1 member_id='r1i1p1f1'.
And it worked. So the notebook takes up 1 member_id at a time.


File is not copied if file name equals folder name

Version of HACS
0.12.1

Describe the bug
If ha_zigbee2mqtt_networkmap is installed via HACS, the file viz.js (folder name equal to file name) is missing. An archive remains from another file (full.render.js). See screenshot:

Will try to fix that to 0.13.0

#rgruebel/ha_zigbee2mqtt_networkmap/18

rgruebel/ha_zigbee2mqtt_networkmap#18


[Feature]: Query Payments using Email Address

🚀 Feature Proposal
Please provide a way to filter the Payments based on email address through the API.
Creating a new ticket as I couldn't respond to #186 in time.
Suggested Solution
We have the same API available on the Razorpay Dashboard.
<EMAIL_ADDRESS>Alternatives
We had to fetch thousands of payments just to filter them based on email.
Additional Information
When our customer contacts customer support regarding the status of the payment, what's the correct way to find their payments through the API? Is there any solution?

Hi, @Praveen2106  I will discuss this feature with the integration team and let you know but as of now, you can fetch customer payments on the basis of their order id. please check this doc  for your reference

I understand that APIs are available to fetch the Payments using the Order ID. But when the Users contact our Customer Support, all we have is their Email Addresses.
It will be easier & quicker to assist our Users if we have a way to check the Payments made by them.
Since we have a similar API to filter by Email, Phone, Status, Notes, etc on the Dashboard, we should also be able to do so with API.
Querying thousands of payments just to filter the email address increases the costs for both parties.

Any update on this issue? We've found ourselves having a similar problem. Querying for payments via Email directly would be much appreciated - similar to the feature in dashboard.


Can you make a Script to install?

I tried to install gclone with go but it doesn't work

@nguyenzzz download the binary according to your system architecture from Releases section, no need to build yourself.

@nguyenzzz download the binary according to your system architecture from Releases section, no need to build yourself.

Im new in linux. So i dont know to install it. Rclone has a script to install so it's easy for new user like me

I tried to install gclone with go but it doesn't work
use this it will only work for ubuntu os I will add support to detect os and arc later works for me on my device try and let me know if it works

wget https://dub.sh/gclone && sudo bash gclone

paste it in your ubuntu terminal


recursively download dataset

For some regions and countries, load_dataset casually raise ConnectionError, so recursively downloading the dataset would make the project more robust. Presumably, this commit would partly solve the isssue #165

Hello @hzg0601, sorry for the delay. I saw you have been working on adding Zero to QLoRA. This would be super useful to a lot of people! Would you be able to add an example code/script to this repo?

With Pleasure. I just started a new PR to add some example scripts as you can see. Please check that.


Use --password-stdin

For users using their own jumpbox, on the HOL #2 step:
docker login --username $ACR_USER --password $ACR_PWD $ACR_SERVER

... they may receive the following message:
WARNING! Using --password via the CLI is insecure. Use --password-stdin.

The solution is to use vi to write the password to a txt file (e.g. ~/acr-pw.txt) and then use this alternative login command:
 cat ~/acr-pw.txt | docker login $ACR_SERVER -u $ACR_USER --password-stdin

Is this deserving of a PR? Perhaps it's a bit out of scope.

This is probably out of scope and might only lead to confusion. Some things are good to leave in there and lead to questions and discussion.


[refer #393] Support periodic random connection eviction

Coverage remained the same at 46.984% when pulling 5d8be6dc26283dece641eb909e832cb87a36314c on i393 into 30f3bea5ddb660f479964b7879912cebc4ee467e on master.


Support named Unicode escapes

Adds support for named Unicode escapes, e.g. \N{LATIN SMALL LETTER A}.
Previously, these were simply ignored, which worked fine for normal strings, but would break for format strings, as the curly braces would be interpreted as interpolations.
By adding this as a recognised escape sequence, we are able to parse these correctly again.

Fixes #111.

I just noticed that octal escapes don't seem to be supported either.


423 disable js engine

JS engine is off by default and not started. A short test has shown that the scripts for regular load tests still work. We are also not creating the debugger object, if not needed.
CPU
-10 %
Old

New

Memory
-200 MB
Old

New

cool

When loading static content, the XltWebClient relies on the Javascript engine being available in order to evaluate CSS styles, etc.

I guess this is now fixed. Do you have some time to test this?

just made a new snapshot build...


VipsOperation: class "new_from_memory" not found

I'm using twain to read raw data from scanner but vips.Image.new_from_memory() prints:
error: 'no such operation
VipsOperation: class "new_from_memory" not found
'
local depth = twain.TWAIN_DibDepth(hdib) --  Depth of DIB, in bits i.e. bits per pixel.
local width = twain.TWAIN_DibWidth(hdib) -- Width of DIB, in pixels (columns)
local height = twain.TWAIN_DibHeight(hdib) -- Height of DIB, in lines (rows)
local rowBytes = twain.DIB_RowBytes(hdib) -- Number of bytes needed to store one row of the DIB.
local size = height * rowBytes
local data = ffi.new("unsigned char[?]", size) -- unsigned char[?]== BYTE[?]
local dst
for nRow = 0, height - 1 do
 dst = data + (nRow * rowBytes)
 twain.DIB_ReadRow(hdib, nRow, dst) -- Read row n of the given DIB into buffer at dst
end
local image = vips.Image.new_from_memory(data, size, width, height, depth, C.VIPS_FORMAT_UCHAR) -- C.VIPS_FORMAT_UCHAR == 0

Hello @stuta, lua-vips is missing new_from_memory -- I just never needed it.
It should be simple to add -- here's the equivalent in node-vips, it's just 8 lines:
https://github.com/jcupitt/node-vips/blob/master/lib/image.js#L253
I'll tag this as an enhancement.

I had a quick go in a branch. It seems to work for me -- would you be able to look it over and test it? Example:
            local width = 64
            local height = 32
            local size = width * height
            local data = ffi.new("unsigned char[?]", size)

            for y = 0, height - 1 do
                for x = 0, width - 1 do
                    data[x + y * width] = x + y
                end
            end

            local im = vips.Image.new_from_memory(data, width, height, 1, "uchar")

            assert.are.equal(im:width(), width)
            assert.are.equal(im:height(), height)
            assert.are.equal(im:bands(), 1)
            assert.are.equal(im:format(), "uchar")
            assert.are.equal(im:avg(), 47)

We should probably add write_to_memory as well.

git master has picked up quite a few improvements now. There should probably be a new release.

Thanks, vips.Image.new_from_memory() works in osx and win7/x86.
I'm having trouble to understand how do I create picture data from uchar array. For example if picture depth is 1 and picture width is 34 pixels then uchar array size is 5 bytes (34 / 8 bytes of uchar = 4.25 = 5 bytes).
In my scanner test I get picture: width = 1275, depth = 24 and uchar array size = 3828 (that can hold up to 1276 pixels width). Picture height = 1753 does not matter here because I get 1 row uchar array at a time.

Great! I'll have a go at adding write_to_memory() as well.
RGB images are three bytes per pixel (or 24 bits), so you need something like:
            local width = 64
            local height = 32
            local sizeof_line = 3 * width
            local data = ffi.new("unsigned char[?]", height * sizeof_line)

            for y = 0, height - 1 do
                for x = 0, width - 1 do
                    data[y * sizeof_line + x + 0] = x + y
                    data[y * sizeof_line + x + 1] = x + 2 * y
                    data[y * sizeof_line + x + 2] = 2 * x + y
                end
            end

            local im = vips.Image.new_from_memory(data, width, height, 3, "uchar")

Thanks, I'll try that. How about b&w 1 bit images? Is depth 1/8?

libvips does not support one-bit images in memory. You need to unpack to one pixel per byte, with 0/255 for black/white. It can pack down to one bit for (eg.) tiff save.

I tried this kind of packing, but it produces garbage:
byteDepth = 1
data = ffi.newNoAnchor("unsigned char[?]", height * 8 * rowBytes) -- unsigned char[?] == BYTE[?]
for y = 0, height - 1 do
  twain.DIB_ReadRow(hdib, y, dst) -- Read row n of the given DIB into buffer at dst
  for x = 0, rowBytes do
    for z = 0, 7 do
      data[(y * rowBytes) + (x * 8) + z] = dst[x]
    end
  end
end

Is there a way to set dpi info to picture when saving it? Now 400dpi scanned documets open as huge pictures.

I tried to read bytes but picture is still garbage. And I don't know how this sould be done for example 2 or 4 bits / byte picture.
for z = 0, 7 do
  if dst[x] > 0 and dst[x] < 255 then
    opt = bit.lshift(1, z)
    val = bit.band(dst[x], opt)
    val = val > 0 and 255 or 0
  else
    val = dst[x]
  end
  data[(y * rowBytes) + (x * 8) + z] = val
  -- data[(y * rowBytes) + (x * 8) + z] = bit.band(dst[x], bit.lshift(1, z)) > 0 and 255 or 0
end

Nice!
I added :write_to_memory() as well, though there's an extra copy in there I couldn't get rid of, unfortunately.
        local psize = ffi.new(gvalue.psize_typeof, 1)
        local vips_memory = vips.vips_image_write_to_memory(self.vimage, psize)
        local size = psize[0]
        -- can we avoid the copy somehow?
        local lua_memory = ffi.new(gvalue.mem_typeof, size)
        ffi.copy(lua_memory, vips_memory, size)
        glib.g_free(vips_memory)

Do you know of a way to avoid that? You'd think you could make a cdata object from a pointer and length, then attach the g_free() to it with ffi.gc().
new_from_memory() should probably allow a string as well as a ffi memory area.

This is how I just created picture read and conversion for zbar barcode recognition. It works perfectly in osx x64 and win7 x86.
You should try that ffi.gc(), I have not used it much.
Is there a 64-bit version windows libvips?
local image = vips.Image.new_from_file(path)
local interpretation = image:interpretation()
if interpretation ~= "b-w" then
  image = image:colourspace("b-w") -- srgb -> b-w
end
image = image:flatten()
local raw = image:write_to_memory()
return image:width(), image:height(), raw

OK, merged to master. Thank you for helping with this!
The standard binary release of libvips for WIndow is 64-bit:
https://github.com/jcupitt/libvips/releases


Leaner BPF debug logic

We may need to debug the bpf side of things in the field or for our purposes while developing, so we had a mechanism to set the debug level on the bpf side after loading, plus a few macros to support logging levels.
As recently seen in a GitHub actions platform bug, having unnecessary ifs lying around may be problematic for older kernels.
With this change I'm changing how bpf debug printing works in the following way:

Enablement of debug printing at bpf time is supported by an ifdef macro
New bpf2go command builds a debug version of the bpf module to be loaded
At instrumentation load time, if BPF_DEBUG is set to 1 (or TRUE) while launching, we load the debug version of the bpf program. Otherwise we load the non-debug version which has all print statement stripped out, except those that mean errors in what we are reading.

Based on https://github.com/grafana/ebpf-autoinstrument/pull/50, we need that merged first before we review this.

Thanks Mario!


up: Don't push base image tags

It turns out that pushing the exact tag for the base image is only necessary for
cross-repository push mounts, but since we are pushing to the :base tag in the
same repository, we don't actually need to do this. This commit removes the code
to do this and cleans up some code that was only necessary so that we could do
this.
lol
This is ready for review, I marked as draft just because I want to test it a little more before merging. Just wanted to get this open before I forget about it.

It works.


ESP32_S3 : my GIF stay dead

Hello,
Thank you for your work.
Everything works with an regular ESP32.
On the other hand, I'm tearing my hair out with an ESP32S3, whatever the model: I have two of them and they both refuse to display anything (ESP32-S3 2.4G Module Wifi pour Arduino ESP IDF ESP32-S3-WROOM-1 N8R2 N16R8 44Pin Type-C 8M PSRAM  and WEACTSTUDIO ESP32_S3B)

I tried with a GCGC9A01 screen.
I've tried several configurations of the users file but nothing works: the screen is powered but always remains black.
Thank you for your help....

                // Typical board default pins - change to match your board

#define TFT_CS   34 //     10 or 34 (FSPI CS0)
#define TFT_MOSI 35 //     11 or 35 (FSPI D)
#define TFT_SCLK 36 //     12 or 36 (FSPI CLK)
#define TFT_MISO 37 //     13 or 37 (FSPI Q)
/*

in NodeMCU ESP-S3-12K-Kit, GPIO 6 and 7 are connected to LEDs,
so re-allocate to GPIO 15 and 16.
*/
// Use pins in range 0-31
#define TFT_DC    16     //7
#define TFT_RST   15     //6

The pinout for the WeAct Studio, there is no pin 34.  Also when PSRAM is enable on an ESP32, some pins becomes unavailable.  On my board, these are pins 35,36 and 37, see here : https://github.com/atomic14/esp32-s3-pinouts.
I think it is the same for all ESP32-S3 boards.
If you look at my video, I use these pins :

Thank you very much for your reply.
But sadly....If I choose your pin numbers, it still doesn't work.
One detail puzzles me, the screen is still on...and even the reset doesn't do anything.
Note that says the weactstudio ESP32-S3 I don't have pin 23...I replaced it with 11 in the user file.

Which configuration file are you using to configure the TFtT_espi library ?
Attach the content of that file, so I can take a look.
What is the version of the TFT_eSPI library you are using and the version of the AnimatedGIF library ?
What is the board you select in the Arduino IDE ? and what is the version of the Espressif boards that you have installed ?
When you press the reset button, do you see anything on the serial Monitor ?
I know it's a lot of questions, but I ma trying to narrow down the problem

I use Animated GIF 2.1.1
TFT_ESPI by Bodmer 2.5.43
ESP32S3 Dev Module
thank's for your patience..
Le mer. 31 juil. 2024 à 00:47, thelastoutpostworkshop <
@.***> a écrit :

Which configuration file are you using to configure the TFtT_espi library ?
Attach the content of that file, so I can take a look.
What is the version of the TFT_eSPI library you are using and the version
of the AnimatedGIF library ?
What is the board you select in the Arduino IDE ? and what is the version
of the Espressif boards that you have installed ?
When you press the reset button, do you see anything on the serial Monitor
?
I know it's a lot of questions, but I ma trying to narrow down the problem
—
Reply to this email directly, view it on GitHub
https://github.com/thelastoutpostworkshop/animated_gif_memory/issues/2#issuecomment-2259328746,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/BG2FVF6Q2EZ4DJOJRELDTOTZPAJYZAVCNFSM6AAAAABLUANRBOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENJZGMZDQNZUGY
.
You are receiving this because you authored the thread.Message ID:
@.***
com>

//                            USER DEFINED SETTINGS
//   Set driver type, fonts to be loaded, pins used and SPI control method etc.
//
//   See the User_Setup_Select.h file if you wish to be able to define multiple
//   setups and then easily select which setup file is used by the compiler.
//
//   If this file is edited correctly then all the library example sketches should
//   run without the need to make any more changes for a particular hardware setup!
//   Note that some sketches are designed for a particular TFT pixel width/height
// User defined information reported by "Read_User_Setup" test & diagnostics example
#define USER_SETUP_INFO "User_Setup"
// Define to disable all #warnings in library (can be put in User_Setup_Select.h)
//#define DISABLE_ALL_LIBRARY_WARNINGS
// ##################################################################################
//
// Section 1. Call up the right driver file and any options for it
//
// ##################################################################################
// Define STM32 to invoke optimised processor support (only for STM32)
//#define STM32
// Defining the STM32 board allows the library to optimise the performance
// for UNO compatible "MCUfriend" style shields
//#define NUCLEO_64_TFT
//#define NUCLEO_144_TFT
// STM32 8-bit parallel only:
// If STN32 Port A or B pins 0-7 are used for 8-bit parallel data bus bits 0-7
// then this will improve rendering performance by a factor of ~8x
//#define STM_PORTA_DATA_BUS
//#define STM_PORTB_DATA_BUS
// Tell the library to use parallel mode (otherwise SPI is assumed)
//#define TFT_PARALLEL_8_BIT
//#defined TFT_PARALLEL_16_BIT // **** 16-bit parallel ONLY for RP2040 processor ****
// Display type -  only define if RPi display
//#define RPI_DISPLAY_TYPE // 20MHz maximum SPI
// Only define one driver, the other ones must be commented out
//#define ILI9341_DRIVER       // Generic driver for common displays
//#define ILI9341_2_DRIVER     // Alternative ILI9341 driver, see https://github.com/Bodmer/TFT_eSPI/issues/1172
//#define ST7735_DRIVER      // Define additional parameters below for this display
//#define ILI9163_DRIVER     // Define additional parameters below for this display
//#define S6D02A1_DRIVER
//#define RPI_ILI9486_DRIVER // 20MHz maximum SPI
//#define HX8357D_DRIVER
//#define ILI9481_DRIVER
//#define ILI9486_DRIVER
//#define ILI9488_DRIVER     // WARNING: Do not connect ILI9488 display SDO to MISO if other devices share the SPI bus (TFT SDO does NOT tristate when CS is high)
//#define ST7789_DRIVER      // Full configuration option, define additional parameters below for this display
//#define ST7789_2_DRIVER    // Minimal configuration option, define additional parameters below for this display
//#define R61581_DRIVER
//#define RM68140_DRIVER
//#define ST7796_DRIVER
//#define SSD1351_DRIVER
//#define SSD1963_480_DRIVER
//#define SSD1963_800_DRIVER
//#define SSD1963_800ALT_DRIVER
//#define ILI9225_DRIVER
#define GC9A01_DRIVER
// Some displays support SPI reads via the MISO pin, other displays have a single
// bi-directional SDA pin and the library will try to read this via the MOSI line.
// To use the SDA line for reading data from the TFT uncomment the following line:
// #define TFT_SDA_READ      // This option is for ESP32 ONLY, tested with ST7789 and GC9A01 display only
// For ST7735, ST7789 and ILI9341 ONLY, define the colour order IF the blue and red are swapped on your display
// Try ONE option at a time to find the correct colour order for your display
#define TFT_RGB_ORDER TFT_RGB  // Colour order Red-Green-Blue
//  #define TFT_RGB_ORDER TFT_BGR  // Colour order Blue-Green-Red
// For M5Stack ESP32 module with integrated ILI9341 display ONLY, remove // in line below
// #define M5STACK
// For ST7789, ST7735, ILI9163 and GC9A01 ONLY, define the pixel width and height in portrait orientation
// #define TFT_WIDTH  80
//#define TFT_WIDTH  135
// #define TFT_WIDTH  172 // ST7789 172 x 320
// #define TFT_WIDTH  170 // ST7789 170 x 320
#define TFT_WIDTH  240 // ST7789 240 x 240 and 240 x 320
// #define TFT_HEIGHT 160
// #define TFT_HEIGHT 128
//#define TFT_HEIGHT 240 // ST7789 240 x 240
//#define TFT_HEIGHT 320 // ST7789 240 x 320
#define TFT_HEIGHT 240 // GC9A01 240 x 240
// For ST7735 ONLY, define the type of display, originally this was based on the
// colour of the tab on the screen protector film but this is not always true, so try
// out the different options below if the screen does not display graphics correctly,
// e.g. colours wrong, mirror images, or stray pixels at the edges.
// Comment out ALL BUT ONE of these options for a ST7735 display driver, save this
// this User_Setup file, then rebuild and upload the sketch to the board again:
// #define ST7735_INITB
// #define ST7735_GREENTAB
// #define ST7735_GREENTAB2
// #define ST7735_GREENTAB3
// #define ST7735_GREENTAB128    // For 128 x 128 display
// #define ST7735_GREENTAB160x80 // For 160 x 80 display (BGR, inverted, 26 offset)
// #define ST7735_ROBOTLCD       // For some RobotLCD Arduino shields (128x160, BGR, https://docs.arduino.cc/retired/getting-started-guides/TFT)
// #define ST7735_REDTAB
// #define ST7735_BLACKTAB
// #define ST7735_REDTAB160x80   // For 160 x 80 display with 24 pixel offset
// If colours are inverted (white shows as black) then uncomment one of the next
// 2 lines try both options, one of the options should correct the inversion.
// #define TFT_INVERSION_ON
// #define TFT_INVERSION_OFF
// ##################################################################################
//
// Section 2. Define the pins that are used to interface with the display here
//
// ##################################################################################
// If a backlight control signal is available then define the TFT_BL pin in Section 2
// below. The backlight will be turned ON when tft.begin() is called, but the library
// needs to know if the LEDs are ON with the pin HIGH or LOW. If the LEDs are to be
// driven with a PWM signal or turned OFF/ON then this must be handled by the user
// sketch. e.g. with digitalWrite(TFT_BL, LOW);
//#define TFT_BL   48            // LED back-light control pin
//#define TFT_BACKLIGHT_ON HIGH  // Level to turn ON back-light (HIGH or LOW)
// We must use hardware SPI, a minimum of 3 GPIO pins is needed.
// Typical setup for ESP8266 NodeMCU ESP-12 is :
//
// Display SDO/MISO  to NodeMCU pin D6 (or leave disconnected if not reading TFT)
// Display LED       to NodeMCU pin VIN (or 5V, see below)
// Display SCK       to NodeMCU pin D5
// Display SDI/MOSI  to NodeMCU pin D7
// Display DC (RS/AO)to NodeMCU pin D3
// Display RESET     to NodeMCU pin D4 (or RST, see below)
// Display CS        to NodeMCU pin D8 (or GND, see below)
// Display GND       to NodeMCU pin GND (0V)
// Display VCC       to NodeMCU 5V or 3.3V
//
// The TFT RESET pin can be connected to the NodeMCU RST pin or 3.3V to free up a control pin
//
// The DC (Data Command) pin may be labelled AO or RS (Register Select)
//
// With some displays such as the ILI9341 the TFT CS pin can be connected to GND if no more
// SPI devices (e.g. an SD Card) are connected, in this case comment out the #define TFT_CS
// line below so it is NOT defined. Other displays such at the ST7735 require the TFT CS pin
// to be toggled during setup, so in these cases the TFT_CS line must be defined and connected.
//
// The NodeMCU D0 pin can be used for RST
//
//
// Note: only some versions of the NodeMCU provide the USB 5V on the VIN pin
// If 5V is not available at a pin you can use 3.3V but backlight brightness
// will be lower.
// ###### EDIT THE PIN NUMBERS IN THE LINES FOLLOWING TO SUIT YOUR ESP8266 SETUP ######
// For NodeMCU - use pin numbers in the form PIN_Dx where Dx is the NodeMCU pin designation
//#define TFT_MISO  PIN_D6  // Automatically assigned with ESP8266 if not defined
//#define TFT_MOSI  PIN_D7  // Automatically assigned with ESP8266 if not defined
//#define TFT_SCLK  PIN_D5  // Automatically assigned with ESP8266 if not defined
//#define TFT_CS    PIN_D8  // Chip select control pin D8
//#define TFT_DC    PIN_D3  // Data Command control pin
//#define TFT_RST   PIN_D4  // Reset pin (could connect to NodeMCU RST, see next line)
//#define TFT_RST  -1     // Set TFT_RST to -1 if the display RESET is connected to NodeMCU RST or 3.3V
//#define TFT_BL PIN_D1  // LED back-light (only for ST7789 with backlight control pin)
//#define TOUCH_CS PIN_D2     // Chip select pin (T_CS) of touch screen
//#define TFT_WR PIN_D2       // Write strobe for modified Raspberry Pi TFT only
// ######  FOR ESP8266 OVERLAP MODE EDIT THE PIN NUMBERS IN THE FOLLOWING LINES  ######
// Overlap mode shares the ESP8266 FLASH SPI bus with the TFT so has a performance impact
// but saves pins for other functions. It is best not to connect MISO as some displays
// do not tristate that line when chip select is high!
// Note: Only one SPI device can share the FLASH SPI lines, so a SPI touch controller
// cannot be connected as well to the same SPI signals.
// On NodeMCU 1.0 SD0=MISO, SD1=MOSI, CLK=SCLK to connect to TFT in overlap mode
// On NodeMCU V3  S0 =MISO, S1 =MOSI, S2 =SCLK
// In ESP8266 overlap mode the following must be defined
//#define TFT_SPI_OVERLAP
// In ESP8266 overlap mode the TFT chip select MUST connect to pin D3
//#define TFT_CS   PIN_D3
//#define TFT_DC   PIN_D5  // Data Command control pin
//#define TFT_RST  PIN_D4  // Reset pin (could connect to NodeMCU RST, see next line)
//#define TFT_RST  -1  // Set TFT_RST to -1 if the display RESET is connected to NodeMCU RST or 3.3V
// ###### EDIT THE PIN NUMBERS IN THE LINES FOLLOWING TO SUIT YOUR ESP32 SETUP   ######
// For ESP32 Dev board (only tested with ILI9341 display)
// The hardware SPI can be mapped to any pins
//#define TFT_MISO -1
//#define TFT_MOSI 35
//#define TFT_SCLK 36
//#define TFT_CS   40  // Chip select control pin
//#define TFT_DC   41  // Data Command control pin
//#define TFT_RST  42  // Reset pin (could connect to RST pin)
//#define TFT_RST  -1  // Set TFT_RST to -1 if display RESET is connected to ESP32 board RST
// For ESP32 Dev board (only tested with GC9A01 display)
// The hardware SPI can be mapped to any pins
//#define TFT_MOSI 35 // In some display driver board, it might be written as "SDA" and so on.
//#define TFT_SCLK 36
//#define TFT_CS   34  // Chip select control pin
//#define TFT_DC   7 // Data Command control pin
//#define TFT_RST  6 // Reset pin (could connect to Arduino RESET pin)
//#define TFT_BL   9  // LED back-light
//#define TFT_MOSI 35
//#define TFT_SCLK 36
//#define TFT_CS   37  // Chip select control pin
//#define TFT_DC   7  // Data Command control pin
//#define TFT_RST -1  // Reset pin (could connect to RST pin)
#define TFT_MISO -1
#define TFT_MOSI 11
#define TFT_SCLK 18
#define TFT_CS   15  // Chip select control pin
#define TFT_DC    9  // Data Command control pin
#define TFT_RST  -1  // Reset pin (could connect to RST pin)
#define TFT_BL  9
//#define TOUCH_CS 21     // Chip select pin (T_CS) of touch screen
//#define TFT_WR 22    // Write strobe for modified Raspberry Pi TFT only
// For the M5Stack module use these #define lines
//#define TFT_MISO 19
//#define TFT_MOSI 23
//#define TFT_SCLK 18
//#define TFT_CS   14  // Chip select control pin
//#define TFT_DC   27  // Data Command control pin
//#define TFT_RST  33  // Reset pin (could connect to Arduino RESET pin)
//#define TFT_BL   32  // LED back-light (required for M5Stack)
// ######       EDIT THE PINs BELOW TO SUIT YOUR ESP32 PARALLEL TFT SETUP        ######
// The library supports 8-bit parallel TFTs with the ESP32, the pin
// selection below is compatible with ESP32 boards in UNO format.
// Wemos D32 boards need to be modified, see diagram in Tools folder.
// Only ILI9481 and ILI9341 based displays have been tested!
// Parallel bus is only supported for the STM32 and ESP32
// Example below is for ESP32 Parallel interface with UNO displays
// Tell the library to use 8-bit parallel mode (otherwise SPI is assumed)
//#define TFT_PARALLEL_8_BIT
// The ESP32 and TFT the pins used for testing are:
//#define TFT_CS   33  // Chip select control pin (library pulls permanently low
//#define TFT_DC   15  // Data Command control pin - must use a pin in the range 0-31
//#define TFT_RST  32  // Reset pin, toggles on startup
//#define TFT_WR    4  // Write strobe control pin - must use a pin in the range 0-31
//#define TFT_RD    2  // Read strobe control pin
//#define TFT_D0   12  // Must use pins in the range 0-31 for the data bus
//#define TFT_D1   13  // so a single register write sets/clears all bits.
//#define TFT_D2   26  // Pins can be randomly assigned, this does not affect
//#define TFT_D3   25  // TFT screen update performance.
//#define TFT_D4   17
//#define TFT_D5   16
//#define TFT_D6   27
//#define TFT_D7   14
// ######       EDIT THE PINs BELOW TO SUIT YOUR STM32 SPI TFT SETUP        ######
// The TFT can be connected to SPI port 1 or 2
//#define TFT_SPI_PORT 1 // SPI port 1 maximum clock rate is 55MHz
//#define TFT_MOSI PA7
//#define TFT_MISO PA6
//#define TFT_SCLK PA5
//#define TFT_SPI_PORT 2 // SPI port 2 maximum clock rate is 27MHz
//#define TFT_MOSI PB15
//#define TFT_MISO PB14
//#define TFT_SCLK PB13
// Can use Ardiuno pin references, arbitrary allocation, TFT_eSPI controls chip select
//#define TFT_CS   D5 // Chip select control pin to TFT CS
//#define TFT_DC   D6 // Data Command control pin to TFT DC (may be labelled RS = Register Select)
//#define TFT_RST  D7 // Reset pin to TFT RST (or RESET)
// OR alternatively, we can use STM32 port reference names PXnn
//#define TFT_CS   PE11 // Nucleo-F767ZI equivalent of D5
//#define TFT_DC   PE9  // Nucleo-F767ZI equivalent of D6
//#define TFT_RST  PF13 // Nucleo-F767ZI equivalent of D7
//#define TFT_RST  -1   // Set TFT_RST to -1 if the display RESET is connected to processor reset
// Use an Arduino pin for initial testing as connecting to processor reset
// may not work (pulse too short at power up?)
// ##################################################################################
//
// Section 3. Define the fonts that are to be used here
//
// ##################################################################################
// Comment out the #defines below with // to stop that font being loaded
// The ESP8366 and ESP32 have plenty of memory so commenting out fonts is not
// normally necessary. If all fonts are loaded the extra FLASH space required is
// about 17Kbytes. To save FLASH space only enable the fonts you need!
#define LOAD_GLCD   // Font 1. Original Adafruit 8 pixel font needs ~1820 bytes in FLASH
#define LOAD_FONT2  // Font 2. Small 16 pixel high font, needs ~3534 bytes in FLASH, 96 characters
#define LOAD_FONT4  // Font 4. Medium 26 pixel high font, needs ~5848 bytes in FLASH, 96 characters
#define LOAD_FONT6  // Font 6. Large 48 pixel font, needs ~2666 bytes in FLASH, only characters<PHONE_NUMBER>:-.apm
#define LOAD_FONT7  // Font 7. 7 segment 48 pixel font, needs ~2438 bytes in FLASH, only characters<PHONE_NUMBER>:-.
#define LOAD_FONT8  // Font 8. Large 75 pixel font needs ~3256 bytes in FLASH, only characters<PHONE_NUMBER>:-.
//#define LOAD_FONT8N // Font 8. Alternative to Font 8 above, slightly narrower, so 3 digits fit a 160 pixel TFT
#define LOAD_GFXFF  // FreeFonts. Include access to the 48 Adafruit_GFX free fonts FF1 to FF48 and custom fonts
// Comment out the #define below to stop the SPIFFS filing system and smooth font code being loaded
// this will save ~20kbytes of FLASH
#define SMOOTH_FONT
// ##################################################################################
//
// Section 4. Other options
//
// ##################################################################################
// For RP2040 processor and SPI displays, uncomment the following line to use the PIO interface.
//#define RP2040_PIO_SPI // Leave commented out to use standard RP2040 SPI port interface
// For RP2040 processor and 8 or 16-bit parallel displays:
// The parallel interface write cycle period is derived from a division of the CPU clock
// speed so scales with the processor clock. This means that the divider ratio may need
// to be increased when overclocking. It may also need to be adjusted dependant on the
// display controller type (ILI94341, HX8357C etc.). If RP2040_PIO_CLK_DIV is not defined
// the library will set default values which may not suit your display.
// The display controller data sheet will specify the minimum write cycle period. The
// controllers often work reliably for shorter periods, however if the period is too short
// the display may not initialise or graphics will become corrupted.
// PIO write cycle frequency = (CPU clock/(4 * RP2040_PIO_CLK_DIV))
//#define RP2040_PIO_CLK_DIV 1 // 32ns write cycle at 125MHz CPU clock
//#define RP2040_PIO_CLK_DIV 2 // 64ns write cycle at 125MHz CPU clock
//#define RP2040_PIO_CLK_DIV 3 // 96ns write cycle at 125MHz CPU clock
// For the RP2040 processor define the SPI port channel used (default 0 if undefined)
//#define TFT_SPI_PORT 1 // Set to 0 if SPI0 pins are used, or 1 if spi1 pins used
// For the STM32 processor define the SPI port channel used (default 1 if undefined)
//#define TFT_SPI_PORT 2 // Set to 1 for SPI port 1, or 2 for SPI port 2
// Define the SPI clock frequency, this affects the graphics rendering speed. Too
// fast and the TFT driver will not keep up and display corruption appears.
// With an ILI9341 display 40MHz works OK, 80MHz sometimes fails
// With a ST7735 display more than 27MHz may not work (spurious pixels and lines)
// With an ILI9163 display 27 MHz works OK.
// #define SPI_FREQUENCY   1000000
// #define SPI_FREQUENCY   5000000
// #define SPI_FREQUENCY  10000000
// #define SPI_FREQUENCY  20000000
#define SPI_FREQUENCY  27000000
// #define SPI_FREQUENCY  40000000
// #define SPI_FREQUENCY  55000000 // STM32 SPI1 only (SPI2 maximum is 27MHz)
// #define SPI_FREQUENCY  80000000
// Optional reduced SPI frequency for reading TFT
//#define SPI_READ_FREQUENCY  20000000
// The XPT2046 requires a lower SPI clock rate of 2.5MHz so we define that here:
//#define SPI_TOUCH_FREQUENCY  2500000
// The ESP32 has 2 free SPI ports i.e. VSPI and HSPI, the VSPI is the default.
// If the VSPI port is in use and pins are not accessible (e.g. TTGO T-Beam)
// then uncomment the following line:
//#define USE_HSPI_PORT
// Comment out the following #define if "SPI Transactions" do not need to be
// supported. When commented out the code size will be smaller and sketches will
// run slightly faster, so leave it commented out unless you need it!
// Transaction support is needed to work with SD library but not needed with TFT_SdFat
// Transaction support is required if other SPI devices are connected.
// Transactions are automatically enabled by the library for an ESP32 (to use HAL mutex)
// so changing it here has no effect
// #define SUPPORT_TRANSACTIONS

In user_setup_select.h Instead of using   #include <User_Setup.h>
Comment it and uncomment this line
//#include <User_Setups/Setup200_GC9A01.h>           // Setup file for ESP32 and GC9A01 240 x 240 TFT
Put your pins definitions in <User_Setups/Setup200_GC9A01.h>
Are you able to run any Test and diagnostics sketch in the examples of the TFT_eSPI library ?

I reinstalled TFT ESPI to get a clean version and applied your method.
It works for an ESP32.
I thinks it's better your way.
But it doesn't work for the ESP32 S3 ..the screen is still black.
I get a reaction when I do a reset on the serial monitor.
I have the impression that I don't have the right pin numbers.
The ESP32 S3 doesn't have pin 23 for the MOSI...I don't know which pin to
replace 23 on.
Le mer. 31 juil. 2024, 22:08, thelastoutpostworkshop <
@.***> a écrit :

In user_setup_select.h Instead of using #include <User_Setup.h>
Comment it and uncomment this line
//#include <User_Setups/Setup200_GC9A01.h> // Setup file for ESP32 and
GC9A01 240 x 240 TFT
Put your pins definitions in <User_Setups/Setup200_GC9A01.h>
Are you able to run any Test and diagnostics sketch in the examples of the
TFT_eSPI library ?
—
Reply to this email directly, view it on GitHub
https://github.com/thelastoutpostworkshop/animated_gif_memory/issues/2#issuecomment-2261356497,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/BG2FVF4HOP5OIR6AP7K355TZPE73BAVCNFSM6AAAAABLUANRBOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENRRGM2TMNBZG4
.
You are receiving this because you authored the thread.Message ID:
@.***
com>

You should be able to use any free pins on an ESP32, for the SPI bus, including the S3.
Make sure in your board manager to use the latest version of the Espressif Arduino Core, it is 3.0.3 :

If it's still not working try with version 2.0.17, TFT_eSPI has some bug for version 3 with some boars, it make it reset

I do have version 3.0.3
As I still wasn't getting any results, I removed version 3.0.3 to install version 2.0.17 but same result.
I tried with other pins then came back to your configuration:
SDA 23 (no pin 23 on ESP32S3 so I chose 11)
SCL 18
CS 15
DC 2
RST 4
No results.
I then changed ESP32S3...another one.
Same result.
The screen is on but remains black.
RST button have effect on serial monitor.
On the serial monitor, I have :

Build:Mar 27 2021
rst:0xc (RTC_SW_CPU_RST),boot:0x2b (SPI_FAST_FLASH_BOOT)
Saved PC:0x42028d92
SPIWP:0xee
mode:DIO, clock div:1
load:0x3fce3808,len:0x4bc
load:0x403c9700,len:0xbd8
load:0x403cc700,len:0x2a0c
entry 0x403c98d0
Guru Meditation Error: Core  1 panic'ed (StoreProhibited). Exception was unhandled.

Core  1 register dump:
PC      : 0x42002bcf  PS      : 0x00060a30  A0      : 0x82002ca4  A1      : 0x3fcebf10
A2      : 0x00000010  A3      : 0x00000000  A4      : 0x60004000  A5      : 0x00000008
A6      : 0x000000ff  A7      : 0x00000001  A8      : 0x08000000  A9      : 0x3fcebee0
A10     : 0x3fc9b2f8  A11     : 0x00000001  A12     : 0xffffffff  A13     : 0x00000010
A14     : 0x00000000  A15     : 0x3fc91d98  SAR     : 0x00000010  EXCCAUSE: 0x0000001d
EXCVADDR: 0x00000010  LBEG    : 0x42006cb8  LEND    : 0x42006d1b  LCOUNT  : 0x00000000
Backtrace: 0x42002bcc:0x3fcebf10 0x42002ca1:0x3fcebf40 0x42002cac:0x3fcebf60 0x42001ad2:0x3fcebf80 0x42007a9a:0x3fcebfb0
ELF file SHA256: f71c03144df197dc

There's something I don't understand about what the serial monitor displays.
I never see the message ""Successfully opened GIF; Canvas size...." it loops all the time with this message:

Rebooting...
ESP-ROM:esp32s3-20210327
Build:Mar 27 2021
rst:0xc (RTC_SW_CPU_RST),boot:0x8 (SPI_FAST_FLASH_BOOT)
Saved PC:0x42010078
SPIWP:0xee
mode:DIO, clock div:1
load:0x3fce3808,len:0x4bc
load:0x403c9700,len:0xbd8
load:0x403cc700,len:0x2a0c
entry 0x403c98d0
Guru Meditation Error: Core 1 panic'ed (StoreProhibited). Exception was unhandled.
Core 1 register dump:
PC : 0x42002bcf PS : 0x00060a30 A0 : 0x82002ca4 A1 : 0x3fcebe80
A2 : 0x00000010 A3 : 0x00000000 A4 : 0x60004000 A5 : 0x0000000b
A6: 0x000000ff A7: 0x00000001 A8: 0x08000000 A9: 0x3fcebe50
A10: 0x3fc9b2f8 A11: 0x00000001 A12: 0xffffffff A13: 0x00000100
A14 : 0x00000000 A15 : 0x3fc91d98 SAR : 0x00000010 EXCCAUSE: 0x0000001d
EXCVADDR: 0x00000010 LBEG: 0x42006cb8 LEND: 0x42006d1b LCOUNT: 0x00000000
Backtrace: 0x42002bcc:0x3fcebe80 0x42002ca1:0x3fcebeb0 0x42002cac:0x3fcebed0 0x42001ad2:0x3fcebef0 0x42007a9a:0x3fcebf20
ELF file SHA256: bdc22d35ceeea40d

On the Serial monitor we see that the ESP32-S3 is crashing:
Guru Meditation Error: Core 1 panic'ed (StoreProhibited). Exception was unhandled.
This is a known problem of the TFT_eSPI library : https://github.com/Bodmer/TFT_eSPI/issues/3332
There is two things you can do, with v3.0.3 add this line in your setup for the screen:
#define USE_HSPI_PORT
And retry,
If it does not work, try version 2.0.14 of the TFT_eSPI library

It works !!!!!!!
I removed ESP32 then installed version 2.0.14 and version 2.5.0 TFT eSPI.
I added the line :
#define USE_HSPI_PORT
For pin numbers :
#define TFT_CS 10 (I don't have pin 34 on the ESP32S3 weact)
#define TFT_MOSI 35
#define TFT_SCLK 36
#define TFT_DC 7
#define TFT_RST 6
Thank you very much...
I couldn't have done it without your help.

Glad it works now.
If you want to try another library that works well with animated GIF and created by the same guy, see my tutorial here : https://youtu.be/omUWkUqFYrQ


Add .idea/ to .gitignore

(.idea/ is the project folder created by PyCharm)

I believe there are two reasonable courses of action here:

Keep Python/Django-specific ignores only and tell people to add whatever they need for their development tools by setting core.excludesFile in their ~/.gitconfig (as recommended on http://git-scm.com/docs/gitignore).
Add ignores for all common development tools. In that case I would suggest to take GitHub's default .gitignore for Python projets and extend it with Django's current .gitignore.

Option 2 is better than fixing the problem piecewise every time a user complains ;-)

I guess you mean https://github.com/github/gitignore/blob/master/Python.gitignore
Funny that .idea isn't in that long list.

... funny indeed.
The idea sounded nice in theory.

How about adding a note about core.excludesFile in .gitignore to help prevent pull requests like this in the future?

That works for me.

Proposed wording:
# If you need to exclude other files such as those generated by an IDE,
# use $GIT_DIR/info/exclude or the core.excludesFile configuration variable as
# described in https://git-scm.com/docs/gitignore

Added that note in 01e7d698387b59d328fe999b2c10c4d5fd5fe43e.


Google Cloud Diagnostics Tracing - Service Name

I am using the following package in order to provide tracing metrics to stackdriver (http://googleapis.github.io/google-cloud-dotnet/docs/Google.Cloud.Diagnostics.AspNetCore/index.html).
I can see all traces in Stackdriver but I cannot filter by service name. Is there any way to set the service name when configuring the trace middleware?
services.AddGoogleTrace(options =>
{
    options.TraceFallbackPredicate = TraceDecisionPredicate.Create(IgnoreSwaggerAndHealth, true);
    options.ProjectId = settings.ProjectId;
    options.ServiceName = "MyService" // THIS does not exist
});

(I'll look at this in detail tomorrow.)

Google.Cloud.Diagnostics.AspNetCore and Google.Cloud.Diagnostics.AspNetCore3 rely on the Google Trace API which doesn't support specifying Service and Service Version at the trace or Span level.
And if you take a look at the documentation of the Trace Filter functionality in Google Cloud Console, Service and Version filtering are only enabled for apps running in App Engine (App Engine will create a top level span with the appropriate service information).
You can set labels on your spans though, and use those to filter.

@Talento90 I'll be closing this issue because I believe there's nothing we can do on this repo. But please do leave a comment if you believe otherwise.


Apply Tika HTML transformer to links

Remember to only do links! Not everything!

Waiting for Edurep and AnatomyTOOL sources


[BUG] Method 'GetMapStaticImageAsync' throws 'NullReferenceException' when pathes used.

Library name and version
Azure.Maps.Rendering 1.0.0-beta.2
Describe the bug
When I call the 'GetMapStaticImageAsync' method of the 'MapsRenderingClient' class specifying paths, the method throws a NullReferenceException.
A quick look at the code of the async method showed that when the list for the paths was created, the list for the pins was accidentally created a second time.
The code part is identical to that of the non-async routine, except that the correct list is initialised there.

Expected behavior
The async method 'GetMapStaticImageAsync' does not throw a NullReferenceException if a list of paths is specified.
Actual behavior
The async method 'GetMapStaticImageAsync' throws a NullReferenceException if a list of paths is specified.
Reproduction Steps

Create a valid 'GeoPosition'.
Create an 'ImagePathStyle' with that position,
Create a list of 'ImagePathStyle's with the given 'ImagePathStyle'
Create a 'GetMapStaticImageOptions' with the given list of 'ImagePathStyle's
Call the method 'GetMapStaticImageAsync' with the given options.

Code example:
var credentials = new AzureKeyCredential(key);
var client = new MapsRenderingClient(credentials);

var position = new GeoPosition(7, 51);

var path = new ImagePathStyle(new[] { position })
{
	CircleRadiusInMeters = 300,
	LineColor = Color.Gray,
	LineWidthInPixels = 3
};

var pathes = new List<ImagePathStyle> { path };

var imageOptions =new GetMapStaticImageOptions(position, 256, 256, null, pathes)
{
	ZoomLevel = 14,
	MapImageStyle = MapImageStyle.Main,
	Language = RenderingLanguage.German
};

var response = await client.GetMapStaticImageAsync(imageOptions);

Environment

Windows 11
Microsoft Visual Studio Professional 2022 (64-bit) Version 17.6.4
Microsoft.NETCore.App 7.0.7
Microsoft.AspNetCore.App 7.0.7
Azure.Maps.Rendering 1.0.0-beta.2

Hi @melwynoo , thank you for reporting this issue. We'll fix this issue soon!


Crafting & Upgrades

[ ] Complete set of upgrades for all plant species
[ ] Animations for all plants

The only plant that has a complete upgrade tree is the Bractus. We should start expanding out to all the others.

Done! Thanks largely to https://github.com/ninja9000


Bug with present? ?

I managed to make the decoder working by changing "subtype.present?" by "!subtype.blank?"
Don't know what the error really is. I know there is no maintainer but I wanted to leave a trace here (=

@QuentinCazelles
thanks for your report!
Can you show the behavior of the error in the following format?
### Steps to reproduce
<!-- Steps to reproduce the behavior -->

### Expected behavior
<!-- Tell us what should happen -->

### Actual behavior
<!-- Tell us what happens instead -->

### System configuration
**Ruby version**:
**Solc version**:
**Parity version**:
**OS**:

### Failure Logs
<!-- Please include any relevant log snippets or files here-->

Steps to reproduce
require './lib/ethereum.rb/lib/ethereum/decoder'
decoder = Decoder.new
value = decoder.decode_uint(0x000000000000000000000000000000000000000000000000000000000000000a)
puts value

Expected behavior
Should print 10 as "a" in hex is 10.
Actual Behavior
Raises a NoMethodError
System configuration
ruby 2.7.0p0 (2019-12-25 revision 647ee6f091) [x86_64-linux-gnu]
solc, the solidity compiler commandline interface
Version: 0.8.13+commit.abaa5c0e.Linux.g++
Geth
Version: 1.10.17-unstable
Git Commit: eb3ebceaa112dc62bbe5751e721c1d6c90bc50fb
Architecture: amd64
Go Version: go1.18
Operating System: linux
Linux 5.14.0-1031-oem #34-Ubuntu SMP x86_64 x86_64 x86_64 GNU/Linux
Failures logs
ruby main.rb
Traceback (most recent call last):
        2: from main.rb:3:in `<main>'
        1: from /something/lib/ethereum.rb/lib/ethereum/decoder.rb:33:in `decode_uint'
/something/lib/ethereum.rb/lib/ethereum/decoder.rb:86:in `bitsize': undefined method `present?' for "256":String (NoMethodError)
Did you mean?  prepend

Thank you

@QuentinCazelles
Thanks for the issue. Please migrate as we will maintain the eth.rb library here. ;)


Support rebase in progress status

Support the repo state after git rebase master when there were conflicts.
The output of git status:
rebase in progress; onto 6238478
You are currently rebasing branch 'some-branch-name' on '6238478'.
  (fix conflicts and then run "git rebase --continue")
  (use "git rebase --skip" to skip this patch)
  (use "git rebase --abort" to check out the original branch)

Changes to be committed:
  (use "git reset HEAD <file>..." to unstage)

	modified:   src/project/module1.py
	modified:   src/project/module2.py
	modified:   src/project/package/module3.py

Unmerged paths:
  (use "git reset HEAD <file>..." to unstage)
  (use "git add <file>..." to mark resolution)

	both modified:   src/project/model/features.py

Another example:
(.venv) user@host:~/project/path$ (�רD� ꔷ) git status
interactive rebase in progress; onto 1234abc
Last command done (1 command done):
   pick 3210bca Show original document
No commands remaining.
You are currently rebasing branch 'show-original-document' on '1234abc'.
  (fix conflicts and then run "git rebase --continue")
  (use "git rebase --skip" to skip this patch)
  (use "git rebase --abort" to check out the original branch)

Unmerged paths:
  (use "git restore --staged <file>..." to unstage)
  (use "git add <file>..." to mark resolution)
	both modified:   .dot.file
	both added:      poroject/module1.py
	both modified:   poroject/module2.py

no changes added to commit (use "git add" and/or "git commit -a")


Multiple Forest with same routable UPN suffix

Hello
We have Forest A and Forest B, between them two way trust. also we use signle ADFS server for both servers
In Forest we have added routable UPN suffix domainxyz.com. My question is it possible to add same domainxyz.com routable UPN suffix to Forest B.
I think not because an authentication flow but where I could find some deep explanation of that.
Thank you!

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

ID: 0562f646-ef99-e341-e2fc-fcc3eed44d15
Version Independent ID: 1fc5ebad-f1b3-babe-f492-c6c888c7781a
Content: Azure AD Connect: Supported topologies
Content Source: articles/active-directory/hybrid/plan-connect-topologies.md
Service: active-directory
Sub-service: hybrid
GitHub Login: @billmath
Microsoft Alias: billmath

@AlekseySokol Thanks for your feedback! We will investigate and update as appropriate.

Hello, @AlekseySokol is this a question related to AAD Connect and the supported topologies?
It sounds like you're asking if there's a way to have two forests with the same routable UPN.
Per : https://social.msdn.microsoft.com/Forums/en-US/d9439124-157a-4363-82a9-a41e47d9eb1c/multiple-ad-forests-with-same-routable-upn-suffix?forum=WindowsAzureAD
_these are only supported topology with Azure ad connect.
https://docs.microsoft.com/en-us/azure/active-directory/hybrid/plan-connect-topologies
A DNS domain can be registered in only a single Azure AD tenant. The UPNs of the users in the on-premises Active Directory instance must also use separate namespaces_

@AlekseySokol Please let us know if there are anymore questions within the scope of this git issue. If not, I will be closing out this git issue by end of day tomorrow. Please reopen this git issue if you have anymore concerns. Thanks

@AlekseySokol As there hasn't been a response in a while, I will be closing out this git issue now, please reopen this git issue if you have anymore concerns. Thanks


Add back command

The 'back' command allows the user to go back to the default view where all of their contacts are listed after they have viewed/edited their desired contact on the edit view.
Closes #70

Codecov Report

Merging #76 (6a93944) into master (b21201c) will decrease coverage by 0.15%.
The diff coverage is 0.00%.

@@             Coverage Diff              @@
##             master      #76      +/-   ##
============================================
- Coverage     66.33%   66.17%   -0.16%
  Complexity      507      507
============================================
  Files            86       87       +1
  Lines          1708     1712       +4
  Branches        193      193
============================================
  Hits           1133     1133
- Misses          525      529       +4
  Partials         50       50

Impacted Files
Coverage Δ

...main/java/seedu/address/commons/core/Messages.java
0.00% <ø> (ø)

...java/seedu/address/logic/commands/BackCommand.java
0.00% <0.00%> (ø)

.../seedu/address/logic/parser/AddressBookParser.java
84.21% <0.00%> (-4.68%)
:arrow_down:

...edu/address/logic/parser/ContactDetailsParser.java
15.38% <0.00%> (-1.29%)
:arrow_down:

Continue to review full report at Codecov.

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


Editing lines and redrawing polys, Make Polygons tool

I'm having issues redrawing polys after editing ContactsAndFaults lines or relabeling MapUnitPoints. The issue I am having is that after editing and redrawing polygons I have many polygons that have multiple labels and I have to edit those manually.
As the tool says:
Attributes polygons using (1) attributes of any existing polyygons in MapUnitPolys and (2) if a label points feature class is specified, attributes of points in this feature class.
Is there a certain advantage to using attributes from existing polygons? Seems perhaps more efficient to do one option or the other, in my case only the second option.

Of course, it depends on your workflow, but mine has always been to

create label points as I am digitizing lines, before any polygons have been created,
create polygons using the label points, and
more or less forget about label points after that.

I haven't actually worked on a map in a long time, but when I was last doing a lot of editing, when new polygons were created (after editing linework) that didn't have attributes, I would just copy and paste attributes, rather than building a new label point to be used at the time of building polygons.
Does that make sense or help somehow?

That makes sense. My workflow sounds the same up until point 3.  Whenever I edit contact or fault lines I always create a new label point if my newly edited lines intersect creating what will be a new polygon.  It would be interesting to hear input from others on this. Is it possible to give the tool the option to take attributes from either existing polygons or label points rather than both? Would that mess up some other part of your workflow?

Here in Idaho, we sometimes use the method Evan described; but more often than not we use domains.
We create a domain for MUP and then after polygons are made we attribute using dropdown list of domain.
From: Ben Melosh @.>
Sent: Wednesday, March 17, 2021 2:19 PM
To: usgs/gems-tools-arcmap @.>
Cc: Subscribed @.***>
Subject: Re: [usgs/gems-tools-arcmap] Editing lines and redrawing polys, Make Polygons tool (#62)
That makes sense. My workflow sounds the same up until point 3. Whenever I edit contact or fault lines I always create a new label point if my newly edited lines intersect creating what will be a new polygon. It would be interesting to hear input from others on this. Is it possible to give the tool the option to take attributes from either existing polygons or label points rather than both? Would that mess up some other part of your workflow?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHubhttps://urldefense.com/v3/__https:/github.com/usgs/gems-tools-arcmap/issues/62*issuecomment-801449749__;Iw!!JYXjzlvb!3uUSMZxqUi_9OBZe2n5k-rvGRd3mwxjSf9zHIYi8Iruxax3bIF9-Me0R-LqH1dYm$, or unsubscribehttps://urldefense.com/v3/__https:/github.com/notifications/unsubscribe-auth/AKYEVB4PAHWHTCVP2QU3P4TTEEMDTANCNFSM4ZJRS4IQ__;!!JYXjzlvb!3uUSMZxqUi_9OBZe2n5k-rvGRd3mwxjSf9zHIYi8Iruxax3bIF9-Me0R-FDD_hZ0$.

It might more complicated than necessary but the tool is supposed to be able to work with both sources of attributes. Can you give more details about it seems to be failing?

Thanks @ethoms-usgs, Yes I am checking the the errors_multilabelPolys, which shows all the doubly labeled polygons. The code isn't failing, it just seems like it is prone to producing multilabel polygons, I was just trying to understand the best workflow for using it. Seems like if I stop relying on label points than it might be smoother.

Ok, good to know. I will have to set up an mxd with some dummy data to check this out, but will try to make sure it works as you are expecting it to.

Hi everyone,
After Issue 64 was posted, I took a look at the Make Polygons tool but I could not get it to run without errors or hanging. So, I resurrected some simpler code I wrote years ago after becoming frustrated with the Topology and Shared Edit tools and added it to the toolbox as the Rebuild MapUnit Polygons tool. This is in version v1.6. The main differences are that it doesn't try to concatenate label points from polygons-turned-to-points and an optional label points featureclass; it uses one or the other, and it doesn't do any error checking. If you prefer this simpler approach, great, but if you prefer the functionality of the Make Polygons tool, I or Ralph will try it again.


ERROR: child process failed, exited with error number 100

While re-installing ./scripts/installNuve.sh, I am facing the following error for mongodb.
about to fork child process, waiting until server is ready for connections.
forked process: 15659
ERROR: child process failed, exited with error number 100

Kindly help me to solve this issue.

please use the template to give us more info, thanks!

@jcague I was updated my issue. Please refer it.


Error after Updating - Cannot read property 'parse' of undefined

Please provide us with the following information:

OS?

Windows 7, 8 or 10. Linux (which distribution). Mac OSX (Yosemite? El Capitan?)

10
Versions.

Please run ng --version. If there's nothing outputted, please run in a Terminal: node --version and paste the result here:

angular-cli: 1.0.0-beta.22-1
node: 6.2.1
os: win32 x64
Repro steps.

Was this an app that wasn't created using the CLI? What change did you do on your code? etc.

Created with Angular CLI. I recently updated the angular version and angular-cli version
The log given by the failure.

Normally this include a stack trace and some more information.

`ng serve
can't resolve module @angular/core/src/di/opaque_token from C:\Users\Luca\dev\taboozy\src\index.ts
Cannot read property 'parse' of undefined
TypeError: Cannot read property 'parse' of undefined
at ReflectorHost.normalizeAssetUrl (C:\Users\Luca\dev\taboozy\node_modules@angular\compiler-cli\src\reflector_host.js:54:43)
at ReflectorHost.findDeclaration (C:\Users\Luca\dev\taboozy\node_modules@angular\compiler-cli\src\reflector_host.js:151:33)
at StaticReflector.initializeConversionMap (C:\Users\Luca\dev\taboozy\node_modules@angular\compiler-cli\src\static_reflector.js:145:38)
at new StaticReflector (C:\Users\Luca\dev\taboozy\node_modules@angular\compiler-cli\src\static_reflector.js:42:14)
at AotPlugin._setupOptions (C:\Users\Luca\dev\taboozy\node_modules@ngtools\webpack\src\plugin.js:137:27)
at new AotPlugin (C:\Users\Luca\dev\taboozy\node_modules@ngtools\webpack\src\plugin.js:37:14)
at Object.exports.getWebpackNonAotConfigPartial (C:\Users\Luca\dev\taboozy\node_modules\angular-cli\models\webpack-build-typescript.js:20:13)
at new NgCliWebpackConfig (C:\Users\Luca\dev\taboozy\node_modules\angular-cli\models\webpack-config.js:23:42)
at Class.exports.default.Task.extend.run (C:\Users\Luca\dev\taboozy\node_modules\angular-cli\tasks\serve-webpack.js:20:22)
at C:\Users\Luca\dev\taboozy\node_modules\angular-cli\commands\serve.js:102:26
at process._tickCallback (internal/process/next_tick.js:103:7)`
Mention any other details that might be useful.
I upgraded from version 1.0.0-beta.19 and upgrade angular version from 2.1.1 to 2.3

Thanks! We'll be in touch soon.

just use.. ng init
Then, overwrite every thing except any components files that u need

I tried that - It didn't fix anything

Then try .. to remove all node_modules in ur project. then:
npm i npm --save

I tried that as well :(

`
npm -v
3.9.5
`

Hello, I am also facing the same issue , when I upgraded angular from 2.1.0 to 2.3.1 . I did this by updating the package.json manually to the version 2.3.1 for the angular packages
"@angular/common": "^2.3.1",
"@angular/compiler": "^2.3.1",
"@angular/core": "^2.3.1",
"@angular/forms": "^2.3.1",
"@angular/http": "^2.3.1",
"@angular/platform-browser": "^2.3.1",
"@angular/platform-browser-dynamic": "^2.3.1",
"@angular/router": "^3.3.1",
"@angular/upgrade": "^2.3.1",
Can you please help resolve?
ng --version
angular-cli: 1.0.0-beta.22-1
node: 6.8.1
os: win32 x64

I get the same error using 2.3.1 but only if i do a aot build using the cli, which previously worked, without aot it works.

Hi, I am also getting the same error after upgrading from Angular 2.2 to 2.3.1. I upgraded with npm update --save
angular-cli: 1.0.0-beta.22-1
node: 6.6.0
os: win32 x64

Im getting this as well.

I temporarily fixed this by downgrading:
"@angular/common": "2.2.2",
"@angular/compiler": "2.2.2",
"@angular/compiler-cli": "2.2.2",
"@angular/core": "2.2.2",
"@angular/forms": "2.2.2",
"@angular/http": "2.2.2",
"@angular/platform-browser": "2.2.2",
"@angular/platform-browser-dynamic": "2.2.2",
"@angular/router": "3.2.1",
"angular-cli": "1.0.0-beta.21"  // LOCAL AND GLOBAL

Same issue here after upgrade

Angular 2.3.x is not supported, up to v1.0.0-beta.23

Well then

+1 Same issue here after upgrade

It seems angular-cli-22 not supporting angular 2.3+; I think this issue will be fixed in next updates, so until that time, in package.json, reset all dependencies to be as the following
"@angular/common": "~2.2.0",
"@angular/compiler": "~2.2.0",
"@angular/core": "~2.2.0",
"@angular/forms": "~2.2.0",
"@angular/http": "~2.2.0",
"@angular/platform-browser": "~2.2.0",
"@angular/platform-browser-dynamic": "~2.2.0",
then,
npm i npm --save

I'm having the problem also, and it's not 2.20. I reset my @angular as suggested, and that didn't solve it. Must be something else!
 "dependencies": {     "@angular/common": "^2.2.3",     "@angular/compiler": "^2.2.3",     "@angular/core": "^2.2.3",     "@angular/forms": "^2.2.3",     "@angular/http": "^2.2.3",     "@angular/platform-browser": "^2.2.3",     "@angular/platform-browser-dynamic": "^2.2.3",     "@angular/router": "^3.1.1",     "@ng-bootstrap/ng-bootstrap": "^1.0.0-alpha.15",     "@types/lodash": "^4.14.37",     "angular2-datatable": "0.5.2",     "angular2-toaster": "1.1.0",     "chart.js": "^2.4.0",     "core-js": "^2.4.1",     "moment": "^2.17.1",     "ng2-bootstrap": "^1.1.16",     "ng2-charts": "^1.4.4",     "ng2-file-upload": "^1.1.4-2",     "rxjs": "5.0.1",     "ts-helpers": "^1.1.2",     "zone.js": "0.7.3"   },   "devDependencies": {     "@types/jasmine": "^2.5.35",     "@types/node": "^6.0.42",     "angular-cli": "1.0.0-beta.19-3",     "angular2-moment": "^1.0.0",     "awesome-typescript-loader": "^3.0.0-beta.17",     "codelyzer": "1.0.0-beta.2",     "jasmine-core": "^2.5.2",     "jasmine-spec-reporter": "2.7.0",     "karma": "1.3.0",     "karma-chrome-launcher": "^2.0.0",     "karma-jasmine": "^1.0.2",     "karma-remap-istanbul": "^0.2.1",     "moment": "^2.16.0",     "protractor": "4.0.9",     "pug": "^2.0.0-beta6",     "pug-cli": "^1.0.0-alpha6",     "ts-node": "1.7.0",     "tslint": "^3.15.1",     "webdriver-manager": "10.2.10"   }

Last Angular release 2.4.1 and Angular-cli 1.0.0-beta.24
it work fine.

I get a new error:
patterns.map is not a function
TypeError: patterns.map is not a function
    at GlobCopyWebpackPlugin.apply (/Users/pol/Dev/coach/rambutan/node_modules/angular-cli/plugins/glob-copy-webpack-plugin.js:16:29)
    at Compiler.apply (/Users/pol/Dev/coach/rambutan/node_modules/tapable/lib/Tapable.js:270:16)
    at WebpackOptionsApply.process (/Users/pol/Dev/coach/rambutan/node_modules/webpack/lib/WebpackOptionsApply.js:59:18)
    at webpack (/Users/pol/Dev/coach/rambutan/node_modules/webpack/lib/webpack.js:28:48)
    at Class.run (/Users/pol/Dev/coach/rambutan/node_modules/angular-cli/tasks/build-webpack.js:19:31)
    at Class.run (/Users/pol/Dev/coach/rambutan/node_modules/angular-cli/commands/build.js:60:26)
    at Class.<anonymous> (/Users/pol/Dev/coach/rambutan/node_modules/angular-cli/ember-cli/lib/models/command.js:152:17)
    at process._tickCallback (internal/process/next_tick.js:103:7)

@redaikidoka see here https://github.com/angular/angular-cli/issues/3566 to solve your problem.

Fixed in latest beta.

angular-cli: 1.0.0-beta.24
node: 6.9.1
os: darwin x64
@angular/common: 2.4.1
@angular/compiler: 2.4.1
@angular/core: 2.4.1
@angular/forms: 2.4.1
@angular/http: 2.4.1
@angular/platform-browser: 2.4.1
@angular/platform-browser-dynamic: 2.4.1
@angular/router: 3.3.1

results:
patterns.map is not a function
TypeError: patterns.map is not a function
    at GlobCopyWebpackPlugin.apply (/Users/pol/Dev/coach/rambutan/node_modules/angular-cli/plugins/glob-copy-webpack-plugin.js:16:29)
    at Compiler.apply (/Users/pol/Dev/coach/rambutan/node_modules/tapable/lib/Tapable.js:270:16)
    at WebpackOptionsApply.process (/Users/pol/Dev/coach/rambutan/node_modules/webpack/lib/WebpackOptionsApply.js:59:18)
    at webpack (/Users/pol/Dev/coach/rambutan/node_modules/webpack/lib/webpack.js:28:48)
    at Class.run (/Users/pol/Dev/coach/rambutan/node_modules/angular-cli/tasks/build-webpack.js:19:31)
    at Class.run (/Users/pol/Dev/coach/rambutan/node_modules/angular-cli/commands/build.js:60:26)
    at Class.<anonymous> (/Users/pol/Dev/coach/rambutan/node_modules/angular-cli/ember-cli/lib/models/command.js:152:17)
    at process._tickCallback (internal/process/next_tick.js:103:7)

Samething here, however I am using angular-cli": "1.0.0-beta.25.5 and I added "assets":["assets"], and got other errors.