Enable lazy loading to improve website performance

Lazy loading is a technique that can be used to improve the performance of a website by delaying the loading of images and other resources until they are needed. This can help to reduce the initial load time of a page, which can improve the user experience and make the website more responsive.
The benefits of lazy loading include:

Reduced initial load time

Improved user experience

More responsive website

Increased SEO ranking

Hey @thekavikumar It seems the that he is not active. It's been 1 month now. Can you assign me this issue, please?

Hey, @thekavikumar Lazy loading can not be implemented in your website because right now your website is not completed. There are only components present in the repository. Please remind me once the website is completed. Thank you and sorry for the inconvenience.


Release 1.6.0

[x] Make a new release branch (for example named prepare-X.Y.Z)
[x] Make sure you do not have any package.lock.json or yarn.lock locally, since they can potentially make you build with the wrong package versions
[x] Update the changelog since last release and commit to the release branch
[x] Write a blog post about the new release and put in /docs/_posts and commit to the release branch
[ ] Bump version number in package.json and commit to master
[ ] Run npm run release
[ ] Verify that the release was correctly published to NPM by checking:

[ ] Leaflet NPM package page
[ ] files on Leaflet unpkg page

[x] Update API docs:

[x] run npm run docs
[x] Copy the built docs from dist/reference-X.Y.Z.html to docs/reference-X.Y.Z.html, remove content before first and after second "CUT HERE" comment
[x] Insert YAML front matter, see old docs/reference-X.Y.Z.html for reference
[x] Commit the new docs to the release branch

[x] Update docs/reference.html to redirect to the new version and commit the change to the release branch
[ ] Update integrity hashes:

[ ] Checkout the release tag (git checkout vX.Y.Z)
[ ] Run npm run integrity or simply node ./build/integrity.js if you're not on Debian
[ ] Copy the hashes and update integrity_hash_css, integrity_hash_source and integrity_hash_uglified in docs/_config.yml; commit changes to the release branch

[x] Update link to latest release in docs/download.html, and commit to the release branch
[x] Add link to new version reference in docs/reference-versions.html, and commit to the release branch
[x] Update latest_leaflet_version (and possibly latest_leaflet_reference) in docs/_config.yml and commit to the release branch
[x] Update the announcement section in docs/index.html and commit to the release branch
[ ] If it looks like everything is good at this point, merge the release branch into master
[ ] Make a new release on Leaflet's GitHub release page with the most important parts of the changelog

Thanks so much for doing the release, this is awesome!


Is Socket's onOpen() callback called on successful Socket connection?

Or is it only called on initializing / attempting a Socket connection?

It is triggered by the web socket implementation onConnected
http://takahikokawasaki.github.io/nv-websocket-client/com/neovisionaries/ws/client/WebSocketListener.html#onConnected-com.neovisionaries.ws.client.WebSocket-java.util.Map-
It should be triggered only on success, but I have not tested all possible failures.


Warn user if the pre-commit hook is not the latest version

Have the pre-commit hook check that it is the same as the one at tools/pre-commit. If it isn't, tell the user to run the setup.cmd and abort.

Good idea.

Also need to do the same thing for ${base_dir}/.git/hooks/pre-commit-serializer.

In PR #1012 I've undone this change and the serializer pre-commit is now left in place; the problem was solved in another way. So you don't have to do the check for latest version on the serializer pre-commit.


Cherik - Shop District - 13925_36.txt Merchant Crash

did not crash in storypatch 00134

Fixed! Will release in next patch.


WIP: [all] Update typescript

Based on #4681
This updates TypeScript to 5.5.
The ElementInternals interface was updated in typescript's lib.dom.d.ts, which required a couple of changes to our SSR DOM shim and revealed a typo in our interface properties.
There's currently a build error due to dependencies of lit-html not finding the definition for TrustedHTML that's in lit-html's public interface. I'm not sure yet if there's a new check in TypeScript, or if a change in the .d.ts emit has caused a type import or reference to @types/trusted-types to be omitted. Adding skipLibCheck to dependents of lit-html fixes the problem, but we don't want to require that our dependents do that.

Looks like lit-html.d.ts is now missing this line:
/// <reference types="trusted-types" />

That was automatically put there by the typescript compiler, so I'm not sure if we have to manually add it, or if there's a compiler setting that needs to be enabled now.

Interesting that Rollup update, plus this TypeScript update, add 140 bytes to lit-core.min.js in total, meaning that this one reduces the bundle size by 91 bytes.

Looks like we can now import the trusted types… types with something like:
import type {...} from '@types/trusted-types/lib';

(or maybe it's from 'trusted-types/lib'?)

this one reduces the bundle size by 91 bytes.

That's pretty surprising!

this one reduces the bundle size by 91 bytes.

That's pretty surprising!

I know! Maybe there's a better emit for nullish coalescing or optional chaining?

this one reduces the bundle size by 91 bytes.

That's pretty surprising!

I know! Maybe there's a better emit for nullish coalescing or optional chaining?

Hmm. Somehow in a rebase against update-rollup the 91 bytes came back. Looking into it.

Oh, looking back I think this PR had accidentally reverted some of the Rollup updates.

In the process of updating TypeScript, and therefore some other dependencies in our wrapper generators, I hit a snag that makes me think we need to stop renaming vue-tsc output files: https://github.com/lit/lit/issues/4686
It'd be ideal for that to be a separate PR, but I can just add it here to get the update done.

hello


Slight regex improvement in loaders

I would like to replace the tests in react-scripts module loaders /\.(js|jsx)$/ with /\.jsx?$/
It is faster to match and less code.

Can you provide some measurement of the speed increase done by doing this?
Feel free to submit a pull request. 😄

I'm fairly confident this speed difference won't be noticeable since we're doing a lot more expensive things than these regexes during compilation.
We wrote it this way intentionally because people often didn't understand what x? means.
Thanks for suggestion though! If you can demonstrate this is a strong perf win, happy to take it.

I suppose this may not be the best evidence since it runs in the browser. It suggests ~6% faster.
https://jsperf.com/regex-or-vs-optional.
One of the criticisms that I hear of this tool is the slow start time on the start script. It is a small optimization, but it slightly addresses this issue.
On the other note. ? is already in use in the same file jpe?g. So if you don't think that people should need to understand the regex syntax, I would like to change my request to remove jpe?g and replace it with jpeg|jpg.
It also technically reduces the symbol complexity of the file seeing that it is the only use of the | character in that file.
But whatever. Just trying to help.

Microbenchmarks are often misleading. It may be 6% faster by itself, but in the context of a regular build, we may be talking about 0.001% of actual time spent. So if that's the case, it's not worth it.
I did not measure this, just trying to convey why I'm not confident it's worth doing. I would definitely merge this if you can show that it affects overall build time size or init time in a meaningful way. This is not obvious to me yet.
Yes, I'd be okay replacing jpe?g with the same thing for consistency. In my experience it matters more for JSX because people look at this filter more often (since it affects all the code).


Cleanup AppCheckCore alpha releases

Cleaned up the AppCheckCore alpha releases since 10.18.0 is now pushed to CocoaPods trunk: https://github.com/CocoaPods/Specs/blob/master/Specs/3/b/6/AppCheckCore/10.18.0/AppCheckCore.podspec.json

cc @mdmathias: Just in case we missed any SpecsDev references in https://github.com/google/GoogleSignIn-iOS/pull/350.


How to auto deploy on push to repo?

Q
A

Issue Type
Question

Deployer Version
N/A

Local Machine OS
N/A

Remote Machine OS
N/A

Description
How to make to deploy on push to repository (bitbucket, github, gitlab)?
I cand find any docs for that.
Thanks

Soon I’ll publish new service for it – Deployer CI

@antonmedv great hear))
is there an approximate publication time?

No, but i hope soon

Any news on this? @antonmedv :)

Soon will be public beta, stay tuned. :)

Can't wait to take part in this beta!
Any news @antonmedv :) ?

Actuallly I'm working on dep web command which will open web-page with deploy buttons!!


On Mobile: No way to see or join  unjoined channels of a group

Describe the bug, optionally with screenshots

Be on mobile
Be in a group
Try to see what other (unjoined) channels exist in the group

Dupe of #1266


Less is more

The "more" button on the front page only leads down to content the user can already see. It should be removed

Button commented out on ben branch


Even Unauthenticated user can see static contents of the page

Consider this usecase:
Page "A" should be accessed by an authenticated user. Page "A" has some static contents and some dynamic contents (which will come from backend-server). When a user navigates to page "A", the static contents appear immediately and when request is sent to load dynamic contents, the server may reply with 401 and hence login screen will be shown.
So the side effect is even an unauthenticated user sees the static content of the page which is not desired.
I think both authentication and authorization problems can be solved by listening to stateChange events and there checking for authorization and authentication.

If I got you right this isn't a client but a server issue. Content security should never be handled on the client, because an attacker could easily bypass that.
=> you should change your server to reply with a 401 error instead of serving the static content, hence causing angular to react to the 401 immediately

By static contents, i mean the ones present at client side. Example: Labels etc.
So this isnt a server side issue..

@CatchSandeepVaid resolve your data needs already at routes to prevent Controller loading before you've got the data: https://github.com/johnpapa/angular-styleguide#route-resolve-promises
And possibly implement user rights separately from backend for the client, but don't rely on it for security, as @Aides359 already said.

My solution to this issue was to create a custom directive which hides everything behind some "please wait" spinner. This directive was also listening for events with some name, like:
<div hide-until-ready="customer-data">
 .... the entire form
</div>

Now, inside the CustomerDataCtrl, when everything is fetched from server and all possible other promises are finally resolved, I publish the "customer-data" event and the spinner disappears showing everything including data loaded from server.
Simple and worked very well.

.config(['$httpProvider', function ($httpProvider) {             $httpProvider.interceptors.push(['$rootScope', '$q', 'httpBuffer', function ($rootScope, $q, httpBuffer) {                 return {                     responseError: function (rejection) {                         var config = rejection.config || {};                         if (!config.ignoreAuthModule) {                             switch (rejection.status) {                                 case 401:                                     var deferred = $q.defer();                                     var bufferLength = httpBuffer.append(config, deferred);                                     if (bufferLength)                                         $rootScope.$broadcast('event:auth-loginRequired', rejection);                                     return deferred.promise;                                 case 403:                                     $rootScope.$broadcast('event:auth-forbidden', rejection);                                     break;                             }                         }                         // otherwise, default behaviour                         return $q.reject(rejection);                     }                 };             }]);         }]);
change in line #62 http-auth-interceptor.js
from
 if (bufferLength === 1)
to
 if (bufferLength)
so ever response with 401, modal login can opem
@CatchSandeepVaid


Fixing minor bug in install from new version of Cordova

This pull request is now managed with CodeReviewHub. Refresh.


Calendar View Extension Control

@robinkuck

There are some paths to .js files missing in Calendar.page. Also the Caption doesn't appear while running the app in Android client
Rename "metadata" folder to same as it's root folder name: CalendarViewExtensionApp just to consistent with other showcase apps the repository
Rename "extension-CalendarControl" to e.g. "CalendarControl"
(this folder is already under Extensions so i think there is no need to explictly add extension prefix)
Optional - can you add a calendar image to metadata Images folder and bind it to the "Display" property in CalendarControl.extension?
When you open Calendar.page in layout editor, the bound image would appear instead of showing MDK logo image. (you can check how i have done in sliders/maps extension tutorials)
in README, can you move the Screenshot / gif under "Screenshots" section? Refer any available showase app>README
Add a note (maybe in Key highlights section) about data (SalesOrders) might not be there for other dates
Can we use below properties in ObjectCell instead? It has formatters, CurrencyCode to an amount etc.

"Title": "Order Date: $(D,{CreatedAt},'','',{format:'medium'})",
"Footnote": "{SalesOrderId}",
"StatusText": "{LifeCycleStatusName}",
"SubstatusText": "$(C,{GrossAmount},{CurrencyCode},'',{minimumIntegerDigits:1,minimumFractionDigits:2,maximumFractionDigits:2,useGrouping:true})",


Flaky Test Fix

The test RequesterTest invokes Requester Class, which is implemented using HashMap. However, the order in which entries are returned when iterating a HashMap is not guaranteed to be the same. This makes the assertions with fixed indices flaky i.e. they become non-deterministic (the order in which the elements are inserted is not preserved, hence the assertion fails sometimes). Using LinkedHashMap instead helps fix this flakiness, because the order in which the elements are inserted is preserved.
I found and confirmed the flaky behavior using an open-source research tool NonDex, which shuffles implementations of nondeterminism operations.
This PR fixes the problem using a LinkedHashMap to store the order of the parameters as they are inserted.
You can run the following command to reproduce assertion failures and verify the fix:
mvn -pl manifold-deps-parent/manifold-json-test edu.illinois:nondex-maven-plugin:2.1.1:nondex -Dtest=manifold.api.json.RequesterTest#httpGetRequestWithParams |& tee nondex-test-$(date +%s).log

These lines invoke the Requester class
https://github.com/harshith2000/manifold/blob/4f8d5c73cf0e2999d811f80a2101dc3723b273f5/manifold-deps-parent/manifold-json-test/src/test/java/manifold/api/json/RequesterTest.java#L56
The HashMap is initialized here
https://github.com/harshith2000/manifold/blob/4f8d5c73cf0e2999d811f80a2101dc3723b273f5/manifold-deps-parent/manifold-json-rt/src/main/java/manifold/json/rt/api/Requester.java#L164
The assertion checks happen here
https://github.com/harshith2000/manifold/blob/4f8d5c73cf0e2999d811f80a2101dc3723b273f5/manifold-deps-parent/manifold-json-test/src/test/java/manifold/api/json/RequesterTest.java#L70
Please let me know if you have any concerns or questions.

The fix seems good. The code clearly mentioned where the issue lies and the actions necessary for the fix!

The fix looks good to me! The description clearly talks about the cause of the flakiness and the fix for the same.


Fix emacs binding for toggling org-tree-slide-mode

org-tree-slide-mode toggling binding was calling a non-existing (obsolete?) function.
It now call org-tree-slide-mode as evil bindings does.

Thanks!


Bug in adaptive threshold.

Thank you for your wonderful work, but it seems there is a little bug in the adaptive threshold estimation:
From the paper, we know  "Thus, we choose to scale the translational threshold for new keyframes according to the “spaciousness” in the instantaneous point cloud scan, defined as $m_k = α m_{k−1} + β M_k$, where M_k is the median Euclidean point distance from the origin to each point in the preprocessed point cloud, α = 0.95, β = 0.05,". However, the code in odom.cc for calculation "spaciousness" is:
  std::nth_element(ds.begin(), ds.begin() + ds.size()/2, ds.end());
  float median_curr = ds[ds.size()/2];
  static float median_prev = median_curr;
  float median_lpf = 0.95*median_prev + 0.05*median_curr;
  median_prev = median_lpf;

It seems it always uses the median distance as "spaciousness".

Hi @Gatsby23 -- thanks for your comment.
So since we declared line 3 as static, it only gets called on the first iteration in order to initialize the value for line 4 the first time a scan is received. So the first value of median_lpf will equal to the median distance. However, in subsequent iterations, line 5 calculates median_prev instead, creating a simple low pass filter. If you print out the values of median_curr (median distance) and median_lpf, you'll see that they're different values after the first iteration. Let me know if that helps.

Hi @Gatsby23 -- thanks for your comment.
So since we declared line 3 as static, it only gets called on the first iteration in order to initialize the value for line 4 the first time a scan is received. So the first value of median_lpf will equal to the median distance. However, in subsequent iterations, line 5 calculates median_prev instead, creating a simple low pass filter. If you print out the values of median_curr (median distance) and median_lpf, you'll see that they're different values after the first iteration. Let me know if that helps.

OK， It's my mis-understood. Thank you for your comment! I really like this work: simple and effective.


If I finish upgrade through service, it's not reflected on stack level

Rancher Version: master 11/04
Steps to Reproduce:

Create a catalog template with multiple version & just 1 service inside it.
Install the catalog item with first version
Upgrade to 2nd version
Instead of Finish Upgrade on stack level, do it through the service menu

Results: The stack stays in a "Upgraded" state even though the service is now active.

Expected:  Stack should know state and be active.

Catalog service isn't really aware of stacks, so I'm thinking the fix for this is elsewhere. Cattle or Rancher Compose seems more likely. Any idea @vincent99?


Can it be applied to 'Pendulum-v0'?? && memory problem

Hi!
I tried to apply it with Pendulum-v0 environment.
However, I don't think it worked well at all.
Could you give me some advice?
And, when I run it, there came some error b/c of memory shortage.
is there something I can manage the memory?

Hi Wonchul, I've worked with the Pendulum-v0 environment too.
Firstly let me note that on the more_envs branch we are working on several extra environments (we have good results in a version Pendulum-v0, inverted double pendulum and the Swimmer), we are gonna merge some of the work there on master soon after cleaning it up a bit, but you can take a look if you are looking for extra applications.
The problem with the Pendulum-v0 is that although the dynamics are pretty simple, it's hard for PILCO to predict a trajectory, because the initial angle of the pendulum can be anything (I think it is initialised uniformly). That makes planning with a normally distributed prediction for every time-step, as PILCO does, not that useful. What I did was change this initialisation, from the gym source code, to a starting position with the pendulum at the bottom, with a reasonably small amount of starting uncertainty (~0.1). Now this is an easier task than what the original gym one, but since the pendulum swing-up task is a standard control benchmark, we might still want to solve it this way (the version used in the original PILCO paper is like this too).
Now for the memory issues, I have encountered them too, there a few things you can do, and they are related to T, the number of time-steps in the planning horizon and N, the number of runs and subsequently the number of data points you are working with.

Reduce time horizon, possibly by using subsampling. During planning, a number of matrices are created and held in memory simultaneously, proportional to the number of time steps in the planning horizon. You might want to decrease that number. If you feel a longer time horizon is needed, you can use subsampling, basically repeating each action for m time-steps, and only showing PILCO the state every m time-steps. That way you can plan ahead long enough, without the memory problems. There is a simple way to implement that by changing the rollout function in inverted_pendulum.py.
Use sparse GPs. By using the num_induced_points argument when you call the PILCO constructor you can set the number of data points used for the GP inference.

Also be ware that the default reward function and initial state of PILCO won't work for Pendulum-v0. Copying from inverted_pendulum.py in more_envs:
        # NEEDS a different initialisation than the one in gym (change the reset() method),
        # to (m_init, S_init)
        SUBS=3
        bf = 30
        maxiter=50
        max_action=2.0
        target = np.array([1.0, 0.0, 0.0])
        weights = np.diag([2.0, 2.0, 0.3])
        m_init = np.reshape([-1.0, 0, 0.0], (1,3))
        S_init = np.diag([0.01, 0.05, 0.01])
        T = 40
        J = 4
        N = 8
        restarts = True

SUBS is the subsampling rate, target and weights are the reward function parameters. With these parameters I've had consistent good performance.

Hi, Kyriakos.
First, I want to thank you for sharing your experience.
I surely want to take a look before you complete the work, if you don't
mind.
What I want to do is only to understand how PILCO exactly works on the
level of implementation using openai gym, not mujoco, because I don't have
license...
And, for the memory problem, is there any way to assign memory in advance
with gpflow as tensorflow?
For example, there is something I could manage the memory using 'config' in
tensorflow.
Thank you.
Wonchul Kim.
2019년 2월 21일 (목) 오후 9:20, Kyriakos Polymenakos<EMAIL_ADDRESS>작성:

Hi Wonchul, I've worked with the Pendulum-v0 environment too.
Firstly let me note that on the more_envs branch we are working on several
extra environments (we have good results in a version Pendulum-v0, inverted
double pendulum and the Swimmer), we are gonna merge some of the work there
on master soon after cleaning it up a bit, but you can take a look if you
are looking for extra applications.
The problem with the Pendulum-v0 is that although the dynamics are pretty
simple, it's hard for PILCO to predict a trajectory, because the initial
angle of the pendulum can be anything (I think it is initialised
uniformly). That makes planning with a normally distributed prediction for
every time-step, as PILCO does, not that useful. What I did was change this
initialisation, from the gym source code, to a starting position with the
pendulum at the bottom, with a reasonably small amount of starting
uncertainty (~0.1). Now this is an easier task than what the original gym
one, but since the pendulum swing-up task is a standard control benchmark,
we might still want to solve it this way (the version used in the original
PILCO paper is like this too).
Now for the memory issues, I have encountered them too, there a few things
you can do, and they are related to T, the number of time-steps in the
planning horizon and N, the number of runs and subsequently the number of
data points you are working with.

Reduce time horizon, possibly by using subsampling. During planning,
a number of matrices are created and held in memory simultaneously,
proportional to the number of time steps in the planning horizon. You might
want to decrease that number. If you feel a longer time horizon is needed,
you can use subsampling, basically repeating each action for m time-steps,
and only showing PILCO the state every m time-steps. That way you can plan
ahead long enough, without the memory problems. There is a simple way to
implement that by changing the rollout function in inverted_pendulum.py
.
Use sparse GPs. By using the num_induced_points argument when you
call the PILCO constructor you can set the number of data points used for
the GP inference.

Also be ware that the default reward function and initial state of PILCO
won't work for Pendulum-v0. Copying from inverted_pendulum.py in
more_envs:
    # NEEDS a different initialisation than the one in gym (change the reset() method),
    # to (m_init, S_init)
    SUBS=3
    bf = 30
    maxiter=50
    max_action=2.0
    target = np.array([1.0, 0.0, 0.0])
    weights = np.diag([2.0, 2.0, 0.3])
    m_init = np.reshape([-1.0, 0, 0.0], (1,3))
    S_init = np.diag([0.01, 0.05, 0.01])
    T = 40
    J = 4
    N = 8
    restarts = True

SUBS is the subsampling rate, target and weights are the reward function
parameters. With these parameters I've had consistent good performance.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/nrontsis/PILCO/issues/21#issuecomment-465979712, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AT7jwQYN-0ccVrsVvqHtBl9jINGKaIiPks5vPo8XgaJpZM4bGbIO
.

Sure, it makes sense to want to use it without mujoco.
For the memory problem yes, you can do it the standard tensorflow way.  What we use when running on a GPU is something like:
    config = tf.ConfigProto()
    gpu_id = kwargs.get('gpu_id', "1")
    config.gpu_options.visible_device_list = gpu_id
    config.gpu_options.per_process_gpu_memory_fraction = 0.80
    sess = tf.Session(graph=tf.Graph(), config=config)
    with sess:

before making the environment.
I am not sure this is gonna help, since it restricts the memory tf is taking, but if you are running out of it, it probably means that tf used up all available memory and it still wasn't enough.  If you have many data points and/or long planning horizons, especially in higher dimensional problems, think about subsampling or sparse GPs.

Thanks for your advice!
I will try it!!
If you tried PILCO to other environments including pendulum-vo, could I see
the code?
On Fri, 22 Feb 2019 at 1:08 AM Kyriakos Polymenakos <
<EMAIL_ADDRESS>wrote:

Sure, it makes sense to want to use it without mujoco.
For the memory problem yes, you can do it the standard tensorflow way.
What we use when running on a GPU is something like:
config = tf.ConfigProto()
gpu_id = kwargs.get('gpu_id', "1")
config.gpu_options.visible_device_list = gpu_id
config.gpu_options.per_process_gpu_memory_fraction = 0.80
sess = tf.Session(graph=tf.Graph(), config=config)
with sess:

before making the environment.
I am not sure this is gonna help, since it restricts the memory tf is
taking, but if you are running out of it, it probably means that tf used up
all available memory and it still wasn't enough. If you have many data
points and/or long planning horizons, especially in higher dimensional
problems, think about subsampling or sparse GPs.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/nrontsis/PILCO/issues/21#issuecomment-466058347, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AT7jwWWqWiInTBxBEJuQ3QvAJN3O5Pqcks5vPsR1gaJpZM4bGbIO
.

Hey @wonchul-kim you might wanna check the pull request I added here, it should be more clear and easier to make sense than the more_envs branch I mentioned above. It includes 3 extra environments, including the Pendulum-v0.

I am closing this for now, if there are more questions feel free to re-open it.


how to start camera intent along with CropImage?

is there a way to start camera intent with cropping feature at the same time?

Not this library.
I don't know any library that is doing it.
good luck.


Add function to set profile picture

Add function to set profile picture

Released in https://github.com/wppconnect-team/wa-js/releases/tag/v2.8.0


password ?

how to use redis with password?

You can specify it in the URL: https://docs.rs/redis/0.9.1/redis/#connection-parameters


Undelete a post (form-encoded)

Done in https://github.com/aaronpk/micropub.rocks/commit/e86914331c3e656565398923391e0343557bb252


Clean up allocator benchmarks and use random size allocations for dynamic pools

[X] Redesign allocator_benchmarks
[x] Create script to run allocator_benchmarks and output relative timing
[x] Merge feature/dynamic-pool-refactor

This looks good - I'd like to merge this before #162 so that I can properly benchmark that PR.


PDF stamp and WaterMark - Not showing as expected for PDFs generated from chrome

Hi,
For pdf generated from excel, stamp and watermark is showing as expected.
But pdf generated from chrome browser "print save as PDF" option, stamp and watermark  is not showing properly.
Please find attached PDF files.
chrome.pdf
chrome_new.pdf
excel.pdf
excel_new.pdf
Thanks

Which OS and Chrome version are you using?
I am using the latest Chrome (69.0.3497.92) on MacOS and it looks good to me.
(see the attached mg_new.pdf)

MacOS version 10.13.3
Chrome latest version 69.0.3497.92
I have tried again but getting same result.
I have noticed another new issue. Please find attached pdfs.
github.pdf
github_new.pdf
Thanks

You are right. There is definitely something weird going on.

This is related to Type3 font usage.
I am having a hard time reproducing your PDFs and need your help:
Inspecting your PDFs they show:
Producer: Skia/PDF m68
Creator: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36

The PDFs  I create with Chrome on my Mac all show:
Producer: Mac OS X 10.13.6 Quartz PDFContext
Creator: Chrome

I am wondering what's different here.
How exactly do you generate your PDF out of Chrome?
There are several options like Open PDF in Preview, Print using system dialogue and from there Open in Preview and Save as PDF
Any PDF produced by Mac OS X 10.13.6 Quartz PDFContext does not cause any problem with pdfcpu for me.

Screenshots  of how i generate PDF. And also find attached PDF generated

PDF stamp and WaterMark - Not showing as expected for PDFs generated from chrome · Issue #39 · hhrutter_pdfcpu.pdf
Thanks
Koti

Sure. Open the PDF with Preview and then Show Inspector.

fixed with v0.1.18


[release-1.5] Fix grpc create initial metadata callback

Signed-off-by: Pengyuan Bian<EMAIL_ADDRESS>Add the same fix as release 1.4: https://github.com/istio/envoy/commit/37dbbd43ed8020c4066e0737d1fc7902fceef36a#diff-3367fe470b910c37aac0a6fd5856a936 as well as a test.
issue: https://github.com/envoyproxy/envoy-wasm/issues/414
For an explanation of how to fill out the fields, please see the relevant section
in PULL_REQUESTS.md
Description:
Risk Level:
Testing:
Docs Changes:
Release Notes:
[Optional Fixes #Issue]
[Optional Deprecated:]

@bianpengyuan: The following test failed, say /retest to rerun all failed tests:

Test name
Commit
Details
Rerun command

test-release_envoy_release-1.5
48a873c789e90c969fb9c3901d8f462c6c15c705
link
/test test-release_envoy_release-1.5

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

/test test-release_envoy_release-1.5

@bianpengyuan: The following test failed, say /retest to rerun all failed tests:

Test name
Commit
Details
Rerun command

test-release_envoy_release-1.5
48a873c789e90c969fb9c3901d8f462c6c15c705
link
/test test-release_envoy_release-1.5

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

/retest

@bianpengyuan: The following test failed, say /retest to rerun all failed tests:

Test name
Commit
Details
Rerun command

test-release_envoy_release-1.5
48a873c789e90c969fb9c3901d8f462c6c15c705
link
/test test-release_envoy_release-1.5

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

/retest


In case you wish to continue the previous conversation

You can continue commenting here.

Have you contacted vscode with idea to integrate your code into vscode or have you tried to prepare PR with this feature?

Have you contacted vscode with idea to integrate your code into vscode

I believe I contacted the VS Code team many times with the showcase of the working product of mine (Block highlighting extension), and I think they really like this idea, but as I see, they find it too difficult (or too unsafe) to expose native AST tokens to extensions. Integrating my extension into VS Code? I don't know, probably it's also difficult technically. I think they already thought about it.
Here you can see a conversation where they basically invited me to hear my opinion.
https://github.com/microsoft/vscode/issues/128465

have you tried to prepare PR with this feature

Unfortunately my technical skills are not wide enough to deal with such integration PRs, especially with AST tokenization. Actually, when I started building Blockman, I had less than 3 months of experience with software development. I was basically very young in the dev profession. My coding skills were almost zero, but I was so dedicated to implement my idea that I was researching and learning about making extensions and building it almost 24/7 for many months. Now only 2 years have passed. 2 years is not much for software developer skills. Fortunately, at least I managed to learn React.js, TS, Next.js, CSS/SCSS to find a good job.


ipynb2module is a tool for importing jupyter notebooks as modules

Useful for prototyping with models written in Jupyter.

@pgkirsch, this may pique your interest


Peer-to-peer code review

Nice project, but there are some little things that could improve your code if fixed:

Line 8: Use single quotations instead of double in speakers.js;
Line 22: Avoid using trailing spaces;
Line 35: Give space after the colon;
Line 66: Lining space required.

All the above issues have been resolved properly. I really appreciate your keen eyes which helped me a lot to understand the space and line issues.


When account is locked, it says login failed, but should say account locked

Moved from - https://wso2.org/jira/browse/IDENTITY-6723
Console error says
[2017-12-15 20:37:14,348] ERROR {org.wso2.carbon.core.services.authentication.AuthenticationAdmin} -  System error while Authenticating/Authorizing User : Account is locked for user samisa in user store PRIMARY in tenant carbon.super. Cannot login until the account is unlocked.
But UI just says Login failed! Please recheck the username and password and try again.  Should we not mention that account is locked?

Hi @vihanga-liyanage
I am also facing an issue in account locking Issue#5338.
Could you please suggest.

This will be resolved if you have enabled the showAuthFailureReason property for basic authenticator in repository/conf/identity/application-authentication.xml
	<AuthenticatorConfigs>
		<AuthenticatorConfig name="BasicAuthenticator" enabled="true">
			<Parameter name="showAuthFailureReason">true</Parameter>

Then, the user will be redirected to retry.do with more descriptive error details.
errorCode=17003&failedUsername=sajith%40sa.com&remainingAttempts=0

The error code 17003 says the user is locked. You will have to customize the retry.jsp in authentication endpoint to show the information to the end-user.

i have enabled the showAuthFailureReason property for basic authenticator in repository/conf/identity/application-authentication.xml
but after restarting the wso2 server its automatically getting removed

i have enabled the showAuthFailureReason property for basic authenticator in repository/conf/identity/application-authentication.xml but after restarting the wso2 server its automatically getting removed

If you are using >= IS 5.9.0, the following needs to be added to the deployment.toml instead.
[authentication.authenticator.basic.parameters]
showAuthFailureReason = true


Improve performance and nuclei annotation output format of Nuclei Detection CLI

This PR

Uses Dask to parallelize the computation of foreground fraction of each tile. This was being done serially before.
Sets fillColor of nuclei bboxes to "rgba(0,0,0,0)" so that they are transparent
Rounds centroid and width to 2 decimal spaces to reduce size of anot file

Codecov Report

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

@@           Coverage Diff           @@
##           master     #251   +/-   ##
=======================================
  Coverage   60.79%   60.79%
=======================================
  Files           8        8
  Lines         352      352
=======================================
  Hits          214      214
  Misses        138      138

Continue to review full report at Codecov.

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


feat(spike): cross-chain nonfungible implementation

Description

Context: Why can't we use the default NonFungiblesTransactor provided by the xcm crate? Current asset transactor for nonfungible implementation is currently only for nonfungibles, not nonfungibles_v2. If we want it to support latest the version of the pallet-nfts crate (collection management functionalities), we need to reconstruct the NonFungiblesTransaction.

The pull request implements the NonFungiblesTransactor using the ForeignNfts pallet nfts instance. This makes changes to the pallet-nfts CollectionId type to remove the Copy required parameter trait as xcm::latest::Location is not implemented with Copy. Replace all the copies of CollectionId in the pallet-nfts code to use Clone. Performance benchmarking should be considered to see if there is a huge change in the memory efficiency.

[x] MultiLocationCollectionId implemented with xcm::latest::Location
[x] NonFungiblesTransactor
[x] ForeignNfts instance and runtime configuration
[ ] XCM simulator integration tests

Outcome

Current issue:
  error[E0275]: overflow evaluating the requirement `<Runtime as pallet_nfts::Config<Instance2>>::CollectionId == _`
    --> /Users/chungquantin/Developer/pop-network/pop-node/runtime/devnet/src/config/assets.rs:74:22
     |
  74 |     type CollectionId = <Self as pallet_nfts::Config<ForeignNftsInstance>>::CollectionId;
     |                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  error[E0275]: overflow evaluating the requirement `<Runtime as pallet_nfts::Config<Instance1>>::CollectionId == _`
     --> /Users/chungquantin/Developer/pop-network/pop-node/runtime/devnet/src/config/assets.rs:110:22
      |
  110 |     type CollectionId = <Self as pallet_nfts::Config<TrustBackedNftsInstance>>::CollectionId;
      |                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  error[E0275]: overflow evaluating the requirement `<Runtime as pallet_nfts::Config<Instance1>>::CollectionId == _`
     --> /Users/chungquantin/Developer/pop-network/pop-node/runtime/devnet/src/config/assets.rs:153:25
      |
  153 |     type NftCollectionId = <Self as pallet_nfts::Config<TrustBackedNftsInstance>>::CollectionId;
      |                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  error[E0275]: overflow evaluating the requirement `<Runtime as pallet_nfts::Config<Instance2>>::CollectionId == MultiLocationCollectionId`
     --> /Users/chungquantin/Developer/pop-network/pop-node/runtime/devnet/src/config/xcm.rs:176:25
      |
  176 |     type AssetTransactor = (LocalAssetTransactor, NonFungiblesTransactor);
      |                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

The Incrementable trait is implemented in the non_fungibles_v2.rs file. Could we check whether removing this bound from the CollectionId type causes a lot of issues.

Codecov Report
Attention: Patch coverage is 40.04237% with 283 lines in your changes missing coverage. Please review.

Project coverage is 68.81%. Comparing base (4535a52) to head (eba2458).

Files with missing lines
Patch %
Lines

runtime/common/src/xcm/nonfungibles_adapter.rs
0.00%
206 Missing :warning:

pallets/nfts/src/impl_nonfungibles.rs
35.71%
18 Missing :warning:

runtime/devnet/src/config/xcm.rs
0.00%
15 Missing :warning:

runtime/devnet/src/config/assets.rs
0.00%
13 Missing :warning:

pallets/nfts/src/features/attributes.rs
72.72%
0 Missing and 6 partials :warning:

pallets/nfts/src/features/create_delete_item.rs
89.47%
0 Missing and 6 partials :warning:

pallets/nfts/src/features/metadata.rs
66.66%
0 Missing and 4 partials :warning:

pallets/nfts/src/features/transfer.rs
81.25%
0 Missing and 3 partials :warning:

pallets/nfts/src/lib.rs
78.57%
0 Missing and 3 partials :warning:

pallets/nfts/src/features/approvals.rs
89.47%
0 Missing and 2 partials :warning:

... and 5 more

@@                    Coverage Diff                     @@
##           chungquantin/feat-nfts     #400      +/-   ##
==========================================================
- Coverage                   69.97%   68.81%   -1.16%
==========================================================
  Files                          70       72       +2
  Lines                       12975    13256     +281
  Branches                    12975    13256     +281
==========================================================
+ Hits                         9079     9122      +43
- Misses                       3617     3857     +240
+ Partials                      279      277       -2

Files with missing lines
Coverage Δ

pallets/nfts/src/benchmarking.rs
85.79% <100.00%> (ø)

pallets/nfts/src/common_functions.rs
71.42% <100.00%> (ø)

pallets/nfts/src/features/roles.rs
96.25% <100.00%> (ø)

runtime/common/src/lib.rs
0.00% <ø> (ø)

runtime/devnet/src/config/proxy.rs
0.00% <ø> (ø)

runtime/devnet/src/lib.rs
5.53% <ø> (ø)

pallets/nfts/src/features/atomic_swap.rs
90.71% <94.44%> (+0.20%)
:arrow_up:

...lets/nfts/src/features/create_delete_collection.rs
85.86% <94.44%> (+0.98%)
:arrow_up:

pallets/nfts/src/features/lock.rs
90.36% <85.71%> (+0.23%)
:arrow_up:

pallets/nfts/src/features/approvals.rs
94.31% <89.47%> (+0.25%)
:arrow_up:

... and 11 more

The Incrementable trait is implemented in the non_fungibles_v2.rs file. Could we check whether removing this bound from the CollectionId type causes a lot of issues.

Any reason why we need to remove it?

Because if the incrementable can be removed it would not be necessary to be implemented for the Location and then we don't need the MultiLocation(Location) type

[sc-1734]


Improve constructor options doc readability

Closes #10
The edited markdown documentation would look like this:

Creates a new instance of the Microphone class. You can give an options object to the constructor with these parameters:

Option
Value
Default

endian
'big' or 'little'
'little'

bitwidth
8, 16, 24 *
16

encoding
'signed-integer' or 'unsigned-integer'
'signed-integer'

rate
8000, 16000, 44100 *
16000

channels
1, 2 *
1 (mono)

device
'hw:0,0', 'plughw:1,0' *

additionalParameters
Array of raw string parameters to pass to spawn()

* or any other value supported by arecord or sox.
With sox, the device option is used as waveaudio driver.

Thanks for the PR!


all bounding box values -1

Hi, I ran your code on a set of dicom images from the osteoarthritis institute. However, all bounding box values came back -1. This may possible be a dependency issue. Do you know which version of tqdm was originally used?

Hi, I ran your code on a set of dicom images from the osteoarthritis institute. However, all bounding box values came back -1. This may possible be a dependency issue. Do you know which version of tqdm was originally used?

I ran it with the same problem and really don't know what to do instead? I'm looking forward to the author's reply!


get_mime_type bugfix

pdf_object.attrs.get() return PSLiteral object not a dict.
Because they returned dict, It raised Exception when they call .name
So I fixed it.

Thanks!


sql: disable interleaved hash sharded indexes

PR: https://github.com/cockroachdb/cockroach/pull/44996
From release notes:

Disabled creating a hash sharded index that is also interleaved. [#44996][#44996] {% comment %}doc{% endcomment %}

Hash sharded index https://airtable.com/tblD3oZPLJgGhCmch/viwNg2fK3NU3DUY6Z/recOb3JQTLxMJxnmH


Fix typo in docs

Issue #, if available:
Description of changes:
Fix one typo
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
amen

Thanks!


Play videos from direct link

Is your feature request related to a problem? Please describe.
Videos aren't displayed properly without clicking on the link - killing engagement for any cool projects
Describe the solution you'd like
Add a playable embed with the default player that plays the video, and add a thumbnail based on the first frame
Describe alternatives you've considered
Player cards like twitter does? Not a big fan of this because it has the same problem of killing engagement
Additional context
Example post: https://bsky.app/profile/did:plc:mbdv5fpty2wlssfwwpys2boh/post/3k5vpxekc3k27
Example screenshot:

Videos are on the roadmap: https://github.com/bluesky-social/social-app/issues/1052

Videos are on the roadmap

I don't think embeds are though?

Embeds to third party services aren't atm. I'm not overly fond of the performance of the embedded players, personally, but I'm open to discussing it

Would the embeded video be played directly from the external URL?
If so wouldn't this be prone to abuses like?:

Changing the source file to a different content at a later date or depending on other factors like country (Regular posts are not editable).
Collecting user info (IP, user agent etc.) when connecting to the external URL. (Users are more beware when they know they're knowingly clicking on links, but not when displaying external sources).

I don't think either of these are problems that aren't present with normal web sites though. As long as you convey that it's from a website then I don't think it should matter too much

If I post a youtube link, I'd expect it to embed, like it does on X

Embeds to third party services aren't atm. I'm not overly fond of the performance of the embedded players, personally, but I'm open to discussing it

Surprised by this tbh. I would've figured that support for third-party embeds would come long before native audio/video media support, especially considering the comparatively lower cost for implementing embeds VS native media support, and the high demand for media support in general.

Firstly, the simple fact is people expect embeds to work. If you post a YouTube link on Twitter, Cohost, Tumblr, even Discord, it will embed. The same goes for SoundCloud, Bandcamp, Streamable and Imgur in some cases. You can just play media from another platform without having to leave the platform you're currently using.
From a creator's point of view, having that media be able to embed directly in a post is especially important. It's one less point of friction - a user can see the post, click on the embed, and experience it. If they want to view the embedded content more directly, the embed will often give the option to view it in a dedicated window. Otherwise, it's just as easy for the user to hit "back" and continue reading their feed.
Bluesky lacks support for gifs, videos, and audio. Media support on Bluesky has been in high demand for a long time. Embeds would provide an effective stopgap for this. People will happily adapt to posting their game-dev WIPs or their stream clips via YouTube, Twitch, Streamable, etc, just as long as they have something they can use while they wait for native support.
Finally, the file formats typically associated with these sorts of media types are costly for storage. Being able to take advantage of embedding from other media platforms isn't just a little nice-to-have thing, it's going to be important for offsetting the financial cost of hosting a Bluesky instance in the first place.

I would also love to see media embeds to be possible. Even if it starts with being limited to well known platforms like YouTube and Vimeo.
That seems like a low hanging fruit compared to the high effort and cost of media handling on the social server.
Unlike Twitter or Mastodon it would be nice if those would also work on mobile and not just web. On these other platforms they make you go to the website instead of playing the embed in the app directly.
A lot of content I create is video which I currently can not share on Bluesky effectively.
For more professional content creators its also a very important tool that the video views go through the platform they host on. Twitter was always a rough place for YouTube and Music creators due to the massive derating that such links would get.
I'm hoping that Bluesky can be more equitable there but it would first need to allow a more seamless integration of external media. Cohost does this really quite well.

For the tracking issues, what's can be done is to request the embedded player only when the users click/tap on the card. I think that's what the Mastodon/Fediverse clients do.
Also btw it would be cool to support other services than YouTube, and also PeerTube players.

I would love showing the embedded player.  People are know to be much more likely to interact with stuff that does not take them away from the site.
Maybe just from a whitelisted group of sites?  It seems relatively easy compared to hosting the videos yourself, and gives much of the benefit for video creators.
I just prototyped the Vimeo player by pasting in the embed code into dev tools, and it looks fine.

I have a branch where I was able to prove it's possible to get a decent embedded player experience. Sadly it's gotta wait while other features take priority, but my biggest concern was jank and I now think, yeah, it can happen

Ship it! You got this!

With the big release out, is there a chance we could get this integrated in the new year? 👀

In fact we did!

oh nice, did I miss it or is it not merged yet?

It's only supported for certain platforms like youtube (and we want to add more like vimeo). We can't support any arbitrary host because of moderation concerns

amazing!

It's only supported for certain platforms like youtube (and we want to add more like vimeo). We can't support any arbitrary host because of moderation concerns

Thats totally reasonable! Tho its not been part of the latest update or? For me YouTube links are still just cards on web and Android app.

are you on 1.61?

Ok yes now its working on web and just got the ability to make an update on Android too.
Thanks, this is great!

One small bug on at least Firefox that the preview thumbnail is not showing, its grey until you play the video.

Why was this issue closed?  Inability to play video in-place is a major engagement killer for sites hosting the embed, a diminished experience, and a technical inferiority to how YouTube, X and SoundCloud embeds work.


wg-stories Status Update 2019-03-04

What was accomplished

Investigated Chrome 72 bug re: video playback
Decision to not load ads in page attachments
Parameterization of visual effect animations validation, docs pending
 work scoping
Public documentation for page attachments under review
Draft of desktop APIs
Initial thinking around reactions

Lessons learned

Documentation can take time; it's not just explaining how to do something but also subtly suggesting how one might use something

What's next

Desktop API implementations
Wrapping up animation for embeddable component + validation + docs
Prototyping  in STAMP
Video playback issues
Invalidate, alias, and delete 0.1
Allow localizing strings outside of amp-story
Work with Google Stories to improve their stories

Closed in favor of #7, the new bi-weekly status update.


Missing translations in listing templates

In those two templates:
wagtail/admin/templates/wagtailadmin/pages/listing/_list_choose.html
wagtail/admin/templates/wagtailadmin/pages/listing/_list_move.html

We use the "Title" string without having it set up for translations. We need to use {% trans 'Title' %} instead.

Claimed by @stephiescastle!


Use correct role in CD when authorizing with AWS

#24  👈
main

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @vegarsti and the rest of your teammates on  Graphite


Improve documentation

This PR is a major rework of the documentation.

Closes #353
Closes #328
Closes #209

Difficult to review...
The that's look relay good :-)
just a small comment then for me you can merge.

Thanks!

I updated the online version: http://mapfish.github.io/mapfish-print-doc/

Thanks @tsauerwein :-)


feat: init nice

#2  👈
main

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @Brooooooklyn and the rest of your teammates on  Graphite


LibJS: Correctly return cached value for global var bindings

When the cached value was not an accessor, it was simply ignored. This is the value we really want, so we can just return it.
Not sure why this was not done before, but I could not find any problems with it.
Shows up to 5x improvements on some benchmarks, and 1.4x in general js-benchmarks.
I was specifically profiling imaging-gaussian-blur.js, which saw the greatest improvement.
Suite       Test                                   Speedup  Old (Mean ± Range)        New (Mean ± Range)
----------  -----------------------------------  ---------  ------------------------  ------------------------
...
Kraken      imaging-gaussian-blur.js                 5.181  69.403 ± 61.580 … 73.960  13.397 ± 12.160 … 15.240
...
SunSpider   Total                                    1.244  3.413                     2.743
Kraken      Total                                    2.42   93.050                    38.453
Octane      Total                                    1.286  295.707                   229.997
All Suites  Total                                    1.446  392.170                   271.193

This mostly knocks get_global out of the profiler, leaving Op::initialize_or_set_binding at the top, which is mostly Object::get_own_property and Object::define_own_property.

Oh my goodness 🤦♂


Optimisation of PointTools using pandas

The LSDMap_PointTools object at the moment is set up in 2 different ways - one to read CSVs, and the other using pandas dataframes. We should all decide on one and then change the functions so that it all works together, rather than having a mix of both which is confusing.
I vote for pandas as it's much more efficient... @bgailleton has already written some testing code to read in pandas dataframes as Point Tools (PANDEX!!), I think we should implement this as the standard way.
Any other opinions on this?

I vote for pandas as well, everything should be quicker!
Everything should be adapted actually, Especially if you use the selectValue function that should cover all the masking operations for pandas dataframe.
What we can do if everyone is ok, I can switch on PANDEX on true by default but we can keep the old code during a time in case we discover some bugs?

I agree. Everything should now be panda. Yes boris can you switch to PANDEX?

Cool ! I ll do it as soon as I have decent internet, on Wednesday probably.
Also I tested numpy for loading the raster I'll switch It on it optimize
the loading consequently.
Le 26 juin 2017 13:36, "Simon Marius Mudd"<EMAIL_ADDRESS>a
écrit :
I agree. Everything should now be panda. Yes boris can you switch to PANDEX?
—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub
https://github.com/LSDtopotools/LSDMappingTools/issues/12#issuecomment-311034662,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AVQzkYCP_PSJ8itfQ4KQB7PvLsLjoEURks5sH5ergaJpZM4OEQ4D
.

Hi Boris: The current fast raster loading is a bit buggy: it doesn't recognise nodata values. Can you test on some DEMs that have nodata? If you use the chi_mapping_tool you can mask out the low elevations by setting the minimum elevation

Hi Simon,
I can sort this bug tomorrow, the nodata value is stored in the HDR file
right?
Le 26 juin 2017 19:06, "Simon Marius Mudd"<EMAIL_ADDRESS>a
écrit :

Hi Boris: The current fast raster loading is a bit buggy: it doesn't
recognise nodata values. Can you test on some DEMs that have nodata? If you
use the chi_mapping_tool you can mask out the low elevations by setting the
minimum elevation
—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub
https://github.com/LSDtopotools/LSDMappingTools/issues/12#issuecomment-311121111,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AVQzkcHppvr_EUgOfApiM4HFTD4ChBAkks5sH-UFgaJpZM4OEQ4D
.

Yes, but sometimes it is missing! If it can't be found it should default to -9999

As far as I can tell this is now fixed.


Unable to Make Prometheus Read the web-config.yml for TLS Encryption (Error: unknown long flag '--web.config.file')

What did you do?
Hello I am following the official documentation regarding the TLS encryption of Prometheus. My Spring Boot uses https endpoints and thus I want Prometheus to scrap them as is. I am following the instructions but I am having problem in configuring Prometheus to read my web-config.yml. Specifically the following command,
prometheus
--config.file=/mnt/d/Projects/Msc-Thesis-Project/prometheus.yml
--web.config.file=/mnt/d/Projects/Msc-Thesis-Project/web-config.yml
--web.external-url=https://localhost:8443/
What did you expect to see?
No response
What did you see instead? Under which circumstances?
Error parsing commandline arguments: unknown long flag '--web.config.file'
prometheus: error: unknown long flag '--web.config.file'
System information
No response
Prometheus version
No response
Prometheus configuration file
No response
Alertmanager version
No response
Alertmanager configuration file
No response
Logs
No response

same issue!

Hello there, since I wasn't able to find a solution to this day, I opened a HTTP port for my Promtheus to fetch metrics from my application.

I finally got it running. Just in case someone has the same problem. Here is an example with a docker-compose:
  prometheus:
    image: adriancast/k-prometheus:latest
    restart: always
    command:
      - '--config.file=/etc/prometheus/prometheus.yml'
      - '--web.enable-lifecycle'
      - '--web.config.file=/etc/prometheus/web.yml'
    ports:
      - 9090:9090

Dockerfile of k-prometheus image:
FROM prom/prometheus:v2.40.2

COPY ./prometheus.yml /etc/prometheus/prometheus.yml
COPY ./web.yml /etc/prometheus/web.yml

To be honest I am not sure if I typed something wrong the first time. I got the same error as you but with this configuration is working as expected.
Good luck!

Can't reproduce this error so I'm not sure how you got it. Maybe an older version of Prometheus?

Hello @LeviHarrison, It is true that I swapped Prometheus versions during the tests, but I am not sure if that fixed the issue. Maybe @Andreas-Kreouzos can still reproduce the issue
Regards


Logout outside React Component

Hello, is there an option to logout user outside React? I need to logout after timeout (and reset timer when user makes any call to API), so I want to call the function inside my Axios instance, but Axios is outside Context, so clearly it's not possible to use useAuth hook. Can I logout user in different way?

I'm not sure why you can't do this with the hook, but you can always pass your own UserManager and run the functions outside React.


Live

Docs Build status updates of commit 2236204:
:white_check_mark: Validation status: passed
For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching the docs.microsoft.com contributor guidesPost your question in the Docs support channel

Docs Build status updates of commit 3d6aa10:
:white_check_mark: Validation status: passed
For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching the docs.microsoft.com contributor guidesPost your question in the Docs support channel


Add openapi-appengine.yaml file for App Engine deployments.

After conversation with the Endpoints team, this was the most effective solution we came up with to guide users through setting up Endpoints on App Engine. Having users uncomment code proved to be difficult. If you have another idea that could work better, please let me know. Otherwise, this will have to do.

Please review and merge if it looks OK.

LGTM.


Read and use passed arguments to berry

There should be a way of making this possible: ./berry folder/script.be argv1 argv2 hi and from script.be I should be able to do this: print (arg[1]).

This is a very important feature. I will develop it.
One option is to push command line arguments as strings onto the stack. Just like the transfer of function arguments.

Tried making a list but I can't seem to figure out how to use the API correctly :\

Making a list instance can be cumbersome, so I wrote a simple tutorial: Instantiate a list object in a native function

I'll have to take a closer look at the whole VM but I think will do just fine. Please let me know what you think :)
http://tildesquad.ddns.net:3001/murii/berry/commit/184bdf302626457c91674d7e784709eaa72a0d49

I think you have done a lot of work, so I feel that reading the VM code completely helps you.
I have an immature idea of using arg as a argument to the main function instead of providing an arg function.
Now I will think more about improving the documentation, which seems to be a big problem.

Improving the documentation especially the VM part would be extremely helpful since that part is the one more complicated compared the the rest.
Overall, I really like your project and I'm quite amazed by how fast it performs compared to Ruby, Python and Lua!

Is it fast? 😂
Then, my computer is broken and I can't do a lot of work in a week.

Yeah, I find it very fast :1st_place_medal:

My main goal is memory optimization.

Berry's default interpreter already supports this feature.


 Can you try without shaders on

I thinks it's because Jade Addon's integration with Create, did you turn the Detail-Only option on?
Btw, here is a video about the bug:
https://github.com/Fabricators-of-Create/Create/assets/111768452/0fe21c13-9ed4-47d2-a939-8eca66f7bb5d

it's been a while, mods have updated and bugs have been fixed. There has been no response to the above comment. going to close this.


sshd ssh_exchange_identification error

Hi, I have a strange issue.
My sshd started to fail recently. When sshing to the server, all clients fail with the error: ssh_exchange_identification: Connection closed by remote host. I've checked everything on the internets and stackoverflow, but I don't have a hosts.allow file, nor anything special in ssh_config, set up MaxStartups both the new and the old way - but nothing seems to make it work again.
I did an lxrun /uninstall /full + lxrun /install , to clear everything - but same results.
I'm now on 10.0.16176; I'm sure my stack was working till 2017-04-10 (you may figure out the last working version, as I'm on the fast dev channel).
I've checked on another machine, 10.0.15063, the same config works.
I've tried to debug, I see the following:
`balint@xxx:~$ ssh<EMAIL_ADDRESS>-p22 -vT
OpenSSH_7.2p2 Ubuntu-4ubuntu2.1, OpenSSL 1.0.2g 1 Mar 2016
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
debug1: Executing proxy command: exec nc <IP_ADDRESS> 22
debug1: permanently_drop_suid: 1000
debug1: key_load_public: No such file or directory
debug1: identity file /home/balint/.ssh/identity type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/balint/.ssh/identity-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/balint/.ssh/id_rsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/balint/.ssh/id_rsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/balint/.ssh/id_dsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/balint/.ssh/id_dsa-cert type -1
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_7.2p2 Ubuntu-4ubuntu2.1
ssh_exchange_identification: Connection closed by remote host`
and running sshd in debug mode:
`balint@xxxx:~$ sudo /usr/sbin/sshd -p22 -dddd
debug2: load_server_config: filename /etc/ssh/sshd_config
debug2: load_server_config: done config len = 792
debug2: parse_server_config: config /etc/ssh/sshd_config len 792
debug3: /etc/ssh/sshd_config:5 setting Port 22
debug3: /etc/ssh/sshd_config:8 setting ListenAddress <IP_ADDRESS>
debug3: /etc/ssh/sshd_config:10 setting Protocol 2
debug3: /etc/ssh/sshd_config:12 setting HostKey /etc/ssh/ssh_host_rsa_key
debug3: /etc/ssh/sshd_config:13 setting HostKey /etc/ssh/ssh_host_dsa_key
debug3: /etc/ssh/sshd_config:14 setting HostKey /etc/ssh/ssh_host_ecdsa_key
debug3: /etc/ssh/sshd_config:15 setting HostKey /etc/ssh/ssh_host_ed25519_key
debug3: /etc/ssh/sshd_config:17 setting UsePrivilegeSeparation yes
debug3: /etc/ssh/sshd_config:20 setting KeyRegenerationInterval 3600
debug3: /etc/ssh/sshd_config:21 setting ServerKeyBits 2048
debug3: /etc/ssh/sshd_config:24 setting SyslogFacility AUTH
debug3: /etc/ssh/sshd_config:25 setting LogLevel VERBOSE
debug3: /etc/ssh/sshd_config:28 setting LoginGraceTime 120
debug3: /etc/ssh/sshd_config:29 setting PermitRootLogin prohibit-password
debug3: /etc/ssh/sshd_config:30 setting StrictModes yes
debug3: /etc/ssh/sshd_config:32 setting RSAAuthentication yes
debug3: /etc/ssh/sshd_config:33 setting PubkeyAuthentication yes
debug3: /etc/ssh/sshd_config:37 setting IgnoreRhosts yes
debug3: /etc/ssh/sshd_config:39 setting RhostsRSAAuthentication no
debug3: /etc/ssh/sshd_config:41 setting HostbasedAuthentication no
debug3: /etc/ssh/sshd_config:46 setting PermitEmptyPasswords no
debug3: /etc/ssh/sshd_config:50 setting ChallengeResponseAuthentication no
debug3: /etc/ssh/sshd_config:53 setting PasswordAuthentication no
debug3: /etc/ssh/sshd_config:65 setting X11Forwarding yes
debug3: /etc/ssh/sshd_config:66 setting X11DisplayOffset 10
debug3: /etc/ssh/sshd_config:67 setting PrintMotd no
debug3: /etc/ssh/sshd_config:68 setting PrintLastLog yes
debug3: /etc/ssh/sshd_config:69 setting TCPKeepAlive yes
debug3: /etc/ssh/sshd_config:76 setting AcceptEnv LANG LC_*
debug3: /etc/ssh/sshd_config:78 setting Subsystem sftp /usr/lib/openssh/sftp-server
debug3: /etc/ssh/sshd_config:89 setting UsePAM yes
debug1: sshd version OpenSSH_7.2, OpenSSL 1.0.2g 1 Mar 2016
debug1: private host key #0: ssh-rsa SHA256:P2fM........
debug1: private host key #1: ssh-dss SHA256:+tZ0O.......
debug1: private host key #2: ecdsa-sha2-nistp256 SHA256:zkhO5QO......
debug1: private host key #3: ssh-ed25519 SHA256:19aPKyu.......
debug1: rexec_argv[0]='/usr/sbin/sshd'
debug1: rexec_argv[1]='-p22'
debug1: rexec_argv[2]='-dddd'
debug3: oom_adjust_setup
debug1: Set /proc/self/oom_score_adj from 0 to -1000
debug2: fd 3 setting O_NONBLOCK
debug1: Bind to port 22 on <IP_ADDRESS>.
Server listening on <IP_ADDRESS> port 22.
debug3: fd 4 is not O_NONBLOCK
debug1: Server will not fork when running in debugging mode.
debug3: send_rexec_state: entering fd = 7 config len 792
debug3: ssh_msg_send: type 0
debug3: send_rexec_state: done
debug1:
debug1: inetd sockets after dupping: 3, 3
Connection from with IP options: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00`
and here it exists back to bash.
In some cases, sources say it might be a DDOS attack (too many connections), but I closed the 22 port on the firewall, and it does it with local traffic only too.
Any thoughts?

Hi @kbalint -- hm...  Would you be willing to run the ssh client with ssh -vvv (to get all debug output up to debug3) and post the result here?
I'm suspicious that your client and server can't agree on an auth method for some reason, but I'm not sure.

Hi @aseering - the output of -vvv is exactly the same as above:
ssh<EMAIL_ADDRESS>-vvv
OpenSSH_7.2p2 Ubuntu-4ubuntu2.1, OpenSSL 1.0.2g  1 Mar 2016
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
debug1: Executing proxy command: exec nc <IP_ADDRESS> 22
debug1: permanently_drop_suid: 1000
debug1: key_load_public: No such file or directory
debug1: identity file /home/balint/.ssh/identity type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/balint/.ssh/identity-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/balint/.ssh/id_rsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/balint/.ssh/id_rsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/balint/.ssh/id_dsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/balint/.ssh/id_dsa-cert type -1
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_7.2p2 Ubuntu-4ubuntu2.1
ssh_exchange_identification: Connection closed by remote host
I only did a dpkg-reconfigure openssh-server to generate the server keys; the server's config is the original from the package. Same results from outside the NAT. Ssh-ing to other hosts works (so no error in the ssh_config either)

Hm...  I agree that this is quite weird.  Unfortunately, it's not something I've seen before...
Do other services work from within WSL on the same machine?  (My favorite test service is python -m SimpleHTTPServer.)

hi, sure: python http server works, nginx works. It seems I need to get back to cygwin :(

okay, so I complied SSH from source now,  sshd version OpenSSH_7.5, OpenSSL 1.0.2g  1 Mar 2016.
It is still not working, error is the same - so I assume it is to do with some networking stack problem here.
The only change in my configuration in connection with networking was removing VMWare interfaces and adding Hyper-V interfaces. Could it broke my lx networking somehow?

@kbalint - Thanks for reporting the issue. Can you please do this simple client-server test and note your observation here?
From bash prompt:

nc -4 -l 8000
From a new bash prompt:
nc <IP_ADDRESS> 8000
Type any text and you should see it on the other terminal.

@sunilmut here you are. working as expected.

@kbalint - Thanks. I wonder if this is related to the IP_OPTIONS that we enabled in 16176, given that that's what you see last.
Connection from with IP options: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
Couple of things you can do:

Collect a strace of the failing command strace -o <trace_file> -ff <command>. And share out the trace file.
Since you have source code access, if you can easily find where the IP_OPTIONS are being set, then you can disable that, build and try again. It should be easy to find with 'grep IP_OPTIONS'.

@sunilmut I can confirm, it has to be a bug with IP_OPTIONS.
I've commented out the #ifdef part for IP_OPTIONS in sshd.c  (see: https://anongit.mindrot.org/openssh.git/tree/sshd.c#n1311 ) rebuilt it, and sshd started working as expected.

@kbalint - Great. Thanks for debugging and helping out. Can you still share the strace out? And, also repro steps. I have opened a bug on our side and would like to validate that against the repro steps when it gets fixed.
Glad to know that you are at least unblocked for now.

@kbalint - Or if it is easy to repro, then you don't need to worry about strace. I should be able to repro it locally.

@sunilmut thanks for your help, my backups can flow again!
The trace is here: https://pastebin.ubuntu.com/24429187/
Reproducible steps? Well, wake up to a Black Screen of 'Hi!', and your linux life is in ruins. ;)

So, just to clarify your repro a bit :), I was interested in knowing if there is anything specific about your SSH setup or just by default SSH is broken in this build.

@sunilmut, nah - it was the stock openssh-server from the repo, installed months ago which started to fail in the past days - all I saw that all file transfers stopped (as build 16176 arrived), that's when I started to investigate. Yesterday I removed-reinstalled everything bash/ubuntu, and my last thought was to compile it from source. I'm just wondering how come no others are complaining about a broken ssh server?

@kbalint - Thanks much and good catch! 16176 is a fairly new, I would expect more reports of this as we go.
I am fairly sure this is the check that is blowing up:
option_size != 0
On native Ubuntu, the size returned is 0. WSL returns the same size that was supplied, which is commonly the case.
Working on a fix now.

I'm just wondering how come no others are complaining about a broken ssh server?

Nah, we're seeing it. You happened to post within hours of 16176 coming out, and there is (against best evidence) a few of us left who check before reporting dupes. The problem is unambiguously a result of IP_OPTIONS.

The PR (pull-request) is out for review. We will try to get it fast tracked to the Insider build.

@sunilmut has the fix been shipped yet?

Seems okay on 16193. I don't know what's up with the release notes page. Probably everyone was occupied with Build 2017 this week.

@therealkenc yeah, I've force stopped the fast channel, so now i can return 💃

Yes, the fix came in 16193.


Add copy to clipboard button and fix UI

[x] Discuss adding a copy to clipboard button
[x] Also fix admin panel to accommodate long strings

Fixed in 486526f9eb0a75e6724d93c4638b992c08dbe7c6


Create ostinato_maker.lua

Copy the current selection (of any length) and paste it consecutively to the right a nominated number of times.
I’m not sure this warrants inclusion in the repo since much the same thing can be done with “Paste Multiple”, though this is simpler and more intuitive to use. It’s also a natural successor to and considerable improvement upon region_replicate_music which is already included.

This script will be far more useful as a modeless dialog. It won't take much to change it into one, just adding Undo handling in the make_ostinato function. (And adding finaleplugin.HandlesUndo = true.) A nice to have might be to show the current selection, which means adding a timer to check when it changes.
Note that mixin RunModeless has the mod_key repeat (without opening dialog) functionality baked in, provided you activate make_ostinato from calling RegisterHandleOkButtonPressed. See transpose_by_step.lua for a relatively simple modeless dialog implementation.


fix(behavior_path_planner): change the condition of  updateRTCStatus() in avoidance module

Description
When the updateRTCStatus() function registers the obstacle avoidance direction, the relative offset calculated by the planCandidate() function will be used as the condition.
But there will be problems when planCandidate() calculates the relative offset.Currently, there are multiple obstacle avoidance points registered at one time, and the relative offset of the last obstacle avoidance point is 0.0.
So the calculation of the offset direction is wrong. An error occurred while updateRTCStatus() was registering.
When updateRTCStatus() has the erro,Obstacle avoidance will not happen .

Related links

Tests performed
Current simulation：

I change the lateral_shift in the planCandidate() function then  simulate：

Notes for reviewers

Pre-review checklist for the PR author
The PR author must check the checkboxes below when creating the PR.

[x] I've confirmed the contribution guidelines.
[x] The PR follows the pull request guidelines.

In-review checklist for the PR reviewers
The PR reviewers must check the checkboxes below before approval.

[ ] The PR follows the pull request guidelines.
[ ] The PR has been properly tested.
[ ] The PR has been reviewed by the code owners.

Post-review checklist for the PR author
The PR author must check the checkboxes below before merging.

[ ] There are no open discussions or they are tracked via tickets.
[ ] The PR is ready for merge.

After all checkboxes are checked, anyone who has write access can merge the PR.

@rej55


adding changes for Issue 1 Web Analytics Opt Out

Issue: https://github.com/lukeware/solid-dragons/issues/1
2 new files were added: web-analytics-opt-out.js and privacy-policy.html
Index.html was updated to alert users about web analytics usage and provide a link to the privacy policy in the footer

this looks like its just counting visitations? but it looks all there


Unable to create a poetry.lock file -- Lookup Error All dependencies are empty

Short description
When trying to generate a poetry.lock file with the cli fails with an error. I'm able to generate setup.py from pyproject.toml though.
Output
dephell deps convert --from=pyproject.toml --to=poetry.lock
WARNING cannot find tool.dephell section in the config (path=pyproject.toml)
ERROR LookupError: all dependencies are empty

Steps to reproduce

pyproject.toml
[tool.poetry]
name = "someproject"
version = "0.1.0"
description = ""
authors =<EMAIL_ADDRESS>packages = []

[tool.poetry.dependencies]
python = "^3.6"
attrs = "^19.1"
cattrs = "^0.9.0"
bidict = "^0.18.2"
gensim = "^3.8.0"
h5py = "^2.10.0"
jsonlines = "^1.2.0"
more-itertools = "^7.2"
python-rapidjson = "^0.8.0"
scikit-learn = "^0.21.3"
scipy = "^1.3.2"
seqeval = "^0.0.12"
spacy = "^2.2.3"
sty = {version = "^1.0-beta.1", allows-prereleases = true}
subword-nmt = "^0.3.6"
tensorflow-gpu = { version = "^2.0.0", optional = true }
tensorflow-determinism = { version = "^0.3.0", optional = true }
tensorflow = { version = "^2.0.0", optional = true }
typing_extensions = "^3.7.4"
tabulate = "^0.8.0"
tqdm = "^4.36.0"
pandas = "^0.25.0"
beautifulsoup4 = "^4.8"
click = "^7.0"

[tool.poetry.extras]
tf-cpu = ["tensorflow"]
tf-gpu = ["tensorflow-gpu", "tensorflow-determinism"]

[tool.poetry.dev-dependencies]
pre-commit = "^1.20"
pytest = "^5"
pytest-cov = "^2.8.1"
hypothesis = "^4.44.2"

Traceback

Traceback (most recent call last):
  File "/Users/timothy.laurent/.virtualenvs/inv-text2struct/lib/python3.7/site-packages/dephell/cli.py", line 64, in main
    result = handler()
  File "/Users/timothy.laurent/.virtualenvs/inv-text2struct/lib/python3.7/site-packages/dephell/commands/deps_convert.py", line 92, in __call__
    dumper.dump(path=self.config['to']['path'], **dumper_kwargs)
  File "/Users/timothy.laurent/.virtualenvs/inv-text2struct/lib/python3.7/site-packages/dephell/converters/base.py", line 74, in dump
    content = self.dumps(reqs=reqs, content=content, project=project)
  File "/Users/timothy.laurent/.virtualenvs/inv-text2struct/lib/python3.7/site-packages/dephell/converters/poetrylock.py", line 70, in dumps
    doc['package'] = [self._format_req(req=req) for req in reqs]
  File "/Users/timothy.laurent/.virtualenvs/inv-text2struct/lib/python3.7/site-packages/dephell/converters/poetrylock.py", line 70, in <listcomp>
    doc['package'] = [self._format_req(req=req) for req in reqs]
  File "/Users/timothy.laurent/.virtualenvs/inv-text2struct/lib/python3.7/site-packages/dephell/converters/poetrylock.py", line 223, in _format_req
    deps = req.dep.dependencies
  File "/Users/timothy.laurent/.virtualenvs/inv-text2struct/lib/python3.7/site-packages/dephell/models/dependency.py", line 86, in dependencies
    for dep in self.group.dependencies:
  File "/Users/timothy.laurent/.virtualenvs/inv-text2struct/lib/python3.7/site-packages/dephell/cached_property.py", line 18, in __get__
    value = obj.__dict__[self.func.__name__] = self.func(obj)
  File "/Users/timothy.laurent/.virtualenvs/inv-text2struct/lib/python3.7/site-packages/dephell/models/dependency.py", line 69, in group
    raise LookupError('all dependencies are empty')
LookupError: all dependencies are empty

Config
See above
Versions

{
  "cache": "4.47Mb",
  "path": "/Users/timothy.laurent/.virtualenvs/inv-text2struct/lib/python3.7/site-packages/dephell",
  "python": "/Users/timothy.laurent/.virtualenvs/inv-text2struct/bin/python",
  "version": "0.8.1",
  "versions": {
    "dephell-archive": "0.1.6",
    "dephell-argparse": "0.1.2",
    "dephell-changelogs": "0.0.1",
    "dephell-discover": "0.2.10",
    "dephell-licenses": "0.1.6",
    "dephell-links": "0.1.5",
    "dephell-markers": "1.0.3",
    "dephell-pythons": "0.1.14",
    "dephell-setuptools": "0.2.3",
    "dephell-shells": "0.1.4",
    "dephell-specifier": "0.2.1",
    "dephell-venvs": "0.1.17",
    "dephell-versioning": "0.1.1"
  }
}

This seems to be an issue with (at least) dephell version 0.8.1 and 0.8.2.
In version 0.8.3 (the current version), this issue is not present anymore.
Therefore, this issue might be closed.


Allow user to specify the location of secured message context

Implements #1311. The motivation behind this is that the secured message context(s) hold key and key-related material, which some integrators may want to store separately in sensitive data storage. A split is desired, since this storage is often limited - we would like to avoid having to support the entire libspdm_context_t struct which can be quite large.
To do this, introduces new APIs which allows the user to allocated SPDM context and secured message contexts separately. Decided to add new APIs, rather than update the existing ones, to avoid extensive breaking change both internally and externally.
Existing APIs are now wrappers around the new APIs.
Updated documentation to alert users of this API.
Adds test as well, just to double check this code does what it says it does.
Signed-off-by: Timothy Prinz<EMAIL_ADDRESS>

Another approach considered was to simply add an API or a case in libspdm_set_data() that would allow the user to move/update the location of the secured message contexts after the SPDM context has been initialized.
I have a copy of this approach implemented as well - however, this was not preferred, as it would still require the user to allocate space for the secured message contexts appended to the SPDM contexts that would go unused.

Yeah, I think there's quite a bit more flexibility we can include with the context initialization, especially since so much of it is abstracted away from the user again.
With the above, I'm not sure whether the libspdm_init_context2() use case is necessary. We could either swallow it into libspdm_init_context1() (but then break the API), or expect the user to limit the amount of sessions supported via LIBSPDM_MAX_SESSION_COUNT at compile time, rather than runtime.
I see the reasoning for it, mostly I'm unsure how to decide between how many interfaces we want to support proactively versus support when requested.

I assume this patch will maintain the compatibility - the spdm_emu does not need to change with exiting APIs. Am I right?
I can understand why we have libspdm_init_context_with_secure_data_location() and libspdm_get_context_size_without_secured_context(). I suggest to make them consistent: change libspdm_init_context_with_secure_data_location() to libspdm_init_context_with_secured_context().
I dont understand why we need libspdm_secured_message_get_total_context_size() . Why not use libspdm_secured_message_get_context_size() * LIBSPDM_MAX_SESSION_COUNT ? I remember libspdm code has assumption on where the next secure_context is. How does it work if libspdm_secured_message_get_total_context_size() != libspdm_secured_message_get_context_size() * LIBSPDM_MAX_SESSION_COUNT ?

Updated according to review comments. Updated naming for better consistency. Changed allocation from complete block allocation to array, to allow for different locations for each secured message context.
Included number of contexts parameter to future-proof the API a bit - this way, we can change so that the API supports a smaller number of contexts than LIBSPDM_MAX_SESSION_COUNT without breakages. Since no use case for now, we only support one value.


Add support for async load more and isLoading state

Load more function is getting called multiple times and loader is constantly being shown, whether data has loaded or not
Load More should be Async and it should be maintained in state whether loader is shown or not

Any update on whether this PR Issue will be resolved?
I see an open PR.


Cache data sources upon access

Hi, I was trying out some of the data sources, and I notice that some of them can take a while to run, while also requiring an active internet connection. I know this suggestion introduces further headaches, but perhaps you should consider setting up a cache for the non-real time datasets?
For the requests based datasets, this would be as trivial as adding in requests-cache:
import requests_cache
requests_cache.install_cache('bridges_datasets')

Along with some kind of helpful expire_cache() call for students to use if the remote data changes for whatever reason.
The SPARQLWrapper stuff would probably be a bit messier, since that's using urllib under the hood. But it probably wouldn't be too hard to just make a little decorator for it. Heck, you could probably even reuse the architecture for requests_cache and keep it all in one place.
If this seemed worthwhile, I'm willing to turn this into a Pull Request. But I wanted to get a sense of whether this is a worthwhile direction.

Cory, we are indeed caching  some of the larger datasets like OpenStreetMap, the NOAA elevation map.  Is there something more and better we should be doing?

It's a little tough to tell exactly what I was working on then, but I believe it was the WikiData dataset.
My perspective was that all datasets should be cached, with some clever mechanism for easily letting students clear out that local cache. I'm a little less worried about speed than I am about internet stability and the need to not worry about being connected and such. I was expecting something like what Sinbad does. There are headaches and issues, but it seemed like a worthwhile fight to me.


Minification failed. Strict-mode does not allow assignment to undefined variables: Sortable

I'm getting this error when trying to minify sortable.js in Visual Studio 2015 (MVC project):

Minification failed. Returning unminified contents.
(689,213-221): run-time error JS1300: Strict-mode does not allow assignment to undefined variables: Sortable

Bindings:
jquery.binding.js and sortable.js v1.5.0-rc1
Not sure how to fix it, but as a work around I'm creating a separate script bundle that is not minified

The problem is the line 18 - it assigns factory() to the global object Sortable that is not defined before. This is not allowed in strict mode. I already created a fix for this issue long time ago, but it wasn't merged.
As workaround you can pass global context to the IIFE and assign Sortable to it, something like this:
(function(global, factory) {
    "use strict";

    // instead of Sortable = factory();
    global["Sortable"] = factory();
})(this, function() { return {}; });

Try master


InAppBrowser add hide() function

Short description of what this resolves:
the implementation of cordova-plugin-inappbrowser
dose not used inappbrowser.hide()
Changes proposed in this pull request:
ionic _native/dist/es5/inappbrowser.js
ionic _native/dist/es5/inappbrowser.d.ts
add hide method implementation
ionic _native/dist/esm/inappbrowser.js
ionic _native/dist/esm/inappbrowser.d.ts
add hide method implementation
also in ionic.native.js
Ionic Version:   2.x

I have a. Open or on the inappbrowser plugin that adds an option to the existing close method to hide not close.  No changes necessary to ionic-native once it gets merged, but you can fork the plugin and merge the change yourself.now.

Closing as this looks like the wrong repo.


Different behaviour with a binary crate if run with and without --test

I noticed that if tarpaulin is run against a binary crate, and a test target is specified with --test <target>, in addition to compiling and running the test executable tarpaulin is also running the crate main executable. When there is no --test <target> specified, tarpaulin does not do that.
To illustrate the behavior I made a minimal repo
Cargo.toml contains a [[test]] section, which maps integration target with tests/test.rs.
The latest Github action run has two jobs: without_target and with_target. In these jobs tarpaulin seems to be compiling and running the main binary in different ways.
without_target:
Nov 02 07:34:52.800  INFO cargo_tarpaulin: running /home/runner/work/foo/foo/target/debug/deps/foo-d43680ff337daf47

with_target:
Nov 02 07:35:03.433  INFO cargo_tarpaulin: running /home/runner/work/foo/foo/target/debug/foo

It looks like in case of without_target the /home/runner/work/foo/foo/target/debug/deps/foo-d43680ff337daf47 is considered a test, while in case of with_target /home/runner/work/foo/foo/target/debug/foo is just a regular executable.
In case of with_target the execution of /home/runner/work/foo/foo/target/debug/foo exits with a non-zero exit code, and the entire tarpaulin's run is considered failed because of this.
In my "real" crate I am using the clap crate, which always returns a non-zero exit code when the binary is run without any arguments, so this behavior of tarpaulin is affecting my tests.

@xd009642 Is there a workaround I can apply for the time being if I need to run unit and integration tests separately in CI? In my other repo (a library crate) I have two separate CI jobs running cargo tarpaulin --lib and cargo tarpaulin --test integration. That would obviously not work with a binary crate.

Hmm in your main.rs you could attributes so when ran under tarpaulin you get an empty main and when running normally you get your original main function:
#[cfg(tarpaulin)]
fn main() {}

#[cfg(not(tarpaulin))]
fn main() {
   // your actual main
}

I'll look at this after work, hopefully it's not a big issue

Right I've tracked it down, and whats more I had it fixed in some uncommitted changes on a PR I was working on that improves some of that part of the code. I'm just adding tests and finishing off that PR then I'll merge it and do a release tonight if there's time, otherwise do one tomorrow probably

Right the release is happening right now (once CI finishes). It's fixed on your minimal example and I've added a test to make sure it won't regress.

I re-ran the CI in my repo, and can confirm the issue is fixed now. Thank you so much for the quick reaction! 🚀


Remove tbdex-messages folder?

Covered by tbdex-protocol/lib now, yes?

Closing as no longer relevant to this repo


[FEATURE] Upload java zips to maven, pull zip from maven in CDK

Is your feature request related to a problem?
Lack of versioning in java lambda package makes it hard to roll back to a previous version.
What solution would you like?
Upload and version the lambda files to Maven, and when deploying with CDK, pull the files down from Maven.

[Catch All Triage - 1, 2, 3]


Test the packaged tox version as well

https://bugzilla.suse.com/show_bug.cgi?id=1232072

Sadly, this is still broken:
Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 583, in _build_master
    ws.require(__requires__)
  File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 900, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 791, in resolve
    raise VersionConflict(dist, req).with_context(dependent_req)
pkg_resources.ContextualVersionConflict: (filelock 3.0.12 (/usr/lib/python3.6/site-packages), Requirement.parse(\'filelock<4,>=3.4.1\'), {\'virtualenv\'})

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/bin/tox", line 6, in <module>
    from pkg_resources import load_entry_point
  File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 3251, in <module>
    @_call_aside
  File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 3235, in _call_aside
    f(*args, **kwargs)
  File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 3264, in _initialize_master_working_set
    working_set = WorkingSet._build_master()
  File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 585, in _build_master
    return cls._build_from_requirements(__requires__)
  File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 598, in _build_from_requirements
    dists = ws.resolve(reqs, Environment())
  File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 786, in resolve
    raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The \'filelock<4,>=3.4.1\' distribution was not found and is required by virtualenv
')


Clojure compilation of tensor code just worked ~~ (first time)

I managed to compile generic tensor code:
(defn convert-bgr-bytes-to-floats
  "Input is unsigned bytes, so values 0->255, bgr [height width 3].
Output: {:datatype :float32 :shape [3 height width]}, values from -0.5->0.5"
  [input-tensor]
  ;;Move to bgr instead of rgb  Also drop alpha if exists in first place.
  (-> (ct/select input-tensor :all :all [2 1 0])
      (ct/transpose [2 0 1])
      ;;First actual operation that is compiled.
      ;;Rest of the work.  These should all get rolled into assignment step above.
      (ct/static-cast :float32)
      (ct/div 255.0)
      (ct/sub 0.5)))

(defn compile-bgr-bytes
  [& {:keys [driver-name]
      :or {driver-name :cpu}}]
  (let [graph (-> (compiler/compute-graph)
                  (compiler/make-variable :image-width)
                  (compiler/make-variable :image-height)
                  (compiler/make-variable :image-channels)
                  (compiler/make-tensor-and-buffer :input [:image-height :image-width :image-channels] :dtype :uint8))
        input-tensor (compiler/get-tensor graph :input)]
    (assoc (compiler/compile-fn (comp-base/get-driver driver-name) graph convert-bgr-bytes-to-floats input-tensor)
           :driver driver-name)))

(defn convert-bgr-bytes-to-floats-by-hand
  [input-tensor result-tensor]
  (let [^bytes ary-data (.data ^ByteArrayView (:buffer input-tensor))
        [height width n-channels] (ct/shape input-tensor)
        height (long height)
        width (long width)
        n-channels (long n-channels)
        n-elems (long (* height width 3))
        ^floats retval (.data ^FloatArrayView (:buffer result-tensor))]
    (parallel/parallel-for idx n-elems
           (let [pixel (quot idx n-channels)
                 channel (rem idx n-channels)
                 x-pos (rem pixel width)
                 y-pos (quot pixel width)
                 dest-channel-stride (* x-pos y-pos)]
             (when (< channel 3)
               (aset retval (+ pixel
                               (* (- 2 channel) dest-channel-stride))
                     (float (- (/ (aget ary-data idx)
                                  255.0)
                               0.5))))))
    result-tensor))

tvm-clj.compute.compile-fn-test> (time-tests)
java tensor ops took:  "Elapsed time: 7661.258735 msecs"

hand-coded java took:  "Elapsed time: 557.899507 msecs"

Compiled tensor took: "Elapsed time: 342.164241 msecs"

nil

I ran it on an image of dimensions: 2988x5312x3
https://github.com/tech-ascent/tvm-clj/blob/master/test/tvm_clj/compute/compile_fn_test.clj
This is huge for a lot of reasons.  One interesting thing to note is that the java versions produce incorrect results due to the fact that the jvm doesn't support unsigned datatypes.  The tvm version produces the correct results (at least for the first 10 numbers; I checked).
I used a custom indexing scheme for the input tensor so I could support a compiled version of the bgr translation.
Thoughts?

was traveling in last few days, this is great! Once you feel it is good to reach out to folks, maybe you could send a guest blogpost to tvmlang.org . I am less familiar with what clojure users care about but maybe you have better ideas of motivating examples

I am also less familiar with clojure users than one might think.  I like it and am very productive with it so that is good enough for me.  TVM is a great counterpart to clojure regardless as the Venn diagrams of their respective strengths do not overlap.
I sprinted to get the above to work; it is really more of a vision of what could be than a reality.  I only support injective kernels and I did the kernel combining manually as opposed to using the scheduling system to do it.  The TOPI library has a lot of very good complex pieces that I want to comb through and the other articles on the tvmlang.org page contain quite a lot of valuable information.
So, thanks, I will start working on what will probably be a series of blogposts because I am targeting at least 2 non-overlapping audiences; the core talent behind clojure and the core talent behind tvm.


Build visibility should be determined by github

A quick look over the code base and it wasn't immediately clear if ownership of a repo is ever verified after it is created, or if different collaborators can view builds for various private repos which they may be part of but did not set up the linting themselves.

Related #66