GH-1182 Port NTP Action Plugin to Rust

Fixes #1182.
Port NTP Action Plugin to rust
Signed-off-by: Will Johnson<EMAIL_ADDRESS>

Video of IML configuring NTP with the rust action plugin:

Codecov Report

Merging #1200 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master    #1200   +/-   ##
=======================================
  Coverage   95.39%   95.39%
=======================================
  Files           2        2
  Lines         152      152
=======================================
  Hits          145      145
  Misses          7        7

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 0aa188e...5c4b666. Read the comment docs.


ARROW-1895: [Python] Add field_name to pandas index metadata

@jorisvandenbossche would you mind reviewing and making sure this jives with the discussion so far?

One special case that I encountered in https://github.com/apache/arrow/pull/1386 is a DataFrame with column name None (from ipc when serializing a Series without name).
This case is not yet handled here:
In [6]: pa.Table.from_pandas(pd.DataFrame({None: [1,2,3]}))
Out[6]:
pyarrow.Table
None: int64
__index_level_0__: int64
metadata
--------
{b'pandas': b'{"index_columns": ["__index_level_0__"], "column_indexes": [{"na'
            b'me": null, "pandas_type": "mixed", "numpy_type": "object", "meta'
            b'data": null}], "columns": [{"name": null, "field_name": null, "p'
            b'andas_type": "int64", "numpy_type": "int64", "metadata": null}, '
            b'{"name": null, "field_name": "__index_level_0__", "pandas_type":'
            b' "int64", "numpy_type": "int64", "metadata": null}], "pandas_ver'
            b'sion": "0.22.0.dev0+260.g5da3759"}'}

So for the column, "name": null, "field_name": null, are both null, while field_name should be "None"

@jorisvandenbossche How is it possible in practice to get a Series with a name of None? How can one exist without explicitly constructing it or assigning its name to be None?

Indeed by just constructing it and not getting it as a column from a dataframe.
Such a dataframe as I show above is constructed in the ipc code to serialize Series objects:
https://github.com/apache/arrow/blob/1d519d8351c0b26ccb3214116eaf3aa684e4bba0/python/pyarrow/serialization.py#L194-L195
It is also tested explicitly: https://github.com/apache/arrow/blob/master/python/pyarrow/tests/test_ipc.py#L458

I can merge this tomorrow once the build is passing, will also take a brief look through

I'm going to be AFK for about 5 or 6 hours, @cpcloud or @xhochy please go and ahead and merge this once the Python builds run in Travis CI so @jorisvandenbossche can rebase. I'll be back on later today to work on some other patches for 0.8.0


Uncaught ReferenceError: Colors is not defined

Instead of
<script type="text/javascript" src="jqColorPicker.min.js">

(minimized version), I tried jqColorPicker.js (full version) and get a error in console
jqColorPicker.js:317 Uncaught ReferenceError: Colors is not defined

If you use the un-minified version you need to load colors.js before. So:
<script type="text/javascript" src="colors.js">
<script type="text/javascript" src="jqColorPicker.js">

My mistake. Thanks! :)


Audit Log

Is your feature request related to a problem? Please describe.
There's no good way to see what happened currently. Like when a judge votes for a project or when an admin changed.
Describe the solution you'd like
I want all that logged somewhere admins can see in a nice UI.
Additional context
No response

Replaces #37


Changing the default color for controls

Greetings,
I tried to change the primary colour for the theme and i can see it on the generated css but all the controls, buttons, tabs, date picker, etc, still show as pink.
Thanks,
Huambo

Hi, which variables did you set ?

JB,
How are you? I wonder if it caused by a build error when i do:
npm install?
$primary: (
color: $material-color-blue-grey-500,
dark: $material-color-blue-grey-700,
light: $material-color-blue-grey-100,
) !default;
Thank you,
Everardo

Hi, material uses secondary color for Controls (https://github.com/Daemonite/material/blob/master/assets/scss/variables/_variable-material.scss)
$selection-control-color-active:    theme-color(secondary) !default;

Thanks! It is a beautiful implementation of Material Design. Thanks for
sharing.
:)
On Mon, Nov 28, 2022 at 6:53 AM JB @.***> wrote:

Hi, material uses secondary color for Controls (
https://github.com/Daemonite/material/blob/master/assets/scss/variables/_variable-material.scss
)
$selection-control-color-active: theme-color(secondary) !default;
—
Reply to this email directly, view it on GitHub
https://github.com/Daemonite/material/issues/288#issuecomment-1328947880,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABMBWNF2J4WAL6KXFTXKJEDWKSMMBANCNFSM6AAAAAASLOZRRM
.
You are receiving this because you authored the thread.Message ID:
@.***>


Request for ".ovpn Profile Token" attribute for the openvpncloud_connector resource

I'm trying to fully automate the provisioning of a network and its associated routes and connectors via terraform, including the management of the EC2 instances and other resources in AWS.
The only piece I'm missing is the ability to read the ".ovpn Profile Token" from the openvpncloud_connector resource which is used in the EC2 user_data cloudinit script. Currently, this has to be copied from the UI. I'm not sure if the API supports it, but it's not listed as a read-only attribute here:
https://registry.terraform.io/providers/OpenVPN/openvpn-cloud/latest/docs/resources/connector
Ideally, it would also need to be available from the "default connector" for the openvpncloud_network resource:
https://registry.terraform.io/providers/OpenVPN/openvpn-cloud/latest/docs/resources/network
As potentially another improvement, I think it would be better if the "default connector" was not mandatory and these could be managed completely independently in the individual openvpncloud_connector resource. Same for the "default_route"

@pickgr Hi! The API has such functionality but has not yet been implemented in this provider.
JFYI: The API has changed a lot, and the provider in the current implementation does not seem to be fully working. We are actively working on supporting the new version of the API, and I will keep you informed.
There, we will immediately add the ability to receive a profile from the connector.

@arslanbekov That's great news!
We're currently implementing the latest version of this provider and found a few key things missing, as others have pointed out in this and other tickets here.
Would you be able to provide any (even rough) estimate on when could we expect a new version?

@bwesolowskicf Hi, thanks! I believe we can release this month.

arslanbekov

@arslanbekov can you please give an update on when a new version will be released? This project seems to have gone stale.

I made changes to retrieve profile, but not yet for the token: https://github.com/OpenVPN/terraform-provider-openvpn-cloud/pull/136

We've published new version of Terraform Provider to Registry: https://registry.terraform.io/providers/OpenVPN/cloudconnexa/latest
Going forward only https://registry.terraform.io/providers/OpenVPN/cloudconnexa/latest will be developed.
Please give new provider a try, hopefully it will fix your issue.
In case if problem persisst - please open new "Issue" (https://github.com/OpenVPN/terraform-provider-cloudconnexa/issues)
Sorry for inconvenience.


Waypoint: Global vs Local Scope in Functions [Beta] extra word

It is possible to have both a local and global variables with the same name.

Should be to have both local and global variables I think.

In the last test it says "decalre" instead of "declare"


Add crew and rolling stock roster to ASPMS

Add crew and rolling stock roster to ASPMS.
First AccountAndSystemParameterConfig data type is modified to accomodate crew and rolling stock roster by me.
Next add the function to modify crew and rolling stock roster to ASPMS by Anurag.

I added rolling stock roster and crew roster to SystemParameter as in:
https://github.com/wkoiking/VDU/commit/72a102aedbf5bb53dd100d813347a675b7268d12
Please add GUI to ASPMS according to the data structure.
     , alarmLevel                    :: Map EventTag AlarmLevel
+    , rollingStockRoster            :: Map RakeID Text
+    , crewRoster                    :: Map CrewID Text
     } deriving (Show, Eq, Ord, Generic)

rollingStockRoster is association of RakeID to Text description.
crewRoster is association of CrewID to Text description.
where CrewID is maximum 6 digit integer:
newtype CrewID = CrewID
    { unCrewID :: Int
    } deriving (Eq, Ord, Show, Generic)

and RakeID is maximum 159 interger. (shown on display as 801, 802, 803 .. 899, 8A0 ... 8F9):
newtype RakeID = RakeID Word16 deriving (Ord, Eq, Enum, Bounded, Ix, Generic)

Text description should be maximum 25 ASCII charactor.

Please add these commits to the server branch, since ASPMS depends on server branch of VDU.

Sorry. I just merged it to server.

Do we need functionality in the UI for addition/removal of Crew Roster and Rolling Stock Roster?
Or is it like Running Time Lists, where I just have to display the map contents?

Changes pushed in via commit e04b730


Add support for struct and impl

Instead of having classes, we're going to try structs with impl blocks.
TODO:

[ ] parse syntax for initializing a new struct
[ ] infer instance type from struct + impl blocks
[ ] infer struct initialization expressions

I'll work on static members in a separate PR.

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

Comparison is base (09f116d) 80.36% compared to head (cc318d9) 80.53%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #132      +/-   ##
==========================================
+ Coverage   80.36%   80.53%   +0.17%
==========================================
  Files          20       20
  Lines        6178     6232      +54
  Branches      805      805
==========================================
+ Hits         4965     5019      +54
  Misses       1213     1213

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


Remove BlockLocationPolicy and BlockIn/OutStream

What changes are proposed in this pull request?

Remove BlockLocationPolicy and all implementations
Remove BlockInStream, BlockOutStream and UnderFileSystemFileOutStream
Updates in property keys to remove relevant sections
Update affected commands like StressBench and LoadCommand, to avoid calling methods of the obsolete Block API

Why are the changes needed?
We are deprecating Block API and removing all relevant code
Does this PR introduce any user facing changes?
Please list the user-facing changes introduced by your change, including

change in user-facing APIs
addition or removal of property keys
webui

alluxio-bot, merge this please


Sorry!(chromium.googlesource.com)|<IP_ADDRESS>|:443... failed: Connection timed out.   But ,i can open this webpage!

--2016-05-13 14:16:21--  (try: 6)  https://chromium.googlesource.com/chromiumos/third_party/adhd/+archive/020abee6b983186bf3c60c6938021d7f1a8fae9a.tar.gz
Connecting to chromium.googlesource.com (chromium.googlesource.com)|<IP_ADDRESS>|:443... failed: Connection timed out.
Retrying.
--2016-05-13 14:18:35--  (try: 7)  https://chromium.googlesource.com/chromiumos/third_party/adhd/+archive/020abee6b983186bf3c60c6938021d7f1a8fae9a.tar.gz
Connecting to chromium.googlesource.com (chromium.googlesource.com)|<IP_ADDRESS>|:443... failed: Connection timed out.
Retrying.
sorry. i english is so bad,please help me!

Take a look at https://github.com/dnschneid/crouton/issues/2554 see if that solves it.

Thank you!for this!😌

If that solved it for you, can you please close this issue. Thanks :)

sorry


adding more accounts

What happens when you add more accounts ? I added 3 but cant see any difference ??
Is there i way i can make the scanning area bigger ?

on the login screen change the default scan radius.  More accounts makes it scan faster, turn on scan circles


cannot set key's value ending by ')'

When setting appsetting ith keyvault's secret, through identity manager, the closing bracket is not registered
i.e.
az webapp config appsettings set  --slot <slot's name> -n <webapp's name> -o tsv --settings Blabla="@Microsoft.KeyVault(SecretUri=<keyvault url>/secrets/<secret's name>/<secret's version>)"
=> appsetting Blabla has value "@Microsoft.KeyVault(SecretUri=<keyvault url>/secrets/<secret's name>/<secret's version>"

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

ID: 30f2ae52-2c7f-7e7e-8a62-f1b614f281d3
Version Independent ID: 9f23ff17-14e0-7800-0094-fb50a5fa91d6
Content: az webapp config appsettings
Content Source: latest/docs-ref-autogen/webapp/config/appsettings.yml
Service: app-service-web
GitHub Login: @rloutlaw
Microsoft Alias: routlaw

Suggest use the latest CLI, put in a json file with content
{"Blabla": "@Microsoft.KeyVault(SecretUri=<keyvault url>/secrets/<secret's name>/<secret's version>)"}

and let the setting command load from the file using @mysetting.json
We made this change to help prevent the shell from interpreting the special characters in the setting value
If you don't like the json file, make sure you wrap the quote around = not just around , and use --debug to inspect the payload to make sure you get the value right

I've installed the lastest version (2.0.58)
This is not working:

neither by using --settings "mysettings=myvalue"
neither when using 'az webapp config appsettings set -g MyResourceGroup -n MyUniqueApp --settings mySetting=value @moreSettings.json'
I have an error:
not enough values to unpack (expected 2, got 1)
Traceback (most recent call last):
File "C:\Users\VssAdministrator\AppData\Local\Temp\pip-install-2txkquks\azure-cli-core\azure\cli\core\util.py", line
218, in shell_safe_json_parse
File "C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\lib\json_init_.py", line 354, in loads
return _default_decoder.decode(s)
File "C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\lib\json\decoder.py", line 339, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\lib\json\decoder.py", line 357, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

@yugangw-msft Apologies for commenting on a closed issue, but I can't get any combination of quotes to work around the value. Both of the following strip the trailing ')' character:
--setttings "Database=@Microsoft.KeyVault(SecretUri=FOO)"
--settings Database="@Microsoft.KeyVault(SecretUri=FOO)"

Is that correct for the quote marks, or was there a different method you were referring to?
I've tried using the external JSON file, but the use of the '@' character to identify the file doesn't seem to play nicely with running the commands through a powershell script (the "@" character isn't fed through to the az command).
Weirdly, if I put a space after the value, the closing parenthesis is retained, but I don't know if that causes other issues.
Using az-cli v2.0.63.

I’ve solved this issue with the only workaround that as worked for me: using json file with powershell.
Other ways are not working:

CMD + json file
POWERSHELL + --settings
CMD + --settings

Not tried yet space after valule.
From: Daniel Becroft<EMAIL_ADDRESS>Sent: Wednesday, June 26, 2019 5:57 AM
To: Azure/azure-cli<EMAIL_ADDRESS>Cc: Sang-Shin Lee<EMAIL_ADDRESS>Author<EMAIL_ADDRESS>Subject: Re: [Azure/azure-cli] cannot set key's value ending by ')' (#8506)
@yugangw-msfthttps://github.com/yugangw-msft Apologies for commenting on a closed issue, but I can't get any combination of quotes to work around the value. Both of the following strip the trailing ')' character:
--setttings "Database=@Microsoft.KeyVault(SecretUri=FOO)"
--settings Database="@Microsoft.KeyVault(SecretUri=FOO)"
Is that correct for the quote marks, or was there a different method you were referring to?
I've tried using the external JSON file, but the use of the '@' character to identify the file doesn't seem to play nicely with running the commands through a powershell script (the "@" character isn't fed through to the az command).
Weirdly, if I put a space after the value, the closing parenthesis is retained, but I don't know if that causes other issues.
Using az-cli v2.0.63.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com/Azure/azure-cli/issues/8506?email_source=notifications&email_token=ALK5ZKQ7MJLE3XYY2PTR2ADP4LSHLA5CNFSM4GW477SKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODYSHZUY#issuecomment-505707731, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ALK5ZKWVLONHI353GHGPOGLP4LSHLANCNFSM4GW477SA.

@Sang-ShinLEE  I managed to get it working - I had to double-quote the value:
--settings "Database=""@Microsoft.KeyVault(SecretUri=FOO)"""
That fixed the problem.

Thanks to letting me know that workaround… which is quite non-intuitive
From: Daniel Becroft<EMAIL_ADDRESS>Sent: Thursday, June 27, 2019 10:30 AM
To: Azure/azure-cli<EMAIL_ADDRESS>Cc: Sang-Shin Lee<EMAIL_ADDRESS>Mention<EMAIL_ADDRESS>Subject: Re: [Azure/azure-cli] cannot set key's value ending by ')' (#8506)
@Sang-ShinLEEhttps://github.com/Sang-ShinLEE I managed to get it working - I had to double-quote the value:
--settings "Database=""@Microsoft.KeyVault(SecretUri=FOO)"""
That fixed the problem.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://github.com/Azure/azure-cli/issues/8506?email_source=notifications&email_token=ALK5ZKR627EQF3NZOUF4I73P4R3AHA5CNFSM4GW477SKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODYWLY3A#issuecomment-506248300, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ALK5ZKUUKAXVHMFZ5VJT5V3P4R3AHANCNFSM4GW477SA.

It's possible to use sigle-quote with double-quote, like this: 'sidFKedhs")"ahwey'
It worked for me.

April 2021, still hit the same issue. I wish this was better documented.

Mid-2023, still hit by the issue 🥳

In case anyone else has a similar issue, running in powershell
This fails:
az rest --debug --method get --url "https://graph.microsoft.com/v1.0/tenantRelationships/findTenantInformationByTenantId(tenantId='00000000-0000-0000-0000-000000000000')"

Looking at the debug output it's stripping the closing parenthesis )
This works:
az rest --debug --method get --url """https://graph.microsoft.com/v1.0/tenantRelationships/findTenantInformationByTenantId(tenantId='00000000-0000-0000-0000-000000000000')"""

See https://github.com/Azure/azure-cli/issues/15529


Fix the minimum required RBAC

We only have to assign Virtual Machine Administrator Login or Virtual Machine User Login role to the Virtual Machine resource for user to RDP to the VM. We tested it and it works and it is the minimum role requirement.

@MicrosoftGuyJFlo
Can you review the proposed changes?
When the changes are ready for publication, add a #sign-off comment to signal that the PR is ready for the review team to merge.
#label:"aq-pr-triaged"
@MicrosoftDocs/public-repo-pr-review-team

#sign-off


[Model]: Support for InternVL2

🚀 The feature, motivation and pitch
InternVL2 is currently the most powerful open-source Multimodal Large Language Model (MLLM). The InternVL2 family includes models ranging from a 2B model, suitable for edge devices, to a 108B model, which is significantly more powerful. With larger-scale language models, InternVL2-Pro demonstrates outstanding multimodal understanding capabilities, matching the performance of commercial closed-source models across various benchmarks.
Given the significant potential of InternVL2, we believe that integrating it with vLLM would greatly benefit both the vLLM community and users of this model. We kindly request your assistance in enabling the deployment of InternVL2 using the vLLM framework.
We look forward to your positive response and are eager to collaborate on this exciting endeavor.
Alternatives
No response
Additional context
Blog：https://internvl.github.io/blog/2024-07-02-InternVL-2.0/
Model Family：https://huggingface.co/collections/OpenGVLab/internvl-20-667d3961ab5eb12c7ed1463e

Hey @Weiyun1025! Thank you for making this issue and I took a brief look at the model repo https://huggingface.co/OpenGVLab/InternVL2-40B/tree/main. It seems to me that supporting this model should be pretty straightforward (similar to what we did with Phi-3-vision).
Are you planning to make a pull request on this? If so, feel free to take a look at other vision language model implementations and let us know if you run into any issue. We're happy to help you on getting this model supported on vLLM.
If you cannot make a pull request, I will try to see if I can make a PR on this. Feel free to check out #4194 for the full roadmap around multi-modality.
Thanks!


How to re-initialize the dragularService? I keep running into error...

So in my Angular App, I have 2 drag container. I use this format to set them up:
     drakeObj = dragularService("#containerVideosDrag", {
    containersModel: admin.addedVideos,
    scope: $scope,
});
     drakeObj = dragularService("#containerSlidersDrag", {
    containersModel: admin.addedSliders,
    scope: $scope,
});

And the page need to load different elements inside the #containerVideosDrag and the #containerSlidersDrag container. So everything need to reset / re-initialize without a forced page refresh. I try to set
drakeObj.destroy();
OR
drakeObj = {}
OR
drakeObj.containers.dragularCommon.splice(0, 2);
OR
drakeObj.containers.dragularCommon = [];
But none of it works. So when load new element from the server and new content into the #containerVideosDrag and the #containerSlidersDrag container and drag again, this error show up:
angular.js:12477 TypeError: Cannot read property 'null' of null
at dragular.js:523
at Scope.$eval (angular.js:15989)
at $applyAsyncExpression (angular.js:16128)
at flushApplyAsync (angular.js:16381)
at Scope.$eval (angular.js:15989)
at Scope.$apply (angular.js:16089)
at angular.js:16392
at completeOutstandingRequest (angular.js:5507)
at angular.js:5784(anonymous function) @ angular.js:12477(anonymous function) @ angular.js:9246flushApplyAsync @ angular.js:16383Scope.$eval @ angular.js:15989Scope.$apply @ angular.js:16089(anonymous function) @ angular.js:16392completeOutstandingRequest @ angular.js:5507(anonymous function) @ angular.js:5784
dragular.js:582 Uncaught TypeError: Cannot read property 'parentElement' of null
Force refresh the page is the only way to reset dragularService now. Please help to clearly destroy all the  dragularService without page refresh so I can reuse drakeObj = dragularService(...

I am sorry I have somehow missed this issue.
You have several posibilities here, depends on what is your goal.
As I understand you just want to clear items from containers.
You can achieve this by setting your model array length to 0
admin.addedVideos.length = 0;

You can also access model via drake this way
drakeObj.containersCtx.dragularCommon[0].m.length = 0;

containers property keeps references to containers DOM objects
containersCtx keeps its contexts in two another members
m - for model
and
o - for options the container has been initiated with
dragularCommon is default namespace to keep containers separated from other namespaces
I hope it will help you ;)

This thread may be closed but I happen to came across this today and did not get the best solution so I think I have to comment for anyone who may need it in the future. The solution is this:

dragularService.cleanEnviroment();

Hi, I operate with same problem. I have one container which is dynamically reinitialized with new array. For me works good when i keep reference for drake object and when new array comes only call drake.destroy() to clean drake object and reinit with dragularService. initDragular is called in watcher when source array (messages) is changed. Hope that it helps to someone.
Source code:
var ddCont = elem.children().children();
var drakeObj;
function initDragular() {
   if(drakeObj){
      drakeObj.destroy();
   }
   drakeObj = dragularService(ddCont[0], {
       moves: function (el, container, handle) { return handle.className === 'handle'; },
       scope: scope,
       containersModel: scope.messengerSet.messages
 });
 }


How did you get T480 run prime95 at 44W under Windows? I can only reach 15W

I have been reading your reddit post: https://www.reddit.com/r/thinkpad/comments/870u0a/t480s_linux_throttling_bug/
You mentioned you can get the T480 run prime95 at 44W under Windows a year ago.
But now it appears my T480 is throttled at 15W. It reaches 22W for a short moment then XTU shows Power Limit Throttling then it drops to 15W.
My T480's PSU is 65W.
CPU is i7-8650u.
GPU is MX150.
I'm using Windows 10 with the newest BIOS 1.24.
It appears some people have similar issues: https://www.reddit.com/r/thinkpad/comments/935isi/t480s_power_limit_throttling_after_clean_install/
They said unstall the Lenovo PM Driver or Disabling Lenovo Intelligent Thermal Solutions can solve the issue.
Other people https://www.reddit.com/r/Dell/comments/a27e1l/finally_permanently_fixed_dell_inspiron_power/ suggested unstalling "Intel Dynamic Platform and Thermal Framework" driver can solve this.
I did all of these. I unstalled all Intel DPTF staffs all Lenovo staffs and disabled the DPTF service and all Lenovo services. But it does not work.
After deleting all these, the XTU always shows the Thermal Throttling. Then the CPU won't go up beyond 70 C。。
So how to remove all throttle limits to get max power of the T480 at Windows?

I have also tried set power plan to "balanced" or "ultimate performance". But it appears no difference.
My best result for now is

Uninstall all intel DPTF stuffs. But not Lenovo stuffs.
Reboot.
Set Lenovo Intelligent Thermal Solutions service to Manual and stops it. But everytime after reboot, it have to start and stop this service manually for once...

This way I can get it running at 25W, CPU temp 93 C, and XTU only shows Power Limit Throttling.

Yes, DPTF started limiting TDP on Windows too after some time. Right now when I need to boot into Windows I just fire ThrottleStop, without XTU. This way I can get 44W stable.

Yes, DPTF started limiting TDP on Windows too after some time. Right now when I need to boot into Windows I just fire ThrottleStop, without XTU. This way I can get 44W stable.

Thank you. I just tried ThrottleStop, it shows PROCHOT is 86 C。Where to increase this temp?  Is this temp is set by Intel DPTF or Lenovo stuffs? Did you uninstall any drivers?

After digging a bit deeper. I found that starting and stop the Lenovo Intelligent Thermal Solutions service manually actually set the MSR_TEMPERATURE_TARGET=0x1A2 bit from 0xE164 to 0x0364. Meaning the thermal Throttling is changed from 70C to 97C as explained here: https://forum.51nb.com/forum.php?mod=viewthread&tid=1889105
This works on the this T480. But not working on T470...
I also tried using RWeverything, but I get a blue screen error caused by RwDrv.sys...

@clouddemo1 I even tried writing a Windows kernel driver myself. Everything's fine with __readmsr. However at the very moment I touch __writemsr, a GSoD always occurs.

I think this can be closed with Windows 10 20H1, which changed the behavior of Virtualization-Based Security, undocumented however. See this post.

I think this can be closed with Windows 10 20H1, which changed the behavior of Virtualization-Based Security, undocumented however. See this post.

The post was deleted and internet archive doesn't have it.
AFAIK, i5 (8250u) cannot consume 44W, only i7 can. i5 can do around 30W, which can be cooled by T480 cooling system (with 2 heat pipes, not sure about one with a single pipe) and by T480s's. 15W is a limit set by something and can be changed under windows 10 with throttlestop.
It's offtopic maybe, came here from search, but i hope it may give some context to discussion

I think this can be closed with Windows 10 20H1, which changed the behavior of Virtualization-Based Security, undocumented however. See this post.

The post was deleted and internet archive doesn't have it.
AFAIK, i5 (8250u) cannot consume 44W, only i7 can. i5 can do around 30W, which can be cooled by T480 cooling system (with 2 heat pipes, not sure about one with a single pipe) and by T480s's. 15W is a limit set by something and can be changed under windows 10 with throttlestop.
It's offtopic maybe, came here from search, but i hope it may provide additional context to this issue

Thanks for that info, so would it make sense to just set it to 30W instead of the 44W?

I don't know. My understanding was that throttled (this tool) cannot set value of your choice, but rather uses some constant. Doing so, it fixes the most annoying issue - removes 15W limit imposed by Lenovo, and it's a game changer.
Under Windows I've been using another tool - ThrottleStop which provides a GUI for setting TDP values (and a lot more, with a huge potential to waste your time ;) ). I spent some time picking the values so that my laptop doesn't go into thermal throttling while running at max possible speed. Here's how I got into this 30W vs 44W thing. The point of limiting the max TDP is that you can have a horizontal line of constant 26W consumption as long as you can (under high load), but if you let the CPU do this, it will just go "spikes" from 30 to 20 and back (I took these values out of my head) with average power consumption and performance being the same. The feeling of controlling the situation is pleasant, but that's it, IMHO.
So, I would rather stick with max performance allowed and let CPU's internal logic do its work.


Icons

Icons:

atm
back_arrow
person
mark of the coffee zone
coffee machine
mark of the dinning room
door
status of person
status of person
mark of gym
led panel
map
mark of meeting room
meeting room
mfp
search icon
vending
fire hydrant
window
work place for one person
work place two persons
work place many persons

Closes #11

@nikishinAP, work_place_1.png and work_place_2.png must have transparent background.


Gepetto-gui installation problem on Mac

brew reinstall gepetto-viewer-corba
gepetto-gui
I found the following error:
yld: Symbol not found: __ZN5boost11basic_regexIcNS_12regex_traitsIcNS_16cpp_regex_traitsIcEEEEE9do_assignEPKcS7_j
Referenced from: /usr/local/bin/gepetto-gui
Expected in: /usr/local/opt/boost/lib/libboost_regex-mt.dylib
in /usr/local/bin/gepetto-gui
Can you help me out?

Dear @ddliugit
It makes a while I did not update the packages according to new Boost versions. I would suggest reinstalling them from sources, using the --build-from-source option of brew.
I will generate the packages on Monday. Is it fine for you?

It works fine now. Thanks!

I moved to python 3 and it doesn't work well while I am using Pinocchio with gepetto-gui:
The errors is like so:
  File "integratedTest.py", line 17, in <module>
    robot = model.loadHumanoidModel(isDisplay=True,urdfPath = urdfPath,meshPath = meshPath)
  File "/usr/local/lib/python3.7/site-packages/py_lqr/model.py", line 140, in __init__
    self.initDisplay()
  File "/usr/local/lib/python3.7/site-packages/py_lqr/model.py", line 150, in initDisplay
    self.robot.initViewer(loadModel=True)
  File "/usr/local/lib/python3.7/site-packages/pinocchio/robot_wrapper.py", line 236, in initViewer
    self.viz.initViewer(*args, **kwargs)
  File "/usr/local/lib/python3.7/site-packages/pinocchio/visualize/gepetto_visualizer.py", line 19, in initViewer
    import gepetto.corbaserver
ModuleNotFoundError: No module named 'gepetto'

Can you help me?

Yes, this is because the module is currently compiled for Python2. I don't have the time now to produce the image. It is generated now.

brew install gepetto-viewer-corba-python3

I try it, but same error still appears.
Also, I tried:
brew unlink gepetto-viewer-corba
brew link gepetto-viewer-corba-python3

Any idea why does this happen?

@jcarpent  Can you help me out?

I cannot guess what happens. Please provide consistent log.

10-18-226-182:~ dongdong$ python i
/usr/local/Cellar/python/3.7.5/Frameworks/Python.framework/Versions/3.7/Resources/Python.app/Contents/MacOS/Python: can't open file 'i': [Errno 2] No such file or directory
10-18-226-182:~ dongdong$ cd repos/humanoid_control/IntegratedTest/
10-18-226-182:IntegratedTest dongdong$ python integratedTest.py
eigenpy warning: you use the deprecated class numpy.matrix without explicily asking for it. The default behaviour will change to numpy.array at next major release.

Either call eigenpy.switchToNumpyMatrix() before using eigenpy to suppress this warning
or call eigenpy.switchToNumpyArray() and adapt your code accordingly.
See https://github.com/stack-of-tasks/eigenpy/issues/87 for further details.
Traceback (most recent call last):
File "integratedTest.py", line 17, in
robot = model.loadHumanoidModel(isDisplay=True,urdfPath = urdfPath,meshPath = meshPath)
File "/usr/local/lib/python3.7/site-packages/py_lqr/model.py", line 140, in init
self.initDisplay()
File "/usr/local/lib/python3.7/site-packages/py_lqr/model.py", line 150, in initDisplay
self.robot.initViewer(loadModel=True)
File "/usr/local/lib/python3.7/site-packages/pinocchio/robot_wrapper.py", line 236, in initViewer
self.viz.initViewer(*args, **kwargs)
File "/usr/local/lib/python3.7/site-packages/pinocchio/visualize/gepetto_visualizer.py", line 19, in initViewer
import gepetto.corbaserver
ModuleNotFoundError: No module named 'gepetto'

@ddliugit It is fixed now!

I still have errors on my machine. Is this caused by the environment setting?
The error changes:

10-18-226-182:humanoid_control dongdong$ python IntegratedTest/integratedTest.py
eigenpy warning: you use the deprecated class numpy.matrix without explicily asking for it. The default behaviour will change to numpy.array at next major release.
- Either call eigenpy.switchToNumpyMatrix() before using eigenpy to suppress this warning
- or call eigenpy.switchToNumpyArray() and adapt your code accordingly.
See https://github.com/stack-of-tasks/eigenpy/issues/87 for further details.
Traceback (most recent call last):
  File "IntegratedTest/integratedTest.py", line 17, in <module>
    robot = model.loadHumanoidModel(isDisplay=True,urdfPath = urdfPath,meshPath = meshPath)
  File "/usr/local/lib/python3.7/site-packages/py_lqr/model.py", line 140, in __init__
    self.initDisplay()
  File "/usr/local/lib/python3.7/site-packages/py_lqr/model.py", line 150, in initDisplay
    self.robot.initViewer(loadModel=True)
  File "/usr/local/lib/python3.7/site-packages/pinocchio/robot_wrapper.py", line 236, in initViewer
    self.viz.initViewer(*args, **kwargs)
  File "/usr/local/lib/python3.7/site-packages/pinocchio/visualize/gepetto_visualizer.py", line 19, in initViewer
    import gepetto.corbaserver
  File "/usr/local/lib/python3.7/site-packages/gepetto/corbaserver/__init__.py", line 1, in <module>
    import omniORB
ModuleNotFoundError: No module named 'omniORB'

You can proceed as follows:
brew update
brew install omniorbpy

By default, omniORB is not built for Python3. I've fixed it by creating a new package for brew.

Thanks!
I just did it and the error changes:
`10-16-22-176:IntegratedTest dongdong$ python integratedTest.py
eigenpy warning: you use the deprecated class numpy.matrix without explicily asking for it. The default behaviour will change to numpy.array at next major release.

Either call eigenpy.switchToNumpyMatrix() before using eigenpy to suppress this warning
or call eigenpy.switchToNumpyArray() and adapt your code accordingly.
See https://github.com/stack-of-tasks/eigenpy/issues/87 for further details.
Traceback (most recent call last):
File "integratedTest.py", line 17, in
robot = model.loadHumanoidModel(isDisplay=True,urdfPath = urdfPath,meshPath = meshPath)
File "/usr/local/lib/python3.7/site-packages/py_lqr/model.py", line 140, in init
self.initDisplay()
File "/usr/local/lib/python3.7/site-packages/py_lqr/model.py", line 150, in initDisplay
self.robot.initViewer(loadModel=True)
File "/usr/local/lib/python3.7/site-packages/pinocchio/robot_wrapper.py", line 236, in initViewer
self.viz.initViewer(*args, **kwargs)
File "/usr/local/lib/python3.7/site-packages/pinocchio/visualize/gepetto_visualizer.py", line 19, in initViewer
import gepetto.corbaserver
File "/usr/local/lib/python3.7/site-packages/gepetto/corbaserver/init.py", line 2, in
omniORB.updateModule("gepetto.corbaserver")
AttributeError: module 'omniORB' has no attribute 'updateModule'`

I tried to unlink and then link again, the error is like so. Did I miss something?
mac:~ dongdong$ brew unlink omniorbpy
Unlinking /usr/local/Cellar/omniorbpy/4.2.3... 178 symlinks removed
mac:~ dongdong$ brew link omniorbpy
Linking /usr/local/Cellar/omniorbpy/4.2.3... 178 symlinks created

10-16-22-176:IntegratedTest dongdong$ python integratedTest.py
eigenpy warning: you use the deprecated class numpy.matrix without explicily asking for it. The default behaviour will change to numpy.array at next major release.
- Either call eigenpy.switchToNumpyMatrix() before using eigenpy to suppress this warning
- or call eigenpy.switchToNumpyArray() and adapt your code accordingly.
See https://github.com/stack-of-tasks/eigenpy/issues/87 for further details.
Traceback (most recent call last):
  File "integratedTest.py", line 17, in <module>
    robot = model.loadHumanoidModel(isDisplay=True,urdfPath = urdfPath,meshPath = meshPath)
  File "/usr/local/lib/python3.7/site-packages/py_lqr/model.py", line 140, in __init__
    self.initDisplay()
  File "/usr/local/lib/python3.7/site-packages/py_lqr/model.py", line 150, in initDisplay
    self.robot.initViewer(loadModel=True)
  File "/usr/local/lib/python3.7/site-packages/pinocchio/robot_wrapper.py", line 236, in initViewer
    self.viz.initViewer(*args, **kwargs)
  File "/usr/local/lib/python3.7/site-packages/pinocchio/visualize/gepetto_visualizer.py", line 19, in initViewer
    import gepetto.corbaserver
  File "/usr/local/lib/python3.7/site-packages/gepetto/corbaserver/__init__.py", line 6, in <module>
    from gepetto.corbaserver.client import Client
  File "/usr/local/lib/python3.7/site-packages/gepetto/corbaserver/client.py", line 88
    print e
          ^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(e)?

I think the error is caused by the syntax of python 3. I changed it manually, it works!

@ddliugit you might want to update gepetto-viewer corba. That problem seems to be fixed in the current release (and in the current binary apt release as well). I think pretty much all of our code is compatible with Python 3 by now (@nim65s can confirm).
In our team we make frequent fixes, addition, and changes, and frequent releases, particularly for Pinocchio, so please always make sure that what you have is up to date.

Thanks. BTW, how to update the gepetto-viewer-corba

I can confirm that I can run pinocchio, example-robot-data & gepetto-gui all in python3 to load some robot models and display them in their initial pose, so yes, this works.
I am also taking care of any python 2 only syntax I can find, but I might miss a few lines, especially if they are added now without CI checks about that or a review from someone who cares about that… So please tell us if you find anything.

I try to install gepetto-gui in python 3. The error appears in this code /usr/local/lib/python3.7/site-packages/gepetto/corbaserver/client.py, which is caused by print e in python2 syntax. I changed it to print(e).That's it.

I tried to unlink and then link again, the error is like so. Did I miss something?
mac:~ dongdong$ brew unlink omniorbpy
Unlinking /usr/local/Cellar/omniorbpy/4.2.3... 178 symlinks removed
mac:~ dongdong$ brew link omniorbpy
Linking /usr/local/Cellar/omniorbpy/4.2.3... 178 symlinks created

10-16-22-176:IntegratedTest dongdong$ python integratedTest.py
eigenpy warning: you use the deprecated class numpy.matrix without explicily asking for it. The default behaviour will change to numpy.array at next major release.
- Either call eigenpy.switchToNumpyMatrix() before using eigenpy to suppress this warning
- or call eigenpy.switchToNumpyArray() and adapt your code accordingly.
See https://github.com/stack-of-tasks/eigenpy/issues/87 for further details.
Traceback (most recent call last):
  File "integratedTest.py", line 17, in <module>
    robot = model.loadHumanoidModel(isDisplay=True,urdfPath = urdfPath,meshPath = meshPath)
  File "/usr/local/lib/python3.7/site-packages/py_lqr/model.py", line 140, in __init__
    self.initDisplay()
  File "/usr/local/lib/python3.7/site-packages/py_lqr/model.py", line 150, in initDisplay
    self.robot.initViewer(loadModel=True)
  File "/usr/local/lib/python3.7/site-packages/pinocchio/robot_wrapper.py", line 236, in initViewer
    self.viz.initViewer(*args, **kwargs)
  File "/usr/local/lib/python3.7/site-packages/pinocchio/visualize/gepetto_visualizer.py", line 19, in initViewer
    import gepetto.corbaserver
  File "/usr/local/lib/python3.7/site-packages/gepetto/corbaserver/__init__.py", line 6, in <module>
    from gepetto.corbaserver.client import Client
  File "/usr/local/lib/python3.7/site-packages/gepetto/corbaserver/client.py", line 88
    print e
          ^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(e)?

This was fixed 8 months ago, and included in releases v5.3.2, v5.3.1, v5.3.0 & v5.2.1: https://github.com/Gepetto/gepetto-viewer-corba/commit/21cf4c1d97160e19906a068b9aeb3327a47079be

@ddliugit that's what I was saying. You should update gepetto-viewer-corba, because that problem is currently fixed, both in the source release and in the apt release

Thanks. BTW, how to update the gepetto-viewer-corba

How did you install gepetto-viewer-corba?
If bu source, then just go to the source folder, git pull the latest changes, and proceed to build and install.
If by apt, use sudo apt-get install --reinstall [...]

Thanks all. I see.

@gabrielebndn @nim65s. I think you did not notice, but @ddliugit is MAC OS X systems. I'm currently making the update of the packages on homebrew. Sorry for the delay, but it is hard to be on all the fronts.

Oh! No, hadn't noticed. Sorry @ddliugit, it seems you will have to wait for the updated brew repo, or install by source

@ddliugit I've updated all the packages. It should work now.

Thank you. @jcarpent


V3 geom2 no sides

This PR changes geom2 from using sides to using outlines. This will improve performance, reduce memory allocations, and simplify a bunch of operations.
The main benefit is that for operations like booleans, extrusions, and expansion, the first step is to produce outlines from a geom2. To produce outlines from sides requires running a depth first search of the sides. With this PR, there is no need to run a graph traversal, because the data structure is already stored as outlines.
Credit to @briansturgill for the idea in #1120
To make these changes work, I needed to update the following:

Change internal data structure of geom2
Move geom2.toOutlines to geom2.fromSides
Refactor compact binary representation of outlines
Update tests to use new geom2.create with outlines
Update tests for shuffling of the output points
Reduce usage of geom2.toSides
Fix a martinez bug that was revealed by the JSCAD test suite [1]

Sorry for the large PR. This will help prepare for future improvements for things like the expansions which I want to look at next. Let’s make the V3 geom2 engine into a ferrari :-D
All Submissions:

[x] Have you followed the guidelines in our Contributing document?
[x] Have you checked to ensure there aren't other open Pull Requests for the same update/change?
[x] Does your submission pass tests?

@platypii This is so cool. This is like one of the most talked about change for V2 but we opted out in order to focus on fixing the broken API (V1 was a mess). And, I think this would never be possible without the improvements made over the last year to V2. The result of this PR will be huge, and allow the 2D API to become much more useful.

i think those little discussions were worth the extra time as well.

Definitely. Thanks for the detailed reviews!

@z3dev thanks for the detailed reviews. I am bit lazy to look that much in detail, and I am more messy than @platypii so I rarely find things to improve :)


Convert all dependencies to IMPORTED targets

Description
This PR is the culmination of about a year of me trying to get rid of sfml_find_package. Continuation of #2650.
The main issue with sfml_find_package is that it creates INTERFACE targets rather than IMPORTED targets. CMake convention is to ensure all external targets are IMPORTED. This tells CMake that a given target is not owned by the project but is rather imported into the project. By convention any time you call find_package it ought to produce 1 or more IMPORTED targets. SFML's own config module produces IMPORTED targets when someone calls find_package(SFML).
This has the bonus of fixing bugs like how the CMake SFML Template fails to copy openal32.dll into the users' build making the Audio module cumbersome to use on Windows. The template project can only copy any IMPORTED targets but won't copy INTERFACE targets.

The mechanics of how I finally got rid of sfml_find_package are a little messy so I'll walk through them.
Converting FLAC::FLAC was one of the easier ones. I had to add some code to FindFLAC.cmake to create the imported target which includes some special case code to handle macOS Frameworks. Once that's in place we can directly call find_package(FLAC) and we'll get the FLAC::FLAC IMPORTED target. Alongside this change I had to edit SFMLConfigDependencies.cmake to stop using our old solution for handling INTERFACE library dependencies. The new solution is simpler and more canonical.
Freetype::Freetype was about the same. In this case I wanted to use version of FindFreetype.cmake that ships with CMake but that version is broken when using macOS Frameworks so I had to instead edit our existing find module for Freetype.
OpenAL::OpenAL was messy. FindOpenAL.cmake already ships in CMake and that's what we were using but the problem with that is that it doesn't provide the OpenAL::OpenAL target until CMake 3.25 and we're only requiring CMake 3.22. To fix this I copied the source code for this find module out of the CMake repo and made some minor tweaks to make it work for our purposes.
Vorbis and Ogg weren't difficult per se but a bit tedious since they amount to 4 total IMPORTED targets. The target names are lifted from the reference implementation of Vorbis. While I was at it I allowed all these targets to be found on iOS as well because it appears to be a harmless change and lets me make the find module simpler.

In the end, all uses of sfml_find_package and sfml_bind_dependency were removed so I was able to delete them. We will never have to use either ever again and can instead focus on using CMake's official machinery for handling 3rd party dependencies.
All of these changes in total will make SFML easier to package and makes SFML more suited to adopt a package manager itself. I'm excited I was able to complete all this cleanup work without disrupting the user workflow whatsoever.

I want to port the OpenAL::OpenAL changes back to SFML 2 so that users of the Audio module have an easier time automatically copying that DLL into their builds. Remember that there are 2 copies of openal32.dll so not only do users have to copy it out of the source tree, they also have to make sure they copy the right version which is yet another thing to go wrong.

SFMLBuildMaster: Build this please.

SFMLBuildMaster: Build this please.

I still need someone to confirm that this fixes the issue with openal32.dll not being copied. I hope that's fixed now but I can't confirm it.
Also I need to change FindVorbis.cmake back to its old state where certain libraries aren't found on iOS. That's causing an iOS job to fail.

SFMLBuildMaster: Build this please.

One thing that I wonder is, we're editing Find* modules that have their own copyright and license on it, do we somehow need to highlight our changes and/or did the original authors (e.g. Kitware) update their modules in the last many years?

One thing that I wonder is, we're editing Find* modules that have their own copyright and license on it, do we somehow need to highlight our changes and/or did the original authors (e.g. Kitware) update their modules in the last many years?

That's a good point. CMake is permissively licensed so I'm inclined to believe that copying the file and making tweaks while retaining the copyright is the right move and doesn't affect SFML's own license.

I still need someone to confirm that this fixes the issue with openal32.dll not being copied. I hope that's fixed now but I can't confirm it.

https://cmake.org/cmake/help/latest/manual/cmake-generator-expressions.7.html#genex:TARGET_RUNTIME_DLLS

I can confirm that converting OpenAL from an INTERFACE target to an IMPORTED target is getting us closer to it being automatically copied so this PR does make some progress towards that end. However we still have to meet some more requirements as outlined above. Currently OpenAL::OpenAL's library type is UNKNOWN upon import so CMake can't be certain whether or not it's a DLL. Also it's IMPORTED_LOCATION points to openal32.lib, not openal32.dll. Not sure how to find the .dll file instead.

SFMLBuildMaster: Build this please.

SFMLBuildMaster: Build this please.


Internal Server Error, Upgrade from 2.1.2 to Master Branch 2.2.4

Issue type
[ ] Feature request
[ X ] Bug report
[ ] Documentation
Environment

Python version:  2.7.13
NetBox version:  2.1.2 Upgrading to v2.2.4 main branch via GIT
Ubuntu LTS 16.04

We had a couple custom fields added via Django administration, running everything as root and configured as per the documentation via GIT. Using NGINX for reverse proxying the HTTPS requests.
We also had a couple public keys for the "secrets" section, but didn't really use it.
Description
While upgrading from 2.1.2 to latest master branch via GIT as per this documentation:
http://netbox.readthedocs.io/en/stable/installation/upgrading/
Starting from "Option B"
After finishing the last step of "supervisorctl restart netbox",
going to the site gives a straight "Internal Server Error"
Logs from /var/log/supervisor/netbox-stderr.....log:
https://pastebin.com/EMBkdeVc
netbox-stderr---supervisor-K3pyDn.log

Thank you for your interest in NetBox. GitHub issues are intended for reporting reproducible bugs and requesting features, and must be submitted using the template provided here. For general discussion, questions, or assistance with installation issues, please post to our mailing list.


Adding blog feature to the old 'gatsby-theme-portfolio-minimal' site.

Hello!
I was wondering if you can provide me with any insight as to how I can incorporate the blog feature of this theme into your old gastby site. I tried following the readme for doing exactly what I just mentioned, but run into issues when running npm install gatsby-theme-portfolio-minimal. In specific, the new theme depends on gatsby V4, while the old site appears to be built on V2 as indicated by the dependencies in the package.json files.
I tried updating gatsby, but the old site then fails to compile when I run gatsby develop. I tried looking into the theme contents to see if I could scrape off the actual blog node components, but the new site is configured differently than the old one I am used to.
I would migrate my old site, but I have edited many of the node components that seem to be more hidden in this new version (things like splashScreen.js, underlining.js, navbar.js, cookiebar.js etc).
I understand that the old site is marked as depreciated and you no longer support it, but I thought I would open up a issue to see if you can provide me with any sort of direction.
Cheers, TJ!

Update: I have found the node components inside of the gatsby-theme-portfolio-minimal folder in node_modules. I see that there are style.module.css files for each of the components, however when I make changes to the css and redeploy the site, the changes are not seen in the development build. Any idea why this may be?

running gatsby clean then redeploying resolved the issue.


[opencv4] Build error

Host Environment

OS: Windows 11
Microsoft Visual Studio Community 2022 (64 ビット) - Current Version 17.1.1

To Reproduce
Steps to reproduce the behavior:
`vcpkg.exe install opencv4[contrib]:x64-windows-static
Failure logs
CMake Error at scripts/cmake/vcpkg_execute_required_process.cmake:128 (message):
Command failed: ninja -v
Working Directory: D:/vcpkg/buildtrees/opencv4/x64-windows-static-rel/vcpkg-parallel-configure
Error code: 1
See logs for more information:
D:\vcpkg\buildtrees\opencv4\config-x64-windows-static-out.log
Call Stack (most recent call first):
installed/x64-windows/share/vcpkg-cmake/vcpkg_cmake_configure.cmake:415 (vcpkg_execute_required_process)
ports/opencv4/portfile.cmake:402 (vcpkg_cmake_configure)
scripts/ports.cmake:145 (include)
Error: Building package opencv4:x64-windows-static failed with: BUILD_FAILED
Please ensure you're using the latest portfiles with git pull and .\vcpkg update.
Then check for known issues at:
https://github.com/microsoft/vcpkg/issues?q=is%3Aissue+is%3Aopen+in%3Atitle+opencv4
You can submit a new issue at:
https://github.com/microsoft/vcpkg/issues/new?template=report-package-build-failure.md&title=[opencv4]+Build+error
including:
package: opencv4[contrib,core,default-features,dnn,jpeg,png,quirc,tiff,webp]:x64-windows-static -> 4.5.5
vcpkg-tool version: 2022-03-09-1affd32f93b299d5a907816c328ca3ededb73a7e
vcpkg-scripts version: a3df69692 2022-03-18 (35 hours ago)
-Please attach any additional failure logs mentioned in the console output.
config-x64-windows-static-out.log

CMake Error at D:/vcpkg/installed/x64-windows-static/share/libarchive/vcpkg-cmake-wrapper.cmake:60 (set_property):
  Property INTERFACE_LINK_LIBRARIES may not contain link-type keyword
  "optimized".  The INTERFACE_LINK_LIBRARIES property may contain
  configuration-sensitive generator-expressions which may be used to specify
  per-configuration rules.
Call Stack (most recent call first):
  D:/vcpkg/scripts/buildsystems/vcpkg.cmake:759 (include)
  D:/vcpkg/installed/x64-windows-static/share/tesseract/TesseractConfig.cmake:26 (find_package)
  D:/vcpkg/scripts/buildsystems/vcpkg.cmake:805 (_find_package)
  D:/vcpkg/buildtrees/opencv4/src/4.5.5-c35cb8696d/modules/text/cmake/init.cmake:8 (find_package)
  cmake/OpenCVModule.cmake:298 (include)
  cmake/OpenCVModule.cmake:364 (_add_modules_1)
  cmake/OpenCVModule.cmake:385 (ocv_glob_modules)
  CMakeLists.txt:927 (ocv_register_modules)

There is a problem with the find module wrapper from port libarchive. I would say this is from its lzo dependency.


Adding new audio input formats

I felt like the different Atmos codecs could use a little more specificity, but open to everyone's opinion!
Also added Dolby TrueHD 2.0 and DTS 5.1.

Thanks! The list was only incomplete because more samples from the wild were needed. This is helpful 👍

LGTM -- thanks for the contribution.


adding trade-secret to telegram bot

I did not make any changes to paid-services or ln-telegram repo, added the files to bos repo, they can be moved to ln-telegram.
modified files:

start_telegram_bot
create_trade (new file)
handle_trade_route (new file)

Most code has been copy-pasted from the paid-services repo and functions were directly called.

I like the buttons and the interactiveness concepts
The high level features here are:

Create an invoice wrapped in a trade-secret
Decode the invoice wrapped in the trade secret

The flow I'm thinking about is like
Seller inputs: description of product, price of product, secret payload - they get a way to share the trade
Buyer inputs: shared thing - it shows the description, price, and shows the payreq to pay or asks if the payment was made already and it can decode the secret
This flow requires an additional change to the trade-secret system to allow for open-ended trade secrets where you don't have to specify the peer up-front, I think that part can be done with p2p communication

Hey Alex - need some help when you find time with asyncjs, i got until decoding an open trade and presenting as buttons. now the last step would be picking the button and getting the invoice. I am unable to pass the decoded json that contains ID's and descriptions and the to pubkey of the node that's selling trades from handle_trade_route and find_trade back to start_telegram_bot page. I have no choice but to send them back to the home page because telegram does not allow you to register a listener within a listener.

Need to pass to function result from find_trade.js to start_telegram_bot.js and replace over here:

            try {
              const x = await requestTradeById({
                lnd: savedNode.lnd,
                id: clickedButton,
                to: '02ba1f14be6333e0f014c8809134bf16a7cad9cec6341f736767660e61b61733bd',
              });
              console.log(x);
            } catch(err) {
              logger.error({err});
            }

Need to pass the result of handlePurchaseTradeRoute in handle_trade_route.js to start_telegram_bot.js
This section results in the list of openTrades one can buy.

            const openTrades = await findTrade({
              lnd: lnd.lnd,
              logger,
              id: details.connect.id,
              identity: getIdentity.public_key,
              nodes: details.connect.nodes,
            });

Maybe instead of trying to pass upwards, just pass the context you need to the function to begin with? There is a lot of stuff going on so it's hard for me to really grok what is relevant but like if you get the trade by its id and you want to show it, you can post to the bot directly if you give the telegram key etc to the function that was getting the trade by its id

Maybe instead of trying to pass upwards, just pass the context you need to the function to begin with? There is a lot of stuff going on so it's hard for me to really grok what is relevant but like if you get the trade by its id and you want to show it, you can post to the bot directly if you give the telegram key etc to the function that was getting the trade by its id

ok, I think I understood what you mean. I'll give that a try.

I added a new framework for bot buttons to ln-telegram, I think this can be a model for how to merge in trade-secret
A scenario I'm interested in is one where the user is pushed a trade-secret via keysend.
Like someone pushes me a trade-secret to advertise a paid telegram group:
[My node gets a keysend with an open trade-secret and a message describing what they are offering]

I see a new message show up with an encoded trade and a button to view the trade
I click view, it connects and it shows me the description and price, with an encoded payment request
I pay the payment request with bos pay and the message changes to reveal the secret, trade complete

So:

New message: "Hey, want to join a private bos telegram group? - from yalls.org 02342 "
"1 time-limited invite to private bos telegram group - 0.00001000 "
You purchased "1 time limited invite to private bos telegram group": link://path/to/link

If you got the open trade out of band or a direct trade secret, it would skip to step 2

Nice. One of the things I was thinking was, it'll be nice to add the trade quantity encoded in the message and also the bot/CLI asks for the trade quantity when creating the trade and the same number of listeners kick off directly.
It'll be nice when it can get integrated with bos advertise, where you can say I'm selling 5 invites to private bos group.

I added some of this stuff in the buttons model and I think that is working pretty well
Remaining aspects that I'm thinking about for end-to-end trade-secret:

Add a price adjustment button
Create a /sell-trade-secret   command to put up a new trade secret
Add a /trade-secrets command to list out open sales

After that I think the next phase is more along the lines of making them more interesting to use since you have the baseline functionality there for creation and updating

Cool, price adjustment and listing open trades would be really nice.


fix(workflows): Use secrets instead of env variables

:tada: This PR is included in version 1.39.1 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


upgrade dependencyManagement\dependencies

current version only upgrade versions under dependencies, but in projects with a parent and dependencyManagement the need for upgrade is the same

resolved


New icon: SentinelOne

Creating a new icon for SentinelOne

[x] I have carefully read and followed CONTRIBUTING document.

URL of the site:

https://www.sentinelone.com/
Proof of the Aegis-compatible 2FA:

I could not find an entry on a manual about it but here is a screenshot of the 2FA request, I'm currently using Aegis to store the seed.

Logo / icon info:

Logo provided on the wikipedia page of the company:
https://en.wikipedia.org/wiki/SentinelOne#/media/File:SentinelOne_logo.svg
Background color info:

It's from the logo (#6B0AEA).

Logo / icon info:
Logo provided on the wikipedia page of the company:
https://en.wikipedia.org/wiki/SentinelOne#/media/File:SentinelOne_logo.svg

It's fine this time, but in general, please find the brand page (they had one: https://www.sentinelone.com/brand/ ) or if they don't have press page, get the logo from the site instead of opting to Wikipedia first.


Suggestions: FTP, LDAP

Should add check for anonymous login on FTP and null binding on LDAP in:
3.Exploitation-Tools / Network-Exploitation / ports_number.md

@dsolstad If a good way, please commit it to the project.

Thanks @dsolstad .

https://github.com/nixawk/pentest-wiki/pull/37


Guidance : feat: tag cluster_endpoint, cluster_certificate_authority_data outputs as sensitive

Need guidance on should we have below as sensitive ?
when we try to create an AKS cluster using terragrunt, we see the following errors complaining about the sensitive outputs.
Error: Output refers to sensitive values
on outputs.tf line 11:
11: output "cluster_endpoint" {
To reduce the risk of accidentally exporting sensitive data that was intended to be only internal, Terraform requires that any root module output containing sensitive data be explicitly marked as sensitive, to confirm your intent.
If you do intend to export this data, annotate the output value as sensitive by adding the following argument:
sensitive = true
Error: Output refers to sensitive values
on outputs.tf line 16:
16: output "cluster_certificate_authority_data"
output referred are below :
azurerm_kubernetes_cluster.default.kube_config[0].host
azurerm_kubernetes_cluster.default.kube_config[0].cluster_ca_certificate
is there a way to bypass this check in terragrunt apply ?

Hi,
I was wondering if can be used nonsensitive function to fetch output as a separate variable, maybe use generate block to build an output variables file.
References:
https://developer.hashicorp.com/terraform/language/functions/nonsensitive
https://terragrunt.gruntwork.io/docs/reference/config-blocks-and-attributes/#generate

Thank you , i think terragrunt right fully calling the output to be sensitive , its more an issue at our end where we don't have control over the module we call


Blob base_client.py precludes use of non-public azure endpoints

azure-storage-blob:
12.12.0:
Any:
Any:

Describe the bug
The Blob service base_client.py code uses a hardcoded value "core" to split the account name from the parsed url string but the use of the word "core" in the split string precludes using this code against anything but public Azure for example this will not work against and Azure Stack Hub storage endpoint.
To Reproduce
Attempts to use this code against a non-public Azure storage endpoint such as one on Azure Stack Hub results in a failure to aprse the account name from the url and therefore it throws an error as below where for example the endpoint url is set to "https://accountname.region1.stack1.example"
File "/app/lib/python3.8/site-packages/azure/storage/blob/_blob_service_client.py", line 126, in init
super(BlobServiceClient, self).init(parsed_url, service='blob', credential=credential, **kwargs)
File "/app/lib/python3.8/site-packages/azure/storage/blob/_shared/base_client.py", line 93, in init
self.credential = _format_shared_key_credential(self.account_name, credential)
File "/app/lib/python3.8/site-packages/azure/storage/blob/_shared/base_client.py", line 337, in _format_shared_key_credential
raise ValueError("Unable to determine account name for shared key credential.")
Expected behavior
Split the account name from the endpoint url without using the "core" keyword, surely the account name is just the first element of the url when split by "."

Hi @dfencegit, thanks for your feedback. @jalauzon-msft @vincenttran-msft can you take a look at this?

Hi @vincenttran-msft thanks for your help on this, if we take the approach of using credential parameter does it not append the standard "blob.core.windows.net" dns path to get the full address and so we end up with a similar problem in that we cant use this to hit a non-public azure endpoint.
Thanks.

Hi @dfencegit Anthony, if you go with the approach mentioned above, the SDK should not modify your URL in any way. Please let us know if this is not the case. Thanks!


Day 405

Good morning! Here's your coding interview problem for today.
This problem was asked by Apple.
Given a tree, find the largest tree/subtree that is a BST.
Given a tree, return the size of the largest tree/subtree that is a BST.

Identical to Day 93: https://github.com/vaskoz/dailycodingproblem-go/issues/196


Add more info, docs and tests

@mrocklin , I'm not sure any of this would have helped you, but the extra docs and error messaging is always useful.

OK, nm then
On Fri, Sep 15, 2017 at 11:54 AM, Martin Durant<EMAIL_ADDRESS>wrote:

@martindurant commented on this pull request.
In docs/source/install.rst
https://github.com/dask/knit/pull/81#discussion_r139186153:

@@ -40,3 +46,16 @@ Clone git repository and build maven project:
$ git clone https://github.com/dask/knit
$ cd knit
$ python setup.py install mvn

+Testing on Docker
+~~~~~~~~~~~~~~~~~
+
+If you would like to test this package, but don't have a YARN cluster hanging around, you
+could make a small test one in your machine.  Perhaps it
would be ok with dask-core.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/dask/knit/pull/81#discussion_r139186153, or mute the
thread
https://github.com/notifications/unsubscribe-auth/AASszIexheIKGh3yKCFmtR7SA6ffg-aIks5sip3OgaJpZM4PYVuM
.


PR review suggestions

Consider this my review for #2140. I've reworked what you had to decrease the density and improve readability. It is a little longer, but IMO it is significantly more readable. I welcome your counter-feedback.

I see that you're using assertAlmost for testing exponentials and euler among others.
That's clever, and was previously done for testing divide for example.
I'm having a second thought on this, as this rely on eq to be implemented first by the student which might not be the function he/she chose to implement first.

I'm having a second thought on this, as this rely on eq to be implemented first by the student which might not be the function he/she chose to implement first.

If the student is following TDD principles as intended, they won't have much of a choice, and will have to implement that method early in the process.

If the student is following TDD principles as intended, they won't have much of a choice, and will have to implement that method early in the process.

You're right on this point. In this particular exercise, the __eq__ function is only to be implemented as additional_tests. I don't have that much step back on this track to choose the better approch.
Anyhow, you're code is much cleaner and easier to read/maintain than mine was. Congrats.

If you like my suggestions, go ahead and merge this PR. Your PR in the official repo will automatically update.


Update CONTRIBUTING.md

Thanks for contributing. happy hacking :)

You can also contribute to my new repository where you can contribute by opening pull requests for DSA related programs. :)
https://github.com/deniss-eh/DSA-HACKTOBERFEST


SAM-90 Adding autoconvert_offset_to_baseunit=True to pint UnitRegistry

Also adding 'slebras' as kbase owner

Let's add a test for this.

Closing this as it has been superseded by PR # 410.


chore: prep release 1.8.1

Issue #, if available:
Description of changes:
Release to upgrade Log4j to v1.5.0 in response to CVE-2021-44228

Checklist

[ ] Meet tenets criteria
[ ] Update tests
[ ] Update docs
[ ] PR title follows conventional commit semantics

Breaking change checklist

RFC issue #:

[ ] Migration process documented
[ ] Implement warnings (if it can live side by side)

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Should we also merge other dependabot PR before releasing this ?


Fix NetCDF4 C version detection

This fixes the failure locally for me.
cc @max-sixty

Cool, thanks @dcherian !


PHP 7.2 Warning

/src/Parser.php
----------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
----------------------------------------------------------------------
 2471 | WARNING | INI directive 'mbstring.func_overload' is
      |         | deprecated since PHP 7.2
----------------------------------------------------------------------

PHP 7.2? So you're running the alpha version right? That won't be released as final until November apparently, but good to get an early heads-up.

Workaround in  f79f49b


fix: add color definition for missing highlight group WinSeperator (nvim-0.10)

Some highlight groups have been changed (https://neovim.io/doc/user/news-0.10.html) and need to be redefined. VertSplit has been replaced by WinSeperator.
This commit adds a color definition for WinSeperator.

i need this

Would really like to see this as well.


System.Text.Json

Why System.Text.Json.dll reference assembly is not provided by this library? Is not it "basic" enough ?

The different reference sets here contain what a build gets by default when targeting the corresponding TFM. So the reference set provided by NetStandard20 is the standard reference set you get when using <TargetFramework>netstandard2.0</TargetFramework> in a project file.
Not sure which reference set you're using here but you should see that System.Text.Json is available in the places it should be. For example it's not in NetStandard20 but it is in Net80.

I am using NetStandard20, and was wondering what is the rule of selection references that are provided, but that explains everything. Switching to your library really helped with running code under different frameworks, and only reaming piece is System.Text.Json.dll (and its dependency Microsoft.Bcl.AsyncInterfaces.dll), but I can live with that and keep them in the resources.


Add a Gitter chat badge to readme.md

AndrewRevinsky/crunchtask.js now has a Chat Room on Gitter
@AndrewRevinsky has just created a chat room. You can visit it here: https://gitter.im/AndrewRevinsky/crunchtask.js.
This pull-request adds this badge to your readme.md:

Happy chatting.
PS: Click here if you would prefer not to receive automatic pull-requests from Gitter in future.

Changes applied manually. Thanks.


[WIP] refactor: Persisted state with storage adapter

Also there's now the createSubscriber function from Svelte that can be used instead of us writing subscription logics.  Or at least that's what I think this createSubscriber is for!

@huntabyte Just a heads up I don't plan on doing anything with this PR. Please feel free to take over/branch/close as you see fit :)


Board view has odd spacing on card titles

From @qodfathr on April 20, 2017 15:11
It looks like it's using justified text; does not look good on this example:

Copied from original issue: fabric8io/fabric8-ui#930

From @michaelkleinhenz on April 20, 2017 21:1
@vikram-raj an you take a look?


Eliminated race condition in E2E tests

Fix
This PR fixes a bug in the E2E tests involving a race condition that can occur in some Kind clusters.
Description
This bug occurs because the first E2E test (currently TestRemoveDuplicates) lists the nodes. Since the E2E automation builds a Kind cluster and then immediately executes the tests, the nodes may or may not be ready at the time the first test lists them. This can cause unpredictable behavior, because if one or more nodes are not ready when the test lists them, the nodes the test case sees will be tainted with node.kubernetes.io/not-ready. This ultimately results in the Deschedulder avoiding evictions because it only has knowledge of tainted nodes, which causes the test case to fail.
Solution
To fix this, I've added a waitForNodesReady() function which is called by the initializeClient() setup routine. This allows the test cases to wait until all nodes are Ready before running. The waiting period is typically only a second or two.

@ingvagabund Moved from #636 to here.

/approve
/lgtm
/ok-to-test

/retest

@ingvagabund It looks like the descheduler-helm-test is failing to build the control plane? Any idea why this might occur?

/retest
I saw a similar helm test failure in another PR... don't know what's up with that but trying another retest to see if it's a flake. Don't think we merged anything recently that would break it


[spi_device] Let readsram sends Sram Req

To make mailbox crossing logic simpler, let SRAM request from readsram
go out to DPSRAM even the operation is not permitted (readbuffer while
in PassThrough)
In order to block the SRAM request, the logic needs:

readcmd to hold fifo pop while not in mailbox as FIFO is empty
strb in readsram should be reset prior to move to StActive. When the
address crosses the mailbox (readbuf -> mailbox), the strb is always
0. strb in the current version latches current_address_i when first
SRAM request sends out to DPSRAM and is incremented at every byte
being pushed to FIFO.
addr_in_mailbox should be latched then be used to block the FIFO
pop. at the last byte of the readbuf, the addr_in_mailbox is already
high as it sees addr_d to check the mailbox region.

So, to make logic simpler, I decided to let request out and sends the
Readbuf data while not in mailbox (in Passthrough mode). The logic will
be blocked by mailbox_assumed_o signal at the spi_device top.
To do this, mailbox_assumed_o is also revised to set at every byte
while in the mailbox, and to clear if not in the mailbox region.

just to double check one thing, this "always allow read" mainly targets the mailbox space right?
and since the mailbox space is basically dynamic access, there aren't any worried about incrementing read/write pointers, since that doesn't apply?


[Security] package_data (anything else?) can specify files outside package root

Originally reported by: Ivoz (Bitbucket: Ivoz, GitHub: Ivoz)

This is a path traversal bug. setuptools should not allow arbitrary files outside the package root to be included for the install, unless you want someone including ../../../../../../etc/passwd. This is at least true for the package_data field of setup().
You can see an innocent example at https://github.com/saltstack/halite/blob/341af31b0b7dabc5c005e92edb79f107e445b1b1/setup.py#L48
If anyone is in fact relying upon current behaviour, I believe it is important enough of a security issue that we would ask them to modify their build process to accommodate the new behaviour. It's convenience is not above its exploitability.
I consider this different from the overall issue that "setup.py is arbitrary executable code anyway" in that this is static metadata that allows the exploit; a hypothetical future build process lacking executable code should still protect against this for all analogous own metadata.

Bitbucket: https://bitbucket.org/pypa/setuptools/issue/227

Are there any plans to fix this? It seems like it has been open for way too long.

I think this ticket needs more detail before it's actionable. The original report purports that this issue is a security issue, but also provides a counterexample of legitimate use. Any change to remove the reported behavior is bound to cause disruption. Best case, this project could deprecate the functionality and eventually prevent it.
I'm skeptical this is a legitimate security issue, but happy to fix it if it is.
I tried to replicate the issue, but was unsuccessful:
issue-227 $ cat setup.py
import setuptools
setuptools.setup(
    name='passwds',
    packages=['mypkg'],
    package_data={'': '../../../../../etc/passwd'})
issue-227 $ ls mypkg/../../../../../etc/passwd
mypkg/../../../../../etc/passwd
issue-227 $ python setup.py sdist
running sdist
running egg_info
writing passwds.egg-info/PKG-INFO
writing dependency_links to passwds.egg-info/dependency_links.txt
writing top-level names to passwds.egg-info/top_level.txt
reading manifest file 'passwds.egg-info/SOURCES.txt'
warning: sdist: standard file not found: should have one of README, README.rst, README.txt, README.md

writing manifest file 'passwds.egg-info/SOURCES.txt'
running check
creating passwds-0.0.0
creating passwds-0.0.0/mypkg
creating passwds-0.0.0/passwds.egg-info
copying files to passwds-0.0.0...
warning: check: missing required meta-data: url

warning: check: missing meta-data: either (author and author_email) or (maintainer and maintainer_email) must be supplied

copying setup.py -> passwds-0.0.0
copying mypkg/__init__.py -> passwds-0.0.0/mypkg
copying passwds.egg-info/PKG-INFO -> passwds-0.0.0/passwds.egg-info
copying passwds.egg-info/SOURCES.txt -> passwds-0.0.0/passwds.egg-info
copying passwds.egg-info/dependency_links.txt -> passwds-0.0.0/passwds.egg-info
copying passwds.egg-info/top_level.txt -> passwds-0.0.0/passwds.egg-info
Writing passwds-0.0.0/setup.cfg
Creating tar archive
removing 'passwds-0.0.0' (and everything under it)

Although I've defined a package and relative path from that package to the password file, the file didn't get included.
Moreover, this functionality also exists in distutils. Does the Python project also consider this issue a security issue?
This project needs a better demonstration of the issue before it's actionable.

Hey @jaraco, is this issue also fixed as a result of #1640?

I believe these issues are distinct. #1635 (the root of #1640) reports an issue with pkg_resources - where behavior (script, package, etc) in a Python environment with setuptools installed might be querying an environment and use pkg_resources to retrieve files outside of the indicated package's root.
In contrast, this issue is about setuptools' build process and discovering the files to prepare for becoming part of a project's package.
Still, the security implications are similar - the system (setuptools in this case) should attempt to limit inputs that are known to be dangerous. However, since this issue has gone so long without any follow-up, I'm okay to close this issue as won't fix, but without prejudice, and am happy to revive the conversation once there's a better replication of the issue and demonstration of real harm that can be mitigated or a proposed fix that limits the potential harm while addressing compatibility concerns.

Hey all, I stumbled to this page, got curious, and tried to reproduce the behavior.
I could not: got a permission denied error when attempting to do so (which is the right behavior IMO).
What I could do though, is to add a symlink within the package directory. setuptools will then pull the contents of the symlinked file into the generated source distribution.
I do not know if this is intended behavior. Having setuptools ensure that all included package_data paths do not extend out of the package path itself seems sensible. Specifically: once a declared path resolves to anywhere outside of the package root, emit a warning or even exit with an error.
My setup is below, if anyone is interested. My 'working' example is contrived (it adds one level of indirection to make setuptools include external files) and I am not a security expert. I am a little worried that someone malicious could obscure the snippet that creates and removes the symlink without the user realizing.
I am running Python 3.5:
$ python
Python 3.10.5 (main, Jun  6 2022, 18:49:26) [GCC 12.1.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import setuptools
>>> setuptools.__version__
'61.3.1'

This is the setup where I got the permission denied error:
$ tree .
.
├── foo
│   └── __init__.py
└── setup.py

1 directory, 2 files
---
$ cat setup.py
import setuptools

setuptools.setup(
    name="foo",
    packages=["foo"],
    include_package_data=True,
    package_data={"foo": ["../../../../etc/passwd"]}
)
---
$ python setup.py sdist
running sdist
running egg_info
creating foo.egg-info
writing foo.egg-info/PKG-INFO
writing dependency_links to foo.egg-info/dependency_links.txt
writing top-level names to foo.egg-info/top_level.txt
writing manifest file 'foo.egg-info/SOURCES.txt'
reading manifest file 'foo.egg-info/SOURCES.txt'
writing manifest file 'foo.egg-info/SOURCES.txt'
warning: sdist: standard file not found: should have one of README, README.rst, README.txt, README.md

running check
warning: check: missing required meta-data: url

warning: check: missing meta-data: either (author and author_email) or (maintainer and maintainer_email) should be supplied

creating foo-0.0.0
creating foo-0.0.0/foo
creating foo-0.0.0/foo.egg-info
creating ../../etc
error: could not create '../../etc': Permission denied

and this is where I could pull in /etc/passwd
$ cat setup.py
import setuptools

def clean():
    import os
    if os.path.exists("foo/passwd"):
        os.unlink("foo/passwd")

def prep():
    import os
    clean()
    os.symlink("/etc/passwd", "foo/passwd")

prep()

setuptools.setup(
    name="foo",
    packages=["foo"],
    include_package_data=True,
    package_data={"foo": ["passwd"]}
)

clean()
---
$ python setup.py sdist
running sdist
running egg_info
creating foo.egg-info
writing foo.egg-info/PKG-INFO
writing dependency_links to foo.egg-info/dependency_links.txt
writing top-level names to foo.egg-info/top_level.txt
writing manifest file 'foo.egg-info/SOURCES.txt'
reading manifest file 'foo.egg-info/SOURCES.txt'
writing manifest file 'foo.egg-info/SOURCES.txt'
warning: sdist: standard file not found: should have one of README, README.rst, README.txt, README.md

running check
warning: check: missing required meta-data: url

warning: check: missing meta-data: either (author and author_email) or (maintainer and maintainer_email) should be supplied

creating foo-0.0.0
creating foo-0.0.0/foo
creating foo-0.0.0/foo.egg-info
copying files to foo-0.0.0...
copying setup.py -> foo-0.0.0
copying foo/__init__.py -> foo-0.0.0/foo
copying foo/passwd -> foo-0.0.0/foo
copying foo.egg-info/PKG-INFO -> foo-0.0.0/foo.egg-info
copying foo.egg-info/SOURCES.txt -> foo-0.0.0/foo.egg-info
copying foo.egg-info/dependency_links.txt -> foo-0.0.0/foo.egg-info
copying foo.egg-info/top_level.txt -> foo-0.0.0/foo.egg-info
Writing foo-0.0.0/setup.cfg
Creating tar archive
removing 'foo-0.0.0' (and everything under it)
---
$ tar tf dist/foo-0.0.0.tar.gz
foo-0.0.0/
foo-0.0.0/PKG-INFO
foo-0.0.0/foo/
foo-0.0.0/foo/__init__.py
foo-0.0.0/foo/passwd
foo-0.0.0/foo.egg-info/
foo-0.0.0/foo.egg-info/PKG-INFO
foo-0.0.0/foo.egg-info/SOURCES.txt
foo-0.0.0/foo.egg-info/dependency_links.txt
foo-0.0.0/foo.egg-info/top_level.txt
foo-0.0.0/setup.cfg
foo-0.0.0/setup.py
---
$ tar xOfz dist/foo-0.0.0.tar.gz foo-0.0.0/foo/passwd
<contents of /etc/passwd>


Hover / goto def do not work for data constructors in record construction

... as demonstrated by the test with title record data constructor.

I have a fix for this coming soon


Missing comma

Looks like the % values are missing a comma

@poma this seems to be back in 4000f588d22e3b2490a215ceafc68ddc47c35ba9

weird. I double checked and current code seems to be correct.

Yeah it's weird, I compiled it myself and it shows like this

If you have Visual Studio installed you can find this bug yourself. Win rate parsing is done in FileProcessor.cs line 117

Recompile dll, works again, sorry


Not being able to delete a podcast if a review is present on the Podcast.

Describe the bug
If a Review is present on a podcast, the system throws an error if the user tries to delete it [podcast].
To Reproduce
Steps to reproduce the behavior:

Create podcast
Leave a Review
Delete podcast
Podcast doesn't delete

Screenshots

Message = "The DELETE statement conflicted with the REFERENCE constraint "FK_PodcastRatings_Podcasts_PodcastId". The conflict occurred in database "soen490", table "dbo.PodcastRatings", column 'PodcastId'."


materialized CTE support for Postgres

knex.withMaterialized('t',knex('users')).from('t') for with 't' as materialized (select * from users) select * from t
and
knex.withNotMaterialized('t',knex('users')).from('t') -> with 't' as not materialized (select * from users) select * from t
https://www.postgresql.org/docs/current/queries-with.html#id-<IP_ADDRESS>.7
I will add documentation changes if this is approved

#4948 related

  1) Selects
       postgres
         MATERIALIZED CTE:
     TypeError: knex.withMaterialized is not a function
      at Context.<anonymous> (test/integration2/query/select/selects.spec.js:1108:41)
      at processTicksAndRejections (node:internal/process/task_queues:96:5)

Why it's not visible?  Should I build something special for integration test?


Notification: Support for template and variables in telegram messages

📑 I have found these related issues/pull requests

#3065

🏷 Feature Request Type
Change to existing notification-provider
🔖 Feature description
It should be possible to have the ability to insert custom text and template variables in the Telegram message (now it is sending the notification name but this make the notification not re-usable)
✔ Solution
Support Jinja2 templating like is already available for email
❓ Alternatives
No response
📝 Additional Context
No response

Duplicate of #646


Documentation for result ranges and connections

As discussed per<EMAIL_ADDRESS>ResultRanges or Connections cannot be stored anywhere else other than locals and it should be documented properly.

I can't imagine that this is true. Connections are classes, so those can be stored anywhere.
ResultRanges are fine now, they just stop working once you execute another query.

I can't imagine that this is true. Connections are classes, so those can be stored anywhere.
ResultRanges are fine now, they just stop working once you execute another query.


[bug] mobile_entry_point can not run async or aysnc_runtime,iOS

Describe the bug
tauri2.0.0-rc
ios17.4
#[cfg_attr(mobile, tauri::mobile_entry_point)]
#[tokio::main]
pub async fn run(){
let obj = function1().await;
tauri::Builder::default()
.manage(obj)
.plugin(tauri_plugin_shell::init())
.invoke_handler(tauri::generate_handler![func])
.run(tauri::generate_context!())
.expect("error while running tauri application");
}
or
#[cfg_attr(mobile, tauri::mobile_entry_point)]
pub fn run(){
let obj = tauri::async_runtime::block_on(async{
function1().await
});
tauri::Builder::default()
.manage(obj)
.plugin(tauri_plugin_shell::init())
.invoke_handler(tauri::generate_handler![func])
.run(tauri::generate_context!())
.expect("error while running tauri application");
}
Both error. But it's OK without async or async runtime
Reproduction
No response
Expected behavior
No response
Full tauri info output
[✔] Environment
    - OS: Mac OS 14.6.1 arm64 (X64)
    ✔ Xcode Command Line Tools: installed
    ✔ rustc: 1.80.1 (3f5fd8dd4 2024-08-06)
    ✔ cargo: 1.80.1 (376290515 2024-07-16)
    ✔ rustup: 1.27.1 (54dd3d00f 2024-04-24)
    ✔ Rust toolchain: stable-aarch64-apple-darwin (environment override by RUSTUP_TOOLCHAIN)

[-] Packages
    - tauri 🦀: 2.0.0-rc.10
    - tauri-build 🦀: 2.0.0-rc.9
    - wry 🦀: 0.43.1
    - tao 🦀: 0.30.0
    - tauri-cli 🦀: 2.0.0-rc.9

[-] Plugins
    - tauri-plugin-shell 🦀: 2.0.0-rc.3

[-] App
    - build-type: bundle
    - CSP: unset
    - frontendDist: ../src

[-] iOS
    - Developer Teams: *

Stack trace
No response
Additional context
No response

I think the tokio::main annotation there just can't work because the run() method is exposed as an FFI interface or something, so i ignore this part of the question.
What were the error messages for the second code block (the one with block_on)?

Sorry, I may not have been rigorously tested before, today the test block_on is working fine, the previous block_on error was caused by other reasons. But #[tokio::main] still doesn't work.


Modal stacking?

Is it possible to open one modal while another is already open, such that closing the 2nd modal will bring the 1st modal back to the foreground, without having to explicitly have the 2nd modal reference the 1st modal (e.g. the 2nd modal might be summoned from multiple different places) ?

I'm afraid not at the moment, It's an interesting idea though.
I guess it could be possible though without breaking the overall API though. I could store an array of instances that are not explicitly closed and retrieve them on closure of any following instance. Something to investigate anyway.

Closing as I don't think I'll ever implement this. Not a fan of modals anyway.


ARC: Add virtual uart over ARC hostlink channel support

Add support for virtual UART device that uses ARC Hostlink channels for data transfers. Due to the Hostlink principle, the driver    supports only polling API.
Hostlink is supported on nSIM and HW targets (if launched with MDB debugger).

Great addition for bring-up and debugging. Maybe add a short description in the board documentation? Anything special commands required to start a debugger session that should be documented, like enable/disable hostlink in the debugger?

Anything special commands required to start a debugger session that should be documented, like enable/disable hostlink in the debugger?

I've added hostlink-awareness to west runners - so no changes required if we start debugging session or just do with mdb-hw, mdb-nsim, arc-nsim west runners or with cmake scripting on nSIM.


Removed Contiv.io

Project did not have direct integration with k8s.
URL to project info goes to malicious browser plugin install and ad-based squatter on contiv.io.

Link to https://contiv.io is no longer valid.
The last commit to https://github.com/contiv/netplugin is from 2019.
I agree to remove Contiv because it seems that it is no longer maintained
/lgtm

BTW this is for #20232

I agree about not hyperlinking to https://contiv.io/ and we should remove that part.

Agree with @sftim 's comment to only remove the hyperlink to contiv.io
/lgtm cancel


How did you know the script cannot be valid?

https://github.com/thgh/rollup-plugin-vue2/blob/6d37f351707e439b9b812a1f657e799f49e11599/src/index.js#L74-L79
what if use class style component?

This plugin is really barebones, it only supports exports like this /export\s+default\s+\{/
The exportOffset represents the position where the template can be inserted. It's not possible to write export default { in less than 16 characters, so the code in question writes it for you.
Check out rollup-plugin-vue for all-in-one support.

Got it, thanks.


Lightning fails when LARS wrapper is used for optimizer

🐛 Bug
When optimizer is wrapped by LARS wrapper from from pl_bolts.optimizers.lars_scheduling import LARSWrapper PL fails with
Traceback (most recent call last):
  File "/anaconda/envs/unsup-obj-det/lib/python3.7/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/anaconda/envs/unsup-obj-det/lib/python3.7/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/anaconda/envs/unsup-obj-det/lib/python3.7/site-packages/pl_bolts/models/self_supervised/swav/swav_module.py", line 608, in <module>
    cli_main()
  File "/anaconda/envs/unsup-obj-det/lib/python3.7/site-packages/pl_bolts/models/self_supervised/swav/swav_module.py", line 604, in cli_main
    trainer.fit(model, datamodule=dm)
  File "/anaconda/envs/unsup-obj-det/lib/python3.7/site-packages/pytorch_lightning/trainer/trainer.py", line 458, in fit
    self._run(model)
  File "/anaconda/envs/unsup-obj-det/lib/python3.7/site-packages/pytorch_lightning/trainer/trainer.py", line 753, in _run
    self.pre_dispatch()
  File "/anaconda/envs/unsup-obj-det/lib/python3.7/site-packages/pytorch_lightning/trainer/trainer.py", line 778, in pre_dispatch
    self.accelerator.pre_dispatch(self)
  File "/anaconda/envs/unsup-obj-det/lib/python3.7/site-packages/pytorch_lightning/accelerators/accelerator.py", line 106, in pre_dispatch
    self._move_optimizer_state()
  File "/anaconda/envs/unsup-obj-det/lib/python3.7/site-packages/pytorch_lightning/accelerators/accelerator.py", line 120, in _move_optimizer_state
    opt.state = state
AttributeError: can't set attribute

To Reproduce
Just use any pl module using a lars wrapper e.g.
python -m pl_bolts.models.self_supervised.swav.swav_module --gpus 1 --lars_wrapper
Environment
pytorch-lightning == 1.3.1
This is likely due to #7277. Earlier versions seem to work well.

Hi,
any update on this? Would like to use pl_bolts with the newest pl version...


add traefik as trusted proxy

Hi,
I am getting the following warning:
The reverse proxy header configuration is incorrect, or you are accessing Nextcloud from a trusted proxy. If not, this is a security issue and can allow an attacker to spoof their IP address as visible to the Nextcloud. Further information can be found in the [documentation ↗](https://docs.nextcloud.com/server/24/go.php?to=admin-reverse-proxy).

I was looking for the traefik proxy domain so that I can add it into the config, like:
'trusted_proxies' =>
array (
  0 => 'localhost',
  1 => '<traefik/url>',
),

But can't find the right URL to add, any help?

Hello,
You have to add the IP address of the traefik proxy.


Phosphor causes Redstone Links to break chunk lighting

Describe the Bug
When Phosphor is installed, Redstone Links, when 2 are placed in a chunk together, break that chunk's lighting.
Phosphor issue: https://github.com/CaffeineMC/phosphor-fabric/issues/82
Reproduction Steps

Install Phosphor and Create
Place 2 Redstone links in 1 chunk
Relog
See broken light

Expected Result
Correct light
Screenshots and Videos

Crash Report or Log
No response
Operating System
Windows 10
Mod Version
0.4.1
Minecraft Version
1.18.2
Other Mods
Phosphor
Additional Context
Pretty sure this cannot be fixed on our side. For now, Starlight can be safely used instead.

forgot to link forge issue

The issue is actually caused by Create and only made visible by Phosphor. Create can reload chunks in the middle of the unloading process within ThreadedAnvilChunkStorage.tryUnloadChunk(...). There we have the following sequence of operations
...
this.save((Chunk)chunk);
if (this.loadedChunks.remove(pos) && chunk instanceof WorldChunk) {
  WorldChunk worldChunk = (WorldChunk)chunk;
  this.world.unloadEntities(worldChunk);
}
this.lightingProvider.updateChunkStatus(chunk.getPos());
this.lightingProvider.tick();
...

At this point, the chunk is already out of reach for the chunk manager and a query will need to reload it. Now, World.unloadEntities(...) contains a call to RedstoneLinkNetworkHandler.removeFromNetwork(...) which in turn queries all remaining block entities and hence queries their chunks. In particular, if there are two redstone links in the same chunk, unloading the first will reload the chunk by querying the block entity for the second.
The light data will only be unloaded afterwards via lightingProvider.updateChunkStatus(...) in the remainder of the unloading process, despite the chunk already being fully reloaded at that point. Since light data is stored separately from chunks, this will not only affect the old copy of the chunk but also the new one. Subsequently saving the chunk will hence not have any light data available.
The reason this does not cause lighting glitches for Vanilla is that Phosphor unloads lightmaps more aggressively.

Very useful info, thanks!

Starlight can be safely used instead

It worked.

Issues that occur on Forge as well are no longer being tracked on this repo. Please follow the respective issue on the Forge repo instead: https://github.com/Creators-of-Create/Create/issues/3068


Vagrant timeout on "TASK: [consul | wait for leader]"

Launching apollo with Vagrant keeps hanging waiting for consul leader election.

@broomyocymru Have you tried the devel branch? This is the one we are mainline developing on and it is based on CoreOS. We will likely merge this into master shortly. Give it a spin on devel and let us know if you face the same issue (I don't have this problem on devel branch)

Devel branch worked. I did get an issue with DD_API_KEY not being set so I changed datadog_enabled to false. Maybe it should be disabled by default?

It should be disabled by default yep - feel free to send in a PR against devel branch if you can.
Thanks,
Graham.

On 7 Feb 2016, at 15:16, Anthony Broome<EMAIL_ADDRESS>wrote:
Devel branch worked. I did get an issue with DD_API_KEY not being set so I changed datadog_enabled to false. Maybe it should be disabled by default?
—
Reply to this email directly or view it on GitHub.


mmp-expose-subnet-ids

What this PR does / why we need it
allow configuration of subnetIDs for nodepool, this show be a workaround for this bigger issue https://github.com/giantswarm/giantswarm/issues/29585
https://github.com/giantswarm/giantswarm/issues/29786
/run cluster-test-suites

/run cluster-test-suites


feat(Toolbar): add component

Basic Toolbar implementation

Toolbar currently supports three kinds of items:

ToolbarItem - the icon button in the toolbar,
ToolbarDivider - visual separator between items,
ToolbarRadiogroup - logical grouping of ToolbarItem (can also contain ToolbarDivider).

See https://www.w3.org/TR/wai-aria-practices/examples/toolbar/toolbar.html for details on accessibility.

[x] unit tests
[x] docsite example
[x] teams, teamsDark, teamsHighContrast themes
[ ] changelog

To be handled in separate tasks:

menu
popup
accessibility
overflow menu

Warnings

:warning:
There are no updates provided to CHANGELOG. Ensure there are no publicly visible changes introduced by this PR.

  Generated by :no_entry_sign: dangerJS