AdditionalClaims parameter to SignInAsync not working

The additionalClaims parameter that we pass to "await HttpContext.Authentication.SignInAsync(....) does not get reflected in the token to the angularClient2. Looks like it is a bug as the additionalClaims parameter has no effect on the final token. Could this be a bug? I was trying to add a couple of role claims.

Passing additional claims into the cookie does not mean that they are included in the token automatically. That's the job of the profile service to decide which claims go into which token.

How do we do that for InMemoryProfileService? Do we derive from it and override GetProfileAsync?

InMem is only designed for testing - why do you want to use that?
Create your own profile service, that's what you have to do anyways.


How to implement in cordova android app

Hello,
How to implement brainree-web in cordova android app, Please give me a suggetion, this plugin suitable? for cordova payment gateway.
Thank & Regards
Subhash Patel

Our JavaScript SDK is neither tested nor developed for hybrid runtimes such as Cordova, PhoneGap, Ionic, React Native, and Electron. While some success may be had in such environments, our SDK is optimized for the browser and its security policies and may not function correctly outside of them.


landing page

Overview
We need a landing page so that we can capture a list of people who want to be notified of the project's launch so that we can create excitement and encourage traffic to the tool once available.
Action Items

[ ] Front End Developer

[ ] Create page from mockup (also in figma)

[ ] Back End

[ ] setup Django and DB endpoint to send email addresses to
[ ] later, setup sending function (not time sensitive)

Resources/Instructions

Civic Tech Index Figma
Front-end developer, please confer with @ashleyerffmeyer and @codewilling for react-specific questions, @chalimar for design-specific questions

I am most of the way done with adding the table + endpoint for receiving the email address.
What is your preferred behavior if someone submits the same address more than once?

Record all and deduplicate later?
Return "we already have that address" message
Silently ignore additional submissions of the same email address

For the front end person:
I am expecting 2 fields, email_address and notification_type (future proofing in case we have more than one signup form). Successful submissions will get back the HTTP status 201 Created. Right now it is also returning the data we recorded but I could just send back an empty response body if you prefer (or something else).
The only error message I am expecting to send you is status 400 Bad Request with the following body:
{
    "email_address": [
        "Enter a valid email address."
    ]
}

Duplicate message would be good

Code in place - on my branch that uses Docker. Would like to discuss with @Abhishek-AC when the docker version will become the main version - but I can create a pull request on the docker branch or on main depending on when docker becomes the main way to work with this repo.

@mealthebear when you have time please post an update in this format:

Progress
Blockers
Availability
ETA
with any screenshots you may have available, thanks!

Hey y'all, posting a progress report so far:
So I have a rough draft of the landing page screen built out. All of the basic components are rendered onto the page and are in need of styling. I'll now be looking to get the email submission feature working, just waiting on the endpoint to be developed so no rush. In the meantime, I'll also work with the UX team to get the specific styles that we want such as exact colors and animation effects.
I'll be pretty free this week so I should be easy to reach too :) Here is a pic so far of the progress!

A quick note about the email submission: I think it would be good to know which edge cases to handle. Maybe the user submits an invalid email address or the user submits a valid email address more than once. Thank you!

Examples for current code. If you want something changed, I should be able to make changes. Let me know @mealthebear
# valid input
{"email_address"<EMAIL_ADDRESS>"notification_type": "baz"}
Response code 201 Created
{
    "email_address"<EMAIL_ADDRESS>    "notification_type": "baz",
    "created_date": "2020-09-21T18:18:21.671988Z",
    "ip_address": "<IP_ADDRESS>"
}

# invalid email address
{"email_address": "cnc", "notification_type": "baz"}
Response code 400 Bad Request
{"email_address":["Enter a valid email address."]}

# duplicate submission
Response code 400 Bad Request
[
    "We already have a subscription for<EMAIL_ADDRESS>]

@cnk Looks pretty good to me! Is there also a screen for how we want to display the message after email submission? Or were we planning to not display anything on the screen? Was just curious

I have no idea. I just provide whatever API you ask me to build.

@chalimar @jsachsman what do we want the action/look to be for after they successfully subscribe?

Just another update; I've added some more stylings to the page like fonts, official colors, and some spacing between the different elements. The next thing I'll be working on is preparing a handler for the email input field so that it's ready for when the endpoint goes live. Another thing that might need to be addressed is what kind of style or animation to use when the user interacts with the buttons and input field. I'll post some screenshots of the styling already applied thus far.
Landing page so far

Input style when selected (inner border)

Buttons when not clicked

Buttons when clicked

@chalimar @jsachsman what do we want the action/look to be for after they successfully subscribe?

I'd recommend we replace the field and button with a 'success' message in bold text in our 'accent' color:
"Thank you for subscribing!"

Where should the volunteer button link to? Should it go to the Civic Tech Index page on hackforla.org?

@mealthebear @jsachsman @ExperimentsInHonesty
Hi team! We can utilize this google form, or we can link the project page from HFLA.

@mealthebear please link to the civic tech page on hackforla.org

Hi team, page graphics, fonts and info can be found here: Landing Page assets

Examples for current code. If you want something changed, I should be able to make changes. Let me know @mealthebear
# valid input
{"email_address"<EMAIL_ADDRESS>"notification_type": "baz"}
Response code 201 Created
{
    "email_address"<EMAIL_ADDRESS>    "notification_type": "baz",
    "created_date": "2020-09-21T18:18:21.671988Z",
    "ip_address": "<IP_ADDRESS>"
}

# invalid email address
{"email_address": "cnc", "notification_type": "baz"}
Response code 400 Bad Request
{"email_address":["Enter a valid email address."]}

# duplicate submission
Response code 400 Bad Request
[
    "We already have a subscription for<EMAIL_ADDRESS>]

@mealthebear You can access the endpoint for the above as /api/subscribe
Refer the swagger doc for request payload and response.

Hey everyone, just posting another update:
The landing page is coming along nicely, I'm just finishing up on adding a few styles to the input, buttons, and icons. I added the picture of the world map to the background. I'll post a screenshot below of what it looks like.
@cnk @Abhishek-AC One thing I wanted to bring up is storing the endpoint URL as an environment variable. Create react app supports using an .env file combined with a build script, so for deployment; the build file would just need to be manually deployed. I don't know if Docker can also take care of files that aren't supposed to be pushed to GitHub?
Landing page with world map

Another update about environment variables: It looks like using an .env file isn't a good idea because it poses a security risk. Create react app documentation even advises against using it since anyone who inspects the files will be able to see the values of environment variables.

@mealthebear please cut header and footer, everything looks great otherwise.
Personally I'd like to see this merged in sooner rather than later, thanks for the hard work!

@shinjonathan I know you were planning to get into the Heroku account soon -
Let me know if I'm off-base here, I think the URL we will use for production is this:
https://test-civictechindexadmin.herokuapp.com/
So once you and @mealthebear have the landing page set up we will have to have Bonnie add civictechindex.org as a custom domain in Heroku and then get the DNS target from Heroku, then give that to Bonnie's domain provider, correct?

Hey everyone, posting an update on some features I've added:
The footer text at the bottom as well as the appropriate error message for duplicate emails have been added. I'll post a screenshot to show what they look like. In addition, media queries have been added which significantly improved the UI on mobile devices.
The code hasn't been deployed yet, but looks very promising from the device toolbar in Google's DevTools. Screenshots of mobile views will also be posted. I'll be working to do any finishing touches for the page this week. @chalimar If you're working on any mobile screens, those would be helpful; otherwise if you want to sign off on the mobile screenshots, we can do that as well : )
Landing page with duplicate error message

Mobile Phone Views
Samsung Galaxy S5
Landing page

Subscribe message

iPhone 5
Landing page

Subscribe message

iPhone X
Landing page

Subscribe message

Posting another quick update: the styling on the buttons and input field have been changed so that they look blockier. I'm gonna throw this branch up again for another PR. I'm pretty sure at this point the landing page is all set and ready for deployment! @shinjonathan I dont know if you can help with deploying or if you take care of that, was wondering how to deploy as well. Thank you!
Blocky buttons & input

Looks like #86 and #89 have been merged, I think this is ready to close.


Split the code into a library and binary to enable toolbx integration

One option to add this directly into toolbx upstream is to split the logic into a library that is pulled by toolbx and kept here for this binary.

Where would this "split" be? I reckon you'd want the whole functionality of runCommandSync(command, allocatePty) into the library, is that correct?
https://github.com/1player/host-spawn/blob/6fb65d0efcc2d17e26d1aa65434ccc886a030f76/main.go#L160

I'm not really sure. We might need to ask toolbx maintainers if and how they want to do it.

Are the toolbx maintainers still interested in integrating this?


IDE for PowerShell Core?

I have been using PowerShell 5.1 ISE at work.
Is there a way to use an Integrated Scripting Environment for PowerShell Core? I would like to continue working on the script that I maintain for work, using PowerShell Core 6. The ISE allows me to work on a large script, debug it and test it

Use Visual Studio Code , as described in here

Thank you so very much for the prompt response.

@lstatie I use VSCode it for 5.1 too. Far superior to ISE in almost every way.

Good to know thezim, I will keep that advice in mind. Thank you.

Another question:
I am using VS Code v1.27.0 with Powershell extension 1.8.4. When the script is running and shows errors in the  output, There seems to be no way to stop the run so I can fix the issue.
I see a turning circle next to the word "PowerShell" and I can find no way to stop the script from running.
Is there a way to stop the script so I can edit the script and run it again?
The PowerShell ISE allows me to stop running scripts, but debugging there is quite lacking.

Debugging is covered here. The key is finding debug bar (marked C) in the first image on the page. I prefer the keyboard shortcuts myself as they are common with ISE and Visual Studio. Keyboard binding are here. If you are having issues debugging you should file issues in
https://github.com/PowerShell/vscode-powershell. VS Code can be bit overwhelming at first coming from ISE but if you stick with it you will eventually never look back or when your forced to use ISE you will feel like your back using flip phone.

Another question:
I am using VS Code v1.27.0 with Powershell extension 1.8.4. When the script is running and shows errors in the  output, There seems to be no way to stop the run so I can fix the issue.
I see a turning circle next to the word "PowerShell" and I can find no way to stop the script from running.
Is there a way to stop the script so I can edit the script and run it again?
The PowerShell ISE allows me to stop running scripts, but debugging there is quite lacking.

For some reason, rebooting my PC fixed the issue I was asking about in the previous post.
Things are working correctly now.

how to use windows + vscode + sftp plugin ,edit ps1 files ,
when sava,sync ps1 files,txt files ...


State namespace

Signed-off-by: Mihai Budiu<EMAIL_ADDRESS>As discussed in the January 2023 LDWG meeting.

I am ok with this since I implemented in my front-end in an easy fashion.


using tflite on raspberry pi 3  file from teachable machine exported tflite file

hello
i am trying to use teachable machine export result image trained file *.tflite file
on the tensorflow lite, raspberry pi 3
but i got error which is
Traceback (most recent call last):   File "/home/pi/tensorflow2/examples/lite/examples/object_detection/raspberry_pi/detect_picamera.py", line 164, in <module>     main()   File "/home/pi/tensorflow2/examples/lite/examples/object_detection/raspberry_pi/detect_picamera.py", line 148, in main     results = detect_objects(interpreter, image, args.threshold)   File "/home/pi/tensorflow2/examples/lite/examples/object_detection/raspberry_pi/detect_picamera.py", line 79, in detect_objects     count = int(get_output_tensor(interpreter, 3)) TypeError: int() argument must be a string, a bytes-like object or a number, not 'list'
i want to know included file in tensorflow lite example *.tflite file with teachable machine exported *.tflite are not same?
or is there am i missing something?

I am using tflite on rpi4. I downloaded the edgetpu compatible file for my custom model from teachable and when trying to run in my local , I get index out of range error . I will post the error shortly .

Same issue here. The tflite file i have exported contains an error.
Line 24: image = Image.open(image_path)
But in the script no variable  'image_path'  is defined.
See exported script below:
from edgetpu.classification.engine import ClassificationEngine
from PIL import Image
import cv2
import re
import os
the TFLite converted to be used with edgetpu
modelPath = 'model_label/model_edgetpu.tflite'
The path to labels.txt that was downloaded with your model
labelPath = 'model_label/labels.txt'
This function parses the labels.txt and puts it in a python dictionary
def loadLabels(labelPath):
p = re.compile(r'\s*(\d+)(.+)')
with open(labelPath, 'r', encoding='utf-8') as labelFile:
lines = (p.match(line).groups() for line in labelFile.readlines())
return {int(num): text.strip() for num, text in lines}
This function takes in a PIL Image from any source or path you choose
def classifyImage(image_path, engine):
Load and format your image for use with TM2 model
image is reformated to a square to match training
image = Image.open(image_path)
image.resize((224, 224))
# Classify and ouptut inference
classifications = engine.ClassifyWithImage(image)
return classifications

def main():
# Load your model onto your Coral Edgetpu
engine = ClassificationEngine(modelPath)
labels = loadLabels(labelPath)
cap = cv2.VideoCapture(0)
while cap.isOpened():
    ret, frame = cap.read()
    if not ret:
        break

    # Format the image into a PIL Image so its compatable with Edge TPU
    cv2_im = frame
    pil_im = Image.fromarray(cv2_im)

    Resize and flip image so its a square and matches training
    pil_im.resize((224, 224))
    pil_im.transpose(Image.FLIP_LEFT_RIGHT)

    # Classify and display image
    results = classifyImage(pil_im, engine)
    cv2.imshow('frame', cv2_im)
    print(results)
    if cv2.waitKey(1) & 0xFF == ord('q'):
        break

cap.release()
cv2.destroyAllWindows()

if name == 'main':
main()
main

Hi there! you should set the image_path variable to a string thats a path to the image you wish to classify.


PBR

PBR material maps with the Cook-Torrance shading model for direct lights

Review still in progress for the shader code.
However, we need a big cleanup on the res folder for the sample. There seems to be a lot of new unused assets, which I'm not perfectly clear whether we're allowed to distribute or not. We should only include files with explicit permission if possible.

Oh yeah go ahead n clean up the res folder


'Rectangle of tiles' doesn't import properly

Unsure if limitation or user error, but marking an area of tiles in either an Intgrid or Autotile layer fails to import appropriately into Godot.

It behaves appropriately in editor but doesn't seem to in the generated scene.
LDTK

Godot

Using Godot 3.5 Stable with LDtk 1.1.3-64bit
Minimal recreation: The 'AutoLayers 2 stamps' sample map in LDtk uses a 2x2 rectangle of tiles rule in its Intgrid layer.

I'm also having the exact same issue...

I've located and fixed the issue - just working up a pull request :)

I am not able to push up a new branch and not sure of the best way to help... I assume that the repository is locked down, which is understandable... my diff is pretty simple:
`--- a/addons/LDtk-Importer/LDtk.gd
+++ b/addons/LDtk-Importer/LDtk.gd
@@ -140,8 +140,7 @@ func new_tilemap(tilemap_data):
var flip = int(tile["f"])
var flipX = bool(flip & 1)
var flipY = bool(flip & 2)

                          var grid_coords = coordId_to_gridCoords(tile.d[1], tilemap_data.__cWid)

                          tilemap.set_cellv(grid_coords, tile.d[1], flipX, flipY)

                          var grid_coords = pxCoords_to_gridCoords(tile.px, tilemap_data.__gridSize)
                          tilemap.set_cellv(grid_coords, tile.t, flipX, flipY)

  return tilemap

@@ -216,6 +215,14 @@ func coordId_to_gridCoords(coordId, gridWidth):
return Vector2(gridX, gridY)
+#converts pixels to grid coordinates.
+func pxCoords_to_gridCoords(pixelValues, gridSize):

  var gridY = floor(pixelValues[1] / gridSize)

  var gridX = floor(pixelValues[0] / gridSize)

  return Vector2(gridX, gridY)

#converts tileId to grid coordinates.
func tileId_to_gridCoords(tileId, atlasGridWidth):
var gridTileX = tileId - atlasGridWidth * int(tileId / atlasGridWidth)
`
Basically it looks like LDtk references the same tile within the "d" attribute multiple times when a rectangle shape is defined. Consequently the tile is overwritten and will only display the last shape in the applied rectangle. I created a grid coord function to take the pixel value instead, which is accurate, and update the tile based on that.

Think I've worked out how to actually contribute!


check operator search result has at least one entry

https://github.com/rancher/rancher/issues/15582

LGTM


Implement map and test it on array iterator

Codecov Report

Merging #3 into master will increase coverage by 4.90%.
The diff coverage is 87.50%.

@@            Coverage Diff             @@
##           master       #3      +/-   ##
==========================================
+ Coverage   88.81%   93.71%   +4.90%
==========================================
  Files           8        8
  Lines         143      207      +64
==========================================
+ Hits          127      194      +67
+ Misses         16       13       -3

Impacted Files
Coverage Δ

tests/tests.cpp
100.00% <ø> (ø)

include/ftl/iterator.hpp
75.00% <75.00%> (ø)

include/ftl/array_iterator.hpp
76.92% <77.77%> (+60.25%)
:arrow_up:

include/ftl/array_const_iterator.hpp
83.33% <88.88%> (+66.66%)
:arrow_up:

include/ftl/array.hpp
96.07% <100.00%> (+1.48%)
:arrow_up:

Continue to review full report at Codecov.

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


feat(tact): update queries

Mostly a minor renaming as node names changed in https://github.com/tact-lang/tree-sitter-tact

oops, sorry, didn't see your PR before opening mine (which also fixes a formatting error introduced in a previous commit).
Good to know that my fixes are the same, though ;)
Superseded by #652

@clason that's ok, thanks!


Feat/foundry conversion

Did many tries. but couldn't make this perfect

slither-action(https://github.com/crytic/slither-action) seems to handle symlink in slither action, but I failed integration
Current commit(Slither and Echidna) only has symlink issue, hope @pavlovcik  @0xcodercrane to help me with this
Snyk seems to be working right

@0xcodercrane Thanks for your quick checking 👍
@pavlovcik This is my Metamask Address: 0xc6fa133f3290e14Ad91C7449f8D8101A6f894E25

Mythx and Synk aren't working because of the account limit but the codebase looks ok. Slither has path configure issue because foundry uses a different method to resolve dependencies. Once foundry conversion done, we might ask @sunny0714  if internal devs didn't get a chance to resolve it.

@0xcodercrane Thanks for your quick checking 👍 @pavlovcik This is my Metamask Address: 0xc6fa133f3290e14Ad91C7449f8D8101A6f894E25

https://etherscan.io/tx/0xaf78ab12cc2f4965da8ce7909ca778d6e23579b619a96621f6743c15c771d1cb
https://etherscan.io/tx/0xb6980b549ae10aceb007cd2a5b7e6beef74f5abf90f1b1c59cd0d02722baac6a
Bounties complete!


fix: add force update mode

add force update mode to prevent edge cases from CRI states stuck in XXXing state

What type of PR is this?
/kind fix

What this PR does / why we need it:

CRIs can occasionally get stuck in XXXing state in update sequences after CreateVolume, UpdateVolume, DeleteVolume, AttachVolume, DetachVolume if these operations return before cache is updated.
This adds force update mode to prevent these stalling cases.

Which issue(s) this PR fixes:

Fixes #215
Requirements:

[ ] uses conventional commit messages

[ ] includes documentation
[ ] adds unit tests
[ ] tested upgrade from previous version

Special notes for your reviewer:
Release note:
none

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

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

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
179

Relevant Lines:
419

💛  - Coveralls


Refine Jenkins job name for better understanding

"Tenant" is a little bit confusing. Maybe "Group" is better than "Tenant". For example
“CreateTenant_Base” may be changed to  “CreateGroup_Base”.

This is a hug change that need to correct the job name and correct all filed name in each job from tenant to group and after that need to do regression testing on it.


chore: test: deprecate prop and fix flaky button unit tests

SUMMARY:

Mark data-test-id as deprecated in favor of data-testid to better map to testing library deps
Fixes flaky button animation UTs by removing sleep

CHANGE TYPE:

[X] Bugfix Pull Request

TEST COVERAGE:

[ ] Tests for this change already exist
[X] I have added unittests for this change

TEST PLAN:
Pull the PR branch and run yarn and yarn test.

Codecov Report

:exclamation: No coverage uploaded for pull request base (main@3b4a7db). Click here to learn what that means.
Patch has no changes to coverable lines.

:mega: This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more
Additional details and impacted files
@@           Coverage Diff           @@
##             main     #589   +/-   ##
=======================================
  Coverage        ?   84.88%
=======================================
  Files           ?      793
  Lines           ?    17187
  Branches        ?     6056
=======================================
  Hits            ?    14590
  Misses          ?     2531
  Partials        ?       66

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 in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.


Is there a way to set an allow_domain function per server?

I was just writing up a function to query a database for wether a particular domain is allowed to have an SSL cert issued and realised that I have a couple of other server definitions on this server with specific domains in addition to my catch-all server and that these names would have to be checked also.
This won't really be a problem as I can just add a regex check against a list before I go to query the database, but I wondered if it's possible to override the allow_domain function per server? I'm new to lua so that's probably where my understanding is falling down. It looks like a function on an object: auto_ssl, so I assume there is only room for one function?

Currently allow_domain can only be specified once for the entire nginx instance. But it's certainly possible to change that. What's the motivation behind your request? Are you trying to keep the domain configuration separate from another to preserve a plug-and-play-ish configuration?

Yes that's pretty much correct. On my server I have a config file for auto_ssl in the config.d directory, then for each application I have a file in sites_enabled. Each of these site files has:
# Dynamic handler for issuing or returning certs for SNI domains.
  ssl_certificate_by_lua_block {
    auto_ssl:ssl_certificate()
  }
  ssl_certificate /etc/ssl/resty-auto-ssl-fallback.crt;
  ssl_certificate_key /etc/ssl/resty-auto-ssl-fallback.key;

and it seemed to make more sense to be able to also configure the allowed domains per server. In my case for most server's they're pre-known, but for one I need to use mysql to query for wether I care about the domain or not.

So, I played around a bit. The main problem in actually implementing this is that there is no way to hook into the initialization process of each server{} block. I also could not find an API to determine which server block actually invoked the currently running ssl_certificate_by_lua. So this has to be done within the request cycle.
According to the fancy openresty request flowchart there is no earlier hook than ssl_certificate_by_lua. Thus, the most straight forward way to achieve our goal here seems to be something like this:
server {
  listen 443 ssl;

  ssl_certificate_by_lua_block {
    auto_ssl:ssl_certificate(function(domain)
      return true  -- insert magic here
    end)
  }

Does look too bad. I just wonder what kind of performance hit you'd get for newly defining the function within each request. Implementing this could work in a backwards-compatible way: Still allow a global allow_domain function to be set, but make the function passed to auto_ssl:ssl_certificate() overwrite it.
The actual work also doesn't seem to be too hard. Add the new parameter to auto_ssl:ssl_certificate(), as well as resty.auto-ssl.ssl_certificate and do_ssl. Then determine which allow_domain function to call - the global or the server one - within do_ssl and, well, call it.
@GUI what's your take on this?

Thanks @luto, yes I guess the only real concern is the cost of creating that function over and over. It's a shame about the hooks though. Do you think there's a case for raising a ticket with lua-nginx about adding another hook?

function add(a, b) return a + b end
for i=0,10000000000,1 do add(2, 5) end

Takes 50 seconds to run :arrow_right: 50 nanoseconds for each call.
for i=0,1000000000,1
do
  (function (a, b)
    return a + b
  end)(2, 5)
end

Takes 13s to run :arrow_right: 1.2ns for each call.
Both times were measured using time(1) on an Intel E5-2630L processor.
The difference between those two is significant. However, 50 nanoseconds is nothing. Not even scratching on 1ms here. Seeing those numbers, I do not have any concerns about creating that function over and over.

Indeed yes it seems to be minor :) It all sounds good to me.

@brendon are you up for preparing a pull request? :) In case you need anything or the some documentation is unclear or missing, just ping me!

Haha! I've never written lua before (except for the allow_domain function I wrote) but I can have a crack. I'm sure it won't be too hard given the general gist of the new code is already there :)

Unfortunately I can't run docker on My Late 2008 Macbook Pro :( I suppose I can still give things a crack, but I won't be able to test anything. What do you think?
The wheels are starting to fall off this laptop. Such a shame since it still runs really well :)

I think all this makes sense, and it does seem like having the option to define this within the server context could be handy.
One thing to note is that ssl_certificate() already accepts a table of options (see the examples under the request_domain docs on the README). So it might make sense to make this callback another item in that options table, or a separate argument.
Regarding tests, you don't necessarily need Docker to run them (that's just what I had documented, hoping it was the easiest). If you have a local development environment where OpenResty is running, I think you should be able to run tests on your Mac via make test (but if you're not able to get them running, I'm always happy to take a look at any pull requests).

I actually managed to get the docker thing working with docker-toolbox instead (for older Mac's). I'll hopefully be able to work on this next week.

Just kicked off the tests but I get the following:
cd /test/run/tmp && rm -rf luarocks*
cd /test/run/tmp && curl -L -O http://luarocks.org/releases/luarocks-2.4.2.tar.gz
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   167  100   167    0     0    475      0 --:--:-- --:--:-- --:--:--   528
100  135k  100  135k    0     0   150k      0 --:--:-- --:--:-- --:--:--  150k
cd /test/run/tmp && tar -xf luarocks-2.4.2.tar.gz
cd /test/run/tmp/luarocks-2.4.2 && ./configure \
	--prefix=/test/run/build/luajit \
	--with-lua=/test/run/build/luajit \
	--with-lua-include=/test/run/build/luajit/include/luajit-2.1 \
	--lua-suffix=jit-2.1.0-beta2
Illegal instruction
Lua version detected:
Lua interpreter found: /test/run/build/luajit/bin/luajit-2.1.0-beta2...
Checking Lua includes... lua.h found in /test/run/build/luajit/include/luajit-2.1/lua.h
Checking if Lua header version matches that of the interpreter... no
lua.h version mismatch (interpreter: ; lua.h: 5.1).
You may want to use the flag --with-lua or --with-lua-include. See --help.

configure failed.

make: *** [Makefile:186: /test/run/tmp/stamp-luarocks-2.4.2] Error 1

That just on master for now. I've not made any changes. I've just run docker-compose run app make test.
Do I need to do anything special with docker before running that command?

No, the docker command should just.. work :-/ @GUI any idea here?

Just pinging this quickly. I've really not had any time to work on it unfortunately.


Sidebar title and doc title don't change after updating it in file.

Is this a bug report?
Yes
Have you read the Contributing Guidelines on issues?
Yes
Environment
Docusaurus v1.3.0
NPM v6.1.0
Node v8.11.3
Macbook Pro with MacOs High Sierra
Steps to Reproduce
Tried to reproduce it in a fresh Docusaurus project, but can't reproduce it there. What I can say about my own project is that it already has a lot of markdown files. I also have all of them in subdirectories inside the docs folder, so I also refer to them via their relative path in my sidebars.json file.

Have the dev server running
Have an existing docs file with its relative path in sidebars.json
Change the title of the doc file
Restart dev server

When building the project it also updates fine.
Expected Behavior
I expected the title to change to the new one in the sidebar and in the h1 header. This does not happen.
Actual Behavior
Title in sidebar doesn't change and the h1 header doesn't change, which used to work before, but sudddenly stopped working.
Sometimes I see this error in the console:
uhoh. Got error write EPIPE

But most of the time it doesn't show up.
I also asked this in the Discord channel and got a workaround:

Remove the i18n folder
Run npm run write-translations
Start dev server
Everything updates like normal

Reproducible Demo
Could not reproduce it in a fresh docusaurus project and can't share my own project here. If more details are needed I can provide them.

@KoenCa

is it specific only to certain docs or any docs won't trigger the change of title ?
Did you try to rm -rf node_modules and reinstall ? Clearing the babel cache as well
Do you use versioning and/or translation ?

@KoenCa
That's weird. My website use id on docs & warriorjs too. You can check how warriorjs use subdirectories https://github.com/olistic/warriorjs/blob/master/website/sidebars.json
If your docs is in docs/projectA/test.md with id test then it should be referred as projectA/test in sidebars
Can you try adding id and see if it works ?

Added id to a doc file
Changed relative path in sidebars.json accordingly
Restart sever and navigating to page still works
Change title
Restart server and again no change

Adding an id doesn't work.
I seem to get this error quite often now while change title attritube or others:
... Uhoh. Got error write EPIPE ...
Error: write EPIPE
    at _errnoException (util.js:992:11)
    at WriteWrap.afterWrite (net.js:864:14)

But it doesn't crash my development server and live reloading of text on pages still works.

@KoenCa
Can you try to remove i18n folder -> npm run write-translations -> change some docs title -> npm run write-translations again and see if the title is changed in i18n/en.json
Since the workaround is related with deleting i18n I think it got to do with write translation

Deleting your current en.json should work and then do the right thing since you are on 1.3.0 -- although you can upgrade to 1.3.1 now too.

@endiliey
Just tried it, it does change the en.json correctly when I follow your steps. Maybe it doesn't work properly when the dev server is running?

@JoelMarcey
I don't see any 1.3.1 release yet?

🤣 I got ahead of myself. I thought it went out last night. Should be today.

@KoenCa
so the workaround step has been reduced to

Run npm run write-translations
Start dev server

Does Everything updates like normal ?

Yes, it is not necessary to remove the en.json file. Everything updates like normal without removing it.
BTW, maybe I should add that I first started with v1.2.0, then upgraded to v1.2.1 and then upgraded to v1.3.0.

@KoenCa
So if you only start dev server without running npm run translation, the title won't change ?
If yes, I think the problem is that dev server doesnt run write-translations when it should have
https://github.com/facebook/Docusaurus/blob/e9eef3976025c9f428baec725e6daf929384b5fb/lib/server/server.js#L9
https://github.com/facebook/Docusaurus/blob/e9eef3976025c9f428baec725e6daf929384b5fb/lib/server/server.js#L156

@endiliey
Yes, changing title and only starting dev server won't change it. When running npm run write-translation it does change.

@endiliey
Or this function goes wrong?
https://github.com/facebook/Docusaurus/blob/e9eef3976025c9f428baec725e6daf929384b5fb/lib/write-translations.js#L33
And thats why I sometimes get this error?
... Uhoh. Got error write EPIPE ...
Error: write EPIPE
    at _errnoException (util.js:992:11)
    at WriteWrap.afterWrite (net.js:864:14)

Seems so to me. This works for me but I think it didn't work for yours

Can you try above step & let me know abt the logs that appears ?

In the docusaurus project or my own?

@KoenCa yours
Just for context how many markdown files do you have 😂

I just get logs like this:
> @ start /Users/koen/Documents/github/dovetail-docs/website
> docusaurus-start

Docusaurus server started on port 3000
LiveReload server started on port 35729

The error log mostly happens when the server is already running.
I have 78 markdown files at the moment and more will come. I also have 48 PNG images in my docs assets.

Tbh, it's a little bit hard for us to fix without reproducible demo
How about this. We'll release 1.3.1 soon. Let's see if that solve your problem later. Otherwise I might need you to give me a reproducible repo, maybe you can omit the docs content if it's confidential. Sorry for the trouble

No problem, I understand.

@KoenCa
In the meantime, you can use this solution. Edit your package.json
"start": "docusaurus-write-translations && docusaurus-start",

Let me know if it works 😊

@endiliey
Yes, it works 👍

@KoenCa I wonder if you still have the problem ? Couldn't find any similar report so I'll be closing this.
Ping me on Discord if needed

i meet this situation too , i use v1.14.4

my solution

remove all files from this folder
use code editor create new files with same name one by one
copy content from old to new
restart dev server


Unable to scale deployments from UI due to incorrect RBAC enforcement in Rancher

Internal reference: SURE-3183
Reported in 2.5.8
Issue description:
A user has a read-only role with additional "scale" permissions so that app users can only scale their app and cannot make any other modifications.
With this role, it's not possible to scale up/down a deployment. But the same is possible via kubectl.
Impact:
Although they can bring up the shell and scale manually, a primary differentiating point of rancher was the ability to interact with the k8s cluster via a GUI as not all of their devs are familiar with the kubectl CLI.
Repro steps:

Create a project role with verbs: list, get, patch resource: deployments/scale inheriting builtin "Read-Only" role.
Create a deployment as an admin user in Default project
Add a user to Default project with this custom role
Login as the user and try to scale up the deployment from the UI. API throws out an error:

Open the shell and run kubectl scale deployments/test --replicas=2. This goes through successfully.

Expected behavior:
Scaling via UI should work
Notes:
Initial thoughts showed possible connection to https://github.com/rancher/rancher/issues/32424 but upon backend investigation elsewhere, @crobby spotted the following with recent testing (confirming version):

The UI doesn't let me create a role for deployments/scale, but when I create a role for "deployments", with get, list, patch, watch and try scaling from the UI, I do NOT see the scaling buttons, and when I try with  kubectl, I get..

Error from server (Forbidden): deployments.apps "test" is forbidden: User "u-abcdefgh" cannot patch resource "deployments/scale" in API group "apps" in the namespace "default"

If I add "update" to that role, I DO see the scaling buttons in the UI and they DO work.  But when I try scaling via kubectl, I get the same error as above.

If I manually edit the "scaler" Role template to be for deployments/scale, then I DO see the behavior as described in this issue.  The UI does NOT have scaling options, but I am able to scale via kubectl.

I wonder if there may be a couple of UI issues here.

Not able to create a role for deployments/scale...only deployments
Logic for when to show the scaling buttons on the deployment page

I think, to summarise...

kubectl uses patch, requires PATCH permission on resource
dashboard uses post, requires POST permission on resource (uses update link for visibility of feature)
ember uses ???, requires ??? permission (uses ??? link for visibility)

The screenshot is of ember using RKE1 to change node pool. Need to also consider RKE2 and machine deployment scaling

Confirmed that this was spotted in 2.7-head with the Vue UI.

@richard-cox indicated that we should use PATCH instead of POST for scaling +/-.
In addition, the PATCH verb is a partial update to a resource; we only need to send a diff on the fields that change. PUT is the other preferred verb to use instead of POST going forward (PUT overrides the full resource).

@Shavindra For scale up/down I think we do - this is then consistent with what kubectl does.


Put some beats on! message

Ubuntu 18.04.5 user here on an old 32 bit laptop. So maybe it's the reason of the problem.
I installed miniplayer via sudo python3 setup.py install. Log:
running install
running bdist_egg
running egg_info
writing miniplayer.egg-info/PKG-INFO
writing dependency_links to miniplayer.egg-info/dependency_links.txt
writing requirements to miniplayer.egg-info/requires.txt
writing top-level names to miniplayer.egg-info/top_level.txt
reading manifest file 'miniplayer.egg-info/SOURCES.txt'
writing manifest file 'miniplayer.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-i686/egg
running install_lib
warning: install_lib: 'build/lib' does not exist -- no Python modules to install

creating build/bdist.linux-i686/egg
creating build/bdist.linux-i686/egg/EGG-INFO
installing scripts to build/bdist.linux-i686/egg/EGG-INFO/scripts
running install_scripts
running build_scripts
creating build/bdist.linux-i686/egg/EGG-INFO/scripts
copying build/scripts-3.6/miniplayer -> build/bdist.linux-i686/egg/EGG-INFO/scripts
changing mode of build/bdist.linux-i686/egg/EGG-INFO/scripts/miniplayer to 755
copying miniplayer.egg-info/PKG-INFO -> build/bdist.linux-i686/egg/EGG-INFO
copying miniplayer.egg-info/SOURCES.txt -> build/bdist.linux-i686/egg/EGG-INFO
copying miniplayer.egg-info/dependency_links.txt -> build/bdist.linux-i686/egg/EGG-INFO
copying miniplayer.egg-info/requires.txt -> build/bdist.linux-i686/egg/EGG-INFO
copying miniplayer.egg-info/top_level.txt -> build/bdist.linux-i686/egg/EGG-INFO
zip_safe flag not set; analyzing archive contents...
creating 'dist/miniplayer-1.1.1-py3.6.egg' and adding 'build/bdist.linux-i686/egg' to it
removing 'build/bdist.linux-i686/egg' (and everything under it)
Processing miniplayer-1.1.1-py3.6.egg
Removing /usr/local/lib/python3.6/dist-packages/miniplayer-1.1.1-py3.6.egg
Copying miniplayer-1.1.1-py3.6.egg to /usr/local/lib/python3.6/dist-packages
miniplayer 1.1.1 is already the active version in easy-install.pth
Installing miniplayer script to /usr/local/bin

Installed /usr/local/lib/python3.6/dist-packages/miniplayer-1.1.1-py3.6.egg
Processing dependencies for miniplayer==1.1.1
Searching for ueberzug==18.1.7
Best match: ueberzug 18.1.7
Adding ueberzug 18.1.7 to easy-install.pth file
Installing ueberzug script to /usr/local/bin

Using /usr/local/lib/python3.6/dist-packages
Searching for Pillow==6.2.1
Best match: Pillow 6.2.1
Adding Pillow 6.2.1 to easy-install.pth file

Using /home/itook/.local/lib/python3.6/site-packages
Searching for pixcat==0.1.4
Best match: pixcat 0.1.4
Processing pixcat-0.1.4-py3.6.egg
pixcat 0.1.4 is already the active version in easy-install.pth
Installing pixcat script to /usr/local/bin

Using /usr/local/lib/python3.6/dist-packages/pixcat-0.1.4-py3.6.egg
Searching for ffmpeg-python==0.2.0
Best match: ffmpeg-python 0.2.0
Processing ffmpeg_python-0.2.0-py3.6.egg
ffmpeg-python 0.2.0 is already the active version in easy-install.pth

Using /usr/local/lib/python3.6/dist-packages/ffmpeg_python-0.2.0-py3.6.egg
Searching for python-mpd2==3.0.4
Best match: python-mpd2 3.0.4
Processing python_mpd2-3.0.4-py3.6.egg
python-mpd2 3.0.4 is already the active version in easy-install.pth

Using /usr/local/lib/python3.6/dist-packages/python_mpd2-3.0.4-py3.6.egg
Searching for psutil==5.7.3
Best match: psutil 5.7.3
Adding psutil 5.7.3 to easy-install.pth file

Using /usr/local/lib/python3.6/dist-packages
Searching for docopt==0.6.2
Best match: docopt 0.6.2
Adding docopt 0.6.2 to easy-install.pth file

Using /usr/local/lib/python3.6/dist-packages
Searching for python-xlib==0.29
Best match: python-xlib 0.29
Adding python-xlib 0.29 to easy-install.pth file

Using /usr/local/lib/python3.6/dist-packages
Searching for attrs==20.3.0
Best match: attrs 20.3.0
Adding attrs 20.3.0 to easy-install.pth file

Using /usr/local/lib/python3.6/dist-packages
Searching for requests==2.18.4
Best match: requests 2.18.4
Adding requests 2.18.4 to easy-install.pth file

Using /usr/lib/python3/dist-packages
Searching for dataclasses==0.8
Best match: dataclasses 0.8
Processing dataclasses-0.8-py3.6.egg
dataclasses 0.8 is already the active version in easy-install.pth

Using /usr/local/lib/python3.6/dist-packages/dataclasses-0.8-py3.6.egg
Searching for blessed==1.17.12
Best match: blessed 1.17.12
Processing blessed-1.17.12-py3.6.egg
blessed 1.17.12 is already the active version in easy-install.pth

Using /usr/local/lib/python3.6/dist-packages/blessed-1.17.12-py3.6.egg
Searching for future==0.18.2
Best match: future 0.18.2
Processing future-0.18.2-py3.6.egg
future 0.18.2 is already the active version in easy-install.pth
Installing futurize script to /usr/local/bin
Installing pasteurize script to /usr/local/bin

Using /usr/local/lib/python3.6/dist-packages/future-0.18.2-py3.6.egg
Searching for six==1.15.0
Best match: six 1.15.0
Adding six 1.15.0 to easy-install.pth file

Using /home/itook/.local/lib/python3.6/site-packages
Searching for wcwidth==0.2.5
Best match: wcwidth 0.2.5
Processing wcwidth-0.2.5-py3.6.egg
wcwidth 0.2.5 is already the active version in easy-install.pth

Using /usr/local/lib/python3.6/dist-packages/wcwidth-0.2.5-py3.6.egg
Finished processing dependencies for miniplayer==1.1.1

The config file is not created by default on /home/itook/.config/miniplayer/config so I created the directory and moved the sample config to it and renamed as "config". Then I edited it with adding my music directory.
When I execute the command miniplayer I only see the message "Put some beats on!".

Do you still see the message while playing music with mpd?

Do you still see the message while playing music with mpd?

Do you still see the message while playing music with mpd?

I use ncmpcpp as client to play music. No problems with it.
My mpd.conf:
music_directory "/home/itook/musica/great"
playlist_directory "/home/itook/musica/great"
db_file "/home/itook/.mpd/mpd.db"
log_file "/home/itook/.mpd/mpd.log"
pid_file "/home/itook/.mpd/mpd.pid"
state_file "/home/itook/.mpd/mpdstate"
auto_update "yes"
audio_output {
	type "pulse"
	name "pulse audio"
}
audio_output {
	type "fifo"
	name "my_fifo"
	path "/tmp/mpd.fifo"
	format "44100:16:2"
}

bind_to_address "<IP_ADDRESS>"
port "6601"%

Could you please post your config file for miniplayer as well?

Sorry, I forgot it!
/home/itook/.config/miniplayer/config:
[player]
music_directory = /home/itook/musica/great
font_width = 11
font_height = 24
image_method = pixcat

[mpd]
host = localhost
port = 6600%

The port in your miniplayer config does not match your mpd config. If that does not do it, try changing the host in miniplayer to <IP_ADDRESS>.
Also, is there a purpose to the percent sign at the end of both files?

The port in your miniplayer config does not match your mpd config. If that does not do it, try changing the host in miniplayer to <IP_ADDRESS>.
Also, is there a purpose to the percent sign at the end of both files?

No luck with those changes.  Still get the message "Put some beats on!" after restarting the mpd service. The percent sign is a remain of the copy&paste, it's not in the config files.
miniplayer conf:
[player]
music_directory = /home/itook/musica/great
font_width = 11
font_height = 24
image_method = pixcat

[mpd]
host = localhost
port = 6600

mpd.conf:
music_directory "/home/itook/musica/great"
playlist_directory "/home/itook/musica/great"
db_file "/home/itook/.mpd/mpd.db"
log_file "/home/itook/.mpd/mpd.log"
pid_file "/home/itook/.mpd/mpd.pid"
state_file "/home/itook/.mpd/mpdstate"
auto_update "yes"
audio_output {
        type "pulse"
        name "pulse audio"
 }
audio_output {
         type "fifo"
         name "my_fifo"
         path "/tmp/mpd.fifo"
         format "44100:16:2"
}

bind_to_address "localhost"
port "6600"

GuardKenzie, forget about this. I am used to these strange errors on my old laptop. The 32-bit architecture is rare and produces weird errors because of its different dependencies.

I have one more idea. Could you please run the following python code and post your results:
from mpd import MPDClient
c = MPDClient()
c.connect("<IP_ADDRESS>", 6600)
print(c.currentsong())

running python3 pythoncode.py gives this result:
{}
{'volume': '-1', 'repeat': '0', 'random': '0', 'single': '0', 'consume': '0', 'playlist': '2', 'playlistlength': '0', 'mixrampdb': '0.000000', 'state': 'stop'}

I don't know if it is relevant, but I forgot to write the version of python and obtained a different result. So running running python pythoncode.py gives this result:
Traceback (most recent call last):
  File "pythoncode.py", line 1, in <module>
    from mpd import MPDClient
ModuleNotFoundError: No module named 'mpd'

If you have pip installed, you could try running pip install --force-reinstall miniplayer. A reboot also never hurts.
python-mpd2 appears to not recognize that you are playing any music. If this issue persists after reinstalling and you are in fact playing music, it is an issue with that library.

If you have pip installed, you could try running pip install --force-reinstall miniplayer. A reboot also never hurts.
python-mpd2 doesn't appear to recognize that you are playing any music. If this issue persists after reinstalling and you are, in fact, playing music then it is an issue with that library.

Reinstalled but with the same results. Yep, it's not a problem of miniplayer but something related to my system, probably what you point. Case closed, then.
I'll try to install miniplayer on a modern distro with up to date libraries.
Thank you, GuardKenzie.

I can confirm the issue in manjaro 64 bit aswell.
my miniplayer default config
'[player]
music_directory = ~/Music
font_width      = 11
font_height     = 24
image_method    = pixcat
volume_step     = 5
auto_close      = false
album_art_only  = false
show_playlist   = true
[mpd]
host   = localhost
port   = 6600'
mpd conifg
`music_directory		"~/Music"
playlist_directory		"~/.config/mpd/playlists"
db_file			"~/.config/mpd/database"
log_file			"syslog"
state_file			"~/.config/mpd/state"
bind_to_address	"<IP_ADDRESS>"
port				"6600"
auto_update	"yes"
input {
plugin "curl"
}
audio_output {
type		"pulse"
name		"My Pulse Output"
}'
also tried changing locahost to <IP_ADDRESS> in miniplayer config as well.

I can confirm the issue in manjaro 64 bit aswell.
my miniplayer default config
[player]
music_directory = ~/Music
font_width = 11
font_height = 24
image_method = pixcat
volume_step = 5
auto_close = false
album_art_only = false
show_playlist = true

[mpd]
host = localhost
port = 6600

mpd conifg
music_directory "/Music"
playlist_directory "/.config/mpd/playlists"
db_file "/.config/mpd/database"
log_file "syslog"
state_file "/.config/mpd/state"
bind_to_address "<IP_ADDRESS>"
port "6600"
auto_update "yes"
input {
plugin "curl"
}
audio_output {
type "pulse"
name "My Pulse Output"
}

also tried changing locahost to <IP_ADDRESS> in miniplayer config as well.


Update Support Page

Changes required to the support page:

Hide the button and text to add a subscription ID
Remove the right-hand card 'Support'
Move the 'Find out more ... or contact ..' link to the right hand area
Ensure that the 'Get Support' box is only shown when commercial support is enabled

Will test once fix is merged

Test Environment:
Rancher version: v2.7-head a3502cd
Rancher cluster type: single-node docker install / HA
Docker version: 20.10

Testing:
Tested this issue with the following steps:

Verify button and text to add a subscription ID is hidden
Verify right-hand card 'Support' is removed
Verify 'Find out more... or contact...' link is moved to the right
Verify 'Get Support' box is only shown when commercial support is enabled

Result

Button and text to add a subscription ID is hidden successfully

Verify right-hand card 'Support' is not removed

Verify 'Find out more... or contact...' link is not moved to the right
Based on 6736, the support page should look something like this

Verify 'Get Support' box is only shown when commercial support is enabled
Will test again once RC is available to test on Rancher Prime

@thaneunsoo requirements changed following discussion with @kwwii
Get support link will remain as it is however, If community 2 links will show. Otherwise it would remain as its for prime.

Test Environment:
Rancher version: v2.7-head d3db38f
Rancher cluster type: Docker
Docker version: 20.10

Testing:
Tested this issue with the following steps:

Verify 'Get Support' box is shown when commercial support is enabled


UniversalStorage-KAS

Hi, I just updated ckan to the latest version, and tried to add UniversalStorage-KAS to my mods. I'm getting an error each time, whatever the way I try to install it (command line, gui, with UniversalStorage selected or not manually, doing a repair, removing, clearing the cache, etc.). Here the error I got:
F:\Games\KSP\KSP-0.90>ckan install UniversalStorage-KAS
About to install...

UniversalStorage-KAS 1.0.0 (cached)
UniversalStorage <IP_ADDRESS> (cached)

Continue? [Y/N] y
Installing mod "UniversalStorage-KAS 1.0.0"
Installing mod "UniversalStorage <IP_ADDRESS>"
Oh no! We tried to overwrite a file owned by another mod!
Please try a ckan update and try again.
If this problem re-occurs, then it maybe a packaging bug.
Please report it at:
https://github.com/KSP-CKAN/CKAN-meta/issues/new
Please including the following information in your report:
File           : GameData/UniversalStorage/Parts/US_1R110_Wedge_KASContainer/KAS Container.tga
Installing Mod : UniversalStorage <IP_ADDRESS>
Owning Mod     : UniversalStorage-KAS
CKAN Version   : v1.5.6-0-g0000000 (beta)
Your GameData has been returned to its original state.

This pack is no longer required.  the Universal Storage KAS pack is now included in the Universal Storage download.  Same goes for the other add on packs.

A "Deprecated" ckan version is being generated just now, which allows your installation to continue successfully.


Rename acp-dev to acp-users

Changed one word in the usage line so that it matches the new filename.

OK, I've changed every occurrence of develop* to something else.


Plot absolute values

It would be great if there was an option in under "click to configure" to select absolute values

Please elaborate; there already are the 'minimum value' and 'maximum value' fields you can set

We would like to have the option to plot the abs(x) of all x. So for example there are 3 values: (-1,3,2)
Sometimes it is needed to plot (-1,3,2) and sometimes (1,3,2)

Perhaps this issue would be resolved by https://github.com/NLeSC/spot/issues/116. You could have x in the dataset, and then calculate abs(x) on the fly

Yes, you are right. Closing the issue!


Feature/qmservices 14

Deprecate old methods

Please use code style specification for deprecates

https://github.com/QuickBlox/CodeStyle-Guidelines-for-Developers

Please check and update documentation


Slack going berserk

I’ve had the setup on my Digitalocean VPS since mid March, which was working great.
Since yesterday morning my Slack notifications for new sub-domains is getting bombarded.
It seems like to be running the command in the loop and notifying of all the sub-domains instead of the refresh.
I’ve since tried to do a fresh install of the app along with fresh app creation and web-hook in slack, but it still persists.
Anything I can check to rectify at my end?
Thanks

Hey! I'd suggest to copy the domains.txt to somewhere safe, then reset everything by running $ python sublert.py -m. Afterwards, place back the domains.txt file to Sublert directory and run the tool as usual.
Let me know if that fixes the issue for you.

Thanks for the solution.
So I copied my domains.txt file and reset the app. However, when importing the same domains.txt, there were errors for few domains, which I had to manually delete and add them again.
Also, since the slack going crazy, things haven't been as smooth. Like the cronjob not working regularly and notifications not coming through, errors with app not able to access the db etc.
I might try removing the app from VPS and crontab and then following the same process to setup again. Hope that would resolve the issue.
If you have a better solution, I'd really like to hear it. Thanks

@sumgro As per #19 I believe it has to do with the default number of threads (20) which may overwhelm lower-specced boxes. Try setting -t 4 or similar.

Hey @spaceraccoon, thanks for the suggestion. I’ve edited the thread to 10 now and shall test it for a day.
Will update the findings later.
Cheers!!

Any news on this @sumgro ?

Any news on this @sumgro ?

Sorted this out by setting the thread value to 2 and that seems to have resolved it.
Are you also experiencing the same?

I only had this with yahoo.com, but I am testing it on other domains now and no issues.

I have adjusted the threads number in the code as well. Thanks!


ImageMagick as dependency is not listed in README

Hi,
ImageMagick is needed for the thumbnail creation, but is not listed in the readme.

thanks, resolved.


Fix for postgresql error

fix for postgresql "Invalid text representation: 7 ERROR: invalid input syntax for integer:...." error.

How does this affect non-POSTGRES instances?

i dont test it but, i guess it does work.

Not working for me. still have third element in array which will send ID check  with empty string to query


login page responsiveness fixed issue#103

This PR fixes the responsiveness of login page, also title is updated.
Fixes #103

Thank you for your contribution @Priyankaa2503. 👍


Username does not exist error on public profiles.

Describe the bug
When running instaloader.Profile.from_username() with a logged in context and a username that exists, an error is returned saying the profile doesn't exist, and recommending that same exact profile. I have double checked to make sure the usernames are correct and that there isn't any hidden formatting.
To Reproduce
Steps to reproduce the behavior:
Using the instaloader.Profile.from_username(loader.context, username) on a few dozen accounts, some should error out saying they don't exist, but showing the most similar account as exactly the same name. This occurs specifically when logged in.
When I then try this same username from the command line using instaloader username it works fine
Expected behavior
When getting the profile using the from_username() function, it should always return a user if that user's profile exists and is public.
Error messages and tracebacks
[ERROR] with instaloader username uniliga_gg: Profile uniliga_gg does not exist. The most similar profile is: uniliga_gg.
Instaloader version
4.4.5
Additional context
The profiles that don't work seem to work fine from the commandline.

Same here. Same error on public and private accounts (that I am a comfirmed follower of). I created a new 'test' account and tried to scrape the same public accounts - no errors. I changed the username/name/birthday of my 'real' account and checked again, nothing changed, still the same error. I am glad if I could provide more information to solve the problem. Thanks!

The most likely explanation for the described behavior is that the profile in question has blocked the account you are using. Is it possible to view the profile with the Instagram App using the same account?

When I then try this same username from the command line using instaloader username it works fine

Using the CLI, Instaloader accesses a blocked profile anonymously.
instaloader.Profile.from_username(loader.context, 'uniliga_gg') works fine for me.

So I cycle several accounts for scraping but have not had trouble accessing the non-existing users from the app. The non-existing accounts have no relation to the accounts I am logging in with, so if there is a block in place it is by instagram itself. Is it possible for accounts to be blocked on a region basis?
Looking at @Drod917's edits, my current workaround is to check if a recommended username is the same as the one in question, and scrape it anonymously if it is.

exactly the same problem, i'm nearly sure that my accounts is not blocked by target profiles. so there should be something else related to account or target profile

i logged in with my account and viewed the target profile with no problem. but instaloader throws ProfileNotExistsException with exact same target username suggestion! the problem may be something related to session, as it works with one and fails for another

I'm facing the same issue.
Now, I found the problem on https://github.com/instaloader/instaloader/blob/master/instaloader/instaloadercontext.py#L354-L355.
I changed regex and work fine.
match = re.search(r'window\.__additionalDataLoaded\([^{]+.*"graphql":({.*}).*}\);<\/script>', resp.text)

This is fixed with Instaloader 4.5.3.

It's not fixed for me and I can confirm that it happens with accounts that require age verification and therefore to be logged.

It's not fixed for me and I can confirm that it happens with accounts that require age verification and therefore to be logged.


Correct links to LlamaIndex repo

Links to the LlamaIndex repo were receiving a 404 error. Updated the links to the correct page.

@Kansas-Guy, would you be able to compare against the latest main branch? We should have updated a lot of these loaders already

Going to close this for now as this isn't an issue currently. Please open another PR if needed!


Upgrade our 3rd party libs

@sgpearse, @shaomeng, @StasJ, is this something we should do before the next release?

Probably if QT fixes its OSX slider bug, or if Ospray sees a new release?

I'd vote for a 3rd party upgrade given that the current 3rd party libs are almost 3 years old. (Since Aug 2019)

Assigning this since we seem to be doing it.

Fixes #2816

closed by #3110


Fix incorrect decoding of decision variables by MagicRounding

Summary
Fix MagicRounding so that the decision variables can be decoded correctly.
Fix #626.
Details and comments
The iteration order of var2op in the method, _unpack_measurement_outcome in :class:~qiskit_optimization.algorithms.qrao.MagicRounding has been modified so that it can correctly run in the order of the decision variables.
✅ I have added the tests to cover my changes.
✅ I have updated the documentation accordingly.
✅ I have read the CONTRIBUTING document.

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

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

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

2 of 2 (100.0%)  changed or added relevant lines in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+0.002%) to 92.859%

Totals

Change from base Build<PHONE_NUMBER>0:
0.002%

Covered Lines:
4447

Relevant Lines:
4789

💛  - Coveralls


entos: add hessian and xtb support

Description
This PR adds hessian and xtb support to the entos harness. It is a companion to MolSSI/QCEngineRecords#21.
Status

[ ] Changelog updated
[ ] Ready to go

@sjrl

Awesome! This looks great! I'm in the process of updating the entos Harness to call HF through the HF subcommand instead of DFT and adding more options for both DFT and HF.

Once this is merged in I can go ahead with my PRs.


Project Accelerator Licensing Information?

How do I set security permissions within Project accelerator. When I read the documentation users require the Project Common and Project user permissions, but how do we set permissions for Project member vs project users, vs project requestors?

You can define your own security roles as in any other Model-driven Power App: https://docs.microsoft.com/en-us/project-for-the-web/project-for-the-web-security-roles

TLDR: You need Microsoft 365 Project Plan licenses and Power BI Pro (or better) licenses to use the solution.
The Project Accelerator solution uses the same Dataverse infrastructure set up by the Project Online service.  You can purchase Project Plan 1, 2 or 3 licenses for your Project Managers.  I have provided a link to the Project Plan options and comparison of features.
https://www.microsoft.com/en-ca/microsoft-365/project/compare-microsoft-project-management-software?&ef_id=Cj0KCQjw08aYBhDlARIsAA_gb0dxyKxbplxdd0PxUTysAGWZbQuamwh69jdqyw172OKgXGZNobl4lpoaAnblEALw_wcB%3AG%3As&OCID=AIDcmmwf9kwzdj_SEM_Cj0KCQjw08aYBhDlARIsAA_gb0dxyKxbplxdd0PxUTysAGWZbQuamwh69jdqyw172OKgXGZNobl4lpoaAnblEALw_wcB%3AG%3As&lnkd=Google_O365SMB_Brand&gclid=Cj0KCQjw08aYBhDlARIsAA_gb0dxyKxbplxdd0PxUTysAGWZbQuamwh69jdqyw172OKgXGZNobl4lpoaAnblEALw_wcB&activetab=tabs%3Aprimaryr1
I have two clients where I have installed the Project Accelerator solution and set up all of the Project Managers with Project Plan 3 licenses so they can use the Project Online solution including Roadmaps.  Project Members do not require a Project Plan license in order to view project schedules in Project Online.  Without a Project Plan license, the Project Members can't mark tasks complete, although I have read this will be changing.  I set up only the Project Managers with access to the Project PowerApp from the Project Accelerator solution.  I have found there is way too much detail in the information contained in the Project PowerApp for a typical Project Member.
You will also need to consider whether you want to purchase Power BI Pro licenses so that all of your people, Project Managers and Project Members can have access to the reports provided in the Project Accelerator solution.  In my opinion, I think Project Members are best served by having access to the project schedule and project reports.  The Project Managers will need full access to everything.
Your Project Members are given access to a particular project by adding them as members to a project using the Project Online interface.  The lack of a license controls their access.  If you need/want Project Members to be able to update the project tasks, then you could purchase Project Plan 1 licenses.
I have found the solution to be very flexible, and you can customize it to your own needs.  I have found the reports too overwhelming for anyone other than experienced PMs so you may well want to develop simpler reports.

Quick update: I just checked the Microsoft 365 Roadmap, and user can update a project task if they have a valid Microsoft 365 license.  This will help keep the number of Microsoft 365 Project Plan licenses to only your PMs.
https://www.microsoft.com/en-us/microsoft-365/roadmap?filters=Microsoft Project
See feature ID 88884


runCut creates exponential right-nested branches

runCut interprets NonDet into an underlying Alternative in a way that ends up creating exponential numbers of right-nested branches. Therefore, the problem doesn’t show up with runNonDetOnce, as it terminates immediately on finding a solution in a left-to-right search, but with runNonDet (which explores the entire search space) it’s quite apparent.

Unfortunately, I think this means that we have to couple Cut carriers with search strategies. In particular, while it’s possible to use runCut with runNonDetOnce without accruing this cost (because the right-nested branches are never explored), it isn’t possible to compose it with runNonDet without paying this penalty.
An alternative carrier for Cut which explores all branches is possible, and can then be reinterpreted into some other Alternative instance, but you can’t compose this with runNonDetOnce to limit the search; since it has to explore the branches, their effects end up being performed:
λ runM (runTraceByPrinting (runNonDetOnce (runCutAll (pure 'a' <|> trace "hello" *> pure 'b'))))
hello
"a"

I was mistaken—we just need to represent actual branches in Branch.

For lots of related strategies, see “Heuristics Entwined with Handlers Combined. Tom Schrijvers and Nicolas Wu and Benoit Desouter and Bart Demoen.”

@zenzike: Thank you! I’m really enjoying that paper ❤

I usually distinguish between cut and call, where cut signals that siblings that proceed it under a call need to be removed, and cull, which picks only the first child in p

@zenzike: That’s super interesting. I kind of think that suggests we should hold off on releasing <IP_ADDRESS> until we’ve explored that.

Right. You can only do that sort of thing if alternation is a deep embedding. I usually define:
data Nondet k = Or k k

specifically for that purpose.


Removing unused setup file

setup.cfg file was not used anymore after moving to poetry so removing.

Codecov Report

Merging #42 (68fd2d2) into master (7e13e08) will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##            master       #42   +/-   ##
=========================================
  Coverage   100.00%   100.00%
=========================================
  Files            2         1    -1
  Lines          184       181    -3
=========================================
- Hits           184       181    -3

Impacted Files
Coverage Δ

sas7bdat_converter/__init__.py

Continue to review full report at Codecov.

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


Trustable releases

Git tag and git commit signing are useless, since they only sign non-blob objects which which refer to tree and blob objects via SHA1.
Releases should be crypto-signed imo. The easiest solution is probably:

provide a source tarball (git archive --prefix=inox-patchset-${tag}/ --format=tar.gz -o inox-patchset-${tag}.tar.gz ${tag}) since git tag based tarballs are not actually static
attach an SHA256 file always
sign both the SHA256 (gpg --armor --detach-sig ...) and the static tarball file

If you want something more fancy, you can try signify, which is used by libressl, but it doesn't work too well with github imo (makes more sense when you have a whole directory of releases).

Git tag and git commit signing are useless, since they only sign non-blob objects which which refer to tree and blob objects via SHA1.

 According to the Git Book, the blob contents are included in its hash, and tree objects are hashed with blob hashes. Are you saying there's some way to change the blob or tree contents without changing its hash?

I'll explain it in more detail.
See the git object model and how the objects are connected: http://shafiulazam.com/gitbook/1_the_git_object_model.html
With git commit/tag signing you sign an object that has no content. Only blobs objects hold the actual content. Your tag or commit object is connected with the blob object via the tree object. Neither the tree nor the blob objects are signed. All of these are connected via SHA1.
So you are effectively signing an SHA-1 Manifest file. SHA-1 has a proven collision: https://shattered.io/
To simplify (it's not that simple though), an attacker would only have to change the blob object and manage to keep the same hash. Ofc we're talking pre-image attack +  a few pesky git details, but... this is already way too close. Cryptographers like Bruce Schneier have said for years that we should abandon SHA-1.
Specific to git and it's broken GPG signing, this problem was also discussed numerous times on the git mailing list:
<EMAIL_ADDRESS><EMAIL_ADDRESS>
Git signed tags and signed commits are cryptographically insecure,
they're useless at the moment.

And even Linus himself said https://www.spinics.net/lists/git/msg09588.html

Signed tags fundamentally have to be re-signed.
[...]
[ The one exception: the "signed tags" security does depend on the hashes
being cryptographically strong. So again, breaking SHA-1 would not mean
that git stops working, but it would potentially mean that if you
don't trust your own private repository, the signed tag may no longer
protect you entirely ]

It has also been discussed on the gentoo mailing list when they switched from CVS to git.
You can also easily verify it yourself with git tools:

create a signed tag
show the raw object content via git cat-file tag <tag-name> (notice how this is signed)
follow the SHA1 referenced object (most likely a commit object) and show it too git cat-file commit <commit-hash> => this could be signed, but doesn't have to necessarily, doesn't matter in the end
now let's look at the tree object referenced in the commit: git cat-file tree <hash> and git ls-tree <hash> => nothing signed
follow any blob object and show it too via git cat-file blob <hash> => see how it's the raw unsigned data in your repository that you want to protect

You can try all combinations of commit and tag signing. Tree objects and blob objects will never be signed and they are connected to signed tags and commits via SHA-1. As such, the weakest link is SHA-1 and an attacker doesn't need to attack GPG, but only SHA-1. That is a fundamentally broken cryptographic model.
You might also find http://gregoryszorc.com/blog/2017/02/28/mercurial,-sha-1,-and-trusting-version-control/#disqus_thread interesting and a new Commit signing plan of mercurial because of partly this exact problem https://www.mercurial-scm.org/wiki/CommitSigningPlan

Ah ok. The whole argument was resting upon the cryptographically-weak SHA-1. Alright then. Thanks for the well written explanation anyway.

Well, I had that lengthy explanation already written somewhere else, so I figured I'd sum it up instead of saying "because SHA-1" :P

GitHub announced yesterday they're now checking for SHA-1 collisions on all pushes. While signing itself would be good (since it proves the source's identity even if the files aren't downloaded from GitHub), it seems the aforementioned attack would be prohibitively expensive to perform now, if possible at all. (Plus, Git is now working towards the infrastructure required to dump SHA-1, which solves the problem entirely in a year or two.)

GitHub announced yesterday they're now checking for SHA-1 collisions on all pushes.

How's that relevant for an MITM attack on a user, performing a tarball download? The thing they want to defend against is something different.

Good idea, I'm definitly looking into that (but not for the 57.0.2987.98 release).
Besides the SHA-1 issue it would be also nice to have some sort of deterministic builds in the long term. (i.e.: gitian-building, TL;DR: "Gitian is the deterministic build process that is used to build the Bitcoin Core executables. It provides a way to be reasonably sure that the executables are really built from the source on GitHub.")

Well, static linking isn't probably within the scope and I'd argue against it.
Sounds more like https://reproducible-builds.org maybe?


[scripts] fix test_router_reattach

Fix test_router_attach.py failing by a small chance.
Root cause: routerdowngradethreshold restored back to default (23) after node reset, so the test had 5/120 chance to downgrade. We should set it back to 32 before starting it.
This PR also enhance the test for a little bit:

Make sure the node reattached as Router within 1 second
Make sure the node does not downgrade after Router Selection Jitter (3s)

Fixes #5447

Good catch!

I got a PCAP from uploaded artifacts and spotted the issue when I saw the ADDR_REL.ntf after reset.


gitattributes: Suppress diffs on renamed Jest snapshot files

These were moved in 7ab5a5cd4.

Thanks! LGTM; please merge at will.


Register default mappers in ResourceTestRule

The default exception mappers are not registered in ResourceTestRule, which may be an annoyance to users, as they would have know what the defaults are and know to re-register them if their tests relied on functionality the exception mappers provided. This pull requests fixes this situation by registering them out of the box.
The only users who would be negatively affected by this pull request are those that turn off registerDefaultExceptionMappers in the configuration and choose not to define new mappers to replace them. Those that override default exception mappers in the application will still override them in ResourceTestRule as usual.
Closes #808

I think this is good.  ResourceTestRule should work out of the box with the default configuration.  I think if a user uses registerDefaultExceptionMappers, then they should also be expected to update ResourceTestRule in their tests accordingly.

LGTM. :+1:

Does this take the configuration (AbstractServerFactory::getRegisterDefaultExceptionMappers) into account?

No, it doesn't. Do you have a use case where it matters?

In our application, we disable adding the default exception mappters in order to customize some of them. It would be nice to not loose that ability. Maybe make it configurable?

If you override/customize them in your application, then shouldn't need to set registerDefaultExceptionMappers to false.
Saying that, I realized that this pull request registers the default exception mappers in the wrong place for ResourceTestRule, so that you can't override them with your own. So I'll be back with the fix and test cases to ensure the functionality.


What is the default temperature in Kelvin?

I would like to write a script that gradually alters the temperature of the screen.
In order to do so I will need to find the gradual distance from the base/default temperature to the one I finally want to set.
But your utility talks about an identity matrix as a base reference for a default value.
I'll also provide an example:

Assuming I want to set my temperature at 4000 Kelvin right on sunset (let's assume at 18:00), with a ramp up time of 30 minutes.
If I knew that the base/default temperature was 6000 Kelvin, then at 17:45 (15 minutes before 18:00), I should be half way between 6000 and 4000, which is (6000-4000)/2 = 5000 K
But not having a value of 6000, or base temperature, I cannot create a smooth ramp.

Do you have any ideas how something like that can be achieved?
Thanks!

static Mat3x3 matrixForKelvin(unsigned long long temp) {
    float r = 1.F, g = 1.F, b = 1.F;

    temp /= 100;

    if (temp <= 66) {
        r = 255;
        g = std::clamp(99.4708025861 * std::log(temp) -<PHONE_NUMBER>661, 0.0, 255.0);
        if (temp <= 19)
            b = 0;
        else
            b = std::clamp(std::log(temp - 10) *<PHONE_NUMBER>231 -<PHONE_NUMBER>307, 0.0, 255.0);
    } else {
        r = std::clamp(329.698727446 * (std::pow(temp - 60, -0.1332047592)), 0.0, 255.0);
        g = std::clamp(288.1221695283 * (std::pow(temp - 60, -0.0755148492)), 0.0, 255.0);
        b = 255;
    }

    return std::array<float, 9>{r / 255.F, 0, 0, 0, g / 255.F, 0, 0, 0, b / 255.F};
}

reversing this, the whitepoint is about 6500 - 6600K

Reversing should result in one value, no?  Unless any value between 6500-6600, is "close-enough"...?
From my manual trial and errors, I see that there is some rounding/losses somewhere that prevents you from getting at exactly the identity matrix.  Best I could work it out was any value between 6600 and 6699 resulting in:
1 0 0
0 1 0
0 0 0.9903443

Which leads me to believe that the actual base value should be ≈ 6650K

maybe, yea. Close enough. Use the identity hyprsunset -i then switch to 6650 and go from there

Yep, I already started using 6650 as the default value.
I'll try to post the script when done!
Closing!


Updated commons.io dependency

I was unable to build due to
Corpus.scala:7: object io is not a member of package org.apache.commons [error] import org.apache.commons.io.FileUtils
When troubleshooting resolution I noticed scalameta depended on the old location of commons-io was using an old version.  This change is just an update to the latest version of commons-io.  All tests pass locally for me now.

LGTM, thank you for fixing this! The old dependency was copied from the scalafmt build.


Format Code Shortcut input Special Char if no Format Code Option is available

VSCode Version: 1.6.1
OS Version: 10.12

Steps to Reproduce:

create a new css stylesheet file
try to format code with shift-option-f

That's just something that OSX does. You should see the same character if you use that key combo in any program.


Installation procedure seems a bit confusing

Hello.  I am not new to Arduino, but even with years of experience, I am not fully understanding your directions.

You don't mention it, however, I assumed you meant to first download/extract your zip, and THEN download the espressif zip into the esp32-cam subfolder from your extracted zip.  But what if I want to use one of the other two options: esp32-cam-rtos or esp32-cam-allframes?

Done

Delete some files from "the sketch" folder"??  You mean your esp32-cam folder??? If so, why not just not have them there in the first place?  That is what I did, however this step just seems to cause compiling issues later.

Done

Again, unzip into what folder??  Your esp32-cam one?  That is what I did.

Phantom step 6. After making the boards type selection and new WiFi config file, I tried to compile, and of course it wants one of the files I just deleted..
ov2640.h: No such file or directory
Even after redownloading, retrying after a few times, I am clearly misunderstanding your intended folder structure.  Can you elaborate please?

Well, I got it working...
Step 1 - Installed in the folder of feature choice (esp32-cam esp32-cam-rtos or esp32-cam-allframes)
Step 3 - I just skipped it 😉   If not deleting some files causes issues, I can't tell yet.
Step 5.  again, I just used the folder of feature choice (esp32-cam esp32-cam-rtos or esp32-cam-allframes)
But, I also had to add in the horizontal mirror option for my camera as you only had the vertical flip option.
  sensor_t* s = esp_camera_sensor_get();
  s->set_vflip(s, true);
  s->set_hmirror(s, true);

Seems like you have figured it out.

I still don't understand what files you said to delete, nor why.
And someone less experienced with "figuring it out" would probably still be stuck, so I still recommend a bit more clarity in the steps.
Other then that, it is working good for me and a nice upgrade for these little cameras 👍

The OP assumes you already have the git repo cloned on your machine somewhere.
In those 3 folders (1 per different frame serving method) you have my code and a lot of espressif files.
You need to download a zip from the espressif repo ONLY if you want to update the drivers. But you do not need to - everything works and compiles as-is.
Now, if you do decide to refresh the files, that's when you need to delete almost all the files (all except esp32-cam*.ino and camera_pins.h).
By doing that you are deleting all OLD espressif files from the sketch folder, because you are going to replace them with a FRESH ones from the espressif repo's ZIP file.
Makes a little more sense now?

Thanks, the clarity of the OPTIONAL espressif repo steps is nice.  As it the reasoning.
Now, after your explanation and manually looking/comparing through all the files/folders, I can better understand the unzip method you describe... as in you need to strip all the espressif repo files out of their respective subfolders and into the root folder of the chosen frame serving method.  That wasn't clear to me as you originally have the entire esp32-camera-master.zip in the same root folder, so I thought the new one had to replace it (just unzipped into its folder this time).
Anyhow, in my experience many end users and developers generally see things differently, the latter tending to assume the formers thought process would understand those dev nuances.  Thankfully I have progressed far enough from end user territory to (sometimes) see both sides, so I tend to explain things in crayon, and hope others do the same for the poor noobs, as I once was 😄

PS, Thank You!! for even making this... It solved many issues I had with using these wonderful little camera boards.  Now to get a hold of one of the newer ESP-EYE boards.

You are welcome. It was a fun little hack.

Check this one out - another hack which actually could be interesting to combine with the esp32-cam repos since it adds another 4MB of space to the storage.
https://github.com/arkhipenko/ESP32Himem

@arkhipenko Why you do not commit platformio.ini to the repo?

I don't really use platform.io
Do you have a file I can use?


fix: Run publish workflow on main branch only after CI completion

Thank you @7i7o. I have made similar PR for pl-sync too. https://github.com/7i7o/pl-sync/pull/10


Write top level man page for "gps"

See https://github.com/uptech/git-ps-rs/blob/main/doc/gps-add.1 for an example

I briefly started this with some copy pasta but the content all needs to be replaced. See https://github.com/uptech/git-ps-rs/commit/dcb6fc4aa91f455e45c0cd19e2ed6b2db51e5b1f


Have to manually refresh (^L) after Grep with no matches

Only happens on console vim, gvim is OK
After entering the Grep command, the screen is cleared, there are four
lines of "[EasyGrep] Warning:", followed by "Press ENTER or type command to continue"
After pressing enter, only three lines from the buffer are redrawn at the top of the
screen, the rest is blank. Restored to normal by ^L or :redraw! but NOT :redraw
Fixed by changing redraw to redraw! at line 2850 of plugin/EasyGrep.vim
I don't understand why all the redraws are required, so I'm unsure whether that is a reasonable fix.

redraw is a big hammer but it seems appropriate. Thanks for fixing!


Misinterpreted global block

Looks like the plugin can't understand the global block, which have no option id before the {

Thanks for reporting this issue, I will add the language support for this syntax in the future version.

This update should fix this, but I will test it more before uploading it to JetBrains Marketplace 😂.
https://github.com/allape/IDEA-Caddyfile-plugin/releases/tag/v0.3.0


Enable/Disable features of stack

Hi,
Is it possible to enable/disable some of the features of canopen-stack. I am considering not to use NMT, LSS slave. Can i configure them not to build in stack. Please suggest.
Thanks

I recommend building a library out of the CANopen stack files. When using the stack, the linker will ensure that only the required functions are included in your image.

I would also be interested in such a feature as my application is based only on CiA 301. CiA 305's LSS can't be excluded by the linker because it is used in the CONodeProcess function.
Maybe something like a "#define USE_LSS 1" could be added to the config, which would enable us to save on program space and execution time when we don't to use a feature.
I have created a pull request with my implementation.


Bug in adding multiple pumps using the net builder functions

When adding multiple pumps with different pumping curves using alternative units (EN_CMH) the pumps are not initialized correctly, leading to wrong results.
When saving and reloading the input file the model runs correctly.
Attached a test file to illustrate the problem, which gives the following output:
Running 1 test case...
Generated Network has Error 4
Flow from pump1: 0.000000
Flow from pump2: 319.220642

  o Retrieving network data
Flow from pump1: 173.619370
Flow from pump2: 253.737518

test_multiple_pumps_cmh.cpp

This has been fixed in PR #320 and passed the unit test prepared by @AbelHeinsbroek .


docker: slim image, use rustup, build deps only on armv7

A follow up to the reverted #342, with extra improvements:

Install rust from rustup. This seems to solve the issue reported in #342
Remove the cryptography==3.3.2 hack, latest version builds fine with a recent rust.
Install rust and other build dependencies only on arm/v7 (needed cause cryptography has no binary wheel).
Use the TARGETPLATFORM predefined arg.

I tested that it builds on all platforms, but only ran it on arm64 (not on arm/v7).

@chatziko: nice, it works!
Thanks a lot for the fix and your patient! :-)


Passing env/secret into a WindowsVM

I have a windows image ready in qcow2 format. Now I want to inject some configuration at startup. I tried configDrive but its not visible in the VM created.
Any other way to achieve this ?

Just to confirm with you, you tested this and it didn't work?
https://kubevirt.io/user-guide/virtual_machines/startup_scripts/#cloud-init

I expected that to work, just in case, what error do you see? Can you share the configuration you have tried?

This came up before at https://github.com/kubevirt/kubevirt/issues/7992#issuecomment-1171329507
maybe the author could share how he achieved it

apiVersion: kubevirt.io/v1
kind: VirtualMachine
metadata:
  name: myvm
spec:
  running: true
  template:
    metadata:
      labels:
        kubevirt.io/domain: myvm
    spec:
      domain:
        cpu:
          cores: 4
        features:
          acpi: {}
          apic: {}
          hyperv:
            relaxed: {}
            vapic: {}
            spinlocks:
              spinlocks: 8191
        clock:
          utc: {}
          timer:
            hpet:
              present: false
            pit:
              tickPolicy: delay
            rtc:
              tickPolicy: catchup
            hyperv: {}
        devices:
          blockMultiQueue: true
          disks:
            - bootOrder: 1
              disk:
                bus: sata
              name: cdromiso
            - bootOrder: 2
              disk:
                bus: virtio
              name: virtiocontainerdisk
            - bootOrder: 3
              disk:
                bus: virtio
              name: disk3
            - bootOrder: 4
              disk:
                bus: virtio
              name: config-volume
        firmware:
          bootloader:
            efi:
              secureBoot: false
        machine:
          type: q35
        resources:
          requests:
            memory: 16G
      nodeSelector:
        beta.kubernetes.io/instance-type: m5.metal
      volumes:
      - name: cdromiso
        dataVolume:
          name: myvm
      - containerDisk:
          image: quay.io/kubevirt/virtio-container-disk
        name: virtiocontainerdisk

      - cloudInitNoCloud:
          userData: |
            manage_etc_hosts: true
            hostname: myvm
            bootcmd:
            - 'powershell.exe -ExecutionPolicy bypass -Command $env:CUSTOM_VAR="dakshverma"'
        name: disk3
      - name: config-volume
        configMap:
          name: windows-vm-env

This is the VM definition. There is no error as such, but i cant see the envs  or any file containing config.

testvm.log
pod logs

I think tekton-task will inject the env and secret at bake/build time. But requirement is to have them at deploy time.

@Neoclassic You got any workaround for this.

How would you folks expect this feature to work?
That an env var is set in every powershell in windows?
Or that you can look at a file to understand all env vars?
or … ?

How would you folks expect this feature to work?
That an env var is set in every powershell in windows?
Or that you can look at a file to understand all env vars?
or … ?

I think the ask is for a Start-UP script/Userdata kind of implementation for windows based kubevirt instances.

I see. Well
You can use sysprep.
You can use cloud-init (witn CloudBaseIT Windows for example).
You can use guestfs to inject a startup script.
What is missing?


Title: Adding a small Licenses section to the readme and a MIT Licenses badge

Is your feature request related to a problem? Please describe.
The readme file of the repo should have a Licenses section to make it more professional.
Describe the solution you'd like.
Adding a small Licenses section to the readme and a MIT Licenses badge
Describe alternatives you've considered.

Add any other context or screenshots about the feature request here.

Record

[X] I agree to follow this project's Code of Conduct
[X] I have checked the existing issues
[X] I'm a GSSoC'23 contributor
[X] I want to work on this issue

Please assign me this issue under GSSoC'23

Sure @1Shubham7