ValueError: Path cannot be empty

Hi, I'm not having any luck getting craft-vite to work on my server. Locally in DDEV, it's working perfectly and the configuration is working – it will use HMR version when I set the env variable, and it will use the manifest to load built css and JS when I set it to.
On the server, it keep getting the error: ValueError: Path cannot be empty.
I suspected that it's not finding the manifest.json file, but I've even tried hard coding it and it doesn't fixe the error. I've checked the permissions on the manifest.json, and it's fine. I'm stumped -- have you see this error?
Sorry for the data dump, here's my config and stack trace. I truly appreciate any assistance or tips you can provide.
vite.php
<?php

use craft\helpers\App;

return [
    'useDevServer' => (bool) App::env('VITE_USE_DEV_SERVER'),
    'checkDevServer' => true,
    'manifestPath' =><EMAIL_ADDRESS>    'devServerPublic' => App::env('PRIMARY_SITE_URL') . ':3000',
    'serverPublic' => App::env('PRIMARY_SITE_URL') . '/dist/',
    'errorEntry' => 'src/js/app.js',
    'devServerInternal' => 'http://localhost:3000',
];
];

vite.config.js:
import ViteRestart from 'vite-plugin-restart';
import {defineConfig} from 'vite';
import path from 'path';
import viteCompression from 'vite-plugin-compression';
import mkcert from'vite-plugin-mkcert'

export default defineConfig(({command}) => ({
  base: command === 'serve' ? '' : '/dist/',
  build: {
    commonjsOptions: {
        transformMixedEsModules: true,
    },
    manifest: true,
    outDir: 'web/dist/',
    rollupOptions: {
      input: {
        app: 'src/js/global.js',
      },
      output: {
        sourcemap: true
      },
    },
  },
  plugins: [
    viteCompression({
        filter: /\.(js|mjs|json|css|map)$/i
    }),
    ViteRestart({
      reload: [
        'templates/**/*',
      ],
    }),
  ],
  publicDir: path.resolve(__dirname, 'src/public'),
  resolve: {
      alias: {
          '@': path.resolve(__dirname, 'src'),
          '@css': path.resolve(__dirname, 'src/css'),
          '@js': path.resolve(__dirname, 'src/js'),
      },
  },
  server: {
    host: '<IP_ADDRESS>',
    port: 3000,
    strictPort: true,
  }
}));

Stack Trace:
ValueError: Path cannot be empty in <my-server-info>/public_html/vendor/nystudio107/craft-plugin-vite/src/helpers/FileHelper.php:88
Stack trace:
#0 <my-server-info>/public_html/vendor/nystudio107/craft-plugin-vite/src/helpers/FileHelper.php(88): file_get_contents()
#1 [internal function]: nystudio107\pluginvite\helpers\FileHelper::nystudio107\pluginvite\helpers\{closure}()
#2 <my-server-info>/public_html/vendor/yiisoft/yii2/caching/Cache.php(607): call_user_func()
#3 <my-server-info>/public_html/vendor/nystudio107/craft-plugin-vite/src/helpers/FileHelper.php(79): yii\caching\Cache->getOrSet()
#4 <my-server-info>/public_html/vendor/nystudio107/craft-plugin-vite/src/helpers/ManifestHelper.php(54): nystudio107\pluginvite\helpers\FileHelper::fetch()
#5 <my-server-info>/public_html/vendor/nystudio107/craft-plugin-vite/src/services/ViteService.php(455): nystudio107\pluginvite\helpers\ManifestHelper::fetchManifest()
#6 <my-server-info>/public_html/vendor/nystudio107/craft-plugin-vite/src/services/ViteService.php(399): nystudio107\pluginvite\services\ViteService->manifestScript()
#7 <my-server-info>/public_html/vendor/nystudio107/craft-plugin-vite/src/variables/ViteVariableTrait.php(50): nystudio107\pluginvite\services\ViteService->script()
#8 <my-server-info>/public_html/vendor/twig/twig/src/Extension/CoreExtension.php(1607): nystudio107\vite\variables\ViteVariable->script()
#9 <my-server-info>/public_html/vendor/craftcms/cms/src/helpers/Template.php(101): twig_get_attribute()
#10 <my-server-info>/public_html/storage/runtime/compiled_templates/46/4613608a083214d1755c6101b69cd321.php(60): craft\helpers\Template::attribute()
#11 <my-server-info>/public_html/vendor/twig/twig/src/Template.php(394): __TwigTemplate_bb0c5fcc94d421977e1313a3f173e20c->doDisplay()
#12 <my-server-info>/public_html/vendor/twig/twig/src/Template.php(367): Twig\Template->displayWithErrorHandling()
#13 <my-server-info>/public_html/storage/runtime/compiled_templates/94/944f24e116ca9f9a1d3d4fb61237dbd5.php(48): Twig\Template->display()
#14 <my-server-info>/public_html/vendor/twig/twig/src/Template.php(394): __TwigTemplate_411e8e08f966546ad5c724cf28c02b94->doDisplay()
#15 <my-server-info>/public_html/vendor/twig/twig/src/Template.php(367): Twig\Template->displayWithErrorHandling()
#16 <my-server-info>/public_html/vendor/twig/twig/src/Template.php(379): Twig\Template->display()
#17 <my-server-info>/public_html/vendor/twig/twig/src/TemplateWrapper.php(40): Twig\Template->render()
#18 <my-server-info>/public_html/vendor/twig/twig/src/Environment.php(277): Twig\TemplateWrapper->render()
#19 <my-server-info>/public_html/vendor/craftcms/cms/src/web/View.php(428): Twig\Environment->render()
#20 <my-server-info>/public_html/vendor/craftcms/cms/src/web/View.php(481): craft\web\View->renderTemplate()
#21 <my-server-info>/public_html/vendor/craftcms/cms/src/web/TemplateResponseFormatter.php(56): craft\web\View->renderPageTemplate()
#22 <my-server-info>/public_html/vendor/yiisoft/yii2/web/Response.php(1095): craft\web\TemplateResponseFormatter->format()
#23 <my-server-info>/public_html/vendor/craftcms/cms/src/web/Response.php(286): yii\web\Response->prepare()
#24 <my-server-info>/public_html/vendor/yiisoft/yii2/web/Response.php(339): craft\web\Response->prepare()
#25 <my-server-info>/public_html/vendor/yiisoft/yii2/base/Application.php(390): yii\web\Response->send()
#26 <my-server-info>/public_html/web/index.php(12): yii\base\Application->run()
#27 {main}

.env
# The environment Craft is currently running in (dev, staging, production, etc.)
ENVIRONMENT=production

# The application ID used to to uniquely store session and cache data, mutex locks, and more
APP_ID=CraftCMS--###########

# The secure key Craft will use for hashing and encrypting data
SECURITY_KEY=###########

# The URI segment that tells Craft to load the control panel
CP_TRIGGER=admin

PRIMARY_SITE_URL=https://staging.mysite.com
BRAND_SITE_URL=https://brand.staging.mysite.com
OMNI_SITE_URL=https://portal.staging.mysite.com
VITE_USE_DEV_SERVER=0

I'd try the same thing in local dev -- do a production build, and disable the dev server, to see if you can get it to reproduce locally not using the dev server.
Somehow, some way, the manifestPath is ending up being empty. This is the line of code where it is erroring:
                    $contents = @file_get_contents($pathOrUrl);

https://github.com/nystudio107/craft-plugin-vite/blob/develop/src/helpers/FileHelper.php#L88

Thanks for taking a look! yeah, I tried that locally, and it's working fine, with and without the dev server. I'll keep poking round.

Yeah so if it's working fine locally both with a production build, and with the dev server... it's almost always going to be something environmental.
Make sure that your .env is right on production, your aliases are properly set on production (ensure you are explicitly setting the @webroot alias), make sure config/vite.php is deployed on production, etc.
I can tell you that the error is that an entirely empty path is being passed into manifestPath, which is causing the error. How, I don't know.

Oh jeez.. it was a permission mismatch on vite.php.  made me check... thanks!!

That makes total sense. Always does, in retrospect! :)

@transopticmedia I'd love to know how you determined that you had a permission mismatch, and how you resolved it exactly? I've been struggling with this same issue "ValueError: Path cannot be empty" with the Vite plugin. I have yet to resolve it after months of dipping in and out of a new build.


Merged MusicMute and MusicMute Continued

I have spoken with @mattolenik and we've decided to merge both our forks
into one CKAN entry, the old KerbalStuff version can also be removed.

Because MusicMuteContinued already has a 1.1 release I would recommend using that identifier so that the userbase doesn't fragment / has an upgrade path. identifier isn't something we surface to users and you can/should stick with the MusicMute name.

@plague006 That's probably better, should I change the identifier and the file name to MusicMuteContinued(.netkan)?

Exactly right.

Should be good now, feel free to ask if my intentions are not clear.

You need to add the following:
"install": [
        {
            "find"       : "MusicMute",
            "install_to" : "GameData"
        }
    ]

Without an install stanza CKAN will try to find a folder with a name that matches identifier and install that. If it can't find that folder name it fails. This install stanza tells it what folder to install.

Looks good to me, merging with my thanks.

Phew, great. Thanks again :)


Jm 165553482 tsp release sit button  form

Description
This PR is to add the link, icon, and form for Release From SIT.  Since the API was already written, I combined two PRs. So this one also updates the SIT summary panel to show that SIT is Released and the Date out.
When reviewing this PR you should be evaluating the AC for both:
TSP has a "Release from SIT" button & form while shipment is in SIT at Origin
TSP marks a shipment released (from SIT at Origin)
Reviewer Notes
n/a
Setup
Add any steps or code to run in this section to help others prepare to run your code:
make db_dev_e2e_populate
make tsp_client_run

Log in as tsp user
Go to the "In Transit" moves
Choose the move with locator SITOIN
Go to the Storage in Transit panel and click "Release SIT"
Click Done
Check for Date out in summary panel
Test Release of Shipment (at Origin) post Delivery
From TSP site in Delivered queue, select locator DOOB
Make SIT Request Request SIT
Go to Office and Approve the SIT Request
Go to TSP and Place Into SIT
From TSP Release from SIT
Check for Date out
Code Review Verification Steps

[ ] There are no aXe warnings for UI.
[ ] This works in Supported Browsers and their phone views (Chrome, Firefox, IE, Edge).
[ ] User facing changes have been reviewed by design.
[ ] Request review from a member of a different team.
[ ] Have the Pivotal acceptance criteria been met for this change?

References

Pivotal story for this change
Pivotal story for this change

Screenshots

@reggieriser your refactor of StorageInTransit.jsx might result in merge conflicts/unexpected behavior. Something to be aware as there's a couple more conditionals that this story adds.


Enabling AVX2

Strobealign runs faster if AVX2 instructions are enabled (-mavx2), but not all CPUs support them. We need to deal with this somehow.
Some options:

Disable AVX2 by default, let people enable it if they want (status quo).
Enable AVX2 by default. People with too old machines need to compile their own binaries.
Distribute two binaries: one with AVX2 and one without.
Detect whether the CPU supports AVX2 at runtime and call different functions based on that.

I found this discussion in the Blender forum quite interesting. The takeaways are:

90% of CPUs in the Steam hardware survey (click on "other settings" at the bottem) support AVX2
99% support SSE4.2
When GCC compiles for x86-64, the default is to enable SSE2 (as that is available on all 64-bit x86 CPUs).
There’s -march=x86-64-v2 (feature levels), which enables SIMD extensions up to SSE4.2 and a couple of other things.

Based on the above, I played around with some settings and got these measurements (caveat: once again Drosophila):

Flags (in addition to -O3)
time

(none)
20.1 s

-march=skylake
19.8 s

-march=x86-64-v2 -mtune=znver3
19.5 s

-msse4.2
19.4 s

-mavx2
19.1 s

-march=x86-64-v3 -mtune=znver3
19.1 s

-march=znver2
19.1 s

-march=znver3
19.1 s

-march=znver1
19.0 s

-mavx2, but only for ssw.c and xxhash.c
19.0 s

-march=native
18.9 s

I first set the flags using -DCMAKE_CXX_FLAGS="-march=native" etc., but this had almost no effect. Then I realized that this only sets the flags for C++ source files and that we have some C files as well. When I additionally used -DCMAKE_C_FLAGS="-march=native", I saw a difference. And not setting the flag for C++ files did not make a discernible difference, so I assume that the benefits from using AVX2 are relevant only for the alignment module and the hash function (ssw.c and xxhash.c).
From the above, the minimum thing we could do is to enable -msse4.2 by default as it gives already some benefit and is available on nearly all machines.

This is really useful information, thanks for the small writeup!

I assume that the benefits from using AVX2 are relevant only for the alignment module and the hash function (ssw.c and xxhash.c).

Looking ahead, not that you suggested it, but I am not sure we should tailor optimizations to ssw.c and xxhash.c.
Firstly, I was referred to wyhash by Rob Patro, and it seems significantly faster (~2.5x) than xxhash without observable loss in uniformity (see e.g., here https://github.com/ksahlin/strobemers/commit/2262b0bc0cd7ce6d3cae8a9825a5a955c950cb6b).
Secondly,  I think WFA integration will be the single largest factor in reducing strobealign's runtime (https://github.com/ksahlin/strobealign/issues/26), which will make ssw obsolete. I am hopeful we could even see the align mode runtime go down close to mapping-only runtime.
It is of course entirely possible that these libraries also enjoy speedup with the same flags.

From the above, the minimum thing we could do is to enable -msse4.2 by default as it gives already some benefit and is available on nearly all machines.

I guess this is a good compromise.
Based on preference, I would prefer testing the above-mentioned libraries (wyhash and primarily WFA) over time spent on, e.g., your option 4 (if it takes significant time). But I also know I have a move-fast-break-things approach too often when I shouldn't.
What do you think?

Firstly, I was referred to wyhash by Rob Patro, and it seems significantly faster (~2.5x) than xxhash without observable loss in uniformity (see e.g., here ksahlin/strobemers@2262b0b).

I’m not so sure this would speed things up TBH. I’ll open an issue about this.

Secondly, I think WFA integration will be the single largest factor in reducing strobealign's runtime (#26), which will make ssw obsolete. I am hopeful we could even see the align mode runtime go down close to mapping-only runtime.

Yes, we need to reevaluate the CPU flags at that point.

From the above, the minimum thing we could do is to enable -msse4.2 by default as it gives already some benefit and is available on nearly all machines.

I guess this is a good compromise.
Based on preference, I would prefer testing the above-mentioned libraries (wyhash and primarily WFA) over time spent on, e.g., your option 4 (if it takes significant time). But I also know I have a move-fast-break-things approach too often when I shouldn't.
What do you think?

Let’s get a release out and then break things afterwards!

Right, you meant the compilation instructions for this release.
Then I think perhaps  -msse4.2 is a good solution based on your analysis above. But I will let you have the final say in this.
One thing I could mention is that  much more time is spent in extension alignment for biological ('real') libraries compared to simulated ones (see runtime plot here for BIO150 and BIO250 https://github.com/ksahlin/strobealign/issues/26#issuecomment-1241764108 compared to the others which are simulated). Meaning that SSW has a much higher influence in these scenarios. Is your drosophila testdata 'real' or simulated reads?

Right, you meant the compilation instructions for this release.
Then I think perhaps -msse4.2 is a good solution based on your analysis above. But I will let you have the final say in this.

Here’s my suggestion now:

In the compilation instructions, we suggest that people use the -march=native flag. This will enable whatever is available on the CPU the compiler is running on. Then we don’t need to tell people to enable AVX2 or AVX512, they just get it automatically if they compile from source.
For the Conda package, we use -msse4.2
When/if you make pre-compiled binaries available, you need to decide whether you use -mavx2 or -msse4.2.

One thing I could mention is that much more time is spent in extension alignment for biological ('real') libraries compared to simulated ones (see runtime plot here for BIO150 and BIO250 #26 (comment) compared to the others which are simulated). Meaning that SSW has a much higher influence in these scenarios.

That is interesting. I would have expected the simulated data to be closer to reality. Definitely something to keep in mind. Let’s discuss this when we add WFA2.

Is your drosophila testdata 'real' or simulated reads?

Real reads from the Sequence Read Archive. I actually wanted to switch it to simulated data so that we can see the accuracy changes in CI, but now I’m not so sure. (Another issue I need to open ...)

Here’s my suggestion now:

I like this suggestion. Let us go with it.
For your third point, with the conda installation and the installation instructions that 'just works' (for me), I think there is little advantage of having precompiled binaries. Lets just remove them from the readme?

I actually wanted to switch it to simulated data so that we can see the accuracy changes in CI, but now I’m not so sure.

I think simulated data is the best we can do for accuracy, no?
(unless we run e.g. WFA/SSW pairwise alignment for, say, 100k PE reads across eg the Drosophila genome and identify the 'real' best locations based on total edit/SW distance for the read pair, then use that set of reads with 'known locations'. That is is time consuming benchmark to set up though.)

Here’s my suggestion now:

I like this suggestion. Let us go with it.
For your third point, with the conda installation and the installation instructions that 'just works' (for me), I think there is little advantage of having precompiled binaries. Lets just remove them from the readme?

Yes, I think that would be the best option.

I actually wanted to switch it to simulated data so that we can see the accuracy changes in CI, but now I’m not so sure.

I think simulated data is the best we can do for accuracy, no?
(unless we run e.g. WFA/SSW pairwise alignment for, say, 100k PE reads across eg the Drosophila genome and identify the 'real' best locations based on total edit/SW distance for the read pair, then use that set of reads with 'known locations'. That is is time consuming benchmark to set up though.)

Hm, that sounds quite time consuming indeed. Perhaps it’s easiest if we just continue testing on the real data that’s already there and simply add a simulated one. (I forgot to open that issue where we can discuss this ...)

Sounds good.

Ok, closing this now because the instructions in the README have been updated.


Remove the use of process.env from our packages

Description
keychain-utils uses process.env. Might be others.
This breaks in vite apps.
All libs should take env variables as args/props and only apps should use process.env directly.

keychain-utils:

endpoints.ts

used in connect-context

utils

abi.ts
ipfs.ts
polling.ts

1/12 - .5 hr

can get around the usage in DHConnectProvider by passing custom provider options.


Remove duplicate sentence on column families

Just noticed a duplicate sentence in the SQL best practices doc.

This change is

http://cockroach-docs-review.s3-website-us-east-1.amazonaws.com/19c8c8ddd1ff5d922d7e564fa04913b88b6ab139/

LGTM! Thanks @couchand :)


Remove duplicate line

The user property is set to the same value twice.

Good catch! I'll merge this manual together with some other changes we have planned 👍 Thanks.


Docker on Synology x86 refuses to launch

I get this error when I try to run the container on a celeron-based Synology NAS:
standard_init_linux.go:189: exec user process caused "exec format error"
Any suggestions?

You will need to prepare your NAS kernel to run arm binaries before stating the CCU: docker run --rm --privileged multiarch/qemu-user-static:register --reset
Since key components do not start a native x86 docker container is preferred. There is a version here: https://hub.docker.com/r/litti/dccu2-x86_64/ . It is not the latest but since I am not making progress with my own version is the only version available right now.

any progress with the x86 version? I would love it ;)

Not here but maybe you can try https://hub.docker.com/r/litti/dccu2-x86_64/
I have not tried it myself since I have a dedicated ARM node in my K8S cluster for the homematic CCU.

Version on x86 available - see https://github.com/jens-maus/RaspberryMatic/wiki/Docker

Version on x86 available - see https://github.com/jens-maus/RaspberryMatic/wiki/Docker


combine several vx masks and/or fcst_leads  together into one column on the scorecard

Ben Blake:
Is it currently possible to combine several vx masks together into one
column on the scorecard? I split up my verification into the 14 NCEP
subregions over the CONUS (APL, NEC, SEC, GMC, LMV, MDW, NPL, SPL, NMT,
SMT, GRB, NWC, SWC, SWD). When making a plot in METViewer, I can select
all of the regions in the fixed values section, and the generated plot will
contain statistics over the entire CONUS. I'd like to have one of the
columns on the scorecard be for CONUS.
Perhaps there is a way to define the vx_mask I want in the fixed values
section and then reference it somehow within the columns section?
Logan
Ability to aggregate masking regions to create “super-regions”
Apr. 22 2019
Christina Kalb:
Is it possible to display different lead times in the same column?  For example, if one has a lead of 360000 and another has a lead of 120000, could i display them along the same column
May 2, 2019
Tatiana Burek created issue - 07/Nov/17 3:34 PM

users can group lead times in the columns:

Email message history:
Ben and Logan,
Tatiana is working on development for this issue:
https://github.com/NCAR/METviewer/issues/16
This is to enable the use of "groups" in scorecards.  So you might define CONUS as a group of the 14 (or so) subregions.  And then compute the scorecard using the CONUS group instead of the 14 individual subregions.
Tataina and I were talking about a implementation details this morning, and I wanted to let you know what we discussed.  Please let me know if you have any questions about or objections to the following...
Elsewhere in METviewer, users have the choice of computing "summary statistics" or "aggregation statistics".  Let's say our scorecard includes both CSI and RMSE.  A summary CSI value over the 14 subregions would be the mean (or median) of the 14 CSI scores for each region.  An aggregated CSI value is computed by summing up the 14 2x2 contingency tables and then computing a single CSI value from that aggregated table.
Likewise for RMSE, a summary RMSE would be the mean (or median) of the 14 RMSE's for each region.  For an aggregated RMSE, we'd computed the weighted average of the SL1L2 partial sums, and then compute a single aggregated RMSE value.
So we are talking about how to define groups in the data as input to the scorecard logic.  And it's obvious to Tatiana and I that we should support the aggregation logic.  The question is whether or not the summary logic applies when constructing these groups.  And my opinion is that no, it does not apply.  A group in the scorecard should be the result of aggregation, not averaging.  While it may be mathematically possible to do the latter, I think it makes the logic too confusing and isn't worthwhile.
Let's say you have MET output for CONUS and the 14 subregions.  With the aggregation logic, a scorecard for CONUS should be identical to a scorecard for the group of 14 subregions... and that's good.  With summary logic, those two would produce different results.
Does this make sense to you as well?
Thanks,
John
Hi John,
What you've proposed makes sense to me as well.  I agree that values for a particular group in the scorecard should be computed via aggregation and not averaging.  If a CONUS scorecard was not identical to a scorecard for the 14 subregions comprising the CONUS, that would also be confusing to me.
Thanks,
Ben
Hi John,
I totally agree with everything that's been said. The aggregation logic should be used so the 'region-aggregated' scorecard matches a CONUS scorecard. Thanks for checking in with us on this.
Thanks,
Logan

Use ":" to separate the field values in the columns that needs to be combined
Only one field can use combined values


Move to GitHub actions

Summary
Moves the build to GitHub actions, fixing some linting issues in the way.

Add .github directory
Remove travis stuff
Fix linting issues

Related issue :

Finally, github actions are here (with huge images though!)


Code repeatability for redirecting

We need to figure out a way to redirect to the error pages with our error handling to avoid code repetition:
var errorModel = new HandleErrorModel
{
    Message = AccessDenied,
    StatusCode = Models.HttpStatusCodes.Forbidden
};

TempData[ErrorMessageKey] = JsonConvert.SerializeObject(errorModel);

return RedirectToAction(nameof(HomeController.UserErrorPage), typeof(HomeController).GetControllerName());

SOLUTION FOUND!!! (tested and working)
Create a BaseController Class containing the following logic :
public IActionResult HandleErrorRedirect()
{
var errorModel = new HandleErrorModel
{
Message = AccessDenied,
StatusCode = Models.HttpStatusCodes.Forbidden
};
TempData[ErrorMessageKey] = JsonConvert.SerializeObject(errorModel);
return RedirectToAction(nameof(HomeController.UserErrorPage), typeof(HomeController).GetControllerName());
}
In the other controllers where you want to remove the duplicate code you have stated in the previous message, now you can use
return RedirectToAction(nameof(BaseController.HandleErrorRedirect),typeof(BaseController).GetControllerName());
in the body of the If ( check ).
Currently, we only use 'AccessDenied' as an error message so this method works perfectly. We can easily extend it if we want more error messages:)
The code is not yet committed as I need your approval ;3

Which do you think would be better to make one method that accepts the status code or many methods that are for different status codes? It also means going through all the controllers and making the change.

Maybe one method which accepts the error  code and then chooses what message to display in the error page.
2nd, of course we need to change in every controller, but it will be one line, not like now when it's return BadRequest, forbidden etc..

I like your idea well! Make the changes.

--- CHANGES IMPLEMENTED ---


Operation not permitted Bug

I have this error, could you please help me to fix this, I am using this code
  arp.setInterface(netinterface);
  arp.poison(targetip, gatewayip);

and is there any way to run the arp.posion without going to the root?

@karmelyoei,
To inject ARP packets, you'd need administrator privileges. Could you try again by running as an administrator?

Okay I will thank you, I have another question is there any way we can know that the host device has been blocked after we poison it ?

Can we poison multiple devices (multiple targets IP)?


[Java 15.3]: Catching Exception

Description
Add audio, documentation, and video regarding the Catching Exceptions

Location of File to be added
The files should be added inside the Catching_Exceptions which will be inside Exception Handling folder which will be inside of Java folder. If the folder is not present, create the folder with this exact name.

The documentation file can be in the .md/.py/.ipynb format.
Audio should be in .mp3 format and to be submitted through a Google drive link.
Video can be in any format and should be submitted through a Google Drive link.

Note:
You are required to comment with \assign CONTENT_TYPE, so that other content types can be created at the same time.
Failing to comment in the above manner will lead to the removal of assignment from the issue even if the bot assigns.
You are required to do a PR within 7 days otherwise you will be unassigned and others will be assigned.
Issues will be assigned on a first come first serve basis.
Domain
Java_Domain
Type of Contribution
Audio, Video, Documentation
Code of Conduct

[X] I follow Contributing Guidelines & Code of conduct of this project.

\assign Document

/assign

I will provide documentation for the catching exception

I will provide documentation for the catching exception

Documentation - @astharaj300
Audio - Available to take
Video - Available to take

/assign

/assign  audio


AQCU-1030: Fixed an issue where an extra end gap date would...

...be added to the beginning of estimated time series.

Coverage increased (+0.0005%) to 99.041% when pulling 1ac9732fdf6c04ef7487ee97f933d2f48528e01a on zmoore-usgs:uv-hydro-error into 79bf67db99ceb6545640cb4d1e87bd258d4d95b1 on USGS-R:master.

Coverage increased (+0.0005%) to 99.041% when pulling c8e80040012412db9bb2e1258b8d4369a4e920bd on zmoore-usgs:uv-hydro-error into 79bf67db99ceb6545640cb4d1e87bd258d4d95b1 on USGS-R:master.


ser rename

Hey, thanks for such an amazing package!
I wish there was an option to rename running processes, something like ser rename  .
As of now the only option is doing it by hand

Pushed


Add support for nonces

To find out more information please see https://content-security-policy.com/nonce/

Not possible on static sites without some kind of server-side include; the nonce must change with each HTTP request.


Change of user email leads to logout

I'm trying to update the user's email which currently leads to a auth/user-token-expired error if I call auth.currentUser.getIdTokenResult(true) on the client, after updating the email like:
const { updateUser } = getFirebaseAuth(authConfig.serviceAccount, authConfig.apiKey)

export type UpdateEmailRequest = {
  email: string
}

export async function POST(request: NextRequest) {
  const tokens = await getTokens(request.cookies, authConfig)
  if (!tokens) {
    throw new Error('Cannot refresh custom claims of unauthenticated user')
  }

  const { email } = (await request.json()) as UpdateEmailRequest
  await updateUser(tokens.decodedToken.uid, { email, emailVerified: false })

  const response = new NextResponse(null, {
    status: 200,
    headers: { 'content-type': 'application/json' },
  })

  // Attach `Set-Cookie` headers with token containing new custom claims
  await refreshAuthCookies(tokens.token, response, authConfig)

  return response
}

Can the auth-related email be changed without our user to be logged out? If yes, how can I achieve that?
If 1 can be achieved, is there a way to update the email with a server action instead of a post request or wouldn't that allow us to update the cookies as needed?

Hey @alexeigs! Great question.
There is pretty good explanation for the issue you're having here: https://stackoverflow.com/questions/54522036/firebase-admin-auth-updateuser-causes-auth-user-token-expired
Basically, after every significant change to the user account (this includes email change), you need to ask user to re-authorize.

If 1 can be achieved, is there a way to update the email with a server action instead of a post request or wouldn't that allow us to update the cookies as needed?

At this moment, Server Actions do not support response manipulation in any way. If we consider the architecture of Server Actions, I don't think it will be introduced soon. Best way to update the cookies after using Server Actions would be to call /api/login with fresh token again. Login endpoint works exactly as refreshAuthCookies without custom logic.
Let me know if this answered your question. Cheers!

Thanks for the reply. I guess I will just prompt the user to login again resp. send them a sign-in link in the case of an email change. There is no real alternative to that if I understood it correctly.
Do we also need remove the auth cookies at this point? I ran into some invalid auth issues likely relating to invalid cookies previously; could this also happen here if we don't keep it in sync?
Lastly, is there a practical difference if I use this lib's updateUser vs. doing so directly through the firebase-admin sdk inside an api call/server action?

Do we also need remove the auth cookies at this point? I ran into some invalid auth issues likely relating to invalid cookies previously; could this also happen here if we don't keep it in sync?

I presume yes, although it really depends on what you want to achieve. I assume that if you call auth.currentUser.getIdTokenResult(true) you want to display latest data related to the user, so the approach should be removing authentication cookies after user e-mail. You can use removeAuthCookies from next-firebase-auth-edge/lib/next/cookies to achieve this.

Lastly, is there a practical difference if I use this lib's updateUser vs. doing so directly through the firebase-admin sdk inside an api call/server action?

No, those functions should work the same. updateUser can be used both in Edge and Node.js runtimes, but you can definitely use firebase-admin in API Routes run inside Node.js

I will close the issue now. If you have any further questions or thoughts, please let me know :-)


Create Accounts and Addresses examples with related docs

Description
Create two examples for the Accounts and Addresses section. It should contain:

[ ] Create mnemonic
[ ] List addresses
[ ] Create an account
[ ] Create an address
[ ] List accounts
[ ] List outputs
[ ] Check unlock conditions
[ ] List transactions

Are you planning to do it yourself in a pull request?
Yes, someone from out team will work on it.

Shouldn't Check unlock conditions rather be part of https://github.com/iotaledger/iota-sdk/issues/411?

Shouldn't Check unlock conditions rather be part of #411?

Shouldn't Check unlock conditions rather be part of https://github.com/iotaledger/iota-sdk/issues/411?
Yeah we can change that I guess


deprecation warning on react-router

Warning about deprecated router method (seems to be deprecated since 2.x)
Warning: [react-router] `context.location` is deprecated, please use a route component's `props.location` instead. http://tiny.cc/router-accessinglocation

https://github.com/ReactTraining/react-router/blob/master/upgrade-guides/v2.0.0.md

wrong source .. sry


ffmpeg:x64-windows build failure

Host Environment

OS: Windows 10
Compiler: whatever the master branch of vcpkg uses as of the time of filing this.

To Reproduce
Steps to reproduce the behavior:
.\vcpkg install ffmpeg:x64-windows
.\vcpkg list
EXPECTED BEHAVIOR
ffmpeg listed as an installed package.
ACTUAL BEHAVIOR
ffmpeg NOT listed as an installed package.
Trying to install again runs install again, from scratch.
Comments
Additionally, once all dependencies are already met (git, msys, nuget, powershell and all the bloat), building ffmpeg takes over 30 minutes on a modern laptop (Surface Pro 2). This is likely due to Windows Defender kicking in and going berserk EVERY SINGLE TIME a vcpkg install runs. (?)

@bendonderer
I didn't find any error records in the logs you provided. Can you provide all logs under VCPKG_PATH/buildtrees/ffmpeg?
Thanks.

@JackBoosY I have now the same problem.
Which is very strange: there is no error anywhere! The err files are empty, the out are without any hint, the console has only the error you can see above.
Very strange!!
Also, the portfile itself has been the same for a long time. I don't know why is failing now. Maybe the compiler (I try to keep VS up to date, and now it is the latest version) has an internal error??

@JackBoosY My err files were also empty.
After getting a successful build as mentioned before I got two warnings in build-x64-windows-rel-err.log:
C:/Users/x/Source/Repos/vcpkg/vcpkg/buildtrees/ffmpeg/src/n4.2-b7812eeecc/libavcodec/x86/h264_idct.asm:1152: warning: redefining multi-line macro `STORE_DIFFx2'
C:/Users/x/Source/Repos/vcpkg/vcpkg/buildtrees/ffmpeg/src/n4.2-b7812eeecc/libavcodec/x86/h264_idct.asm:1152: warning: redefining multi-line macro `STORE_DIFFx2'

Probably unrelated to this problem.

@cenit If it is a Visual Studio internal error, it should be displayed on the log unless the compiler crashes.
@bendonderer I think so.

In any case, without any log, I don't know where to look at. I might start rewriting the port file using more modern routines, but still it might not end well

@bendonderer to be honest, it might be that emptying the downloads folder did the trick. I will investigate it on my machine. Downloads folder contains also important tools for building ffmpeg, while the packages folder should not matter....

@cenit Since ffmpeg uses a shell script to install, it may be related to this.
I also tried using vcpkg_*_make to rewrite ffmpeg, but it failed.

I can confirm that removing the downloads folder did the trick and the build went fine. Still unsure what broke the build (yasm update maybe?), because everything is related to changes to vcpkg happened outside of this port.

I had another machine with the same issue. Just clearing the tools folder inside downloads also helped. Just deleting yasm and cmake didn't work. I didn't try the other tools individually.
These tools were installed after installing FFmpeg:

7-zip-18.1.0-windows
git-2.21.0-1-windows
msys2
nuget-4.6.2-windows
powershell-core-6.2.1-windows
yasm

I don't think it's related to an compiler update as I'm getting the same result with VS2015 (platform toolset v140) and VS2019 (v142).

Just removing downloads\tools\msys2 did the trick as well.

if it were not for yasm, the only other involved tool is msys2. Still wondering what happened, have to check. It's possible that the last update on msys2 was mine, which means that it's very old by now...? so strange!

In my case there were no errors. Build finished successfully after taking forever (at least it did not yell at me at the end?) but package was not recognized as being installed.
I'm not familiar with vcpkg internals, so not sure if this helps at all.. the built package can be found in vcpkg\packages:
 Directory of C:\Apps\vcpkg\packages

01/25/2020  11:13 PM    <DIR>          .
01/25/2020  11:13 PM    <DIR>          ..
01/25/2020  11:44 PM    <DIR>          ffmpeg_x64-windows   <- the built binaries are here!!!!
01/25/2020  11:13 PM    <DIR>          zlib_x64-windows
               0 File(s)              0 bytes

But it is NOT found in vcpkg\installed:
 Directory of C:\Apps\vcpkg\installed\x64-windows\bin

01/25/2020  11:13 PM    <DIR>          .
01/25/2020  11:13 PM    <DIR>          ..
01/25/2020  11:13 PM           512,000 zlib.pdb
01/25/2020  11:13 PM            85,504 zlib1.dll
               2 File(s)        597,504 bytes

Upon closer inspection, I found an error logs though.
build-x64-windows-rel-err.log
C:/Apps/vcpkg/buildtrees/ffmpeg/src/n4.2-b7812eeecc/libavcodec/x86/h264_idct.asm:1152: warning: redefining multi-line macro `STORE_DIFFx2'
C:/Apps/vcpkg/buildtrees/ffmpeg/src/n4.2-b7812eeecc/libavcodec/x86/h264_idct.asm:1152: warning: redefining multi-line macro `STORE_DIFFx2'

and build-x64-windows-dbg-err.log
make: *** Deleting file 'libavcodec/hevcpred.o'
make: unlink: libavcodec/hevcpred.o: Device or resource busy
make: *** Deleting file 'libavcodec/hevcdsp.o'
make: unlink: libavcodec/hevcdsp.o: Device or resource busy
make: *** [/c/Apps/vcpkg/buildtrees/ffmpeg/src/n4.2-b7812eeecc/ffbuild/common.mak:59: libavcodec/hq_hqa.o] Error 4
make: *** [/c/Apps/vcpkg/buildtrees/ffmpeg/src/n4.2-b7812eeecc/ffbuild/common.mak:59: libavcodec/hq_hqadsp.o] Error 4
make: *** [/c/Apps/vcpkg/buildtrees/ffmpeg/src/n4.2-b7812eeecc/ffbuild/common.mak:59: libavcodec/hevcpred.o] Interrupt
make: *** [/c/Apps/vcpkg/buildtrees/ffmpeg/src/n4.2-b7812eeecc/ffbuild/common.mak:59: libavcodec/hevcdsp.o] Interrupt

Respective output files attached below:
build-x64-windows-rel-out.log
build-x64-windows-dbg-out.log

I had the same problem, but simply retrying succeeded:
Windows 10 x64 + Visual Studio 2019 + today's master: no error in the log files as far as I saw
:: Starting core system upgrade...
warning: resolving dependencies...
terminate other MSYS2 programs before proceeding
looking for conflicting packages...

Packages (6) filesystem-2020.01-1  libzstd-1.4.4-2  mintty-1~3.1.0-1  msys2-runtime-3.0.7-6  pacman-5.2.1-6  zstd-1.4.4-2

Total Download Size:   14.60 MiB
Total Installed Size:  55.72 MiB
Net Upgrade Size:      -1.76 MiB

:: Proceed with installation?
:: Processing package changes...
upgrading filesystem...
upgrading msys2-runtime...
upgrading mintty...
installing libzstd...
installing zstd...
upgrading pacman...
warning: terminate MSYS2 without returning to shell and check for updates again
warning: for example close your terminal window instead of calling exit
-- Acquiring MSYS2... OK
-- Acquiring MSYS Packages...
-- Acquiring MSYS Packages... OK                                                                                -- Building Options: --enable-asm --enable-yasm --disable-doc --enable-debug --enable-runtime-cpudetect --disable-openssl --disable-ffmpeg --disable-ffplay --disable-ffprobe --disable-libvpx --disable-libx264 --disable-opencl --disable-lzma --disable-bzlib --enable-avresample  --disable-static --enable-shared --extra-cflags=-DHAVE_UNISTD_H=0                               -- Building Release Options:  --extra-cflags=-MD --extra-cxxflags=-MD                                                                                -- Building ffmpeg for Release                                                                                -- Building Debug Options: --debug --extra-cflags=-MDd --extra-cxxflags=-MDd                                                                                -- Building ffmpeg for Debug                                                                                CMake Error at scripts/cmake/vcpkg_execute_required_process.cmake:72 (message):                                                                                Command failed: D:/Pro/vcpkg/downloads/tools/msys2/msys64/usr/bin/bash.exe --noprofile --norc D:/Pro/vcpkg/ports/ffmpeg\build.sh D:/Pro/vcpkg/buildtrees/ffmpeg/x64-windows-dbg D:/Pro/vcpkg/buildtrees/ffmpeg/src/n4.2-b7812eeecc D:/Pro/vcpkg/packages/ffmpeg_x64-windows/debug "--enable-asm --enable-yasm --disable-doc --enable-debug --enable-runtime-cpudetect --disable-openssl --disable-ffmpeg --disable-ffplay --disable-ffprobe --disable-libvpx --disable-libx264 --disable-opencl --disable-lzma --disable-bzlib --enable-avresample  --disable-static --enable-shared --extra-cflags=-DHAVE_UNISTD_H=0 --debug --extra-cflags=-MDd --extra-cxxflags=-MDd"                                                                                Working Directory: D:/Pro/vcpkg/buildtrees/ffmpeg/x64-windows-dbg                                                                                Error code: 2                                                                                See logs for more information:                                                                                D:\Pro\vcpkg\buildtrees\ffmpeg\build-x64-windows-dbg-out.log                                                                                D:\Pro\vcpkg\buildtrees\ffmpeg\build-x64-windows-dbg-err.log                                                                                Call Stack (most recent call first):                                                                                ports/ffmpeg/portfile.cmake:212 (vcpkg_execute_required_process)                                                                                scripts/ports.cmake:90 (include)
Error: Building package ffmpeg:x64-windows failed with: BUILD_FAILED                                                                                Please ensure you're using the latest portfiles with `.\vcpkg update`, then                                                                                submit an issue at https://github.com/Microsoft/vcpkg/issues including:                                                                                Package: ffmpeg:x64-windows                                                                                Vcpkg version: 2020.01.18-nohash                                                                                Additionally, attach any relevant sections from the log files above.

@ras0219-msft Can you have a look?

There was an internal compiler error affecting ffmpeg in VS 2019 16.6. Are you still seeing ffmpeg failing?

I haven't had any build problems since February.

Hi @agaace , does this issue still bother you?

Hi guys, does this issue still exist?

We haven't been able to repro this; if more information comes up, or this issue appears again, please reopen.


Enable ObjectMeta Cache for ListingTable

Which issue does this PR close?
Part of #9964

Closes #.
Rationale for this change
Currently the ListingTable on remote storage contains two parts, list_object, which is used to fetch the metadata, and get_object  which is used to get the actual file,
we could cache the metadata for subsequent queries to use the metadata

What changes are included in this PR?
yes after adding cache, the following query has been faster for around 17%

Are these changes tested?
yes increase performance around 17%

Are there any user-facing changes?

I think most of the time consumed should be in get_object, so maybe it is better to cache the parquet file

run benchmark


npm throws errors when tests fail

Version
1.0.0-beta.31
Reproduction link
https://github.com/rowild/vue-unit-testing
Steps to reproduce

clone the repo
npm run test:unit

What is expected?
The console should report only the test results (some of which are currently failing).
What is actually happening?
Additionally to the test results npm throws errors.

I read somewhere that this problem also appears with mocha "which always exists with code !==0". It might be that this is also the case with jest:
https://github.com/facebook/jest/issues/5841
However, I don't know, how to deal with it. Maybe a note about this "phenomenon" could be added to the official docu? Thank you!

Can you please copy paste the error log here? This doesn't really sound like a VTU problem, but a test runner issue.

Here it is, hope it's readable:
> npm run test:unit

><EMAIL_ADDRESS>test:unit /Volumes/_II_/_SITES/__TESTS/_TestsWithVueAndNuxt/vue-unit-testing
> vue-cli-service test:unit

 FAIL  tests/unit/RandomNumber.spec.js
  ● RandomNumber.vue › By default randomNumber dat value is 0

    expect(received).toBe(expected) // Object.is equality

    Expected: false
    Received: true

       8 |   test('By default randomNumber dat value is 0', () => {
       9 |     // expect(wrapper.html()).toContain('0')
    > 10 |     expect(true).toBe(false)
         |                  ^
      11 |   })
      12 |
      13 |   // it's also easy to check for the existence of elements

      at Object.<anonymous> (tests/unit/RandomNumber.spec.js:10:18)

  ● RandomNumber.vue › If the generateRandomNumber button is clicked, the value of randomNuber is between 1 and 10

    expect(received).toBe(expected) // Object.is equality

    Expected: false
    Received: true

      22 |     // expect(randomNumber).toBeGreaterThanOrEqual(1)
      23 |     // expect(randomNumber).toBeLessThanOrEqual(10)
    > 24 |     expect(true).toBe(false)
         |                  ^
      25 |   })
      26 |
      27 |   test('If the generateRandomNumber button is clicked, the value of randomNuber is between 200 and 300 (testing proper usage of props)', async () => {

      at Object.<anonymous> (tests/unit/RandomNumber.spec.js:24:18)

  ● RandomNumber.vue › If the generateRandomNumber button is clicked, the value of randomNuber is between 200 and 300 (testing proper usage of props)

    expect(received).toBe(expected) // Object.is equality

    Expected: false
    Received: true

      33 |     // expect(randomNumber).toBeLessThanOrEqual(300)
      34 |
    > 35 |     expect(true).toBe(false)
         |                  ^
      36 |   })
      37 | })
      38 |

      at Object.<anonymous> (tests/unit/RandomNumber.spec.js:35:18)

 PASS  tests/unit/AppHeader.spec.js

Test Suites: 1 failed, 1 passed, 2 total
Tests:       3 failed, 2 passed, 5 total
Snapshots:   0 total
Time:        1.029s
Ran all test suites.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR<EMAIL_ADDRESS>test:unit: `vue-cli-service test:unit`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the<EMAIL_ADDRESS>test:unit script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR!      /Users/rowild/.npm/_logs/2020-02-24T12_31_06_629Z-debug.log

And the error log's content:
0 info it worked if it ends with ok
1 verbose cli [ '/usr/local/bin/node', '/usr/local/bin/npm', 'run', 'test:unit' ]
2 info using<EMAIL_ADDRESS>3 info using<EMAIL_ADDRESS>4 verbose run-script [ 'pretest:unit', 'test:unit', 'posttest:unit' ]
5 info lifecycle vue-unit-testing@0.1.0~pretest:unit<EMAIL_ADDRESS>6 info lifecycle vue-unit-testing@0.1.0~test:unit<EMAIL_ADDRESS>7 verbose lifecycle vue-unit-testing@0.1.0~test:unit: unsafe-perm in lifecycle true
8 verbose lifecycle vue-unit-testing@0.1.0~test:unit: PATH: /usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/Volumes/_II_/_SITES/__TESTS/_TestsWithVueAndNuxt/vue-unit-testing/node_modules/.bin:/Users/rowild/.pyenv/shims:/Users/rowild/.pyenv/bin:/Users/rowild/.pub-cache/bin:/Users/rowild/flutter/bin:/Users/rowild/.jenv/shims:/Users/rowild/.jenv/bin:/Users/rowild/.composer/vendor/bin:/usr/local/opt/mysql@5.7/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/share/dotnet:/opt/X11/bin:~/.dotnet/tools:/Library/Frameworks/Mono.framework/Versions/Current/Commands:/Applications/Wireshark.app/Contents/MacOS:/Applications/Xamarin Workbooks.app/Contents/SharedSupport/path-bin:/Users/rowild/.pyenv/shims:/Users/rowild/.pyenv/bin:/Users/rowild/.pub-cache/bin:/Users/rowild/flutter/bin:/Users/rowild/.jenv/shims:/Users/rowild/.jenv/bin:/Users/rowild/.composer/vendor/bin:/usr/local/opt/mysql@5.7/bin:/usr/local/sbin:/Applications/Visual Studio Code.app/Contents/Resources/app/bin:/Applications/Visual Studio Code.app/Contents/Resources/app/bin
9 verbose lifecycle vue-unit-testing@0.1.0~test:unit: CWD: /Volumes/_II_/_SITES/__TESTS/_TestsWithVueAndNuxt/vue-unit-testing
10 silly lifecycle vue-unit-testing@0.1.0~test:unit: Args: [ '-c', 'vue-cli-service test:unit' ]
11 silly lifecycle vue-unit-testing@0.1.0~test:unit: Returned: code: 1  signal: null
12 info lifecycle vue-unit-testing@0.1.0~test:unit: Failed to exec test:unit script
13 verbose stack Error<EMAIL_ADDRESS>test:unit: `vue-cli-service test:unit`
13 verbose stack Exit status 1
13 verbose stack     at EventEmitter.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:332:16)
13 verbose stack     at EventEmitter.emit (events.js:311:20)
13 verbose stack     at ChildProcess.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
13 verbose stack     at ChildProcess.emit (events.js:311:20)
13 verbose stack     at maybeClose (internal/child_process.js:1021:16)
13 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:286:5)
14 verbose pkgid<EMAIL_ADDRESS>15 verbose cwd /Volumes/_II_/_SITES/__TESTS/_TestsWithVueAndNuxt/vue-unit-testing
16 verbose Darwin 17.7.0
17 verbose argv "/usr/local/bin/node" "/usr/local/bin/npm" "run" "test:unit"
18 verbose node v12.16.1
19 verbose npm  v6.13.4
20 error code ELIFECYCLE
21 error errno 1
22 error<EMAIL_ADDRESS>test:unit: `vue-cli-service test:unit`
22 error Exit status 1
23 error Failed at the<EMAIL_ADDRESS>test:unit script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
24 verbose exit [ 1, true ]

I checked this out and it all works fine for me -- all the test pass. It looks like a problem with your set up... maybe try a different version of node? Uninstall/reinstall?
I'm going to close this since I don't think this is a bug in VTU. I can try and give you some more ideas to debugging it if reinstalling node doesn't work for you. Does this happen to you on other repositories using Vue Test Utils?

Thank you, @lmiller1990 , for your feedback and checking the problem! It is good to know that it happens to my nodejs setup only.
I of course went through the uninstall/re-install procedure before I posted here, but it seems that I missed some spots to clear out completely.
Currently, this happens on all repos with tests that I use (well... I only have two...).
I will report back, when I have more useable information. Thanks again!

If it happens on all repos, it's a sign its your environment. Try reinstalling node.js, and we can go from there.

I faced the same issue. It turns out that this is the expected behaviour of Jest

Hi, I have been the same problem, i solved with node version manager, just I changed the version of node, it works!


adding eyes module

eyes/eyes.d.ts
check list

[ ] is collect naming convention?

https://www.npmjs.com/package/eyes
http://bower.io/search/?q=eyes
others?

[ ] has a test file? (eyes/eyes-tests.ts or others)
[ ] pass the Travic-CI test?

@vvakame Alright, I added a test file — can you verify that everything is correct now?

@brynbellomy thanks mate!


(VREW-3081) Replace libass/libass with v6x/libass.

This patch replaces libass/libass with v6x/libass.

Why?

Sorry, my mistake. :sweat:


Does this work in Vite?

Core Library
MSAL.js v2 (@azure/msal-browser)
Core Library Version
2.20.0
Wrapper Library
MSAL React (@azure/msal-react)
Wrapper Library Version
1.1.2
Description
I'm trying to run acquireTokenSilent in my React app running with Vite.js (version 2.7.1).
But I'm getting an error from Line 87 in PublicClientApplication.ts - it seems that preflightBrowserEnvironmentCheck is undefined.
I can log in, log out and do all the other normal stuff. But trying to get the idToken is not working.
Error Message
Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'preflightBrowserEnvironmentCheck')
at PublicClientApplication.ts:87
at step (_tslib.js:75)
at Object.next (_tslib.js:56)
at _tslib.js:49
at new Promise ()
at __awaiter2 (_tslib.js:45)
at PublicClientApplication2.acquireTokenSilent (PublicClientApplication.ts:86)
at Module._1 (curry.js:32)
at Module.getEnvironment (RelayEnv.bs.js:14)
at App (App.bs.js:131)
Msal Logs
No response
MSAL Configuration
{
  auth: {
    clientId: "redacted",
    authority: "redacted",
    knownAuthorities: ["redacted"],
    navigateToLoginRequestUrl: false,
    redirectUri: "http://localhost:3000",
  },
  cache: {
    cacheLocation: "sessionStorage",
    storeAuthStateInCookie: false,
  },
}

Relevant Code Snippets
instance.acquireTokenSilent({ account }).then((response) => console.log(response.idToken));

Reproduction Steps

Setup simple react app in vite
use MSAL to get idToken

Expected Behavior
I would expect to get the idToken as I do when running webpack
Identity Provider
Azure B2C Basic Policy
Browsers Affected (Select all that apply)
Chrome
Regression
No response
Source
External (Customer)

Hmm, when I log my instance to the console it says PublicClientApplication2 in my Vite app and PublicClientApplication in my webpack app 🤔 Wonder why that is? This could make sense as it looks like the preflight checks are added to the PublicClientApplication prototype.

Sorry this was caused by some currying issues on my end. Everything works great now that I fixed those 😊


Add support for ngrok

This is used by several projects.

Actually, put this in java-webtools instead


Use go-web3 to decode logs

Rewrite current in-house logic to decode logs in chain-listener by go-web3 in order to reduce maintenance effort on our side
Acceptance criteria

[ ] Check that structs can be decoded

Before going to go-web3 we could try to see if go-ethereum can handle that using: https://github.com/ethereum/go-ethereum/blob/master/accounts/abi/bind/base.go


Promscale as the Jaeger certified storage

Add integration tests for promscale in upstream jaeger so that we can claim promscale meets all the expectations.
EDIT
Summary
Storage integration test failures shall be broadly classified into the following categories,

[x] Get Trace with >10K span in a single query - https://github.com/timescale/promscale/issues/1621#issuecomment-1238070108 (fixed by https://github.com/jaegertracing/jaeger/issues/3912)
[x] Empty span name - https://github.com/timescale/promscale/issues/1621#issuecomment-1239182178
[ ] Binary tags are returned as String tags - Jaeger to Otel translator encodes binary value with base64 - https://github.com/timescale/promscale/issues/1621#issuecomment-1239054206
[x] Span x Event table join issue - https://github.com/timescale/promscale/issues/1621#issuecomment-1239073939
[ ] Query tag which is spread across multiple events with in single trace/span - https://github.com/timescale/promscale/issues/1621#issuecomment-1240612369

Steps to run integration test

Run promscale
Apply the patch https://github.com/jaegertracing/jaeger/compare/main...arajkumar:jaeger:promscale-storage-int-tests.diff into jaeger
Run the following from jaeger repo

go clean -testcache && (cd examples/memstore-plugin/ && go build .) && STORAGE=grpc-plugin go test ./plugin/storage/integration -tags grpc_storage_integration -run="TestExternalGRPCStorage" -v

With little bit of tinkering, I could run the upstream jaeger integration tests.
t.Run("GetServices", s.testGetServices)
t.Run("GetOperations", s.testGetOperations)
t.Run("GetTrace", s.testGetTrace)
t.Run("GetLargeSpans", s.testGetLargeSpan)
t.Run("FindTraces", s.testFindTraces)
t.Run("GetDependencies", s.testGetDependencies)

in the above list, first 3 are running(with little modification), but other tests will need some changes in promscale.

t.Run("GetLargeSpans", s.testGetLargeSpan)

The above test ingests 10K spans under a single trace id and get them in a single GetTraces operation.

Test execution summary:
--- FAIL: TestExternalGRPCStorage (212.15s)
    --- PASS: TestExternalGRPCStorage/GetServices (0.21s)
    --- PASS: TestExternalGRPCStorage/GetOperations (0.00s)
    --- PASS: TestExternalGRPCStorage/GetTrace (0.01s)
        --- PASS: TestExternalGRPCStorage/GetTrace/NotFound_error (0.00s)
    --- FAIL: TestExternalGRPCStorage/FindTraces (211.93s)
        --- FAIL: TestExternalGRPCStorage/FindTraces/Tags_in_one_spot_-_Tags (10.72s)
        --- FAIL: TestExternalGRPCStorage/FindTraces/Tags_in_one_spot_-_Logs (10.70s)
        --- FAIL: TestExternalGRPCStorage/FindTraces/Tags_in_one_spot_-_Process (10.64s)
        --- FAIL: TestExternalGRPCStorage/FindTraces/Tags_in_different_spots (10.64s)
        --- FAIL: TestExternalGRPCStorage/FindTraces/Trace_spans_over_multiple_indices (10.39s)
        --- PASS: TestExternalGRPCStorage/FindTraces/Operation_name (0.01s)
        --- FAIL: TestExternalGRPCStorage/FindTraces/Operation_name_+_max_Duration (10.43s)
        --- FAIL: TestExternalGRPCStorage/FindTraces/Operation_name_+_Duration_range (10.37s)
        --- FAIL: TestExternalGRPCStorage/FindTraces/Duration_range (10.37s)
        --- FAIL: TestExternalGRPCStorage/FindTraces/max_Duration (10.40s)
        --- FAIL: TestExternalGRPCStorage/FindTraces/default (10.40s)
        --- FAIL: TestExternalGRPCStorage/FindTraces/Tags_+_Operation_name (10.69s)
        --- FAIL: TestExternalGRPCStorage/FindTraces/Tags_+_Operation_name_+_max_Duration (10.74s)
        --- FAIL: TestExternalGRPCStorage/FindTraces/Tags_+_Operation_name_+_Duration_range (0.02s)
        --- FAIL: TestExternalGRPCStorage/FindTraces/Tags_+_Duration_range (10.81s)
        --- FAIL: TestExternalGRPCStorage/FindTraces/Tags_+_max_Duration (10.69s)
        --- FAIL: TestExternalGRPCStorage/FindTraces/Multi-spot_Tags_+_Operation_name (10.81s)
        --- FAIL: TestExternalGRPCStorage/FindTraces/Multi-spot_Tags_+_Operation_name_+_max_Duration (10.76s)
        --- FAIL: TestExternalGRPCStorage/FindTraces/Multi-spot_Tags_+_Operation_name_+_Duration_range (10.70s)
        --- FAIL: TestExternalGRPCStorage/FindTraces/Multi-spot_Tags_+_Duration_range (10.70s)
        --- FAIL: TestExternalGRPCStorage/FindTraces/Multi-spot_Tags_+_max_Duration (10.56s)
        --- FAIL: TestExternalGRPCStorage/FindTraces/Multiple_Traces (10.39s)
    --- SKIP: TestExternalGRPCStorage/GetDependencies (0.00s)

FAIL: TestExternalGRPCStorage/FindTraces/Tags_in_one_spot_-_Tags (10.72s)

The current find trace query does a INNER JOIN on span & event which would cause failure to find a trace which doesn't have any event. We must use LEFT JOIN.

When I use LEFT JOIN for event and span table merge, I see the following tests are passing additionally but above listed problem remains for other tests,
TestExternalGRPCStorage/FindTraces/Tags_in_different_spots
TestExternalGRPCStorage/FindTraces/Operation_name_+_Duration_range
TestExternalGRPCStorage/FindTraces/Duration_range
TestExternalGRPCStorage/FindTraces/max_Duration

Few more are passing after adding a second delay in grpc_test Refresh function. Looks like a bug in somewhere in the grpc plugin implementation(Note tracing.asyc-acks are not enabled).
--- PASS: TestExternalGRPCStorage/FindTraces/Tags_in_different_spots (0.00s)
--- PASS: TestExternalGRPCStorage/FindTraces/Trace_spans_over_multiple_indices (0.00s)
--- PASS: TestExternalGRPCStorage/FindTraces/Operation_name (0.00s)
--- PASS: TestExternalGRPCStorage/FindTraces/Operation_name_+max_Duration (0.00s)
--- PASS: TestExternalGRPCStorage/FindTraces/Operation_name+_Duration_range (0.11s)
--- PASS: TestExternalGRPCStorage/FindTraces/Duration_range (0.11s)
--- PASS: TestExternalGRPCStorage/FindTraces/max_Duration (0.11s)

    --- FAIL: TestExternalGRPCStorage/FindTraces/default (10.40s)

This one fails when operationName field of Span is empty.

--- FAIL: TestExternalGRPCStorage/FindTraces/Multi-spot_Tags_+Operation_name+_max_Duration (10.76s)

This has a tag query across span, resource and event. It fails when you have 2 events with 2 distinct tags and both of them are queried at a time.
e.g.

trace_id
span_id
event_name
tag

0001
0007
event1
foo=foo

0001
0007
event2
bar=bar

When you query foo=foo bar=bar, the following WHERE clause would be generated by the promscale which would return empty result because both of the condition won't meet.
e.tags @> ANY($3::jsonb[]) AND e.tags @> ANY($5::jsonb[])

BTW we have #1626 which should help with GetLargeSpans, I'll run some tests

The problem with GetLargeSpans is with the array_agg.
The test sends the same span 10008 times:
Span:
https://github.com/jaegertracing/jaeger/blob/c1bb2946e670129314bf88d9730d8ed7566766d4/plugin/storage/integration/fixtures/traces/example_trace.json#L3-L25
Write part of the test:
https://github.com/jaegertracing/jaeger/blob/c1bb2946e670129314bf88d9730d8ed7566766d4/plugin/storage/integration/integration_test.go#L271-L286
What this means is that we end up with 10008 entries in _ps_trace.span that are identical:
promscale=# select * from _ps_trace.span;
─[ RECORD 1 ]───────────────┬─────────────────────────────────────
trace_id                    │ 00000000-0000-0000-0000-000000000011
span_id                     │ 3
parent_span_id              │ ∅
operation_id                │ 1
start_time                  │ 2022-09-12 19:03:11.639875+02
end_time                    │ 2022-09-12 19:03:11.639975+02
duration_ms                 │ 0.1
instrumentation_lib_id      │ ∅
resource_schema_url_id      │ ∅
event_time                  │ empty
dropped_tags_count          │ 0
dropped_events_count        │ 0
dropped_link_count          │ 0
resource_dropped_tags_count │ 0
status_code                 │ unset
trace_state                 │ ∅
span_tags                   │ {}
status_message              │
resource_tags               │ {"1": 1}
═[ RECORD 2 ]═══════════════╪═════════════════════════════════════
trace_id                    │ 00000000-0000-0000-0000-000000000011
span_id                     │ 3
parent_span_id              │ ∅
operation_id                │ 1
start_time                  │ 2022-09-12 19:03:22.639875+02
end_time                    │ 2022-09-12 19:03:22.639975+02
duration_ms                 │ 0.1
instrumentation_lib_id      │ ∅
resource_schema_url_id      │ ∅
event_time                  │ empty
dropped_tags_count          │ 0
dropped_events_count        │ 0
dropped_link_count          │ 0
resource_dropped_tags_count │ 0
status_code                 │ unset
trace_state                 │ ∅
span_tags                   │ {}
status_message              │
resource_tags               │ {"1": 1}

If you look at the span it has 2 empty (except for timestamp) entries in logs, the translations between jaeger and otel stores this log entries as events. Looking at the _ps_trace.event table we got the same 2 events duplicated 10008 times each (same number of spans that were sent).
promscale=# select count(*) from _ps_trace.event;
 count
═══════
 20016

promscale=# select * from _ps_trace.event limit 4;
             time              │               trace_id               │ span_id │ event_nbr │ dropped_tags_count │ name │ tags
═══════════════════════════════╪══════════════════════════════════════╪═════════╪═══════════╪════════════════════╪══════╪══════
 2022-09-12 18:46:31.639875+02 │ 00000000-0000-0000-0000-000000000011 │       3 │         0 │                  0 │      │ {}
 2022-09-12 18:46:31.639875+02 │ 00000000-0000-0000-0000-000000000011 │       3 │         1 │                  0 │      │ {}
 2022-09-12 18:46:31.639875+02 │ 00000000-0000-0000-0000-000000000011 │       3 │         0 │                  0 │      │ {}
 2022-09-12 18:46:31.639875+02 │ 00000000-0000-0000-0000-000000000011 │       3 │         1 │                  0 │      │ {}

When we try to get the trace we use array_agg to get the events since all the spans have the same values, the query aggregates the 20016 events to every row.
─[ RECORD 1 ]────────────┬──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
trace_id                 │ 00000000-0000-0000-0000-000000000011
span_id                  │ 3
parent_span_id           │ ∅
start_times              │ 2022-09-12 18:46:31.639875+02
end_times                │ 2022-09-12 18:46:31.639975+02
span_kind                │ unspecified
dropped_tags_counts      │ 0
dropped_events_counts    │ 0
dropped_link_counts      │ 0
status_code_string       │ unset
status_message           │
trace_states             │ ∅
schema_urls              │ ∅
span_names               │ example-operation-1
resource_tags            │ {"service.name": "example-service-1"}
span_tags                │ ∅
event_names              │ {"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","",""
event_times              │ {"2022-09-12 18:46:31.639875+02","2022-09-12 18:46:31.639875+02","2022-09-12 18:46:31.639875+02","2022-09-12 18:46:31.639875+02","2022-09-12 18:46:31.639875+02","2022-09-12 18:46:31.639875+02","2022-09-12 18:46:31
event_dropped_tags_count │ {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
event_tags               │ {NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NU
library_name             │ ∅
library_version          │ ∅
library_schema_url       │ ∅
links_linked_trace_ids   │ ∅
links_linked_span_ids    │ ∅
links_trace_states       │ ∅
links_dropped_tags_count │ ∅
links_tags               │ ∅

Related to GetLargeSpans
If I give each Span in the test a unique ID the test passes. Maybe we can add this change to the test. We can use the following arguments to state that the current test is not very representative of a real scenario:
The opentelemtry spec defines the SpanID

SpanId is the identifier for a span. It is globally unique with practically sufficient probability by being made as 8 randomly generated bytes. When passed to a child Span this identifier becomes the parent span id for the child Span

The Jaeger Thrift model states:
  3:  required i64           spanId       # unique span id (only unique within a given trace)

Also, Jaeger has a depuper for non unique spanIDs, because as the documentation says:

Jaeger UI expects all spans to have unique IDs.

I guess the other option is handling duplicates ourselves.

GetLargeSpans fixed by https://github.com/jaegertracing/jaeger/issues/3912

The problems with TestExternalGRPCStorage/FindTraces/Tags_+_Operation_name are:
Spans in fixture have different trace_id:
This test sends a span (a) from a trace and has 3 references to 2 other spans (b and c):

a CHILD_OF b
a CHILD_OF of c
a FOLLOWS_FROM c

https://github.com/jaegertracing/jaeger/blob/cac21f82950545b613f45d3984d96e1498bfd15d/plugin/storage/integration/fixtures/traces/tags_opname_trace.json#L4-L23
The problem is with the child relationship and the fact that each span has a different traceId. This breaks the parent relationship because when the translator tries to get the parent span  it cannot find a match given that all of the spans have different traces, the ParentSpanID method makes the following assertion ref.TraceID == s.TraceID && ref.RefType == ChildOf :
https://github.com/jaegertracing/jaeger/blob/cac21f82950545b613f45d3984d96e1498bfd15d/model/span.go#L99-L109
I think for this point we can propose a fix to the test. Like we did for the GetLargeSpan propose a more realistic scenario.
OTEL doesn't have a concept of refType
The OTEL model doesn't define a span reference type (in the case of OTEL it would be link). When translating from otel to jaeger the parent span is assign the CHILD_OF refType, and all other links are assigned FOLLOWS_FROM:
https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/7b5eb5280c15a5cc195d68757ba4c24c2c7f8eba/pkg/translator/jaeger/traces_to_jaegerproto.go#L260-L281
They explicitly say:

Since Jaeger RefType is not captured in internal data,  use SpanRefType_FOLLOWS_FROM by default.
SpanRefType_CHILD_OF supposed to be set only from parentSpanID.

This is a problem for the test because it's only setting one CHILD_OF when the test expects 2 from the result.
The expected based on the fixture is:
                "references": [
                    {
                        "trace_id": "AAAAAAAAAAAAAAAAAAAAEg==",
                        "span_id": "AAAAAAAAAP8="
                    },
                    {
                        "trace_id": "AAAAAAAAAAAAAAAAAAAAEg==",
                        "span_id": "AAAAAAAAAAI="
                    },
                    {
                        "trace_id": "AAAAAAAAAAAAAAAAAAAAAQ==",
                        "span_id": "AAAAAAAAAAI=",
                        "ref_type": 1
                    }
                ],

The first 2 are ref_type=0 which is CHILD_OF.
The actual result we are getting because the translator sets only one CHILD_OF is:
                "references": [
                    {
                        "trace_id": "AAAAAAAAAAAAAAAAAAAAEg==",
                        "span_id": "AAAAAAAAAP8="
                    },
                    {
                        "trace_id": "AAAAAAAAAAAAAAAAAAAAEg==",
                        "span_id": "AAAAAAAAAAI=",
                        "ref_type": 1
                    },
                    {
                        "trace_id": "AAAAAAAAAAAAAAAAAAAAAQ==",
                        "span_id": "AAAAAAAAAAI=",
                        "ref_type": 1
                    }
                ],

As you can see, since the translator takes the first CHILD_OF for the span parent id all the other relationships are FOLLOWS_FROM.
Again, we can ask for a more realistic test which sets only one parent for the span.

The third problem is that the the query doesn't seem to be returning all the links properly. The aggregate function filter clause doesn't seem to be working correctly.
We are doing FILTER(WHERE lk IS NOT NULL) but that seems to be filtering out everything.  Here is a test summary,
/plugin/storage/integration/integration_test.go:133
                Error:          Not equal:
                                expected: 10008
                                actual  : 10012
                Test:           TestExternalGRPCStorage/GetLargeSpans

The actual problem is that both GetLargeSpans and GetTrace ingests test trace with same trace id and span id and end up getting more the expected number of results.

Hmm, the expectation is to run tests in isolation. See
https://github.com/jaegertracing/jaeger/blob/4fc291568d8ac59a1c67cc47ee1d91ab20dd06c4/plugin/storage/integration/integration_test.go#L119

Hmm, the expectation is to run tests in isolation. See https://github.com/jaegertracing/jaeger/blob/4fc291568d8ac59a1c67cc47ee1d91ab20dd06c4/plugin/storage/integration/integration_test.go#L119

Implemented in https://github.com/timescale/promscale/pull/1627/commits/f02d9a8c3ebc3efc3619d89931edee69bba74824

All tests are passing now.


Code2flow installs improperly, is added to PATH, and opens "How do you want to open this file?" menu

Following the instructions in the README, using python install setup.py, code2flow is added to PATH, but when trying to run, whether with a file or by itself, it instead opens a "How do you want to open this file?" menu.
If you select a text editor it will bring up this:
#!"C:\Users\[User]\AppData\Local\Programs\Python\Python39\python.exe"
# EASY-INSTALL-SCRIPT: 'code2flow==2.0.1','code2flow'
__requires__ = 'code2flow==2.0.1'
__import__('pkg_resources').run_script('code2flow==2.0.1', 'code2flow')

Uninstalling and reinstalling it does nothing.
Using Python 3.9.1 on Windows 10.

Hi @Shidouuu.
I cannot help debug this, unfortunately, because I don't have a windows computer. My feeling is that either your Python environment is setup incorrectly or that how you installed code2flow is not the regular "windows way" to do so. For what it's worth, the command should be python setup.py install, not python install setup.py.

I've got a possible fix that seems to be "the way" to make CLI tools run in a cross-platform way.
Could you do me a favor, download the windows branch, and let me know if that fixes the problem? https://github.com/scottrogowski/code2flow/tree/windows

It doesn't open the "How do you want to..." dialog anymore but unfortunately it still only outputs the legend. Might be a different issue, I'm not sure.

Ah, I missed the "it only outputs the legend" part. So it's working. Looking at your log output, it looks like it only found the implicit (global) node which means you don't have any defined functions in your file or, alternately, the defined functions are nested in a complicated way. Code2flow doesn't connect to functions in any file that wasn't input - including third-party modules. It looks like the only calls you have are to one or more third-party packages (is it PIL?).
Closing the issue for now as it seems the main issue has been resolved. Feel free to open another if I got that wrong.

Oops, didn't notice the example program didn't have any functions. Regardless, I've tried it with other programs and it does the same thing. I'll open a new issue when I have time.


[sysrst_ctrl/cov] Increase num_trans to 30 for combo_detect test

This increases the coverage for 'sysrst_ctrl_combo_detect_action_cg' to approx 90%. The primary lack of coverage is due to large crosses of all the possible combo inputs, and adding more randomization (trans or seeds) is one way to hit them.
Signed-off-by: Harry Callahan<EMAIL_ADDRESS>

These changes were merged as part of #16575


WebSocket connection error

Type:

[x] bug
[ ] feature
[ ] enhancement
[ ] question

Environment:

OS: Ubuntu 18
Browser: Chrome 79
Library Version: 1.1.4

I'm going to open a PR:

[ ] yes
[x] no (well, not until we figure out the issue)

Description:
I am getting the following repeated error in the background page from what I assume is my background page trying to connect to webpack-extension-reloader.
WebSocket connection to 'ws://localhost:9090/' failed: Error in connection establishment: net::ERR_SSL_PROTOCOL_ERROR

I have reproduced it using the sample from this repo here: https://github.com/craigsketchley/webpack-extension-reloader-sample
Is anyone else getting this issue?

Any thoughts on this @rubenspgcavalcante? I'm happy to look into this myself if you'd be happy to review a PR if it came to that.

Any update on this? @craigsketchley have you found any solution to it?

I have this problem too.
@rubenspgcavalcante, could you pay attention to this problem, please.

Yeah, it's unusable in it's current state for me. I've just uninstalled it - which is a shame because it's really useful. Is this still being maintained? Want me to look into it @rubenspgcavalcante?

@craigsketchley if you will find a solution or some another plugin for extensions hot-reload - say us please)
The author has not been active since February 10.

The error you're getting is SSL related which is different than what I had but take a look at this issue and the author's response, in case that's somehow related.


Rename force_aba  + extra binds functions of SolverDDP - [merged]

In GitLab by @cmastalli on Aug 29, 2019, 15:14
Merges topic/force-aba -> cpp_devel
This PR fixes issue #236.

In GitLab by @cmastalli on Aug 29, 2019, 15:14
enabled an automatic merge when the pipeline for bb9c6df47c8f95da4d8be1f61dc71edadec367a6 succeeds

In GitLab by @cmastalli on Aug 29, 2019, 15:32
added 1 commit
e4211177 - [bugfix] Fixed name problem in assert
Compare with previous version

In GitLab by @cmastalli on Aug 29, 2019, 16:12
merged

In GitLab by @cmastalli on Aug 29, 2019, 16:12
mentioned in commit 84cdb576ac16354747136723bed207953c092021


OWB1 - wrong token image path - Lorenz

Describe the bug
Lorenz from Feast of Blood have wrong token image path: modules/wfrp4e-owb1/assets/lorenz/lorenz.webp
Should be: modules/wfrp4e-owb1/assets/tokens/lorenz.webp

Also:
Flusskapitän Meinard Links from Something Knocking have wrong token image path: modules/wfrp4e-owb1/assets/tokens/meinard-links.jpg
Should be: modules/wfrp4e-owb1/assets/tokens/meinard-links.webp
and Skeleton from Something Knocking have wrong token image path: modules/wfrp4e-core/art/tokens/skeleton.webp
Should be: modules/wfrp4e-core/tokens/skeleton.webp


Minimize duplication of code in templates

Actual Behaviour
Currently the templates are using the same logic for search, filter etc, all the templates have duplicate code.
Expected Behaviour
We should add a separate JS file to reduce the code duplication in the template files

I am working on this.

@agbilotia1998 are you working on this.

Ummm, you can take this up, right now I am working on a different issue.

ok :+1:


Color - what's that?

I tried to compile lib under .NET FW 4.8, but stuck at place where you use Color class(struct?). From what assembly it is?? No any mention in a project. Just in case, it's in CategoryColorAnalysis.cs

Color is in System.Drawing

Surprisingly, C# file doesn't import any "System.Drawing". Is it not necessary anymore?

Good question. Not sure how that works exactly.
Can you continue now?

Yes, thank you! Compiled w/o any changes (just recreated project for FW 4.8). It's good lib for using DGML w/o MS tools.

Ok, then I close this issue.


Can't see a direct or indirect way to derive ed25519 pk from sk

Seems that the libsodium.js offers methods that allow to find the pk and create a keypair object given only sk for ed25519, but right now I am not seeing how to do this with this wrapper. Please could you add?

I can look into it. Could you provide a link to the function in the Libsodium documentation or the function you've found from libsodium.js?
Sent from Proton Mail mobile
-------- Original Message --------
On Sep 6, 2023, 5:55 PM, Frank Szendzielarz wrote:

Seems that the libsodium.js offers methods that allow to find the pk and create a keypair object given only sk for ed25519, but right now I am not seeing how to do this with this wrapper. Please could you add?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: @.***>

Thanks! Apparently this exists https://bitcoin.stackexchange.com/a/62351/144545
Will fork repo and play around too.
From: Jack Edwards @.>
Sent: Thursday, September 7, 2023 1:07 AM
To: Jack-Edwards/BlazorSodium @.>
Cc: Frank Szendzielarz @.>; Author @.>
Subject: Re: [Jack-Edwards/BlazorSodium] Can't see a direct or indirect way to derive ed25519 pk from sk (Issue #48)
I can look into it. Could you provide a link to the function in the Libsodium documentation or the function you've found from libsodium.js?
Sent from Proton Mail mobile
-------- Original Message --------
On Sep 6, 2023, 5:55 PM, Frank Szendzielarz wrote:

Seems that the libsodium.js offers methods that allow to find the pk and create a keypair object given only sk for ed25519, but right now I am not seeing how to do this with this wrapper. Please could you add?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID<EMAIL_ADDRESS>
—
Reply to this email directly, view it on GitHubhttps://github.com/Jack-Edwards/BlazorSodium/issues/48#issuecomment-1709238926, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AH7WPTTBLBPGM26ZGBVPXCDXZD62XANCNFSM6AAAAAA4OAURJM.
You are receiving this because you authored the thread.Message ID<EMAIL_ADDRESS>

Check this out.
https://github.com/Jack-Edwards/BlazorSodium/blob/53d34307b825076c1951b2df2299ac41a971f00b/BlazorSodium/Sodium/ScalarMultiplication.Interop.cs#L46
When I first wrote this library I was using the "standard" version of libsodium.js. As opposed to the "sumo" version that includes a lot more functionality.
But the library is now using the "sumo" version, as password hashing was moved to to the "sumo" version in a later release of libsodium. Password hashing is something I personally need.
So this commented out code might already be functional. But one of us will need to uncomment and confirm.
Sent from Proton Mail mobile
-------- Original Message --------
On Sep 6, 2023, 6:10 PM, Frank Szendzielarz wrote:

Thanks! Apparently this exists https://bitcoin.stackexchange.com/a/62351/144545
Will fork repo and play around too.
From: Jack Edwards @.>
Sent: Thursday, September 7, 2023 1:07 AM
To: Jack-Edwards/BlazorSodium @.>
Cc: Frank Szendzielarz @.>; Author @.>
Subject: Re: [Jack-Edwards/BlazorSodium] Can't see a direct or indirect way to derive ed25519 pk from sk (Issue #48)
I can look into it. Could you provide a link to the function in the Libsodium documentation or the function you've found from libsodium.js?
Sent from Proton Mail mobile
-------- Original Message --------
On Sep 6, 2023, 5:55 PM, Frank Szendzielarz wrote:

Seems that the libsodium.js offers methods that allow to find the pk and create a keypair object given only sk for ed25519, but right now I am not seeing how to do this with this wrapper. Please could you add?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID<EMAIL_ADDRESS>
—
Reply to this email directly, view it on GitHubhttps://github.com/Jack-Edwards/BlazorSodium/issues/48#issuecomment-1709238926, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AH7WPTTBLBPGM26ZGBVPXCDXZD62XANCNFSM6AAAAAA4OAURJM.
You are receiving this because you authored the thread.Message ID<EMAIL_ADDRESS>—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: @.***>

Ah top class! Ok I am going to hit the sack as it's nearly 2am and will have a look later tomorrow.
I am experimenting with Blazor and ed25519 crypto. I am the maintainer of the .NET SDK for Algorand and want to make Algorand available to people doing client side apps.

On the topic of client side applications, I imagine you'll need to explore a solution for non-browser platforms?
I've tried to marry Geralt with BlazorSodium in one of my other projects: https://github.com/Crypter-File-Transfer/Crypter/tree/main
Interface: https://github.com/Crypter-File-Transfer/Crypter/blob/main/Crypter.Crypto.Common/ICryptoProvider.cs
Browser implementation: https://github.com/Crypter-File-Transfer/Crypter/tree/main/Crypter.Crypto.Providers.Browser
"Default" implementation (for server/desktop): https://github.com/Crypter-File-Transfer/Crypter/tree/main/Crypter.Crypto.Providers.Default
You choose which implementation you want using basic DI patterns.  It works pretty well.  I don't have a non-browser client application, but this should easily allow for it.

Hi again, thanks. No the .NET SDK as is works with BouncyCastle, and I just recently ported an experimental branch to NSec.
It's a .NET Standard 2 class lib. It doesn't actually need much crypto, just some ed25519 signing and verifying and one or two hashes.

Sorry to bother again...but what do I need to do to get SHA256 available as a hash function? I am not sure how this interop works....I guess there's a js file somewhere I should look at and construct the Interop.cs stuff manually?

Just to be sure, you are correct.    The interop files in this project map to those javascript functions.  I'd like to one day figure out how to invoke the libsodium wasm directly, but that's still above my head.
https://github.com/jedisct1/libsodium.js/tree/master/wrapper/symbols

I actually took a dive down the rabbit hole with this...apparently we can link "web assembly native" binaries.
So I took a look at this https://github.com/jedisct1/libsodium/releases and you can see there that the latest has a target for building to wasm. So I used WSL Ubuntu and tried to build. I am no Linux user, so ended up having to install all kinds of stuff, llvm, and lord knows what else, only to have it eventually fail in ways that were beyond my understanding completely.
The article on linking native wasm is here https://learn.microsoft.com/en-us/aspnet/core/blazor/webassembly-native-dependencies?view=aspnetcore-7.0
My guess is if we can get a libsodium wasm file we can just link it direct...but i have no idea how to get it. If you could figure out how to build the wasm maybe we could make some progress but I had to give up.

Check this out. https://github.com/Jack-Edwards/BlazorSodium/blob/53d34307b825076c1951b2df2299ac41a971f00b/BlazorSodium/Sodium/ScalarMultiplication.Interop.cs#L46 When I first wrote this library I was using the "standard" version of libsodium.js. As opposed to the "sumo" version that includes a lot more functionality. But the library is now using the "sumo" version, as password hashing was moved to to the "sumo" version in a later release of libsodium. Password hashing is something I personally need. So this commented out code might already be functional. But one of us will need to uncomment and confirm. Sent from Proton Mail mobile
…
-------- Original Message --------
On Sep 6, 2023, 6:10 PM, Frank Szendzielarz wrote: Thanks! Apparently this exists https://bitcoin.stackexchange.com/a/62351/144545 Will fork repo and play around too. From: Jack Edwards @.> Sent: Thursday, September 7, 2023 1:07 AM To: Jack-Edwards/BlazorSodium @.> Cc: Frank Szendzielarz @.>; Author @.> Subject: Re: [Jack-Edwards/BlazorSodium] Can't see a direct or indirect way to derive ed25519 pk from sk (Issue #48) I can look into it. Could you provide a link to the function in the Libsodium documentation or the function you've found from libsodium.js? Sent from Proton Mail mobile -------- Original Message -------- On Sep 6, 2023, 5:55 PM, Frank Szendzielarz wrote: > Seems that the libsodium.js offers methods that allow to find the pk and create a keypair object given only sk for ed25519, but right now I am not seeing how to do this with this wrapper. Please could you add? > > — > Reply to this email directly, view it on GitHub, or unsubscribe. > You are receiving this because you are subscribed to this thread.Message ID<EMAIL_ADDRESS>— Reply to this email directly, view it on GitHub<#48 (comment)>, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AH7WPTTBLBPGM26ZGBVPXCDXZD62XANCNFSM6AAAAAA4OAURJM. You are receiving this because you authored the thread.Message ID<EMAIL_ADDRESS>— Reply to this email directly, [view it on GitHub](#48 (comment)), or unsubscribe. You are receiving this because you commented.Message ID: @.>

Hi there again. Sorry, I ended up going down a rabbit hole.
I can PR my somewhat butchered master back into your repo, where I ended up dicking around unnecessarily with Sha256....(it turns out that libsodium does not correctly implement sha512/256 ... they just truncate a sha512 rather than follow the sha512/256 initialisation vector guidelines....is that not a libsodium security error) .... but all I need is the uncommented:

        /// <summary>
        /// Compute the public key for the provided private key.
        /// </summary>
        /// <param name="privateKey"></param>
        /// <returns></returns>
        /// <see cref="https://github.com/jedisct1/libsodium.js/blob/master/wrapper/symbols/crypto_scalarmult_base.json"/>
        public static byte[] Crypto_ScalarMult_Base(byte[] privateKey)
           => Crypto_ScalarMult_Base_Interop(privateKey);

        /// <summary>
        /// Compute the public key for the provided private key.
        /// </summary>
        /// <param name="privateKey"></param>
        /// <returns></returns>
        /// <see cref="https://github.com/jedisct1/libsodium.js/blob/master/wrapper/symbols/crypto_scalarmult_ed25519_base.json"/>
        public static byte[] Crypto_ScalarMult_Ed25519_Base(byte[] privateKey)
            => Crypto_ScalarMult_Ed25519_Base_Interop(privateKey);

        /// <summary>
        /// Compute the public key for the provided private key.
        /// </summary>
        /// <param name="privateKey"></param>
        /// <returns></returns>
        /// <see cref="https://github.com/jedisct1/libsodium.js/blob/master/wrapper/symbols/crypto_scalarmult_ed25519_base_noclamp.json"/>

        public static byte[] Crypto_ScalarMult_Ed25519_Base_NoClamp(byte[] privateKey)
            => Crypto_ScalarMult_Ed25519_Base_NoClamp_Interop(privateKey);
    }

    ```

Actually will PR my stuff anyway, but best would be if you could just add everything.


Update SGD optimizer API docs 📓

Good old SGD:

Description: Added a sentence about momentum and the Nesterov acceleration gradient (N. momentum) being of first-order, etc and what they do to SGD.
Parameters: Added 4 params with most descriptions from code comments.
Reference: Added 5 papers (SGD, classic momentum, NAG), such as Robbins and Monro (1951), Wolfowitz (1952), Kiefer and Wolfowitz (1952), Nesterov (Nesterov momentum/NAG, 1983), and Polyak (momentum, 1964).
Example code snippet: Transfer learning with VGG19 and SGD.

Continuing with the rest of the docs.
Thank you.

@dabrahams to schedule meeting with @dan-zheng about this

Reminder to @dabrahams and @dan-zheng for follow-up discussion


refactor(server): Remove opbeat from dev tools

Closes #17176

Pre-Submission Checklist

[X] Your pull request targets the staging branch of freeCodeCamp.
[X] Branch starts with either fix/, feature/, or translate/ (e.g. fix/signin-issue)
[X] You have only one commit (if not, squash them into one commit).
[X] All new and existing tests pass the command npm test. Use git commit --amend to amend any fixes.

Type of Change

[x] Small bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds new functionality)
[ ] Breaking change (fix or feature that would change existing functionality)
[ ] Add new translation (feature adding new translations)

Checklist:

[X] Tested changes locally.
[X] Addressed currently open issue (replace XXXXX with an issue no in next line)

Closes #17176
Description

@tamj0rd2 I looks like you've had some git issues. Try doing a rebase on your changes
git pull --rebase upstream staging

Ready for QA.

@tamj0rd2 you would need to run the command npm remove opbeat so the lock file can be updated :+1:

@Bouncey hey, I did run that command but it only updated the package.json and not the lock file.

Thanks @tamj0rd2 @raisedadead :+1:


 So i was wondering when would the update come for the next version of this mod. Allthou i dont know how long we will be playing on this server. I would love if this mod would update as fast as posible.(But i dont want u to hurry and be bothered by it :D )
Thanks !

works fine on 1.19.2


bones cant be broken in mineclone2

can you tell me what function I need to fix to patch this in

um.


jump to top button added in cart page

I have added jump to top button  in cart page.
My issue no: #591
https://github.com/Anushkabh/krishiconnect/assets/143275265/6533de63-9cc0-4063-965c-917638517232
please add GSSOC label and level.

Hi @himanshu-03 ,
I will do another PR for jump to top buttons in all pages.
I will complete it by tomorrow.


Terraform 0.14 upgrade

what

Upgrade to support Terraform 0.14 and bring up to current Cloud Posse standard

why

Support Terraform 0.14

/test all

/test all

/test all

/test all

Hello there, I'm working on upgrade terraform to v0.14, it seems it's working well, LGTM.

Hello there, I'm working on upgrade terraform to v0.14, it seems it's working well, LGTM.


Provide support for laminas-ci-matrix v1.9

Q
A

Documentation
yes

BC Break
no

New Feature
yes

Description

This adds ignore_php_platform_requirement which was introduced in https://github.com/laminas/laminas-ci-matrix-action/releases/tag/1.9.0

This PR lacks support for swoole on PHP 8.1.
I have tried to install it from source using 4.7.0 which did not work.
Maybe 4.7.1 does but we can still add that later on.


grayskull rerender & set python upper bound 3.12

Rerendered with grayskull and hand-edited Python dependency and minimized whitespace diffs.
Fixes #5.

Checklist

[x] Used a personal fork of the feedstock to propose changes
[x] Bumped the build number (if the version is unchanged)
[ ] Reset the build number to 0 (if the version changed)
[x] Re-rendered with the latest conda-smithy (Use the phrase @conda-forge-admin, please rerender in a comment in this PR for automated rerendering)
[x] Ensured the license file is being packaged.

Fixes #5

do you mind adding yourself as a maintainer? curren tmaintainers seem inactive.

do you mind adding yourself as a maintainer? curren tmaintainers seem inactive.

I don't think so, no. I don't actually use this package anymore, as we replaced this dependency because of the lack of Python 3.12 compatibility.

I'm curious them why you are interested in patching it and making this PR? even if for your own historical testing it may be useful for you to help out.
Ultimately, waiting for us for 2 weeks to agree that maintainers are unresponsive won't be fun for future "fixes" list his.


GitHub API rate limit exceeded

When requesting information about many libraries, the rate limit for the github api is reached and the 'development-column'-task fails.

We will add the possibility to add a GitHub API key.

We will need https://github.com/mxstbr/micro-github or https://github.com/prose/gatekeeper


Pin less to latest compatible version

Gulp is incompatible with the latest release of less.
See https://travis-ci.org/rtfd/readthedocs.org/builds/340312177
2.7.3 is the previous stable
https://github.com/less/less.js/blob/HEAD/CHANGELOG.md#273

ty


RFC: materialize the result to handle non-deterministic functions

Any interaction of UDF with watermark?

Any interaction of UDF with watermark?

I think we should give user way to config on the UDF such as

is deterministic, false by default
is monotonically increasing, false by default

This proposal inspires me that, if we're going to fix a bug for our built-in expression in a version update, it also breaks the determinism, even if the expression itself is mathematically pure. 😄 If we're for the sake of serious consistency and determinism, we should even version-tag the built-in expressions and keep the buggy one when fixing, in this case.


GEODE-7249: Disable GfshInitFileIntegrationTest

GfshInitFileIntegrationTest fails intermittently and currently uses
reflection to alter values of static variables in Gfsh.
It needs to be disabled in CI until someone has the time and desire to
rewrite this test.

I merged this to develop early because it's failing for everyone.