This warning should make people aware of the risks that come from pub…

…lic GH repositories in combination with self-hosted runnners exposed to malicious external contributors.
This fixes #12

Thanks, much clearer now


invalid csrf token

Hi
I am using 4.6.8-5.el7.Centos.7 on a standalone instance for mokey only, the ipa server is 4.9.2-4.module+el8.4.0 installed on Rocky 8
When I start mokey with  /usr/bin/mokey --debug server I get no errors, I get to the login screen type in the password and I get the following error:
{"time":"2021-09-21T14:52:54.587855184+02:00","level":"ERROR","prefix":"echo","file":"server.go","line":"68","message":"code=403, message=invalid csrf token"}
Initially I thought it was an issue with auth_key and enc_key so I created new with export LC_CTYPE=C; cat /dev/urandom | tr -dc 'a-f0-9' | fold -w 64 | head -n 1 for auth_key and export LC_CTYPE=C; cat /dev/urandom | tr -dc 'a-f0-9' | fold -w 32 | head -n 1 for enc_key but I am still getting that error.
I have done some googling but I am not getting any closer to a solution, has anyone seen this issue before?
Btw I also got error "Template not found: 403.html" which explained the white page I got after login, I did a copy of 401.html to 403,html with removed the error and also showed me a proper 403 error after login, maybe it should be added to the files?

This is the error page I am getting after logging in

.

@pqvindesland Are you running mokey over https? If not, try turning on developer mode:
#------------------------------------------------------------------------------
# Developer mode
#------------------------------------------------------------------------------
develop: true

Obviously, don't run this in production.

Many thanks, that worked, I had a suspicion that it needed a SSL, but I wanted to ask.

@pqvindesland No prob. Glad you got it sorted out.


gvar floatToFixed

A bit confused when setting axis coords...
https://github.com/fonttools/fonttools/blob/master/Lib/fontTools/ttLib/tables/_g_v_a_r.py#L459
this number will always be to big (except in a normalised designspace)
def floatToFixed(value, precisionBits):
	"""Converts a float to a fixed-point number given the number of
	precisionBits.  Ie. int(round(value * (1<<precisionBits))).
	"""
	return int(round(value * (1<<precisionBits)))

print floatToFixed(1000, 14)

>>> 16384000
when sending this to struct >h
error: 'h' format requires -32768 <= number <= 32767

These values are generally in normalized coordinates: beteen -1 and 1.

the specs allows to write not normalised min, default, max values, being able to write 0 - 1000 as defined in a designspace file would be nice...
I guess examples from the spec should be possible to compile...

Axis tag
Minimum value
Default value
Maximum value
Axis name ID

'wght'
300
400
700
256

'wdth'
62.5
100
150
257

https://www.microsoft.com/typography/otspec/fvar.htm

https://www.microsoft.com/typography/otspec/gvar.htm says:

Tuple records that are in the shared array or that are contained directly within a given glyph variation data table use 2.14 values to represent normalized coordinate values. See the Common Table Formats chapter for details.

https://www.microsoft.com/typography/otspec/otvarcommonformats.htm:

Tuple Records
The tuple variation store formats make reference to regions within the font’s variation space using tuple records. These references identify positions in terms of normalized coordinates, which use F2DOT14 values.

The example you quote is for fvar, but the error you're getting is from gvar. In fvar, you specify the design space values, in gvar you have to use normalized values.

thanks


Use named graphs API in Graphviz visualization

Follow up to #856.

@slwu89, I was dismayed to see that Graphviz visualization of diagrams didn't already have tests. So thanks for adding them in your #850! Once this is merged, can you rebase your PR to add the tests (and fix any issues that they might reveal)?

will do @epatters! thanks.


MacOS new UNUserNotification API

Currently being blocked by a weird bug, as described here.

The new implementation should also be enabled by switching this variable to true:
https://github.com/AzureAms/ToastNotification.Uno/blob/6c5fe1fc82ea72428f9e6ee737f530a1181908ff/ToastNotification/ToastNotification.macOS.cs#L26


Bump versions

ran:
yarn backstage-cli versions:bump

@FoodProduct can you please check this one too. By bumping @backstage/backend-common we can solve security  issues in @backstage/backend-app-api
at the same time, backstage only builds on 18 and 20. 14 was way too old, and 16 is also not supported by the more recent dependencies

Hey @alexef, the node version bumps definitely make sense but I believe we need to do some other work to enable upgrading backstage version support, which hopefully we'll be doing in the upcoming weeks. I'm not actively involved in that work so I don't have full visibility into what needs to happen and when it will happen.

superseeded by: https://github.com/cortexapps/backstage-backend-plugin/pull/54


Ingress for cluster-wide deployment

For cluster wide deployment,  ingress controller in istio-system must process multiple ingress resources /rules from other namespaces.

make sure to use leader election for ingress proxy pool to avoid racing controllers in different namespaces.

Fixed in istio/pilot#951


[@sveltejs/adapter-auto] Add support for Deta Space

This PR will allows developpers to deploy a Deta Space App without needing to edit the their svelte config.
A DETA_SPACE env var is set during the build process.
Please don't delete this checklist! Before submitting the PR, please make sure you do the following:

[ ] It's really useful if your PR references an issue where it is discussed ahead of time. In many cases, features are absent for a reason. For large changes, please create an RFC: https://github.com/sveltejs/rfcs
[x] This message body should clearly illustrate what problems it solves.
[x] Ideally, include a test that fails without this PR but passes with it.

Tests

[x] Run the tests with pnpm test and lint the project with pnpm lint and pnpm check

Changesets

[x] If your PR makes a change that should be noted in one or more packages' changelogs, generate a changeset by running pnpm changeset and following the prompts. Changesets that add features should be minor and those that fix bugs should be patch. Please prefix changeset messages with feat:, fix:, or chore:.

See #8984 and the comments on it. I don't think this is going to be able to be zero-config.

I'm going to close this as it was already discussed

Thanks for the feedback, we were not aware of the previous PR.


Insert operation. Npgsql.PostgresException: "23502: null value in column "id" violates not-null constraint"

Every entity in list has Id value, but I get exception:

I am use EF Core 2.2

Library does not currently support PostgreSQL.
Dupe https://github.com/borisdj/EFCore.BulkExtensions/issues/132

Is this still an issue today? In our case we would like to land in a JSON column in the database, doing some ValueConverter<ICollection<string>, string> work to bridge the gap between model and database. Still no joy. I promise you model and mapping converter side of things, there is more than adequate null arity cross checking, so we do not think it can be that side of things; the issue is purely pg and whatever is directly atop that.


Add typography to site

depends on !244
add Typography and use it for RichTextBlock

PR Checklist

[x] Link to the respective task if one exists: COM-715

please rebase, this PR should not contain commits from https://github.com/vivid-planet/comet-starter/pull/244


Version bump to 2.104.0

Auto-generated by fastlane 🤖
Changes since release '2.103.1':

[core] bubble up FastlanePty exit status in FastlanePtyError (#13325) via Josh Holtz
[docs] fix includes in docs (#13279) via Jan Piotrowski
[scan] add an option to overwrite zip file (#13299) via Shihua Zheng
[deliver] always only submit latest build (#13315) via Josh Holtz
[gemspec] Use rubyzip >= 1.2.2 (#13307) via Luca Argenziano
[scan] add skip_detect_devices option (#13285) via Josh Holtz
[action] pull in new test result path for Xcode 10 for run_tests (#13280) via Jeff Kelley

@joshdholtz typo in 2nd change log.
[docs] ix includes in docs (#13279) via Jan Piotrowski
Needs to be
[docs] fix includes in docs (#13279) via Jan Piotrowski

Closing because need to do one more follow up PR to https://github.com/fastlane/fastlane/pull/13325


lock the panel and prevent going to tip state?

Is there any to lock the panel and prevent going to tip state and support only half and full?
I am using the Maps example.
How do you display panel(s)?

Add as child view controllers

How many panels do you displays?

1

Environment
Library version
latest
Installation method

CocoaPods

iOS version(s)
14
Xcode version
latest

Is there any to lock the panel and prevent going to tip state and support only half and full?

Does lock the panel mean that a panel doesn't become the tip state, doesn’t it?
If so, yes, you can define a layout object adopting FloatingPanelLayout to change supported states of a panel and then assign the instance to FloatingPanelLayout.layout.
Here is a short way to define a layout object inherited from FloatingPanelBottomLayout.
class MyPanelLayout: FloatingPanelBottomLayout {
    override var anchors: [FloatingPanelState : FloatingPanelLayoutAnchoring] {
        return [
            .full: FloatingPanelLayoutAnchor(absoluteInset: 88.0, edge: .bottom, referenceGuide: .safeArea),
            .half: FloatingPanelLayoutAnchor(absoluteInset: 216.0, edge: .top, referenceGuide: .safeArea),
        ]
    }
}

I removed. .tip from anchor here: https://github.com/SCENEE/FloatingPanel/blob/master/Examples/Maps/Maps/ViewController.swift#L295 but still can scroll to the tup state.

Aha, I might be able to understand your expectation. How about this code? You can control a panel move in floatingPanelDidMove delegate method. This code prevents moving a pane under a position of half state.
    func floatingPanelDidMove(_ vc: FloatingPanelController) {
        let loc = vc.surfaceLocation
        if vc.isAttracting == false {
            let maxY = vc.surfaceLocation(for: .half).y
            vc.surfaceLocation = CGPoint(x: loc.x, y: min(max(loc.y, minY), maxY))
        }
    }

tried several methods but not working.
The panel keeps going to the tip when scrolled, while i want it to stay fixed and locked in half and can be dragged to full state.

You look use a top positioned panel. The above example code is for a bottom positioned panel. So in addition to the change of  your comment, please try this in Maps example app.
class SearchPanelPadDelegate: NSObject, FloatingPanelControllerDelegate, UIGestureRecognizerDelegate {
    ...
    func floatingPanelDidMove(_ vc: FloatingPanelController) {
        let loc = vc.surfaceLocation
        if vc.isAttracting == false {
            let minY = vc.surfaceLocation(for: .half).y
            vc.surfaceLocation = CGPoint(x: loc.x, y: max(loc.y, minY))
        }
    }
}

The behavior is weird now. Were you able to test in the Map example? Thanks.

Hmm... yes, I was of course. I'm having trouble understanding your situation. You said as below.

I removed. .tip from anchor here: https://github.com/SCENEE/FloatingPanel/blob/master/Examples/Maps/Maps/ViewController.swift#L295

But the layout removed .tip is not valid because the initial state is tip. Which of panel did you want to modify a layout in Map example?

The search one declared here: https://github.com/SCENEE/FloatingPanel/blob/master/Examples/Maps/Maps/ViewController.swift#L11

Hi @alouanemed, I just added the below lines and it is working for me. You can also give it a try.
extension FloatingPanelBottomLayout {
open var anchors: [FloatingPanelState: FloatingPanelLayoutAnchoring]  {
return [
.full: FloatingPanelLayoutAnchor(absoluteInset: 18.0, edge: .top, referenceGuide: .safeArea),
.half: FloatingPanelLayoutAnchor(fractionalInset: 0.5, edge: .bottom, referenceGuide: .safeArea)
]
}
}


AMBARI-24968. Apply QosFilter on ambari-server's api interface.

What changes were proposed in this pull request?
Apply QoSFilter on ambari-server's api interface.
How was this patch tested?
Manually tested in a cluster. Also tested upgrade scenarios.
mvn -pl ambari-server test -DskipPythonTests

[INFO] Results:
[INFO]
[ERROR] Failures:
[ERROR]   ViewRegistryTest.testReadViewArchives:260->testReadViewArchives:488 expected:<DEPLOYED> but was:<ERROR>
[ERROR]   ViewRegistryTest.testReadViewArchives_removeUndeployed:265->testReadViewArchives:488 expected:<DEPLOYED> but was:<ERROR>
[ERROR] Errors:
[ERROR]   AmbariManagementControllerTest.testCreateActionsFailures:4363 » Ambari Action ...
[ERROR]   AlertsDAOTest.setup:123 » ClusterNotFound Cluster not found, clusterName=clust...
[INFO]
[ERROR] Tests run: 5232, Failures: 2, Errors: 2, Skipped: 72
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------

The above failure may have something to do with my environment, this change shouldn't cause this failure.
Please review Ambari Contributing Guide before opening a pull request.

If a huge requests come at the same time, by default all requests will be queued to be processed by client thread pool. Some of the requests may thread starvation, and if the client closes the request on timeout, the ambari-server's may have a lot of connections in CLOSE_WAIT state. QoSFilter can prevent from this situation.

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/Ambari-Github-PullRequest-Builder/4649/
Test PASSed.

@yaozongyou  What this ever merged in?


Kelloggs - The number of jobs posted on Peviitor and the one posted on the company website isn't the same.

ENVIROMENT: production
URL: https://peviitor.ro/
Browser: Chrome
Device: laptop
OS: Windows 10
STEPS TO REPRODUCE:

Open "https://peviitor.ro/" in the browser.
Type "Kelloggs" in the search bar.
Check the number of jobs available for Kelloggs.
Open "https://jobs.kellogg.com/search/?createNewAlert=false&q=&locationsearch=romania&optionsFacetsDD_department=&optionsFacetsDD_state=&optionsFacetsDD_country=".
Check the number of jobs displayed.

EXPECTED RESULTS:
The number of jobs posted on "https://peviitor.ro/" and the number of jobs posted on the company website should be the same.
ACTUAL RESULT:
There are 14 jobs posted on Peviitor website while on the company website there are posted 13 available jobs for Romania.

I don't think there is any problem!


generating/distributing authorized_keys should not be done in the role

generating/distributing authorized_keys should be done in other role.
https://github.com/reallyenglish/ansible-role-jenkins-slave/pull/16#pullrequestreview-48513819

when solving the issue, please consider that there are multiple crypto libraries, openssl, libressl, and gnutls. it is likely that BSDs will incorporate libressl soon, and some linux people have also showed interests. at least, now people have lost faith in openssl for sure. I do not know maturity of recent gnutls, though.


button color

hello! Can you add abitlity to change "Continue" button color, it's too bright for dark themes.

This is reasonable. I'll maybe add it as a VS Code setting. Going to think on this before doubling the number of settings we have just for a button color, but will do something by tomorrow.

Thank for a reaction.  I think there is a lack of auto-scroll and buttons "home" "end" doesn't work in input field.

Ok so I did a thing for now: If you type a hex code into the text input, then reload the window it will update the button color to that hex code (e.g. "#333", or "#335565"). I want to be careful about giving everyone instant access to override the most recognizable part of our extension and not too many people have requested it yet (if this changes, we'll reconsider), but I totally understand why you'd want this.
I'm also pushing a fix rn for the home+end buttons. Played around with scroll a little bit, don't have it quite yet (and doing it wrong would be really annoying), but aiming to push that out tomorrow

@tkitka All of these changes are ready, now that I've just published autoscroll! I'll close this issue in about a day if this all seems good to you

Going to close this issue, but feel free to reopen if needed


Get tags in the order they are added

I want to fetch the tags in the order they are added to the post.
For example, if I add tags in following order

I get

I don't want to sort them with columns like created_at. Is there any way I can get the above order?

Is this in the SettingsModal itself that you want to see it ordered?

No. I'm fetching the associated tags on the front-end.

Unfortunately, we don't keep timestamps in the pivot tables. If we did, you could do some fancy query to order them by their created_at dates.

That can be tailored to meet my requirements. Thanks for your time.


add a glossary term for network policy

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
For 1.9 Features: set Milestone to 1.9 and Base Branch to release-1.9
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
NOTE: Please check the “Allow edits from maintainers” box (see image below) to
allow reviewers to fix problems on your patch and speed up the review process.
Please delete this note before submitting the pull request.
NOTE: After opening the PR, please un-check and re-check the "Allow edits from maintainers" box. This is a temporary workaround to address a known issue with GitHub.

This change is

Travis build break error:
glossary_test.go:101: Glossary term "Network Policy" has invalid tag "resource". See ../_data/canonical-tags for the list of valid tags.


#88125 Reverse action order in goToErrorWidget

This PR fixes #88125
I removed the use of HORIZONTAL_REVERSE and added the buttons in reverse order instead.
I believe you could set the tabIndex of the actions to be 2 and 1, but according to this it is better to order the elements correctly.
Demo:

Thanks!


encoding/csv support - Feature request

I'm interested in potentially creating a pixlet app that visualizes some data published in CSV format from a public source. However I noticed that encoding/csv from Starlib is not in the list of supported Starlib packages. Is there any chance that support for this can be added?

Shout out to @drudge - this is now available in v0.16.2!


How to store the atom dependent computes

In the current refactoring approach it is possible for the user to print basically any compute quantity defined by LAMMPS if the application has been compiled with those modules present.
Of course, this has a big issue, how do we store all this data? Right now the positions as a function of time are stored in a trajectory data which is the natural data structure for this data types. However, for the other computes, the trajectory data is not the ideal type, we could of course store each one of these computes as XYData, or just dump everything in an ArrayData. However, this would make getting step based information quite difficult.
I wonder if there is a better data type or if it would be a good idea to make a derived data type, perhaps from the ArrayData with custom methods to get the step wise information.
What do you think @chrisjsewell ?

Besides how to store them one needs to think about how to dump them in a proper manner.
The file for the trajectories is currently implemented, and it is perhaps best not to touch this. Hence, the other quantities would need to be written in a different file, if they all would be scalars, this would be no problem, however the quantities are sometimes arrays, which means that if they are dumped into the same file than scalar quantities could make the parsing considerably harder.
One solution is to have a list of all the computes/fixes that calculate something that are vectors and when generating the dump line take this into consideration. However, this would mean that one would need to store whether a given compute/fix is an array and its dimensions. This is very time consuming, it is possible but maybe not worth it.
Independently one would need to see if it is wise to store all the computes/fixes into the same file, this file could get extremely large, and parsing it would be very difficult. On the other hand it would be a single file to keep track of. If one dumps every compute/fix into its own file, the parsing would be quite simple, however, one would need to ensure that a large number of files are added to the retrieved list. I'm unsure what is the best solution in terms of efficiency in the storage and parsing in this case.

Something that is important is that one needs to identify which quantities are scalars, which are vectors and which are arrays, since the way in which LAMMPS handled the printing, so one needs to have as part of an auxiliary json file which compute/fix belongs to which category.
The vectors can be printed with c_vector[*] however, this does not work for arrays, and one would need to know the size of the array and use that for printing. Another issue, is whether or not there are atom dependent quantities which do not have the /atom discrimination, since that would imply that one needs to also store this in the auxiliary file.

Sire dependent-time dependent computes are stored in the LammpsTrajectory and can be accesses using the same methods that are used to access the positions. Closed via #35


'ETIMEDOUT' while sending tradeoffer.

Hello, i have got that error, while sending trade. Sometimes it's sends a tradeoffer, but usually no.
{ [Error: ETIMEDOUT] code: 'ETIMEDOUT', connect: false }
Error: ETIMEDOUT
    at null._onTimeout (node_modules/steam-tradeoffers/node_modules/request/request.js:759:15)
    at Timer.listOnTimeout (timers.js:92:15)

What to do?

Retry your request, ETIMEDOUT means your request is timed out. If you keep getting this error, you should troubleshoot your connection to Steam servers.
Also, #121.


Issue while receiving google response after sending push mensage.

Hi,
Im very new in GitHub so Im not sure if this section is the right one for asking this.
I used the lib endroid/Gcm following a android tutorial and everything worked fine, but when getting the answer from google i got this error:
[10-Nov-2015 12:20:32 Etc/GMT] PHP Fatal error:  Call to undefined method Buzz\Client\FileGetContents::flush() in /home/cicloyjb/public_html/android/gcm/vendor/endroid/gcm/src/Client.php on line 89
I installed the lib into my project using composer.
Do you have any idea of what can cause this?
Thanks in advance.

Hi @DMS007 did you find a solution yet? The flush command should be executed by the MultiCurl client instead of the FileGetContents class. When I look at the Browser class (https://github.com/kriswallsmith/Buzz/blob/master/lib/Buzz/Browser.php) I see that when the constructor does not receive a client it assigns FileGetContents class. So it looks like your code has troubles instantiating the MultiCurl class (which is explicitly passed to the constructor by the GCM client), resulting in a null value. I see the constructor executes a curl command, maybe something goes wrong there. Do you have libcurl installed? To be sure I just added the extension to the requirements in composer in the latest version.

Hi endroid, I couldnt find any solution actually. I'm a beginner in Android and PHP programming, so Im not able to read other`s programs and come up with a solution yet.
I followed what you said and updated with composer the endroid package. The previous problem didn`t show up but this one appear instead:
[24-Jan-2016 14:40:04 Etc/GMT] PHP Fatal error:  Uncaught exception 'Buzz\Exception\RequestException' with message 'file_get_contents(https://android.googleapis.com/gcm/send): failed to open stream: operation failed' in /home/cicloyjb/public_html/android/gcm/vendor/kriswallsmith/buzz/lib/Buzz/Client/FileGetContents.php:28
Stack trace:
#0 /home/cicloyjb/public_html/android/gcm/vendor/kriswallsmith/buzz/lib/Buzz/Browser.php(130): Buzz\Client\FileGetContents->send(Object(Buzz\Message\Request), Object(Buzz\Message\Response))
#1 /home/cicloyjb/public_html/android/gcm/vendor/kriswallsmith/buzz/lib/Buzz/Browser.php(82): Buzz\Browser->send(Object(Buzz\Message\Request))
#2 /home/cicloyjb/public_html/android/gcm/vendor/kriswallsmith/buzz/lib/Buzz/Browser.php(36): Buzz\Browser->call('https://android...', 'POST', Array, '{"collapse_key"...')
#3 /home/cicloyjb/public_html/android/gcm/vendor/endroid/gcm/src/Client.php(97): Buzz\Browser->post('https://android...', Array, '{"collapse_key"...')
#4 /home/cicloyjb/public_html/android/gcm/package/apl/AplUser.php(48): Endroid\G in /home/cicloyjb/public_html/android/gcm/vendor/kriswallsmith/buzz/lib/Buzz/Client/FileGetContents.php on line 28
I'm taking my weekends reading all the codes trying figure what is happening out. But I doubt Ill be able to solve.
Let me know if you have any hint about it. I would really like to get GCM working properlly.

@DMS007 Apparently the MultiCurl client is still not used... Can you attach your composer.json and composer.lock files here?

Hi @endroid! In my project file (/gcm) I have the following

composer.json
{
"name": "vendor_name/package_name",
"description": "description_text",
"minimum-stability": "stable",
"license": "proprietary",
"authors": [
{
"name": "DMS",
"email"<EMAIL_ADDRESS>}
],
"require": {
"endroid/gcm": "1.2.7"
}
}

composer.lock
{
"_readme": [
"This file locks the dependencies of your project to a known state",
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file",
"This file is @generated automatically"
],
"hash": "182d0831e501d6c8ca0843e88b2782a3",
"content-hash": "0468d3c20a47ee341aa67c97139cef92",
"packages": [
{
"name": "endroid/gcm",
"version": "1.2.7",
"source": {
"type": "git",
"url": "https://github.com/endroid/Gcm.git",
"reference": "b0236a3953f7e619b0cfa0abc952454a54b6c5ef"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/endroid/Gcm/zipball/b0236a3953f7e619b0cfa0abc952454a54b6c5ef",
"reference": "b0236a3953f7e619b0cfa0abc952454a54b6c5ef",
"shasum": ""
},
"require": {
"kriswallsmith/buzz": "~0.3",
"php": ">=5.3.0"
},
"require-dev": {
"fabpot/php-cs-fixer": "~1.0",
"phpunit/phpunit": "~4.0"
},
"type": "library",
"extra": {
"branch-alias": {
"dev-master": "1.x-dev"
}
},
"autoload": {
"psr-4": {
"Endroid\Gcm\": [
"src/",
"tests/"
]
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Jeroen van den Enden",
"email"<EMAIL_ADDRESS>"homepage": "http://endroid.nl/"
}
],
"description": "Endroid Google Cloud Messaging",
"homepage": "https://github.com/endroid/Gcm",
"keywords": [
"cloud",
"endroid",
"gcm",
"google",
"messaging",
"notification",
"notifications",
"push"
],
"time": "2015-07-08 13:55:46"
},
{
"name": "kriswallsmith/buzz",
"version": "v0.15",
"source": {
"type": "git",
"url": "https://github.com/kriswallsmith/Buzz.git",
"reference": "d4041666c3ffb379af02a92dabe81c904b35fab8"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/kriswallsmith/Buzz/zipball/d4041666c3ffb379af02a92dabe81c904b35fab8",
"reference": "d4041666c3ffb379af02a92dabe81c904b35fab8",
"shasum": ""
},
"require": {
"php": ">=5.3.0"
},
"require-dev": {
"phpunit/phpunit": "3.7."
},
"suggest": {
"ext-curl": ""
},
"type": "library",
"autoload": {
"psr-0": {
"Buzz": "lib/"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Kris Wallsmith",
"email"<EMAIL_ADDRESS>"homepage": "http://kriswallsmith.net/"
}
],
"description": "Lightweight HTTP client",
"homepage": "https://github.com/kriswallsmith/Buzz",
"keywords": [
"curl",
"http client"
],
"time": "2015-06-25 17:26:56"
}
],
"packages-dev": [],
"aliases": [],
"minimum-stability": "stable",
"stability-flags": [],
"prefer-stable": false,
"prefer-lowest": false,
"platform": [],
"platform-dev": []
}

Then i have a composer.json and in /gcm/vendor/endroid/gcm
{
"name": "endroid/gcm",
"description": "Endroid Google Cloud Messaging",
"keywords": ["endroid", "gcm", "push", "notification", "notifications", "google", "cloud", "messaging"],
"homepage": "https://github.com/endroid/Gcm",
"type": "library",
"license": "MIT",
"authors": [
{
"name": "Jeroen van den Enden",
"email"<EMAIL_ADDRESS>"homepage": "http://endroid.nl/"
}
],
"require": {
"php": ">=5.3.0",
"ext-curl": "*",
"kriswallsmith/buzz": "~0.3"
},
"autoload": {
"psr-4": {
"Endroid\Gcm\": [ "src/", "tests/" ]
}
},
"config": {
"bin-dir": "bin"
},
"extra": {
"branch-alias": {
"dev-master": "1.x-dev"
}
}
}
And another composer.json in gcm/vendor/kriswallsmith/buzz
{
"name": "kriswallsmith/buzz",
"description": "Lightweight HTTP client",
"keywords": ["http client", "curl"],
"homepage": "https://github.com/kriswallsmith/Buzz",
"type": "library",
"license": "MIT",
"authors": [
{
"name": "Kris Wallsmith",
"email"<EMAIL_ADDRESS>"homepage": "http://kriswallsmith.net/"
}
],
"require": {
"php": ">=5.3.0"
},
"require-dev": {
"phpunit/phpunit": "3.7."
},
"suggest": {
"ext-curl": ""
},
"config": {
"bin-dir": "bin"
},
"autoload": {
"psr-0": {
"Buzz": "lib/"
}
}
}
Is there anything wrong with them?
Really thank you for your attention.

@endroid I searched for a simple code to send the cURL POST request to check if my gcm code was working and everything worked pretty fine.
The code is that one:
 "Titulo",
					'message' => "Msg Area",
			);

	$fields = array(
            'registration_ids' => array("fucmnuw-eyM:APA91bGqG97ZkfK2jGb7MUv8mYhJfLuvIMmFPLZcrBVtxtEe9gSkFXKeBKDRya4g8kt2_8SannHeOvQ_PnK2FmgSGu7vaHt5_isem7SbiXblXSy4CRA5jQNxFY5uoVfC2AdFfDywcwqa"),
            'data' => $message,
        );

	define("GOOGLE_API_KEY", );
        $headers = array(
            'Authorization: key=' . GOOGLE_API_KEY,
            'Content-Type: application/json'
        );

	$ch = curl_init();
	curl_setopt($ch, CURLOPT_URL, $url);
    curl_setopt($ch, CURLOPT_POST, true);
    curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
	curl_setopt ($ch, CURLOPT_SSL_VERIFYHOST, 0);
    curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
    curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($fields));
    $result = curl_exec($ch);

    if ($result === FALSE) {
        die('Curl failed: ' . curl_error($ch));
    }
    curl_close($ch);

	echo $result;
?>
So I believe cURL is working good.
It might be something related to the content of $request variable and $context
When  $content = file_get_contents($url, 0, $context); it gives the error as $context = 'Resource id #32'
But when I changed $context for $request, considering that $request = POST /gcm/send HTTP/1.1 Host: https://android.googleapis.com Authorization: key= Content-Type: application/json {"collapse_key":"myTestPushMessage","delay_while_idle":false,"time_to_live":2419200,"restricted_package_name":"com.agendacoruja.diego.coruja","dry_run":false,"data":{"title":"Title","message":"Message area."},"registration_ids":["fucmnuw-eyM:APA91bGqG97ZkfK2jGb7MUv8mYhJfLuvIMmFPLZcrBVtxtEe9gSkFXKeBKDRya4g8kt2_8SannHeOvQ_PnK2FmgSGu7vaHt5_isem7SbiXblXSy4CRA5jQNxFY5uoVfC2AdFfDywcwqa"
It doesnt gives any error but yet the response is null for some reason I couldnt check.
Response = array(1) { [0]=> object(Buzz\Message\Response)#12 (5) { ["protocolVersion":"Buzz\Message\Response":private]=> NULL ["statusCode":"Buzz\Message\Response":private]=> NULL ["reasonPhrase":"Buzz\Message\Response":private]=> NULL ["headers":"Buzz\Message\AbstractMessage":private]=> array(0) { } ["content":"Buzz\Message\AbstractMessage":private]=> NULL } }
And the push notification is not sent.

I honestly have no clue. Maybe it has something to do with multi curl only, as your example uses regular curl. Maybe you could try to see if the works when you use curl_multi_init or even try to replace the Buzz client in my code with a Guzzle client to see if that library is giving any more clues on why you don't get a proper response?


changeset checksum different with and without liquibase-percona (liquibase 3.10.3)

Environment
Liquibase Version: 3.10.3
Liquibase Integration & Version: <Pick one: CLI, maven, gradle, spring boot, servlet, etc.>
Liquibase Extension(s) & Version: liquibase percona 1.7.0, and snakeyaml 1.27 (tofix a vulnerability)
Database Vendor & Version:  docker mysql 5.7.32
Operating System Type & Version: centos 7 docker
Description
A clear and concise description of the issue being addressed.
I have a small yaml changeset that I deployed with liquibase+percona :
databaseChangeLog:
* changeSet:
    id: 2
    author: Alice
    changes:
  * addColumn:
          tableName: command_data
          usePercona: true
          columns:
    * column:
                name: address
                type: varchar(255)

I removed liquibase-percona extension and rerun my liquibase command, surprisingly it found a problem with the checksum.
19:17:28.905 ERROR [liquibase.integration.commandline.Main]: Unexpected error running Liquibase: Validation Failed:
1 change sets check sum
p1/p1.yaml::2::Alice was: 8:bb6e4d852c8dc99a0837a361260f7c41 but is now: 8:8e72f39f96f863b7b4b7789139e56595
I was expecting no problem.
(I am trying to do some manual hard deploy with liquibase+percona, but still keep our liquibase only deployment process working for most of our future changeset).
I have another changeset that has been deployed with liquibase+percona, it is an xml one :
<changeSet id="dbtf-2" author="dbtf">
    <addColumn tableName="collection" usePercona="true">
        <column name="scope_urn_sharding" type="varchar(128)" afterColumn="scope_urn"/>
    </addColumn>
</changeSet>

and I got the same different checksum when I try to run liquibase without percona.
0003-FDATA-dbtf/0003-FDATA-dbtf.xml::dbtf-2::dbtf was: 8:7e8201ba501fe5d8460af4cb8e8b5e01 but is now: 8:b895517edefe1126d6f30f6c85f4c3bb
Steps To Reproduce
List the steps to reproduce the behavior.
run liquibase update with liquibase+percona, then remove percona extension and run liquibase update again.
Actual Behavior
A clear and concise description of what happens in the software before this pull request.
percona enable changeset generate a different checksum and generate a verification failed error.
Expected/Desired Behavior
I was expecting no checksum change (files weren't changed) and liquibase update reporting no change to be applied.
Screenshots (if appropriate)
If applicable, add screenshots to help explain your problem.
Additional Context
Add any other context about the problem here.
┆Issue is synchronized with this Jira Bug by Unito

Thanks @CyrilDevOps for writing up this issue.  We will add this to our list of issues to process.

Thanks @CyrilDevOps for writing up this issue.  We will add this to our list of issues to process.

I found the same problem with liquibase 4.x and the first snapshot of liquibase-percona extension 2.0

I found the same problem with liquibase 4.x and the first snapshot of liquibase-percona extension 2.0

This happens with the liquibase-percona extension: This extension adds an additional DatabaseChangeProperty named "usePercona" - but only if you use the extension. If you don't, then you still have this property in your changelog, but it is ignored.
For now in liquibase-percona 2.0.0, I've excluded the property from serialization, which avoids the different checksums problem.
This is the case, where there is a DatabaseChangeProperty, but this property should not have any effect on the checksum, because the end result of the change is the same (either applied with or without liquibase-percona).
Maybe a new option in liquibase can be provided for DatabaseChangeProperty, something like ignoreForChecksum. While such properties should be ignored when calculating checksums, it still makes sense to include them when serializing a changelog. I assume, this serialization feature could be used to convert between different changelog formats (e.g. XML -> YAML).

@adangel has fixed this from liquibase-percona 2.0.0 onwards, so if you're experiencing this issue, please update your liquibase-percona version.


[Question] swaggertype for custom marshalled structrure

I have a struct that has a custom Marshaller and Unmarshaller.
type Money struct {
  // ... several fields
}

func (s *Money) MarshalJSON() ([]byte, error) {
...
}

func (s *Money) UnmarshalJSON(b []byte) error {
...
}

It is serialized as a struct:
{
  "amount": "100.00",
  "currency": "ARS"
}

I couldn't find a way to do a replace in .swaggo file.
Can you lead me how to declare this type for Swagger?

https://github.com/swaggo/swag#use-swaggertype-tag-to-supported-custom-type


Acronyms for the legal entity should be included

There should be abbreviations of legal entity added in order to classify rightly
In [3]: matches("Relience Private Limited", classification_sources)
Out[3]:
['Hong Kong',
 'Israel',
 'New Zealand',
 'Pakistan',
 'United Kingdom',
 'United States of America']

Here there should have been India in the output.

Pull request with test welcome.


Disabling authentication

Will be nice to disable the new 0.77 authentication.
On oldish ipads it's impossible to get the hassio login page.
How I can provide the password as in legacy (before 0.77)?

We had to  disable legacy auth due to security reasons. I'm sure someone has already reported inability to login via old webkit browsers as a bug and it will be fixed.


Applicable equipment

Hi,
I am interesting about your study，and can you tell me what kind of equipment suit it？
can Velodyne HDL-64E device perform well?
thanks.

Hi @huyusheng123 ,
We tested this package with HDL32E and VLP16E. I suppose that you can use HDL64E and any other 3D LIDARs as well.

Hi @koide3 ,
I am happy to hear from you, and I want  to learn more detail about it，so may I get the related paper of this package?
thanks.

Hi,
You can find the paper at the following link:
https://www.researchgate.net/publication/331283709_A_Portable_3D_LIDAR-based_System_for_Long-term_and_Wide-area_People_Behavior_Measurement


Retrieve XML Response returned by Intacct SDK.

Our goal is to be able to retrieve the XML Response when making API calls via Intacct SDK.
I have found this article but am unable to figure out how to extract the XML Response using this.
I also did some digging on the code of Intacct SDK and found where the XML Response is contained in AbstractResponse, but I am unable to access it from OnlineResponse due to the protected access modifier. I also didn't find the request in XML form anywhere.
Can someone assist with this?

Have you looked at this: https://github.com/intacct/intacct-sdk-net-examples
Look at the CRUDCustomer or GettingStarted files for more info.
You're essentially:
Task response = await client.Execute(request);
From that response you have full access to all the properties.

Hi @SergioBAM!
Thanks for the quick response.
Yes, I have checked those files previously and we already have var response = await client.Execute(request); implemented. The problem is that I could not access OnlineResponse.Response since Response is protected within AbstractResponse where OnlineResponse is inherited from.
Thanks,
Chester

Because it builds it from the XML returned. See Intacct.SDK.Xml.Response
Remove your line 54 and debug the Result result = response.Results[0];
What exactly are you trying to do?

Hello, @SergioBAM.
What I am trying to achieve is to get the API response in XML format. Just like how we would receive the response in Postman.
Thanks,
Chester

Hey @Ansh-S thanks for this. This is exactly what I need.


Action is stuck

Hello!
It seems there is a bug or I am missing something. I have a release script and today i switched action to run on my local pc(self-hosted). From now on, release script is stuck on deploy step.
How it looks:
  name: Deploy to Azure WebApp
  uses: azure/webapps-deploy@v2
  with:
    app-name: ${{ env.AZURE_WEBAPP_NAME }}
    publish-profile: ${{ secrets.sjsg_FFFF }}
    package: ${{ env.AZURE_WEBAPP_PACKAGE_PATH }}

Full script:
name: Build and deploy .NET Core application to Web App sjsg
on:
  push:
    branches:
    - develop
env:
  AZURE_WEBAPP_NAME: sjsg
  AZURE_WEBAPP_PACKAGE_PATH: SJSG\published
  CONFIGURATION: Release
  DOTNET_CORE_VERSION: 6.0.x
  WORKING_DIRECTORY: SJSG
jobs:
  build:
    runs-on: self-hosted
    steps:
    - uses: actions/checkout@v2
    - name: Setup .NET Core
      uses: actions/setup-dotnet@v1
      with:
        dotnet-version: ${{ env.DOTNET_CORE_VERSION }}
    - name: Restore
      run: dotnet restore "${{ env.WORKING_DIRECTORY }}"
    - name: Build
      run: dotnet build "${{ env.WORKING_DIRECTORY }}" --configuration ${{ env.CONFIGURATION }} --no-restore
    - name: Test
      run: dotnet test "${{ env.WORKING_DIRECTORY }}" --no-build
    - name: Publish
      run: dotnet publish "${{ env.WORKING_DIRECTORY }}" --configuration ${{ env.CONFIGURATION }} --no-build --output "${{ env.AZURE_WEBAPP_PACKAGE_PATH }}"
    - name: Deploy to Azure WebApp
      uses: azure/webapps-deploy@v2
      with:
        app-name: ${{ env.AZURE_WEBAPP_NAME }}
        publish-profile: ${{ secrets.sjsg_FFFF }}
        package: ${{ env.AZURE_WEBAPP_PACKAGE_PATH }}
    - name: Publish Artifacts
      uses<EMAIL_ADDRESS>      with:
        name: webapp
        path: ${{ env.AZURE_WEBAPP_PACKAGE_PATH }}

@arti1zz could you share at which step the action is stuck? If possible, could you share the logs of the action run?


Add error message if install pods get killed or evicted

This PR adds error message in the install log if we detect a
infraID set on cluster provision by previous install pod which
got killed or evicted midway through the installation process.
We also fail the cluster provision in this case. Earlier we use
to start a new install attempt which failed to update cluster
provision infraID - an immutable field giving a not so user
friendly admission webhook failure message.
This PR also fixes the bug where secrets associated with the
failed cluster provisions were getting leaked. We now store
the name of the previous provision and use it to delete
leaked secrets in the next provision attempt.
x-ref: https://issues.redhat.com/browse/HIVE-1725

/assign @joelddiaz @2uasimojo

/test e2e

/lgtm


Revert "added news"

Reverts AlisProject/welcome#188
*Sorry I made a mistake of merging this pull request by myself. So I reverted it.

👍


Fix compilation problem of go1.5

Go environment is required compilation of go1.5.
Bootstrap go can specify GOROOT_BOOTSTRAP environment variable, but default value is $HOME/go1.4.

Doesn't fix it for me, still can't install 1.5, probably also want to update travis to make sure that compiles 1.5 as well?

@joshuataylor Did you install go1.4? go1.5 is not self-hosting. So you need a go to install go1.4. I succeeded to install 1.5 with the patch of this PR.

@joshuataylor

Apply patch from PR.
$ gvm use go1.4.2
$ gvm install go1.5
Done: $ gvm list

gvm gos (installed)

   go1.4
=> go1.4.2
   go1.5

Tested on another machine, works fine. :+1:

:+1:

It works for me.

:+1:

it works fine :+1:

Nice fix!


Fetch API Redirected Property

Fixes https://github.com/Microsoft/TypeScript/issues/17758

Just to note it was only recently added to the living standard.  It is not present in Edge.


Add a new exercise

@gabrysia694 I correct my mistakes, can you merged it

i correct the missing comma


Not able to generate PROD build

Running below build command with release profile mentioned below in eas.json. Even after providing "releaseChannel": "production" its not generating production build. Any suggestion?
eas build --profile release --platform all

 "release": {
    "workflow": "managed",
    "releaseChannel": "production"
  }

In case of expo we can specify release-channel  as below
expo publish --release-channel prod

As mentioned here https://docs.expo.io/distribution/release-channels/#using-release-channels-for-environment-variable-configuration we can create a function that looks for the specific release and adjust app's behaviour accordingly
import * as Updates from 'expo-updates';

function getEnvironment() {
  if (Updates.releaseChannel.startsWith('prod')) {
    // matches prod-v1, prod-v2, prod-v3
    return { envName: 'PRODUCTION', dbUrl: 'ccc', apiKey: 'ddd' }; // prod env settings
  } else if (Updates.releaseChannel.startsWith('staging')) {
    // matches staging-v1, staging-v2
    return { envName: 'STAGING', dbUrl: 'eee', apiKey: 'fff' }; // stage env settings
  } else {
    // assume any other release channel is development
    return { envName: 'DEVELOPMENT', dbUrl: 'aaa', apiKey: 'bbb' }; // dev env settings
  }
}

But same thing is not working with eas build command

@brentvatne
It worked with Updates.releaseChannel
I was initially trying with Constants.manifest.releaseChannel from expo-constants as below
import Constants from 'expo-constants';;
function getEnvironment() {
  if (Constants.manifest.releaseChannel.startsWith('prod')) {
    // matches prod-v1, prod-v2, prod-v3
    return { envName: 'PRODUCTION', dbUrl: 'ccc', apiKey: 'ddd' }; // prod env settings
  } else if (Constants.manifest.releaseChannel.startsWith('staging')) {
    // matches staging-v1, staging-v2
    return { envName: 'STAGING', dbUrl: 'eee', apiKey: 'fff' }; // stage env settings
  } else {
    // assume any other release channel is development
    return { envName: 'DEVELOPMENT', dbUrl: 'aaa', apiKey: 'bbb' }; // dev env settings
  }
}

But now with Updates.releaseChannel its working fine. Thank you :)


Kernel used in Notebook or Interactive window not used when launching tensorboards

Environment data

VS Code version: N/A
Extension version (available under the Extensions sidebar): N/A
OS and version: N/A
Python version (& distribution if applicable, e.g. Anaconda): NA
Type of virtual environment used (N/A | venv | virtualenv | conda | ...): N/A
Relevant/affected Python packages and their versions: N/A
Relevant/affected Python-related VS Code extensions and their versions: NA
Value of the python.languageServer setting: N/A

[NOTE: If you suspect that your issue is related to the Microsoft Python Language Server (python.languageServer: 'Microsoft'), please download our new language server Pylance from the VS Code marketplace to see if that fixes your issue]
Expected behaviour
Tensoboards is launched from the python environment used in the kernel of Interactive window or Notebooks.
Actual behaviour
Tensoboards is not launched from the python environment used in the kernel of Interactive window or Notebooks.
Steps to reproduce:
[NOTE: Self-contained, minimal reproducing code samples are extremely helpful and will expedite addressing your issue]

Open a notebook or interactive window
Change the kernel to some python environment other than the active python interpreter in Users worksapce (as defined by Python extension)
Train a machine learning model (tensorflow)
Click the code lens displayed to launch the tensorboard, & this will attempt to use the current workspace interpreter

Problem: We know that tensorboard is available in the interpreter used by interactive window or notebook (& that's why the code lens is available & the user is running the code in that window)
However, we're assuming tensorboards is available in the active interpreter and expecting the user to figure out how to launch tensorboards when things don't work.
We should default to the interpreter used by the interactive window/notebook.
See here https://github.com/microsoft/vscode-python/discussions/17392

@joyceerhl @greazer  /cc

However, we're assuming tensorboards is available in the active interpreter and expecting the user to figure out how to launch tensorboards when things don't work.

If tensorboard is not installed in the active interpreter or needs an upgrade, we prompt the user to install/upgrade and handle that for them.

If tensorboard is not installed in the active interpreter or needs an upgrade, we prompt the user to install/upgrade and handle that for them.

My point is we're unnecessarily asking the user to install tensorboard (when we already know where it is installed). If you check the discussion, the user does't want to install it, they want to use the interpreter that already has tensorboard.


Error in the description

[Enter feedback here]
Error is the description:

--endpoint-dest-address
Error in description, it should be "Address of the destination of connection monitor endpoint"

--endpoint-source-resource-id
If endpoint is intended to used as source, this option is required. The resource ID should be the source of connection monitor endpoint instead of destination as documented.

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

ID: 0800fdc3-05ed-9fa8-888a-a8997c6a5a8e
Version Independent ID: 5d6188b7-5eb4-835d-d63a-32aa1a1f49ca
Content: az network watcher connection-monitor
Content Source: src/azure-cli/azure/cli/command_modules/network/_help.py
Service: virtual-network
GitHub Login: @rloutlaw
Microsoft Alias: routlaw

add to S174


Event too large

I get these in my console all the time:
pool-2-thread-4241/ERROR [badgeup]: Event too large: changeblock:place:minecraft:leaves
There has to be a better way of handling these events. If they're not able to be tracked at all, it will severely limit the usability of this service for minecraft.

@Mohron I'm 99% sure that we're able to normally place leaves and track that event. I wonder if some other plugins are inflating the event size. We'll look into it.

@Mohron I wasn't able to get any changeblock:place events that were too large - in fact, they weren't very big at all. In v2.0.1, the event body is printed out to the debug logs if it is too large. If you see it happen again, please post the event body here so I can try to slim down the event.

https://hastebin.com/anibocagaw.rb this if from SF3 btw

@Mohron Thanks for the logs, I think I have an idea about how to fix it.

@Mohron This (and other issues) are fixed in v2.0.3


Bert not working properly

Can anyone upload the environment.yml or the versions of keras, tensorflow, nilmtk, nilmtk-contrib as bert requires keras.layers.multi_head_attention and it does not work properly with the versions of keras used after conda installing nilmtk and nilmtk-contrib. upgrading keras and tensorflow causes conflicts after which nilmtk cannot be used.

Or anyone who has working version of bert please can you upload the output of conda list.

You need tensorflow2.5.0 or higher version of it. Since keras is already a inner part pf tensorflow2.5.0, you don't need to install keras individually.

I have tried using tensorflow version 2.6.0 but the environment has conflicts which creates problems. Could you please upload your environment.yml file or share the result of conda list so that I have a proper environment where everything works

If you share all the different packages you're using then I could just use your anaconda environment and avoid all the different conflicts that are in my environment.

All you need is to uninstall Keras in the original environment, install tensorflow2.5.0 and upgrate hdpy into the latest version. Then you have to make some changes about the import of the modules. For example, you have to change "import keras.XXX" into "import tensorflow.keras.XXX", and change "import keras.layers.XXX" into "import tensorflow.keras.layers".
------------------ 原始邮件 ------------------
发件人:                                                                                "nilmtk/nilmtk-contrib"                                                                                @.>;
发送时间: 2022年4月25日(星期一) 下午3:39
@.>;
<EMAIL_ADDRESS>主题: Re: [nilmtk/nilmtk-contrib] Bert not working properly (Issue #68)
If you share all the different packages you're using then I could just use your anaconda environment and avoid all the different conflicts that are in my environment.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: @.***>

@paulfrank1997   Hello, I installed tensorflow 2.5.0, and h5py is currently updated to the latest 3.7.0, but an error is reported after running, prompting ImportError: save_model requires h5py, I would like to know which version of h5py you installed. Thank you.Below is the result of running.
`D:\anaconda3\envs\nilmxu\python.exe D:/mywork/nilmtkcontribxu/nilmtk_contrib/disaggregate/fuhefenjie.py
2022-08-09 15:23:30.591863: W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'cudart64_110.dll'; dlerror: cudart64_110.dll not found
2022-08-09 15:23:30.591978: I tensorflow/stream_executor/cuda/cudart_stub.cc:29] Ignore above cudart dlerror if you do not have a GPU set up on your machine.
2022-08-09 15:23:32.978920: I tensorflow/stream_executor/platform/default/dso_loader.cc:53] Successfully opened dynamic library nvcuda.dll
Started training for  BERT
Joint training for  BERT
............... Loading Data for training ...................
Loading data for  redd  dataset
2022-08-09 15:23:32.999158: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1733] Found device 0 with properties:
pciBusID: 0000:01:00.0 name: NVIDIA GeForce RTX 3050 Laptop GPU computeCapability: 8.6
coreClock: 1.5GHz coreCount: 16 deviceMemorySize: 4.00GiB deviceMemoryBandwidth: 178.84GiB/s
2022-08-09 15:23:33.000126: W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'cudart64_110.dll'; dlerror: cudart64_110.dll not found
2022-08-09 15:23:33.000876: W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'cublas64_11.dll'; dlerror: cublas64_11.dll not found
2022-08-09 15:23:33.001617: W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'cublasLt64_11.dll'; dlerror: cublasLt64_11.dll not found
2022-08-09 15:23:33.002352: W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'cufft64_10.dll'; dlerror: cufft64_10.dll not found
2022-08-09 15:23:33.003067: W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'curand64_10.dll'; dlerror: curand64_10.dll not found
2022-08-09 15:23:33.003796: W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'cusolver64_11.dll'; dlerror: cusolver64_11.dll not found
2022-08-09 15:23:33.004519: W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'cusparse64_11.dll'; dlerror: cusparse64_11.dll not found
2022-08-09 15:23:33.005261: W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'cudnn64_8.dll'; dlerror: cudnn64_8.dll not found
2022-08-09 15:23:33.005365: W tensorflow/core/common_runtime/gpu/gpu_device.cc:1766] Cannot dlopen some GPU libraries. Please make sure the missing libraries mentioned above are installed properly if you would like to use GPU. Follow the guide at https://www.tensorflow.org/install/gpu for how to download and setup the required libraries for your platform.
Skipping registering GPU devices...
Loading building ...  2
Loading data for meter ElecMeterID(instance=2, building=2, dataset='REDD')
Done loading data all meters for this chunk.
Dropping missing values
...............BERT partial_fit running...............
First model training for  fridge
2022-08-09 15:23:35.090127: I tensorflow/core/platform/cpu_feature_guard.cc:142] This TensorFlow binary is optimized with oneAPI Deep Neural Network Library (oneDNN) to use the following CPU instructions in performance-critical operations:  AVX AVX2
To enable them in other operations, rebuild TensorFlow with the appropriate compiler flags.
2022-08-09 15:23:35.090573: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1258] Device interconnect StreamExecutor with strength 1 edge matrix:
2022-08-09 15:23:35.090662: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1264]
Model: "sequential"

Layer (type)                 Output Shape              Param #
conv1d (Conv1D)              (None, 99, 16)            80

l_ppool (LPpool)             (None, 50, 16)            0

token_and_position_embedding (None, 50, 16, 32)        643168

transformer_block (Transform (None, 50, 16, 32)        10656

flatten (Flatten)            (None, 25600)             0

dropout_2 (Dropout)          (None, 25600)             0

dense_2 (Dense)              (None, 99)                2534499

dropout_3 (Dropout)          (None, 99)                0
Total params: 3,188,403
Trainable params: 3,188,403
Non-trainable params: 0

Epoch 1/50
2022-08-09 15:23:46.743583: I tensorflow/compiler/mlir/mlir_graph_optimization_pass.cc:176] None of the MLIR Optimization Passes are enabled (registered 2)
WARNING:tensorflow:Gradients do not exist for variables ['conv1d/kernel:0', 'conv1d/bias:0'] when minimizing the loss.
WARNING:tensorflow:Gradients do not exist for variables ['conv1d/kernel:0', 'conv1d/bias:0'] when minimizing the loss.
526/526 [==============================] - 259s 472ms/step - loss: 12.1465 - mse: 12.1465 - val_loss: 0.6670 - val_mse: 0.6670
Epoch 00001: val_loss improved from inf to 0.66698, saving model to BERT-temp-weights-74894.h5
Traceback (most recent call last):
File "D:/mywork/nilmtkcontribxu/nilmtk_contrib/disaggregate/fuhefenjie.py", line 54, in
api_res = API(experiment)
File "D:\anaconda3\envs\nilmxu\lib\site-packages\nilmtk\api.py", line 46, in init
self.experiment()
File "D:\anaconda3\envs\nilmxu\lib\site-packages\nilmtk\api.py", line 91, in experiment
self.train_jointly(clf,d)
File "D:\anaconda3\envs\nilmxu\lib\site-packages\nilmtk\api.py", line 240, in train_jointly
clf.partial_fit(self.train_mains,self.train_submeters)
File "D:\mywork\nilmtkcontribxu\nilmtk_contrib\disaggregate\bert.py", line 161, in partial_fit
model.fit(train_x,train_y,validation_data=(v_x,v_y),epochs=self.n_epochs,callbacks=[checkpoint],batch_size=self.batch_size)
File "D:\anaconda3\envs\nilmxu\lib\site-packages\keras\engine\training.py", line 1204, in fit
callbacks.on_epoch_end(epoch, epoch_logs)
File "D:\anaconda3\envs\nilmxu\lib\site-packages\keras\callbacks.py", line 410, in on_epoch_end
callback.on_epoch_end(epoch, logs)
File "D:\anaconda3\envs\nilmxu\lib\site-packages\keras\callbacks.py", line 1376, in on_epoch_end
self._save_model(epoch=epoch, logs=logs)
File "D:\anaconda3\envs\nilmxu\lib\site-packages\keras\callbacks.py", line 1428, in _save_model
self.model.save(filepath, overwrite=True, options=self._options)
File "D:\anaconda3\envs\nilmxu\lib\site-packages\keras\engine\training.py", line 2087, in save
signatures, options, save_traces)
File "D:\anaconda3\envs\nilmxu\lib\site-packages\keras\saving\save.py", line 147, in save_model
model, filepath, overwrite, include_optimizer)
File "D:\anaconda3\envs\nilmxu\lib\site-packages\keras\saving\hdf5_format.py", line 79, in save_model_to_hdf5
raise ImportError('save_model requires h5py.')
ImportError: save_model requires h5py.
Closing remaining open files:C:\Users\xrq\AppData\Local\Temp\nilmtk-meg927ux.h5...doneD:/works/nilmtkcontrib/nilmtk_contrib/redd_low.hdf5...done
`

哈哈，兄弟你是国人吧？我当时也是save_model requires h5py这个错误，我直接
pip install --upgrade h5py
而且还只是升级到3.6.0，后面就可以跑了
------------------ 原始邮件 ------------------
发件人: @.>;
发送时间: 2022年8月9日(星期二) 下午4:47
收件人: @.>;
抄送: @.>; @.>;
主题: Re: [nilmtk/nilmtk-contrib] Bert not working properly (Issue #68)
@paulfrank1997   Hello, I installed tensorflow 2.5.0, and h5py is currently updated to the latest 3.7.0, but an error is reported after running, prompting ImportError: save_model requires h5py, I would like to know which version of h5py you installed. Thank you.Below is the result of running.
`D:\anaconda3\envs\nilmxu\python.exe D:/mywork/nilmtkcontribxu/nilmtk_contrib/disaggregate/fuhefenjie.py
2022-08-09 15:23:30.591863: W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'cudart64_110.dll'; dlerror: cudart64_110.dll not found
2022-08-09 15:23:30.591978: I tensorflow/stream_executor/cuda/cudart_stub.cc:29] Ignore above cudart dlerror if you do not have a GPU set up on your machine.
2022-08-09 15:23:32.978920: I tensorflow/stream_executor/platform/default/dso_loader.cc:53] Successfully opened dynamic library nvcuda.dll
Started training for  BERT
Joint training for  BERT
............... Loading Data for training ...................
Loading data for  redd  dataset
2022-08-09 15:23:32.999158: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1733] Found device 0 with properties:
pciBusID: 0000:01:00.0 name: NVIDIA GeForce RTX 3050 Laptop GPU computeCapability: 8.6
coreClock: 1.5GHz coreCount: 16 deviceMemorySize: 4.00GiB deviceMemoryBandwidth: 178.84GiB/s
2022-08-09 15:23:33.000126: W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'cudart64_110.dll'; dlerror: cudart64_110.dll not found
2022-08-09 15:23:33.000876: W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'cublas64_11.dll'; dlerror: cublas64_11.dll not found
2022-08-09 15:23:33.001617: W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'cublasLt64_11.dll'; dlerror: cublasLt64_11.dll not found
2022-08-09 15:23:33.002352: W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'cufft64_10.dll'; dlerror: cufft64_10.dll not found
2022-08-09 15:23:33.003067: W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'curand64_10.dll'; dlerror: curand64_10.dll not found
2022-08-09 15:23:33.003796: W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'cusolver64_11.dll'; dlerror: cusolver64_11.dll not found
2022-08-09 15:23:33.004519: W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'cusparse64_11.dll'; dlerror: cusparse64_11.dll not found
2022-08-09 15:23:33.005261: W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'cudnn64_8.dll'; dlerror: cudnn64_8.dll not found
2022-08-09 15:23:33.005365: W tensorflow/core/common_runtime/gpu/gpu_device.cc:1766] Cannot dlopen some GPU libraries. Please make sure the missing libraries mentioned above are installed properly if you would like to use GPU. Follow the guide at https://www.tensorflow.org/install/gpu for how to download and setup the required libraries for your platform.
Skipping registering GPU devices...
Loading building ...  2
Loading data for meter ElecMeterID(instance=2, building=2, dataset='REDD')
Done loading data all meters for this chunk.
Dropping missing values
...............BERT partial_fit running...............
First model training for  fridge
2022-08-09 15:23:35.090127: I tensorflow/core/platform/cpu_feature_guard.cc:142] This TensorFlow binary is optimized with oneAPI Deep Neural Network Library (oneDNN) to use the following CPU instructions in performance-critical operations:  AVX AVX2
To enable them in other operations, rebuild TensorFlow with the appropriate compiler flags.
2022-08-09 15:23:35.090573: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1258] Device interconnect StreamExecutor with strength 1 edge matrix:
2022-08-09 15:23:35.090662: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1264]
Model: "sequential"
Layer (type)                 Output Shape              Param #
conv1d (Conv1D)              (None, 99, 16)            80
l_ppool (LPpool)             (None, 50, 16)            0
token_and_position_embedding (None, 50, 16, 32)        643168
transformer_block (Transform (None, 50, 16, 32)        10656
flatten (Flatten)            (None, 25600)             0
dropout_2 (Dropout)          (None, 25600)             0
dense_2 (Dense)              (None, 99)                2534499
dropout_3 (Dropout)          (None, 99)                0
Total params: 3,188,403
Trainable params: 3,188,403
Non-trainable params: 0
Epoch 1/50
2022-08-09 15:23:46.743583: I tensorflow/compiler/mlir/mlir_graph_optimization_pass.cc:176] None of the MLIR Optimization Passes are enabled (registered 2)
WARNING:tensorflow:Gradients do not exist for variables ['conv1d/kernel:0', 'conv1d/bias:0'] when minimizing the loss.
WARNING:tensorflow:Gradients do not exist for variables ['conv1d/kernel:0', 'conv1d/bias:0'] when minimizing the loss.
526/526 [==============================] - 259s 472ms/step - loss: 12.1465 - mse: 12.1465 - val_loss: 0.6670 - val_mse: 0.6670
Epoch 00001: val_loss improved from inf to 0.66698, saving model to BERT-temp-weights-74894.h5
Traceback (most recent call last):
File "D:/mywork/nilmtkcontribxu/nilmtk_contrib/disaggregate/fuhefenjie.py", line 54, in
api_res = API(experiment)
File "D:\anaconda3\envs\nilmxu\lib\site-packages\nilmtk\api.py", line 46, in init
self.experiment()
File "D:\anaconda3\envs\nilmxu\lib\site-packages\nilmtk\api.py", line 91, in experiment
self.train_jointly(clf,d)
File "D:\anaconda3\envs\nilmxu\lib\site-packages\nilmtk\api.py", line 240, in train_jointly
clf.partial_fit(self.train_mains,self.train_submeters)
File "D:\mywork\nilmtkcontribxu\nilmtk_contrib\disaggregate\bert.py", line 161, in partial_fit
model.fit(train_x,train_y,validation_data=(v_x,v_y),epochs=self.n_epochs,callbacks=[checkpoint],batch_size=self.batch_size)
File "D:\anaconda3\envs\nilmxu\lib\site-packages\keras\engine\training.py", line 1204, in fit
callbacks.on_epoch_end(epoch, epoch_logs)
File "D:\anaconda3\envs\nilmxu\lib\site-packages\keras\callbacks.py", line 410, in on_epoch_end
callback.on_epoch_end(epoch, logs)
File "D:\anaconda3\envs\nilmxu\lib\site-packages\keras\callbacks.py", line 1376, in on_epoch_end
self._save_model(epoch=epoch, logs=logs)
File "D:\anaconda3\envs\nilmxu\lib\site-packages\keras\callbacks.py", line 1428, in _save_model
self.model.save(filepath, overwrite=True, options=self._options)
File "D:\anaconda3\envs\nilmxu\lib\site-packages\keras\engine\training.py", line 2087, in save
signatures, options, save_traces)
File "D:\anaconda3\envs\nilmxu\lib\site-packages\keras\saving\save.py", line 147, in save_model
model, filepath, overwrite, include_optimizer)
File "D:\anaconda3\envs\nilmxu\lib\site-packages\keras\saving\hdf5_format.py", line 79, in save_model_to_hdf5
raise ImportError('save_model requires h5py.')
ImportError: save_model requires h5py.
Closing remaining open files:C:\Users\xrq\AppData\Local\Temp\nilmtk-meg927ux.h5...doneD:/works/nilmtkcontrib/nilmtk_contrib/redd_low.hdf5...done
`
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.Message ID: @.***>

@xuuurq I met the same problem as you did: "ImportError: save_model requires h5py". But after I upgrate hdpy into the latest version by "pip install --upgrade h5py", the problem got solved. The version of h5py I used  is 3.6.0, and now everything worked fine.

@paulfrank1997 Sorry to bother you again, I think there are a few more questions:

Are you using tensorflow-gpu version 2.5.0?
The bert model in nilmtk-contrib is different from the code in the BERT4NILM paper, which is reflected in the loss function and mask processing. Is the bert model in nilmtk-contrib without mask processing?
In addition, I would like to ask you what do you think of the effect of the bert model in nilmtk-contrib?
Thank you very much for your answer.

All you need is to uninstall Keras in the original environment, install tensorflow2.5.0 and upgrate h5py into the latest version. Then you have to make some changes about the import of the modules. For example, you have to change "import keras.XXX" into "import tensorflow.keras.XXX", and change "import keras.layers.XXX" into "import tensorflow.keras.layers".
------------------ 原始邮件 ------------------
发件人:                                                                                "nilmtk/nilmtk-contrib"                                                                                @.>;
发送时间: 2022年4月25日(星期一) 下午3:39
@.>;
<EMAIL_ADDRESS>主题: Re: [nilmtk/nilmtk-contrib] Bert not working properly (Issue #68)
If you share all the different packages you're using then I could just use your anaconda environment and avoid all the different conflicts that are in my environment.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: @.***>


Source control (git) intermittently reports diverging branches

Issue Type: Bug
I am unaware of exactly how to reproduce this issue, but VS Code specifically seems to have intermittent issues with incorrectly identifying a commit as divergent from its branch.
This manifests in the form of me pulling (either from vscode or from command line) and being told the repo and branch are up to date. I then commit the changes in my working set using vscode and attempt to push them.
Attempting to push the same commit, unmodified, from command line (or any other git client for that matter) succeeds without issue
VS Code version: Code - OSS 1.62.0 (b3318bc0524af3d74034b8bb8a64df0ccf35549a, 2021-11-07T19:37:13.664Z)
OS version: Linux x64 5.10.79-1-MANJARO
Restricted Mode: No
Extensions (7)

Extension
Author (truncated)
Version

vscode-intelephense-client
bme
1.7.1

vscode-docker
ms-
1.18.0

python
ms-
2021.11.1422169775

jupyter
ms-
2021.10.100

ansible
red
0.7.1

vscode-yaml
red
1.2.2

jinjahtml
sam
0.16.0

@nicka101, in case this happens in the future, can you please send us the contents of the git output window. Thank you!


indent: multiline TS generic indent is not correctly managed

Validations

[X] Follow our Code of Conduct
[X] Read the Contributing Guide.
[X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.

Describe the bug
With classic @stylistic/indent configuration to 2 spaces, Generics are not correctly managing the multiline indentation
type TGeneric<A, B, C, D> = void;

type TTest = TGeneric<
  string,
  string,
  string,
  string
>;

produce this error
ESLint: Expected indentation of 0 spaces but found 2.(@stylistic/indent)
I can't found any configuration to support this indentation
Reproduction
https://stackblitz.com/github/eslint-stylistic/repro-template?file=src%2Ftest.ts,package.json
Contributes

[ ] I am willing to submit a PR to fix this issue
[ ] I am willing to submit a PR with failing tests

only valid workaround is to add TSTypeParameterInstantiation to ignoredNodes option.
But in this case it accepts any indentation, not only 2

You also need to ignore "TSTypeAnnotation" to catch this case:
function foo(): NonNullable<
  string
> {
  return "";
}

Has been fixed by #256.


[Feature] Add S3DIS dataset for 3D object detection

Close #817.
@Wuziyi616 can you have a look about general structure? Then I can also add unit test and documentation. I'm also attaching visualization from browse_dataset.

I let @THU17cyz have a look here because this may involve our progress of refactoring coordinate system.

@Wuziyi616,

Yes this dataset doesn't have yaw angle.
Moved detection dataset to be above the segmentation one.

I also removed _S3DISDataset in favour of ConcatDataset. This also requires a fmall fix in browse_dataset. Do you think it is ok now?

Great work, many thanks to @filaPro ! Similar to ScanNet det, there is no conflict with our ongoing coordinate system refactor.

Don't quite understand lint problems, so revert yapf: disable back.

Don't quite understand lint problems, so revert yapf: disable back.

This is because sometimes isort and yapf will have different behaviors in formatting some codes. You need to disable one of them to pass the linting check.

Ready to merge after unit tests are added

Also updated test data file for S3DIS.


Use action to change feature visibility

Our Layers component should dispatch an action (via useDispatch) to change the visibility of a feature.
The payload should be the id of the feature plus a boolean flag for visible

Done in #41


Minor visual changes & bugfix

Changed color on forgot password button text

Adjusted size of cafe signup button and centered
page caption

Fixed a bug where not all available cafe shifts
were visible, and one was displayed twice.

I suggest we push new release after this.


Error using angular2-jwt

Hi!
I'm trying to use angular2-jwt in my app but when I try to build the project this error appears. I already have the angular2-jwt in my systemjs.config.js but nothing changes.
Any idea?
Error
λ npm run serve-build

><EMAIL_ADDRESS>serve-build C:\Users\renat\Projects\Angular2\taskr
> gulp serve-build

============ Angular 2 Starter ============
Current environment: development
- Change environment via --env or NODE_ENV
- env.json is detected. 1 values loaded.
===========================================
[19:49:27] Using gulpfile ~\Projects\Angular2\taskr\gulpfile.js
[19:49:27] Starting 'build'...
[19:49:27] Starting 'clean-report'...
[19:49:27] Starting 'clean-ts'...
[19:49:27] Starting 'env'...
[19:49:27] Finished 'clean-report' after 20 ms
[19:49:27] src/app/shared/constant/env.ts is generated successfully
[19:49:27] Finished 'env' after 49 ms
[19:49:27] Finished 'clean-ts' after 59 ms
[19:49:27] Starting 'tsc'...
[19:49:33] Finished 'tsc' after 5.66 s
[19:49:33] Starting 'unit-test'...
31 08 2016 19:49:35.965:INFO [karma]: Karma v1.1.2 server started at http://localhost:9876/
31 08 2016 19:49:35.967:INFO [launcher]: Launching browser PhantomJS with unlimited concurrency
31 08 2016 19:49:35.976:INFO [launcher]: Starting browser PhantomJS
31 08 2016 19:49:37.725:INFO [PhantomJS 2.1.1 (Windows 8 0.0.0)]: Connected on socket /#VjPchZYUFPlpL5YUAAAA with id 96470933
31 08 2016 19:49:44.083:WARN [web-server]: 404: /base/node_modules/angular2-jwt/angular2-jwt.js
PhantomJS 2.1.1 (Windows 8 0.0.0) ERROR
Error: (SystemJS) XHR error (404 Not Found) loading http://localhost:9876/node_modules/angular2-jwt/angular2-jwt.js
Error loading http://localhost:9876/node_modules/angular2-jwt/angular2-jwt.js as "angular2-jwt/angular2-jwt" from http://localhost:9876/src/tmp/app/common/auth-guard.common.js

systemjs.conf.js
(function(global) {
    // ENV
    global.ENV = global.ENV || 'development';

    // map tells the System loader where to look for things
    var map = {
        'app': 'src/tmp/app',
        'test': 'src/tmp/test',
        'angular2-in-memory-web-api': 'node_modules/angular2-in-memory-web-api',
        'angular2-jwt': 'node_modules/angular2-jwt',
    };

    // packages tells the System loader how to load when no filename and/or no extension
    var packages = {
        'app': {
            defaultExtension: 'js'
        },
        'test': {
            defaultExtension: 'js'
        },
        'rxjs': {
            defaultExtension: 'js'
        },
        'angular2-jwt': {
            defaultExtension: 'js'
        },
        'angular2-in-memory-web-api': {
            main: 'index.js',
            defaultExtension: 'js'
        },
    };

    // List npm packages here
    var npmPackages = [
        '@angular',
        'rxjs',
        'lodash'
    ];

    // Add package entries for packages that expose barrels using index.js
    var packageNames = [
        // App barrels
        'app/shared',

        // 3rd party barrels
        'lodash',
    ];

    // Add package entries for angular packages
    var ngPackageNames = [
        'common',
        'compiler',
        'core',
        'forms',
        'http',
        'platform-browser',
        'platform-browser-dynamic',
        'router'
    ];

    npmPackages.forEach(function (pkgName) {
        map[pkgName] = 'node_modules/' + pkgName;
    });

    packageNames.forEach(function(pkgName) {
        packages[pkgName] = { main: 'index.js', defaultExtension: 'js' };
    });

    ngPackageNames.forEach(function(pkgName) {
        var main = global.ENV === 'testing' ? 'index.js' :
            'bundles/' + pkgName + '.umd.js';

        packages['@angular/'+pkgName] = { main: main, defaultExtension: 'js' };
    });

    var config = {
        map: map,
        packages: packages
    };

    // filterSystemConfig - index.html's chance to modify config before we register it.
    if (global.filterSystemConfig) { global.filterSystemConfig(config); }

    System.config(config);

})(this);

add 'angular2-jwt' to npmPackages
map isn't needed for

'angular2-in-memory-web-api': 'node_modules/angular2-in-memory-web-api',
'angular2-jwt': 'node_modules/angular2-jwt'
because it'll registered via npmPackages array

try on serve-dev too

Ok. I did what you suggested.
Now serve-dev is working fine but serve-build still get the same error.

seems weird, it should work if it worked in dev because the bundling requires the same systemjs config file.
Maybe you can try some older systemjs version

also a reproducable will be helpful here 😃

Oh I know the main issue, please add your angular2-jwt in:
https://github.com/antonybudianto/angular2-starter/blob/master/config/test/karma.conf.js#L7
because karma need to know which files to be added during test and I can't glob them all because the memory won't be enough


KeyboardFuzzer isn't fuzzing miscellaneous key events

I think when we switched from using Event.key to Event.code the dispatch in KeyboardFuzzer was missed.
  triggerDOMEvent( event, element, key ) {
    const eventObj = new KeyboardEvent( event, {
      bubbles: true,
      key: key,
      shiftKey: globalKeyStateTracker.shiftKeyDown,
      altKey: globalKeyStateTracker.altKeyDown,
      ctrlKey: globalKeyStateTracker.ctrlKeyDown
    } );

    element.dispatchEvent( eventObj );
  }

That key needs to be code. When I switch it I see a huge improvement in the fuzz testing and I see pan/zoom getting tested along with keyboard dragging and other things. I think we have been only testing tab/click since we switched to event.code.

Changed in the above commit, fizzing is better and still seems to be passing locally. @zepumph FYI, but closing.


Image not found when it already exists

I'm getting the error League \ Glide \ Http \ NotFoundException  Could not find the image. But I checked it already exists. For example:
The error says this: Could not find the image 'C:\Users\David\www\canae\public/uploads/pages/red.jpg'.
But if I paste that link into the browser, I get the image:

Here's the configuration of Glide in Laravel 5 Service provider:
    $this->app->singleton('League\Glide\Server', function ($app) {
        $filesystem = $app->make('Illuminate\Contracts\Filesystem\Filesystem');

            return \League\Glide\ServerFactory::create([
                'source' => $filesystem->getDriver(),
                'cache' => $filesystem->getDriver(),
                'source_path_prefix' => public_path().'/uploads',
                'cache_path_prefix' => public_path().'/uploads/.cache'
            ]);
        });

Any idea what I'm doing wrong?

I wonder if this has something to do with windows. Are you able to just try Flysystem on it's own to see if the file exists? For example, something like this:
use League\Flysystem\Filesystem;
use League\Flysystem\Adapter\Local as Adapter;

$filesystem = new Filesystem(new Adapter('/path/to/your/files'));

var_dump($filesystem->has('your_file.jpg'));

If that works, then it's a problem with Glide not creating paths properly. Unfortunately I don't have a windows system handy to test this on, so your help would be much appreciated!

Thanks for your reply Jonathan,
Of course I will do what you say as soon as I get home, I really like this
package and want it working :)
Your help is also much appreciated for me.
El dc., 11 març, 2015 a les 16:27, Jonathan Reinink (<
<EMAIL_ADDRESS>va escriure:

I wonder if this has something to do with windows. Are you able to just
try Flysystem on it's own to see if the file exists? For example, something
like this:
use League\Flysystem\Filesystem;use League\Flysystem\Adapter\Local as Adapter;$filesystem = new Filesystem(new Adapter('/path/to/your/files'));var_dump($filesystem->has('your_file.jpg'));
If that works, then it's a problem with Glide not creating paths properly.
Unfortunately I don't have a windows system handy to test this on, so your
help would be much appreciated!
—
Reply to this email directly or view it on GitHub
https://github.com/thephpleague/glide/issues/44#issuecomment-78285709.

@reinink I tried the code you show to me and it returns true, the Flysystem, so Windows files aren't the problem I think.
This is the whole error page, I hope it can help you to help me.
Tell me if you need more information or more tests to do or wathever.

I tried with the default configuration provided in this video and it works as expected:
https://vimeo.com/118089742
So I guess the problem is mine, with the configuration to find files in a different folder. But don't idea how to configure that...

@Lloople Just looking at your screenshot, Windows uses \ and it's swapping to / half way through the path of the image. Try adjusting your reference to the image to use \ all the way.

Okay, just having another look at this.
You say the source image is at C:\Users\David\www\canae\public/uploads/pages/red.jpg. I wonder if your server is configured correctly. The source_path_prefix is ADDED to whatever your base Filesystem path is, which is defined in config/filesystems.php. So that's most likely the problem.
By default Laravel sets your local filesystem path to the storage folder via storage_path('app'). So, if you work out what you've done here, you'll end up with a final path something like:
C:\Users\David\www\canae\storage\app\C:\Users\David\www\canae\storage\uploads

That's clearly wrong.
You have a couple options. One, you could update your cache\filesystem.php config to use your public directory instead. However, I don't recommend that. You're better off using the storage folder. Which means you need to put your source images in the /storage/app/uploads folder. Then you have to update your server configuration like this:
$this->app->singleton('League\Glide\Server', function ($app) {
    $filesystem = $app->make('Illuminate\Contracts\Filesystem\Filesystem');

    return \League\Glide\ServerFactory::create([
        'source' => $filesystem->getDriver(),
        'cache' => $filesystem->getDriver(),
        'source_path_prefix' => '/uploads',
        'cache_path_prefix' => '/uploads/.cache'
    ]);
});

That should solve your issues! Let me know if you have further trouble.

Problem is in Library, *.jpg extension not supported


Add subchannel blockage test Refs #293

This Pr resolves issue #293
THORS bundle 5B has the same fuel configuration as bundle 2B, except that 0.0711-cm-diam wire-wrap spacers are used to separate the peripheral pins from the duct wall. The half-size spacers are used to reduce the flow in the peripheral flow channels and to cause a flatter radial temperature profile across the bundle. It also means that the flat-to-flat distance is reduced appropiately. The pins have a heated length of  45.7cm. A 0.3175-cm-thick stainless steel blockage plate is located
10.2cm above the start of the heated zone to block 14 edge and internal channels along the duct wall.
further information for these validation tests can be found at : https://subchannel-dev.hpc.inl.gov/site/v&v/thors.html

Job VTB Documentation on 8977d80 wanted to post the following:
View the site here
This comment will be updated on new commits.

looks good


Cosmetic fixes for app menu

Description
This PR removes the white artifact in the bottom left corner of menus and corrects misaligned menu items.
Screenshots

Checklist:

[x] My pull request is properly named
[x] The changes respect the code style of the project ($ npm run lint)
[x] I tested/previewed my changes locally

@all-contributors please add @stnkl for code


[Feature]: CurseForge mark on BetterF3 compitable with 1.19.2

Describe the Request
Hello, please put a note on CurseForge that it is compatible with 1.19.2, I need it for the modpack.
Screenshots
No response
Modloader Type
No response
Modloader Version
No response
Additional Context
No response

Fixed


Editable ability can not be disabled?

I create simple calendar instance, I want only viewing events, not editing.
editable: false option does nothing. My event on calendar still can be dragged between days and resized.
Should this option disable this abilities? Or how can i make read-only mode for calendar. Thanks!
Here is simple example.
https://codepen.io/dimakovalevskyi/pen/ZEqKRjd

Really it works! Thank you a lot!

Please update this information in the main documentation.

Please update this information in the main documentation.

Please explain how exactly the documentation can be improved.


Autoscroll for pages

Hi there,
is it possible to set an auto scroll for pageflow pages ? I mean scrolling to next screen after for example  10 seconds ? You provide going to a next page when video ends so why not for other type of pages ?

Hi,
there is no such feature at the moment. For videos there is a well defined moment when the video ends and it is save to go to the next page. For all other pages, I see no way how to be sure the user has actually finished reading or looking at the content.

Ok, thank you for the answer


Torsion angles detection fix

Rewritten the function for automatically finding rotatable torsion angles in a molecule. In the new implementation double bonds are considered non-rotatable (as they should be according to chemical rules). Also, torsion angles tuples (atom1, atom2, atom3, atom4), are structured such that

atom2 < atom3
atom1 and atom4 are minimal among the neighbours of atom2 and atom3 correspondingly

is there a particular reason to enforce the ordering you are enforcing?

It is just for clarity and for avoiding ambiguity, so for every molecule we have a clear deterministic way to define the torsion angles. But no chemical reason to do it specifically this way

do you know why in the original implementation they actually used double bonds, and if it was actually only for the C=C (as they commented), or all of the possible double bonds?

I don't know what the authors of the original implementation had in mind, maybe they considered together cis-trans isomers ("conformers"  which are different in the positions of the parts of the molecule wrt double bond) and conformers, but in our case the cis-trans isomerism is clearly defined in the input SMILES string and should not be changed (i.e. double bond are not rotatable)


[release] Prepare for release Linkis-1.0.1

What is the purpose of the change
Linkis-1.0.1 includes all of Project Linkis 1.0.1.
This release mainly fixes performance bugs in high concurrency scenarios, optimizes the resource management module, and optimizes the Spark engine to support the use of Fate, and fixes multiple discovered bugs.
Abbreviations:
CGS: Computation Governance Services
PES: Public Enhancement Services
MGS: Microservice Governance Services
Brief change log
Enhancement

Linkis-906 [Commons] HTTPClient supports setting contentType when uploading files.
Linkis-897 [Commons] HttpClient supports Response whose content is empty.
Linkis-877 [Commons] HDFS FileSystem object supports caching.
Linkis-862 [Commons] Optimize ShutdownHook to be compatible with windows operating system.
Linkis-869 [CGS-Entrance] Optimize task submission record client IP for link analysis.
Linkis-848 [CGS-LimkisMnagager] The tenant label of ECM should be retained to facilitate the restart.
Linkis-863 [CGS-EnginePlugin-Spark] Spark EngineConn startup parameters support the setting of native parameters to support the use of Fate, such as setting the python version.
Linkis-889 [CGS-Orchestrator] ioClient supports isolating a separate Orchestrator.
Linkis-880 [PES-JobHistory] JobHistory supports recording the original code of the task submitted by the user.
Linkis-879 [PES-InstanceLabel] InstanceLabel module support to modify and remove instance label information.
Linkis-864 [PES-ErrorCode] Optimize the initialization sql of the error code, remove the default value of the ID field.
Linkis-872 [PES-Configuration] Management console configuration supports real-time modification of cached values.
Linkis-844 [PES-Configuration] The management console supports setting memory unit, the default unit is GB.

Bugs Fix

Linkis-900 [Commons] Logging is recommended to be optimized, because the user may pass in Null and thus cause an exception.
Linkis-851 [Commons] The version of the jackson-core-asl package is incorrect after linkis1.0 is compiled with the CDH version.
Linkis-847 [CGS-Entrance] When a task contains thousands of SQL, the execution may not be correct.
Linkis-842 [CGS-Entrance] Task execution fails when the sql limit setting is greater than 5000.
Linkis-841 [CGS-Entrance] Log is not fully recorded in the stress test of 10,000 tasks.
Linkis-840 [CGS-Entrance] During the stress test of 10,000 tasks, the task status is in the Inited/Running/Scheduled status and no longer updated.
Linkis-846 [CGS-LinkisMnaager] When the parameter of the number of engine is set to 2 in management console, however, 18 engines is started when schedulis is scheduling.
Linkis-845 [CGS-LinkisMnaager] The value of concurrent label may be null in ECM management .
Linkis-843 [CGS-EnginePlugin-Hive] When killing a complex hive task, Hive MR of Yarn is not simultaneously killed.
Linkis-896 [PES-UDF] UDFClient has a bug that can only get UDF but cannot get method functions.
Linkis-873 [PES-BML] Optimize the execution order of the BML EngineConnHook to fix the bug of not being able to read resource files.
Linkis-850 [PES-Configuration] Failed to save IDE-JDBC parameter configuration in Linkis1.0  management console.

Verifying this change
(Please pick either of the following options)
This change is already covered by existing tests.
Does this pull request potentially affect one of the following parts:

Dependencies (does it add or upgrade a dependency): (no)
Anything that affects deployment: (no)
The MGS(Microservice Governance Services), i.e., Spring Cloud Gateway, OpenFeign, Eureka.: (no)

Documentation

Does this pull request introduce a new feature? (no)
If yes, how is the feature documented? (not applicable)

+1

+1

+1

+1

Thanks for reviewing and voting for Linkis 1.0.1 release, I am happy to announce the release voting has passed with 6 +1 votes, no +0 or -1 votes.

+1

+1


luci-app-firewall: only allow one flow offloading option

Either software or hardware flow offloading can be used at a time. Reflect this on the firewall section of LuCI.
Signed-off-by: Arınç ÜNAL<EMAIL_ADDRESS>

This contradicts the firewall3 implementation:
https://git.openwrt.org/?p=project/firewall3.git;a=blob;f=defaults.c;h=8a9a9295f00500ca7ba655de111acc643d41b214;hb=4cd7d4f36bea731bf901cb067456f1d460294926#l258
And the firewall4 implementation:
https://git.openwrt.org/?p=project/firewall4.git;a=blob;f=root/usr/share/ucode/fw4.uc;h=2a1e397c2e84c9437319232760c528c36dd3e148;hb=3db474135c62d1eeea7a80dd151d53d94005f1d5#l460
On either variant, the flow_offloading_hw option has no effect without flow_offloading being enabled.

The implementation on firewall3 and firewall4 is different than what I originally thought it would be (set an nft/iptables rule, disable flow_offloading if flow_offloading_hw was enabled). Instead the check for flow_offloading_hw works after enabling flow_offloading.

Furthermore your change introduces a circular option dependency.

I initially wanted to turn this into a drop list but figured we'd need to keep the section IDs. It doesn't matter now anyway.
Thanks for pointing this out Jo.

I've read a bit the LuCI JS APIs, I don't think I can pull this off. It gets more complex than what I can currently manage.
If you find time to do this yourself something like this should fit it, with slight changes on the strings for better clarification.
Flow Offloading
Experimental feature. Not fully compatible with QoS/SQM.
	Offloading type <Dropdown List>
			Disabled
			Software offloading
				Software based offloading for routing with/without NAT.
			Hardware offloading
				Requires the hardware to support it. Implemented at least for MT7621.

Like here:

@jow- I'm taking another shot at this now that ChatGPT is here. I don't think I can reopen the pull request so could you review this?
https://github.com/arinc9/luci/commit/87114333daadfc33fd985eb2ecd56b6bc77c8fd6
I just copy pasted the cbiRichListValue class from interfaces.js. Let me know how would I properly import it.
Choosing the offloading type actually sets the correct options via uci.set. But it resets to "None" after pressing save or reloading the page. I did try some things but it won't work on its current form.
It currently looks like this, there's an empty option there I couldn't get rid of:

Ok everything works with https://github.com/arinc9/luci/commit/3e6cc13445170cd382546b1ce10a4c0141da7571.
I still couldn't figure out how to stop the empty o.value('') from appearing. If I set the value of None to '', choosing None won't do anything.
@jow- looking forward to your suggestions.

When you instantiate the ui.Dropdown() widget, you pass optional: true. Since the choice list you supply does not contain any option with value "", the dropdown implementation adds one automatically, that's the empty one you see.
It should be gone once you remove the optional: true in your code.

Got it, thanks a lot. I'll open a new pull request.


Add title and onLoad attributes

As the title says, this PR introduces the mandatory iframe "title" attribute, and enables passing onLoad even handler.

Thanks for your contribution! Just the two nitpicks and it'll be great :)

Thank YOU for the prompt response and for initiating an effort to have RNW friendly modules! I'm pushing requested changes asap.

Ready for review.


cppbuild failes tests when building docker container targeting ubuntu 22.04

Hi,
I am trying to build docker container from latest version of aeron repo and I am getting few failed tests.
`
585.7 The following tests FAILED:
585.7 	 91 - rejectImageTestW (Failed)
585.7 	102 - udp_channel_test (Failed)
585.7 	116 - name_resolver_test (SEGFAULT)
585.7 	124 - c_local_addresses_test (Failed)
585.7 Errors while running CTest
`
Here is the Dockerfile I use to do it
`
ARG VERSION="22.04"
FROM ubuntu:${VERSION} as builder
RUN apt-get update && apt-get install -y
gcc
g++
make
tar
zlib1g-dev
libbsd-dev
uuid-dev
curl
gnupg
ca-certificates
git
doxygen
python3
RUN curl -s https://repos.azul.com/azul-repo.key | gpg --dearmor -o /usr/share/keyrings/azul.gpg &&
echo "deb [signed-by=/usr/share/keyrings/azul.gpg] https://repos.azul.com/zulu/deb stable main" | tee /etc/apt/sources.list.d/zulu.list &&
apt-get update && apt-get install -y zulu17-jdk
ENV JAVA_HOME=/usr/lib/jvm/zulu17
BUILD_JAVA_HOME=/usr/lib/jvm/zulu17
BUILD_JAVA_VERSION=17
GRADLE_OPTS="-Dorg.gradle.daemon=false -Dorg.gradle.java.installations.auto-detect=false -Dorg.gradle.warning.mode=fail"
RUN git clone https://github.com/real-logic/aeron.git /opt/aeron
WORKDIR /opt/aeron
FROM builder as essentials-build
RUN cppbuild/cppbuild --c-warnings-as-errors --cxx-warnings-as-errors --package
FROM scratch AS essentials-artifacts
COPY --from=essentials-build /opt/aeron/cppbuild/Release/*.tar.gz /
`
command to run it is
docker build cppbuild/ubuntu --shm-size=256m
note that I have increase the shm size 245MB since witht he default more test were failing indicating low storage issue.
Attached is the output showing the error in details.
docker-build-test-failing.log

Hi Rafal,
The failing tests are tests that bind to ipv6 localhost (::1). The default behavior for docker is to enable ipv6 loopback except if the kernel does not have ipv6 support or ipv6 is disabled. https://github.com/moby/moby/pull/47062.
If for some reason ipv6 is disabled for new namespaces only, you can use --network host (as argument to docker build or RUN in dockerfile) to use your host's network namespace, if ipv6 is enabled on your host.
Alternatively, you can just skip tests with the flag --no-unit-tests as an argument to the cppbuild script.
We typically run docker build with 1G of shm size.

thank you! will try this out


feat: restructured witnesses (50/100, en) translating testimonies again (8/50)

Current dependencies on/for this PR:

main

PR #56   👈

This stack of pull requests is managed by Graphite.


⚠ Fortnite has degraded performance

In 02c62b7, Fortnite (https://fortnite.com) experienced degraded performance:

HTTP code: 200
Response time: 1525 ms

Resolved: Fortnite performance has improved in 324d0dd.


Investigate benefits of a vector-by-docid bucket

Background
When building the vector cache prefiller I noticed that pre-filling the vector cache for an index with "large" objects such as arXiv Papers takes considerably longer than pre-filling the arXiv Authors index - even though there are about 3x as many Authors as there are Papers.
The vectors have a fixed dimension so there is absolutely no reason why loading vectors of "thin" objects should be faster than loading vectors of "fat" object. So my assumption is that has to do with the fact that we store the vector with the whole object and iterating through the whole object bucket is more expensive when the objects are larger.
I think there are at least two possible remedies we should investigate:

Are we parsing/unmarshalling too much data when all we care about is the vector. Maybe the process could be sped up by making sure we only read exactly what we need?
Would be benefit from a separate vector by doc id bucket? In theory this should safe the docid->uuid lookup and the bucket that we read would be much smaller.

Keep open as possible performance improvement in imports

This will become obsolete if we go with the approach outlined in #1523. There we can simply add a secondary index for the docid and we'll basically get this for free.


Review and polish inline docs for zos-cli

Inherited from https://github.com/zeppelinos/labs/issues/114, which now only addresses zos-lib.

Closing in favour of https://github.com/zeppelinos/zos-cli/issues/219


Added 'py-generic-project'

See also #283

Hi @jhermann!
Can you please rebase this PR? Thanks :bow:

:bell:


Added XS65E015 as it conflicts with XS65ESP1

Added XS65E015 to exclusion list as it conflicts with XS65ESP1

Excellent, thanks for the pull!


Error encountered: Unknown layer type encountered: PReLU

How can I fix this error

Hi,did you slove it correctly?

+1

@esdgdhln, do you solve it ?

I'm also keen to understand how this was resolved


github-commits: Add HUBOT_GITIO and HUBOT_COMMIT_ONELINE

Details and motivation in the commit messages.

We are actually moving away from adding scripts to repository in favor of separate npm packages per scripts. We have already stopped accepting new scripts, and will stop accepting pull requests on this repository after hubot 3.0.
See #1113 for details. If you are interested in maintaining this longer term, check npm in case someone already made a package for it, and if not, check out https://hubot.github.com/docs/scripting/ for creating a package of your own.
cc @nesQuick @spajus @adomokos @hashashin @christhomson @wking @canadianveggie as previous contributors to this script.
Also, a quick npm search shows a number of scripts that might fill a similar role: https://www.npmjs.com/search?q=hubot+github