[Speculative bug] Package.DownloadCount is going to eventually overflow

Describe the bug
We were admiring Json.NET's almost 1 billion download count today. I was curious about the data type used to store this value in the gallery. It looks like Package.DownloadCount is a int32 value and will eventually overflow to negative values. Might be prudent to update that property and everything that touches it to use a 64-bit integer.

Newtonsoft.Json is getting 74 million downloads every 6 weeks. If it stays constant, in about 80 weeks it will break Int32.MaxValue (2.1 billion)

Thanks for reporting this! It looks like a few areas are affected:
https://github.com/NuGet/NuGetGallery/blob/be38792c3d3d327765113a32d82cd5b9b68cd1b0/src/NuGet.Services.Entities/Package.cs#L60
https://github.com/NuGet/NuGetGallery/blob/be38792c3d3d327765113a32d82cd5b9b68cd1b0/src/NuGet.Services.Entities/PackageRegistration.cs#L26
https://github.com/NuGet/NuGet.Jobs/blob/376ac06e6e07d4ee8d1e28f6b2346e3891487496/src/Stats.Warehouse/Tables/dbo.Fact_Download.sql#L12

I think it is important to test what happens to clients. There will likely be some older clients out there that are no longer updated. What happens when they get int32.maxvalue+1?

Thanks @pranavkm and @JamesNK for bringing this to our attention.
We've been loosely following the numbers and have fixed some problems in this area already. For example it's possible that our front page total download count stopped updating one time suspiciously close to int.MaxValue several years back 🙄. But a full analysis should be done since this will be the first time a single package exceeds int.MaxValue.
I think overflowing to negative is a better case than, you know, VS UI crashing 😨. We need to dig through server and client side.
Thanks @loic-sharma for the initial analysis!

Just a suggestion, maybe manually move the download count down as it's moving up until you know everything is fixed. or have it as a backup plan on D-Day.

Not sure if this is the right place to report a VS UI bug, but the display label for download counts seems to follow the file size convention (K for kilobyte, M for megabyte, G for gigabyte) instead of the normal English convention (K for thousand, M for million, B for billion).
See here, I'd expect it to say "1.1B downloads" for Newtsonsoft.Json instead of "1.1G downloads":

This was from VS2019 Enterprise 16.10.2, though it seems to be present in VS2022 Preview 1 as well (17.0.0 Preview 1.0).

G is correct https://en.wikipedia.org/wiki/1,000,000,000

The "G" is a metric prefix:

A metric prefix is a unit prefix that precedes a basic unit of measure to indicate a multiple or submultiple of the unit.

Strictly speaking, prefixes are added to basic units of measure. While some parts of the world seem to use them standalone, I wouldn't consider this universal by any means: I've never seen "2 billion" written as "2G", only ever as "2B". Likewise I've never seen "$2G", etc.

Microsoft.Extensions.Primitives was the first package to exceed Int32.MaxValue and things are working well.

(source)
Kudos to @ryuyu for rolling out the necessary changes. NuGet should be totally compatible with download counts exceeding Int32.MaxValue (2,147,483,647) at this point.
If you run into any problems, please open an issue on NuGet/NuGetGallery if it is a NuGet.org problem or NuGet/Home if it is a NuGet client tooling (VS, nuget.exe, .NET CLI) problem. IIRC some very old versions of NuGet client may have issues, so please reproduce any issue found on recent tooling versions.

It only took 71 weeks 😃

The download count has been stuck on<PHONE_NUMBER> for an hour now, though I do not know how often it updates.

Curiously, while this is not int32 MaxValue, it's suspiciously identical to the value of a bug I have just reported With Azure DevOps where artifact feeds are failing to consume upstream feeds (in this case NuGet).
{"$id":"1","innerException":null,"message":"Failed to retrieve data from the upstream package source 'https://api.nuget.org/v3/index.json': JSON integer<PHONE_NUMBER> is too large or small for an Int32. Path 'data[0].totalDownloads', line 1, position 827.","typeName":"Microsoft.VisualStudio.Services.Packaging.ServiceShared.Upstream.PublicUpstreamFailureException, Microsoft.VisualStudio.Services.Packaging.ServiceShared","typeKey":"PublicUpstreamFailureException","errorCode":0,"eventId":3000}
https://developercommunity.visualstudio.com/t/Azure-Artefacts-feeds-no-longer-working/10121986?space=21&entry=problem&sort=newest


Updated user white list for announcements script

Fixes #333

Soon, we should look to have a better way of doing this. Sorry about this tech debt.


[hotfix] Prevent sending empty digest notification emails

Prevent sending empty digest notification emails.

Ping @sloria for update.

I would like to understand why it is possible to get empty messages before moving forward. @samanehsan Can you investigate?

The blank email has been cc'd to @sloria .
Other possibly useful notes:
I haven't gotten any more like it since, and I'm not sure anyone else has ever reported one either. (I originally assumed this would fall into the "gee look at that" category barring a repeat) Also checked my spam folders.
I don't recall having done much on the OSF in the few days before this email went out,
I'm not clear which server this email originated from. But it occurred the day after some changes were made to auto-running tasks.


Cannot read property 'radius' of undefined

We have issue of Flow map visual in Power BI Desktop reported by one of users. Issue is reproduced when opening specific users report. User didn't share this report, so you can check only stack trace to find the reason of issue:
TypeError: Cannot read property 'radius' of undefined at t._weightedJointNode (<anonymous>:17:7055) at t._generateJointNode (<anonymous>:17:6931) at t._build (<anonymous>:17:5262) at new t (<anonymous>:17:3829) at Object.e [as layout] (<anonymous>:16:21188) at e.reset (<anonymous>:17:14421) at t._update (<anonymous>:17:26406) at <anonymous>:17:24495 at d (<anonymous>:18:144) at t._geocodeDone (<anonymous>:18:169)
Probably this is issue of external components of the visual.

Thanks for the feedback! Not 100% sure, but I think I have located and fixed the problem in v1.1.4. I will submit it to the store shortly.


Support for 3rd party Konnect badges

Description
Make it possible to set konnect: true in a 3rd party plugin's metadata to have the "Konnect Compatible" badge show up on the Hub.
Testing instructions
Netlify link:
Checklist

[x] Review label added
[x] PR pointed to correct branch (main for immediate publishing, or a release branch: e.g. release/gateway-3.2, release/deck-1.17)

Tested this locally on a third-party plugin. Nothing to preview in this PR since no current 3rd party plugins have a konnect badge.


Package update for 5.0.0

My project, which is unable to update to version 6.0.0, is facing security vulnerability right now. Is there any plans to release 5.0.1 with dependency update?

Hey!

You can switch your project to ESM, which I recommend, although I understand you can’t do it now.
There is no vulnerability in 5.0.1. GitHub and npm are lying. See for example https://overreacted.io/npm-audit-broken-by-design/. I recommend ignoring it.
As it isn’t really a problem, I don’t see a reason to “fix” it


Fix for #88 ensuring that we have a new instance of logrus on each call to Log()

Coverage increased (+0.2%) to 73.923% when pulling 4234b1e7884d4469b5f3c6f56bec2daf84fe6a71 on fix-logger-instances into eeb293561dc1d14cc69e03a2012a9f1f2843914d on v1.x.


Last page delayed on HP LaserJet 2200

Hello,
i use a Raspberry Pi 3 with Cups as a printserver. When i print something, the last page is printed out after several minutes. How can I fix the problem?
Niclas

What driver are you using?
How is the printer connected?
What version of CUPS are you using?

I think I am using the latest version. I installed it today with apt-get install cups. The printer is connected with usb. I’m using following driver: „HP LaserJet 2200 - CUPS+Gutenprint v5.2.11 (schwarz-weiß, 2-seitiges Drucken)“

It is version 2.2.1
Thanks for your help!

With this driver it works: HP LaserJet 2200 pcl3, hpcups 3.16.11


how to install cuda driver in CBL

our azure vm is CBL, and the nvidia-smi command returns with error msg "NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running."
we have try "yum install cuda" and reboot, while still same error.
could anyone from the team help to give a guideline on it? thanks a lot!

@zhijxu-MS  Can you please follow the docs provided here


Unexpected indent error - Google Speech API restrictions?

When I started using the program, it worked as expected - but now I get an "IndentationError", which seems to make the whole thing loop.

How do I solve this?
Could this be due to restrictions in the amount of data I can send through Google Speech Recognition?

Here is a screenshot:

All the best,

That error is because you modified the file.
Go back down.
Python is very sensitive to spaces or tabs.

 Thank you!

I guess I messed something up by mistake

The moment I replaced "autosub_app.py" with the version I downloaded originally, it worked exactly like it was supposed to.


Added rosdep keys for libflann1.8 for ubuntu trusty, vivid, wily, xenial

lgtm
for the record: http://packages.ubuntu.com/xenial/libflann-dev


BibIndex: TermCollector empty authority id fix

Fixes exception on _get_phrases_for_tokenizing when it tries to index
an authority tag which is empty.

Signed-off-by: Esteban J. G. Gabancho<EMAIL_ADDRESS>

Running on CDS

Can you rebase, amend copyright year, add Reviewed-by: me, and then :shipit:?

Thanks, merged as e6be8116a890ccda41580d3df4b3d5d4826525f8.


bump draft box down rather than ellipsify form title

i sort of feel like we should always be able to see the entire form title. should be able to use floats to do this. not urgent.

I initially thought I understood what this change would entail, but now I feel less sure. This is what a long form title looks like today:
If there is a form draft:

If there isn't a form draft:

What would be different after this change? The draft tabs are in line with the other form tabs, so would moving the draft box down entail moving down both sets of tabs? I've also implemented this using Bootstrap grid classes, so I'm not totally sure I'll be able to use floats here as it's set up today.

yeah, i think that would be the idea. if the title text is too long the whole production moves down to give it some extra room. i'll try to think of alternatives though.

With the changes coming in v2024.2, this issue should no longer come up. I'll go ahead and close.


Design/Frontend (webapp demo)

Design/Frontend
-- Frontend
--- if we have time, we can make a webapp demo. I am currently looking into that, doesn't have the highest priority right now
-- Design
--- this is a less-coding task but by far the most important one - designing our cool poster!
--- lots of minecraft references and "project showcase"/selling, this is a super important task and I think we should allocate 1-2 weeks to that
--- i think 1-2 person should be on it to design the poster, the rest of the group for feedback

see basic implementation in PR #7


How to contribute?

Hi @CDonnerer,
Thanks for a great package!
I am bit in doubt about how to contribute to your package; I have e.g. never used tox before.
As such, I couldn't get the tests to pass when I tried in my own fork.
Also, I am personally more used to Poetry, but that shouldn't be too much of an issue.
However, I needed a bit more functionality in your package, so I have added a few things:

First of all I have renamed params to transformed_params to make it more clear where the parameters are transformed and where they are not. I have also added the helper function predict_transformed_params which predict now depends on.

I also needed quantile predictions a bit more easily accessible. As such, I have included the function predict_quantiles  and added the function predict_quantiles to all of the distributions (and the base). See eg. here for NegativeBinimial.

While adding the above, I also added access to XGBoost's own cross-validation method cv.

All tests pass, however, I should probably also add few tests of my own (in addition to the added cv example).
Please, let me know how you prefer contributions so that I add the above changed :)

Hi,
Unfortunately, at the moment I do not have guidelines for contributions. This may change in the future, but right now the best way is to raise issues for feature requests / bug fixes.
In terms of the above:

What is the usecase for exposing the raw parameters? You could already do this by accessing the underlying booster object.
For the quantiles & cv methods, in general this package tries to closely follow the scikit-learn xgboost API, which makes those fit less well. I'd argue that quantiles should belong in your application code, as the distribution you get is already fully specified, so you can derive any quantities you want from it. On the cv side, it'd be good to know if this is offers benefits over the "regular" scikit learn framework.

Well, it was also just a proposal in case you wanted more external contributors.

Well, the main reason is just to make it easier for users to check them in case they wanted. Also, this leads to more code reuse, at least if one also uses the quantile-functions.

2a. Personally, I do not see an issue adding additional functions, as long as the scikit-learn API is otherwise followed. Being able to predict quantiles was one of the things about XGBoostLSS that I really liked and thought that your package was missing. Currently, to get quantiles, one has to know about the specific likelihood distribution and manually implement the scipy stats code. I believe that adding this to the package greatly improve the user experience.
2b. Regarding the cv-part, I needed more advanced hyperparameter optimization strategies than the simple ones that Scikit-Learn allows (Grid search and Random search), in particular I prefer Bayesian Optimization. Using this, the cv-method from XGBoost is really helpfull and allows using custom objective and metric functions, missing and categorical data, weights and base margins, and so on.


elastic touchup

retest this please

retest this please

retest this please

retest this please

retest this please

retest this please

retest this please


Deployments node should show deployments even if configured to "None"

None of these were done via Local Git, but they still show up after I switch to Local Git:

Which means we should be able to show deployments even if it's set to "None". "Redeploy" might not be super helpful since the message for each deployment is the same, but users can still at least view the logs

Actually redeploy doesn't even work for zip deploys according to @nturinski, but I still think the logs are helpful

You get an error that says Repository could not be found when you try to redeploy a zip deploy.  Is it worth changing that error message to something more descriptive? (It does make sense now that I know the context of it)


www. and plain are both up / neither redirects

www.wgbhstocksales.org and plain wgbhstocksales.org are both up; neither redirects. This is bad: whatever page rank we have is being split across two sites.

@mccalluc after some recent reading (1, 2, 3), I'm not convinced that using CNAME will affect page rank. It sounds like search engines are smart enough to recognize the common setup of CNAMEs and won't penalize you. Maybe I'm not understanding page rank sufficiently?
In any event, it looks like we also have wgbhstocksales.com, which probably should be 301'd to wgbhstocksales.org, but is currently not. So for maintainability, it may be easiest to use 301's for everything.
This logic could live in an apache config, and be the responsibility of deployment code to impelement.
Or we could make the Rails app "aware" of it's domain variants, and do redirect there. This would probably add a little extra lag to the redirect, but it would probably be easier to maintain in the long run.
thoughts?


Implement_Slider#91

Got the ui to optimum visuals but im having issues with functionality:{making the thumb move with the value}- would appreciate any help i can get

Hey @Strange-Philip can you please attach the screenshot or gif of working output?

here ...


Redirect of HTTPS really necessary?

Please follow the issue template below. Failure to do so will result in a delay in answering your question.
Library

[X]<EMAIL_ADDRESS>or<EMAIL_ADDRESS>[ ]<EMAIL_ADDRESS>[ ]<EMAIL_ADDRESS>[X]<EMAIL_ADDRESS>[ ]<EMAIL_ADDRESS>
Description
We are trying to move from ADAL to MSAL. But where ADAL accepted for http as redirect for our development environment, MSAL seems not. A https redirect is required, even tough it is an existing Azure AD application. Do we really have to buy certificates to get MSAL to work? Or is there some possibility to keep using the current application redirect urls?
Examples:

"How do I use MSAL with Vue.js"
"How do I SSO between tabs?"
"How do I use MSAL to protect my custom Web API?"
"How can my app support multiple AAD tenants?"
"When will my scenario be supported?"
"When will this framework be supported"

Yes, msal js requires redirectUri to begin with https, except for http://localhost case. This is mandated by app registrations in the portal for security. We're sorry for the inconvenience.


fix missing comma upon sql migration query

while running latest deployment I'm getting the following syntax error for mysql db:
Migration "AddUpsertHistoryEntity1709814301358" failed, error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'KEY IDX_a0b59fd66f6e48d2b198123cb6 (chatflowid)) ENGINE=InnoD' at line 8
There was missing comma which fixed that,
@HenryHengZJ please review

thanks!


Training with Quantization Noise for Extreme Model Compression - Vision Results

When there will be available to reproduce vision results in paper?

The vision experiments from that paper were done in ClassyVision (see Section 8.1). I'm not aware of any immediate plans to reimplement those experiments in fairseq.

Where exactly are these experiments? Can't find section 8.1 under ClassyVision.


JWT helper scripts and docs & fix unittests

This hopefully clears up the bad documentation and unclear way how to use and create JWT tokens.
It includes two helper scripts to regenerate the JWT key pair and to create & sign valid JWT tokens from JSON snippets. It improves JWT related logging and loading of public key in the server code
Dependencies: I am not sure if relevant, but the certificates/jwt/createToken.py imports "jwt" for token creation. Any version is fine and released 1.7.1 here https://github.com/jpadilla/pyjwt/blob/1.7.1/LICENSE is MIT. Definitely only "works-with", as it is only in the convenience script, not in kuksa.val source
Might also close https://github.com/eclipse/kuksa.invehicle/issues/116
Because some changes needed to be done in unit tests, I repaired them by removing bogus tests that didn't make sense and repaired the remaining failing ones.
@rohoet Any more information needed?

And it builds https://kuksaval.northeurope.cloudapp.azure.com/job/kuksaval-upstream/view/change-requests/job/PR-9/


Fixes credentials dialog isn't modal

Fixes #2871

@MikhailArkhipov does this look good. I will merge if there are no more comments.

👍


Provide a way to clear the progress bar used by ProgressIterator.

Currently, ProgressIterator provides methods that allow wrapping of an Iterator with a new ProgressBarIter. There is a method allowing for use of a custom ProgressBar, which allows for custom formatting, etc., but there is no way to specify whether the ProgressBar should be cleared when the iterator has been consumed. This forces the user to use a more awkward approach, keeping track of the ProgressBar separately and manually updating it inside the iterator.
This seems related to #6.

Given that ProgressBars can be cloned to gain handles to a particular ProgressBar and since the finalization style for progress bars can be customized, I think this scenario can now be supported. Please feel free to reopen if you think there's still something to improve here.


got triggers data but not values from any items

I'm submitting a ...

[ ] Bug report
[ ] Feature requestdd
[X] Question / Support request

Hello,
I have a lot of host groups configured on zabbix and never got a problem with them, but with just one, I am not able to gather any data from the metric items, only the triggers panel works.
The data are present on zabbix and I did not receive any error from grafana plugin.
Anyone got this issue before ?
thanks,
Fausto

check permissions for the zabbix user set in data source config


Unable to add Application Insights to .NET Core 3 Web App running on Linux from the Resource Manager

When creating a Web App in the Azure Portal, I selected the .NET Core 3 runtime and Linux for the OS.  When I move to the monitoring tab, I am told that Application Insights is not available for my configuration.  You can see screenshots of my issue at: https://stackoverflow.com/questions/59269801/can-application-insights-be-used-with-a-linux-web-app-running-net-core-3-runtim

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

ID: 4b88d8c4-0013-70aa-7997-a2203afd9743
Version Independent ID: 0ab99d5e-4ebd-8cb9-3d27-efe58def249f
Content: Azure Application Insights for ASP.NET Core applications
Content Source: articles/azure-monitor/app/asp-net-core.md
Service: azure-monitor
Sub-service: application-insights
GitHub Login: @mrbullwinkle
Microsoft Alias: mbullwin

@jshinevar thank you for your feedback. I will investigate and get back with you shortly.

@jshinevar the second answer to your Stack question is correct. This is also discussed in #18051. We don't currently support codeless monitoring on Linux for App Services. You need to add the nuget package as described in this doc. Only one of the two options need to be enabled (code or code-less) for App Insights to work.


Remove GetDbTransaction method

Can get it off the returned RelationalTransaction when needed. See Issue #2494

:shipit:


Warn that you can't use the usual approach to cast a Set as an Array in loose mode

I think this point in the loose mode caveats should made more thoroughly:

es6.destructuring
All iterable destructuring are assumed to be arrays.

I think it's worth pointing out explicitly that destructuring Sets will not work, so the very common case of [...mySet] for casting a Set as an Array will not work.
For example, all of the classic Set operations recommended by Axel Rauschmayer fail in loose mode (and you don't even get an error, you just get weird results).
It would be good to recommend an alternative way to turn a Set into an Array. I've been using [for (x of mySet) x], but that's only available in experimental mode, and produces a lot of code... is there a better way we could recommend?

The note is pretty explicit. Why do you think there needs to be a separate not for Sets when it says that it assumes the values are only arrays?

I guess it's subjective, but I don't find it very explicit on first reading.
I don't think destructuring/spreading iterables is really an 'edgecase', it's a widely lauded feature of ES6, so these are arguably the most important loose mode caveats to know about. But they're easy to miss among all the other, more obscure caveats that are given detailed explanations and code samples.


Fix some typos, add dev container, faux streaming

Problem
Minor issues I noticed.
Solution
Fixed some typos, added a dev container for those that use it (harmless for others), and made the --no-stream option affect the faux streaming in the cli.
Type of Change

[x] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] This change requires a documentation update
[ ] Infrastructure change (CI configs, etc)
[ ] Non-code change (docs, etc)
[ ] None of the above: (explain here)

Test Plan
I ran the unit test, no problems.

It looks like a system problem we are looking into it 👍


[Bug]: If I use withDebug, the query passes.

TLS client version
v1.6.1
System information
win 10
Issue description
If I use withDebug, my request goes through. if I do without it, my request gets an error from cloudflare. I don't understand why this is happening)
Steps to reproduce / Code Sample
my options
options = []tls_client.HttpClientOption{
		tls_client.WithTimeoutSeconds(45),
		tls_client.WithClientProfile(profiles.Chrome_117),
		tls_client.WithRandomTLSExtensionOrder(),
		tls_client.WithDebug(),
		tls_client.WithProxyUrl(proxy),
}

response without Debug:

<title>400 Bad Request</title>

400 Bad Request

cloudflare

response with Debug (I replaced the personal information):
request body payload: {"examplepayload"}
raw request bytes sent over wire: 1746 (1 kb)
headers on request:
map[Header-Order::[example headers]
cookies on request:
[]
headers on response:
map[example headers]
cookies on response:
[example cookies]
requested example url : status 201
response body payload: {"succes example respinse"}
raw response bytes received over wire: 543 (0 kb)
request body payload:
request body payload:
request body payload:
request body payload:
request body payload:
request body payload:
request body payload:
request body payload:
request body payload:
request body payload:
request body payload:
request body payload:
request body payload:
request body payload:
request body payload:
request body payload:
request body payload:
request body payload:
request body payload:
net/http: HTTP/1.x transport connection broken: http: ContentLength=62 with Body length 0

@vodves-vodves can you please provide additional information on which site you are requesting and how you assemble your request (header, body, method, etc.)

@vodves-vodves can you please provide additional information on which site you are requesting and how you assemble your request (header, body, method, etc.)

I can send it all to you on Telegram. I don't want it to be here in the public domain) Give me your Telegram if you can

@vodves-vodves can you please provide additional information on which site you are requesting and how you assemble your request (header, body, method, etc.)
send you in tg


SQL Server Connection Issue

Issue Type: Performance Issue
I am trying to connect to a SQL server using Azure Data Studio on a MacBook.  The MacBook is a 2020 Intel MacBook Pro with Ventura 13.1.  I configured the connection with the proper server name, which I can ping from the MacBook, Authentication Type is set to Windows Authentication and Trust Server Certificate is set to True.  When I attempt to connect, I get this error:
Connection Error
Connection failed due to Kerberos error.
Help configuring Kerberos is available at https://aka.ms/sqlopskerberos
If you have previously connected you may need to re-run kinit.
I haver a valid Kerberos ticket in Ticket Viewer on the MacBook and have tried running kinit.
Could you please tell me what I need to resolve this?  Thank you.
Azure Data Studio version: azuredatastudio 1.43.0 (Universal) (b790d700898b1095d83e62f0de14678a58222520, 2023-04-10T23:12:47.777Z)
OS version: Darwin x64 22.2.0
Restricted Mode: No
Preview Features: Enabled

System Info

Item
Value

CPUs
Intel(R) Core(TM) i5-1038NG7 CPU @ 2.00GHz (8 x 2000)

GPU Status
2d_canvas: enabledcanvas_oop_rasterization: disabled_offdirect_rendering_display_compositor: disabled_off_okgpu_compositing: enabledmetal: disabled_offmultiple_raster_threads: enabled_onopengl: enabled_onrasterization: enabledraw_draw: disabled_off_okskia_renderer: enabled_onvideo_decode: enabledvideo_encode: enabledvulkan: disabled_offwebgl: enabledwebgl2: enabledwebgpu: disabled_off

Load (avg)
4, 3, 3

Memory (System)
16.00GB (0.45GB free)

Process Argv

Screen Reader
no

VM
0%

Process Info
CPU %	Mem MB	   PID	Process
   19	    98	  6035	azuredatastudio main
    4	    33	  6036	   gpu-process
    0	     0	  6040	   utility-network-service
    1	    82	  6109	   shared-process
    0	    16	  6114	     ptyHost
    0	    49	 25335	     fileWatcher
    2	     0	 25366	     /bin/ps -ax -o pid=,ppid=,pcpu=,pmem=,command=
    0	   229	 25333	   window (Welcome)
    0	   131	 25334	   extensionHost
    0	    66	 25341	     /private/var/folders/d8/5h2kfwmd545cxrfs588l1r8m0000gn/T/AppTranslocation/95741833-2F25-42F2-BDE0-4B52894F5D31/d/Azure Data Studio.app/Contents/Resources/app/extensions/mssql/sqltoolsservice/OSX/<IP_ADDRESS>/MicrosoftSqlToolsServiceLayer --application-name azuredatastudio --data-path /Users/q735993/Library/Application Support --locale en --log-file /Users/q735993/Library/Application Support/azuredatastudio/logs/20230417T120323/exthost4/Microsoft.mssql/sqltools.log --tracing-level Critical --autoflush-log
    0	    33	 25343	     /private/var/folders/d8/5h2kfwmd545cxrfs588l1r8m0000gn/T/AppTranslocation/95741833-2F25-42F2-BDE0-4B52894F5D31/d/Azure Data Studio.app/Contents/Resources/app/extensions/mssql/sqltoolsservice/OSX/<IP_ADDRESS>/SqlToolsResourceProviderService --application-name azuredatastudio --data-path /Users/q735993/Library/Application Support --locale en --log-file /Users/q735993/Library/Application Support/azuredatastudio/logs/20230417T120323/exthost4/Microsoft.mssql/resourceprovider.log --tracing-level Critical --autoflush-log
    0	    33	 25344	     /private/var/folders/d8/5h2kfwmd545cxrfs588l1r8m0000gn/T/AppTranslocation/95741833-2F25-42F2-BDE0-4B52894F5D31/d/Azure Data Studio.app/Contents/Resources/app/extensions/mssql/sqltoolsservice/OSX/<IP_ADDRESS>/MicrosoftSqlToolsCredentials --application-name azuredatastudio --data-path /Users/q735993/Library/Application Support --locale en --log-file /Users/q735993/Library/Application Support/azuredatastudio/logs/20230417T120323/exthost4/Microsoft.mssql/credentialstore.log --tracing-level Critical --autoflush-log
    4	    66	 25360	   issue-reporter

Workspace Info
;

Extensions: none

Hi @prestonvk
When connecting with Kerberos, there are few things to note:

ADS will fetch the latest ticket (only) from the Kerberos Ticket cache
By default, ADS will use default TGT location, unless you override the location with KRB5CCNAME env variable
The ticket you create should be created for the user/email (with kinit <username> is logged in user is different.
Try running klist command on terminal to list the tickets available to verify the 'latest' ticket is valid one for the user who needs to be authenticated.

Hi @prestonvk
Checking in, do you have an update on this issue?

Closing as stale.


Use first-person in blog post highlight auto-summarize

When you use the auto-summarize tool, the description is currently in the third-person: "The author shares insights on how to...."
To create a quicker user experience, it would be nice if the description is in first person: "I share insights into how to ..."

This is a backend issue, https://github.com/open-sauced/api/blob/beta/src/blogs/issue-summary.service.ts#L10 these lines need to be changed. Whoever does this, renaming the files from issue-x to blog-x would also be helpful.

Hi @diivi,
can you confirm that these changes are fine.?
private generatePrompt(language: string, maxLength: number, tone: string) {
return [
I will generate a blog summary for a blog with the specifications mentioned below,
The summary should be written in ${tone} tone in the first person,
Summary language: ${language},
The summary will be a maximum of ${maxLength} characters.,
"Please exclude anything unnecessary, such as translation. My entire response will be used to summarize and analyze the blog.",
].join("\n");
}

I think the prompt should work fine if you just add the "first person" part. Trial and error will help here. Everything else that addresses the LLM is fine in second person.

@diivi can I proceed with the pr
private generatePrompt(language: string, maxLength: number, tone: string) {
return [
I will generate a blog summary for a blog with the specifications mentioned below.,
The summary should be written in the first person with a ${tone} tone.,
Summary language: ${language},
The summary will be a maximum of ${maxLength} characters.,
Please exclude anything unnecessary, such as translation. My entire response will be used to summarize and analyze the blog.,
].join("\n");
}


gradle version and support lib version update

Because it conflicts with constraint layout

@illuzor you can exclude specific dependencies of used libraries (you then just have to define them manually with the version you want)
http://stackoverflow.com/a/21765656/325479

but beside this. thank you for the PR.


modify DEVICE_LOG_BASE in insights.py doesn't work

I need test app on TV,but the device doesn't have sdcard slot，so I modify DEVICE_LOG_BASE = '/sdcard/io.appetizer/' to DEVICE_LOG_BASE = '/data/misc/konka/io.appetizer/',and chmod 777 io.appetizer.
after install the processed apk, it doesn't log into the dir, and continuously print D/io.appetizer: no permission, still save into memory on  logcat.
ps: I reset DEVICE_LOG_BASE = '/sdcard/io.appetizer/' and use U Disk it doesn't work either

/sdcard points to the root directory for the external storage, not necessary a physical sdcard. The instrumented/processed APK logs to /sdcard and then insights.py fetches from there. So changing insights.py alone will not help.
A few things to try:

use adb shell, check if /sdcard/ exists and is writable from the shell commandline. If yes, then the current processed APK should be able to use that folder for logging. If not, we need to find another folder that is writable from the app and readable from the shell commandline.
check if the app has been granted WRITE_EXTERNAL_STORAGE permission, in the Settings -> Apps -> <your_app> -> Permission. If /sdcard/ is fine and the permission is granted, then rerun the processed APK and the no permission line should be gone.
check for logcat log lines tagged with MAGICBOOK. Some example problematic information:

FileBackedLogger: external storage not available
FileBackedLogger: external storage not mounted writable
FileBackedLogger: app does not have WRITE_EXTERNAL_STORAGE permission
FileBackedLogger: app does not have READ_EXTERNAL_STORAGE permission
FileBackedLogger: sideload log dir exists but not dir
FileBackedLogger: failed to create sideload log dir

私有化部署Appetizer可定制这部分插桩细节
logging directory and other configurations specified to instrumentation is available for private deployment version of Appetizer


Text polishing

remove period in short description.
rename config init to config create

remove period in short description.
rename config init to config create


GUI incorrectly shows masternode state MISSING

Julien says

Since the burn, I have a bunch of MN showing missing status in the local wallet. Though they are all showing online on aegeus.mn.zone and I keep getting rewards for them.  Since I didn't change anything in the masternode file, and that both the wallet and the mn on vps are on 1.2 I am kinda lost here.. and I would like to avoid anything causing me to go through the two days "waiting" period

I also found that listmasternodes txhash is inconsistent on the VPS with what the local console shows. I assume that the GUI shows the return of a listmasternodes txhash.

out-of-date


Text in FlatList is not selectable on Android

Description
Bug previously opened here.
It was claimed to be fixed here but still reproduces on 0.75.4
Steps to reproduce
Try to select text in provided reproducer, it won't work for item in flat list. Note that sometimes it will work after a hot reload.
/**
 * Sample React Native App
 * https://github.com/facebook/react-native
 *
 * @format
 */

import React from 'react';
import {
  FlatList,
  SafeAreaView, StyleSheet,
  Text,
} from 'react-native';

function App(): React.JSX.Element {
  return (
    <SafeAreaView>
      <Text style={styles.text} selectable>I am selectable</Text>
      <FlatList data={[1]} renderItem={ListText}/>
    </SafeAreaView>
  );
}

const ListText = () => {
  return <Text style={styles.text} selectable>I am not selectable</Text>;
};

const styles = StyleSheet.create({
  text: {
    fontSize: 20,
    padding: 10,
  },
});

export default App;

React Native Version
0.75.4
Affected Platforms
Runtime - Android
Output of npx react-native info
info Fetching system and libraries information...
System:
  OS: macOS 15.0
  CPU: (12) arm64 Apple M3 Pro
  Memory: 206.94 MB / 36.00 GB
  Shell:
    version: "5.9"
    path: /bin/zsh
Binaries:
  Node:
    version: 20.9.0
    path: ~/.asdf/installs/nodejs/20.9.0/bin/node
  Yarn:
    version: 1.22.22
    path: /opt/homebrew/bin/yarn
  npm:
    version: 10.1.0
    path: ~/.asdf/plugins/nodejs/shims/npm
  Watchman:
    version: 2<IP_ADDRESS>
    path: /opt/homebrew/bin/watchman
Managers:
  CocoaPods:
    version: 1.14.3
    path: /Users/johanlndll/.gem/ruby/3.1.4/bin/pod
SDKs:
  iOS SDK:
    Platforms:
      - DriverKit 24.0
      - iOS 18.0
      - macOS 15.0
      - tvOS 18.0
      - visionOS 2.0
      - watchOS 11.0
  Android SDK: Not Found
IDEs:
  Android Studio: 2024.2 AI-242.21829.142.2421.12409432
  Xcode:
    version: 16.0/16A242d
    path: /usr/bin/xcodebuild
Languages:
  Java:
    version: 17.0.10
    path: /usr/bin/javac
  Ruby:
    version: 3.1.4
    path: /Users/johanlndll/.rubies/ruby-3.1.4/bin/ruby
npmPackages:
  "@react-native-community/cli": Not Found
  react:
    installed: 18.3.1
    wanted: 18.3.1
  react-native:
    installed: 0.75.4
    wanted: 0.75.4
  react-native-macos: Not Found
npmGlobalPackages:
  "*react-native*": Not Found
Android:
  hermesEnabled: true
  newArchEnabled: false
iOS:
  hermesEnabled: true
  newArchEnabled: false

Stacktrace or Logs
Does not crash.

Reproducer
https://github.com/LA-Johan/list-select
Screenshots and Videos
https://github.com/user-attachments/assets/480fb515-b207-4774-b5a2-78127afd9268

@fabOnReact Can you please re look in this issue. Fix provided by you here, somehow is not working in latest release for old and new arch both.

Hi, I'd like to work on this issue. Please assign it to me :)

@shubhamguptadream11  @fabOnReact  @MobinAkhter  I'm currently facing this issue on my company's application for React Native 0.72.0. Same exact situation, occurs only on android, doesn't function on first load but hot reloads fix it.
I'm new to React Native development, how long does it typically take an issue like this to be assigned? I'm surprised we have a volunteer above but no follow up.


Added chest dataloader

Fixes #36
Implemented chest Dataset with 5 Labels for now.

Changed the labels format for each observation task and added one demo notebook too.


Alarm, alarm!
S.O.S.

There is no such issue. I just verified on the latest version of Comfy. Post your Start-Up Log.

@Latentnaut Hi, issue has been fixed. It was not a comfy update. It was the ControlAltAI latest node update. Flux Region Spatial Control Code has been added to the Nodes. The Flux Attention Node requires Xformers for memory attention. The code was checking for xformers and giving error. Now it will only give a warning when using the flux attention node.

Awesome! Thank you for your quick action and long life to this fantastic pack!


Comments are removed from exported cells

@pete88b I was reading the diff wrong the other day. It looks like the recent changes with the magic command broke the following thing: when a cell as an export tag then a comment, the comment is removed. Example:
#export
# TODO: write this function
def func(x): pass

is exported in just
def func(x): pass

Got you. I'll change this ASAP

Fixed by #168


Build docker images for fixing CSI Plugin's node related access

Ⅰ. Describe what this PR does
Ⅱ. Does this pull request fix one issue?

fixes #XXXX
Ⅲ. List the added test cases (unit test/integration test) if any, please explain if no tests are needed.
Ⅳ. Describe how to verify it
Ⅴ. Special notes for reviews

/test fluid-e2e-nightly

/test fluid-e2e-nightly

/retest


Bundlerize

Get it building with bundler so we can do the normal ruby dance.
/cc @tenderlove

Nice!
Would love to have this using rake-compiler at some point too. Though I guess since I want it, I can take care of that ;)

Send me PR to my branch or something... or we can move the branch into this repo if someone gives me push access ;)


TypeError: undefined is not a function

First off, awesome package! Great work. It has been very helpful so far as I am transitioning to using npm scripts instead of Gulp/Grunt. I'm just running into one issue: when I run my npm run dev script, which uses npm-run-all I get a TypeError: undefined is not a function error, which is preventing my lint:watch script from running. I have done some debugging, and everything works as expected running npm run lint:watch by itself, or npm run dev without the lint:watch command...but I don't know how to debug it. Is this a  known issue with npm-run-all?
Related issue
I don't know if this is an issue with eslint-watch or npm-run-all, so I have posted the issue in both places. I do know that all of my other packages work as expected so something seems to be wrong with either eslint-watch or npm-run-all.
https://github.com/rizowski/eslint-watch/issues/28
Steps to reproduce:

Clone the project: https://github.com/trevordmiller/npm-run-all-example
npm install
npm run lint:watch runs as expected
npm run dev runs npm-run-all which works for everything except for lint:watch which is outputting TypeError: undefined is not a function

Thank you for the report!
I will dig this this evening (JST).

Sorry for my delay.
I published fixed version!

@mysticatea Awesome. Thank you!

@mysticatea Why if a variable is set do you set it to undefined instead of just leaving it alone?
For example, if we have these two scripts.
"cross-vars:echo": "cross-vars echo "Node Environment = $node_env \ NPM Production = $npm_config_production"",
"cross-env:echo": "cross-env echo "Node Environment = $node_env \ NPM Production = $npm_config_production"",
If NODE_ENV=production then both cross-env and cross-vars returns production.  But if NODE_ENV doesn't exist then that's where there is a difference.  With cross-env it just leaves it unset so there is no value in echo'd for node_env as we would expect. But with cross-vars it actually sets $NODE_ENV to "undefined".   Now imagine you were actually calling and angular build with a script like this...
"build": "cross-vars ng build --configuration=$node_env",
Instead of $node_env being literally undefined or set to nothing it's set to the actual string "undefined".    Which ng build is going to cause the ng build to fail because there is no such thing as an "undefined" environment.   Why don't you just leave the variable value alone if it's undefined?


Disclose ARKs in HTTP response headers

...or even the HTML headers. @hvdsomp might have two cents on this.

I am not sure what the question/issue is. But if this is about pointing from a landing page to the persistent identifier of the object described by that landing page, then there's the "cite-as" link relation type that was specifically defined for that purpose in RFC8574. The target of the link must be a URI, preferably an HTTP URI.

@hvdsomp It's something a little different. We have a PID (ARK) that is embedded in the body of a web page. The GH issue here is whether we should facilitate the web page effectively "announcing" its ARK via either HTML headers or HTTP response headers. This would be in a similar vein of a paper's landing page in a DL making its DOI machine-readable. Thoughts?

Yes, I agree that the term+definition pairs in yamz.net should disclose cite-as URIs in response headers.
What I'm unsure about is if it makes sense to have one cite-as URI for the term+definition in its current (frozen) state and another pseudo-cite-as URI for the term+definition in its latest (living) state. The latter is a common thing to want to reference. What's a good way to declare it?


Is it possible to do a word-by-word diffing?

Hi,
First I want to appreciate your effort of making this library. It fits our use case perfectly and we're considering using this library on our UI.
When trying it, we found something that is not quite straightforward in the real world paragraph comparison.
For example, in following cases, we are expecting word-by-word diffing instead of character-by-character:
I changed "some" to "same"

I changed from "I love accessibility" to "I have accountability"

TL;DR Word-by-word diffs are not currently supported - PRs welcome.
To be precise, the current diffs are not strictly char-by-char, as adjacent changes are coalesced using diff_cleanupSemantic, which should be appropriate in most cases.
While I'm not planning to implemented word-by-word diffs any time soon, I'd definitely welcome a PR that adds this as an option. I can think of 2 ways to achieve it:

Modify diffText to optionally skip diff_cleanupSemantic and call a different, new function, which would convert the char-by-char diff to a word-by-word diff. Unfortunately, diff-match-patch does not provide it.
Modify diffText to optionally generate word-by-word diffs using the technique described in Line or Word Diffs.

@gkubisa Thanks! I spent sometime looking into the references you listed. The #2 looks promising. The only concerns seems to be the inconsistent understanding towards "word" in a mixed language scenario. The word-to-char func is not in diff-match-patch by default as mentioned here.
However, I suppose this diff library will not require an absolute accurate word count especially when it's an optional. So one thing I could propose is use the way how word-count is counting the words and build our own word-to-char func that can be used to modify diffText to do word diff
I'm interested in raising a PR. Would like to hear your thoughts first, thanks!

Good point about the ambiguity of the "word" definition. Taking this into the account, I think a good approach could be to support a new option like textDiff(text1: string, text2: string): Diff[], which would default to diff_main from diff-match-patch. This way users would have full control over the diff algorithm, so that they could use their favourite word-diff implementation, case insensitive diff, or whatever else they want. I can implement that option myself soon, if it's going to work for you - just let me know.
Regarding the word-diff itself, given that the algorithm could be provided as an option (see above) and that it could be useful also without visual-dom-diff (for plain-text diffs), I think it might be best to implement it in a separate GitHub repo and publish it as a separate node module. Once ready, I could link to it from the visual-dom-diff's README.md. Does it sound good to you?
As for the details of the word-diff algorithm, IMHO it would be great to support all languages, for example by combining word-count with a regex for all letters in all languages. I'd be ok with some inaccuracies in word boundary detection.

Sounds great. As long as textDiff is an option, I believe we can already be unblocked by implementing our own diff logic.
A word-diff library is definitely useful. I'll definitely consider it after I experiment the solution in our product to get enough feedback given it's unclear whether the industrial needs can be aligned on the ambiguity of the "word" definition.

@ipip2005 the diffText option is available in version 0.7.0 and should provide enough flexibility to implement word-by-word diffs. Let me know, if you come across any issues.
PS. Since visual-dom-diff requires some very specific adjustments to what diff-match-patch produces by default (in order to improve the DOM diff quality), I think the best place for your "word" diff function might be in visual-dom-diff after all, assuming that you decide to open source it. Please open a PR, if you'd like to add that function.

Sure, I will try. Thanks for making the changes.
One question regarding the "very specific adjustments": are they specified to character diff or they are actually them same with word diff? If it's the later, is it possible to only make diff_main function optional instead the whole diff function that includes the adjustments?

First of all, just to be clear, by "very specific adjustments" I meant what this function does.

Are they specified to character diff or they are actually them same with word diff?

You will likely need the same, or similar, adjustments for the word-diff.

If it's the later, is it possible to only make diff_main function optional instead the whole diff function that includes the adjustments?

Initially I wanted to do exactly that - allow overriding of the diff_main function only and keep all the post-processing. When I started testing that though, it didn't work properly even with the simplest diff function, which simply reported that all old content was deleted and all new content was inserted. Then I realised that that post-processing would likely be broken in a similar way for word-diffs too. Additionally, it would limit the flexibility of the diffText option, as it would not give full control over the text diff. Based on all of the above, I decided that the most sensible and flexible approach was to let the diffText option override the entire plain-text diff function, including all pre and post-processing.

Thanks for the details. I think I've made some progress yesterday. It's kind of working in my test environment

And you're right the adjustments and clean-up should be modified in order to achieve word diffing. Just for example, diff_cleanupMerge and diff_cleanupSemantic will try to move the common string in the insertion and deletion to an equality nearby which breaks down word diffing. Actually I removed all the code of post-processing, and only used the raw diff as an output in order to get the results above.
I'm not sure if it has potential perf concerns, but I would treat as a good start point. My plan is dogfooding the customized word-diff in our product and gathering feedback, then I'll send a PR here. The time range for dogfooding should be 1-2 weeks. Please let me know if you have any concerns.

Looks good so far!
Make sure you also test adding and removing paragraphs, list items, table rows, table columns, etc - you might find that you need cleanUpNodeMarkers.
I have not seen the implementation, so maybe it won't be a problem, however, consider that node markers are represented as characters in the U+E000–U+F8FF range, see https://en.wikipedia.org/wiki/Private_Use_Areas.

Does anyone have a working example of this?

@ipip2005 Sorry to dig up an old thread, but how did you go with dogfooding your word-diff function? I'd be very interested if you could share a copy!


App not building when adding this package

Issue
FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':package_info_plus:compileDebugKotlin'.
> Compilation error. See log for more details

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at [https://help.gradle.org]()

BUILD FAILED in 14s
[!] Your project requires a newer version of the Kotlin Gradle plugin.
    Find the latest version on [https://kotlinlang.org/docs/gradle.html#plugin-and-versions](), then update [/Users/vansh/Development/Yellow]() Class[/yc_exp/android/build.gradle]():
    ext.kotlin_version = '<latest-version>'
Exception: Gradle task assembleDebug failed with exit code 1
Exited (sigterm)

Environment
Flutter 2.8.1 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 77d935af4d (4 months ago) • 2021-12-16 08:37:33 -0800
Engine • revision 890a5fca2e
Tools • Dart 2.15.1

This issue is occurring on the default counter app created by flutter create

The error you are mentioning is related to Kotlin, which this package does not even use.  Also, this package requires Flutter 2.10+ or you will have issues because of missing class properties that this packages makes use of.
I would suggest you upgrade your Gradle plugin to fix the issue you posted, but also upgrade Flutter to fix the one that would come next.


User online details with their current tasks details

Display current online users (active on dashboard.realdevsquad/online) and their assigned or currently active tasks
There will be two dashboard view, for users and for super user (admin )
User visits  the URL of dashboard and based on the current active users on the dashboard URL the admin dashboard lists all the current active users and view their tasks details
Super user dashboard

Show active users
Show their current active tasks details
Search for specific users tasks details
Rearrange users

User dashboard

Show users current tasks and personal goals
Set users personal goals
Provide users ability to share links from their dashboard (markdown editor)

[x] Get members and their tasks
[x] Get online members
[ ] Add messaging functionality for user-admin
[ ] Add drag and drop for rearranging members or tasks


On/Off

First of all: this is by far the best solution for artnet. You can easily bump the versiob to a major release. Its working like a charme for about 3/4 year on me.
For a simpler google home integration;
Is it possible to implement an ON/OFF datapoint?
Like:
ON: Last state
OFF: all Chanels 0

Thank you for your feedback!
I've implemented a switch:

I don't think upgrading adds this switch channel to existing devices and I have no idea how to implement an upgrade procedure.
So you probably have to read all devices.
Please tell me if this is working for you. Then I will move this repo to stable.

Thank you for your feedback!
I've implemented a switch:

I don't think upgrading adds this switch channel to existing devices and I have no idea how to implement an upgrade procedure.
So you probably have to read all devices.
Please tell me if this is working for you. Then I will move this repo to stable.

Works like a charm. Simply re-adding the device with the same name will generate the switch state.
Thank you very much. I dont get why no one uses this adapter. May you publish this to the lib via a moderator like bluefox?

Works like a charm. Simply re-adding the device with the same name will generate the switch state.
Thank you very much. I dont get why no one uses this adapter. May you publish this to the lib via a moderator like bluefox?

EDIT:
Now my virtualpowermeter runs like crazy ;-) could you may set all the levels to 0 if switch state is false and implement another state like "memory" e.g. with the HEX to enable the same switch on and off behaviour like now?

How does virtualpowermeter solve this for other devices that have a dimmer and a switch state?
For example this zigbee device has brightness and state:

EDIT:
Now my virtualpowermeter runs like crazy ;-) could you may set all the levels to 0 if switch state is false and implement another state like "memory" e.g. with the HEX to enable the same switch on and off behaviour like now?

How does virtualpowermeter solve this for other devices that have a dimmer and a switch state?
For example this zigbee device has brightness and state:

🤷 the only thing I know is that the virtual powermeter counts the on time per state with the provided wattage.
If the brightness is only one channel it will calculate regarding the percentage you run.
I could let it run an etimate wattage only on the switch state but this wouldn't be exact at all.

🤷 the only thing I know is that the virtual powermeter counts the on time per state with the provided wattage.
If the brightness is only one channel it will calculate regarding the percentage you run.
I could let it run an etimate wattage only on the switch state but this wouldn't be exact at all.

If you have an LED PAR or something similar my guess is, that dimming the rgb channels has only marginal effect on the power consumption of the device.

If you have an LED PAR or something similar my guess is, that dimming the rgb channels has only marginal effect on the power consumption of the device.

On my setup e.g. each channel has 62,32 Watt wich would make a bigger difference 😉 (2*6,7m = 804 LED's 192,96W total)

On my setup e.g. each channel has 62,32 Watt wich would make a bigger difference 😉 (2*6,7m = 804 LED's 192,96W total)

It seems to me that this is an issue that should rather be solved in virtual powermeter.

It seems to me that this is an issue that should rather be solved in virtual powermeter.

I'll give it a shot!
Thanks

I'll give it a shot!
Thanks


Notify Progress Examples in Restangular

Hi,
Are there are any good examples which i can refer for implementing Progress notification using Restangular.

It breaks when used with RestAngular POST

SyntaxError: Unexpected token D
at Object.parse (native)
at uc (http://localhost:8080/assets/vendor/angular/angular.min.js:15:483)
at $b (http://localhost:8080/assets/vendor/angular/angular.min.js:82:360)
at http://localhost:8080/assets/vendor/angular/angular.min.js:83:274
at n (http://localhost:8080/assets/vendor/angular/angular.min.js:7:333)
at cd (http://localhost:8080/assets/vendor/angular/angular.min.js:83:256)
at c (http://localhost:8080/assets/vendor/angular/angular.min.js:84:468)
at http://localhost:8080/assets/vendor/angular/angular.min.js:119:129
at r.$eval (http://localhost:8080/assets/vendor/angular/angular.min.js:133:313)
at r.$digest (http://localhost:8080/assets/vendor/angular/angular.min.js:130:412)
angular.js:12520 Broken interceptor detected: Config object not supplied in rejection:
https://github.com/chieffancypants/angular-loading-bar/pull/50


unsubscribe #request inbox after callback call

Otherwise the #subs map will grow forever and overflow over time

Coverage increased (+0.02%) to 95.229% when pulling 4eb00edd911647b9a972d3340992bd370ecc6d76 on Spindox:master into d277cab2b7a9ec00a8ca9075bfa53d700ed572db on nats-io:master.

Coverage increased (+0.02%) to 95.229% when pulling 4eb00edd911647b9a972d3340992bd370ecc6d76 on Spindox:master into d277cab2b7a9ec00a8ca9075bfa53d700ed572db on nats-io:master.

@jmventura, the request function takes an opt_options where you can specify the number of responses before auto-unsubscribing. While typically one thinks of request/response as a 1-1 operation, there are many patterns where you want more than one.
In your use case where you want only one, you should be calling it like this:
var sid = nc.request('foo', 'data', {max:1}, callback);
Note that the subscription will not auto-unsubscribe until you get the number of responses you have specified, you can remedy that by using the nc.timeout(sid, 1000, 1, callback); and then unsubscribing if you don't get the number of messages you desired if the callback is triggered.

Hi Alberto, cool, would you please illustrate the "other patterns where you want more than one". I can't imagine them yet.
Thanks a lot,
Juan

Control plane applications. Where you use messaging to manage a number of other processes. Maybe you want to get the least busy list of processes. If your repliers 'slow' responses based on how busy they are, the first N to respond will indicate the least busy. Google type queries also follow this approach. A single request goes to thousands of servers. But only some of the responses are used. NATS is actually optimized for that type of pattern. Where you do make a request to many (read thousands) but only want a small number of responses back.

Great explanation, thanks again Alberto.


1218 fix small issues when working on monorepo

What it does, and why

Add a thorough explanation of what the code in this PR does in this section. Make sure to also cover why your changes are necessary and useful.

Fix small issues when working on monorepo.

Button not passing onClick down to Item
Exports for Header and StyledLink only for default, so need to add other components to it.

Is there anything not straightforward in the code? Explain it. If you choose to use a pattern rather than another, use this space to provide the reason for your choice.

Checklist

Please go through following checklist before requesting review and fix issues listed there. If your code touches the files with the below in question, please address them.

Coding conventions

[ ] Have you split out components if there more than one React class or component in this file?
[ ] Have you converted the React class component to functional component?
[ ] Are you using spread props for the React component? If so, please state the exact properties required for the component <Component prop1={val1} prop2={val2} />
[ ] Are you doing prop drilling, going further than 2 levels deep? If so, refer to this document: https://blog.axlight.com/posts/four-patterns-for-global-state-with-react-hooks-context-or-redux/
[ ] If you're doing loops, are you using Lodash over es6 methods?
[ ] Have you extracted inline CSS in JSX out into its own styled variable?
[ ] Have you written PropTypes for the components?
[ ] Are you using hooks instead of HOC where possible?

Workflow

[ ] Are you writing documentation for the bits of code with complex changes?
[ ] Are you writing unit tests for business logic?
[ ] Are Stories are written for every visual change?
[ ] Request review if it is any visual/interaction

Testing

Explain how to test the changes in detail.

What testing have you performed on this change?
Is it unit tested? If not, why?
What manual steps have you performed to ensure its functioning correctly when integrated?

Trello Tickets

If this PR implements changes related to one or more Trello tickets please add them here:

UI Changes

If this PR introduce some interaction or animation change please also add GIF with how it behaves. Don't forget that this change should be possible to simulate in storybook.
You can use this tool to record your screen and convert it to a GIF.

Another issue is in Button the colour porps is "colour", in Icon, it's "color".
May have found before...

Had a talk with Adam. We would like to go the named module way, not using "StyledLink.styleLink". Use something like import StyledLink, { styleLink } from "..."
Close this pull request for now.


Function libxml_disable_entity_loader() is deprecated using on 10.0.3

Hi Derrick.
I am using the plugin on GLPI 10.0.3 on PHP8 and it was working until yesterday. I am getting this error now when I try to login:
Deprecated: Function libxml_disable_entity_loader() is deprecated in xxxxxxxx\plugins\phpsaml\lib\php-saml\src\Saml2\Utils.php on line 88
Deprecated: Function libxml_disable_entity_loader() is deprecated in xxxxxxxx\plugins\phpsaml\lib\php-saml\src\Saml2\Utils.php on line 90

hi pablitobin, how can you use this plugin with GLPI version 10.0.3 when version 1.2.0 of phpsaml does not allow it yet ?

Just avoid version restriction.
On Thu, Oct 13, 2022, 2:54 PM vfvjwork @.***> wrote:

hi pablitobin, how can you use this plugin with GLPI version 10.0.3 when
version 1.2.0 of phpsaml does not allow it yet ?
—
Reply to this email directly, view it on GitHub
https://github.com/derricksmith/phpsaml/issues/107#issuecomment-1277564269,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AJUGLQ4MNOOIMODHOJYPOJTWDABBLANCNFSM6AAAAAAQ5IYX6I
.
You are receiving this because you authored the thread.Message ID:
@.***>

Hi Derrick. I am using the plugin on GLPI 10.0.3 on PHP8 and it was working until yesterday. I am getting this error now when I try to login:
Deprecated: Function libxml_disable_entity_loader() is deprecated in xxxxxxxx\plugins\phpsaml\lib\php-saml\src\Saml2\Utils.php on line 88
Deprecated: Function libxml_disable_entity_loader() is deprecated in xxxxxxxx\plugins\phpsaml\lib\php-saml\src\Saml2\Utils.php on line 90

This issue is resolved in php-saml library 4.0.  Since this is a major change for this plugin, I'll put it on the roadmap for version 1.3.

hi pablitobin, how can you use this plugin with GLPI version 10.0.3 when version 1.2.0 of phpsaml does not allow it yet ?

The PLUGIN_PHPSAML_MAX_GLPI was increased in 1.2.1

Updated phpsaml library in 1.3.0 branch.  Performed cursory tests.  No errors


Readiness probe failed: Get http://xxx/healthz/ready: dial tcp : connect: connection refused

Your question
Describe your question clearly.
Type     Reason     Age                       From                    Message

Warning  Unhealthy  3m49s (x7643 over 4h18m)  kubelet, linuxtestacb9  Readiness probe failed: Get http://<IP_ADDRESS>:15021/healthz/ready: dial tcp <IP_ADDRESS>:15021: connect: connection refused
qlmosn              sleep-5bb57879b8-mt4zz                     1/2     Running   0          4h53m   <IP_ADDRESS>   linuxtestacb9
Environment

MOSN Version
mosnio/proxyv2:1.5.10-mosn

Logs

Paste the logs you see.
Readiness probe failed: Get http://<IP_ADDRESS>:15021/healthz/ready: dial tcp <IP_ADDRESS>:15021: connect: connection refused

@ggjjlldd you can check whether the value of Values.global.proxy.statusPort is equal 15021.

@ggjjlldd you can check whether the value of Values.global.proxy.statusPort is equal 15021. FYI: https://istio.io/latest/docs/reference/config/istio.mesh.v1alpha1/#ProxyConfig

still don't know how to check that.


Test artemis controller 2 persistent volumes tests external volumes attach fails

Describe the bug
The test artemis controller 2 persistent volumes tests external volumes attach fails on OpenShift.

[!TIP]
Vote this issue reacting with :+1: or :-1:

Resdolved by https://github.com/artemiscloud/activemq-artemis-operator/commit/ece66323b5d94bf5046569dffced2b7f5cd4efd5


sodium shader support mod

So there's a mod for sodium that can fix vanilla shaders but it uses a slightly different code for the shader itself so I was just wondering if there's a way for you to make a version that uses that changed code for people who use sodium(let me know if this is the the wrong place to ask this! I'm kinda new to GitHub.)

what is the difference? would help if you provide something specific
if something can be added to allow sodium compat and doesn't break anything for vanilla then i will consider it

from what ive read about its vanilla like but with changed names for in/out/uniform values. im not a programmer and i dont understand that stuff but i did find a link to sodiums values i think https://github.com/CaffeineMC/sodium-fabric/tree/1.20/dev/src/main/resources/assets/sodium/shaders/blocks. let me know if this is more specific

those are internal shaders for sodium, and are not modifiable and not planned to be modifiable with resourcepacks

Ok thanks for letting me know. its a bummer that vanilla shaders get broken by sodium and optifine.

hm, sodium devs said they do not support this.
i'll talk to DartCat25 and see if this is possible

closing, see https://github.com/Godlander/objmc/issues/47


Question: zeppelinOS add parameter to initialize()

Sorry for crossposting but  I've posted this question on stackexchange:
https://ethereum.stackexchange.com/questions/61959/zeppelinos-add-parameter-to-initialize
But it doesn't gather much attention.
When I add a parameter to initialize() I don't know how to update with calling the new parameter...

Hey @JohannesMayerConda . Sorry for the delayed response and thanks for bringing this up.
The upgraded contract, if it inherits from the old one, will already have an initialize method with two parameters. What you are doing is overloading the new contract with a new initialize method (with the same name as the old one) with three parameters instead of two.
I suspect that the truffle dependency is having trouble identifying the correct method to call, and tries to call the old one. I will confirm if there is an open issue for that and post it here.
On the meantime, as possible workarounds you could:

Manually alter the build artifacts of your contract and put the initialize method with three parameters before the other/s.
Call your new initialize method something else, like "updatedInitialize(...) initializable".

@JohannesMayerConda the issue I was referring to was https://github.com/zeppelinos/zos/issues/194
It seems that this has been fixed, so your problem must be something else. Sorry for making you think about something that is NOT your problem!
With this in mind, I suspect that since your proxy has already been initialized via Initializable.sol, the private state variable "initialized" is set to true, hence you cannot call initialize again in this particular proxy instance.
If you create a new proxy, linked to a logic contract that has the 3 parameters it should work, but not for a proxy that has already been initialized. So, I would (1) add the new initializer with 3 params to your logic contract in case you want to create new proxies and (2) add a separate function to upgrade a proxy with the new foo variable, making sure that this too can only be called once, something like:
upgrade(uint _foo) {
  require(foo === 0);
  foo = _foo;
}

hth!

@ajsantander you are right that my proxy has been initialized and cannot be initialized again. You are also right that creating a NEW proxy works.
I think I understand what you mean. I could set new variables in constructor. I find this kind of confusing because I thought I should now avoid using constructors. I think this is at least something that should be documented if this really has to be like this (sorry in case I've overlooked it)...

No, you're absolutely right. I'll make sure we add it to our docs, thanks!


Detect usage of supported types in Unsupported("..")

Users might not be aware of all the native types Prisma is supporting per database and end up using a database type for which a Native Type exists within the Unsupported type. We could detect that and prompt to use the proper Native Type to improve the experience.

Validation error telling them to use the native type.


Fix Pool Page via pre-render

Description
Fixes the pool page by pre-rendering it

Summary by CodeRabbit

New Feature: Enhanced the navigation experience by introducing dynamic routing. This allows users to access specific pool pages directly via unique URLs, improving the overall usability of the platform.
Performance: The implementation of static generation methods ensures faster page load times, providing a smoother and more efficient user experience.

dc82f46f20c0882368216bf5f4c6d2fa4a772eba: synapse-interface preview link
47e1c923500cb1036633057e122e545947e792b5: synapse-interface preview link
e72221915ac3a470d9a5141539dad75fb6676c01: synapse-interface preview link

Going to wait on this until #1503 is in


Add producer for .client.local. and generated class filters.

This PR filters out generated *.java files from the DataModelerService and prevents the KieBuilder from compiling .client.local. classes.

+1


problem update at 8.35

Good morning, or version 8.33, trying to run version 8.35 I can't find the file

If you had followed the issue template instead of deleting it you would have found that:
A: Issues are not meant for questions, that is where discussions are for
B: Your question has been asked and answered in the README and in earlier issues such as #410
Closing


Tailscale Log in from HA OS returns "Failed to log in: null is not an object (evaluating 'window.open(url, "_blank").focus')"

Problem/Motivation
When opening the webUI of the started add-on with "OPEN WEB UI" button in Supervisor->Tailscale->Info, the login window is displayed. Upon clicking the "Log In" button, the following error is shown "Failed to log in: null is not an object (evaluating 'window.open(url, "_blank").focus')". The log under Supervisor->Tailscale->Log shows simply "false" on every line.
Expected behavior
The Log In button should lead to a webpage where the Homeassistant instance can be coupled with the Tailscale account.
Actual behavior
Upon clicking the "Log In" button, the following error is shown "Failed to log in: null is not an object (evaluating 'window.open(url, "_blank").focus')". The log under Supervisor->Tailscale->Log shows simply "false" on every line.
Steps to reproduce
Use Homeassistant OS 6.6, core-2021.11.3, supervisor-2021.10.8 on Raspberry Pi 4 8GB RAM with SSD, install Tailscale add-on through Supervisor->Add-on Store, press "START", press "OPEN WEB UI", press "Log In"
Proposed changes

(If you have a proposed change, workaround or fix,
describe the rationale behind it)

Which browser are you using?

Dear frenck, many thanks for your answer. I am using Safari.

Safari on a mobile device?

Nope, sorry to be not precise enough. Safari on MacOS 11.6.

As a workaround, it should work in other browsers. But indeed, confirmed not working in Safari

By the way: Same behaviour using Firefox on MacOS 11.6.
Chrome on MacOS 11.6 works!!
(Sorry, could have had this idea before). Thanks for your valuable help anyway!!

This issue was resolved for me by allowing popup windows in Safari, macOS 12.0.1.

This issue was resolved for me by allowing popup windows in Safari, macOS 12.0.1.

Same 👍

Firefox and Safari on iOS both fail for me.
Safari:

Firefox:

Oh, and the HA Companion app also fails.

Mobile will fail. Not much I can do about that.

Same here.
Mobile Safari and HA companion app

Experienced the same error when I tried to install and launch Tailscale from my IPad Home-Assistant App.
Fortunately a google search brought me to this page, and I then I logged in to HomeAssistant from my Windows PC, and the start of Tailscale worked well.
Probably would make sense to mention in the „About comment“ that Tailscale  can not be launched directly from the Home-Assistant iOS App. Otherwise people just might give up when it doesn’t work on first attempt.
One issue still remains on my installation (didn’t investigate yet more deep):
Grafana Dashboard is not shown in my Home-Assistant iOS App when I use Tailscale vpn.

I hit this as well. Workaround on mobile is to look at the logs, which will tell you the auth url. Copy it and paste it into your browser to authenticate. Go back to home assistant (in the mobile app or mobile web) and restart the addon.


Server Side Rendering

This is still a WIP but I am submitting it because some people were interested in seeing an approach to server side rendering.
Essentially the way it works is that the root container of the app is a react-helmet component that is responsible for rendering the entire HTML payload.  This component is used to render the page on the server side by using react-router match function to handle the express request object and render the given page.
Credit for this approach goes 100% to another boilerplate: https://github.com/DominicTobias/universal-react/
A few other changes have been made such as using webpack to compile and run the server code.
I will clean this up and improve upon it over the weekend hopefully.
TODO

[ ] improve webpack server config and make server side hmr work
[ ] improve documentation
[ ] add tests
[ ] usage example: dynamic request handler in production
[ ] usage example: static site generator

@datapimp Hi Jonathan, this is an excellent start. I was looking in to start working on this too and the first thing I was looking into was how to handle redux-saga on server side. Are you planning on working that into the ssr? Thanks for the great start on this, I look forward to see your refinements.

My goal is definitely to have as little of difference as possible in the way you think about redux-saga, just not sure how to go about enforcing some of the constraints that you have to put on yourself to be able to do that.
I added isomorphic-fetch for example.  Would love some suggestions or tips from people with battle scars from doing this already

@datapimp Jonathan, since redux-saga is a bit of a bear to use server side, almost hack like at best, have you used or looked into https://github.com/makeomatic/redux-connect for loading up state server side? redux-saga is definitely nice, but not sure it is the best choice when doing a universal application.

redux-connect is great, but doesn't quite solve the same problem as redux-saga does, specifically tying together decoupled components. (see this talk at 14:40 for the saga specific part, but I encourage you to watch it in its entirety)
I'm strongly convinced that redux-saga will shape the way we build frontend applications for a long time, and I would very much despise getting rid of it!

hey guys, @datapimp solid work as usual. i haven't had a time to checkout locally and review but wanted to provide a resource and one quick thought before i head out for the weekend
redux saga ssr reference implementation:
https://gist.github.com/sompylasar/5e7157e451f4b7268def9ae1ce01edd4#file-serverrenderloop-js
this is a solid pattern for handling render loop. you will immediately notice that it is not trivial lol
this was also helpful in understanding, but keep in mind our routes are async and injected:
https://github.com/yelouafi/redux-saga/blob/master/examples/real-world/server.js
in our case, invoking sagas from router should mitigate some of the constraints associated with ssr but requires some consideration. for example, our current implementation will work, but it's not actually doing anything... eg, we would want to set a default username and dispatch a load repos action, either from componentWillMount or using put effect in root saga... we will also need to explicitly close the open take channel on success.. just thinking out loud here
one other quick thought on SSR—
getting client/server parity for asset name resolution is a serious challenge... ie
import Banner from './banner-metal.jpg';

obviously this will not work in native node environment, and if it did the asset name wouldn't match the one generated by webpack, breaking checksum when mounting on client... canReuseMarkup throws
in my experience, the simplest possible solution is to monkey require and use webpack's loader-utils to manually interpolate the output name.... here's a gist:
https://gist.github.com/justingreenberg/f1735abffbae3778014f8d14b599a2ef#file-require-patch-js

this is a hack, but i have found it very reliable... alternatively, since you are propsing we use webpack to compile server code as well, we could leverage webpack itself to handle these assets during compilation... i've worked with various webpack plugins/hacks with mixed experiences:
https://github.com/halt-hammerzeit/webpack-isomorphic-tools
https://github.com/exponentjs/asset-module-webpack-plugin
TL;DR: if we are using webpack to compile server, i recommend using https://github.com/jchip/isomorphic-loader
totally did not mean to write so much, now i really gotta run.. let me know if you guys have any questions :) have a great weekend

@justingreenberg thanks a lot, thanks for the advice, I will definitely read everything.
@mxstbr don't worry i feel just as strongly about redux-saga

@justingreenberg  any thoughts on the following approach?
Essentially container components / routes would declare a static method
export class Container extends Component {
  static readyOnActions (dispatch) {
    return Promise.all([ ])
  }

  componentDidMount () {
    Container.readyOnActions(this.props.dispatch)
  }
}

The server renderer would have access to the route's getComponent, getChildRoutes, getComponents, etc and any of them which have this method would then resolve the various promises before returning the final markup.
I think this might eliminate the need for a render loop but I am still digging into that code you sent to get a better grasp.

@datapimp If I understand approach with static readyOnActions correctly, then it is implemented in MERN. You can look at it. But if you look at  this code, you will see, how to use Saga END effect for ssr. Maybe it is reasonable to use this approach? And also we can use redial  with Saga, like it is described here -  https://github.com/yelouafi/redux-saga/issues/293 .
I am also trying to implement ssr for this boilerplate, and the main challenge for me is require of sanitize.css in \app\containers\App\index.js. It always fails on server side. Maybe it is because this css in externals during server-side build, and server-side webpack loaders for css (I have tried to use many approaches, fake-style-loader, for example) do not work? I do not know. I ended up with ignoring this css on server side like this:
if(__CLIENT__)
  require('sanitize.css/sanitize.css');

And I was happy, until I have installed react-flexbox-grid which internally requires flexboxgrid.css . Of course I can not ignore it. And everything was broken. And no loaders helped me to correctly load this css.
For application styles my loaders look like this and work:
'css-loader/locals?localIdentName=[local]__[path][name]__[hash:base64:5]&modules&importLoaders=1&sourceMap!postcss-loader'

I do not know the reason, but images are loaded correctly using the same loaders as on client side.
Also I have looked at your code and do not understand, how will you debug server side with your approach, and why do not you use webpack-externals-plugin?

@datapimp Came across another server-side rendering with redux-saga attempt that might have some useful ideas: https://github.com/xkawi/react-universal-saga

@oyeanuj Yes, I just saw that too. Looks like it might do the trick here. Some things it is lacking is code splitting, etc. Not sure if that would be an issue since sagas are injected... I really would like to see an option here for SSR, does not need to be baked in by default, but a configuration would be sweet. It seems that SSR movement here has slowed down, and hope it is not dead. @datapimp

@datapimp @justingreenberg @Stalso Do you know if anyone is working on this?

@tzarger I am currently working on this,  but I am doing something wrong.  Let more experienced people solve this problem.  As I said in previous post,  css it the main problem for me,  when I try to make webpack build of the app for server rendering

@justingreenberg @datapimp Any thoughts on @Stalso's previous comment with the CSS as that seems a big blocker at the moment?

What is the current state of this PR? Feels like after this feature is merged into the boilerplate it'll leave all the competitors so far behind!
What are you guys using to achive SSR in your React/CSS-modules projects meanwhile?

This repository might be a useful source for some ideas:
https://github.com/reactGo/reactGo
Just found it via http://andrewhfarmer.com/starter-project/, a pretty nice little app for choosing a boilerplate. The list seems to be up to date (20 Aug 2016), but is not 100% complete (react-create-app is missing, for instance).

@Stalso Did you manage to solve your issue?

I found this article about isomorphic react isomorphic - https://reactjsnews.com/isomorphic-react-in-real-life
An application that I'm working on was inspired by this boilerplate but I wanted it to be isomorphic because SEO is particularly important. My own application basically ripped out all of the CSS module stuff because I couldn't solve it at the time - and time constraints yadda yadda yadda.
However possibly following this guide, could lead to an isomorphic version of this application.

@davidwilde That looks like a great article, thanks for sharing!
Another step in the 'universal' app direction, react-engine recently came to my attention. Looks like it may solve some of the 'pain' points discussed in the above article.

I've been looking at approaches for this, and managed to pull together a half-working (i.e. JS for reduxified routes, no working CSS yet) SSR implementation on my react-boilerplate project (forked ~4 months ago). This pull request being the most helpful for what I ended up doing! (Besides realizing I had no clue what webpack was actually doing)
Can check it out here: https://github.com/opensessions/opensessions
The important files being internals/webpack/webpack.server.babel.js, package.json for the npm run build:server command, server/src/server.js, and any of the working pages app/containers/{HomePage,SessionView,ListSessions}/index.js.

Wanted to mention this post here: https://medium.com/open-collective/asking-for-a-new-feature-on-an-open-source-project-3305deba1356#.6ehgqgzhc.

Since this is very out of date and will highly likely not be merged, I'll close it for now. Thanks for the start, this is a great reference point @datapimp!

@asood that sounds great. @mxstbr can you confirm this is legit?

This is totally legit.

@mxstbr @asood123 Can we drop a message in the Gitter channel to everyone to see if we can raise the $850 mentioned in the article? I think it would be a great opportunity to get that done after all this time and would be interested in donating as well.

Will this be merged in the master branch any time soon?

@mxstbr Are we working on this?

This is currently benched for the time being.


Use regular URL to generated documentation for reports/affected_clusters.py

Use regular URL (written in Markdown) to generated documentation for reports/affected_clusters.py

Fixed in https://github.com/RedHatInsights/insights-results-aggregator-utils/pull/250


How to use a factory method?

I want to delegate the construction of a type to a factory method.
In another DI container (included in MvvmCross) i can do the following:
container.LazyConstructAndRegisterSingleton<IDummyObject>(() => new DummyObject());
We are hiding the container behind our own interface and i want to implement an adapter for unity.
Is this possible?
I tried this:
public void LazyConstructAndRegisterSingleton<TInterface>(Func<TInterface> factory) where TInterface : class
{
    _container.RegisterType<TInterface>(new ContainerControlledLifetimeManager(), new InjectionFactory(container => factory()));
}

But this results in a stackoverflow.
Thx in advance
Lars

I see nothing wrong with this. Perhaps your factory() has _container.Resolve(typeof(TInterface) ...) or something has dependency of type  TInterface

Thanks for the answer!
To clarify:
these are the methods in my adapter:
public void LazyConstructAndRegisterSingleton<TInterface, TImpl>() where TInterface : class where TImpl : TInterface
{
    LazyConstructAndRegisterSingleton<TInterface>(() => IocConstruct<TImpl>());
}

public void LazyConstructAndRegisterSingleton<TInterface>(Func<TInterface> factory) where TInterface : class
{
    _container.RegisterType<TInterface>(new ContainerControlledLifetimeManager(), new InjectionFactory(container => factory()));
}

public T IocConstruct<T>()
{
    return (T)IocConstruct(typeof(T));
}

public object IocConstruct(Type typeToBeConstructed)
{
    return _container.Resolve(typeToBeConstructed);
}

And this is my test case which results in a stackoverflow during Resolve:
DummyObjectWithInjectedInterface needs IDummyObject via constructor injection
[Test]
public void LazyRegisterSingleton_WithObjectHasDependencies_ReturnsInstanceOnResolve()
{
     var systemUnderTest = new UnityDependencyInjectionContainer();
     systemUnderTest.LazyConstructAndRegisterSingleton<IDummyObject>(() => new DummyObject());
     systemUnderTest.LazyConstructAndRegisterSingleton<DummyObjectWithInjectedInterface, DummyObjectWithInjectedInterface>();

     var constructedObject = systemUnderTest.Resolve<DummyObjectWithInjectedInterface>();

     constructedObject.Should().BeOfType<DummyObjectWithInjectedInterface>();
}

I see var systemUnderTest = new UnityDependencyInjectionContainer(); is being tested but you are using _container in your methods to register types.  How are these connected and what exactly is UnityDependencyInjectionContainer?
Can you give me a sample I can actually run? Perhaps add a test case to this project?
You don't need to  send a pull request, just use types and interfaces from the project so I can debug it.

I guess it is not relevant anymore.

Oh it is still relevant. I just was ill the last days and could not reply.
UnityDependencyInjectionContainer is our Adapter that hides the DependencyInjection container behind our own interface because we use different containers for different scenarios but still share code (UWP-App with MVVM-Cross using IoC-Container of MVVMCross / Server-Application with Unity as IoC).
I updated my post above with the complete code sample.
All we want to do is delegate the construction logic of certain objects to a factory method.
Maybe we have done it wrong but it would be very nice if someone could tell me how to achieve this :)
G

Did you run your sample yourself?
Here is your problem:

You register your singleton here:

public void LazyConstructAndRegisterSingleton<TInterface>(Func<TInterface> factory) where
TInterface : class
{
    _container.RegisterType<TInterface>(new ContainerControlledLifetimeManager(),
                                        new InjectionFactory(container => factory()));
}

You start resolving like this: _container.Resolve(typeToBeConstructed)
While resolving  it executes factory() which internally calls
LazyConstructAndRegisterSingleton(() => IocConstruct<TImpl>()); which in turn calls
return (T)IocConstruct(typeof(T)).
You define IocConstruct(Type typeToBeConstructed) as:
public object IocConstruct(Type typeToBeConstructed)
{
    return _container.Resolve(typeToBeConstructed); <-- Go into infinite loop here
}


Silently dropping packets in tx_batch when hardware buffer is full

https://github.com/ixy-languages/ixy.rs/blob/1ce633120560810a7a6dafbdf705feef77df3e32/src/ixgbe.rs#L276-L286
At this break, packet is dropped when the pending packet watermark is reached. I suppose it should instead be put back in front of the queue first.

True! Well spotted :) I'm going to fix this tomorrow or on Thursday.