add icons

suggest adding following icons:

when date is correctly entered: https://fontawesome.com/icons/check?style=solid next to "Last entry was correct"
when date is incorrectly entered: https://fontawesome.com/icons/times?style=solid next to "Typo in previous entry"
https://fontawesome.com/icons/user-cog?style=solid next to "Your statistics"
https://fontawesome.com/icons/users-cog?style=solid next to "All time statistics"

Also, not sure if feasible, but could use this icon
https://fontawesome.com/icons/trophy?style=solid
to celebrate achievements (10/50/100/500 entries or correct entries or sth like that?)
Ideally we would want to write on top or near the icon the threshold number. Not sure if feasible but putting this here as a dream wishlist :-) Let's see what you think @richfitz!

@richfitz thanks for that - looks cool! does that mean my second request (just above this) is not feasible?

Not infeasible, just didn't get time to get it done on the train!


Defined Event Subscription not triggering function invocation

This is a Bug Report
I tried slack, but invitation link appears to be expired

What went wrong?
Subscription for custom event did not trigger function invocation.

What did you expect should have happened?
Custom event "emergency.patient" would be received by event-gateway and match subscription to awslambda function. based from docs here
and here
Perhaps I am misreading the intent of the docs, but it suggest to me that a POST to the default path should result in event "emergency.patient" to be triggered within the EG.

Post as follows:
curl --request POST \
  --url http://localhost:4000/ \
  --header 'content-type: application/json' \
  --data '{
    "eventType": "emergency.patient",
    "eventID": "66dfc31d-6844-42fd-b1a7-a489a49f65f3",
    "cloudEventsVersion": "0.1",
    "source": "/acme/paramed/patient",
    "eventTime": "1990-12-31T23:59:60Z",
    "data": { "userID": "123" },
    "contentType": "application/json"
  }'

KV Store as follows:
Events
{
  "eventTypes": [
    {
      "space": "default",
      "name": "http.request"
    },
    {
      "space": "default",
      "name": "emergency.patient"
    }
  ]
}

Functions
{
  "functions": [
    {
      "space": "default",
      "functionId": "findBeds",
      "type": "awslambda",
      "provider": {
        "arn": "arn:aws:lambda:us-east-1:246472886373:function:hospitalBed",
        "region": "us-east-1",
        "awsAccessKeyId": "redacted"
        "awsSecretAccessKey": "redacted"
      }
    }
  ]
}

Subscription
{
  "subscriptions": [

    {
      "space": "default",
      "subscriptionId": "YXN5bmMsZW1lcmdlbmN5LnBhdGllbnQsZmluZEJlZHMsJTJGLFBPU1Q",
      "type": "async",
      "eventType": "emergency.patient",
      "functionId": "findBeds",
      "path": "/",
      "method": "POST"
    },
    {
      "space": "default",
      "subscriptionId": "YXN5bmMsZW1lcmdlbmN5LnBhdGllbnQsZmluZEJlZHMsJTJGbWVkaWNhbCxQT1NU",
      "type": "async",
      "eventType": "http.request",
      "functionId": "findBeds",
      "path": "/",
      "method": "POST"
    }
  ]
}

What was the version you used?
I am running this natively:
go run cmd/event-gateway/main.go -dev

Event received.	{"path": "/", "event": {"eventType": "http.request",

I am able to act upon the above event, using the "http.request" event subscription, but ideally I am hoping to have the ability to act upon a more granular level of event, which clearly is possible, but I must be missing something pretty obvious.

Try:  --header 'content-type: application/cloudevents+json'
This worked for me. It's not documented anywhere and I had to get it out of the code for https://github.com/serverless/event-gateway-sdk

@pablojudd thanks man, that was what I needed! Closing ...


NullReferenceException in IISHttpContext

Describe the bug
Since updating a website running in Azure App Service to use ASP.NET Core 2.2.0 with in-process hosting, I've observed a small number of NullReferenceExceptions being thrown via Application Insights.
System.NullReferenceException:
   at Microsoft.AspNetCore.Server.IIS.Core.IISHttpContext.GetOriginalPath (Microsoft.AspNetCore.Server.IIS, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=adb9793829ddae60)
   at Microsoft.AspNetCore.Server.IIS.Core.IISHttpContext.InitializeContext (Microsoft.AspNetCore.Server.IIS, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=adb9793829ddae60)
   at Microsoft.AspNetCore.Server.IIS.Core.IISHttpContextOfT`1+<ProcessRequestAsync>d__2.MoveNext (Microsoft.AspNetCore.Server.IIS, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=adb9793829ddae60)
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw (System.Private.CoreLib, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Private.CoreLib, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult (System.Private.CoreLib, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
   at Microsoft.AspNetCore.Server.IIS.Core.IISHttpServer+<HandleRequest>d__27.MoveNext (Microsoft.AspNetCore.Server.IIS, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=adb9793829ddae60)

To Reproduce
Application experiencing the issue was built from this commit:  martincostello/website@ee2ca4ba02823b97062924b7dc8f313e6278a3f8
Expected behavior
HTTP request is processed successfully.
Screenshots

Additional context
Add any other context about the problem here.
Include the output of dotnet --info

Looking at the code in master, it would seem that GetRawUrlInBytes() saw NativeRequest->pRawUrl to be null or empty, and returned null, which then isn't handled by GetOriginalPath().
https://github.com/aspnet/AspNetCore/blob/85e2147ff037cc9950249fbb9d095ad47ec4184a/src/Shared/HttpSys/RequestProcessing/NativeRequestContext.cs#L141-L151
https://github.com/aspnet/AspNetCore/blob/3c09d644cccdb21801f7a79e1188a1a1212de5d9/src/Servers/IIS/src/Microsoft.AspNetCore.Server.IIS/Core/IISHttpContext.cs#L185-L186

Same issue over here. Any workaround available ?
Are we sure this is related to the In/OutOfProcess option ?

For me this only started once I switched to in-process hosting after the roll out to Azure App Service of the hosting bundle was completed.

The frequency of requests there looks like it is coming from the app warmup request after IIS restarts from Always On. To confirm, can you turn off app warmup for a period and see if exceptions are still being thrown?
If that’s the case, the null ref is coming from the warmup request. This behavior is “fine” as the request was fake and it is supposed to startup Program.Main. However, we should more gracefully handle this type of request and not throw.
Get Outlook for iOShttps://aka.ms/o0ukef

From: Martin Costello<EMAIL_ADDRESS>Sent: Thursday, December 27, 2018 12:27 PM
To: aspnet/AspNetCore
Cc: Subscribed
Subject: Re: [aspnet/AspNetCore] NullReferenceException in IISHttpContext (#6075)
In case you meant me, yes I do.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHubhttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Faspnet%2FAspNetCore%2Fissues%2F6075%23issuecomment-450225392&data=02|01|Justin.Kotalik%40microsoft.com|e47a17cf79c14ed8965508d66c39c6a7|72f988bf86f141af91ab2d7cd011db47|1|0|636815392732641734&sdata=rXZLEMMAusc4ZBH47OXhlM1sQaNAzPMZuUSHa4a7H2w%3D&reserved=0, or mute the threadhttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAH6uFVu8-uWuEVZkvZG2WobO1z3nwajcks5u9S1HgaJpZM4ZdnOe&data=02|01|Justin.Kotalik%40microsoft.com|e47a17cf79c14ed8965508d66c39c6a7|72f988bf86f141af91ab2d7cd011db47|1|0|636815392732651747&sdata=c%2BBvm7xm2865OIYE3l20Cp3c14zwpX9OMzwm%2BENkVWU%3D&reserved=0.

I've disabled Always On and will leave it for a few days to see if it happens again, but it only happened a handful of times in the last 7 days as it is.

@jkotalik or we need to find the module that makes this request and make sure it sets pRawUrl.
@martincostello thank you for your help in figuring this out.

This is still happening in latest 2.2.2 runtime.
[Microsoft.AspNetCore.Server.IIS.Core.IISHttpServer]::Unexpected exception in IISHttpServer.HandleRequest.
Using InProcess hosting with Application Pool Start Mode = AlwaysRunning

This wasn't fixed in 2.2.2. However, this was fixed in the latest 3.0-preview build of ANCM. If possible, please give that a try.

I'm having the same problem. As soon as I changed the hosting model to InProcess I started to get this error.
Object reference not set to an instance of an object.     System.NullReferenceException at Microsoft.AspNetCore.Server.IIS.Core.IISHttpContext.GetOriginalPath     Microsoft.AspNetCore.Server.IIS, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=adb9793829ddae60       {"method":"Microsoft.AspNetCore.Server.IIS.Core.IISHttpContext.GetOriginalPath","level":0,"assembly":"Microsoft.AspNetCore.Server.IIS, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=adb9793829ddae60","line":0}           {"method":"Microsoft.AspNetCore.Server.IIS.Core.IISHttpContext.InitializeContext","level":1,"assembly":"Microsoft.AspNetCore.Server.IIS, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=adb9793829ddae60","line":0}

I'm glad this will be addressed in 3.0 but will this be addressed in 2.2.x or 2.x?

I'm glad this will be addressed in 3.0 but will this be addressed in 2.2.x or 2.x?

Were you able to fix this ? We have same issue but no work around in 2.2.2

Update: For us we had preload enabled flag turned on at the Website level. Disabling this fixed the error

@Rugved I wouldn't say that disabling IIS website preload fixes this issue, but its a valid workaround if you do not need/use preload.

What implications does this have on the running application? I am running 2.2 and need PreloadEnabled set to true. My app seems to be running without an issue even though I get this error when the application starts.

It shouldn't have any implication on the running application. It just gives a false positive for an exception.

If I understand this thread correctly, we are supposed to wait for another release and in the meantime this is not causing any harm. But it is really distracting to see these false positives where we expect to see only "real" exceptions. Is there some middleware that you can provide to catch this condition? I do not want to filter this on my side, for fear of eating up an authentic failure. TIA

+1

Same problem, Azure App Service, asp.net core 2.2
Subscribing to notifications

I am on aspnetcore 3.0 and I still receive this. I am also utilizing InProcess hosting on an App Service.

@vsadams could you file another issue saying you are hitting this in 3.0?


firstError: 'Error: read ETIMEDOUT\n    at _errnoException (util.js:1024:11)\n    at TCP.onread (net.js:615:25)' },

It's a network issue that is not related to ioredis. If you believe that is not the case, please provide a reproducible example.

The program has the master monitoring page and other monitoring pages. When the master monitoring page is activated, the other monitoring pages do not refresh data. When I switch to another monitoring page, the data cannot be obtained and is not refreshed. However, I switch back to the main monitoring page and the page is refreshed normally.


Compatibility [1.10.2]

Dear thraaawn,
I really wish if it would backport ur awesome mod to 1.10.2 !
Many Modpacks would also benefit from  that since they are mostly on 10.2!
Thanks!
modzilla

Sorry, no. Would require too much time I'd rather spend on fixing bugs or adding new features.


Added GPS-Free Navigational Chatbot

Pull Request for PyVerse 💡
Issue Title : GPS-Free Navigational Chatbot

Info about the related issue (Aim of the project) :
Name: J B Mugundh
GitHub ID: https://github.com/J-B-Mugundh/
Email ID<EMAIL_ADDRESS>Idenitfy yourself: GSSOC-EXTD

Closes: #174
Describe the add-ons or changes you've made 📃
This project aims to develop a navigational chatbot that provides real-time voice guidance by utilizing pre-existing routes between locations. The system feeds this route data into the Gemini LLM, allowing it to generate accurate, step-by-step navigation assistance in the absence of GPS. By enabling voice interaction, users can easily input their location and destination through natural speech, receiving spoken directions for seamless navigation, even in areas with limited connectivity or weak GPS signals.
Type of change ☑
What sort of change have you made:

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

How Has This Been Tested? ⚙
Manual Testing
Implementation reference
https://drive.google.com/file/d/1Da5Ct4zbrPNC_RR5JWkji1vdFAbP9gHJ/view?usp=sharing
Checklist: ☑

[x] My code follows the guidelines of this project.
[x] I have performed a self-review of my own code.
[x] I have commented my code, particularly wherever it was hard to understand.
[x] I have made corresponding changes to the documentation.
[x] My changes generate no new warnings.
[x] I have added things that prove my fix is effective or that my feature works.
[x] Any dependent changes have been merged and published in downstream modules.

@UTSAVS26 Please review the PR and let me know if I need to add anything. Also, add gssoc-extd, hacktoberfest and level labels! Thank you for your time!

@UTSAVS26 Updated the PR! Please check


Unexpected value '[object Object]' imported by the module 'AppModule'. Please add a @NgModule annotation.

i got this issue at first time - ng serve : ERROR in Error encountered resolving symbol values statically. Calling function 'OpaqueToken', function calls are not supported. Consider replacing the function or lambda with a reference to an exported function, resolving symbol FirebaseUserConfig in /opt/ang_web/pin/pinterest/node_modules/angularfire2/tokens.d.ts, resolving symbol AngularFireModule.initializeApp in /opt/ang_web/pin/pinterest/node_modules/angularfire2/angularfire2.d.ts, resolving symbol AppModule in /opt/ang_web/pin/pinterest/src/app/app.module.ts, resolving symbol AppModule in /opt/ang_web/pin/pinterest/src/app/app.module.ts
i give test space and save package.json file : i got this issue in browser console : Unexpected value '[object Object]' imported by the module 'AppModule'. Please add a @NgModule annotation.
how to resolve this issue ? am new for angular4 so could you please give some solution for this issue

This issue is specific to angularfire2. At the time i made this, the version of angularfire had some issues with angular 4. So to fix that i removed node_modules and reinstalled npm packages. But I thin you can also try changing the angularfire version to latest, and then try.

ERROR in /opt/ang_web/pin/pinterest/src/app/app.component.ts (2,10): Module '"/opt/ang_web/pin/pinterest/node_modules/angularfire2/index"' has no exported member 'AngularFire'.
ERROR in /opt/ang_web/pin/pinterest/src/app/app.component.ts (2,23): Module '"/opt/ang_web/pin/pinterest/node_modules/angularfire2/index"' has no exported member 'AuthProviders'.
ERROR in /opt/ang_web/pin/pinterest/src/app/services/authentication.ts (2,10): Module '"/opt/ang_web/pin/pinterest/node_modules/angularfire2/index"' has no exported member 'AngularFire'. please help me to find out the issue.
ERROR in /opt/ang_web/pin/pinterest/src/app/services/authentication.ts (2,23): Module '"/opt/ang_web/pin/pinterest/node_modules/angularfire2/index"' has no exported member 'AuthProviders'.
ERROR in /opt/ang_web/pin/pinterest/src/app/services/authentication.ts (2,38): Module '"/opt/ang_web/pin/pinterest/node_modules/angularfire2/index"' has no exported member 'AngularFireDatabase'.
ERROR in /opt/ang_web/pin/pinterest/src/app/services/pin-data.ts (2,10): Module '"/opt/ang_web/pin/pinterest/node_modules/angularfire2/index"' has no exported member 'AngularFireDatabase'.
ERROR in /opt/ang_web/pin/pinterest/src/app/app.module.ts (5,29): Module '"/opt/ang_web/pin/pinterest/node_modules/angularfire2/index"' has no exported member 'AuthProviders'.
ERROR in /opt/ang_web/pin/pinterest/src/app/app.module.ts (5,44): Module '"/opt/ang_web/pin/pinterest/node_modules/angularfire2/index"' has no exported member 'AuthMethods'.
ERROR in /opt/ang_web/pin/pinterest/src/app/app.module.ts (89,53): Argument of type '{ provider: any; method: any; }' is not assignable to parameter of type 'string'.

i got this error after change the version and i have used this version  "angularfire2": "4.0.0-rc.1",


fix: modal should not close when dragging from inside of modal

Description
Closes #1852.
Use mousedown event instead of click event to prevent modal window from closing on mouseup unexpectedly.

Fixed

Settings modal should not close when dragging from inside of modal

LGTM


Fix shield calculation and format leader stats to avoid large decimals

The old code calculates a 93.75% shield for two 25% shield leads and you get a large number of decimals for leads like 5514 and 5241.
Not sure if that's how you want to approach the formatting of decimals in that place, but it's an improvement for now at least.

Thanks!


Customize item

Would be nice if i could customize the entire item, so i could change the position of elements.
In my case i would like to use the icon on the right side of the text instead of left side.
something like:
renderItem(({ item, onSelect, onOpen, onClose, isOpen }) => (
  <View>
     <Checkbox onCheck={onSelect} />
     <Text>{item.label}</Text>
     {isOpen ? (
        <TouchableOpacity onPress={onClose}>
           <Icon name="arrow-up" />
        </TouchableOpacity>
     ) : (
         <TouchableOpacity onPress={onOpen}>
           <Icon name="arrow-down" />
        </TouchableOpacity>
     )}
  </View>
)

hi @gabrielbuzziv ,
I'm working on it

hi @gabrielbuzziv,
This problem is delayed.
I would like to inform you that this issue has been updated according to your request.
renderItem={({ item, isSelect, isOpen, onOpen, onClose, onSelect }) => (
  <View style={styles.wrapItem}>
    {isOpen ? (
      <TouchableOpacity onPress={onClose}>
        <AntDesign size={30} name="arrowright" />
      </TouchableOpacity>
    ) : (
      <TouchableOpacity onPress={onOpen}>
        <AntDesign size={30} name="arrowdown" />
      </TouchableOpacity>
    )}
    <Text>{item.shopName}</Text>
    <Checkbox check={isSelect} onPress={onSelect} />
  </View>
)}


About page

The about page is where people can go to learn more about the club, it's history, and current membership.
Here is a potential mockup.

The video can be the intro video currently posted on the RPI TV YouTube channel, or something else if something better is created.
I experimented with a few different designs for the membership section, but this was the best I came up with. Profiles will eventually be clickable to open the member's profile, however that's not something which needs to be done for this issue.
Ideally, each member component and the spacing between them will be scaled such that there's always 1,2,3,6, or 12 profiles per row. Currently, our leadership team typically consists of 6 people, but this could change in the future, so being able to easily change the multiple of profiles per row would be a nice addition.

Being worked on bilaterally through the fix-issue-21 and person branches

Closed with #92


Run-onnnx-lib for models with dynamic/runtime dimensions

Added support to run a given .so where the user can provide the runtime dimensions of a model by a line argument. For example a model with the following signature
builtin.func @main_graph(%arg0: tensor<?x?x204xf32>) -> tensor<?x?x1xf32> { ... }

can be run with after being compiled with the first 2 "?" being replaced by 7 and 2018, respectively.
run-onnx-lib model.so -d "[7, 2048]" -m 8

@AlexandreEichenberger once the model was compiled with the first 2 "?" being replaced by 7 and 2048, I though model.so's signature contained 7 and 2048, and run-onnx-lib could run without additional information. Could you explain more why we should provide -d "[7, 2048]" to run-onnx-lib?

@tungld The idea is that the model is compiled with the "?", which is also reflected in the signature with the "?". Then with that command, it let us generate the tensors with the runtime dimensions where the "?" are substituted (in the data) by the proposed dimensions.
In summary: compile once with the "?", then run multiple times with any runtime values of interest.

In summary: compile once with the "?", then run multiple times with any runtime values of interest.

I see. It makes sense. Thanks! I though ? was replaced while compiling.
I seems the last commit was not signed off so DCO failed.

Jenkins Linux s390x Build #1763 [push] run with runtime dim (#8... started at 14:04

Jenkins Linux amd64 Build #1765 [push] run with runtime dim (#8... started at 13:04

Jenkins Linux ppc64le Build #903 [push] run with runtime dim (#8... started at 14:10

Jenkins Linux s390x Build #1763 [push] run with runtime dim (#8... passed after 47 min

Jenkins Linux amd64 Build #1765 [push] run with runtime dim (#8... passed after 57 min

Jenkins Linux ppc64le Build #903 [push] run with runtime dim (#8... passed after 1 hr 5 min


Get file path relative to source file

A fix for #2 (I hope).  As an example, here was my gulpfile.js:
gulp.task('less.select2', function() {
	return gulp.src('bower_components/select2/select2.css')
		.pipe(data_uri())
		.pipe(gulp.dest('build/css'));
});

The directory structure looks like:
project
+-- gulpfile.js
+-- bower_components
    +-- select2
        +-- select2.css
        +-- select2.png

select2.css has:
.whatever {
    ....
    background: url('select2.png') right top no-repeat;
}

And the output errors are:
[gulp] gulp-data-uri: file not found and it is passed (/Users/admin/Documents/projectselect2.png)

So, I don't think your plugin was looking determining the source of the input file correctly.
This pull request fixes it so that it takes the path of the source file, and uses that as the base for any URLs found in the source file.  This is my first time working on a gulp plug-in, so apologies if I've done something wrong.  Specifically, I don't know if accessing file.path is kosher, or if there is a better way.

Looks like the project has been abandonned.


PIL Image.open doesn't work if np_open is imported

When using PIL.Image to open a tiff file, if np_open is imported, a UnicodeDecodeError is raised. It seems that the sif_parser tries to load the image instead of PIL.
from sif_parser import np_open
from PIL import Image
tifim = Image.open('LED.tif')

Thank you. sif_parser has supported the override of PIL.Image, but it is not working.
Maybe we can just drop this feature now.

I just realized that the problem I reported last week is related to this one. In my code, I open an image by using matplotlib and I got the same UnicodeDecodeError. However, I don't have the same issue when I import sif_parser inside a function, it works properly by doing that.


Update dependencies

Current dependencies:
"react": "^15.1.0",
"react-dom": "^15.1.0",
"onsenui": "^2.0.0-rc.15",
"react-onsenui": "^0.7.3",

Latest versions:
"react": "^15.3.2",
"react-dom": "^15.3.2",
"onsenui": "^2.3.1",
"react-onsenui": "^1.3.3",

While the react and react-dom dependencies are relatively ok, the onsenui and react-onsenui deps are critically out of date.

Closed by #6.


/validator/block endpoint

GET /validator/block endpoint
Produce a new block, without a signature.
Lighthouse: https://lighthouse-book.sigmaprime.io/http_validator.html#validatorblock
Prysm: https://api.prylabs.net/#/BeaconNodeValidator/GetBlock

talk to Centaur about whether creation of an unsigned block is possible at the moment.

From Adrian:

BlockProposalUtil is basically what you’re looking for - just need to extract a method from createNewBlock that returns before the last couple of lines (then work out the randao issue).
The randao reveal is just the epoch number signed by the block producer.  So the beacon chain client can’t know it because it requires the validator private key.

the request information includes randao_reveal, and slot the block is for.
The root state is from the requested slot -1 (ie. the slot before the one requested)


Help about schedule

Hi, is there any way to get schedule: 'https://stats.nba.com/schedule/' for like a month..
i can only get daily games with:
NBA.stats.scoreboard({gameDate: "10/01/2018"}).then(console.log);
please help

this endpoint seems to send back the entire season's schedule: https://data.nba.com/data/10s/v2015/json/mobile_teams/nba/2018/league/00_full_schedule_week.json

this endpoint seems to send back the entire season's schedule: https://data.nba.com/data/10s/v2015/json/mobile_teams/nba/2018/league/00_full_schedule_week.json

exactly what i need.. Thank you


chore: add gardener logo variants

How to categorize this PR?
/area identifiers:    open-source
/kind identifiers:    enhancementt

What this PR does / why we need it:
This PR adds the Gardener prorject logos in different variants.
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Release note:

/kind enhancement
/lgtm
/approve
Nice!


Low-memory test failing

It looks like a recent merge has started causing the low memory tests to fail.
https://github.com/microsoft/ebpf-for-windows/actions/runs/3432400324/jobs/5721814835
Needs further investigation.

Fixed by #1606


How does the model deal with images of different sizes

e.g a 800 * 1200 picture

I think I figured it out,
change the input_size into (None, None, channels),
change the tail of the model:
final = Reshape((grid_h, grid_w, classes, info))(conv)
to:
final = Lambda(lambda x: K.expand_dims(x, 3))(conv)
then retrain the model.
And a new problem has arisen,the preprocess needs to be adjusted.
Can anyone offer some ideas?I'm staill stuck on it.Thanks.


MSID: 95318 Version: 2 DOI: 10.1101/2<IP_ADDRESS>4004

MSID: 95318
Version: 2
Preprint DOI: https://doi.org/10.1101/2<IP_ADDRESS>4004
Step 1. Awaiting reviews
Editorial to post reviews via hypothesis
Useful links:

DocMap: https://data-hub-api.elifesciences.org/enhanced-preprints/docmaps/v2/by-publisher/elife/get-by-manuscript-id?manuscript_id=95318
New model tracking: https://docs.google.com/spreadsheets/d/1_fHaoOy7hjyocptKtVJRijeNpUY4hBS7Ck_aVmx6ZJk/
Reviews on sciety: https://sciety.org/articles/activity/10.1101/2<IP_ADDRESS>4004

For trouble shooting (e.g. no Docmaps available):

DocMap issue addressing: https://miro.com/app/board/uXjVNCwK6EI=/
Explore DataHub DocMaps API: https://lookerstudio.google.com/reporting/4c2f0368-babb-4beb-b5b3-497e7e7b0f08/page/ejphD
Unmatched submissions and preprints: https://lookerstudio.google.com/u/0/reporting/9f86204f-3bf7-477c-9b18-5c5ef141bf69/page/p_gxi57ha93c
Unmatched manuscripts spreadsheet: https://docs.google.com/spreadsheets/d/15QcK8w-ssB7109RQEDtFpJPZ0J5HTGxoHa_2TtpMBbg/edit#gid=1336081641

Step 2. Preview reviewed preprint
Production QC content ahead of publication
Instructions:

QC preview: https://prod--epp.elifesciences.org/previews/95318v2
Update ticket with any problems (add blocked label)
When QC OK, add QC OK label to ticket and add publication date and time to https://docs.google.com/spreadsheets/d/1amAlKvdLcaDp5W8Z8g77NmkwbMF5n_u89ArSqPMO8jg
Move card to next column
(At end of the day post link in #enhanced-preprint and ask for PDF to be generated)

Useful links:

Preprint DOI :  https://doi.org/10.1101/2<IP_ADDRESS>4004
Confirm reviews returned by EPP: https://prod--epp.elifesciences.org/api/reviewed-preprints/95318/v2/reviews
To update the MECA path in the docmap: https://docs.google.com/spreadsheets/d/1mctCQuNFBjSn97Lihy7_vBO6z7-N-oqyLv4clyi6zHg

Step 3: Awaiting search reindex
This step adds the reviewed preprint to the homepage: https://elifesciences.org
The search reindex is triggered once an hour. We need the reviewed preprint to be indexed as the search application serves the journal homepage.
Useful links:

Jenkins pipeline to reindex search can be triggered sooner or monitored here: https://alfred.elifesciences.org/job/process/job/process-reindex-reviewed-preprints/

Step 4: Published! PDF requested
Waiting for PDF to be generated
Useful links:

PDF tracking: https://docs.google.com/spreadsheets/d/106_XeDjmuBae7gexOTNzg60lapeqjl2aRn9DzupGyS8/

Step 5: Introduce PDF to data folder and git repo
Upload PDF to relevent folder in git repo https://github.com/elifesciences/enhanced-preprints-data/
Step 6: Done!

[ ] Kettle is on!

warn: [duplicate-author-test] There is more than one author with the following name(s) - Jinyao Zhao - which is very likely be incorrect.
warn: [article-email-corresp-author-count-equivalence] The number of corresponding authors (3: Xiaojie Li; Yangfan Qi; Yang Wang) is not equal to the number of distinct email addresses (2<EMAIL_ADDRESS>yangfanqi@dmu.edu.cn). Is this correct?

Hi @acollings, the author response appears to have eLife assessment as its heading?

Thanks @rkcook312: I've fixed that!


Enable Storage Explorer to work with Azurite

See https://github.com/Azure/Azurite.

Merged into master


Add highlighting if conditions in extended lua mode

Highlights "if", "else", "elseif", "then", "end" in if conditions.

I'm doing this as an experiment. I'm not sure if it's actually useful.
If we add highlighting if conditions, then it may be useful to also highlight functions and for loops (or at least add them to levels.lua). This way we get highlighting similar to languages with curly braces for scopes, but highlight Lua keywords instead of curly braces.
Let me know what you think.
The tests are passing

This seems too much - I think I'll revert https://github.com/p00f/nvim-ts-rainbow/commit/0c19f1eda263a1d44b6741e727fef223886c80a8 too

Sure, I understand. I wasn't sold on this idea either. Thanks for your opinion!


More relaxed require-subclass option

Currently slotscheck has the require-subclass option, which enforces the use of __slots__ wherever slotted classes are subclassed. However, this greatly depends on whether builtin/extension classes are considered "slotted". For example, object has no __dict__. Flagging all direct object subclasses would essentially require slots for all classes in a module (that don't subclass from a non-slot class outside the module).

I think it should be if someone explicitly declares slots in a parent class.
class Animal:
    __slots__ = ('colour',)

class Dog(Animal):
    pass  # This is likely to be a mistake.

You could do something like check whether the class and parent class exist in the same module.


feat: provide function empty_dir() like k8s?

    Shall we provide function `empty_dir()` like k8s?

Originally posted by @VoVAllen in https://github.com/tensorchord/envd/pull/1185#discussion_r1020854486

I think we need empty dir for some reason:

Store temporary files
Store files with the same life cycle as env
Store server content like tensorboard logs and event


observations/map broken

Ex: (webserver, as of 757fb12)

Observation Pattern Search for region:"Mendocino Co.\, California\, USA" (Observations in Mendocino County).
Result: 40 pages of Observations

Click Show Map
Result:

Go back in browser.
Result: 40 pages of Obss, but with the loading icon:

Perhaps due to the large # of obss returned? It works fine for finer searches, e.g., this pattern search
region:"Point Arena\, Mendocino Co.\, California\, USA"

Igor Safonov reports it's broken for Observations of Amoenoboletus+weberi, which has only 14 Observations.
https://mushroomobserver.org/observations?pattern=Amoenoboletus+weberi
We've also had a report about map issues from Crystal.

@nimmolo, @mo-nathan:
Maps for Locations are completely broken on the webserver. There are no maps on either show Location or edit Location.
However maps do appear for Locations when I run locally.

The issue is that none of the JS is loading, currently.
It may have something to do with a tiny bug in my new stimulus class inheritance - the way the file is loaded, specifically. Researching.

Fixed. See https://mushroomobserver.slack.com/archives/C040TH9FV/p1722310511651789


Update Javadoc comments to accurately reflect feature functionality

Codecov Report
Base: 60.30% // Head: 59.63% // Decreases project coverage by -0.67% :warning:

Coverage data is based on head (9f915c5) compared to base (1cb4bf8).
Patch has no changes to coverable lines.

Additional details and impacted files
@@             Coverage Diff              @@
##             master     #186      +/-   ##
============================================
- Coverage     60.30%   59.63%   -0.68%
  Complexity      600      600
============================================
  Files           112      112
  Lines          2300     2326      +26
  Branches        281      283       +2
============================================
  Hits           1387     1387
- Misses          799      825      +26
  Partials        114      114

Impacted Files
Coverage Δ

.../seedu/address/logic/commands/ListTaskCommand.java
100.00% <ø> (ø)

.../java/seedu/address/model/util/SampleDataUtil.java
7.69% <0.00%> (-11.06%)
:arrow_down:

src/main/java/seedu/address/ui/TaskCard.java
0.00% <0.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.


Keras CNN with vector (or matrix) output ?

Hi everyone. I have an issue i couldnt find on the internet. Also i tried a lot different models to find solution, but i coulndt create a model with vector output.
Let we have 2589 images with shape 1287 rows and 69 columns (Actually these arent images, but we can see as images.).
Also each images has an vector output with shape 1287x1. Actually each row of input has a output value range between 1-7. I mean, for example for a given image ouput is like [1,2,1,5,6,....1,7,3,5,4] (1287x1)
Here my codes :
X_train = train_input.reshape(train_input.shape[0],train_input.shape[1],train_input.shape[2],1)
Xs = X_train.shape

ys = y_train.shape

input_layer     = Input(shape=(Xs[1],Xs[2],Xs[3]))
conv1           = Conv2D(64,kernel_size=(3,3),padding="same",activation="relu")(input_layer)
pool1           = MaxPooling2D(pool_size=(2,2),padding="same")(conv1)
flat            = Flatten()(pool1)
hidden1         = Dense(100, activation='relu')(flat)
output_layer    = Dense(1287, activation='sigmoid')(hidden1)
model           = Model(inputs=input_layer, outputs=output_layer)

print Xs
print ys
print model.summary()
model.compile(loss='categorical_crossentropy', optimizer='adam')
model.fit(X_train,y_train,epochs=10)

Output image below :

Firstly i used softmax output with one-hot encoded class labels. But when i one-hot encoded classes, y_train becomes matrix.
How i can model Keras CNN with vector output like above ? I tried losses to "MSE", but im not sure its true.
I hope u can help me. Thanks very much

First of all - if you've a binary problem (0\1) (hot-dog\not hot-dog) then you should use sigmoid
Since your classification problem contains more then 1 class you should use softmax activation because you have categorical classes (0,1,2,3 ...) (make sure you offset the classes to be 0-6 and not 1-7)
Then you have to understand the fundamentals of what you're trying to do, that is - for every of the 1287 examples you've to assign a Probability of being a specific class (in case of 7 categories your final output should be at shape of (None, 1287, 7) - so your last Dense filter should have 1287*7 filters and then you need to reshape it to (None, 1287, 7).
Also, when your output is not a single prediction, but contain many classes you have to set your model to do timestep-wise sample in the compilation, check here: https://keras.io/models/model/#compile
anyway, I've created a code for you that executes this model:
import keras
from keras import backend as K
from keras.layers import Conv2D, Input, MaxPooling2D, Flatten, Dense, Reshape
import numpy as np
from keras.models import Model
output_nodes = 1287
n_classes = 7
X_train = np.random.random((100, 1287, 69, 1)).astype('float32')

y_train = np.random.randint(0, n_classes, size=(100, output_nodes, 1)).astype('float32')

Xs = X_train.shape

ys = y_train.shape

input_layer     = Input(shape=(Xs[1],Xs[2],Xs[3]))
conv1           = Conv2D(16,3,padding="same",activation="relu")(input_layer)
pool1           = MaxPooling2D(pool_size=(2,2),padding="same")(conv1)
flat            = Flatten()(pool1)
hidden1         = Dense(10, activation='relu')(flat)
output_layer    = Dense(output_nodes*n_classes, activation='softmax')(hidden1)
output_reshape  = Reshape((output_nodes, n_classes))(output_layer)
model           = Model(inputs=input_layer, outputs=output_reshape)
print(model.summary())
model.compile(loss='sparse_categorical_crossentropy', optimizer='adam', sample_weight_mode='temporal')
model.fit(X_train,y_train,batch_size=2,epochs=10)

You don't have to do one-hot encoding to train multi-class classification model. For this purpose you can use "sparse_categorical_crossentropy" and it'll do it for you.
P.S. your model is VERY computationally expensive and has 145M parameters, and it will almost certainly over-fit. I suggest you to remove the "Dense" layers and change them with Conv2 layers with stride=(1,3) and padding='valid' so you'll end-up with output shape of (1287,7)

@Golbstein  thanks very much for reply. I'll try this model . But can i ask a small question. When i predict test data, this model gives me probabality of each row im i right ?  I mean when i use model.predict(Xtest[:10]) , this returns me an array with shape 10x1287x7? And each 1287x7 has probablities ?

@HerocypheR When i predict test data, this model gives me probabality of each row im i right ? I mean when i use model.predict(Xtest[:10]) , this returns me an array with shape 10x1287x7? And each 1287x7 has probablities ?

Yes. And in order to get the predicted labels you should arg-max it:
preds = model.predict(Xtest[:10])
pred_labels = np.argmax(preds, axis=-1)

@Golbstein Thanks very much, im greateful. Im closing the issue. its solved.

please share the correct version of  below codes for (output_nodes x n_classes) matrix
input_layer     = Input(shape=(Xs[1],Xs[2],Xs[3]))
conv1           = Conv2D(16,3,padding="same",activation="relu")(input_layer)
pool1           = MaxPooling2D(pool_size=(2,2),padding="same")(conv1)
flat            = Flatten()(pool1)
hidden1         = Dense(10, activation='relu')(flat)
output_layer    = Dense(output_nodes*n_classes, activation='softmax')(hidden1)
output_reshape  = Reshape((output_nodes, n_classes))(output_layer)
model           = Model(inputs=input_layer, outputs=output_reshape)

@Golbstein
please share the correct version of below codes for (output_nodes x n_classes) matrix
input_layer = Input(shape=(Xs[1],Xs[2],Xs[3]))
conv1 = Conv2D(16,3,padding="same",activation="relu")(input_layer)
pool1 = MaxPooling2D(pool_size=(2,2),padding="same")(conv1)
flat = Flatten()(pool1)
hidden1 = Dense(10, activation='relu')(flat)
output_layer = Dense(output_nodes*n_classes, activation='softmax')(hidden1)
output_reshape = Reshape((output_nodes, n_classes))(output_layer)
model = Model(inputs=input_layer, outputs=output_reshape)

@Golbstein
please share the correct version of below codes for (output_nodes x n_classes) matrix without one hot encoding
input_layer = Input(shape=(Xs[1],Xs[2],Xs[3]))
conv1 = Conv2D(16,3,padding="same",activation="relu")(input_layer)
pool1 = MaxPooling2D(pool_size=(2,2),padding="same")(conv1)
flat = Flatten()(pool1)
hidden1 = Dense(10, activation='relu')(flat)
output_layer = Dense(output_nodes*n_classes, activation='softmax')(hidden1)
output_reshape = Reshape((output_nodes, n_classes))(output_layer)
model = Model(inputs=input_layer, outputs=output_reshape)


Vue.js support?

Is it possible to use this plugin with Vue.js?
I got it to work as prototype and display the current language but won't get it to work reactive.
import Lang from 'lang.js'
import messages from './messages'
import { Vue } from './../bootstrap'

const lang = new Lang({
    messages: messages,
    locale: 'en',
    fallback: 'en'
});

Vue.prototype.lang = lang

Hey @andre-dw! I have never used it directly with Vue, but I have some friends that have used it as follow:
Vue.mixin({
   methods: {
        lang(key) {
            return window.Lang.get(key);
        }
   }
});

I'm not sure if this what you may need. However, I'm interested on integrating this lib with vue, as Laravel developer seems to be more attracted to Vue. ;)

@rmariuzzo Thanks! You got me started writing my own small plugin for this.
locales.js
import Lang from 'lang.js'

const plugin = {
    install(Vue, options) {

        // Default options
        const Locale = options.locale || 'en'
        const fallbackLocale = options.fallback || 'en'
        const messages = options.messages || {}

        const lang = new Lang({
            messages: messages,
            locale: Locale,
            fallback: fallbackLocale
        })

        Object.defineProperty(Vue.prototype, '$lang', {
            get:function () { return this.$root._lang }
        });

        Vue.mixin({
            beforeCreate () {
                Vue.util.defineReactive(this, '_lang', lang);
            },
            methods: {
                 trans (key) {
                     return lang.get(key);
                 }
            }
        });
    }
};

export default plugin;

index.js
import i18n from './locales'
import messages from './locales/messages.js'
Vue.use(i18n, {
  messages: messages,
  locale: 'en',
  fallback: 'en'
})


Issue #3606 fixed

BUGS:
issue: #3606
For things other than bugs:

Describe that thing in very short line, word limit is 200.
Otherwise use issue #id if the issue was filed as feature request.

@vishal-webkul
https://prnt.sc/ts7bfv- should display 5 star, 4 dark one light in  this case as we are showing in velocity- https://prnt.sc/ts7bzo


CVE in Protobuf 3.20.1 (CVE-2022-1941)

System Info
The optimum[onnxruntime] package currently pins the protobuf dependency to 3.20.1:
https://github.com/huggingface/optimum/blob/2dc43439e26843d140562e461ef49693b03850a2/setup.py#L37
However, last year a CVE was published which affects this version of protobuf (CVE-2022-1941). According to the CVE, protobuf==3.20.2 should fix this so it would be good to bump the version constrain in Optimum's setup.py.
Who can help?
@JingyaHuang @echarlaix
Information

[X] The official example scripts
[ ] My own modified scripts

Tasks

[X] An officially supported task in the examples folder (such as GLUE/SQuAD, ...)
[ ] My own task or dataset (give details below)

Reproduction

Install optimum[onnxruntime]
Validate that it installs protobuf==3.20.1

Expected behavior
A CVE-free version of protobuf gets installed (e.g. protobuf==3.20.2)

Thank you for the report! @mfuntowicz @echarlaix @michaelbenayoun is there any reason we pinned to 3.20.1?


Opener not appearing in Home app; only 2 entries in log under NB

Trying to set up NB for first use. All that appears in the Homebridge log from NB are:
[6/20/2022, 2:39:07 PM] [Nuki] hardware: iMac (Retina 4K, 21.5-inch, 2019)
[6/20/2022, 2:39:07 PM] [Nuki] os: macOS Monterey 12.4.0 (21F79)
What am I missing here?

there should be more, at least an ID message for the plugin version and a message to press the button on your Nuki bridge, so Homebridge NB can obtain the API token.
What is the output of nb discover?  Does it list your Nuki bridge?  And after you power-cycle the bridge?  If still not, make sure the API is enabled and it can connect to api.nuki.io to announce its existence and Homebridge NB can discover it (unfortunately, Nuki does not provide local discovery).

What is the output of nb discover? Does it list your Nuki bridge? And after you power-cycle the bridge? If still not, make sure the API is enabled and it can connect to api.nuki.io to announce its existence and Homebridge NB can discover it (unfortunately, Nuki does not provide local discovery).
nb discover returns [], even after power-cycling the Bridge. Can you clarify which API should be enabled? There's the one in Nuki Web, and there's the HTTP API in the app. Both are active. Here's what I've got in the app

:


Revert "Voice input doc"

Reverts MicrosoftDocs/mixed-reality#2139

Docs Build status updates of commit 71c7f35:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

mixed-reality-docs/TOC.md
:white_check_mark:Succeeded
View

mixed-reality-docs/images/unreal/engine-input.png
:white_check_mark:Succeeded

mixed-reality-docs/images/unreal/input-action-bp.png
:white_check_mark:Succeeded

mixed-reality-docs/images/unreal/speech-recognition-settings.png
:white_check_mark:Succeeded

mixed-reality-docs/unreal-voice-input.md
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


Caching HTMLResponse

I wanted to cache the html response so that next http requests will be served from cache.
I tried using the @cache decorator to cache the HTMLResponse but it does not work, does fastapi-cache cache html response?
@app.get('/', response_class=HTMLResponse)
@cache(expire=60*60*24)
async def root(request: Request):
    return templates.TemplateResponse('index.html', {
        'request': request,
    })

The error i got is:
File "/Users/rb/Project/newproject/venv/lib/python3.9/site-packages/fastapi/encoders.py", line 160, in jsonable_encoder
    raise ValueError(errors)
ValueError: [TypeError("'property' object is not iterable"), TypeError('vars() argument must have __dict__ attribute')]

@ronbeltran Hi, The cache decorator uses JsonCoder by default, Cached template files are not supported.
But you have two schemes.

the first scheme uses jinja2's cache, which already caches 400 templates by default, Details cache_size

Another scheme inherits Coder to implement encode and decode methods

Another scheme example:
from starlette.templating import _TemplateResponse as TemplateResponse

class PickleCoder(Coder):
    @classmethod
    def encode(cls, value: Any):
        if isinstance(value, TemplateResponse):
            value = value.body
        return pickle.dumps(value)

    @classmethod
    def decode(cls, value: Any):
        return pickle.loads(value)

@app.get('/', response_class=HTMLResponse)
@cache(expire=60*60*24, coder=PickleCoder)
async def root(request: Request):
    return templates.TemplateResponse('index.html', {
        'request': request,
    })

It should be noted that, The code uses browser cache through ETag, and in most cases it may not use the cache in redis or other backend.

@long2ice Hi, are there any plans to support cached templates?

The TemplateResponse class is really just a regular Response with template and context attributes. A better solution would have been to clear the .template and .context attributes, and / or replace it with a regular Response() object (the template and context are only used if the http.response.debug extension flag is set, which is normally only done in a test context.
As it stands, the cached response no longer has the correct content type header set, as that's lost when you remove the response object. I'll be looking into reworking how FastAPI-Cache2 handles response objects for #140.

At any  rate, there was a PR to address this issue directly, so I'm closing this one.


[bug] Component not re-rendered when component props is changed, only when slot props is changed

Suppose you have created Modal component using react-slot-component
and you want to toggle it's state using a button
const [isOpen, setIsOpen] = useState(false);

<button onClick={() => setIsOpen(true)}>Show modal</button>
<Modal isOpen={isOpen}>
  <Modal.Body>Hello</Modal.Body>
</Modal>

Strangely it won't work as expected, only if it's slot props changed it will re-render. (E.g. Modal.Body).
code below will work as expected.
const [isOpen, setIsOpen] = useState(false);

<button onClick={() => setIsOpen(true)}>Show modal</button>
<Modal isOpen={isOpen}>
  <Modal.Body isOpen={isOpen}>Hello</Modal.Body>
</Modal>

I think it's because of createResultComponent memo function.
So i tried to modify the source code like below, it works, is this patch correct?
const { children: prevPropsChildren, slotKeys: prevPropsSlotKeys, ...prevOtherProps } = prevProps;
const { children: nextPropsChildren, slotKeys: nextPropsSlotKeys, ...nextOtherProps } = nextProps;

const prevSlots = getSlotProps(prevPropsChildren, prevPropsSlotKeys);
const nextSlots = getSlotProps(nextPropsChildren, nextPropsSlotKeys);
const prevCleanChildren = getCleanChildren(prevPropsChildren, prevPropsSlotKeys);
const nextCleanChildren = getCleanChildren(nextPropsChildren, nextPropsSlotKeys);
return (
  deepEq(prevOtherProps, nextOtherProps) &&
  deepEq(prevSlots, nextSlots) &&
  deepEq(prevCleanChildren, nextCleanChildren)
);

Was fixed in version 2


Adds support for customization of name shown in upper right

Before this, it would only show the email address.  Now user can change what it says.
It currently has an issue where the change doesn't show up until the page is reloaded which I suspect is due to accessing it via Stores/User/Account vs. Stores/User/Settings.  But I tried only using one of them, but it would unceremoniously log me out after logging in.  Clearly I'm missing something...

I do not understand why you need it?

It currently has an issue where the change doesn't show up until the page is reloaded which
I suspect is due to accessing it via Stores/User/Account vs. Stores/User/Settings.
But I tried only using one of them, but it would unceremoniously
log me out after logging in. Clearly I'm missing something...

You may try to read http://knockoutjs.com/ and understand who it works.

Useful for some non-technical users, where they would rather see their name, or something other than the email address that's more meaningful to them in the box to the left of the "top-system-dropdown-id" button.

Also fixed things so it doesn't require the page reload to reflect the change.


BF: Empty assets should not serialize to literal '{}'

New empty assets would have a literal "{}" as their content (and diffs would also include the "{}").
This removes the spurious {}.
My first approach was to pass None or '' to yaml.dump(), but both serialized to non-empty strings. So the only option is to explicitly return what an empty file should be.
I was unsure where to put the tests, but I settled on edit partly by choice and partly by accident. This bug was already inadvertently documented in those tests. And I do think that editing with printf is a relatively easy and intuitive place to verify that the content is precisely what we expect.
close #663

LGTM!


feat: support 64 bit integers in isasim

Pull Request Test Coverage Report for Build<PHONE_NUMBER>5
Details

45 of 53 (84.91%)  changed or added relevant lines in 3 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage decreased (-0.06%) to 86.518%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

isasim/src/simulator.rs
33
41
80.49%

Totals

Change from base Build<PHONE_NUMBER>3:
-0.06%

Covered Lines:
3215

Relevant Lines:
3716

💛  - Coveralls


Connection failed/refused when connecting to local PostgreSQL Database

I'm trying to connect Superset to my local PostreSQL database via this URI:
postgresql://superset_user:password@localhost/superset
When I test the connection, I get the following error:
ERROR: {"error": "Connection failed!\n\nThe error message returned was:\n(psycopg2.OperationalError) could not connect to server: Connection refused\n\tIs the server running on host \"localhost\" (<IP_ADDRESS>) and accepting\n\tTCP/IP connections on port 5432?\ncould not connect to server: Cannot assign requested address\n\tIs the server running on host \"localhost\" (::1) and accepting\n\tTCP/IP connections on port 5432?\n\n(Background on this error at: http://sqlalche.me/e/e3q8)", "stacktrace": "Traceback (most recent call last):\n  File \"/usr/local/lib/python3.6/site-packages/sqlalchemy/engine/base.py\", line 2265, in _wrap_pool_connect\n    return fn()\n  File \"/usr/local/lib/python3.6/site-packages/sqlalchemy/pool/base.py\", line 303, in unique_connection\n    return _ConnectionFairy._checkout(self)\n  File \"/usr/local/lib/python3.6/site-packages/sqlalchemy/pool/base.py\", line 760, in _checkout\n    fairy = _ConnectionRecord.checkout(pool)\n  File \"/usr/local/lib/python3.6/site-packages/sqlalchemy/pool/base.py\", line 492, in checkout\n    rec = pool._do_get()\n  File \"/usr/local/lib/python3.6/site-packages/sqlalchemy/pool/impl.py\", line 238, in _do_get\n    return self._create_connection()\n  File \"/usr/local/lib/python3.6/site-packages/sqlalchemy/pool/base.py\", line 308, in _create_connection\n    return _ConnectionRecord(self)\n  File \"/usr/local/lib/python3.6/site-packages/sqlalchemy/pool/base.py\", line 437, in __init__\n    self.__connect(first_connect_check=True)\n  File \"/usr/local/lib/python3.6/site-packages/sqlalchemy/pool/base.py\", line 639, in __connect\n    connection = pool._invoke_creator(self)\n  File \"/usr/local/lib/python3.6/site-packages/sqlalchemy/engine/strategies.py\", line 114, in ...
I tried all the variations of host:port such as <IP_ADDRESS>:5432, but the connection still fails.
The \conninfo output displays  You are connected to database "superset" as user "superset_user" via socket in "/var/run/postgresql" at port "5432"., so this should theoretically work.

Try<EMAIL_ADDRESS>(This will force IPv4). Otherwise, are you certain that you can connect to it? psql -h <IP_ADDRESS> -U superset_user superset

@craig-rueda hi, I mention in the end of the question that I tried that host:port. I can also connect to it via psql

What command are you using to start superset? Is this in docker?

@craig-rueda hi, yes I start superset via docker-compose up

There's your problem. In docker's overlay network, "localhost" will refer to the superset container only. If you want to access postgres on your machine, you will need to connect to host.docker.internal (on Mac). Why not just use the included postgres from the docker-compose stack?

Unfortunately that didn't work for me (Ubuntu 18.04).
I haven't used the postgres from the docker-compose stack because I haven't found out if/how it's possible to add a new table to that database programmatically.

Just as a note to anyone who stumbles on this, the address for the superset backend db is db:5432 in the SQL URI string for sqlalchemy, and not localhost. I'm not sure why that's the case, and inspecting the docker network for the precise IP address doesn't resolve when trying to add the database as a Superset data source. Somewhere during the compose process, I guess superset is configured to see it's own network at the address of db rather than localhost.


Smoke Tests and Aggregate Reports should have a way to configure who gets failure notifications

Ideal outcome: we have a folder in the CODEOWNERS file that people can add their GitHub ID to and subscribe to the failure notifications.  This would mirror how @danieljurek set up the failure notifications for all the other live test pipelines.

Assigning to @weshaggard who can close this. it was addressed in his PR -- https://github.com/Azure/azure-sdk-tools/pull/1749

Yes the support is there and I have added owners for the aggregate-reports pipelines, I believe we already added them for smoke-tests before.


ApiManagement : Moved all definitions to a common file for automation

Latest improvements:
MSFT employees can try out our new experience at OpenAPI Hub  - one location for using our validation tools and finding your workflow.

Contribution checklist:

[x] I have reviewed the documentation for the workflow.
[x] Validation tools were run on swagger spec(s) and have all been fixed in this PR.
[ ] The OpenAPI Hub was used for checking validation status and next steps.

ARM API Review Checklist

[ ] Service team MUST add the "WaitForARMFeedback" label if the management plane API changes fall into one of the below categories.
adding/removing APIs.
adding/removing properties.
adding/removing API-version.
adding a new service in Azure.

Failure to comply may result in delays for manifest application. Note this does not apply to data plane APIs.

[ ] If you are blocked on ARM review and want to get the PR merged urgently, please get the ARM oncall for reviews (RP Manifest Approvers team under Azure Resource Manager service) from IcM and reach out to them.
Please follow the link to find more details on API review process.

Can one of the admins verify this patch?

Automation for azure-sdk-for-go

Automation for azure-sdk-for-java

Automation for azure-sdk-for-python

Automation for azure-sdk-for-ruby

Automation for azure-sdk-for-js

Automation for azure-sdk-for-net
A PR has been created for you:
https://github.com/azure/azure-sdk-for-net/pull/5679
.NET SDK Commits:
https://github.com/adxsdknet/azure-sdk-for-net/pull/5679/commits/ce2e0688480bfdf9d4ee3f8b03322b690145ef47


Off Policy Trainer refactoring

Refactored the Off Policy Trainer to reduce code complexity and readability. Let me know if this looks good.

Can be merged after #289


Installation procedure

Command to install differential datalog binary.

We now support two ways to install DDlog: stack install when building from sources and by downloading a binary release (#148)


NamedArguments: fix false positive with java method call

Fixes #3289

Are we OK about removing features of detekt without type solving? Or do we want to keep the mixed rules? I prefer no mix.

Are we OK about removing features of detekt without type solving? Or do we want to keep the mixed rules? I prefer no mix.

I'm fine with this change. I believe we should push users to use Type Resolution + restrict the rules with mixed behavior (#2994). This rule is going to become a Type Resolution only so it 👍  on my end.

I agree. This shouldn't be a mixed rule.
The goal is to stay away from that, since type and symbol solving should become stable with detekt v2.0.0.


Regarding fees

some dapp are charging much fess
Cant judge how fess will be return
Pls fix this

Some dex for same swap .10 cent some 1 doller
Example syncswap lower fess and izumi pancakeswap charging 1 doller

The gas fees influenced by the state-diff-based data availability and the costs of publishing the contract code

Some dex for same swap .10 cent some 1 doller Example syncswap lower fess and izumi pancakeswap charging 1 doller

So true but many factors such as availability influences fees.

But this is impacting user
Also i am hisitating explore more dapp on zk
Because unstable fess on every protocal
Its 3x to 10× diffrence

Yes  I was sending a token recently and it cost me 3 bucks in fee
I was making transactions on even syncswap it showed few cents in fee but onchain it was  dollar nd 50cents

Overall tho zk is my favorite mhen I love love trading nfts here I'll build my casino here 🫶🏽
Sending love from Africa❤
Good job team


Multiple events per transaction

Hi! I'm seeing multiple runs of a Google Cloud Function created by RevenueCat Extension.

RevenueCat Integration creates a Google Cloud function
Min instances for it is 0
When RevenueCat posts an event it make GCP Function start from cold
The start takes too long so someone (RevenueCat?) detects a timeout
RevenueCat sends a second request (to already pre-warmed function from the first call)
The first request actually was not cancelled, just delayed.
THe event from the first request start being processed
The event from the second requests start being processed

Thus I have a situation when a single RevenueCat event dispatches two events both of which got handled.
Can we make RevenueCat wait for the cold start longer? Can we set a min instances for a Google Cloud Function through extension settings?

Hi @RohovDmytro,
Thanks for the detailed explanation.
It sounds like the issue you’re describing is related to cold starts and duplicate processing of events. However, I would like to understand why this is an issue for you. The extension function should handle this by using unique identifiers (UUIDs) for each event, preventing duplicates when storing events and customers in Firestore Collections.
Regarding the min-instances parameter, you are correct that we haven’t included that parameter in the extension definition yet. However, we can add it if needed. Please note that setting min-instances to a value greater than 0 will result in a monthly fee for the function, as it will keep instances warm even when not in use.
If you’re still experiencing problems with duplicate events, could you provide more details on how this is affecting you? This will help us better understand and address the issue.


New version: Anki.Anki version 24.04.1

Pull request has been created with WinGet Updater :rocket:
Microsoft Reviewers: Open in CodeFlow

Hi @damn-good-b0t,

This PR's version number 24.4.1 has 3 parameters (sets of numbers between dots - major, minor, etc), which is greater than the current manifest's version 24.04, which has 2 parameters.

Does this PR's version number exactly match the version reported in the Apps & features Settings page? (Feel free to attach a screenshot.)
(Automated response - build 880)

Hi @stephengillie ,
Yes, it does. :)


meson: Fallback to 'opengl' when 'GL' is not found.

This patch adds 'opengl' as a fallback to 'GL' for dependency lookup, to link with libglvnd configured without X11 support.
For OpenGL, libglvnd provides two pkg-config files: gl.pc with GLX support while opengl.pc not.  When building without X11 support, the former won't be installed.
Describe your PR, what does it fix/add?
Is there anything you want to mention? (unchecked code, possible bugs, found problems, breaking compatibility, etc.)
N
Is it ready for merging, or does it need work?
It's ready for merging.

@fufexan


Feature request: Expose tool pose from RT connection in ROS

The standard URDF available in ROS Industrial (https://github.com/ros-industrial/universal_robot/blob/indigo-devel/ur_description/urdf/ur5.urdf.xacro) does not give a perfect transform between base_link and ee_link, because each UR is calibrated individually and the URDF assumes nominal values for link dimensions, etc. This leads to an error in the order of [mm].
Extracting the calibrated DH parameters from a UR robot and use that to build a more accurate URDF model is possible but rather cumbersome and still does not return an exact solution (mismatch is about 0.1 mm in our experiments).
I think it would be possible to expose the tool pose that UR sends over the RT connection in ROS either as a geomtry_msg/PoseStamped topic or directly via /tf.  That way, the URDF model can still be used for collision checking and visualization, but the more accurate tool pose can be used when calculating pick positions, etc.
Is there interest to expand the ur_modern_driver with this?

I was not aware of this discrepancy, but it definitely sounds like a really useful feature.
The information is already available and should thus be easy to publish via tf.
The best way to implement it would obviously be to have some parameters specifying the root and child link names, as ee_link cannot be reused (otherwise the driver and robot_state_publisher would constantly publish opposing information). Do you have any good suggestions for a default name for the end effector link?

Extracting the calibrated DH parameters from a UR robot and use that to build a more accurate URDF model is possible but rather cumbersome and still does not return an exact solution (mismatch is about 0.1 mm in our experiments).

Do you have any idea of why this happens @sepjansen?
Having an accurate URDF is a better option, if feasible. Otherwise application code relying on the URDF to control the robot in joint space (e.g. MoveIt!, several ros_control controllers) will need to deal with additional correction terms to account for this discrepancy.

Obviously it would be better to have accurate URDFs, but if there truly is a small difference between each robot, that isn't really a possibility.
For now, I think the best approach would be to have the driver publish the true transform to the end effector and having people use that frame for MoveIt! and ros_control instead of ee_link or tool0 from the URDF (Which one is being used by MoveIt @miguelprada ?).
And then work on getting that joint transformation in the URDF changed/removed...
Alternatively (for better backwards compatibility) the driver could try and read the robot_description from the parameter server and then modify the string to add another link (ee_link_controller?) and then overwrite the robot_description paramteer? This requires that the plugins notices the new parameter value though, so it is not a very stable approach.

@miguelprada: We're not sure where the difference comes from. Perhaps UR does a correction based on joint temperature as well.
Another important drawback of trying to build a more accurate URDF is that the calibration procedure from UR does not seem to care about the positions of the intermediate joints, as long as the overall transform from base_link to ee_link is correct. On our robot for example, the distance between base_link and shoulder_link is 914 meter. Since distance between shoulder and elbow is around the same, the final transformation is correct.
This means the corrected URDF is impractical, because the link positions are incorrect, so collision checking would make no sense.
@ThomasTimm: default name for ee_link could be something like 'ee_link_calibrated'. Note that 'ur_ee_link' also already exists URDF.

@ThomasTimm Both MoveIt! and some ros_control controllers require having a model of the robot to compute either FK or IK, generally using KDL. Having just the current real pose of the end effector would not help much in these cases.
@sepjansen Is that really 914 meter!? I'm struggling to understand how a model which doesn't care about intermadiate links can actually work and compute accurate inverse kinematics in the controller itself.
In any case, I wouln't want to get in the way of a fix which works for you. I guess I'll come back to this issue whenever we receive our own URs, which we don't have yet.

@miguelprada : Yes, it really is 914 meter. I was baffled at first too. This will probably vary greatly between individual URs, so maybe ours is an exception.

@sepjansen The only reason I can see this working is if such distances are detected along the joint axes of rotation. This way one error would cancel with the error on the next link at any joint rotation value. Can you confirm this is the case?
It shouldn't be too difficult to correct the paremeters if it is, I think.

I just though about @sepjansen original idea about using a geomtry_msg/PoseStamped msg, it actually has an advantage: it supports publishing the TCP velocity, not just its current position... Could it be relevant to have both a tf a and a pose msg published? The data is being parsed anyway, its just a matter of serializing the messages and publishing it.

@miguelprada: I've included the joint transformations that were based on the DH parameters for our UR5 robot. Hopefully, it will give some insight in the relations.
ur5_calibrated_joints.urdf.txt
@ThomasTimm: I think having the actual TCP velocity can be relevant, yes. So that would involve publishing a tf and a twist msg, right? Would there be an advantage in publishing the pose msg next to the tf? They would basically contain the same information.

Ahh my bad, for reasons unknown I though the pose msg had velocity as well, just as the joint_state msg has both position and velocity... So the preferred solution would be to publish tf between base_link and ee_link_calibrated while simultaneously publishing a twistStamped with the header->frame_id set to ee_link_calibrated (and of course read the two strings "base_link" and "ee_link_calibrated" from the parameter server)?

Yes, that make sense I think. I actually already started implementing this. I'll create a pull request when done.
It think it's easiest to include these publishers in the publishRTMsg function, do you agree? Alternatively, we could put them in a separate thread.

yea, that was also my idea, but I'll happily leave it to you :-)
I guess you already know, but you can get TCP pose/vel with robot_.rt_interface_->robot_state_->getToolVectorActual() and robot_.rt_interface_->robot_state_->getTcpSpeedActual();
Just be sure to read the values before https://github.com/ThomasTimm/ur_modern_driver/blob/master/src/ur_ros_wrapper.cpp#L574 to avoid any races

Thnx for the tip :) I'll keep you posted on development

It would be great if we adopted the ROS-Industrial standard frame names.  The standard already has a frame called base, which should match the controller base frame.  We would need to add a new frame to represent the controller tool frame, named something appropriate.  The new frame could be added to the URDF as a floating joint (now supported by robot_state_publisher here).
It's also worth noting, that the analytic IK does not use the URDF values, so creating a dynamic URDF would not solve possible incorrect IK, if the analytic solver is used.
@ThomasTimm, @ipa-fxm, I would like to see this issue addressed in the ROS-Industrial repo.  Addressing it here and then merging into the ROS-I is going to be harder because of backwards incompatibilities.

Good point. I wasn't aware of this standard, but I see now that the UR urdf's conforms to this (https://github.com/ros-industrial/universal_robot/blob/indigo-devel/ur_description/urdf/ur5.urdf.xacro).
I'll set the default frame names to base and tool0-calibrated.

Can we use tool0_controller or something similar.  All controllers can report their tool pose, but not all will be using an internal calibration.  Most industrial robots do no use a calibration (at least I'm not aware of them doing so), other than joint zero calibration which should be reflected in the joint states.

Thanks for chiming in Shaun.
My hope is that by handling this issue by publishing extra topics/frames, it won't lead to any forking problems or backwards incompatibilities once this driver is merged into ROS-I.

@sepjansen
Could you write a mini tutorial on how to use the tool0_controller frame?
Don't worry about formatting (although you are more than welcome to do that as well), even if it is only a small draft it will still be better than nothing.

Yeah, sure. I'm assuming you mean: How to use tool0_controller in a URDF model (using floating joint)?
I'm guessing a short example urdf will help most. Is there a good place to put this? In the README perhaps?

Yea, that would be great.
Once the transition to ROS-I is complete and this package is available on the ros wiki, I would like to turn it into a separate tutorial, but for now that would probably be the right place to put it.

@sepjansen How do you extract DH parameters from the robot ?

@jeppewalther: The parameters are stored in a calibration file on the controller. You should probably ask your UR supplier how to access it. There's not really an easy way to access the parameters, which is one of the reason I prefer this solutions rather than manually retrieving the parameters.

As universal robots now have their support site open to everyone, I think we can safely disclose such information, as it is freely available on their homepage at http://www.universal-robots.com/support/
If people already know the username and password to access i.e. /root/.urcontrol/calibration.conf on the robot and thus have access to the filesystem, I don't see any point in asking them to contact their supplier... Especially since my experience with suppliers is that they hardly now what DH parameters are...
@sepjansen Can we close this issue?

Ah, I had no idea this information was already freely available on the support site :+1:
You can find more details in this file, detailing how to restore calibration file s after replacing a flash card.
Yes, let's close the issue then.

@sepjansen Thanks for the link thats very usefull.


Update sqlite3.mli

Update docs to include behaviour for in-memory and temporary databases

Thanks, I've applied a small typo correction.


Ram and Flash testing

creating in esp-idf as per the suggestion from the link https://github.com/aws/aws-iot-device-sdk-embedded-C/issues/165#issuecomment-383639496
In our product, we required to do Ram and Flash testing. Flash testing is being done using NVS, how to test Ram?
ESP32 WROOM module is used as the replacement for the older microcontroller. In the older microcontroller, these tests have been carried out.

What problems do you want to test for?  That every byte of RAM passes a certain number of r/w cycles?  Do you plan to test at boot time or only during manufacturing?  How does an NVS test prove all flash sectors are ok?

During boot up (not running time), we would like to test every bit of available RAM by writing 0xAA and 0x55 to every byte.  And reading them back.
Using NVS, we are testing only the flash sectors used as non-volatile storage used by the application, not the entire flash region.
These two tests are done, as same were performed on the previous microcontroller used for the same project.
Please suggest whether these kinds of tests will help on ESP to find faulty RAM/ Flash sectors.


feature request: is support of unstructured.io planned?

Using the wealth of unstructured.io‘s import formats would be a perfect fit to be added to private-gpt.
Would that be feasable/fit your plans?
Any hint welcome.
thx
r

This really could be an awesome addition to document ingestion.
Don't know how good this could integrate in PGPT but would be a good try to improve ingestion quality

Especially improved table embedding would be nice. I will give it a try soon in my cloned version so if anyone made already progress on that I would love to see the code.


#3974 links from stats at /snek

Thank you for your contribution to the KodaDot NFT gallery.
👇 _ Let's make a quick check before the contribution.
PR type

[x] Bugfix
[ ] Feature
[ ] Refactoring

What's new?

[x] PR closes #3974
[ ] Requires deployment <rubick/magick_issue>
[ ] <brief_description_of_what_I've_added>

Before submitting Pull Request, please make sure:

[x] My contribution builds clean without any errors or warnings
[x] I've merged recent default branch -- main and I've no conflicts
[x] I've tried to respect high code quality standards
[x] I've didn't break any original functionality
[ ] I've posted a screenshot of demonstrated change in this PR

Optional

[ ] I've tested it at </rmrk/collection/26902bc2f7c20c546a-1FVG7>
[ ] I've tested PR on mobile and everything seems works
[ ] I found edge cases
[ ] I've written some unit tests 🧪

Had issue bounty label?

[x] Fill up your KSM address:
Payout

Community participation

[x] Are you at KodaDot Discord?

Screenshot

[ ] My fix has changed something on UI; a screenshot is best to understand changes for others.

@petersopko 👀

@prachi00 please check also links from https://deploy-preview-3975--koda-nuxt.netlify.app/snek/incomingoffers

this lgtm, @roiLeo pls check 👀

pay 30 usd

😍 Perfect, I’ve sent the payout
💵 $30 @ 40.18 USD/KSM ~ 0.747 $KSM
🧗 EzGc4s9PgCPx1YnF3fqzhLzVHpHMTL4LWPScwpDrR8JKgSU
🔗 0x1d11407c7a80d4394b4a325491be22ab1d3cd8d3d706cbce19e83bd749d396bb
🪅 Let’s grab another issue and get rewarded!
🪄 github.com/kodadot/nft-gallery/issues


Schema media file

Changes
Adds a schema to describe metadata of a media typed file. The actual file information is handled by the ExternalFile
schema. The underlying media can be accessed by integer based indexing.
The ExternalFile schema now also stores the mime type (which is nothing more than a standardized version of the files extension, indicating the files content).
Related Issues
Closes #686
Checks

[x] updated CHANGELOG.rst
[x] updated tests
[ ] updated doc/
[ ] update example/tutorial notebooks
[x] update manifest file

Actually I wanted to open this as a draft...

thank you for getting this started @marscher 🙌
Just a few quick notes on the ASDF side of things:

when changing version numbers of existing schemas (like id: "asdf://weldx.bam.de/weldx/schemas/core/file-0.1.1" here) we have to keep the old schema file as is and add a new file for this version (create weldx/schemas/weldx.bam.de/weldx/core/file-0.1.0.yaml)
(we don't need to change version numbers for schema files that have not yet been released on pip/conda)
run devtools/scripts/update_manifest.py after adding/removing schema files to update the current manifest
make sure the Converter is associated with and set up to handle all schema versions in the tags property:
Is this case change the old version (only supports schema version) https://github.com/BAMWelDX/weldx/blob/a99742a1532ab977d547625cd13e6c9fb096361a/weldx/tags/core/file.py#L142-L144
to

    tags = ["asdf://weldx.bam.de/weldx/schemas/core/file-0.1.*"]
    types = [ExternalFile]

the pims lib is not yet ready for Python-3.10

@CagtayFabry I'd like to merge this soon and post-pone some todo's in follow up issues.

@CagtayFabry I'd like to merge this soon and post-pone some todo's in follow up issues.

Which ToDos are still open here? The ASDF examples?

Which ToDos are still open here? The ASDF examples?

Basically, yes.

Which ToDos are still open here? The ASDF examples?

Basically, yes.

A simple ASDF example would be nice as those also run during the schema tests
Other than that I think it looks good for now? Is the mime_type ASDF pattern working?

Right. I'd generate the example simply by instanciating a media file, serialize it and put the contents into the schema file.

Right. I'd generate the example simply by instanciating a media file, serialize it and put the contents into the schema file.

@CagtayFabry in 6a04d5e I had to use the "old" style tag syntax. Otherwise the asdf yaml parser would raise some "undefined tag handle" error:
E   yaml.parser.ParserError: while parsing a node
E   found undefined tag handle
E     in "<file>", line 5, column 9

Do you know what might be going wrong there? I was thinking that the header of the example (used ASDF standard) could be referring to an old version?


Update kafka-avro-serializer to 6.1.0

Updates io.confluent:kafka-avro-serializer from 5.5.3 to 6.1.0.
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

Ignore future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "io.confluent", artifactId = "kafka-avro-serializer" } ]

labels: library-update, semver-major

Superseded by #104.


A page re-rendering and page deletion composable

Describe the feature
This request is for the implementation of a renderPage() method capable of calling the internal prerender process of Nuxt to render, not just normal pages, but those with dynamic slugs.
I believe this feature would prove significant for blogs, and various static sites to control the  re-rendering of specific pages upon update to their respective data.
export default defineEventHandler(async (event)=>{
  await renderPage('/posts/24', { query1:  'mostLiked' });
});

The previous way of adding prerenderable slugs below results in the the need to rebuild to get fresh new routes/slugs:
import { ofetch } from 'ofetch';

const getPlanetsRoutes = async () => {
    const response = await ofetch("https://api.nuxtjs.dev/planets");
    return response.map((planet) => `/planets/${planet.slug}`);
}

export default defineNuxtConfig({
    hooks: {
        async 'nitro:config'(nitroConfig) {
            const planetsRoutes = await getPlanetsRoutes();
            nitroConfig.prerender.routes.push(...planetsRoutes);
        }
    }
});

This feature request prevents the need for unnecessary rebuild and allows re-rendering to occur server-side. This will improve flexibility and ease as anyone could cache a page based on data/[slug title] gotten from a database.
Developers will be able to delete pages that are no longer needed (maybe after deletion of data from a store) using removePage(route).
The feature would be added only for users with the prerender feature enabled on at least one route, so as to avoid rendering conflicts with a full SSR app rendering mechanism
Additional information

[X] Would you be willing to help implement this feature?
[ ] Could this feature be implemented as a module?

Final checks

[X] Read the contribution guide.
[x] Check existing discussions and issues.

Yes, I need that feature, too。dynamically update some static prerender pages

cc: @pi0


Allow more fine-grained control for adding/updating plugins using s2i method when using Jenkins PV

Scenario: Provide more control to update plugins on already configured Jenkins instance
Given a Jenkins instance created using the s2i method
And the s2i config contains a plugins.txt file
And the instance is configured using a PV
And the instance has been initially deployed to create JENKINS_HOME on PV
When the image is updated to include a update to plugins.txt to add/update a plugin
And the s2i builder is configured to use OVERRIDE_EXISTING_PLUGINS
Then the images' plugins are used instead of the already existing plugin set in JENKINS_HOME in PV

@gabemontero we should look at everything we do/do not copy when the PV is already "configured" and make each type of content (plugins, config, anything else?) individually configurable as "overwrite existing" or not.

@bparees shall we create a trello card for this as well, or do you want to handle outside of sprint planning?

@gabemontero i don't think we need a card for this, it should be pretty trivial.

As of this comment, an inventory of various config related activites:

Dockerfile / docker build

oc binary is copied to /usr/local/bin
base-plugins.txt and password-encoder.jar are copied to /opt/openshift
config.xml.tpl, credentials.xml.tpl, the openshift sample job config, disabling of SSHD via its xml config file,  and the admin user config (for when oauth is disabled) are copied to /opt/openshift/configuration
fix-permissions, install-plugins.sh, jenkins-common.sh, and kube-slave-common.sh are copied to /usr/local/bin
the s2i assemble and run scripts are copied to  /usr/libexec/s2i
the default plugins are installed and various permissions are set so we can switch between 32 and 64 bit java

When the s2i run script is launched during jenkins startup, and the jenkins instance is considered "not yet configured" (i.e. JENKINS_HOME/configured or /var/lib/jenkins/configured does not exist), the following occurs:

if /opt/openshift/configuration/config.xml does not yet exist, it grabs the config.xml.tpl (copied over by the docker file) and generates a config.xml file, updating the k8s plugin config based on what is mounted in the pod, and if you have overridden the images used for the slave, and the jnlp service, via env vars

if /opt/openshift/configuration/credentials.xml does not yet exist, it grabs the credentials.xml.tpl (copied over by the docker file) and generates credentials.xml for the k8s SA (no env var overrides)

the xml files, admin user creds, and sample job are copied to /var/lib/jenkins / JENKINS_HOME

the INSTALL_PLUGINS env var is processed, installing plugins noted in that env var (@scoheb's specific scenario)

the actual creation of the admin user

Independent of the "configured" flag, if the config.xml.tpl exists, and the config.xml file has somehow been removed, the config.xml is regenerated

Independent of the "configured" flag, various env vars for 32bit vs. 64bit, java opts/args, jenkins opts/access logs

Independent of the "configured" flag, set up of env vars related to options for running the oc command with the token/certs mounted in the pod

@bparees for config related overrides, do we just allow the user to specify the new contents in an env var? if so, does that include the config.xml/credentials.xml and their template based approach wrt substituting other env vars or items mounted into the pod?

Or perhaps just duplicate this existing pattern:
if [ -f "${CONFIG_PATH}.tpl" -a ! -f "${CONFIG_PATH}" ]; then
  echo "Processing Jenkins configuration (${CONFIG_PATH}.tpl) ..."
  envsubst < "${CONFIG_PATH}.tpl" > "${CONFIG_PATH}"
fi

Yeah I actually like that pattern ... no additional env vars required, simply recreate the paths/files cleared out after initially configuring ... will submit PR in a bit

@gabemontero first off, the stuff being copied in the Dockerfile is/are irrelevant.
The issue here is a user does the following:

user starts up jenkins with a PV bound.  We generate/copy the config into the PV and also copy the plugins from the image to the PV

user modifies their jenkins image (builds a new one) with different config/plugins

the jenkins pod restarts to pick up the new image.  It ignores the changes to the config/plugins because the PV is already "configured".

The desired behavior is to provide an option where the user can say "always copy X from the image into the PV, even if the PV has been previously initialized".  Where X would be things like "the config.xml" "the plugins", "the credentials.xml", etc.
What I was expecting to see in the PR was something like:
if -f /path/to/pv/configured && !ALWAYS_USE_IMAGE_PLUGINS {
wipe out PV plugins dir and replace with image plugins
}
if -f /path/to/pv/configured && !ALWAYS_USE_IMAGE_CONFIG_XML {
wipe out PV config.xml and replace with image config.xml or generated config.xml from template
}
etc for other things we want to allow to be replaced on the PV w/ the content from the image.

Note that "always using image content" should not be the default for any content item (the default should continue to be "use what's in the PV, if the PV has been initialized already")

On Thu, Aug 3, 2017 at 2:15 PM, Ben Parees<EMAIL_ADDRESS>wrote:

@gabemontero https://github.com/gabemontero first off, the stuff being
copied in the Dockerfile is/are irrelevant.

I expanded the background beyond what was specifically relevant just for my
own understanding.  Apologies if
it caused undo clutter, etc.

The issue here is a user does the following:

user starts up jenkins with a PV bound. We generate/copy the config
into the PV and also copy the plugins from the image to the PV
2.
user modifies their jenkins image (builds a new one) with different
config/plugins
3.
the jenkins pod restarts to pick up the new image. It ignores the
changes to the config/plugins because the PV is already "configured".
The desired behavior is to provide an option where the user can say
"always copy X from the image into the PV, even if the PV has been
previously initialized". Where X would be things like "the config.xml" "the
plugins", "the credentials.xml", etc.

Yes, understood.  I believe the PR is in fact doing that.

What I was expecting to see in the PR was something like:
if -f /path/to/pv/configured && !ALWAYS_USE_IMAGE_PLUGINS {
wipe out PV plugins dir and replace with image plugins
}
if -f /path/to/pv/configured && !ALWAYS_USE_IMAGE_CONFIG_XML {
wipe out PV config.xml and replace with image config.xml or generated
config.xml from template
}
etc for other things we want to allow to be replaced on the PV w/ the
content from the image.

It dawned on my that since the "configured" path is removing the files from
the image that it copied into the PV,
we could leverage the presence of the files in those spots as the trigger,
and not NEED the use of these env vars
to trigger the behavior.
Hence if the user has not repopulated those dirs, what was put it the PV on
initial start up should be what is taken
on subsequent startups.
If you think that won't work, I'm missing something then. Bang my head as
needed then.

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/openshift/jenkins/issues/335#issuecomment-320048555,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ADbadJ6Akc2NvXfVetp-f1scYAWFQq-Aks5sUg4kgaJpZM4OeDjb
.

How are you allowing a user to choose whether they want to revert to what is in the image, or continue using the content from the PV?

You're checking for the presence of the config files in the PV path(/var/lib/jenkins), so your logic will never execute anyway unless the user removes the content from their PV (and puts a tpl file there)

The content that the "first time configure path" removes will be repopulated on every restart of the container since that content is part of the image.  (there's really no good reason for the configuration code path to be removing those files, it accomplishes nothing), so in the case where you are looking to see if /opt/openshift/plugins is populated, it always will be, so you're always going to restore the plugin content from the image (the opposite of the current default behavior)


Switch the KVM resource to limits

Having the consumer container and the v2v conversion container with the KVM device as required caused:
spec.containers[0].resources.limits: Required value: Limit must be set for non overcommitable resources. This patch switch it back to be as Limit of the container as it was before.
Fixes #263

Can't we use both requirements and limits, similar to: https://kubevirt.io/2018/KVM-Using-Device-Plugins.html
(under Consuming Devices)

Can't we use both requirements and limits, similar to: https://kubevirt.io/2018/KVM-Using-Device-Plugins.html (under Consuming Devices)

I think we can but what's the benefit?

Can't we use both requirements and limits, similar to: https://kubevirt.io/2018/KVM-Using-Device-Plugins.html (under Consuming Devices)

I think we can but what's the benefit?

Seems there is an agreement to follow the docs. :)

@liranr23 please backport to release-v2.4.0


Feature Dubbing

dubbing access; upload, asynchronous partial download, & transcriptions
dubbing unit test on the sample audio file. confirmed for videos too, you just might need to enable the watermark depending on your price tier

Changes from #48

CC @austinbhale I made some edits you'll prob want to account for.

Awesome, thank you for all the updates! Currently hoping ElevenLabs improves their dubbing quality for some languages 😅


Error when try to install

Writing objects: 100% (10691/10691), 10.06 MiB | 0 bytes/s, done.
Total 10691 (delta 6125), reused 10686 (delta 6121)
remote: HEAD is now at 7f5b36a... travis: configure email notifications
remote: You must provide a valid Authorization header
To git@<IP_ADDRESS>:tsuru-dashboard.git
 ! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'git@<IP_ADDRESS>:tsuru-dashboard.git'

I'm on Amazon EC2, with Ubuntu 14.04 LTS
Using these command:
curl -sL https://raw.githubusercontent.com/tsuru/now/master/run.bash | bash

@fellipeh this problem is caused by some problems on "gandanf" (git permission manager) configuration. But I can't reproduce this bug running "now" on aws.
Can you retry?

Same problem... :(
Here is the last log:
Cloning into 'tsuru-dashboard'...
remote: Counting objects: 10839, done.
remote: Compressing objects: 100% (102/102), done.
remote: Total 10839 (delta 50), reused 0 (delta 0), pack-reused 10731
Receiving objects: 100% (10839/10839), 10.11 MiB | 3.31 MiB/s, done.
Resolving deltas: 100% (6233/6233), done.
Checking connectivity... done.
~/tsuru-dashboard ~ ~
HEAD is now at a61449c fix parsing durations with more than one hour
Already up-to-date.
Warning: Permanently added '<IP_ADDRESS>' (ECDSA) to the list of known hosts.
Counting objects: 10716, done.
Compressing objects: 100% (3880/3880), done.
Writing objects: 100% (10716/10716), 10.07 MiB | 0 bytes/s, done.
Total 10716 (delta 6134), reused 10711 (delta 6130)
remote: HEAD is now at a61449c... fix parsing durations with more than one hour
remote: 2016/05/06 18:12:32 Post http://<IP_ADDRESS>:8080/apps/tsuru-dashboard/units/register: dial tcp <IP_ADDRESS>:8080: i/o timeout
remote: Exit status 1
To git@<IP_ADDRESS>:tsuru-dashboard.git
 ! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'git@<IP_ADDRESS>:tsuru-dashboard.git'

@fellipeh To fix this issue, you can either delete ~git/.bash_profile file or purge it.
--
@andrewsmedina I think the reason of getting remote: You must provide a valid Authorization header  error is that the exiting token in ~git/.bash_profile is not valid anymore.
to replicate that error you can manually modify TSURU_TOKEN in that file and run now.bash again; the error will raise at git push
Mu assumption of causing this error is executing now.bash multiple times. So in some circumstances the previous token gets invalidated and needs to be renewed. Is there any way to verify the validity of existing token during installation?

Hi @mousavian and @fellipeh, we are deprecating now script in favor of tsuru installer (it's yet with experimental status in docs, but it's well tested and will be the recommended way soon)
Please try Tsuru Installer and let we now your impressions. We have a recent article about installing Tsuru with installer in google cloud platform
If you want to run Tsuru in your mac without using VM, take a look at our docker-compose.yml, it's used for dev environment but you can change to run Tsuru images directly. more info: https://docs.tsuru.io/master/contributing/index.html#development-environment

Cool @ArxdSilva, sure will give it a try.
thanks. 👍


budget detail page

Proposed Changes
Feature
As a user, I want to see percentage of total budget an item is contributing with, so I can better understand statistics of my inflow or outflow items

Given that I have added at least one item to the budgeting grid When I click on that item
Then I want to see a new page with a title corresponding to the item details
And route should be dynamic with item ID in it
And a subtitle under title should show percentage with red minus sign showing outflow, green plus sign for inflow
And a pie chart showing how much of the entire budget this item is contributing with should be on that page
And no other items from the budget should be on that pie chart
And there should be a back button to return back to the previous route
And the view should be mobile and desktop compatible

Screenshot

Checklist

[x] Feature developed
[ ] Created/updated unit tests
[ ] Comments in code
[ ] Documentation written

Coverage increased (+0.4%) to 78.311% when pulling 09fedbb5a709c1e49cfaafa2c9cb9951805bbf27 on TitoAgudelo:master into 7cada79709a3c2ddfffda4204b34da2cb98a89ed on ModusCreateOrg:master.


[Suggestion] GDScript Inline ColorPicker

Operating system or device - Godot version: 21
Suggestion description (what happened, and what was expected):
Just thought of something pretty cool a moment ago and thought I'd share!
If a Color type is being edited or if the mouse is hovering over it for xx milliseconds, show a color picker.  Example:

We can use the contextual right-click menu (introduced in 2.1) for this.


Modify current Add Subcategory component to Edit Subcategories.

Is your feature request related to a problem? Please describe.

Need a component to edit subcategories

Describe the solution you'd like

Better to reuse the add component rather than making a new component.

Additional context
N/A

This function has already implemented. @jayasanka-sack


Terminal displays at most 24 rows

I've tried using the add on fit.js and set up the rows variable manually. Couldn't get the terminal display to fit the entire div.

I recommend trying to achieve this with the xterm.js demo (https://github.com/sourcelair/xterm.js/tree/master/demo), and then implementing it in the task interface.

I recommend trying to achieve this with the xterm.js demo (https://github.com/sourcelair/xterm.js/tree/master/demo), and then implementing it in the task interface.

Fixed by explicitly set terminal container height to 96%.

Fixed by explicitly set terminal container height to 96%.