Possible leak using Guice

Hello!
We are using Guice as a DI Framework for a backend microservice. Recently I've been tracking the status of our service and it looks like we have some kind of classloading leak (Metaspace keeps increasing).
HOW WE ARE USING IT
Our service is in charge of running some process from within a provided jar. That process levarages Guice so that required dependencies are injected.
To do so, we create a new ClassLoader (ChildFirstClassLoader) from every new process to be executed. The classloader hierarchy ends up being:

ApplicationClassLoader: Classpath contains all the service classes, including Guice's

ChildFirstClassLoader:  Contains dynamically loaded Jar classes.

Basically, every class in the loaded jar, is loaded by the ChildFirstClassLoader (once for every new jar), while all Guice's classes are loaded by the ApplicationClassLoader, only once.
WHAT I AM SEEING
I took a heapdump of the JVM and, indeed, I am seeing a lot of instances of our ChildFirstClassLoader with strong references, even after those processes have ended.
If I check the paths to GC roots, I see a lot of the following:

So, If I am reading the information properly, everytime BytecodeGen.fastClass() is called, that ends up storing a reference to an anonymous class: com.google.inject.internal.aop.AbstractGlueGenerator$$Lambda$2202+0x00000008021e6278, that internally, holds a reference to my class (or a proxy created by guice), which was loaded by the ChildFirstClassLoader.
Looks like the anonymous class from com.google.inject.internal.aop.AbstractGlueGenerator is a Function<> returned from the method: bindSignaturesToInvokers(). I think the call stack is something like:

AbstractGlueGenerator.bindSignaturesToInvokers()
AbstractGlueGenerator.glue()
ClassBuilding.buildFastClass()
ClassValue.computeValue()
BytecodeGen.fastClass()

Can you help me understand if I am reading this correctly?
What could be a possible solution to this?

Calling ClassValue.remove() from within Guice at some point? But I don't think there is a way to identify the lifecycle of the DI container.
Making the function returned from bindSignaturesToInvokers() hold a weak reference to the method?

Let me know if you need more information or if you find any errors in my analysis.
Just in case it's relevant, we are using Guice version 5.1.0
Thanks!

The generated glue held inside that ClassValue should be unloaded when the host class (ie. the application class) is unloaded, which is when its class-loader is able to be unloaded. I can double-check with a simple test app, but it sounds like something else is keeping your child class-loaders alive, which then keeps those generated fast-classes alive.
Is your code publicly available?
Note if you don't need bytecode generation then you can turn it off with:
-Dguice_bytecode_gen_option=DISABLED

but that would also mean you couldn't do method interception.

Sorry, the code is not public.
The only strong references I am seeing are from Guice. But, maybe once the weak/soft references are cleaned, since Guice's references will be the only ones, they will be cleaned as well? I could check that.
In which scenario would we be using method interception?

As for injection, we do field and constructor injection with @ Inject

Awesome! I will try to figure out if there is anything else preventing the Class Loader to be unloaded.
In the meantime, I will try using that flag, I don't think I require method interception. Maybe I can isolate the root problem better.
Thanks for the quick response!


时间选择器BUG

[ ] I'm sure this does not appear in the issue list of the repository

Basic Info

Package Name And Version<EMAIL_ADDRESS>Browser: chrome<IP_ADDRESS>
Reproduction Link: https://stackblitz.com/edit/cz43rz?file=src%2FApp.vue

Steps to reproduce
时间应该是[00:00:00,23:59:59]，但是选几下就会变成[23:59:59,00:00:00]

发错地方了噢，vue的repo是这个：https://github.com/arco-design/arco-design-vue


PS* properties overshadow properties of the same name in registry

Prerequisites

[X] Write a descriptive title.
[X] Make sure you are able to repro it on the latest released version
[X] Search the existing issues.
[X] Refer to the FAQ.
[X] Refer to Differences between Windows PowerShell 5.1 and PowerShell.

Steps to reproduce
New-ItemProperty -Path Registry::HKEY_CURRENT_USER\SOFTWARE -Name PSPath -PropertyType String -Value C:\
Get-ItemProperty -Path Registry::HKEY_CURRENT_USER\SOFTWARE -Name PSPath | select-object -ExpandProperty PSPath

Expected behavior
C:\

Actual behavior
Microsoft.PowerShell.Core\Registry::HKEY_CURRENT_USER\SOFTWARE

Error details
No response
Environment data
Name                           Value
----                           -----
PSVersion                      7.2.0-preview.8
PSEdition                      Core
GitCommitId                    7.2.0-preview.8
OS                             Microsoft Windows 10.0.21390
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           <IP_ADDRESS>
WSManStackVersion              3.0

Visuals
No response

🤔 I'd imagine the same happens for added PS* properties in other providers too. Not sure if there's a workaround for this kind of case.

It will definitely happen everywhere where PS* properties are mixed with raw kv maps.

You can use the provider to open the key but then use .NET to get the property/name as well to simplify things
(Get-Item HKCU:\SOFTWARE).GetValue('PSPath')


Kit Manager guesses Kits after Server Restart

After every Restart of my Server my kits are not available.
They´re still in the Kits folder but the Kit Manager doesnt recognize them.
I just get the Message : Kit XXX doesn´t exist.

Please provide the console log around the incident.

This issue is now closed after one month of inactivity. Feel free to reopen it if the problem arises.


Add some spreadsheets and change links of others

The previous PR was deleted because I ended up rebasing  my fork while trying to resolve the merge conflict (I learnt something new, at least), apologies for that. This is one similar to the last, except that it doesn't have Marion Zimmer Bradley and Katherine MacLean, since these spreadsheets are too incomplete yet. I can add them when they are more complete.
As an aside, so far the list seems to be in order of addition, perhaps change it to alphabetical order might be preferable? Just a suggestion.

Thanks! Order doesn't really matter I don't think, people will use 'find on page' if they're looking for something particular.


Make ConvertUMAMaterials convert the Standard materials to URP Lit

Necessary when importing more content (3rd party content made for Standard Shader) into a URP project.

Approved


minimal next.js bundle 185kb gzipped

Bug report
Describe the bug
Thanks for the great library, we have been very glad to use it.
My bug report is that In the FAQ it says "a small next.js bundle is around 65kb gzipped". I've been doing some performance auditing today and I'm curious if I'm doing something wrong or not, because with React, ReactDOM and Next.js  in a hello world app I'm seeing a 185kb main.js file.
Is there a minification step I need to include? Should the example be updated with this? main.js seems to be gzipped from looking at the headers and trying to compress it with compression and seeing no difference.
I'm using a custom server from the example to reproduce this, and typescript, although that shouldn't make a difference.
To Reproduce
Using the custom server typescript example:
yarn create next-app --example custom-server-typescript custom-server-typescript-app
npm run build
npm run start
navigate to localhost:3000 in Firefox, go to network tab and look at mainjs:

Expected behavior
Bundle size should be less than 65kb as this is a hello world app with an unrealistically small number of extra dependencies / code
Screenshots
System information
    "next": "^6.0.3",
    "react": "^16.4.0",
    "react-dom": "^16.4.0",

Thanks!

Wanted to add that i just used npx create-next-app --example hello-world with the same result, so its not related to the custom server or any of the packages in the typescript example

Sounds like it's not a production bundle, you're seeing the size of HMR, sourcemaps, etc... My main.js goes from 1.2MB -> 305kB.

Hmm thanks glad to hear that. So i guess my question would be how can i avoid getting that stuff in my build? I would have thought next build and next start would not include sourcemaps and HMR?

I suspect you are not doing this properly in server.js:
const next = require('next')
const dev = process.env.NODE_ENV !== 'production'
const app = next({ dir: '.', dev })

https://github.com/zeit/next.js/blob/a411b3550887e12145ea07bbcca60b170ca243fd/server/index.js#L30

it's "65kb gzziped". You need to enable compression on express server (or proxy server like nginx).

So to clear this up. Next.js's server doesn't implement gzip, as a reverse proxy like nginx is usually better suited to handle gzip/brotli. As you can see here: https://hello-world-jfzvyxevhz.zeit.sh/ with brotli/gzip enabled by default on https://now.sh the commons bundle is 62.3KB, the pages are 4.5KB and 1.6KB.
This is done without any modifications:

yarn create next-app --example hello-world hello-world-app
cd hello-world-app
now

Also to clear up confusion between the commands:

next or next dev - dev server
next build - build for production
next start - start for production

When using a custom server the dev flag acts as a switch between development and production server.

Fun fact, the faq item mentioning a 65kb bundle size was added here: https://github.com/zeit/next.js/pull/444 at the beginning of the project.

Chiming in, for me a fresh install of next with only one line in a single page comes to 185kb uncompressed main bundle, compressing down to 61kb on L6 compression (default level for the compression() module).
Said bundle will take ~200ms to unzip, parse and execute on a low-end phone (~5 years old), at a cost of ~1.2 seconds to download for a total cost of 1.4 seconds. On desktop on an average connection the entirety of download, parse, execute will be <200ms.
FYI.

@codinronan Wow, you're even more conservative than me if you use 50kb/s dialup as your mobile speed assumption! :rofl:

@NathanielHill hehe, that's for 2nd- and 3rd world connection speeds, which for one of my clients is relevant, for another it is not. Even still, for the US company, we aim for <200kb (minzipped) of JS to be delivered in the first page load. The main.js bundle blows up really, really fast.
Inside the US you can assume ~5mbps which gets you pretty good times on a mid-level, ~2 year old phone.
I'm starting a new project that WILL be aimed at people outside the US so I am cognizant that most of them are on much slower connections and am aiming at < 130kb initial JS. Still, Next is very competitive in the size of its initial bundle.

I'm also in a "2nd" world market, so well aware of the issues. 90%+ is strictly mobile, Luckily internet and mobile infrastructure is quite advanced here for the region, and we recently got a Cloudflare PoP :+1:
I find latency to be the biggest killer for such connections and so reducing total network requests required for first paint is also critical. HTTP/2 will help, but you're also running into limitations of TCP design at this level. Interesting reading: https://tylercipriani.com/blog/2016/09/25/the-14kb-in-the-tcp-initial-window/
Zeit is pretty good for small bundle sizes :tada:


Modified parameter name that is different from README.

It seems that the parameter of "data_file" is different from the command provided in the README, which refers to the parameter as "data_path" in this line of eval_math.py.

Thanks for your kind notification, it has been fixed.


fix securityContext

Currently the securityContext is inherently broken.
This should be somewhat of a fix/redesign

@Ornias1993 could you bump the chart version? As long as it works for you I'm happy to merge this as long as it worked for you.

@james-d-elliott It's an untested example, just shared for reference purposes.

Ah understood. Thanks!


perf+test: More tsfresh updates

Please do not approve until https://github.com/pola-rs/polars/issues/11736 is merged into main. Right now some unit tests are failing because of this issue.

Added unittests for all entropy features
Greatly improved perf for mean_change.
Improved Perf for time_reversal_asymmetry_statistic by reducing multiplications (but we need to do more additions). Multiplications are generally slower. This optimization only affects bigger time series.
Tuned absolute_energy in the eager case when time series is long, as NumPy's dot seems to outperform Polars's dot by a lot in that case.
Reverted the .cast() which was put there to avoid the issue mentioned above. Last checked the issue remains in 0.19.9.
Improved permutation entropy in the case tau = 1 by simplifying it a little bit. tau = 1 is the most common case and we get a 5-10% speed up on my machine.
Improved perf for index_mass_quantile by noting that x.abs().cumsum() is naturally sorted. This means using .searchsorted (O(log n)) instead of casting to boolean and then arg_max (O(n)) will be faster. Note arg_max on boolean has a shortcut which returns when the first true is found. This shortcut happens more often when q is small. However, casting to boolean still takes time. There are still more technical nuisance with regard to searchsorted . E.g. It doesn't do well when the search item is float but when series is int, etc.. But after some work those issues can be worked around and in the worst case performs on par with old implementation.
Improved perf for linear_trend by a constant factor by reducing redundant computation and some math tricks.
Improved perf for eager lempel_ziv_complexity with Rust. (reduced runtime by 60%+)

Still waiting. The issue has been solved, we just need to wait for the next release now (0.19.11)

Polars 0.19.12 is out


Drop redundant hashing step in FRI Merke tree building

After discussing with @AlexanderLemmens it seems as though there is a redundant hashing step in the construction of FRI Merkle trees. The leaf is obtained from hashing an XFieldElement; the Merkle tree is then build out of such leafs. However, we can drop this step at no cost to security and instead start building the Merkle tree directly on top of these XFieldElements.
The next question is why we don't hash together 3 rather than 2 XFieldElements in the bottom layer. While this does generate a speedup for the prover, it also complicates matters a bit. We would need support for Merkle trees that are ternary at the bottom.

If I understand correctly, the XFieldElements that are hashed come from the codeword, which is the whole FRI domain subgroup. If we don't need to initially hash the XFieldElements to form digests, can't we partition the FRI domain into Digest-sized chunks rather than XFieldElement-sized chunks and use the regular Merkle hashing on those? (Since DIGEST_LENGTH is not a power of 2, some padding would be necessary towards the end.)

the codeword, which is the whole FRI domain subgroup

The XFieldElements do come from the codeword, but the codeword is not the FRI domain. The codeword is the evaluation of some low degree polynomial on all elements of the FRI domain. (This FRI domain corresponds to a coset of a subgroup of order $2^k$.) Since this polynomials has coefficients living in the X-field, its evaluations also live in the X-field. So in the end the codeword consists of $3 \cdot 2^k$ B-field elements. You can partition it any way you like but at some point the verifier needs to read an X-field element with a given index, and it would be inconvenient if this one X-field element is spread out over two leafs, particularly if those two leafs are not siblings.

it would be inconvenient if this one X-field element is spread out over two leafs, particularly if those two leafs are not siblings.

Would it be that inconvenient if those two leafs were siblings/neighbors?
                    ...                                         ...
                  /     \                                     /     \
[xa0 xa1 xa2 xb0 xb1] [xb2 xc0 xc1 xc2 xd0] [xd1 xd2 xe0 xe1 xe2] [xf0 xf1 xf2 xg0 xg1] xg2 ...

where xa = [xa0 xa1 xa2] is the first X-field element of the codeword, and so on.
If you hash the leafs by reading in the B-field elements backwards, I think you could find the root efficiently by hashing pairs of digests using stack memory entirely, without resorting to RAM.

at some point the verifier needs to read an X-field element with a given index

Ah, I overlooked this part.
Must the X-field element with a given index correspond to a root in the tree for verifying that it's a member in the tree? In that case, I suppose that does make for extra book-keeping since an authentication path potentially needs to cover two leafs.

Must the X-field element with a given index correspond to a root in the tree for verifying that it's a member in the tree? In that case, I suppose that does make for extra book-keeping since an authentication path potentially needs to cover two leafs.

Exactly correct.

Fixed in 2a9a9892.


ENH: enable multiple models running on a single device

Is your feature request related to a problem? Please describe
Currently, our system assigns each model to a unique GPU device. While this approach ensures protection against out-of-memory (OOM) errors, it isn't optimal in terms of resource allocation and can lead to underutilization of GPU memory.
To enhance our GPU resource management and utilization:

Implement fine-grained GPU memory control mechanisms.
For Large Language Models (LLM):

Consider the following components for GPU memory allocation:

Model weights
Activations
Key-value (kv) cache

For non-LLM models:

GPU memory allocation should take into account:

Model weights
Activations

By calculating and monitoring the GPU memory requirements of each model, we can intelligently allocate multiple models to run on a single GPU device when memory allows. This will ensure efficient GPU resource utilization without compromising on performance or risking OOM errors.

Would like to see this being developed further as default or easily manageable through Docker. Currently it is not in the docs, and alternatives like Ollama does not include rerankers.
Cross-referencing these two issue: https://github.com/xorbitsai/inference/issues/503 https://github.com/xorbitsai/inference/issues/1228


Bug: in Windows, media file url created from drag and ctrl won't work

When you add videos with drag and drop to a note, the plugin does not find the correct subtitle path.

https://help.obsidian.md/User+interface/Drag+and+drop#Dragging+from+outside+Obsidian

Steps:
-Select the video from the file explorer
-Leave CTRL pressed
-Drag the video to the note
Maybe the problem is that the file path is different.

This is obsidian issue. It seems to create invalid file url with escaped "". I could come up with a patch, meanwhile it should be upvote this bug report: https://forum.obsidian.md/t/incorrect-file-urls-generated-by-drop-on-windows/22429/2

I added my vote, I hope they solve it.

fixed in beta2, see if it's fixed

The videos work, the problem is the subtitles.


build options file

package core

source = src
output = build

Let's postpone this to the future for needed, and maybe we can use existed file format?


Add Huang_invariant tomorrow

Follow this paper https://arxiv.org/abs/2105.06074v1 on page 7.
The code should be on character polynomial

Already added, pending checking with PyPi upload

Looks good


Ratify helm chart should provide way to override notation trusted identities

What would you like to be added?
Provide way to override notation trusted identities in helm chart. Currently it is set to *.
https://github.com/ratify-project/ratify/blob/dev/charts/ratify/templates/verifier.yaml#L40
          trustedIdentities:
            - "*"

Values could have notation.trustedIdentities property.
notation:
  enabled: true
  trustedIdentities:
  - arn:aws:signer:us-west-2:1234567890:/signing-profiles/my-account-signer

Anything else you would like to add?
The feature is required as we use AWS signer and want to verify signature created only by our account specific AWS signer. The current workaround is disable the helm chart notation verifier and create one outside helm chart with required trusted identities.
Are you willing to submit PRs to contribute to this feature?

[X] Yes, I am willing to implement it.

I assume you can override the * with your aws signer identity in trustedIdentities, without additional development. Is there anything fails?

Hi @FeynmanZhou, It can be be done today ( by maintaining custom charts), but would be a better user experience if Ratify can expose this in the default chart.


fix: Workload detail expanded column OpenShift codeblock

RHINENG-8690
Before:

After:

/retest

Closing, this was merged in https://github.com/RedHatInsights/ocp-advisor-frontend/pull/700


Error while connecting mongodb to front end using React Js

Vue version
2
Link to minimal reproduction
https://stackoverflow.com/questions/72567320/typeerror-cannot-read-properties-of-null-reading-useref
Steps to reproduce

What is expected?

A runtime error is occurred while connecting the Mogodb with React Js But in VS code while running the npm start cmd no error is being captured, Kindly provide a solution
What is actually happening?
A runtime error is occurred while connecting the Mogodb with React Js But in VS code while running the npm start cmd no error is being captured, Kindly provide a solution
System Info
No response
Any additional comments?
No response

I didn't see a vue-related description in the issue, nor in the link given, which seems to have nothing to do with vue
If you really encounter a problem related to vue, please provide a code repository that can reproduce the problem.


When trying to run "./fracture -test 1" I get an error message

Everything has been installed, but when I try to run "./fracture -test 1" from the ziran2019/build/Projects/fracture directory, it just gives me the error: "-bash: ./fracture: No such file or directory." Is there something I'm missing in the setup guide?

This looks like the binary is not located in ziran2019/build/Projects/fracture, maybe check whether it is located in some subfolder like build/?


[BUG] There is such an exception in next 15

Reproduction Steps:

Use siwe auth.
Connect to the network.
When the Sign In pop-up appears, an error will be reported (but it does not affect usage).

Having the same issue here even without using SIWE

Same issue I have in nextjs 15

Quick solution is switching to reown's appkit which went almost really smooth )

Quick solution is switching to reown's appkit which went almost really smooth )

I've already been forced to switch, but I prefer the simplicity of ConnectKit。😮💨


Various ESLint fixes for src/index.js

This looks good, but there are major PR's floating right now that this might interfere with.
Let's hold off with merging this.


nodejs 22.0.0 and npm login fails

Your Environment

verdaccio version: 5.30.3
node version 22.0.0
package manager: yarn@1
os: Ubuntu 22.04
platform: VM

Describe the bug
Running the Verdaccio server with Node.js 21 doing a npm login from the client works fine. Running Verdaccio with Node.js 22.0.0 gets a server side error and the process exits.

To Reproduce
Run the server with Node.js 22. On the client, run npm login.
 fatal--- uncaught exception, please report this
TypeError: (0 , _crypto.createCipher) is not a function
    at aesEncryptDeprecated (/var/lib/verdaccio/deployment/node_modules/@verdaccio/signature/build/legacy-signature/index.js:26:38)
    at Auth.aesEncrypt (/var/lib/verdaccio/deployment/node_modules/verdaccio/build/lib/auth.js:479:48)
    at jwt.jwt (/var/lib/verdaccio/deployment/node_modules/verdaccio/build/lib/auth-utils.js:126:20)
    at new Promise (<anonymous>)
    at getApiToken (/var/lib/verdaccio/deployment/node_modules/verdaccio/build/lib/auth-utils.js:125:18)
    at callbackAuthenticate (/var/lib/verdaccio/deployment/node_modules/verdaccio/build/api/endpoint/api/user.js:42:56)
    at /var/lib/verdaccio/deployment/node_modules/verdaccio/build/lib/auth.js:129:18
    at /var/lib/verdaccio/deployment/node_modules/verdaccio-htpasswd/build/htpasswd.js:122:14
verdaccio@orca6:~/deployment$

Expected behavior
The server to continue running.
Environment information

  System:
    OS: Linux 6.5 Ubuntu 22.04.4 LTS 22.04.4 LTS (Jammy Jellyfish)
    CPU: (4) x64 DO-Regular
  Binaries:
    npm: 10.5.2 - /opt/amd64-linux/nodejs-22/bin/npm

Contribute to Verdaccio

[ ] I'm willing to fix this bug 🥇

It was a deprecated API probably not longer supported in v22, I haven't checked the changelog

Indeed, crypto.createCipher has been removed in v22 (and was marked to be removed in verdaccio 6):
https://github.com/verdaccio/verdaccio/blob/6cf165b405e51d4c804ab87fb1bf702c2bbfe221/packages/signature/src/legacy-signature/index.ts#L14C17-L18
updated links:
https://nodejs.org/docs/latest-v21.x/api/crypto.html#cryptocreatecipheralgorithm-password-options https://www.grainger.xyz/posts/changing-from-cipher-to-cipheriv

and was marked to be removed in verdaccio 6

@mbtools not entirely, still by default but easy to be disabled, to avoid breaking changes, but now I'm thinking this through the replacement of the deprecated function will invalidate all tokens https://nodejs.org/docs/latest/api/crypto.html#cryptocreatecipherivalgorithm-key-iv-options which might be a breaking change, but since Node.js is forcing this upgrade, might need to happen.

It will invalidate only tokens that used the old, insecure function. That would be a good thing actually. We would not want to impact other scenarios.

It will invalidate only tokens that used the old, insecure function. That would be a good thing actually. We would not want to impact other scenarios.

Let me think in something, I'll test on #4608 few scenarios.

It will invalidate only tokens that used the old, insecure function. That would be a good thing actually. We would not want to impact other scenarios.

ok, let me resume what's going on with this issue.

Verdaccio 5.x (even 6.x) is not compatible with Node.js 22 because the createDecipher API was removed and is used by default and the application crash.
Only affect npmjs users, Docker users are save since the image runs on Node.js v21 and I control that.
Even if I would like to switch to createCipheriv (already implemented) I'd face few issues:

The current secret tokens at the storage are 64 characters long and  createCipheriv requires 32 characters top, with the current secrets store in every current verdaccio installation would fail silently) the current function aesEncrypt just return undefined instead a token.
I have access to rewrite the secret on every server, I shouldn't do that, would be a breaking change and should be done by each user, but since this is a major change in Node.js is something might need to happen.

So, I am considering few options while testing locally:

If the user upgrades to a version higher the current one (5.30.3) and enabling createCipheriv by default would need to truncate the secret on startup and displaying a warning but without modifying the .verdaccio-db.json storage

it might be missleading because what is on memory vs on storage is different
it won't help users migrate easily to major versions (future 6.x)
it sounds like a breaking change

Save a new truncated secret at  .verdaccio-db.json storage and notify that at the logs somehow.
Just block verdaccio to run on versions higher than Node.js 21 (I don't like it at all)
Detect Node.js version and force migrate token  and usage of createCipheriv if is higher than v22 (it would be like a small auto-upgrade) , if is minor to v22 the life continues as it is.

Well, I haven't taken a decision yet, just sharing my current thoughts.

I found this to create a backward compatible solution using createDecipheriv and evp_bytestokey. Could be another option.

I found this to create a backward compatible solution using createDecipheriv and evp_bytestokey. Could be another option.

Seems to be, I'll run some tests thanks for the suggestion.

I found this to create a backward compatible solution using createDecipheriv and evp_bytestokey. Could be another option.

Seems to be, I'll run some tests thanks for the suggestion.

The Stack Overflow author also wrote this:

However the reason this function is deprecated in the first place is because you shouldn’t use it, and instead use a random unpredictable IV…

You could generate new tokens for new logins with the newer functions and fallback to trying to read the token with this code if that fails and telling people they need to regenerate tokens if the fallback is needed. Then give users N months before the fallback code is deleted.
can you put a version identifier in the front of the token to support versioning?

I found this to create a backward compatible solution using createDecipheriv and evp_bytestokey. Could be another option.

Seems to be, I'll run some tests thanks for the suggestion.

The Stack Overflow author also wrote this:

However the reason this function is deprecated in the first place is because you shouldn’t use it, and instead use a random unpredictable IV…

You could generate new tokens for new logins with the newer functions and fallback to trying to read the token with this code if that fails and telling people they need to regenerate tokens if the fallback is needed. Then give users N months before the fallback code is deleted.
can you put a version identifier in the front of the token to support versioning?

@blair I'll take note of your thoughts, the versioning make sense let's open a new discussion about it.
@mbtools maybe this helps https://github.com/verdaccio/verdaccio/pull/4612 as first step

@blair would be great if you give it a try. I haven't published to npmjs yet, waiting for feedback.
npm install -g<EMAIL_ADDRESS>--registry https://registry.verdaccio.org

I'm getting this error:
$ npm install -g<EMAIL_ADDRESS>--registry https://registry.verdaccio.org
npm error code E401
npm error Unable to authenticate, your authentication token seems to be invalid.
npm error To correct this please try logging in again with:
npm error     npm login

npm error A complete log of this run can be found in: ~/.npm/_logs/2024-05-05T20_40_06_081Z-debug-0.log

Looking at ~/.npm/_logs/2024-05-05T20_40_06_081Z-debug-0.log:
odules/@verdaccio/file-locking lockfile@ OK for<EMAIL_ADDRESS>next.1 want: 1.0.4
227 verbose stack HttpErrorAuthUnknown: Unable to authenticate, need: Basic, Bea
rer
227 verbose stack     at /opt/amd64-linux/nodejs-22/lib/node_modules/npm/node_modules/npm-registry-fetch/lib/check-response.js:80:17
227 verbose stack     at process.processTicksAndRejections (node:internal/proces
s/task_queues:95:5)
227 verbose stack     at async RegistryFetcher.packument (/opt/amd64-linux/nodej
s-22/lib/node_modules/npm/node_modules/pacote/lib/registry.js:91:19)
227 verbose stack     at async RegistryFetcher.manifest (/opt/amd64-linux/nodejs
-22/lib/node_modules/npm/node_modules/pacote/lib/registry.js:129:23)
228 verbose statusCode 401

I'm getting this error:

$ npm install -g<EMAIL_ADDRESS>--registry https://registry.verdaccio.org

npm error code E401

npm error Unable to authenticate, your authentication token seems to be invalid.

npm error To correct this please try logging in again with:

npm error     npm login

npm error A complete log of this run can be found in: ~/.npm/_logs/2024-05-05T20_40_06_081Z-debug-0.log

Looking at ~/.npm/_logs/2024-05-05T20_40_06_081Z-debug-0.log:

odules/@verdaccio/file-locking lockfile@ OK for<EMAIL_ADDRESS>
next.1 want: 1.0.4

227 verbose stack HttpErrorAuthUnknown: Unable to authenticate, need: Basic, Bea

rer

227 verbose stack     at /opt/amd64-linux/nodejs-22/lib/node_modules/npm/node_modules/npm-registry-fetch/lib/check-response.js:80:17

227 verbose stack     at process.processTicksAndRejections (node:internal/proces

s/task_queues:95:5)

227 verbose stack     at async RegistryFetcher.packument (/opt/amd64-linux/nodej

s-22/lib/node_modules/npm/node_modules/pacote/lib/registry.js:91:19)

227 verbose stack     at async RegistryFetcher.manifest (/opt/amd64-linux/nodejs

-22/lib/node_modules/npm/node_modules/pacote/lib/registry.js:129:23)

228 verbose statusCode 401

My bad I will solve it tomorrow.

https://github.com/verdaccio/verdaccio/releases/tag/v5.31.0

Thanks for releasing it, it all worked for me!

why is it says it is working?

The same error is happening. Please re-open this.

Read the latest releases 🫠


Disable Attribute for Bootstrap Radio Button Options

Description
Setting disabled: true on a radio button option does not disable the option in bootstrap UI.
There was an issue #2489, which addressed this issue for Material UI and I see looking at the examples provided it does work. But, when use the Bootstrap UI sample for Radio and modify the template for an option to add disabled: true, it has no effect.
Minimal Reproduction
Using Bootstrap example provided (https://stackblitz.com/angular/gqydjyolbak?file=src%2Fapp%2Fapp.component.ts) for radio buttons, modify fields and add disabled: true for one of the options. When ran, the option is not disabled.
fields: FormlyFieldConfig[] = [
{
key: 'Radio',
type: 'radio',
templateOptions: {
label: 'Radio',
placeholder: 'Placeholder',
description: 'Description',
required: true,
options: [
{ value: 1, label: 'Option 1' },
{ value: 2, label: 'Option 2', disabled: true },
{ value: 3, label: 'Option 3' },
{ value: 4, label: 'Option 4' },
],
},
},
];
https://stackblitz.com/...
Your Environment

Angular version: 9.1.12
Formly version: 5.10.3

Additional context
Add any other context about the problem here.

This issue has been fixed and released as part of v5.10.4 release.
Please let us know, in case you are still encountering a similar issue/problem.
Thank you!

This is still a problem :(  For some reason [attr.disabled] is being overwritten by [formlyAttributes] unless Ivy is disabled.
It took me a long while to figure out why it was working on StackBlitz but not locally until I discovered that it was related to Ivy and StackBlitz has it disabled for some reason.

I have managed to workaround it for now by keeping Ivy and adding this extension:
import { FormlyExtension, FormlyFieldConfig } from '@ngx-formly/core';

export const RemoveDisabledExtension: FormlyExtension = {
  postPopulate(fieldConfig: FormlyFieldConfig) {
    if (!fieldConfig.templateOptions) {
      return;
    }

    fieldConfig.templateOptions = {
      ...fieldConfig.templateOptions,
      disabled: fieldConfig.templateOptions.disabled
        ? fieldConfig.templateOptions.disabled
        : undefined,
    };
  },
};

@mrfoster it should be fixed in https://github.com/ngx-formly/ngx-formly/releases/tag/v5.10.31


Not working on Synology DSM

Synology NAS devices run a customized Linux distro called DSM. When executing wg-access-server docker container on DSM I get this error:
time="2021-02-07T12:09:39Z" level=fatal msg="failed to set ip tables rule: running [/sbin/iptables -t filter -C WG_ACCESS_SERVER_FORWARD -s <IP_ADDRESS>/24 -j REJECT --wait]: exit status 2: iptables v1.8.3 (legacy): Couldn't load target ``REJECT':No such file or directory\n\nTry iptables -h' or 'iptables --help' for more information.\n" file="main.go:102"
This is caused by DSM iptables lacking the REJECT target kernel module.

Yes, same issue with my Synology DS1621xs+
DSM 7.0.1

Yes, same issue with my Synology DS3617xs
DSM 6.2.2379


Updated language in readme

The word "dumb" is often meant as synonymous to "stupid", but was originally used to refer to people with speech impairments and is still offensive to people with speech impairments. See: http://www.autistichoya.com/p/ableist-words-and-terms-to-avoid.html
Also yes, I am Alex, and it's amusing that I caught and modified this file manually.

Hahahah nice! I’m just doing some updates on alex (the other one). Thanks for the catch! :laughing:

It was meant to be. :wink: Thanks for your work on this.

:+1:


Finding no value via readable_identifiers should probably cause a failure

If the ontology passed in doesn't have an annotation axiom that can provide a readable identifier with which to construct a label (for example), dosdp-tools can:

Default to IRI text (current behavior).
Default to IRI text and log a warning (at the very least should move to this).
Throw an error and abort (would help prevent bad pipelines).

@dosumis and @cmungall thoughts?

Current behavior produces output like this: AnnotationAssertion(<http://purl.obolibrary.org/obo/IAO_0000115> <http://purl.obolibrary.org/obo/EO_0001009> "A treatment involving the use of http://purl.obolibrary.org/obo/CHEBI_24834"^^xsd:string)


fix config type convert bug for item with default null value

close https://github.com/vesoft-inc/nebula-exchange/issues/163

Codecov Report
Attention: 10 lines in your changes are missing coverage. Please review.

Comparison is base (fce806e) 56.15% compared to head (130d40c) 56.23%.

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@             Coverage Diff              @@
##             master     #164      +/-   ##
============================================
+ Coverage     56.15%   56.23%   +0.07%
  Complexity       89       89
============================================
  Files            18       18
  Lines          1729     1732       +3
  Branches        336      337       +1
============================================
+ Hits            971      974       +3
  Misses          570      570
  Partials        188      188

Files
Coverage Δ

...la/com/vesoft/exchange/common/config/Configs.scala
63.95% <52.38%> (+0.16%)
:arrow_up:

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


Feature Request: Add rule for hyphens similar to yamllint

Here's the hyphens rule in yamllint: https://yamllint.readthedocs.io/en/stable/rules.html#module-yamllint.rules.hyphens
the following code snippet would fail:
/path/to/file1:
  file.managed:
    -  contents: This is line 1

the following code snippet would fail:
/path/to/file1:
  file.managed:
    -contents: This is line 1

the following code snippet would pass:
/path/to/file1:
  file.managed:
    - contents: This is line 1

@roaldnefs I can work on this

@roaldnefs there was a dedicated pull request to covert that but it was closed? Are you interested in this feature request?

Closing this issue in favour of #240.

Closing this issue in favour of #240.


Update versions to match grpc-java docs

The new changes match versions in:
https://github.com/grpc/grpc-java/blob/master/README.md

LGTM, I'll take care of the test


Need to add dependabot support

Need to add a dependabot.yml file to this repository just like all of the others.
cc @eaba

closed via https://github.com/akkadotnet/Akka.TestKit.NUnit/pull/53


Buildkite: use new paths for cache and scratch

Overview
Changes the Buildkite pipelines to use the /cache directory, which should result in more cache sharing between buildkite agents (faster builds), and allow devops to more easily manage state left behind by wallet builds.
Buildkite
Buildkite nightly
Comments
After this is merged, the following directories can be cleaned up on the buildkite agents:

/build/cardano-wallet.cache
/var/lib/buildkite-agent/.hermes

bors r+


Add support for url attribute of Diagnostic API

See https://github.com/Microsoft/vscode/pull/61436. This adds support for the new url attribute of Diagnostic objects in the converters, so they can be forwarded to extensions using language servers like vscode-eslint (https://github.com/Microsoft/vscode-eslint/pull/562).
Edit: as far as I can see, the CI failure is because the Diagnostic url doesn't exist yet.

Closing because of https://github.com/Microsoft/vscode/pull/61436#issuecomment-437942788.


Make Brotli and optional dependency

Description

Move "brotli-size": "0.0.1" from dependencies to optionalDependencies
Put a try-catch around require('brotli-size') and move it inside case 'brotli':

in the catch, console.warn('Missing optional dependency: brotli-size')

Motivation and Context
It turns out the brotli-size (#194) is quite big and doesn't install very nicely on Windows.
See the following issues:
Fixes #202
Fixes #213

@siddharthkp Does travis need to install optional dependencies to run tests?

@siddharthkp @edmorley Any other changes requested?

@siddharthkp @edmorley I think I got it right this time 😄

I updated the title and description to reflect the changes requested

@siddharthkp: this is an issue even more with node.js 10.x and bundle-size depending on iltorb which doesn't have the bindings yet.

Ping @siddharthkp

@siddharthkp: thanks! I was going to downgrade bundle-size to be honest if it took more time because this fails for node 10.x.


Error getting all is None when using ZigZag Indicator

Hi.
I have been using your libraries for a while and they are working fine until today.
Everything is still the same and I have not edited a single piece of code. 2-3 days ago it was working fine but now it returns all None when using: indicators.get_zig_zag.
Looking forward to your support.
Thanks very much.

This can happen in certain combinations of quotes and parameters.
Can you provide those so we can review?
Also, have you upgraded the package version lately?

from stock_indicators import indicators
from stock_indicators import EndType
from datetime import datetime
import pandas as pd
from stock_indicators import Quote
from binance import Client, ThreadedWebsocketManager, ThreadedDepthCacheManager
from config import apiKey, secretKey
#pip install python-binance
#pip install stock-indicators

def _calc_dev(base_price, price):
    return 100 * (price - base_price) / base_price

def zigzag(quotes_list, df, dev_threshold=1):
    results = indicators.get_zig_zag(quotes_list, EndType.HIGH_LOW, dev_threshold)
    rs = list(results)
    lastPoint = 0
    dataOut={
        "Type":[],
        "Time":[],
        "Price":[],
    }
    countLow = 0
    countHigh = 0
    for r in rs:
        print(r.point_type, r.zig_zag)
        if r.point_type is not None:
            if r.point_type == "L":
                index = [i for i, x in enumerate(df['low']) if x == float(r.zig_zag)]
                countLow += 1
                if countHigh == 0:
                    countHigh += 1
            else:
                index = [i for i, x in enumerate(df['high']) if x == float(r.zig_zag)]
                countHigh += 1

            lastPoint = [x for x in index if x >= lastPoint][0]

            dataOut["Type"].append(r.point_type)
            dataOut["Time"].append(df['date'][lastPoint])
            dataOut["Price"].append(float(r.zig_zag))

    if countHigh > countLow:
        #lowest_l = sorted(i, x for i, x in enumerate(df['low'][lastPoint:], key=lambda x: x[1])[0]
        listLow = df['low'][lastPoint:]
        print(listLow.index.tolist())
        print(listLow[1498])
        lowest_l = sorted([(ind_l, listLow[ind_l]) for ind_l in listLow.index.tolist()], key=lambda x: x[1])[0]
        print(lowest_l)
        dev = abs(_calc_dev(lowest_l[1], dataOut["Price"][-1]))
        print(dev)
        if dev >= dev_threshold:
            dataOut["Time"].append(df['date'][lastPoint:][lowest_l[0]])
            dataOut["Type"].append("L")
            print(df['date'][lastPoint:])
            print(lowest_l[0])

            dataOut["Price"].append(float(lowest_l[1]))

    return dataOut

def GetLastZigZag(apiKey, apiSecret, symbol="BTCUSDT", interval=Client.KLINE_INTERVAL_1MINUTE, testnet=False):
    #client = Client("ad56fcd63ac989685da6bf14b2be2e9367ccbdd453c5b981644c5025e61de795", "7bfe2d101299e79cf6dd64be9c65764e89c58f5cee910839b10932d9fa172b5c", testnet=True)
    client = Client(apiKey, apiSecret, testnet=testnet)
    quotes_list=[]
    df = {
        'date':[],
        'open':[],
        'high':[],
        'low':[],
        'close':[],
        'volume':[],
    }
    raw = client.futures_klines(symbol=symbol,interval=interval,limit=1500)
    allHistory = raw[:-1]
    print(raw[-1])
    for history in allHistory:
        date = datetime.fromtimestamp(history[0]/1000)
        open = float(history[1])
        high = float(history[2])
        low = float(history[3])
        close = float(history[4])
        volume = float(history[5])
        quotes_list.append(Quote(date,open,high,low,close,volume))
        df['date'].append(date)
        df['open'].append(open)
        df['high'].append(high)
        df['low'].append(low)
        df['close'].append(close)
        df['volume'].append(volume)
    # Calculate 3% change ZIGZAG
    df = pd.DataFrame(df)
    df.to_csv('data.csv', index=False)
    dataOut = zigzag(quotes_list,df,1)

    df = pd.DataFrame(dataOut)
    print("===========")
    last1=df.iloc[len(df.index)-1]
    last2=df.iloc[len(df.index)-2]
    df.to_csv('result.csv', index=False)
    return last1, last2

last1, last2 = GetLastZigZag("cWVOtwoHC0OBbyGC5iyRJNYd2RXbM2k06zgSosE4iplLT6NkRLHrWFjFJEr6M1BA", "0wwbUJXpnSAJ80U0Pq2rnBaVnTQEGXA1KM4bNAVZJh9uEAMuL3cmepqGn5YhKnl0", symbol="BTCUSDT", testnet=False)

Here is my entire code
and stock-indicators version is 1.0.0
Thank you

Do you see anything odd in quotes_list or data.csv to indicate some bad data going into the zigzag analysis?  I’m also seeing results being transformed multiple times, does the original output have this problem?

The data is complete and nothing is missing

It’s hard to say what’s happening if it were working, then suddenly stopped.  If you did not change the library version in that time, it’s not likely the library itself that is the problem.  It’s static code.
Since you’re using smaller time periods, try reducing the percent_change parameter value.  If it’s too large, you’ll never get any initialization or triggered reversals.

@haluu0902 are you still seeking support on this issue?
Let us know if you need further assistance.


refactor(statusbar-padding): remove child selector

Short description of what this resolves:
Resolves an issue where  ion-navbars that are wrapped in an element/component within ion-header would not get the statusbar-padding applied.
This is my first PR, so it would be nice if someone could let me know if nested navbars are allowed (would break with this change).
Changes proposed in this pull request:

Removes the child selectors in the mixins toolbar-statusbar-padding and toolbar-title-statusbar-padding (src/platform/cordova.scss).

Ionic Version: 3.x
Fixes: #14132

Hello and thank you for contributing to Ionic! We have been working on porting all of the Ionic components to web components and have recently updated master to reflect this. This significant change has caused this pull request to break. While we really appreciate the time and effort you put into creating this, we are not able to merge it because of the newly introduced conflicts. We are extremely sorry about this. We will not be merging any more features in to v3. If this is a feature and you have the time, please resubmit this PR against the master branch. If this is a critical security issue in v3, we would greatly appreciate it if you would resubmit the PR against the new v3 branch. Thanks so much for your time!

anyway, if anyone needs this fix right now, add this to your app.scss:
// --
// Fix status bar padding

@mixin toolbar-statusbar-padding($toolbar-height, $toolbar-padding, $content-padding, $cordova-statusbar-padding) {
	.toolbar.statusbar-padding:first-child {
		@include padding(calc(#{$cordova-statusbar-padding} + #{$toolbar-padding}), null, null, null);
		@include padding(calc(constant(safe-area-inset-top) + #{$toolbar-padding}), null, null, null);
		@include padding(calc(env(safe-area-inset-top) + #{$toolbar-padding}), null, null, null);

		min-height: calc(#{$toolbar-height} + #{$cordova-statusbar-padding});
		min-height: calc(#{$toolbar-height} + constant(safe-area-inset-top));
		min-height: calc(#{$toolbar-height} + env(safe-area-inset-top));
	}

	ion-content.statusbar-padding:first-child .scroll-content {
		@include padding($cordova-statusbar-padding, null, null, null);
		@include padding(constant(safe-area-inset-top), null, null, null);
		@include padding(env(safe-area-inset-top), null, null, null);
	}

	ion-content.statusbar-padding:first-child[padding] .scroll-content,
	ion-content.statusbar-padding:first-child[padding-top] .scroll-content {
		@include padding(calc(#{$content-padding} + #{$cordova-statusbar-padding}), null, null, null);
		@include padding(constant(safe-area-inset-top), null, null, null);
		@include padding(env(safe-area-inset-top), null, null, null);
	}
}

@mixin toolbar-title-statusbar-padding(
	$toolbar-height,
	$toolbar-padding,
	$content-padding,
	$cordova-statusbar-padding
) {
	.toolbar.statusbar-padding:first-child ion-segment,
	.toolbar.statusbar-padding:first-child ion-title {
		@include padding($cordova-statusbar-padding, null, null, null);
		@include padding(constant(safe-area-inset-top), null, null, null);
		@include padding(env(safe-area-inset-top), null, null, null);

		height: calc(#{$toolbar-height} + #{$cordova-statusbar-padding});
		height: calc(#{$toolbar-height} + constant(safe-area-inset-top));
		height: calc(#{$toolbar-height} + env(safe-area-inset-top));

		min-height: calc(#{$toolbar-height} + #{$cordova-statusbar-padding});
		min-height: calc(#{$toolbar-height} + constant(safe-area-inset-top));
		min-height: calc(#{$toolbar-height} + env(safe-area-inset-top));
	}
}

.ios {
	@include statusbar-padding(
		$toolbar-ios-height,
		$toolbar-ios-padding,
		$content-ios-padding,
		$cordova-ios-statusbar-padding,
		$cordova-ios-statusbar-padding-modal-max-width,
		true
	);
}

.md {
	@include statusbar-padding(
		$toolbar-md-height,
		$toolbar-md-padding,
		$content-md-padding,
		$cordova-md-statusbar-padding,
		$cordova-md-statusbar-padding-modal-max-width
	);
}

.wp {
	@include statusbar-padding(
		$toolbar-wp-height,
		$toolbar-wp-padding,
		$content-wp-padding,
		$cordova-wp-statusbar-padding,
		$cordova-wp-statusbar-padding-modal-max-width
	);
}


Universal media (direct stream)

[ ] Internet direct audio
[ ] Internet direct video

closing as not needed anymore


ubuntu 16.04 npx create-nuxt-app

npm -v 6.4.1
node -v v10.15.1
npx create-nuxt-app
npx: installed 379 in 15.435s

Generating Nuxt.js project in /home/nuxt
? Project name nuxt
? Project description My terrific Nuxt.js project
? Use a custom server framework none
? Choose features to install (Press  to select,  to toggle all,  to invert selection)
? Use a custom UI framework none
? Use a custom test framework none
? Choose rendering mode Universal
? Author name
? Choose a package manager npm
⠙ Installing packages with npm
⠸ Installing packages with npm
⠴ Installing packages with npm
⠧ Installing packages with npm
⠦ Installing packages with npm
⠇ Installing packages with npm
⠋ Installing packages with npm
/home/nuxt/.npm/_npx/1063227/lib/node_modules/create-nuxt-app/node_modules/sao/lib/installPackages.js:108
throw new SAOError(Failed to install ${packageName} in ${cwd})
^

Error: Failed to install packages in /home/nuxt
at ChildProcess.ps.on.code (/home/nuxt/.npm/_npx/1063227/lib/node_modules/create-nuxt-app/node_modules/sao/lib/installPackages.js:108:15)
at ChildProcess.emit (events.js:189:13)
at maybeClose (internal/child_process.js:970:16)
at Socket.stream.socket.on (internal/child_process.js:389:11)
at Socket.emit (events.js:189:13)
at Pipe._handle.close (net.js:600:12)

npx create-nuxt-app
npx: installed 379 in 15.435s

Generating Nuxt.js project in /home/nuxt
? Project name nuxt
? Project description My terrific Nuxt.js project
? Use a custom server framework none
? Choose features to install (Press  to select,  to toggle all,  to invert selection)
? Use a custom UI framework none
? Use a custom test framework none
? Choose rendering mode Universal
? Author name
? Choose a package manager npm
⠙ Installing packages with npm
⠸ Installing packages with npm
⠴ Installing packages with npm
⠧ Installing packages with npm
⠦ Installing packages with npm
⠇ Installing packages with npm
⠋ Installing packages with npm
/home/nuxt/.npm/_npx/1063227/lib/node_modules/create-nuxt-app/node_modules/sao/lib/installPackages.js:108
throw new SAOError(Failed to install ${packageName} in ${cwd})
^

Error: Failed to install packages in /home/nuxt
at ChildProcess.ps.on.code (/home/nuxt/.npm/_npx/1063227/lib/node_modules/create-nuxt-app/node_modules/sao/lib/installPackages.js:108:15)
at ChildProcess.emit (events.js:189:13)
at maybeClose (internal/child_process.js:970:16)
at Socket.stream.socket.on (internal/child_process.js:389:11)
at Socket.emit (events.js:189:13)
at Pipe._handle.close (net.js:600:12)

was caused not enough allocated ram to the container, npx create-nuxt-app might use up to 2.5GB

I came across the same issue locally, for me the following saved the day
NODE_OPTIONS=--max_old_space_size=4096 npx create-nuxt-app my-app
Node version: 10.15.3
NPM: 6.4.1

Did not work either. Ubuntu 19.04 throwing  SAOError. Any solution in 2019 August?.
NODE_OPTIONS=--max_old_space_size=4096 npx create-nuxt-app my-app is it work?

If you are using a version of node less than v8.12.0, then try installing 8.12.0 and rerun create-nuxt-app. I was using 8.11.1. When create-nuxt-app failed, I tried using the Vue CLI to create a new Vue project. I got this error message:
error<EMAIL_ADDRESS>The engine "node" is incompatible with this module. Expected version "^8.12.0 || >=9.7.0". Got "8.11.1"

I installed 8.12.0 (using NVM on MacOS) and reran create-nuxt-app and it worked.

This bug is still happen.

Node v11.8.0
Yarn 1.17.3
npm 6.5.0
Ubuntu 14.04

Happening to me as well.

node 10.16.1
npm 6.9.0
yarn 1.17.3

Attempted to create nuxt app with both yarn and npx (while picking npm package manager).

I'm getting the same error.  But it appears no one from core is looking at this issue so maybe someone should open a new one?
npx create-nuxt-app example-app
throws this error:
.../.npm/_npx/335/lib/node_modules/create-nuxt-app/node_modules/sao/lib/installPackages.js:108         throw new SAOError(Failed to install ${packageName} in ${cwd})

@mfish0005 what version of node are you running? If it's less than 8.12.0, then you need to update your version. This worked for me as described above here: https://github.com/nuxt/create-nuxt-app/issues/184#issuecomment-528179625

I'm getting the same error. But it appears no one from the nuxt team is looking at this issue so maybe someone should open a new one?
npx create-nuxt-app example-app
throws this error:
.../.npm/_npx/335/lib/node_modules/create-nuxt-app/node_modules/sao/lib/installPackages.js:108 throw new SAOError(Failed to install ${packageName} in ${cwd})

Try this, It may take some time but worked for me.
sudo chown -R 1000:1000 "/home/you/.npm"

I was on node v8.12.0 and npm 6.11.1. I upgraded to node v12.13.0 and npm 6.13.0 and the issues went away for me. I'm not sure if Yarn has anything to do with this but I decided to not use Yarn and it seemed to work.

I had the same problem. It disappeared after installing:
node: 12.16.1
npm: 6.13.7

I had the same problem.
node : 13.7.0
npm : 6.13.6

sudo apt-get install g++ build-essential
Before create project is work for me.

It seems like yet another problem solved by dancing around changing the node version. In my case it wouldn't install on node 10.5.0 (was installed by default in Laragon) and went pretty smooth with 12.16.2. ¯_(ツ)_/¯

I got into this problem on Ubuntu 18. node was installed using snap.
Got it working working by installing node using nvm:
sudo snap remove node
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.34.0/install.sh | bash
restart terminal to load nvm
nvm install v12.16.3
npx create-nuxt-app my-app
I'm not 100% sure but I think the node snap package tries to install node_gyp c++ module and some C++ compilation problems occur. That's why some people reported that it works when installing g++.
Hope this can help somebody

I got into this problem on Ubuntu 18. node was installed using snap.
Got it working working by installing node using nvm:
sudo snap remove node
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.34.0/install.sh | bash
restart terminal to load nvm
nvm install v12.16.3
npx create-nuxt-app my-app
I'm not 100% sure but I think the node snap package tries to install node_gyp c++ module and some C++ compilation problems occur. That's why some people reported that it works when installing g++.
Hope this can help somebody

the problem lies at the snap package at nodejs. I tried to reinstall nodejs and use ppa as a source of version >> https://www.digitalocean.com/community/tutorials/how-to-install-node-js-on-ubuntu-18-04. And the installation somehow works. :)

I got into this problem on Ubuntu 18. node was installed using snap.
Got it working working by installing node using nvm:
sudo snap remove node
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.34.0/install.sh | bash
restart terminal to load nvm
nvm install v12.16.3
npx create-nuxt-app my-app
I'm not 100% sure but I think the node snap package tries to install node_gyp c++ module and some C++ compilation problems occur. That's why some people reported that it works when installing g++.
Hope this can help somebody

Huge thanks, worked for me! I installed node initially via "Ubuntu-Software". This caused the problem. After uninstalling node with sudo snap remove node, installing node with NVM and updating NPM to latest version the problem was solved.

Thanks for your effort. I am gonna try this.
On Mon, 24 Aug 2020 at 18:16, Jörg Steinhauer<EMAIL_ADDRESS>wrote:

I got into this problem on Ubuntu 18. node was installed using snap.
Got it working working by installing node using nvm:
sudo snap remove node
curl -o-
https://raw.githubusercontent.com/creationix/nvm/v0.34.0/install.sh | bash
restart terminal to load nvm
nvm install v12.16.3
npx create-nuxt-app my-app
I'm not 100% sure but I think the node snap package tries to install
node_gyp c++ module and some C++ compilation problems occur. That's why
some people reported that it works when installing g++.
Hope this can help somebody
Huge thanks, worked for me! I installed node initially via
"Ubuntu-Software". This caused the problem. After uninstalling node with sudo
snap remove node, installing node with NVM
https://phoenixnap.com/kb/update-node-js-version and updating NPM to
latest version the problem was solved.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/nuxt/create-nuxt-app/issues/184#issuecomment-679040207,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AGESIAVKPQXUSROUMP4IWJ3SCI4WBANCNFSM4GWURFCQ
.

I got into this problem on Ubuntu 18. node was installed using snap.
Got it working working by installing node using nvm:
sudo snap remove node
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.34.0/install.sh | bash
restart terminal to load nvm
nvm install v12.16.3
npx create-nuxt-app my-app
I'm not 100% sure but I think the node snap package tries to install node_gyp c++ module and some C++ compilation problems occur. That's why some people reported that it works when installing g++.
Hope this can help somebody

It works, I had installed the node using snap(the problem seems to be with snap), I updated the node using apt and now everything works fine!
[https://askubuntu.com/questions/426750/how-can-i-update-my-nodejs-to-the-latest-version]


The any questions

I am new to Golang development and this repository is a good one for me to start. But can you write any articles to explain this repository? Thank you very much.

Hi. To be honest, I don't have the time to write articles on how it all works. The code is commented throughout, and I can give you a brief run-down of the structure.
Platform contains the Golang microservices. I've divided it into endpoints (bits that are exposed to the outside world) and services (bits that are internal only). Each service has a server layer, which just implements the gRPC function stubs. It also has a controller layer, which handles business logic. Finally it has a repository layer, which just handles the data access.
If you have any specific questions, I'm happy to answer them for you. Have fun hacking!


[ERROR] ClientError: An error occurred (OperationAborted) when calling the CreateBucket operation: A conflicting conditional operation is currently in progress against this resource. Please try again

[ERROR] ClientError: An error occurred (OperationAborted) when calling the CreateBucket operation: A conflicting conditional operation is currently in progress against this resource. Please try again. Traceback (most recent call last):   File "/var/lang/lib/python3.7/imp.py", line 234, in load_module     return load_source(name, filename, file)   File "/var/lang/lib/python3.7/imp.py", line 171, in load_source     module = _load(spec)   File "", line 696, in _load   File "", line 677, in _load_unlocked   File "", line 728, in exec_module   File "", line 219, in _call_with_frames_removed   File "/var/task/lambda_function.py", line 19, in      session.extend_sqs(S3_EXTENDED_BUCKET)   File "/opt/python/aws_sqs_ext_client/session.py", line 76, in extend_sqs     s3.create_bucket(**s3_bucket_params)   File "/opt/python/botocore/client.py", line 391, in _api_call     return self._make_api_call(operation_name, kwargs)   File "/opt/python/botocore/client.py", line 719, in _make_api_call     raise error_class(parsed_response, operation_name)

I have already bucket present in S3, why are we still making this call.

@shahidashraff I guess you ran SQSExtendedSession.extend_sqs right after deleting the target S3 bucket, didn't you? See https://aws.amazon.com/premiumsupport/knowledge-center/s3-conflicting-conditional-operation/ why this happened.

I'm also attempted to use this with an existing S3 bucket. We don't need to create the bucket each time.

this module doesn't always create the S3 bucket. Once creating a bucket, it just checks whether the bucket exists or not. But, I agree this module doesn't need to support its creation so I'll add an option

@rishi-dhar without checking whether the s3 bucket exists, please specify s3_bucket_params=None when calling extend_sqs


Further cleanup of the Swagger file inputs; regeneration of code with…

… latest swagger file

 (0.5) Update the codegen process/documentation to include storing, reviewing the generated-not-used files to detect changes


Contact us page

Wireframe and lofi completed

Completed hifi https://www.figma.com/file/P9UFnIxyfuvMkKNkKUWh76/Team-28_Price-Compare?node-id=454%3A102

[Personal contribution to the design] (https://www.figma.com/file/rbEp5SbNKIRyohVPL5NbpH/Chiluba's-Design-File_Team_28_Contribution?node-id=0%3A1)


Certain sqlite dbs seem encrypted when downloaded. How can i view them?

Hi,
I need some help. I tried downloading backup from icloud of ios 10.2 and 9.3. However, it turns out that dbs like sms, call history etc are either encrypted or corrupt in both the downloads and tools like sqlite manager ask for a key to view the dbs. Where can these keys be located? Please help.
Thankyou

Hi. I don't own any iOS devices at present so it's difficult for me to help. I have no access to iOS 10 backups. You can try downloading with both decryption modes in turn to see if that helps: --mode XTS / --mode CBC.
Are things like photos in the media domain also corrupted? If not the chances are it's a digital forensics issue and not a corrupted file issue.
See issues #18 #32  and #37

I tried both the modes without any luck for SMS and callhistory dbs. Everytime, the download completes without any problem. There are other dbs that have the same issue.
Yes, I can see photos in camera roll domain, wallpapers etc and some of the other sqlite dbs open properly. Can it be the case that the above mentioned dbs have some kind of password/key protection and require a passphrase to view them? If yes, can i find the keys/passwords somewhere in the downloaded back.

Please use this apple id/pwd<EMAIL_ADDRESS>

Hi. I've edited out your personal information. In future you can email me sensitive information rather than posting it in public. I've downloaded the backup so please change your password.
Also snapshot meta-data can leak additional information which is not present in the backups. In this case it references an IT company that I assume you're affiliated with.
I've had a brief look at the backup. Let me know if I've skipped/ misunderstood anything.

There is no file corruption I can discern. The files were retrieved in AES CBC mode.

The sms.db opens without issue. The first message begins with "Discover Twitter!"

The CallHistoryDB folder files open without issue. CallHistory.storedata and CallHistoryTemp.storedata are SQLite files. Many calls reference country code PK.

The CallHistoryTransactions folder has a single transcation.log. It's my first time seeing this file structure. It's chunked sequence of NSKeyedArchives:

CHUNK LENGTH: 429
NSDICTIONARY
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
	<key>$top</key>
	<dict>
		<key>root</key>
		<string>01</string>
	</dict>
	<key>$objects</key>
	<array>
		<string>$null</string>
		<dict>
			<key>record</key>
			<string>02</string>
			<key>type</key>
			<integer>0</integer>
			<key>$class</key>
			<string>03</string>
		</dict>
		<data>
			BASE 64 DATA REMOVED
		</data>
		<dict>
			<key>$classes</key>
			<array>
				<string>Transaction</string>
				<string>NSObject</string>
			</array>
			<key>$classname</key>
			<string>Transaction</string>
		</dict>
	</array>
	<key>$version</key>
	<integer>100000</integer>
	<key>$archiver</key>
	<string>NSKeyedArchiver</string>
</dict>
</plist>

The data field is another Base64 encoded NSKeyedArchive:

{
	"$top" =
		{
			"root" = "01";
		};
	"$objects" =
		("$null",
			{
				"isoCountryCode" = "REMOVED";
				"read" = YES;
				"duration" = 0.0;
				"devicePhoneId" = "00";
				"callerId" = "03";
				"bytesOfDataUsed" = "00";
				"uniqueId" = "02";
				"handleType" = 2;
				"unreadCount" = 0;
				"callStatus" = 16;
				"callerIdLocation" = "00";
				"callCategory" = 1;
				"callType" = 1;
				"callerIdAvailability" = 0;
				"serviceRadar" = "07";
				"mobileNetworkCode" = "00";
				"$class" = "08";
				"mobileCountryCode" = "00";
				"date" = "04";
			},
 "REMOVED", "NUMBER REMOVED",
			{
				"$class" = "05";
				"NS.time" = DATE REMOVED;
			},
			{
				"$classes" =
					("NSDate", "NSObject");
				"$classname" = "NSDate";
			},
 "pk", "com.apple.Telephony",
			{
				"$classes" =
					("CHRecentCall", "CHSynchronizable", "NSObject");
				"$classname" = "CHRecentCall";
			}
);
	"$version" = 100000;
	"$archiver" = "NSKeyedArchiver";
}

Again I've only looked at the data briefly, but in summary there is no obvious file corruption/ encryption in the data I examined. This is a digital forensics issue. It should be possible to write a script/ tool to recover call history data based on the above information. Unfortunately it's not something I'll likely have time to do.

Thank you so much for the great help. I tried a different sqlite utility and was able to open the database. It seems there was some issue with the utility that i was using before.

Excellent, I'm glad you have it working now.

hey what sqlite db utility did you end up using? to view the sms

@FelixLarrivee On Linux/ Ubuntu sqliteman works well. I'm using the official repo version '1.2.2'. It's available on OSX but I've not played with it.

Closing ticket as resolved and no further input.


Functional Layout

Lighting layout focused on function rather than strictly appearance. Still looks decent. Only change that I think some would prefer that differs from this is to change the color of the non-alphabet characters like: '[];<>/|,. etc to a separate color

Looks good. I'll add it in.


Creative Crafter Lags Entire Refined Storage Network

While playing All The Mods 6 - To the Sky, I decided to give these a go. Placed five of them, only to find that my system slowed to a crawl. It was taking ages for my importers to pull items out of machines, the machines themselves (namely fully upgraded Mekanism ones) slowed down dramatically, and even my elevators took multiple seconds to register. When I finally realized these were their own mod, I took them out; wasn't until the last one was removed that my system returned to normal speeds.

I will soon make a performance Update but currently I don't have much time.

Well it lags not just the network, but the server itself, tanking the TPS to the ground and resulting in all the lag you perceived.
It happens only when using in processing mode (with machines) because Refined Storage was not expecting a crafter that has a speed of 60k(!!!).
Nonetheless, this is technically a Refined Storage bug and should be fixed by https://github.com/refinedmods/refinedstorage/pull/3001, which would hopefully be in version 1.9.13

Yeah because the Creative Crafter is was too fast for the machines so the machines give TPS issues


Cooperative multi-tasking (or support simultaneous optimizations)

It would be useful to support performing many pattern search optimizations at the same time, thus allowing them to share compute resources and, potentially, shared results.  For example, one may want to perform 10 optimizations.  Instead of running each one sequentially where the current one running uses all compute resources, we should be able to run them simultaneously with each one using roughly 1/10th the compute resources.
Our search function will need to become a class so it can be inspected and advanced as appropriate.

I would also like for different optimization runs to be able to share the same underlying grid and results cache.  This would get us one step closer to creating a pattern search meta-heuristic to perform global optimization.


LuxCoreUI should not use call OpenCL render engines when OpenCL is disabled

LuxCoreUI should not use call OpenCL render engines when LuxCore is compiled without OpenCL support. For instance by pressing "1".

Done.


Pushing content

Please define a code in bash -Whatever you like- and I will add a test suite and an example of integration with codecov through travis CI.

Added what I new off the top of my head :) Thank you!


Failed to open a unity3d file from the game Hearthstone

I was trying to use this to explore the Hearthstone unity3d files.  It opens most but it failed reading the
cardtextures0.unity3d (C:\Program Files (x86)\Hearthstone\Data\Win), if it helps the file is quire large at 360MB.
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text **************
System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
at System.ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument argument, ExceptionResource resource)
at Unity_Studio.UnityStudioForm.<>c__DisplayClass50_0.b__0()

I tested the cardtextures0.unity3d of the Hearthstone, load and export work properly.
I think I need more information to identify the reasons for the problem.

I just tested it again.  It seems to be working.   I blame windows.


Using brackets on Linux with index.php file?

Prerequisites

[ ] Can you reproduce the problem with Debug \ Reload Without Extensions? Yes
[ ] Did you perform a cursory search to see if your bug or enhancement is already reported? Yes
[ ] Did you read the Troubleshooting guide? Yes

For more information on how to write a good bug report read here
For more information on how to contribute read here
Description
I am trying to run brackets on a Grav project on Linux.  There is an index.php file located at /var/www/localhost/htdocs/index.php
I have chrome installed on my linux box at /usr/bin/google-chrome-stable  I have made a symlink to /usr/bin/chrome also, just in case.
The problem is that I cannot get live preview to work, either with my local apache server or without.  If I try to run it without my apache server, I don't get any reaction at all. I think brackets must be looking for chrome somewhere, but I don't know where.
If I try to run live preview with my apache server, I get a strange popup message asking me to enter my base url.  When I put in http://localhost, it asks for an html file.
Very confusing.
[Description of the bug or feature]
Steps to Reproduce

Start brackets
Navigate to /var/www/localhost/htdocs.
Hit the lightning bolt.

**Expected behavior:Live preview.
Actual behavior: Nothing.
Versions
1.7
Please include the OS and what version of the OS you're running.
Linux 64-bit.  Gentoo.
Please include the version of Brackets. You can find it under Help \ About Brackets
1.7

are you using the new "experimental" live preview? If so, it doesn't support PHP. Otherwise, it would be interesting to know what you plan to do with Live Preview and PHP. Even the older mode doesn't actually do the live part of live preview... it saves and reloads the PHP file. You would be better off setting up a live reload toolchain with gulp or something like that.
IMO, Live Preview is a nice prototyping tool for "raw" HTML/CSS but when you have your design worked out, it doesn't translate so well to dynamically generated content via templates like PHP or other dynamic template model.

Same problem here with ubuntu 17.10, Brackets Release 1.11 build 1.11.0-17524 (release 86b5e2d4e)


Home Page on side bar

Hi,
Can we please change the side bar from "Home Page" to "Our Mission"

I am a smart and solved it based off your previous comment about linking titles etc.


410 | sort and filter leaderboard and only show users with 5 or more races

Issue # | 410

Discord Username: @ industrializeddark
What type of PR is this? (select all that apply)

[X] 🍕 Feature
[ ] 🐛 Bug Fix
[ ] 🚧 Breaking Change
[ ] 🧑💻 Code Refactor
[ ] 📝 Documentation Update

Description

Changed leaderboard to only show users who have at least 5 races done and created new badge/ achievement for it
Related Tickets & Documents

Related Issue #410
Closes #410

QA Instructions, Screenshots, Recordings

UI accessibility concerns?

Added/updated tests?

[ ] 👍 yes
[ ] 🙅 no, because they aren't needed
[ ] 🙋 no, because I need help

[optional] Are there any post deployment tasks we need to perform?
[optional] What gif best describes this PR or how it makes you feel?

Ooh, I see your changes in you last commit, everything is good then


Calico/eBPF node flooding unknown unicast traffic

Expected Behavior
Unknown unicast traffic with a dst mac address not local to a K8s/Calico node should be dropped.

Current Behavior
We are having an issue with our Calido/eBPF implementation. When we shut down any VMs in the datacenter, some traffic is flooded as unknown unicast, initially, it’s a small number of ICMP echo requests from a probe.
Some K8s nodes we have running calico/eBPF accept this traffic ( even if the dst mac in the packet is not local to the node ) and forward this traffic back to the network.  This is creating an amplifying effect as other K8s nodes take this traffic and forward it back to the network. A few packets are becoming 10K-15K.
When we see it in the capture we are doing in the hypervisor, we can also see that the K8s node is changing the src mac address to the address it has in the local interface.

Possible Solution
Make sure Calico/eBPF drops packets with a dst mac address not local to the node.

Steps to Reproduce (for bugs)

We shut down a vm that has a status page application sending icmp requests to check if the VM is alive.
The forwarding information for that VM in the switches is gone since the VM is down, and now those ICMP packets are flooded to all hosts in the same VLAN.
3.K8s receives this traffic and sends it back to the network (changing the src mac address ) creating an amplification effect, flooding more traffic in the network.

Context

The issue is impacting the k8s due to the resouces necessary to deal with the flooding and it's also impacting the network and other nodes due the volume of pps being flooded.
Your Environment

Calico version: v3.27.3
Orchestrator version (e.g. kubernetes, mesos, rkt): kubernetes
Operating System and version: Ubuntu 20.04 LTS
Link to your project (optional):

@tomastigera could it be possible to backport #8921 to 3.27.x ?


Incorrect parsing of author names in .bib file

I copied the following reference from DBLP (omitting some fields):
  author       = {Dorothy E. Denning and
                  Peter J. Denning},
  title        = {Certification of Programs for Secure Information Flow},
  journal      = {Commun. {ACM}},
  volume       = {20},
  number       = {7},
  pages        = {504--513},
  year         = {1977},
  doi          = {10.1145/359636.359712},
}

For this reference, I found two unexpected behaviours (which also differ from how LaTeX processes it).
(1) Using the above format, the first author is displayed as D.E.D. in the PDF. Thus, unexpectedly, the last name of the first author is abbreviated as well.
(2) When trying to avoid this, I put the authors in the lastname, firstname format as follows:
    author       = {Denning, Dorothy E. and
                    Denning, Peter J.},
    title        = {Certification of Programs for Secure Information Flow},
    journal      = {Commun. {ACM}},
    volume       = {20},
    number       = {7},
    pages        = {504--513},
    year         = {1977},
    doi          = {10.1145/359636.359712},
  }

However, now, there appears some odd spacing in the final PDF which appears to be originating from the newline between the two authors that is not removed.
The following reference works as expected:
  author       = {Denning, Dorothy E. and Denning, Peter J.},
  title        = {Certification of Programs for Secure Information Flow},
  journal      = {Commun. {ACM}},
  volume       = {20},
  number       = {7},
  pages        = {504--513},
  year         = {1977},
  doi          = {10.1145/359636.359712},
}

However, I'd also expect that the first two formats work as well, like they do in LaTeX.

Additional information: for case (2) I noticed that there not only is odd spacing (e.g., a newline indeed being added), but that the info of the different authors can/is also being scrambled.

This issue has been fixed.


Add find of filenames to IFS browser

Changes
This PR will add a Find... option to IFS shortcuts and directories to allow searching for patterns in filenames in the IFS.
How to test this PR
Examples:

Right-click a directory and click Find...
Enter a term to look for in filenames, press Enter
Search will start in the chosen directory. If any filenames are found, a new view IBM I FIND: RESULTS will open with a list of the files having matching name.

Checklist

[x] have tested my change

@sebjulliand Nice to finally see it in action! 😄
It's all your for further refinement - view merge etc. Maybe a Show in IFS browser context menu option to easily go back to the IFS browser and work on the found file?
When your work is done, we also need some translation work for the new texts.
Thanks for your help with this!! ❤

@chrjorgensen here we go!
I merged both views, refactored some pieces of code here and there and added a result message for each use case (find and search).

Give it a go and let me know what you think!

@sebjulliand Looks good! 👍
I added Danish translations and fixed a bug retrieving previous find terms...
...and while on the subject of previous find and search terms, they don't seem to work - and haven't for a long time,
Anything I did wrong in getPreviousSearchTerms and getPreviousFindTerms? I put them in global storage to be shared between connections, and I had it working at one time - but now they don't work anymore... more help is needed here, I guess... 🙄

@chrjorgensen you're up! It should be OK now.
I also mentioned in the error message that findutils is required to run this feature (since it's the actual package that needs to be installed).


Type issues

this is my struct that I'm inserting to the db:
type GamePlayer struct {
ID   uint64
Name string
}
when I get it, the ID field returns as a float64 type.
This happens for all INT types

The JSON spec does not support unsigned integers.


Stick the directory name at the top of explorer if directory contains long list of sub directory or file causing overflow (Sticky Top)

Add a sticky feature to stick the directory at the top of the explorer so it will be easy to view the parent directory while scrolling through the subfolders or files inside.
I have created an example in HTML and CSS for reference: Link to codepen for reference
Expected behaviour:
On expanding the directory, if the directory contains items more than scroll height then the directory should stick at the top so that the user can collapse it by clicking at the top.
The idea came to my mind when I was scrolling through the node_modules directory and I had to scroll back all the way to the top to collapse the node_modules directory.

/duplicate of https://github.com/microsoft/vscode/issues/161207


Check that we have at least 1 host available in the Backend configura…

…tion

can you also check the subscriber?


Allow different types of notifications

Allow different types of notifications:

Broken (first one, never deliver if its broken and broken again, reset when successful)
Still Broken (broken, broken, ..)
Successful (first one, never deliver if successful again, reset when broken)
Successful when it was broken before (to get to know if a recent update fixed it :) )

Sorry for the delayed response. This is a nice feature and I'll work on it for sure.
I'm just thinking about notifying successful builds if the last one is also successful, if the last one is broken, then the type will be something like "fixed". There is a flag for notifying successful builds so, if it's not desirable being notified when a build is successful, just uncheck the flag.
Makes sense?

Makes totally sense! 👍


Bot replies Multiple times while initiating the conversation.

Hi Guys,
I want my bot to send welcome message whenever a user uses my iframe for the first time.
I have added code in ActivityType.ConversationUpdate
case ActivityTypes.ConversationUpdate:
IConversationUpdateActivity update = activity;
using (var scope = DialogModule.BeginLifetimeScope(Conversation.Container, activity))
{
var client = scope.Resolve();
if (update.MembersAdded.Any())
{
var reply = activity.CreateReply();
foreach (var newMember in update.MembersAdded)
{
if (newMember.Id != activity.Recipient.Id)
{
reply.Text = $"Welcome {newMember.Name}!";
}
else
{
reply.Text = $"Welcome {activity.From.Name}";
}
await client.Conversations.ReplyToActivityAsync(reply);
}
}
}
break;
Whenever I am trying to initiate conversation, bot replies welcome multiple times. How should I make it single time.
Thanks ,
Manish Chitre.

When the conversation is started, both the user and the bot is added to the conversation.
You do the correct check with
if (newMember.Id != activity.Recipient.Id)
{
    reply.Text = $"Welcome {newMember.Name}!";
}
else
{
    reply.Text = $"Welcome {activity.From.Name}";
}

In the case where the bot is added, newMember.Id == activity.Recipient.Id holds true, so to fix this, you need to remove the else clause.

Thanks a lot @BenjaBobs


unpack(): Type N: not enough input, need 4, have 0

In the \Basho\Riak\Api\Pb::readMessageLength method, I sporadically receive this exception:
Exception 'ErrorException' with message 'unpack(): Type N: not enough input, need 4, have 0'
It only occurs when I attempt to send a QueryIndex command, where the data has a binary secondary index.

This may be related to the issue in the main client. https://github.com/basho/riak-php-client/pull/131

https://github.com/basho/riak-php-client/pull/131 has been merged, please check to see if you still experience issues if you manually use the develop branch

Thanks for the update.  I've gone ahead and imported the develop branch and deployed my code base. I'll run my performance testing again and see if this issue occurs again. I'll report back with my findings shortly.

Hey Chris,
I no longer appear to be receiving the exception in the \Basho\Riak\Api\Pb::readMessageLength method using the develop branch of the riak-php-client.
But, I'm now seeing a new exception:
Exception 'Basho\Riak\Api\Exception' with message 'expected to read 4 bytes, stream_get_contents() returned FALSE'
being raised in the \Basho\Riak\Api\Pb::readBytes method.

These could be caused by network errors. Are you using a proxy of any kind (like HAProxy)? Is this a development environment? If possible, can you archive the log/ directory from each of your Riak nodes and attach the archive here?

Hey Luke, not using any proxying between the app and riak nodes. I believe the last exception that I noted is a result of our network admins doing changes, so i'm going to disregard that one at the moment.  The other issue appears that the connection established is closing for some reason.
I've overrode the \Basho\Riak\Api\Pb::debug method so I can see more of the (breakdown of) communication.
I'll let you know what I find ...

Thanks. If you have anything else to add, please re-open this issue.

Hey Luke, in my previous comment I wasn't completely forthcoming when you asked about using a proxy. I am using php-fpm which does act as a proxy between apache and php.  Interestingly enough, when these errors occur, a restart of the php-fpm service resolves the issue temporarily.
Is this possibly an issue with the PHP protobuf extension that I'm using?
It's the extension from allegro/protobuf package, php7 branch, v0.11.0.

We don't test riak-phppb-client with that protobuf extension, but I don't think that is the issue.
Is this the exception that is resolved by a php-fpm restart?
Exception 'Basho\Riak\Api\Exception' with message 'expected to read 4 bytes, stream_get_contents() returned FALSE'

Yes.

Using the stream_get_meta_data method, I captured more information when that exception is raised:
array (   'timed_out' => true,   'blocked' => true,   'eof' => false,   'stream_type' => 'tcp_socket/ssl',   'mode' => 'r+',   'unread_bytes' => 0,   'seekable' => false, )

That is interesting information, thanks. It suggests the PB client's timeouts should be adjustable, since reading data from php-fpm is timing out.

@lukebakken should be no problem.

@heylarson - please give this branch a try:
https://github.com/basho/riak-phppb-client/tree/fixes/lrb/add-socket-timeouts-gh-12
It sets the read/write timeout for the socket to 5 seconds. I can't seem to find what the default value is for PHP, but I suspect it is system-dependent.
If you still get 'timed_out' => true, you can increase the stream timeout via this builder method:
https://github.com/basho/riak-php-client/blob/fixes/lrb/add-socket-timeouts/src/Riak/Node/Builder.php#L210-L217
Or, use setStreamTimeout on the Config object if you are using that.
Please let me know how this works. Thanks!

Hey Luke, I used your branch in our environment for over a day, and it looks the error still occurs:
"expected to read 4 bytes, stream_get_contents() returned FALSE. Info: {"timed_out":true,"blocked":true,"eof":false,"stream_type":"tcp_socket\/ssl","mode":"r+","unread_bytes":0,"seekable":false}"
I didn't change the stream timeout from the default 1 minute since that should be more than enough time to process the request. When the exception occurs, is it possible that the connection handle has been lost?  Should the fix attempt to re-establish the connection?

I would expect the error to happen less frequently with a 60 second timeout ... is that the case?
timed_out is pretty specific - the TCP socket is still open but no data is being sent on it. This means that php-fpm or whomever is sending data to the Riak PHP PB client has stopped sending data.
Can you describe what is happening in your application when this error happens? Are there specific Riak operations that result in these timeouts?

The app is attempting to either fetch objects or query an index every time this exception occurs.
Should I adjust the stream timeout property to something more than 60 seconds, like:
->withStreamTimeout(60 * 15)
15 minutes?
Do I need to make any other config changes when setting up the riak client?

Can you log the operation that results in the timeout?
My guess is that it is the index query that is timing out because the client is waiting on data from Riak. If so, is it a secondary index query or Solr?

I will start logging the operations and post them when the exception happens again.
It's a secondary index.

Great, I appreciate it.

Not sure how helpful this is, but this was from enabling Pb::debug() deubgging.
[2016-11-01 08:56:49] local.DEBUG: Basho\Riak\Api\Pb\Message\RpbIndexReq
bucket: "dev.competition"
index: "category_bin"
qtype: 0
key: "sport"
type: "default"

[2016-11-01 08:57:17] local.DEBUG: Basho\Riak\Api\Pb\Message\RpbIndexReq
bucket: "dev.competition"
index: "category_bin"
qtype: 0
key: "sport"
type: "default"

[2016-11-01 08:57:19] local.ERROR: Exception 'Basho\Riak\Api\Exception' with message 'expected to read 4 bytes, stream_get_contents() returned FALSE. Info: {"timed_out":true,"blocked":true,"eof":false,"stream_type":"tcp_socket\/ssl","mode":"r+","unread_bytes":0,"seekable":false}' in /var/www/site/releases/20161031230226/vendor/basho/riak-pb/src/Riak/Api/Pb.php:968.

Thanks for the info. I suspect your best option at this point is to increase the timeout past 60 seconds. There is no way for the client to recover from this timeout since the operation can't be canceled and re-trying would just end up in another timeout (most likely).
If you execute the same secondary index timeout using the HTTP interface, does it also execute slowly?
http://docs.basho.com/riak/kv/2.1.4/developing/usage/secondary-indexes/#querying
You should check the /var/log/riak directory on all of your nodes to see if there is anything helpful in the files. If you'd like to archive the logs and attach them here, that's fine.

I know this issue is now closed, but found an interesting workaround.  Appears that when we configured our load balancer to send heartbeat messages every 5 seconds, we no longer experienced this issue. I believe this is because the heartbeat messages we configure to hit a heartbeat endpoint on the application.  This appears to keep php-fpm socket open, thus preventing the timeout issues with the riak pb socket.


Create site architecture document

Overview
We need to create a site architecture document so new developers to the project can have a good overview and better understanding when they start.
Action Items

[ ] Draft site architecture document
[ ] Review with the team

Resources/Instructions
Hack for LA site architecture

Material UI Breakpoints:
LG - 1280px and > (12 columns)
MD - 600 - 960 (6 columns)
SM - 600px and < (4 columns).

@kevinashworth can you let product know when you can work on this? If you are busy, we can set the milestone to Post MVP.

@ExperimentsInHonesty Hi Bonnie, Maria had assigned Levi and I to check this issue out and work on it.

Our progress on this is very limited, we spoke to Kevin on Monday's meeting to get started and we had been hoping to schedule a meeting with you to discuss how you wanted us to go about working on this issue. @ExperimentsInHonesty


INT I-13434 & B-21432 updating market code for all shipment types

B-21432
I-13434
Summary
An issue was found where NTS & NTSR shipment market codes weren't being updated on update. I took this opportunity to move the market code logic to the shipments model as well as add an additional helper function for PPM shipments that use a different model type.
All shipments should now be included in the model function and I addressed creation/update of all shipment types.
How to test

You'll need to turn on the FEATURE_FLAG_ENABLE_ALASKA and FEATURE_FLAG_UNACCOMPANIED_BAGGAGE flags in .envrc
Fire up your server and client
Log in as a customer and create a move
Create a shipment of each type using an alaska address
Confirm that the market code is i next to the shipment
Now go through each shipment and update the state to NOT be Alaska (all you gotta update is the state)
Confirm the market code changes to d next to the shipment
Repeat this same process as an office user creating shipments
To earn mega bonus points, reverse the creation/update process by creating a domestic shipment and then updating each shipment type to use an AK address that should change it from d -> i

Test coverage on client failed.
Last run: Thu 24 Oct 2024 05:59:28 PM UTC
Refer to this report to see coverage details for the client app.
Documentation for test coverage can be found at this link.

LOL client coverage failing with not a single file changed in src/


Display of detailed error messages

Thanks for stopping by to let us know something could be better!
PLEASE READ: If you have a support contract with Google, please create an issue in the support console instead of filing on GitHub. This will ensure a timely response.
Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
Describe the solution you'd like
A clear and concise description of what you want to happen.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.

Current situation.
When we trying to get some information about some location with Google API, in case of error we receive some general message, like:

{
"error": {
"code": 400,
"message": "Request contains an invalid argument.",
"errors": [
{
"message": "Request contains an invalid argument.",
"domain": "global",
"reason": "badRequest"
}
],
"status": "INVALID_ARGUMENT"
}
}

Unfortunately, some message does not give us a lot information of debug.
One possible solution: to play with OAuth 2.0 Playground
Advantages. It allows us to get more detail information.
Disadvantages. It takes a lot of time to register/prepare request
According to the Google documentation Support -> Detailed error responses
we can receive full format of answer by adding 'X-GOOG-API-FORMAT-VERSION' => 2  to the Request header.
Problem is that there is no any possibility to add it by passing some input parameters. :(
Desired solution
Add possibility to extend Request header by adding some input parameter to the
google/apiclient/src/Google/Service/Resource.php -> call()
something like
google/apiclient/src/Google/Service/Resource.php -> call($name, $arguments, $expectedClass = null, $isDetailMessage = false)
and in line 200 except
['content-type' => 'application/json', 'X-GOOG-API-FORMAT-VERSION' => 2],
add something like:
$isDetailMessage ? ['content-type' => 'application/json', 'X-GOOG-API-FORMAT-VERSION' => 2] : ['content-type' => 'application/json']
or any other solution which you will like more.
After such changes we can receive an error message like:

{
"error": {
"code": 400,
"message": "Request contains an invalid argument.",
"status": "INVALID_ARGUMENT",
"details": [
{
"@type": "type.googleapis.com/google.mybusiness.v4.ValidationError",
"errorDetails": [
{
"code": 1100,
"field": "address",
"message": "The specified address cannot be located. Please use the UI to provide a pin drop."
}
]
}
]
}
}

which can save developer's time for debugging:)
Thanks in advance for your time and any information regarding this issue!


Improve error handling mechanisms

Error handling and reporting mechanisms need to be improved. This will help UX alongside ease of development.
Instead of throwing errors, functions that could throw should be passed an object / function to handle errors.
This means users (veterans and staff) can see more detail about what went wrong.
This is another step to improving project stability by not relying on try/catch at a higher level.

We should integrate ts-results for type safe error handling.

We can utilise the CommunicationManager for easy error reporting, though handling still has to be improved.


Error while copying another password while previous password is not yet cleared

I'm getting the following messages when I try to copy another password or username while the previous entry has not yet been cleared:
/usr/bin/autopass:455:in `sleep': Interrupt
	from /usr/bin/autopass:455:in `block in copy'
	from /usr/bin/autopass:453:in `fork'
	from /usr/bin/autopass:453:in `copy'
	from /usr/bin/autopass:465:in `<main>'

yes, this is by design. When you copy a password autopass forks and exits. The forked process sleeps for a while before clearing the password from the clipboard. If you open another autopass instance and copy another password the new instance will kill the previously forked process with SIGINT. This is why you will see Interrupt in the output.


GH-34105: [R] Provide extra output for failed builds

Rationale for this change
This is a replacement for the previous PR https://github.com/apache/arrow/pull/37698. The rationale for this PR is providing extra output for R package builds where the C++ build fails
What changes are included in this PR?
Update the system call to save output when building Arrow C++ from the R package and output it if it's failed
Are these changes tested?
No automated tests but the changes have been tested manually.
Are there any user-facing changes?
Yes, but only for users building the R package from source which is hopefully not common.

Closes: #34105

I've updated the PR to address points brought up in https://github.com/apache/arrow/pull/37727#discussion_r1326477485 so this is ready for another look.