text:
undefined method `mappings' for Tilt:Module

I've installed dashing-icinga2 today, on an ubuntu 16.04 openvz
I've followed install instructions, but when I try to open the dashboard I get this sinatra error page:
NoMethodError at /icinga2
undefined method `mappings' for Tilt:Module
file: dashing.rb location: tilt_html_engines line: 151
Previously I've installed this on a RedHat 7 machine without issues, so I don't know if is an ubuntu issue (and sadly I don't have access to the rh7 machine anymore)

Dashing version (gem list --local dashing):
dashing (1.3.2)

Ruby version (ruby -V):
ruby 2.3.1p112 (2016-04-26) [x86_64-linux-gnu]

Version of this project (tarball name, tag name or git show -1):
commit ccb6e03e311144db91e7836f63680c56e7e53b7b
Merge: 14bc597 c800bfd
Author: Michael Friedrich michael.friedrich@icinga.com
Date:   Fri Oct 6 11:15:28 2017 +0200
Merge pull request #45 from Icinga/feature/simplemon-green-if-zero
Render Undhandled Problems green if count is zero

Modifications to this project, if any (git diff):

Operating System and version:
Ubuntu 16.04
Linux watcher 2.6.32-042stab117.14 #1 SMP Tue Aug 30 17:12:57 MSK 2016 x86_64 x86_64 x86_64 GNU/Linux

Client browser and version:
Chrome 61

same for me

Sounds like a Ruby version issue, in relation with Sinatra. Google does not make me happy, maybe the gem install pulls in a "too new" version or something like that.

So you suggest to downgrade ruby version?

To be honest, I think this is a Dashing issue itself, nothing directly related to this dashboard. I don't have the time to reproduce the issue, so I'd suggest looking for possible influences.
As remarked above, RHEL7 uses a different version of Ruby and presumingly gems which are pulled with bundle install.
You can test-drive Dashing inside the icinga-vagrant boxes, there's CentOS 7 inside. Compare the pulled gems and versions with your Ubuntu setup, and dig into possible Google results from this error. Maybe you need to pin a specific gem version, or use a different Ruby version.

RHEL7 (or centos, which I've checked now) ships ruby 2.0.0
Ubuntu ships ruby 2.3.1
so maybe there are differences
I'll try to use RVM to see if I can install ruby 2.0.0

I've installed RVM and used ruby 1.9.3
Same error
2017-11-13 16:32:34 - NoMethodError - undefined method mappings' for Tilt:Module:         /home/lucac81/.rvm/gems/ruby-1.9.3-p551/gems/dashing-1.3.2/lib/dashing.rb:151:in tilt_html_engines'

I'm wondering why you use dashing 1.3.2 ... I've seen dashing 1.3.7 on rubygems.
$ gem search dashing

*** REMOTE GEMS ***

dashing (1.3.7)

According to their release page, 1.3.2 is more than 4 years old.

Hehe, first entry on google.
https://github.com/Shopify/dashing/issues/581#issuecomment-176918779

it gets downloaded from bundler when I run bundle inside dashing directory
if I upgrade and remove it I get this error
./restart-dashing
Could not find dashing-1.3.2 in any of the sources
Run bundle install to install missing gems.

ye bundle installs 1.3.2:
bundle info dashing

dashing (1.3.2)

Hm, so "something" where the dashing gem has a dependency onto, is locking its version where bundle can only install 1.3.2 and not a newer version. Would be interesting to see which other gems you've installed on Ubuntu, preventing an upgrade.

Ah nevermind it doesnt updated because:
Bundler attempted to update dashing but its version regressed from 1.3.7 to 1.3.2

finally fixed.
@lcorsini Delete gemfile.lock.
Edit Gemfile like this:
gem 'dashing', '1.3.7'
And run bundle and then .restart-dashing

Interesting, thanks. Let me know whether this should be included upstream in the Gemfile file. Note: Should be tested with CentOS7 inside the Vagrant box too. @bodsch any other thoughts?

As I found in another issue, they suggest to add versions to Gemfile.

you find it out, no ruby issue. :)
I use an old (2.1) and bleeding edge (2.4) ruby and both are working fine.
1.3.7 is the latest dashing release: https://rubygems.org/gems/dashing and should be work.
i use in my projects smashing (a fork of dashing)
i think, it is better, to define a version into the Gemfile:
gem 'dashing', '~> 1.3'

~> 1.3 won't solve the issue, as this allows for >= 1.3.0 && < 1.4.0. I think we need to explicitly require the latest release from rubygems.org. Other locations won't use the Gemfile anyway. What do you think?

Ok with explicit version of dashing in Gemfile it works correctly
Strange that by without explicit version, 1.3.2 gets pulled out.
BTW searching for this problem I found that dashing isn't developed anymore, but there is a replacement called smashing, isn't better to move to that project? or is no big deal at the moment?

As said, I think that bundler evaluates all dependencies and comes to the conclusion that the lowest version satisfies the needs. I don't know all the Ruby internals and package handling, especially not with bundler. Just a guess from that current problem.
The changes in smashing compared to current dashing master are nearly zero, except for tests and docs. The hassle with upgrading and renaming is way too much imho, unless there are real improvements, such as full Windows support.
Btw - dashing is a common name you'll reference with a dashboard. smashing - I would not relate this to a dashboard if I were new. Going the route of leaving the project name intact, but requiring smashing for dashing - I will not take the effort to answer all community questions on that.
TL;DR - I think dashing works quite well in its current form. It definitely is not something one can maintain without some programming knowledge, even if it looks super easy. The entry of creating your own dashboards is super hard. Which is why I wrote development docs.

i'm absolut conform with @dnsmichi.
it doesn't matter which packet you use.
the develpment of dashing is stopped. since years.
smashing - as fork - too? I dont know.
but both works well.

Found another problem on RHEL7 with dashing -> sinatra -> rack-protection -> rack-test -> Ruby >= 2.2.2 - will fix both.

authors: bodsch dnsmichi lcorsini urbels


text:
Enable client assertion authentication

Endpoints

[ ] token
[ ] introspection
[ ] revocation

Styles

[ ] client_secret_jwt
[ ] private_key_jwt

Client_secret_jwt require an additional signingAlgorithm parameter. The key is the client_secret.
private_key_jwt require the additional parameters signingAlgorithm and an asymmetric key. The key could be a JWK.
Requirement
No dependency to Microsoft JWT package
Integrated within a generic callback when creating the POST body

No dependency to Microsoft JWT package
Or is it no external dependency at all ?

Integrated within a generic callback when creating the POST body

Can you ne more precise?

For all bearer style credentials, it typically boils down to adding something to the POST body, e.g.
client_assertion and client_assertion_type
Instead of baking in client assertion support directly, I want a generic easy way to add to the POST body (easier than modifying the body in an HTTP handler).
Once we have that, you can have helpers that produce the actually assertion and use that new hook to add it to the body.
I don't want the assertion producing code in IdentityModel itself.

The current implementation of the post values style is into an extension method of the RequestAsync method called RequestCustomAsync. Do you agree that it is not the desired hook model?

Proposal :
With an Authenticate method
var client = new TokenClient(...);
client.Authenticate(_authentication parameters_);
client.RequestAsync();

Where the Authenticatemethod would be virtual. This method may be called within the RequestAsync method. The Authenticate method would add items to the form dictionary.
With an IAuthenticator
var client = new TokenClient(..., IAuthenticator instance);
client.RequestAsync();

The IAuthenticator would add items to the form dictionary.
With a DiscovertClient Factory
var disco = ...
var tokenClient = disco.CreateTokenClient();
client.RequestAsync();

The discovery client would be responsible to create a client with the appropriate parameters. What if the AS support multiple authentication methods?

The more I think about it, I don't like putting these feature in here.
IdentityModel should have the building blocks necessary to pass the credentials with the request. Other higher level libraries should implement the smarts you are talking about.
TokenClient is all set - introspection & revocation I need to check.
I encourage you to write this higher level lib that utilizes IdentityModel.

Did you even start work on the higher level library I mentioned?

I put this work in standby for the moment.

ok . closing then,

source: gharchive/issue

authors: leastprivilege ycrumeyrolle

license_type: permissive

license_source: bigquery


text:
Revocation endpoint 400 bad request invalid client

Hi,
I'm using oidc-client in my SPA application against IdentityServer3, using implicit flow.
Revoking my reference token on sign out is not working.
I have set revokeAccessTokenOnSignout: true and client_secret to a dummy secret, and I see the request being sent out. However I'm getting a "400 bad request invalid client" response.
Here's the request being sent:

And here's the response:
{"error":"invalid_client"}
Any ideas what I might be doing wrong?

Check the logs in IdSvr3

@brockallen thanks.
Here is the log. What does it mean?
07/06/2017 03:14:48 -04:00 [Information] (IdentityServer3.Core.Configuration.Hosting.CorsPolicyProvider)
CORS request made for path: "/connect/revocation" from origin: "http://localhost:50873"
07/06/2017 03:14:48 -04:00 [Information] (IdentityServer3.Core.Services.InMemory.InMemoryCorsPolicyService)
Client list checked and origin: "http://localhost:50873" is allowed
07/06/2017 03:14:48 -04:00 [Information] (IdentityServer3.Core.Configuration.Hosting.CorsPolicyProvider)
CorsPolicyService allowed origin
07/06/2017 03:14:48 -04:00 [Information] (IdentityServer3.Core.Endpoints.RevocationEndpointController)
Start token revocation request
07/06/2017 03:14:48 -04:00 [Information] (IdentityServer3.Core.Validation.SecretParser)
Secret id found: "myclientid"
07/06/2017 03:14:48 -04:00 [Error] ()
Error while validating credentials for null. Error: "The user name and password must either both be null or both must be non-null."
07/06/2017 03:14:48 -04:00 [Information] (IdentityServer3.Core.Validation.SecretValidator)
Secret validators could not validate secret
07/06/2017 03:14:48 -04:00 [Information] (IdentityServer3.Core.Validation.ClientSecretValidator)
Client validation failed.
07/06/2017 03:14:48 -04:00 [Information] (IdentityServer3.Core.Results.RevocationErrorResult)
Returning error: invalid_client

So there you go -- it looks like the secret validation is failing in IdSvr. Not an oidc-client issue.

authors: BasyaLipman brockallen

repo: IdentityModel/oidc-client-js


text:
supporting NameIdentifier

supporting ClaimType.NameIdentifier in addition to JwtClaimTypes.Subject in IdentityServerAuthenticationService

@MovGP0,
Thanks for having already signed the Contribution License Agreement. Your agreement was validated by .NET Foundation. We will now review your pull request.
Thanks,
.NET Foundation Pull Request Bot

solves issue #1758

Our design is that we require you you to issue the proper sub claim. Closing.

source: gharchive/pull-request

authors: MovGP0 brockallen dnfclas

license_source: github-api


text:
Add LICENSE?

I'd love to use this as the basis of my own course - could you add a license to the project?

No problem, I have just added MIT license to the project. Curious to see your final course.

authors: Ihatetomatoes peterj

license: MIT


text:
Divine ask for the wrong charms

Hi,
In her sentance, Divine asks for fragile charms which is pretty normal. But she seems to accept only unbreakable versions to validate a check.

I forgor to equip the charm that's why it only worked with the unbreakable i was wearing ^^'


text:
TractorDispatcher

With a bit of help from our friends at Cinesite, we now have a Gaffer dispatcher that supports Tractor renderfarms.

Control over Tractor job settings is provided by plugs on the TractorDispatcher itself, and control over individual task settings is provided by additional dispatcher.tractor plugs on ExecutableNodes. Initially this consists only of service, tags and envkeys - there are a multitude of other settings but we'll wait until we actually have a need for them.
The simple mapping directly from Gaffer's plugs to Tractor's job settings is intended to provide a good lowest common denominator of functionality on top of which facility-specific setups can be built. Options for customisation include :

Using startup files to specify user defaults for plugs, including on a per-node-type basis.
Using expressions to drive plugs.
Registering custom UI for the plugs, for instance to list available service keys.
Hiding plugs from the UI, for instance because the scripted defaults or expressions are sufficient.
Using TractorDispatcher.preSpoolSignal() to perform complete customisation directly on the Tractor job itself before it is submitted.

they still call the job files .alf?

authors: andrewkaufman johnhaddon

repo: ImageEngine/gaffer


text:
Request #a31d13a

Original: "Show List"
Your request: "Voir la liste"

Shoud have been closed in 9631abb

authors: Achitakayoh IOAyman

license: mit


text:
docs: ensure newly generated docs are included

TL;DR
Added documentation for the NeovimVivifyMarkdown plugin and updated the REUSE.toml file.
What changed?

Added a new documentation file doc/neovim-vivify-markdown.txt with detailed information about the NeovimVivifyMarkdown plugin's functions and options.
Created a doc/tags file for easy navigation within the documentation.
Updated the REUSE.toml file to include copyright and license information for the doc/* directory.

How to test?

Open Neovim and navigate to the plugin's documentation using :help NeovimVivifyMarkdown.
Verify that the documentation is accessible and properly formatted.
Check that the tags are working by jumping to different sections using the tag links.
Ensure that the copyright and license information for the doc/* directory is correctly set in the REUSE.toml file.

Why make this change?
This change improves the plugin's usability by providing comprehensive documentation for users. It also ensures proper licensing and copyright attribution for the documentation files, maintaining compliance with open-source best practices.

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

#13
#12  👈
#11
#10
#9
#8
next

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

Join @AliSajid and the rest of your teammates on  Graphite

Merge activity

Oct 19, 11:32 PM EDT: A user started a stack merge that includes this pull request via Graphite.


text:
Krankenhäuser als Partner für die Beta-Phase anschreiben

Fokus auf einfachen Tätigkeiten, z.B. Reinigung, Essensausgabe o.ä.

Super, ja wir sollten möglichst früh verstehen, was es auf unserer Seite braucht um ihr Interesse zu wecken.

Bitter weiterführen in https://github.com/ImmunHelden/ImmunHelden.de/issues/127

authors: ImmunHeldin-CE weliveindetail


text:
Custom invalidation/redraw area for touch events?

Hi Calvin,
ESP32/ILI9341/TFT_eSPI
I've managed to create a nice high resolution background image and load it from flash (GUIslice doesn't allow gslc_GetImageFromProg by default, only lslc_GetImageFromFile and gslc_GetImageFromSD.)

2 things related:
Request #1 - it would be cool for GUI builder to allow loading background image from flash - gslc_GetImageFromProg.
Request #2 is the main issue. As the image is large, it's quite slow to load.
This is obviously a hardware limitation, understandable and fine for initial boot up, but after touching a button it reloads the whole image as opposed to just the portion that's changed.
Is it possible to customise the invalidation/redraw area for each touch event?
So I guess to manually trigger a redraw of a specific area from the touch callback events of each button?
For example here: I'd like only digit #1 to refresh when I hit the left plus or minus. Just like the toggle button only refreshes itself and not the whole background.

Is this possible?
Thank you!

@ASMotionLab Requests for the builder should go to the Builder issues .  Nevertheless, I'll add your request to my list of possible enhancements to the Builder.
Can't say what the changes of supporting item 2 by Calvin but Tony Pitman and I have an outstanding pull request for a remarkable speed up of loading images from memory for the TFT_eSPI once that goes in it may help you.
I do notice though your image appears to be a single color with buttons so the question is why are you loading single bmp?   Even if you need an image for the buttons you can create 6 single image buttons to avoid the refresh.  Now its quite possible my monitor doesn't do justice to your BMP if so fell free to discard my advice.
Paul--

Thank you @Pconti31 I should have created 2 separate requests but I thought it might make sense if they were together.
The image background has nice 3d ish looking gradients, the 'panels' are semi transparent and the text is nicely antialiased, it definitely looks much nicer in person - I'm not sure it's worth the horrible performance at the moment though!
The faster image loading sounds amazing, I will look forward to that!
If I sliced the background image into tiles and had them as image objects instead of one background image, would that stop the entire thing refreshing? (I suppose I will try this next)
It would still be super if there was a way of forcing only a region to redraw though. I can see some stuff in the source files but I wish I understood c a bit better!

@ASMotionLab Calvin does optimize by regions but the region is the largest block.  In this case your BMP.  Now I understand your request but most supported systems don't have enough memory or speed to do a bit by bit image compare using a double buffer which IMHO your request would require. Still that's Calvin's call not mine.
Paul--

Hi guys --
@ASMotionLab -- would it be possible to package up your example (including the image) for me to examine?
As Paul points out, the scope of the redraw is generally optimized to the elements that encroach upon the maximum region of change. In this case, however, the button presses should not normally cause a wider ripple effect (eg. page redraw).
That said, there are some scenarios that can trigger a larger scale (eg. page) redraw: eg. when a transparent element needs to be redrawn, it is possible that a different portion of the background could be revealed, necessitating a deeper redraw.
How are your buttons and digits styled? Are they transparent (with "Fill Enable" = false)? If so, can you try changing Fill Enable to true and then setting the fill color to match the flat background color in those regions?
If I can take a look at the project / sketch, I might be able to identify some alternate options. It is also possible that the bitmap redraw is not respecting the boundaries of the invalidation region, so I can take a look at that too.
thx

BTW - this discussion reminded me that we had an open PR for the TFT_eSPI pushImage() integration in #250 . I have merged that request now, so it should increase the image rendering performance. Nonetheless, I’d like to see if the button/text transparency setting may make a difference.

Hi guys
@Pconti31 I think I misunderstood what you said before: the buttons are actually GUIslice buttons and aren't part of the bg image.
@ImpulseAdventure this is indeed what was happening: I found that if I enable fill on the number elements gslc_ElemSetFillEn(&m_gui,pElemRef,true);, it works as expected - redrawing only the number field.
But when gslc_ElemSetFillEn(&m_gui,pElemRef,false); it redraws the entire background.

For me this is workable - I will set the text background to a colour that's close to the image background and it'll be fine, but it would be cool to use the 'transparency' and it to only redraw the boundary of the text field.
This is what happens for the toggle button, but not for fonts. And it's less computation than the toggle button - it's a rectangle and it already knows the field's X,Y,W,H.
Or if we could specify a manual area for redrawing, would also be super great 👍
Image BG redraw.zip

Use buttons to control the display of pictures,stm32f103rbt6  tft_espi  guislice   sd card  jpeg  picture
https://youtu.be/xSoc5ovAdlY

@ASMotionLab -- good to see that disabling transparency works as expected.
With the updated TFT_eSPI pushImage() update to GUIslice, the redraw is pretty quick now, but it still redraws more than is necessary. I looked into this further and discovered that the reason is that TFT_eSPI wasn't masking the bitmap redraw region via setAddrWindow() as I had originally incorrectly assumed.
I don't believe TFT_eSPI currently supports a masked / clipped bitmap redraw functionality (e.g. in pushImage), though I have reached out to Bodmer just in case there is another option (aside from sprites).
Out of interest, I added an enhancement locally to TFT_eSPI to introduce the ability to clip the bitmap images to a region. The result is a very fast and localized redraw, as originally intended. So the good news is that I might be able to offer an enhanced solution that provides an optimized redraw with an arbitrary background.
@mcufriend -- when you are changing the image after pressing your "Next" button, the entire image needs redrawing. The full page/image redraw speed in GUIslice should be about the same as what you see in TFT_eSPI directly. Did it appear that something might not be functioning correctly?
thanks!

@ImpulseAdventure this sounds very exciting! Are you hoping that Bodmer will implement your enhancement? This would be great.
Alternatively, I suppose this enhancement could stay local in the GUIslice domain as a custom optimisation perhaps enablable via the setup files. But new TFT_eSPI releases could break it I guess.
This is very promising, thank you for your hard work in making this library better and better! One day it will be better than QT Creator :-)

Hi @ASMotionLab — I have completed a pull request for TFT_eSPI with the added functionality in case Bodmer might be interested in accepting it. You will find my branch here:
https://github.com/ImpulseAdventure/TFT_eSPI/tree/add_setClipRect
I have also updated GUIslice here to use the new functionality in this branch:
https://github.com/ImpulseAdventure/GUIslice/tree/WIP274-TFT_eSPI-clip
If you would like to give it a try, download and install the above two branches and then add the following to your GUIslice user config file:
#define DRV_DISP_TFT_ESPI_HAS_CLIPRECT
Thanks

Hi guys,
I've suddenly lost my spare time to try out the new commit fully, but tried the new pushImage() update and the speed up is incredible!
So much so that I had to make this comparison gif just because it was hard to believe.

It went from 766ms/frame (ish) to 49ms, around a 15x improvement. Incredible!
(I have a button redraw issue but this should be fixed with the clipping regions update I believe! Only started happening when I removed the corner radius).
I'll test out the clipping regions soon too, but thank you already for this massive improvement!

Just a quick update to say that Bodmer will be integrating the clipping functionality (it uses a new API: setViewport). This change should make the updates much faster and also eliminate the additional redraw issue you noted).
When he has completed his testing, I will merge the update into GUIslice. To take advantage of this feature, users will need to update TFT_eSPI to version 2.3.0 or above.

Thats great news, thank you for making this happen. Game changer for good looking GUIs!
Will keep an eye out for 2.3.0 TFT_eSPI.

Some good news -- Bodmer has now integrated the feature into TFT_eSPI v2.3.2!
If you want to try it out:

Download the latest version of TFT_eSPI from GitHub
Download the WIP274-TFT_eSPI-clip branch of GUIslice from GitHub
I would be interested to hear if it works or if you note any difficulties

The latest update in GUIslice should auto-detect the presence of the new TFT_eSPI viewport feature and activate it in GUIslice for redraws. Once you have had an opportunity to try it out, I can merge these changes into the main GUIslice repository. Bodmer's v2.3.2 should become available via the Arduino IDE library manager when he next makes an official release.
thanks!

Closing as the feature has now been merged via #281 .
Note that at this time TFT_eSPI doesn't have an official library manager release for v2.3.2, but the updated feature can still be accessed by downloading the latest from the TFT_eSPI repo. No changes to your user configuration are needed to enable the new feature.
@ASMotionLab -- if you later uncover any issues with the new functionality, please feel free to file a new issue.
Thanks!

authors: ASMotionLab ImpulseAdventure Pconti31 mcufriend

repo: ImpulseAdventure/GUIslice


text:
🛑 Incloodo Production Services is down

In b4e9f15, Incloodo Production Services (${{ secrets.URL_STAGING }}) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Incloodo Production Services is back up in 1b9c95b.


text:
尝试使用yolov4镜像推理时报错，以及使用其他公共镜像时，报错container error

您好，
我目前碰到了两个问题，

我的项目目前使用yolov4可以正常训练，模型训练好后，使用推理功能时，报错找不到result.yaml文件以及infer-result.json。

在使用除yolov4以外的其他公共镜像比如yolov5，mmdet训练时，报错Error: Could not load UVM kernel module. Is nvidia-modprobe installed。但是我的nvidia-modporbe已经正确安装了

看上去还是权限问题，参见部署设置
https://github.com/IndustryEssentials/ymir#22-installation-of-ymir-gui
“It is recommended not to use the sudo command, otherwise it may cause insufficient privileges.”

前面一个推理问题，是不是本身没有推理结果输出？

权限应该没问题，我部署和运行都没有用root用户，全程都是自己用户。
推理的话，我是web端实验的，就只是上传了图片，然后选择镜像，点击推理，然后卡了一会，日志里就输出了上面的报错信息。

看样子是没有输出结果，可以在截图地址找下镜像的log日志

日志是这样的

看样子还是cuda安装问题

我训练和推理都没有问题，用yolov4，就只有验证有这个错误，如果是cuda安装有问题的话，训练应该也会有问题才对呀，我网上看了这个问题的教程，这个文件我服务器上也是有的

我训练和推理都没有问题，用yolov4，就只有验证有这个错误，如果是cuda安装有问题的话，训练应该也会有问题才对呀，我网上看了这个问题的教程，这个文件我服务器上也是有的

参考: https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/install-guide.html#docker
docker run --rm --gpus all nvidia/cuda:11.0.3-base-ubuntu20.04 nvidia-smi

我用docker run --rm --gpus进入image的话就是好的，但是用nvidia-docker就有上面的问题，但是我看YMIR调用的还是nvidia-docker，是不是就代表着如果我要完全使用的话，版本啥的得完全和部署参考链接里的一致才行

docker 与 nvidia-docker 都能正确运行
如果你本地的cuda版本为11.+, 那么最好采用cuda11.+的镜像.
报错的时候，请附上你的系统信息，docker 版本， 本地cuda版本及采用的镜像，出错信息等。
测试系统应该不需要安装nvidia-modprobe

我的服务器是Ubuntu 16.04，cuda是10.2版本的。
出现cannotfind libcuda.so.1使用的镜像是
industryessentials/executor-det-yolov4-mining
出现nvidia-modprobe错误，使用的镜像是
youdaoyzbx/ymir-executor:ymir1.1.0-mmdet-cu102-tmi
youdaoyzbx/ymir-executor:ymir1.1.0-yolov5-cu102-tmi

我的服务器是Ubuntu 16.04，cuda是10.2版本的。
出现cannotfind libcuda.so.1使用的镜像是 industryessentials/executor-det-yolov4-mining
出现nvidia-modprobe错误，使用的镜像是 youdaoyzbx/ymir-executor:ymir1.1.0-mmdet-cu102-tmi youdaoyzbx/ymir-executor:ymir1.1.0-yolov5-cu102-tmi

配置应该没问题，系统的cuda版本比较低，测试用低版本的镜像。
nvidia-docker run --rm --gpus all nvidia/cuda:10.2-base-ubuntu18.04 nvidia-smi
nvidia run --rm --gpus all nvidia/cuda:10.2-base-ubuntu18.04 nvidia-smi

我的显卡是2080，所以10.2应该是没问题的。
industryessentials/executor-det-yolov4-mining这个镜像不是针对10.2版本的吗
我在docker hub上暂时没有找到适配10.2，ymir1.1.0的yolov4测试镜像

上面两个命令的输出发一下

我的显卡是2080，所以10.2应该是没问题的。 industryessentials/executor-det-yolov4-mining这个镜像不是针对10.2版本的吗 我在docker hub上暂时没有找到适配10.2，ymir1.1.0的yolov4测试镜像

主机 cuda10.2 可以运行10.1的镜像，看上去你使用的nvidia-docker没有问题，但不知为何这些镜像会报错。
放到dockerhub上的cuda101或cuda102镜像在安装cuda10.2的机器上测试过，都能正常运行。
你可以自己配一个简单的训练镜像看看cuda能不能在镜像中正常工作，目前的信息我无法判断出问题。

好的，industryessentials/executor-det-yolov4-mining这个镜像，我如果用docker run --gpus all的方式进入，是可以找到libcuda.so.1这个文件的，但是如果使用nvidia-docker run 的方式就不行。
我先自己测试一下吧，有问题再来请教，谢谢

authors: YiqinXu phoenix-xhuang yzbx

repo: IndustryEssentials/ymir


text:
When using the matrix enchanting system from quark, dungeons gear enchantments proc

As the title says.
If you enchant a weapon using matrix enchanting in Quark, the item will be able to be removed before the enchantments are finalized. This makes it to where the item stores the enchantments, so that you can continue building the weapon/tool/armor when you grind more levels.
But, dungeons gear enchantments with special effects, such as Anima conduit, Rushdown, Freezing shot, etc, all still take effect even when the weapon isn't properly enchanted. Likely because the mod is simply checking for the weapon to have the necessary nbt data, rather than checking for it to properly have the enchantments.
I'd say this is pretty vital to fix, as quark is immensely common in many modpacks, and any modpacks that choose to use matrix enchanting will be able to cheese the dungeons gear enchantments without locking in enchantments.

Uh... turns out I was wrong. Sorry. I was mistaking the effect of one of the modded weapons in my pack for the effect of Rampaging. MY bad entirely

repo: Infamous-Misadventures/Dungeons-Gear


text:
Idt 11 update hero banner component

By creating this pull request you agree to the terms in CONTRIBUTING.md.
https://github.com/Infineon/.github/blob/master/CONTRIBUTING.md
--- DO NOT DELETE ANYTHING ABOVE THIS LINE ---
CONTRIBUTING.md also tells you what to expect in the PR process.
Description
Provide the information we need to review your PR. What problem does the pull request solve? "Bug fix" is not a good description.
Related Issue
If you opened an issue before creating the PR, point to it here.
Context
What do we need to know about your development environment, tools, target, and so on. Screenshots are always helpful if there is a UI element to this PR.

:rocket: PR was released in v1.0.3 :rocket:

authors: g-rdknt kaiwerther


text:
Cuda softmax

add softmax

建议使用统一明晰的风格进行命名

另外，建议最好出一个设计实现方案，明确数据的拆分、暂存、流转逻辑。

“调整一下输出格式，让尺寸信息和性能提升信息在一起，方便对比。”
以下是光强调整后的输出：

repo: InfiniTensor/InfiniTensor


text:
Use Vagrant to create Android Development Environment

Vagrant seems to be a solution to ease the android development setup. Vagrant can use the Dockerfile I've got working to build the container and then Vagrant will launch the emulator, the app, sync_gateway, the dummy data, and the development server -- is how I understand it.
The idea is to clone the repo, fire this up, and and start coding!
Todo: Create a branch on this issue and add vagrant/docker files, JSON datadump files, and update README

Closed with #22

repo: InfiniteLibrary/infinite-reader


text:
feat: Add Adaptive icons for Android

Backported in https://github.com/Infomaniak/mobile-kchat/pull/3

repo: Infomaniak/mobile-kchat


text:
[Standard] Rekasjonelle endringer - eksempler

skos:editorialNote ""@nb ; i eksemplet i A.1 er ikke nødvendig.

Fiksa.


text:
SMHI parent class client

Parent client for the SMHI API. Basic features:

Join the clients developed together in common framework for getting meterological data
Get list of available parameters and whether measured or simulated.
Get closest station a) with specified data b) with any type data

from lat, lon input value
from city name input -> openstreetmap ?
within radius

Get interpolation data

I agree. I think a dataframe is convenient. a datetime-column and a data column, with appropriate column names.

We really need to think about how we dynamically change the client object and what to return from functions, I think. When including latitude and longitude searchable functions, if we are to continue with dynamic objects, shouldn't that information be stored in the object in question? And when should the system be reset?
An alternative would be to use static objects and set up the parameters from them. Also, self.d does not seem like a great name for a variable, should change that...

Alright, so I have given this some more thought now. Some comments are also written in pull request 35.
I think that to be able to interpolate data conveniently and also report data missing in a clear manner, the datetime column of the data return variable needs to be promoted to index. Furthermore, I think it would make sense to reindex using the sampling frequency which is readable in the header ("1 gång/dag, kl 6:00" or "1 gång/tim" or similar), which will fill the dataframe with NaN where data is not available. In this way, interpolated data is easily merged into the dataframe at the appropriate position.
I plan to do this in steps:

Promote the datetime to index
When interpolation is asked, re-index using the information in the header, available e. g. through regex ´m = re.search('[\d] gång/[^;]*', header);m.group(0)´
Find stations within a given distance (using 20km for now) and fill in missing data by merging dataframes.

Once this is done, I will add complementory interpolation steps. A possible choice would be to use data from earlier years, plus of course mesan and strång.

All sounds good to me. Does Strång need interpolation as it's model-based (same with metfcts)?
With regards to 2), are we sure every parameter and station (that returns data) has the sampling frequency in its header? We should either check for that in a bunch of unit tests (that call the API) or handle it through exceptions.

I am looking at 2) now. Thus far, it seems they have been good with using the same metadata in all sets, but I am not sure. Probably we should handle it with some sort of exception.
When it comes to Strång and Metfcts, I assume they will not need interpolation - I was thinking of adding that either as the default (if they return the exact values from the stations at all stations, which seems unlikely) or as an option ("use data from smoothing model" or something like that). I was also thinking of a third option, where the station data is used when available and model data is used to cover the gaps.

It seems there is not a set way to write measurement frequency - it is always in the same csv cell, but while it is most frequently written as "x gång / y", I have also encountered "en gång per timme" and similar phrasings. I will give this some more thought - perhaps it is easier to parse by reading using csv_read...

I am looking at 2) now. Thus far, it seems they have been good with using the same metadata in all sets, but I am not sure. Probably we should handle it with some sort of exception.
When it comes to Strång and Metfcts, I assume they will not need interpolation - I was thinking of adding that either as the default (if they return the exact values from the stations at all stations, which seems unlikely) or as an option ("use data from smoothing model" or something like that). I was also thinking of a third option, where the station data is used when available and model data is used to cover the gaps.

I think metfcts only has data for the past 24 hours so not sure how relevant it is to use that to interpolate historic data.

It seems there is not a set way to write measurement frequency - it is always in the same csv cell, but while it is most frequently written as "x gång / y", I have also encountered "en gång per timme" and similar phrasings. I will give this some more thought - perhaps it is easier to parse by reading using csv_read...

I will use this construct: data.index.to_series().diff().min() That will give me the time-delta i need to re_index the dataframe with added NaNs, and it should be fairly general. An additional benefit is that I don't circumvent all the hassle with regular expressions :)

I am looking at 2) now. Thus far, it seems they have been good with using the same metadata in all sets, but I am not sure. Probably we should handle it with some sort of exception.
When it comes to Strång and Metfcts, I assume they will not need interpolation - I was thinking of adding that either as the default (if they return the exact values from the stations at all stations, which seems unlikely) or as an option ("use data from smoothing model" or something like that). I was also thinking of a third option, where the station data is used when available and model data is used to cover the gaps.

I think metfcts only has data for the past 24 hours so not sure how relevant it is to use that to interpolate historic data.

But metfcts is the forecast, right? We shouldn't use that, no. Let's figure it out when we get there.

It seems there is not a set way to write measurement frequency - it is always in the same csv cell, but while it is most frequently written as "x gång / y", I have also encountered "en gång per timme" and similar phrasings. I will give this some more thought - perhaps it is easier to parse by reading using csv_read...

Looping over all parameters/stations (is that too comprehensive?) and checking the format? Not a good idea to have such a loop in a test as that would use up all our minutes on GitHub Action (and I don't expect the header to change), but could nonetheless be put inside the test folder.
Could be placed under a notebook folder!

I am looking at 2) now. Thus far, it seems they have been good with using the same metadata in all sets, but I am not sure. Probably we should handle it with some sort of exception.
When it comes to Strång and Metfcts, I assume they will not need interpolation - I was thinking of adding that either as the default (if they return the exact values from the stations at all stations, which seems unlikely) or as an option ("use data from smoothing model" or something like that). I was also thinking of a third option, where the station data is used when available and model data is used to cover the gaps.

I think metfcts only has data for the past 24 hours so not sure how relevant it is to use that to interpolate historic data.

But metfcts is the forecast, right? We shouldn't use that, no. Let's figure it out when we get there.

You're correct, its 24-hour forecast!

data.index.to_series().diff().min()

This did not work the way I wanted it to unfortunately, as of course some days the daily measurement will have been performed 7:00 instead of the nominal 6:00, which means the minimum difference will be less than 24h, yielding the re-indexed dataframe useless.
Perhaps I can find a construct using the most frequent time delta somehow.

data.index.to_series().diff().min()

This did not work the way I wanted it to unfortunately, as of course some days the daily measurement will have been performed 7:00 instead of the nominal 6:00, which means the minimum difference will be less than 24h, yielding the re-indexed dataframe useless.
Perhaps I can find a construct using the most frequent time delta somehow.

This works. However, when the first day is measured at 7 instead of at 6, this fails. Also, all days measured at the wrong time of day will fail. I will have to think of something else, unfortunately. I have a construct in mind, but it will probably be messy.

Managed to come up with a solution which works, see push above. Somewhat messy, but not as bad as I had feared.
Looking at the example with snow coverage in Kiruna, this is the comparison of interpolated and uninterpolated data:

With the example of Kiruna, I would have to make the circle considerably larger than 20km in order to fill all the holes, I think (there is a lot of forest once you get outside of the radius covering the mine and the airport, I would assume). I don't know where the radius stops making sense, perhaps that should be left to the user?

I get an error on line 17 of test_unit_metobs.py:
================================================================= ERRORS ==================================================================
_____________________________________________ ERROR collecting tests/unit/test_unit_metobs.py _____________________________________________
tests\unit\test_unit_metobs.py:17: in <module>
    METOBS_DATA = f.readline().encode("latin1").decode("unicode-escape")
E   UnicodeEncodeError: 'latin-1' codec can't encode character '\u2013' in position 88: ordinal not in range(256)
========================================================= short test summary info =========================================================
ERROR tests/unit/test_unit_metobs.py - UnicodeEncodeError: 'latin-1' codec can't encode character '\u2013' in position 88: ordinal not in...!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Can you try utf-8 instead of latin1?

Yes, that works. Thanks!

The development included for MetObs needs to be extended to the other models as well, notably the "search-by-name-of-place"-functionality. Also, the other interfaces need to be made available from the parent class. @mgcth your thoughts on this?

Since Mesan, Strang and MetFcts all accept coordinates as input, all that needs to be included is a preliminary step which gets the latitude and longitude from the city / place to get data from. This is essentially what is implemented already in find_stations_by_city:
geolocator = Nominatim(user_agent="ifk-smhi")
loc = geolocator.geocode(city)
lat = loc.latitude
lon = loc.longitude

I like the way it is written now, but perhaps I need to kill my darling to be able to generalize this somehow? Thoughts?

How about this: Include Mesan, Strang and MetFcts functions of the type get_point and get_multipoint, but include variable call structures such that it could either be called using lat, lon or with a string city?
Like:
data = get_metfcts_point('Gothenburg')

Could be a useful addition, couldn't it?

We have a new issue for the continuation work - most of the issue as initially formulated here has been solved. I am closing now.

authors: docNord mgcth

repo: Ingenjorsarbete-For-Klimatet/ifk-smhi


text:
simple-term-menu not work on Windows

System

Parameter
Info

OS
Win7 SP1 x86

Python
Python 3.8.3

Pip
Pip 20.1.1

Steps to reproduce

pip install simple-term-menu
run this code:

from simple_term_menu import TerminalMenu

terminal_menu = TerminalMenu(["entry 1", "entry 2", "entry 3"])
terminal_menu.show()

Output
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "H:\github\simple-term-menu\simple_term_menu.py", line 7, in <module>
    import termios
ModuleNotFoundError: No module named 'termios'

Thanks for trying simple-term-menu. Currently, only Linux and macos are supported. Windows needs completely different terminal handling code. That is also the reason why termios is not available on Windows (on Unix-like systems it is part of the Python standard library).

Is using Cygwin maybe an option for you?

Possible. simple-term-menu started in msys32, also this must work in wsl

The next release will at least throw a more descriptive exception for non-supported platforms.

Just to mention it works fine on wsl as @jDan735 indicated.

Will this be fixed soon? Are there alternatives to this ?

Windows terminals need completely different terminal handling code so quite a lot of work has to be done first. I think it would be best to split simple-term-menu in a platform dependent and a platform independent part so the right terminal backend code can be loaded if on Unix or Windows. However:

I don't know if a Windows terminal supports all features simple-term-menu uses in Unix environments.
I definitely need help here because I am not very familiar with Windows programming.

@tmkkcc Maybe bullet could be the right choice for you. There is a open PR for adding Windows support.

I use it within Microsoft Terminal (the one from the app store), under wsl2
and it runs wonderfully.
I wouldn't be so sure under legacy terminal, but I might be able to help
you test, develop.
On Tue, Jun 22, 2021, 08:59 Ingo Meyer @.***> wrote:

Windows terminals need completely different terminal handling code so
quite a lot of work has to be done first. I think it would be best to split
simple-term-menu in a platform dependent and a platform independent part so
the right terminal backend code can be loaded if on Unix or Windows.
However:

I don't know if a Windows terminal supports all features
simple-term-menu uses in Unix environments.
I definitely need help here because I am not very familiar with
Windows programming.

@tmkkcc https://github.com/tmkkcc Maybe bullet could be the right
choice for you. There is a open PR for adding Windows support
https://github.com/bchao1/bullet/pull/79.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/IngoMeyer441/simple-term-menu/issues/5#issuecomment-865921268,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAEHBTYNB75KKM5YPQNJ6LLTUB3JNANCNFSM4N3T7M3Q
.

I have played around a bit in the last two days and got at least the basic basic functions in 'Windows Terminal' to work:

At first sight it looks like entry selection, colors, preview and search (just couldn't get <backspace> to work as expected) could work fine without too many changes.
I have close to no knowledge about Windows Terminal and CMD handling, but I figured following key points might be quiet challenging to implement:

window resize event
unicode / wcswidth (didn't find any easy alternative implemented in Windows) > https://github.com/jquast/wcwidth

and most likely some other things and edge cases, which I have not considered yet. Without external dependencies, the amount of code is likely to grow a lot. I have also used some shortcuts which could benefit from a proper implementation (e.g. use of sys.stdin/out, instat of a proper stream handle).
But perhaps I have overlooked some simpler solutions.

Sure thing 😃
https://github.com/wnhrt/simple-term-menu/pull/1/commits/9f65d656d182ff4e648c8ca002a21fe59bd5869d
(Your recent commit about multiselect slipped with in)
I could get backspace to work (used the wrong key code) and enable VT100 mode in CMD.exe.

Variable length unicode symbols and resize of the window still cause problems and I didn't test key combinations, like Alt+X or Ctrl+X.
I reused most of your code. Design wise it might be sensible to create Windows-specific functions, e.g. for _query_terminfo_database.

If it is possible to display Unicode characters, the Unicode box characters should also work. Didn't know that the legacy terminal supports Unicode characters.

The wcwidth module could become an optional dependency for Windows (for example, by installing it with pip install simple-term-menu[wcwidth]). If it is not installed, simple-term-menu could fall back to the len function, so people (especially Unix users) are not forced to install any dependency.

not sure if this helps. but i just installed the lynux terminal and it all works fine. couldnt run anything before.
just ran "wsl --install" in my terminal. i think as admin. and then restarted pc.

is there any thing like simple-term-menu work on windows?
i just need some basic funcion like short cut and choosing item!

since there is not any progress about supporting windows, i made this if any one need ! dumb_menu

python-inquirer is also a good choice(supports cross-platform and single/multiple selection, etc). Hope it will save your life.

authors: Abeautifulsnow IngoHeimbach IngoMeyer441 buanzo cornradio jDan735 nitsuaustin11 tmkkcc wnhrt


text:
How to handle invalid access token on facebook

hi guys,
I'm getting this error on Android
W/libEGL  (15668): EGLNativeWindowType 0x6f2af42450 disconnect failed
E/GraphResponse(15668): {HttpStatus: 400, errorCode: 190, subErrorCode: 460, errorType: OAuthException, errorMessage: Error validating access token: The session has been invalidated because the user changed their password or Facebook has changed the session for security reasons.}
After a bit of investigation. ,I've found this on the FB dev website.
How-To: Handle expired access tokens
One of the most frequently asked for “How-To” requests from developers is how to handle invalid access tokens. Access tokens for users can become invalid due to various reasons. In most cases, they can expire if it’s past the time specified by the ‘expires’ field (by default access token have a 2 hour lifetime). What many developers do not realize is that an access token can also expire if a user changes her password, logs out or if she de-authorizes the app via the App Dashboard. It is very important that your apps handle such situations. If your access token expires, you need to reacquire a valid access token.
The solution is written in PHP. I think you guys should integrate this because otherwise you can't login anymore to the app.
Have a look and let me know.

Hey!
That's strange - I thought the native sdk handles this. I'll take a look.

Any updates on this? @greymag

@SametSahin10 sorry, I was busy and still don't and still haven't looked at what's the matter. Did you getting such error too?

@devolab Did you ever fix it?

Hey! What do you suggest to fix/implement on package side in this case? If token has become invalid - you should offer user to log in again. It's should be done on app side - only your app knows when it's appropriate to show login dialog to user, and you still need to handle error if user cancels an auth. Any suggestions?

It's weird in the sense that the user is logged out.
I've even tried calling it like this:
Future<void> signInWithFacebook() async {
  await FacebookAuth.i.logOut(); // log out before logging in
  log.w(await FacebookAuth.i.accessToken); // returns null

  final LoginResult result = await FacebookAuth.instance.login();
  if (result.status == LoginStatus.success) {
    // Create a credential from the access token
    final OAuthCredential credential =
        FacebookAuthProvider.credential(result.accessToken!.token);
    // Once signed in, return the UserCredential
    await signInWithCredential(credential);
    // return await FirebaseAuth.instance.signInWithCredential(credential);
  } else {
    throw Messages.signInError;
  }
  return null;
}

But it's still showing the error reported by OP.
This issue only happens on android (not sure how common). I'm able to sign in on an iOS device with the same account with absolutely no problem!
Another interesting point is that I've actually tried to use another Facebook login package and it outputted the same exact error, so I wonder if it's something on Android/Facebook's side. I thought it was something with the set up on Android, but I've already triple-checked it. Could be interference between Facebook login and Facebook app events?

authors: SametSahin10 VKBobyr devolab greymag


text:
STYLE: Simplify Neighborhood::ComputeNeighborhoodStrideTable()

Simplified the implementation of the protected Neighborhood member
function ComputeNeighborhoodStrideTable(), removing an unnecessary
inner for loop and a local stride variable.

And that happened long ago, in d4b070867f83f0c215e9feea871556b86252f7ca.

And that happened long ago, in d4b0708.

Indeed, @dzenanz While my PR doesn't do any modern C++. It should still be compatible with the programming style of that long ago 😄

authors: N-Dekker dzenanz

repo: InsightSoftwareConsortium/ITK


text:
STYLE: Conform to ITK remote module naming guidelines.

Conform to ITK remote module naming guidelines: the module's name should
not contain the ITK prefix.

:+1:

CI failures unrelated. Merging.

authors: jhlegarreta thewtex


text:
Create coconutbattery.sh

Label for coconutBattery app.

Thank you!

authors: scriptingosx thomasrmartin

repo: Installomator/Installomator


text:
InstantID CPU

Thanks for this wonderful work!
I just created A CPU version of instant ID.
https://github.com/rupeshs/instantidcpu

great job, thanks

authors: cqflgl rupeshs

repo: InstantID/InstantID


text:
Kicking still damages other people with friendly fire off.

Not sure if this is intentional or not, but the title is self explanatory. Doesn't really matter that much, but I thought it'd be nice to let you know.

i think its funny

authors: bgkillas omphy


text:
IGAPP-517: Fix navigation item size with tooltips

This pull request belongs to an issue on our bugtracker.
You can find it there by looking for an issue with the key which is mentioned in the title of this pull request.
It starts with the keyword IGAPP.

Ausgecheckt uns sieht gut aus, approved.
Vergleich is allerdings nicht 1:1, lokal ich noch "Angebote" in der Liste, auf dem Dev-Server gibt es die nicht:

authors: Znippet klinzo

repo: Integreat/integreat-app


text:
L2 distance benchmark fails validation

The L2 distance numba_dpex_k implementation fails the data validation step on CPU devices. Incidentally, the reference dpcpp implementation also fails data validation. The issue may point to use of atomic references. Needs further investigation and can be migration to numba-dpex or dpcpp once we know the root cause.

No validation failure in l2 distance. See log from latest CI run below. If issue occurs again, please reopen.
5  04.03.2023_21.07.58            l2_norm              S        1MB        Success     Unimplemented  Failed Execution           Success        Success  Unimplemented        Success        Success  Unimplemented        Success

authors: adarshyoga diptorupd

repo: IntelPython/dpbench


text:
Example for sum reduction with local memory and barriers

GPU Reduction section of docs contain line:

Examples show invocation of the kernel multiple times.
Reduction could be implemented by invoking the kernel once, but that requires
support for local device memory and barrier, which is a work in progress.

If local memory and barriers are supported now then we need to implement the corresponding example.

The examples are to be found in numba_dpex/examples/kernel

authors: PokhodenkoSA diptorupd

repo: IntelPython/numba-dpex


text:
can not get faceprints data from ExtratdFaceprints class [Android]

Hi Team!
In AuthFaceprintsExtractionCallback, I can not get FacePrints Data.

It seems it's an swig issue.
You can try this commit as a workaround
https://github.com/mengyui/RealSenseID/commit/ec11944bd340b60962e3669a63122b4d2b1841a0

Thank you @mengyui , can you merge branch android-hostmode-fix to ver 21

Try this https://github.com/mengyui/RealSenseID/commit/caad1659c9c5664b44486abb1332561ba6190d8b. rebase on v0.24.0

I'm having the same issue, is this going to be fixed in the main repo?

@gabime @Gilaadb @RealSenseSupport could you check on this?

authors: mcostanzo mengyui tmq902005

repo: IntelRealSense/RealSenseID


text:
How can I get USB SCP overflow log info in c++ realsense sdk2.0

Required Info

Camera Model
D435

Firmware Version
(Open RealSense Viewer --> Click info)

Operating System & Version
win10

Kernel Version (Linux Only)
(e.g. 4.14.13)

Platform
PC

SDK Version
2.50

Language
{c++ }

Segment
{Robot/Smartphone/VR/AR/others }

Issue Description
If the transmission bandwidth of my camera exceeds the maximum bandwidth of USB3.0,
How can I get USB SCP overflow log info in c++ realsense sdk2.0
I try to use rs2:: log_ to_ Console() function,
But the related log info of USB SCP overflow is not printed

Rather than try to print the USB SCP overflow message, an easier approach may be to calculate an estimate of the current bandwidth being used - as described at https://github.com/IntelRealSense/librealsense/issues/7870 - and compare it to USB 3's typical maximum bandwidth of 5 Gbps / 5000 Mbps, trggerig a message if current bandwidth is larger than the USB 3 maximum bandwidth value.

Do you require further assistance with this case, please?  Thanks!

Case closed due to no further comments received.

repo: IntelRealSense/librealsense


text:
25501

librealsense
2.55.1 RELEASE

OS
Windows

Intel RealSense Viewer / Depth Quality Tool has crashed with the following error message:
RealSense error calling rs2_create_context_ex(api_version:25501, json_settings:{):
    failed to convert special folder: errno=42

Hello, advice about the errno=42 error can be found at https://github.com/IntelRealSense/librealsense/issues/13037

Hi @cf88794821754  Do you require further assistance with this case, please?  Thanks!

Case closed due to no further comments received.


text:
Setting options, histogram equalization or max/min distance

Required Info

Camera Model
{ D400 }

Firmware Version
05.09.09.02

Operating System & Version
{Win (8.1/10)

Platform
PC

SDK Version
{  2.0 }

Is there any way to set RS2_OPTION_HISTOGRAM_EQUALIZATION_ENABLED or RS2_OPTION_MIN_DISTANCE in C++?
I would like to get a fixed scale of the depth visualisation from the depth frame. I have loaded a preset json file I created in Realsense Viewer and are trying to set the options in the code but it throws a wrong_api_call_sequence_error.
When looking at the settable options querying the sensor it displays the following:
32: Histogram Equalization Enabled is not supported
33: Min Distance is not supported
34: Max Distance is not supported
I can alter other options that are supported like RS2_OPTION_EMITTER_ENABLED for instance.
Below is some code
//Contruct a pipeline which abstracts the device
rs2::pipeline pipe;

//Create a configuration for configuring the pipeline with a non default profile
rs2::config cfg;

//Add desired streams to configuration
cfg.enable_stream(RS2_STREAM_COLOR, 640, 480, RS2_FORMAT_BGR8, 6);
cfg.enable_stream(RS2_STREAM_INFRARED, 640, 480, RS2_FORMAT_Y8, 6);
cfg.enable_stream(RS2_STREAM_DEPTH, 640, 480, RS2_FORMAT_Z16, 6);

rs2::context cxt;
auto device = cxt.query_devices().back();
auto advanced_mode_dev = device.as<rs400::advanced_mode>();
if (device.is<rs400::advanced_mode>())
	if (!advanced_mode_dev.is_enabled())
		advanced_mode_dev.toggle_advanced_mode(true);

std::ifstream t("D:\\preset.json");
std::string preset_json((std::istreambuf_iterator<char>(t)),
std::istreambuf_iterator<char>());
advanced_mode_dev.load_json(preset_json);

rs2::pipeline_profile pipe_profile = cfg.resolve(pipe);
std::vector<rs2::sensor> sensors = device.query_sensors();
for (rs2::sensor element : sensors) {
	std::string module_name = element.get_info(RS2_CAMERA_INFO_NAME);

	if ("Stereo Module" == module_name) {
		element.set_option(rs2_option::RS2_OPTION_HISTOGRAM_EQUALIZATION_ENABLED, 0.f);
	}
	get_sensor_option(element);
}

rs2::pipeline_profile profile = pipe.start(cfg);

What I would like to accomplish is a fixed color on the depth map for background subtraction in OpenCV. Maybe there is a better way? When I use the colorizer the intensity of the color scheme changes when a object gets closer to the camera.

Hi @stekla79
Do you need further assistance?


text:
How to manually patch the kernel for INZI?

Required Info

Camera Model
SR300

Firmware Version

Operating System & Version
Debian

Kernel Version (Linux Only)
4.11.0

Platform
ARM board

SDK Version
SDK2

I want to get depth frames and process by ARM board with Debian system. I build pyrealsense2.so in my ARM board. Then I run the following code in python:

import pyrealsense2 as rs
pipeline = rs.pipeline()
pipeline.start()

I run into an error:

RuntimeError: The requested pixel format 'INZI' is not natively supported by the Linux

According to dorodnic's answer, I can manually patch the kernel or run cmake with -DFORCE_LIBUVC=true.
I run cmake with -DFORCE_LIBUVC=true but get Segmentation fault after several frames. I asked a question but nobody give solution.
So it seems that run cmake with -DFORCE_LIBUVC=true not work for me; therefore, the only solution is to manually patch the kernel. I try to follow your answer @dorodnic :
You will need to add couple lines of code to /drivers/media/usb/uvc/uvc_driver.c, /drivers/media/usb/uvc/uvcvideo.h and /include/uapi/linux/videodev2.h to make V4L2 recognise INZI. You can use the patch for Ubuntu as reference.
Once you make the changes and successfully rebuild the kernel, it would be relatively easy to generate new .patch that you are welcomed to share here for future use.

But I do not find /drivers/media/usb/uvc/uvc_driver.c or uvcvideo.h or videodev2.h in my Debian system. There is no /driver directory in my system. Do I need to download something? @dorodnic

Hi @KeCh96
Crash with libuvc seem to be exclusive to ARM boards, and we need time to reproduce and resolve it.
To manually patch the kernel the high level flow is:

Download the sources of the kernel you are using (line 53 in the script bellow)
Navigate to the relevant drivers folder and apply the change (line 88)
Build the kernel module (you don't have to build the whole kernel, just run make in the module directory) - line 125
Replace your existing module with newly built one using modprobe (line 141)

For more details you can follow one of the maintained scripts:
patch-realsense-ubuntu-lts.sh

Also worth mention that if you have an option to upgrade to kernel 4.12, this will also solve the problem (since SR300 support was upstreamed as part of this version)

I typed aptitude search linux-image | awk '{print $2}' and get:
linux-image-4.11.0-qcomlt
linux-image-4.11.0-qcomlt-arm:armhf
linux-image-4.11.0-qcomlt-arm64
linux-image-4.11.0-qcomlt-arm64-dbg
linux-image-4.11.0-qcomlt-dbg
linux-image-4.14.0-qcomlt-arm:armhf
linux-image-4.14.0-qcomlt-arm64
linux-image-4.14.0-qcomlt-arm64-dbg
linux-image-4.9.0-6-arm64
linux-image-4.9.0-6-arm64-dbg
linux-image-4.9.0-qcomlt
linux-image-4.9.0-qcomlt-dbg
linux-image-arm64
linux-image-arm64-dbg

Does it mean my ARM board do not support kernel 4.12 ? @dorodnic

I tried to run ./scripts/patch-realsense-ubuntu-lts.sh, and get error:
Remove all RealSense cameras attached. Hit any key when ready

Reading package lists... Done
Building dependency tree
Reading state information... Done
Package linux-headers-generic is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'linux-headers-generic' has no installation candidate

Then I run apt-get update, and get the following error (this error seems to be caused by http://realsense-hw-public.s3.amazonaws.com/Debian/apt-repo/dists/xenial/InRelease 403 Forbidden)
Ign:1 http://mirrors.163.com/debian stable InRelease
Hit:2 http://mirrors.163.com/debian stable Release
Err:4 http://realsense-hw-public.s3.amazonaws.com/Debian/apt-repo xenial InRelease
  403  Forbidden [IP: 52.218.16.129 80]
Ign:5 http://obs.linaro.org/linaro-overlay-buster/buster ./ InRelease
Ign:6 http://obs.linaro.org/qcom/buster ./ InRelease
Hit:7 http://obs.linaro.org/linaro-overlay-buster/buster ./ Release
Hit:9 http://obs.linaro.org/qcom/buster ./ Release
Reading package lists... Done
E: Failed to fetch http://realsense-hw-public.s3.amazonaws.com/Debian/apt-repo/dists/xenial/InRelease  403  Forbidden [IP: 52.218.16.129 80]
E: The repository 'http://realsense-hw-public.s3.amazonaws.com/Debian/apt-repo xenial InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.

Hi @KeCh96

4.14 version will also work
./scripts/patch-realsense-ubuntu-lts.sh is for x86/x64 Ubuntu and will not run out of the box on Arm, but you can see what it is doing for reference
It seems you have added http://realsense-hw-public.s3.amazonaws.com/ to your apt sources, please remove it and try again

[Realsense Customer Engineering Team Comment]
Hi @KeCh96,
Do you have any update according to @dorodnic's comments?

[Realsense Customer Engineering Team Comment]
Hi @KeCh96,
I verified SR300 stream on one Jetson TX2 (ARM) board with librealsense 2.12.0 + FW 5.9.11. Either libuvc or kernel patch, both can work normally with the example "python-tutorial-1-depth.py". (more than 10 minutes)
What's your ARM board?

[Realsense Customer Engineering Team Comment]
Hi @KeCh96,
Is the kernel patch ok on your ARM platform? Does "Segmentation fault" still happen when SR300 depth stream?
What's your SR300 firmware version? 3.21.0.0?

[Realsense Customer Engineering Team Comment]
Hi @KeCh96,
any update?


text:
I was wondering if there is any video tutorial on configuring the repo to make my f200 3d camera wrk with open ni2 and intel realsense.

Before opening a new issue, we wanted to provide you with some useful suggestions (Click "Preview" above for a better view):

Consider checking out SDK examples.
Have you looked in our documentations?
Is you question a frequently asked one?
Try searching our GitHub Issues (open and closed) for a similar issue.

All users are welcomed to report bugs, ask questions, suggest or request enhancements and generally feel free to open new issue, even if they haven't followed any of the suggestions above :)

Required Info

Camera Model
{ R200 / F200 / SR300 / ZR300 / D400 }

Firmware Version
(Open RealSense Viewer --> Click info)

Operating System & Version
{Win (8.1/10) / Linux (Ubuntu 14/16/17) / MacOS

Kernel Version (Linux Only)
(e.g. 4.14.13)

Platform
PC/Raspberry Pi/ NVIDIA Jetson / etc..

SDK Version
{ legacy / 2.. }

Language
{C/C#/labview/nodejs/opencv/pcl/python/unity }

Segment
{Robot/Smartphone/VR/AR/others }

Issue Description
<Describe your issue / question / feature request / etc..>

I generally prefer python, but I am new to programming I need a tutorial for learn to do this.

The closest match I could find to your request was this video:
https://www.youtube.com/watch?v=Bn9WqbYtNBw
Although the title says that it was done on a Jetson Tx1 computing device and a Structure Sensor camera, the comments say that the installation process also works with other types of computing device and depth camera, such as Raspberry Pi board and Kinect camera.

@MartyG-RealSense Thanks very much for your great support! :)
@Valema1986 Is the tutorial in the video working for you? Looking forward to your update. Thanks!

@Valema1986 Any other questions for this ticket?

No, not any other question, thanks.

@Valema1986 Great! Thanks for the update! Will close the ticket accordingly.


text:
leam-base.joda-time.mid-1186.idx-172014.28.mutant

Updated Indentation in Mutated Code

Fix indentation LGTM!

authors: Arsh-Khan faustinoaq

repo: Intelligent-CAT-Lab/UIUCPlus

license: NCSA


text:
Error Opening Serial Port

I had success getting my ReactorX up and running but then it stopped working. I seem to have an issue with ports. I though maybe someone could point me in the right direction? The error message is the same as the one from post at https://github.com/ROBOTIS-GIT/open_manipulator/issues/82 . I have walked step by step through the quickstart but can't seem to get the arm to move anymore

Can you verify the following?

You've done Steps 7 and 8 in the Quick start, and you can see 'ttyDXL' show up in the /dev directory

The microUSB cable connecting the U2D2 to your laptop is not loose but firmly connected

No other application on your computer is using the port. For example, if you are running the Dynamixel Wizard 2 tool, and then try to run the ROS packages, you will get this error since it's already being used. You may also have a previous ROS session still using the port. To get rid of it, do pkill ros in the terminal.

If you have another udev rule in the /etc/udev/rules.d directory with a higher number than 10, it may be restricting your user's port permissions somehow. In that case, change the interbotix udev rule to 99-interbotix-udev.rules instead of 10-interbotix-udev.rules. Unplug/replug and try again.

Thanks! It was the fourth one. Looks good now

authors: PeterJochem swinterbotix


text:
kv int8 量化， 能较少显存，吞吐基本没有提升？

Motivation
kv int8 量化，吞吐基本没有提升？
use_context_fmha = 0
quant_policy = 4
max batch  throughput 1160 token/s
use_context_fmha = 0
quant_policy = 0
max batch  throughput 1012 token/s
看网上的材料能显著提升吞吐
Related resources
No response
Additional context
No response

https://zhuanlan.zhihu.com/p/653735572
补充下网上的链接

请提供一下你测试的config.ini，以及测试的命令

llama2-7b-w4kv8，context windows 1024, A100-80G 下的表现：

batch
prompt_tokens
completion_tokens
throughput_per_proc(token/s)

1
256
512
198.53

1
512
512
177.63

1
512
1024
163.06

1
1024
1024
137.22

1
1
2048
163.89

8
256
512
1347.48

8
512
512
1158.45

8
512
1024
1085.15

8
1024
1024
867.1

8
1
2048
1131.42

16
256
512
1938.43

16
512
512
1561.56

16
512
1024
1440.85

16
1024
1024
1085.37

16
1
2048
1528.8

32
256
512
2605.24

32
512
512
2044.45

32
512
1024
1911.55

32
1024
1024
1403.93

32
1
2048
2049.51

64
256
512
3253.14

64
512
512
2453.25

64
512
1024
2318.51

64
1024
1024
1645.43

64
1
2048
2522.34

72
256
512
3313.24

72
512
512
2492.54

72
512
1024
2353.59

72
1024
1024
1675.94

72
1
2048
2548.98

手边倒是没有w16kv8的结果。

kv int8 量化，吞吐基本没有提升？

当前版本没有优化int8数据的转换的读取，下个版本会有优化 #590

repo: InternLM/lmdeploy


text:
同样的 prompt 和采样参数，输出有差异

Checklist

[X] 1. I have searched related issues but cannot get the expected help.
[ ] 2. The bug has not been fixed in the latest version.

Describe the bug
发送两次下述请求
<|im_start|>system
You are a helpful assistant.<|im_end|>
<|im_start|>user
推荐10本书，既适合4岁儿童并且也适合18年成年人？<|im_end|>

输出有diff

Reproduction
模型：qwen-72B-chat 的开源模型
部署方式：tritonserver + fp16 推理
max_batch_size = 2
重复发送两次请求
<|im_start|>system
You are a helpful assistant.<|im_end|>
<|im_start|>user
推荐10本书，既适合4岁儿童并且也适合18年成年人？<|im_end|>

采样参数

Environment
运行 lmdeploy check_env 报错了。。

Error traceback
No response

符合预期，就是要两次运行结果不一样。

@AllentDan 为什么结果不一样符合预期呢？我理解相同的输入，相同的采样参数，输出不应该是稳定的么？

还有随机种子，内部每次都会做随机的

@AllentDan 为什么结果不一样符合预期呢？我理解相同的输入，相同的采样参数，输出不应该是稳定的么？

不一样的，其中tempature控制了返回的多样性，如果你想固定返回可以尝试将temperature设置为0.01，多次请求查看结果

@AllentDan 我也传入了 random_seed = 42，这个种子一样的话后续产生的随机数也都会一样吧？

@zhulinJulia24 tempature 应该是配合 random seed 一起使用吧？我理解这些采样参数都一样的话，输出应该是稳定的吧？

@AllentDan 我也传入了 random_seed = 42，这个种子一样的话后续产生的随机数也都会一样吧？

你在哪传的？api_server 没 random_seed 参数暴露出来啊

@AllentDan 我也传入了 random_seed = 42，这个种子一样的话后续产生的随机数也都会一样吧？

你在哪传的？api_server 没 random_seed 参数暴露出来啊

现在使用 tritonserver 加载 libtriton_turbomind.so 部署的，tritonserver 看着是可以传 random_seed 的。

把采样关了试试，用greedy模式

遇到相同的问题，按理相同的采样参数如temperature，random_seed等，输出的结果应该保存稳定，现在是有差异

有什么解决方法吗？

把采样关了试试，用greedy模式

对，直接 top_k 设置 1

把采样关了试试，用greedy模式

对，直接 top_k 设置 1

没有彻底解决问题，我试过temperature为0，top_k为1,1000个样本仍然有5%是不一样的，很神奇

top_k为1确实也会存在随机性，不知道是否可以参考ollama的seed方式，能确保一致性：https://github.com/ollama/ollama/blob/main/docs/modelfile.md#valid-parameters-and-values

把采样关了试试，用greedy模式

对，直接 top_k 设置 1

没有彻底解决问题，我试过temperature为0，top_k为1，1000个样本仍然有5%是不一样的，很神奇

这个有解决没？ 我们也遇到类似的问题了

关掉 sampling. 如果使用 pipeline 接口，可以用 do_sample=False。如果使用 api_server 接口，可以 top_k=1, 或者 temperature=0.
另外，推理使用的是 continuous batching，每次forward时，batch是动态变化的。batch的不同，会导致 cuda kernel 计算有差异。
如果要保证每次 forward的时候，batch维度的大小不变。目前需要把 max_batch_size设置为 1


text:
[USERSNAP] Trying to vote 'no' on the missing data governance action, Yoroi Dapp connector just hangs.

Taken at: https://gov.tools/connected/governance_actions/15f82a365bdee483a4b03873a40d3829cc88c048ff3703e11bd01dd9e035c916#0
Fields:

Add a comment: Trying to vote 'no' on the missing data governance action, Yoroi Dapp connector just hangs.

Browser: Chrome 127 (Linux)
Screen size: 1920x1080
Open #129 in Usersnap
Powered by Usersnap.

replaced by https://github.com/IntersectMBO/govtool/issues/2068

repo: IntersectMBO/govtool


text:
Centering Issue with Japanese Characters (v3)

I'm using the library to create user icons with the first letter of their name. In version 2, placing the first letter on the canvas worked perfectly and it was centered. However, after updating to version 3, the centering is no longer working for Japanese characters (English characters seem to be unaffected).
Code Example
v2:
$img = Image::canvas(200, 200, $bg);
$img->text($char, 100, 100, function ($font) use ($font_path) {
    $font->file(resource_path($font_path));
    $font->size(130);
    $font->color('#fff');
    $font->align('center');
    $font->valign('middle');
})

v3:
$img = Image::create(200, 200)->fill($bg);
$img->text($firstChar, 100, 100, function ($font) use ($font_path) {
    $font->filename(resource_path($font_path));
    $font->size(130);
    $font->color('#fff');
    $font->align('center');
    $font->valign('middle');
});

Result:
v2

v3

For example, it's small(ゥ)character
Environment (please complete the following information):

PHP Version: PHP 8.2.9

OS: Centos

Intervention Image Version:
v2

v3

GD or Imagick: GD

Thanks for reporting. I will look into this.

I do not what the issue is, but from some tests I made with three different Japanese fonts when I look at the output from imageftbbox for the first font the bounding box is the correct size but there is a significant difference in the bounding box x position when outputting Japanese and Latin characters in the same Japanese font. However, for the second and third fonts I tried the positioning was more accurate but still not exactly aligned.

$image->text('W', 250, 200, function (FontFactory $font) {
    $font->filename('./ちはや純.ttf');
    $font->size(250);
    $font->color('#fff');
    $font->align('center');
});
$image->text('ム', 250, 200, function (FontFactory $font) {
    $font->filename('./ちはや純.ttf');
    $font->size(250);
    $font->color('#f00');
    $font->align('center');
});

$image->text('W', 250, 300, function (FontFactory $font) {
    $font->filename('./mini-wakuwaku.otf');
    $font->size(150);
    $font->color('#fff');
    $font->align('center');
});
$image->text('ム', 250, 300, function (FontFactory $font) {
    $font->filename('./mini-wakuwaku.otf');
    $font->size(150);
    $font->color('#f00');
    $font->align('center');
});

$image->text('W', 250, 450, function (FontFactory $font) {
    $font->filename('./Tryk2kp.ttc');
    $font->size(150);
    $font->color('#fff');
    $font->align('center');
});
$image->text('ム', 250, 450, function (FontFactory $font) {
    $font->filename('./Tryk2kp.ttc');
    $font->size(150);
    $font->color('#f00');
    $font->align('center');
});

I've also done a few more tests and unfortunately I don't know where to locate the problem.
However, I suspect that the font used is the deciding factor here.
A test I did with version 2 and "Arial Unicode MS" as the font did not show a correctly centered result either. Neither with version 2 nor with version 3.
@tumur1 What font did you use for your example?
Version 2

$manager = new ImageManager(['driver' => 'gd']);

$image = $manager->canvas(200, 200, '666');

$image->line(100, 0, 100, 200, function ($line) {
    $line->color('333');
});

$image->line(0, 100, 200, 100, function ($line) {
    $line->color('333');
});

$image->text('ゥ', 100, 100, function ($font) {
    $font->file('./images/ArialUnicodeMS.ttf');
    $font->size(130);
    $font->color('fff');
    $font->align('center');
    $font->valign('middle');
});

Version 3

$image = ImageManager::gd()
    ->create(200, 200)
    ->fill('666');

$image->drawLine(function ($line) {
    $line->color('333');
    $line->from(100, 0);
    $line->to(100, 200);
});

$image->drawLine(function ($line) {
    $line->color('333');
    $line->from(0, 100);
    $line->to(200, 100);
});

$image->text('ゥ', 100, 100, function ($font) {
    $font->file('./images/ArialUnicodeMS.ttf');
    $font->size(130);
    $font->color('fff');
    $font->align('center');
    $font->valign('middle');
});

Looking at output from the Imagick::queryFontMetrics function, it seems that with some Japanese fonts the textWidth value of Japanese characters is significantly greater than the same character's boundingBox value, and there is too much space between characters if you output 2 or more. The closer the textWidth value is to the characterWidth value (the font size specified by the user), the more likely it is that a character will be centered correctly.
The boundingBox values are very accurate but can only be used for single characters, so a possible solution might be to split the text string into separate characters, total the width of all the bounding boxes, and include a calculation for the letter spacing (kerning).

I have created a test script using the standard Imagick functions that seems to horizontally center the text correctly:

In my test script I am using the originX value from the Imagick::queryFontMetrics function which seems to be more accurate than the textWidth value. The test script does not vertically center the text correctly as I have not looked at this yet. Please note that I have not tested this script with any Latin fonts.
The code I used to generate this image was:
$width = 500;
$height = 500;

$image = new Imagick();
$image->setAntiAlias(true);
$image->newImage($width, $height, new ImagickPixel('#444'));

$draw = new ImagickDraw();

// draw center target lines
$draw->setStrokeColor('#f00');
$draw->line($width / 2, 0, $width / 2, $height);
$draw->line(0, $height / 2, $width, $height / 2);

// define text and retrieve font metrics
$draw->setFont('./Tryk2kp.ttc');
$draw->setFontSize(400);
$text = 'ム';
$metrics = $image->queryFontMetrics($draw, $text);
$baseline = $metrics['boundingBox']['y2'];
$character_width = $metrics['boundingBox']['x2'] - $metrics['boundingBox']['x1'];
$text_height = $metrics['textHeight'] + $metrics['descender'];

// draw rectangle with a size of $metrics['originX']
$draw->setStrokeColor('#f00');
$draw->setFillColor('transparent');
$draw->rectangle(
    ($width / 2) - ($metrics['originX'] / 2),
    ($height / 2) - ($text_height / 2),
    ($width / 2) - ($metrics['originX'] / 2) + $metrics['originX'],
    ($height / 2) - ($text_height / 2) + $text_height
);

// draw rectangle with a size of $metrics['boundingBox']['x2'] - $metrics['boundingBox']['x1']
$draw->setStrokeColor('#f00');
$draw->setFillColor('transparent');
$draw->rectangle(
    ($width / 2) - ($character_width / 2),
    ($height / 2) - ($text_height / 2),
    ($width / 2) - ($character_width / 2) + $character_width,
    ($height / 2) - ($text_height / 2) + $text_height
);

// draw text
$draw->setFillColor('#f00');
$x = ($width / 2) - ($metrics['originX'] / 2);
$y = ($height / 2) + ($text_height / 2);
$image->annotateImage(
    $draw,
    $x,
    $y,
    0,
    $text
);

// define text and retrieve font metrics
$draw->setFont('./mini-wakuwaku.otf');
$draw->setFontSize(90);
$text = 'アイウエオ';
$metrics = $image->queryFontMetrics($draw, $text);
$baseline = $metrics['boundingBox']['y2'];
$character_width = $metrics['boundingBox']['x2'] - $metrics['boundingBox']['x1'];
$text_height = $metrics['textHeight'] + $metrics['descender'];

// draw rectangle with a size of $metrics['originX']
$draw->setStrokeColor('#ff0');
$draw->setFillColor('transparent');
$draw->rectangle(
    ($width / 2) - ($metrics['originX'] / 2),
    ($height / 2) - ($text_height / 2),
    ($width / 2) - ($metrics['originX'] / 2) + $metrics['originX'],
    ($height / 2) - ($text_height / 2) + $text_height
);

// draw rectangle with a size of $metrics['boundingBox']['x2'] - $metrics['boundingBox']['x1']
$draw->setStrokeColor('#ff0');
$draw->setFillColor('transparent');
$draw->rectangle(
    ($width / 2) - ($character_width / 2),
    ($height / 2) - ($text_height / 2),
    ($width / 2) - ($character_width / 2) + $character_width,
    ($height / 2) - ($text_height / 2) + $text_height
);

// draw text
$draw->setFillColor('#ff0');
$x = ($width / 2) - ($metrics['originX'] / 2);
$y = ($height / 2) + ($text_height / 2);
$image->annotateImage(
    $draw,
    $x,
    $y,
    0,
    $text
);

$image->drawImage($draw);

$image->setImageFormat('png');

header("Content-Type: image/png");
echo $image;

As it stands now, Imagick seems to be working without any problems.
I did another comparison with just GD (without Intervention Image). This script draws characters (latin and japanese for comparision) and visualizes the coordinate of the "box size". Here you can see that the box is drawn correctly with a latin character. With a Japanese character you can see clear deviations. This could be a bug in GD.
Latin

Japanese

define('CHAR', 'ゥ');
define('COLOR_GREY', 14540253);
define('COLOR_BLACK', 0);
define('FONT_SIZE', 140);
define('FONT_ANGLE', 0);
define('FONT_FILE', './ArialUnicodeMS.ttf');

// create gdimage
$gd = imagecreatetruecolor(400, 400);

// fill with grey
imagefill($gd, 0, 0, COLOR_GREY);

// draw grid
imageline($gd, 200, 0, 200, 400, COLOR_BLACK);
imageline($gd, 0, 200, 400, 200, COLOR_BLACK);

// read box size
$box = imageftbbox(
    FONT_SIZE,
    FONT_ANGLE,
    FONT_FILE,
    CHAR
);

// map box size to text position (200x200)
$box = array_map(function ($point) {
    return $point + 200;
}, $box);

// draw box
imagepolygon(
    $gd,
    $box,
    COLOR_BLACK,
);

// draw text
imagettftext(
    $gd,
    FONT_SIZE,
    FONT_ANGLE,
    200,
    200,
    COLOR_BLACK,
    FONT_FILE,
    CHAR
);

// output
header('content-type: image/png');
imagepng($gd);
exit;

I have created another test script using standard GD functions that seems to horizontally center the text correctly:

I noticed in the src/Drivers/Gd/FontProcessor.php script that the text width is calculated as follows:
intval(abs($box[4] - $box[0]))

However, if I do this
intval(abs($box[4]) + abs($box[0]))

then (in my test script) I get the correct text width. The text width is also correct for Latin fonts.
The code I used to generate the image above was:
$width = 500;
$height = 500;

$image = imagecreatetruecolor($width, $height);

$black = imagecolorallocate($image, hexdec(44), hexdec(44), hexdec(44));
$red = imagecolorallocate($image, 255, 0, 0);
$yellow = imagecolorallocate($image, 255, 255, 0);

// draw center target lines
imageline($image, $width / 2, 0, $width / 2, $height, $red);
imageline($image, 0, $height / 2, $width, $height / 2, $red);

// define text and retrieve font metrics (bounding box only)
$font = './Tryk2kp.ttc';
$font_size = (int) 200;
$text = 'ム';
$box = imageftbbox($font_size, 0, $font, $text);
$text_width = intval(abs($box[4]) + abs($box[0]));
$text_height = intval(abs($box[5]) + abs($box[1]));

// draw rectangle with a size of abs($box[4]) + abs($box[0])
imagerectangle(
	$image,
	(int) ($width / 2) - (int) ($text_width / 2),
	(int) ($height / 2) - (int) ($text_height / 2),
	(int) ($width / 2) - (int) ($text_width / 2) + (int) $text_width,
	(int) ($height / 2) - (int) ($text_height / 2) + $text_height,
	$red
);

// draw text
$x = (int) ($width / 2) - (int) ($text_width / 2);
$y = ($height / 2) + ($text_height / 2);
imagefttext($image, $font_size, 0, (int) $x, (int) $y, $red, $font, $text);

// define text and retrieve font metrics (bounding box only)
$font = './mini-wakuwaku.otf';
$font_size = (int) 50;
$text = 'アイウエオ';
$box = imageftbbox($font_size, 0, $font, $text);
$text_width = intval(abs($box[4]) + abs($box[0]));
$text_height = intval(abs($box[5]) + abs($box[1]));

// draw rectangle with a size of abs($box[4]) + abs($box[0])
imagerectangle(
	$image,
	(int) ($width / 2) - (int) ($text_width / 2),
	(int) ($height / 2) - (int) ($text_height / 2),
	(int) ($width / 2) - (int) ($text_width / 2) + (int) $text_width,
	(int) ($height / 2) - (int) ($text_height / 2) + $text_height,
	$yellow
);

// draw text
$x = (int) ($width / 2) - (int) ($text_width / 2);
$y = ($height / 2) + ($text_height / 2);
imagefttext($image, $font_size, 0, (int) $x, (int) $y, $yellow, $font, $text);

header('Content-Type: image/png');
imagepng($image);
imagedestroy($image);

@olivervogel
I am using the Noto_Sans_CJK-Bold font.
It seems to be on the GD driver. When I switched the driver to Imagick, the problem was solved.
[My server did not support Imagick before, but it has been upgraded now].
Additionally, I have attached the font I used. Feel free to close the issue if no further investigation is needed.
font.zip

I found the error. The result of imageftbbox contains an offset that is not included in the calculation of Intervention Image. For Latin fonts this does not seem to make a difference, but for Japanese (and probably also other non-latin) fonts the offset is needed to render the position correctly.
Latin Font
Top-Left corner is 0, -10
array(8) {
  [0]=>
  int(0)
  [1]=>
  int(0)
  [2]=>
  int(39)
  [3]=>
  int(0)
  [4]=>
  int(39)
  [5]=>
  int(-10)
  [6]=>
  int(0)
  [7]=>
  int(-10)
}

Japanese
Top-Left corner is at 29, -91 (offset of 29 is currently disregarded).
array(8) {
  [0]=>
  int(29)
  [1]=>
  int(-8)
  [2]=>
  int(131)
  [3]=>
  int(-8)
  [4]=>
  int(131)
  [5]=>
  int(-91)
  [6]=>
  int(29)
  [7]=>
  int(-91)
}

This issue has been fixed as of version 3.7.0.

authors: gammalogic olivervogel tumur1

repo: Intervention/image


text:
Size::fitsInto does the opposite of what it should

The function Size::fitsInto actually does the exact opposite of what it should do which has some bump on effects on functions like Image::fit
It should be:
return ($this->width >= $size->width) && ($this->height >= $size->height);
Not:
return ($this->width <= $size->width) && ($this->height <= $size->height);
EDIT: Actually, it may have been designed that way but the comment reads like it should be the other way: "Checks if given size fits into current size". In any case, the reverse is actually what I was after for the Image::fit function

Yes you're right, the comment should be Checks if current size fits into given size.
$box = new Size(800, 600);
$fits = $box->fitsInto(new Size(100, 100));
$this->assertFalse($fits);

$box = new Size(800, 600);
$fits = $box->fitsInto(new Size(1000, 1000));
$this->assertTrue($fits);

authors: olivervogel tocsick


text:
🛑 verksted.mardahl.no is down

In 37596ea, verksted.mardahl.no (https://verksted.mardahl.no) was down:

HTTP code: 0
Response time: 0 ms

Resolved: verksted.mardahl.no is back up in 92d29df after 48 minutes.

repo: Intus-AS/Types-status


text:
🛑 ppmprosjekt.no is down

In fbe7883, ppmprosjekt.no (https://ppmprosjekt.no) was down:

HTTP code: 0
Response time: 0 ms

Resolved: ppmprosjekt.no is back up in f7bfd5f after 23 minutes.


text:
🛑 ilfornaio.no is down

In 9ac69c1, ilfornaio.no (https://ilfornaio.no) was down:

HTTP code: 0
Response time: 0 ms

Resolved: ilfornaio.no is back up in 1eb4758 after 28 minutes.


text:
Move Group or multiple channel at once

please add this feature. and I think column 3  should be named a "Group" not "Title".
thanks.

Found a bug in Ctrl-I, otherwise you could use Ctrl-x, Ctrl-I to move a whole block of lines. Will fix it in next version.

Found a bug in Ctrl-I, otherwise you could use Ctrl-x, Ctrl-I to move a whole block of lines. Will fix it in next version.

great, thank you.

great, thank you.

bugfix released. Don't know if I can do this function as a button in UI, because with shortcuts you can bundle rows together. The Move up/down button cannot do this in an easy and logic way (?)

bugfix released. Don't know if I can do this function as a button in UI, because with shortcuts you can bundle rows together. The Move up/down button cannot do this in an easy and logic way (?)

authors: Isayso ewwink

repo: Isayso/PlaylistEditorTV


text:
wordsmith commit

Started looking at this and caught a few typos in your README.

typos on the README from non-native English committer.

repo: Islandora-CLAW/claw-docker


text:
Timeouts

Here is every possible timeout you might wanna set if you're running into weird errors with really really big files.  This won't change anything for existing installs, as all defaults are still the same.  But this way you can add them to your docker-compose.yml and play with them if you need it.
At born digital we've used this to get a couple of clients out of a bind with ingests of very large files.

Oh nice, thanks @nigelgbanks !  I have a follow up PR for this with an extra tomcat timeout I missed.
Also big thanks for getting rid of the extra reverse proxy layer!

repo: Islandora-Devops/isle-buildkit


text:
Error loading/viewing node pages (A valid cache entry key is required)

This error occurs when you try to load/view a node page. So:

after you add a new content node via the form and save (when it tries to show you what you just added)
when you click the title links in the /admin/content view.

In the browser you just see "The website encountered an unexpected error. Please try again later."
In the logs, the error is:
FastCGI sent in stderr: "PHP message: Uncaught PHP Exception InvalidArgumentException: "A valid cache entry key is required. Use getAll() to get all table data." at /var/www/drupal/web/core/modules/views/src/ViewsData.php line 140" while reading response header from upstream

Someone also asked about this on the Islandora-ISLE listserv back in August.
I first asked about this yesterday evening in Slack. This report was based on trying to view content nodes created after a bit of mucking around with a new content type that used a new storage entity type[^muck].
When I got the error I assumed my mucking around had messed something up.
I tried creating a new Basic page node and a new Article node and they also could not be viewed, but I still assumed I'd messed something up by installing some contrib modules.
HOWEVER, I got the same error this morning after doing the following[^using]:

made sure nothing from yesterday was still running in docker
docker image prune -a
make clean
cp sample.env .env
in .env, changed TAG to 1.0.0-alpha-10 (latest release, as per Nigel's test on PR204
make local

Once the site was up, without changing anything, I created a Basic page node and got the same error.
Not sure if relevant, but in /admin/reports/status I see:
Errors found
Configuration sync directory
The directory /var/www/drupal/config/sync does not exist.
Trusted Host Settings
Not enabled
The trusted_host_patterns setting is not configured in settings.php. This can lead to security vulnerabilities. It is highly recommended that you configure this. See Protecting against HTTP HOST Header attacks for more information.

Warnings found
Drupal core update status
No update data available
No update information available. Run cron or check manually.
Media
It is potentially insecure to display oEmbed content in a frame that is served from the same domain as your main Drupal site, as this may allow execution of third-party code. You can specify a different domain for serving oEmbed content here.
Search API
The default Drupal core Search module is still enabled. If you are using Search API, you probably want to uninstall the Search module for performance reasons. For more information see the Search API handbook.

[^muck]:
Details of my mucking around, though I don't think they are relevant:
I used commit f8f6bca4293b9a3a02a1840312e3b739060c9c85 (HEAD -> development, origin/development, origin/HEAD)

I ran `make local` without any edits to .env or adding a codebase directory

Before attempting to create any content, I installed and enabled the following modules:

- drupal/admin_toolbar
- [drupal/storage](https://www.drupal.org/project/storage)
- drupal/inline_entity_form

I then:

- created a test storage entity type (via storage module) containing 2 fields
- created a new content type that included an entity reference field with my test storage entity type as the target
- set up my content type form to use inline_entity_form for the entity reference to the storage entity type field
- set up display of the storage entity type and my content type

THEN I tried creating content and got the error.

[^using]:
commit f8f6bca4293b9a3a02a1840312e3b739060c9c85 (HEAD -> development, origin/development, origin/HEAD)

WOW, this one was tricky to automate a fix. :smiley: Also found a simple way to trigger the error as a simplified way to test fixes. Just run drush cron should trigger the error every time until the fix is applied. The PR is a working solution. I'd call it a band-aid for now.

Reviewing the build process log and I see a couple of things that needed attention. Most significantly is the Flysystem module isn't installed via the database import like it does for the make demo process.

RE: Flysystem: this has been an issue with make local for a while. There's a separate issue for it still open: #136

The make local command has been replaced by documentation.
$ make local
make local has been removed. To create a demo site, please follow the instructions at https://islandora.github.io/documentation/installation/docker-local/

authors: DonRichards joecorall kspurgin

repo: Islandora-Devops/isle-dc


text:
bar volume

Would it be possible to add a bar for volume ?

Perfect :)

repo: ItsOnlyBinary/kiwiirc-plugin-radio


text:
fixed the type inconsistent with document.

Document says probs will have CV_64F type. But in effect, it has CV_32F type.
see document: http://docs.opencv.org/3.0.0/d1/dfb/classcv_1_1ml_1_1EM.html#a2ea7da92a75bc7a7d665c241f547b9b9.

@tianzhi0549, thanks for the PR! Well, I would actually prefer the documentation to be corrected in this case, not the code

@vpisarev Yes, correcting document is better in most case. But I found that probs has CV_64F type in opencv 2.x(https://github.com/tianzhi0549/opencv/blob/2.4/modules/ml/src/em.cpp#L143).
I think opencv3.x should be consistent with opencv2.x in this way, so I make this PR.  Thank you for your reply:-).

@tianzhi0549, you are right! ok, let's put it in then! :+1:

repo: Itseez/opencv


text:
Repository is missing LICENSE file

The root directory of the project should include a LICENSE file to make it clear what open source license opencv_contrib uses.

PR added!

authors: StevenPuttemans nocnokneo


text:
a python script to build iOS framework with extra modules added

When updating the iOS project from opencv2.9 to 3.0 was stumped  with the non free folder containing SURF. The default recommendation described here didn't work for me and the build script from the OpenCV folder with modification to use extra modules crashed when launched. Have slightly modified the default build script in order to build an iOS OpenCV framework with OpenCV3.0 and some extra modules, in particular with xfeatures2d module that has replaced the old non free  folder.

@virt87 , please check the updated variant of build_framework.py script: Itseez/opencv#5654
It should gather all modules into one framework.


text:
How to format currency and symbol of money?

Dear BlazorTable is greate components. First i thank you very much
Please help me how to format currency number and how to remove or chanage symbol  of money?
Thank you for help me.

Hey,
There are two options, the column has a Format Parameter. Additionally, you can override the Template do what ever you want with the object,
String Format Options
<Table TableItem="PersonData" Items="data" PageSize="15">
    <Column TableItem="PersonData" Title="Price" Field="@(x => x.price)" Sortable="true" Filterable="true" Width="10%" Format="C" Align="Align.Right" />
    <Column TableItem="PersonData" Title="Price" Field="@(x => x.price)" Sortable="true" Filterable="true" Width="20%">
        <Template>
            @context.price.ToString("D")
        </Template>
    </Column>
    <Pager ShowPageNumber="true" ShowTotalCount="true" />
</Table>

Thank you a lot i can do now. My country use format: Format="N"

authors: IvanJosipovic citsole

repo: IvanJosipovic/BlazorTable


text:
Support xml functions

Include following commits of IvorySQL-Pro:
commit 42bd80713e611f776baa2f4150171d0ffba2bccc (origin/zzhashe_xml_functions)
contrib/ivorysql_ora/src/xml_functions/ora_xml_functions.c
Author: zhaoshengbin zhaoshengbin@highgo.com
Date:   Fri Jan 12 12:33:00 2024 +0800
Fix BUG#M0000280 for ora_xml_functions regression test

commit cb7e6ab5cbbc70aa5628fc960b153244d6c9bc72
contrib/ivorysql_ora/expected/ora_xml_functions.out
contrib/ivorysql_ora/sql/ora_xml_functions.sql
contrib/ivorysql_ora/src/xml_functions/ora_xml_functions.c
Author: shengbin Zhao zhaoshengbin@highgo.com
Date:   Wed Feb 1 14:28:58 2023 +0800
Add regression test cases

commit 748a8831b8befb797cf361491bb35d240c44d1f9
contrib/ivorysql_ora/src/xml_functions/ora_xml_functions.c
Author: shengbin Zhao zhaoshengbin@highgo.com
Date:   Mon Jan 30 15:31:47 2023 +0800
Fix BUG#Z214 BUG#Z215 for compatible Oracle XML functions

commit 30240d0ceb2678fd580b3c2d768ddbbd145e021f
contrib/ivorysql_ora/expected/ora_xml_functions.out
contrib/ivorysql_ora/sql/ora_xml_functions.sql
contrib/ivorysql_ora/src/xml_functions/ora_xml_functions.c
Author: shengbin Zhao zhaoshengbin@highgo.com
Date:   Fri Dec 30 13:22:09 2022 +0800
Fix BUG#Z201 BUG#Z202 BUG#Z203 BUG#204 BUG#Z205 for compatible Oracle XML functions

commit 95b6cc3e4c350c7550a601bebe494da579b83825
Author: shengbin Zhao zhaoshengbin@highgo.com
Date:   Wed Nov 16 09:47:01 2022 +0800
Compatible with Oracle XML functions

Another PR will replace this one to include some bug fix.

repo: IvorySQL/IvorySQL


text:
Graphs empty for different datasource expect single stat panel.

I am using multi datasource to create dashboard for different panels where Panels are empty if i use other than grafana as datasource . But to my surprise i see it work for single stat panel alone.
Any thoughts on this ?
Note : It is also empty if i tried testing via direct renderer image.
Updated the actual issue after my findings..

Graphs are empty for non native graph panels..Any idea on this ?

Note : It is also empty if i tried testing via direct renderer image.
Graphs are empty for non native grafana panels..Any idea on this ?

This is typical yes. Non-native panels need to correctly support the Grafana GUI feature "Share Direct Rendered Image", since that is what the reporter relies on render.
I suggest you ask this question on the Grafana project, or the specific panel's project.

authors: IzakMarais Optimusbumble

repo: IzakMarais/reporter


text:
Can not send  direct message

I wrote this code:

and give this error:
{"errors":[{"code":32,"message":"Could not authenticate you."}]}
My permissions: Read, write, and direct messages
Also i have this error on TwitterAPIExchange class:
PHP Warning:  rawurlencode() expects parameter 1 to be string, array given in .../TwitterAPIExchange.php on line 325
What am i do?

Same issue (PHP Warning: rawurlencode() expects parameter 1 to be string, array given). It doesn't work for arrays of arrays as post_field (in Postman you need to send the array as plan text(raw) body), if I do the same via this class, the signature broken and the error is {"errors":[{"code":32,"message":"Could not authenticate you."}]}

authors: Schiocco ZarchiMohammad


text:
Layout options

Add layouts options to :

init filter
init chart
add some help text

Split with 1 ticket per request

repo: JGrndn/cwLayoutCustomQuery


text:
UI not translated: QueueModeNext / QueueModeInstant

These texts seem to be not properly translated. Whatever I changed language, they remained the same.

Tested on the demo world: https://vrchat.com/home/world/wrld_7239d09c-7b25-43a5-8ccd-502d986b016a

Hello! It seems the problem is the player unable to find the newly added texts, as these texts are added in 1.0.10, did you changed or copied the language text to elsewhere before updating to latest version?

No, I did not modify the string; it occurred on your world.
Installing the latest VPM package into a new project did not produce the issue.
I tried to reproduce the issue on my world, but I couldn't.

Oh I see! I thought you are talking about problem occurred when you try importing it to your world.
It's fine, just a minor issue that I will fix it later.
But it does not related the asset provided on this repository, so I'll close this issue.
Thanks for informing me about this anyway.

authors: JLChnToZ camegone

repo: JLChnToZ/VVMW


text:
Noname site is up but the status in ransomware.live is down

http://noname2j6zkgnt7ftxsjju5tfd3s45s4i3egq5bqtl72kgum4ldc6qyd.onion/

Sorry I'm not sure to understand what you mean

it is recognized as up :

authors: ErezDasa JMousqueton

license: Unlicense