text:
Can't register consent in the Customer Privacy API

What is the location of your example repository?
No response
Which package or tool is having this issue?
Hydrogen
What version of that package or tool are you using?
2024.7.7
What version of Remix are you using?
No response
Steps to Reproduce
These are the steps to reproduce the issue:

Create a hydrogen storefront.
Add a Custom Variable with key PUBLIC_CHECKOUT_DOMAIN and value checkout.shoesforuse.myshopify.com
Add a Script component to load the Customer Privacy API.
Set the Consent Security Policy’s withPrivacyBanner option to false.
Create the component ThirdPartyConsent from the example provided in the Shopify documentation. After that change the thirdPartyConsentSdkUrl to a url that contain test data that sets all consent categories to true, and then add the url to the Consent Security Policy’s defaultSrc property in order for the script to not be blocked.
Include the ThirdPartyConsent component in the body of the store right bellow the script that loads the Customer Privacy API.

Expected Behavior
Proper register the consent on the consent privacy API.
Actual Behavior
Not being able to register consent in the Customer Privacy API. The error message we receive on when running the store in development mode is -
POST https://checkout.shoesforuse.myshopify.com/api/unstable/graphql.json net::ERR_CERT_COMMON_NAME_INVALID.
When we deploy the changes on the live store we receive an error regarding an extraneous country key being set.

That's a weird error. I have not seen ERR_CERT_COMMON_NAME_INVALID error before. Can you give me a screenshot of this network request in the inspector. I need the request header, response header, and the response payload itself, if any.
Make sure you are not using the private storefront access token - it usually begins with shpat_
As for the extraneous country key being set error, that bug was introduced in 2024.7.5 and should be fixed in version 2024.7.7. Can you double check the version of Hydrogen in your node_modules folder?

@wizardlyhel
Thank you for your reply.
On your points:

That's a weird error. I have not seen ERR_CERT_COMMON_NAME_INVALID error before. Can you give me a screenshot of this network request in the inspector. I need the request header, response header, and the response payload itself, if any.

Regarding the issue ERR_CERT_COMMON_NAME_INVALID we have created a video showcasing the request’s information that you required.
We tried to change the checkout domain since we tought that this might be the issue and we received this error.
Also, note that we received this error message when trying to register consent in the Customer Privacy API - Error while setting storefront API consent: Failed to fetch

Make sure you are not using the private storefront access token - it usually begins with shpat_

Yes, we are using the PUBLIC_STOREFRONT_API_TOKEN for the storefrontAccessToken property required when registering consent with the Customer Privacy API (Shopify.customerPrivacy.setTrackingConsent function) as shown in this video.

@AlexVasilev-isense You are setting the PUBLIC_CHECKOUT_DOMAIN incorrectly. It should just be the domain url of your online store.
It's most likely it's just shoesforuse.myshopify.com

repo: Shopify/hydrogen


text:
Add GDPR & BILLING Webhook Topics

Add required GDPR webhook topics for public apps as outlined at https://help.shopify.com/en/api/guides/gdpr-resources

customers/redact -- Requests deletion of customer data.
shop/redact -- Requests deletion of shop data.
customers/data_request -- Requests to view stored customer data.

Description

Currently the @shopify/koa-shopify-webhooks library does not support the 3 GDPR webhook topics outlined on https://help.shopify.com/en/api/guides/gdpr-resources
Newer billing webhook topics are also not supported on https://help.shopify.com/en/api/guides/billing-api#webhooks-for-billing

Note: the webhook topics on that page are incorrect. They're listed as APP_PURCHASE_ONE_TIME_UPDATE instead of APP_PURCHASES_ONE_TIME_UPDATE  and APP_SUBSCRIPTION_UPDATE instead of APP_SUBSCRIPTIONS_UPDATE

Type of change

[X] @shopify/koa-shopify-webhooks Patch: Adds 3 new webhook topics for GDPR. Existing functionality unchanged.

Checklist

[X] I have added a changelog entry, prefixed by the type of change noted above

@lemonmade got it. I'll remove for this PR the GDPR topics. My main reasoning for adding was that I'm using koa-shopify-webhooks and wanted to validate incoming webhooks with the middleware but they're definitely handled differently since we don't subscribe and instead specify the callback/url in the app settings.

source: gharchive/pull-request

repo: Shopify/quilt

license: MIT

license_type: permissive

license_source: github-api


text:
Fixed failing build in XCode

Added template type to sk_sp in JsiSkFont
Removed unused variable in JsiSkTextBlobFactory

🙌🏼

authors: chrfalch wcandillon

repo: Shopify/react-native-skia


text:
Rename from shopify.extension.toml to shopify.ui.extension.toml

Because all extensions are placed under /extensions (theme, argo, and function extensions) in the new unified app model, the CLI needs a way to disambiguate the type of extension. We'll be doing that through the name of the configuration file.
Because of that, I'm renaming the _next templates to reflect this.

What are the new names for all the configuration files? Looks like it's going to be shopify.ui.extension.toml for prod subscription, checkout UI, checkout post-purchase. What's it going to be for theme app extensions and functions?

authors: pepicrft stephszeto

repo: Shopify/shopify-cli-extensions


text:
Discounts API and PLUS

Since Plus customers get access to the discount endpoint, when is that going to be supported in the this package?

We must just have missed it. New resources are quite easy to add - I'll accept the PR if you write it up or maybe @joshubrown can do it

Al already added it to my fork... will play with it, and if it works as advertised.. I will issue a PR, Thanks

Any reason why a count message sent to the discounts endpoint returns 403 forbidden?

it shouldn't. @joshubrown can you find someone to look into this?

Active Resource calls like find, and all work perfect... tacking on count, which comes from the Base class extended Countable... throws a 403... not sure why...

So not only does count not work, but I am finding there is no finder extension for parameters like for example... give me the discount code with the code set to 'fizzbuzz'. So in a PLUS Shop with 100,000 plus discounts... or more... not only is iterating through all of them stupid, but we cannot cherry pick the one we need? Can some TLC be applied to this aspect of the API?

[2015-08-14T15:20:53.962809 #3]  INFO -- : GET https://fizzbuzz.myshopify.com:443/admin/discounts/count.json
I, [2015-08-14T15:20:53.963207 #3]  INFO -- : --> 403 Forbidden 303 (109.6ms)
I, [2015-08-14T15:20:53.963402 #3]  INFO -- : Headers: {"Accept"=>"application/json", "User-Agent"=>"ShopifyAPI/4.0.6 ActiveResource/4.0.0 Ruby/2.2.2", "X-Shopify-Access-Token"=>"yahright"}
I, [2015-08-14T15:20:53.963465 #3]  INFO -- : Response:
{"errors":"Scope undefined for API access: discounts. Valid scopes: admin_notifications, apps, cart_scripts, channels, content, customers, disputes, fulfillments, gift_card_adjustments, gift_cards, meta_tags, orders, products, script_tags, scripts, shipping, social_network_accounts, taxes, and themes"}
ActiveResource::ForbiddenAccess: Failed.  Response code = 403.  Response message = Forbidden.

Here is an example of a problem with querying for a code... ask for hotrod, get back birthday... this does work in the Shopify Admin... which gives me some hope improvements are due for the API
I, [2015-08-14T15:48:43.287014 #3]  INFO -- : GET https://fizzbuzz.myshopify.com:443/admin/discounts.json?query=hotrod

I, [2015-08-14T15:48:43.287410 #3]  INFO -- : --> 200 OK 4723 (89.8ms)
I, [2015-08-14T15:48:43.287586 #3]  INFO -- : Headers: {"Accept"=>"application/json", "User-Agent"=>"ShopifyAPI/4.0.6 ActiveResource/4.0.0 Ruby/2.2.2", "X-Shopify-Access-Token"=>"fe8e033db559b7fc55425dafe2ae70b6"}
I, [2015-08-14T15:48:43.287677 #3]  INFO -- : Response:
 #<ShopifyAPI::Discount:0x007f8af3c6a0b8 @attributes={"id"=>75300377, "code"=>"birthday", "value"=>"10.00", "ends_at"=>"2020-12-30T19:00:00-05:00", "starts_at"=>"2014-04-29T20:00:00-04:00", "status"=>"depleted", "minimum_order_amount"=>"20.00", "usage_limit"=>1, "applies_to_id"=>nil, "applies_once"=>false, "discount_type"=>"fixed_amount", "applies_to_resource"=>nil, "times_used"=>1}, @persisted=true, @prefix_options={}>

As per my comment on the permissions and 403 errors.. you can see from your own internal tools screenshots that there seems to be an issue that is real here.

Thanks for all the feedback, David. We're looking into the issue with /admin/discounts/count.json.

Update: the count.json endpoint is not available for discounts and will be removed from the docs. We have also decided to leave discounts out of the shopify_api gem for now because access is limited to Plus merchants. Thanks anyways for offering to do the pull request @resistorsoftware :)

Can you at least support a query for a code then, as you offer in the admin?

Sounds like a good idea. I'll look into it.

I know you closed this issue, but as a final note, I am hoping the API team sincerely does offer a functional query for a single code, and I would also like to mention that when you said:

We have also decided to leave discounts out of the shopify_api gem for now because access is limited to Plus merchants

Note that Gift Cards are also for Plus only customers, yet that endpoint is supported. Hence this decision to abandon support of discounts is more likely due to some other issue with discounts. Just trying to be consistent here.

source: gharchive/issue


text:
Slate Start also overwrites Checkout settings

Problem
Slate Start - also overwrites Checkout settings
Replication steps
Settings > Checkout > Style > Customize Checkout > Set Banner with some image
$ slate start
if you go back to Customize Checkout, all the previous settings are empty
More Information
There is no info in settings_schema.json I can preset before I run Slate Start

All editor settings values are tracked using the settings_data.json file. If you upload the version of settings_data.json included with Slate, it will essentially erase any previous settings you selected.
I tried to clarify this with https://github.com/Shopify/slate/pull/201

authors: t-kelly whoiskjl

repo: Shopify/slate


text:
Alert if there are more than x read or write failures within a period of time.

Description
It would be really nice to get an alert if there are more than x read or write failures within a period of time.
Version
0.2.0
What operating system are you running (e.g. Ubuntu 22.04, macOS, Windows 11)?
Ubuntu 22.04, windows 10 chrome.
Anything else?
I had a case where i accidently over provisioned the amount of space.  I was getting read/write errors but no alerts.  It would have been nice to get an alert as I would have been able to spot the problem and fix is sooner.  This also goes for a failed drive.

There should also be an alert if there is a smartdrive (smartctl in linux) failure as well if possible.

repo: SiaFoundation/hostd


text:
Roadmap

Do you plan to go further this project? any roadmap?

Not much. I mostly plan on doing some code cleanup and niceness, but overall I didn't plan for this to be anything other than an editor for dialogue tree data.

thank you!

authors: Siccity cemuka

repo: Siccity/Dialogue


text:
add Apple TV+

timezone based on Netflix drop time and other US networks that are mostly as listed US/Eastern

Can you add Disney+ to your PR? Kill two birds with one stone.

@didyouexpectthat Adding disney+ here: https://github.com/SickChill/sickchill.github.io/pull/23

authors: MichaelBitard didyouexpectthat mmhere


text:
Update network_timezones.txt

Add TED.com

Thanks for the pull request! Before a real human comes by, please make sure your PR has all of the below criteria checked

[ ] Give a description on what the PR is for.
[ ] Make sure your PR is based on the DEVELOP branch
[x] Don't send big changes all at once. Split up big PRs into multiple smaller PRs that are easier to manage and review

Please make sure you also read contribution guide and followed all of the steps.
Thanks!

license_source: bigquery


text:
Use singletons for OkHttp and Volley classes

Using singletons as recommended by OkHttp and Volley.
Also cleaned up most of the warnings in VolleyOkHttp3StackInterceptors.

Looked through and tested things, thank you!

authors: AppearamidGuy SimonHalvdansson

repo: SimonHalvdansson/Harmonic-HN


text:
Unknown CMake command "itk_module_test"

I am trying to build the example: rtkmotioncompensateddfdktest.cxx using CMAKE but I am getting this error:
CMake Error at CMakeLists.txt:43 (itk_module_test):
Unknown CMake command "itk_module_test".
CMake Warning (dev) in CMakeLists.txt:
No cmake_minimum_required command is present.  A line of code such as
cmake_minimum_required(VERSION 3.25)

This is not an example, this is a test. You need to build RTK with the CMake option BUILD_TESTING ON to compile it. It think you should spend time on the ITK software guide to better understand RTK.

repo: SimonRit/RTK


text:
AFTER CLONE

after clone i got like this .... i try rebuild again and gradle sync too

Hi @waseem-terafort
The local.properties file is not part of my repository.
It seems that you're using Android Studio, which for whatever reason auto-generated this file.
Can you share some more details why you cloned the Repo, so that I can give you some guidance?
If you just want to use the qr-code library you can simply obtain it from maven central, which is also outlined in the Quick Start section of my README.
And what is actually not working for you?
In my opinion you can simply delete the local.properties file, since no android is needed here.

authors: SimonScholz waseem-terafort

repo: SimonScholz/qr-code-with-logo


text:
macOS下透明效果无法正常生效的问题

系统版本：macOS Ventura 13.1 (22C65)
在macOS下，透明效果似乎无法正常生效，导致窗口部分为纯白色，在暗黑模式下一些内容无法正常显示。

Fixed

repo: SimonShiki/Typability


text:
Maybe update this to say MESSAGE at the end like the rest of them.

Not sure if this will break project or if it is even worth changing, just an idea. I'm new to Github by the way and I'm still learning how to use it correctly.

I agree this would be more consistent. This will break compatibility with existing controller, but since the message is quite new I'm for it. I will ask on Discord to see if anyone object before merging.

I would like to mention that I've not tested the code, thanks.

authors: PBechon jacobcargen


text:
Segmentation fault with sitk.ImageSeriesReader() GetGDCMSeriesIDs()

Hello,
I had to run DICOM readers on thousands of folder that can have multiple series per folder. I noticed that python will randomly throw a segmentation fault when calling GetGDCMSeriesIDs() inside multiple threads.
The segmentation fault was isolated on that specific command line. This happened randomly after scanning the unique series ID in 1000-8000 folders I am not sure if that command line can have any memory management issue when called thousands of times via different thread, while keeping the reader local to the thread of course. Is that something that should be acknowledge in the limitation of the sitk.ImageSeriesReader() ?
The segmentation fault happened in Windows 10 and Linux (Unbuntu Docker) using python virtual environment tested with SimpleITK 2.0.2 and 2.1.1
I can work on a simple code example if required.
Best,

A code example would be very helpful.  I don't think the GDCM reader is thread safe, though, so that could be the cause.

Alright,
Here is an example. Hope this help!
import os
import glob
from queue import Queue
from threading import Thread
from multiprocessing import cpu_count
import SimpleITK as sitk

class Dicom_Reader(object):
    def __init__(self, input_dir, nb_threads=int(0.9 * cpu_count())):
        self.input_dir = input_dir
        self.folders_with_dcm = []
        self.nb_threads = nb_threads
        self.walk_root_folder()
        self.read_dicom_series()

    def walk_root_folder(self):
        for root, dirs, files in os.walk(self.input_dir, topdown=False):
            if glob.glob(os.path.join(root, '*.dcm')):
                self.folders_with_dcm.append(root)

    def dicom_reader_worker(self, A):
        q = A[0]
        while True:
            item = q.get()
            if item is None:
                break
            else:
                it, dicom_folder = item
                reader = sitk.ImageSeriesReader()
                reader.SetGlobalWarningDisplay(False)
                print('running {} {}'.format(it, dicom_folder))
                try:
                    series_ids_list = reader.GetGDCMSeriesIDs(dicom_folder)
                except:
                    print('Failed on {}'.format(dicom_folder))
            q.task_done()

    def read_dicom_series(self):
        q = Queue(maxsize=self.nb_threads)
        A = (q,)
        threads = []
        for worker in range(self.nb_threads):
            t = Thread(target=self.dicom_reader_worker, args=(A,))
            t.start()
            threads.append(t)

        for it, dicom_folder in enumerate(self.folders_with_dcm):
            item = [it, dicom_folder]
            q.put(item)

        for worker in range(self.nb_threads):
            q.put(None)
        for t in threads:
            t.join()

def main():
    input_dir = r'PATH_TO_DICOM_DIRECTORY'
    dicom_explorer = Dicom_Reader(input_dir=input_dir)

if __name__ == '__main__':
    main()

To solve this random segmentation fault, I switched to pydicom to extract the unique series ID in a dicom folder using any of these two functions (depending if you want to return the filenames of the seriesID).
def get_unique_series_ids(dicom_folder):
    '''
    :param dicom_folder:
    :return: list of unique seriesID in the folder
    '''
    series_id_list = []
    filenames = glob.glob(os.path.join(dicom_folder, "*.dcm"))
    for filename in filenames:
        try:
            ds = pydicom.read_file(filename)
        except:
            continue
        series_id = ds.get('SeriesInstanceUID')
        if series_id not in series_id_list:
            series_id_list.append(series_id)
    return series_id_list

def get_unique_series_ids_filenames(dicom_folder):
    '''
    :param dicom_folder:
    :return: dictionary with list of .dcm files per seriesID
    '''
    series_id_filenames = {}
    filenames = glob.glob(os.path.join(dicom_folder, "*.dcm"))
    for filename in filenames:
        try:
            ds = pydicom.read_file(filename)
        except:
            continue
        series_id = ds.get('SeriesInstanceUID')
        if series_id not in series_id_filenames:
            series_id_filenames[series_id] = []
        series_id_filenames[series_id].append(filename)
    return series_id_filenames

Best,

Hello @guatavita,
Your code appears to assume that the DICOM files have a dcm extension, this often isn't the case. A more generic approach is implement in the code available here.
It traverses the directory structure, identifies the DICOM files based on the file content, aggregates the file names from the same study-series into a list and then reads them. Note that files from the same study-series may be stored in different directories. Commonly happens when data is written to a CD in multiple directories and the files have the same name (i.e. dir1/Z0 and dir2/Z0 both files belong to the same series). The code I pointed to deals with this situation too.
Let us know if this approach worked around your issue.

Thank you @zivy, that's some interesting suggestions and yes I assumed all dicom files should have .dcm extension.
I had to move away from sitk readers anyway. This was cause too many Segmentation faults in multi-threads (60 for example). I had to read, classify and convert ~500,000 dicom files that where in ~110,000 folders and pydicom was more robust to run that in python multi-threading. Plus, pydicom allowed me to read the dicom files without loading the pixel data, which was 5-10 times faster.
Hope this discussion helps localize some issue/limitations for others. I'll definitely rely on sitk for other processes though.
Best,

That's true! I did not see that "inspect_series()" function. Thank you for pointing that out.

authors: dave3d guatavita zivy

repo: SimpleITK/SimpleITK


text:
"Streaming" a pythonic-iterator to access voxels?

I see from the examples here:
https://simpleitk.readthedocs.io/en/master/link_AdvancedImageReading_docs.html
That some ImageIO interfaces offer the ability to load partial files. (I'm guessing the limitations listed are due to the underlying ITK implementations)
I think an interesting feature for (the python part at least) of SimpleITK would be to provide a generator/iterator which could be used to read all voxels in a streaming manner using this interface.

Also, a not so refined example in the Streaming Image IO section of the Image Details Jupyter notebook, illustrates the concept but not ideal code.

Continuing brainstorming here. I would be interesting to have a python iterator for an image/file which generates image regions. This could be used with map to process image chunks.

Continuing brainstorming here. I would be interesting to have a python iterator for an image/file which generates image regions. This could be used with map to process image chunks.

This is exactly what I'm thinking about this.
Long term -- the idea here is wrapping SimpleITK + statsmodels to do voxel-wise statistics without loading everything.

@gdevenyi Do you have an example of statsmodles using a generic iterator as input?

@gdevenyi Do you have an example of statsmodles using a generic iterator as input?

No I don't right now, but I'm literally envisioning an iterator object to do something like:
# voxels is an iterator which will return the same voxel from a collection of N input volumes (assume identical space)
# voxel_values are the values is an array of the i'th value from the N input volumes

for voxel_values in voxels:
	model = sm.OLS(voxel,X)
	results = model.fit()
	# store or otherwise aggregate results

This structure would (ideally) allow a variety of parallel toolkits to do replace the for loop as well.
I'm not necessarily expecting the iterator to do N volumes, but rather I could construct something that could aggregate across N image readers myself, but it would be nice if it could.

The additional classes may be considered for an external python package, but are outside the scope of the SimpleITK library.

authors: blowekamp gdevenyi zivy


text:
simpleITK python acts differently while reading metadata with upper or lower case hexadecimal label

Describe the bug
I can only read series description ('0008|103e' or '0008|103E') with lower case ('0008|103e').
To Reproduce
Steps to reproduce the behavior:

Operating system, version, and architecture

OS: Windows 11 PRO 21H2
Architecture: Intel x86_64

Programming language, and version: Conda Python 3.8.17
Version of SimpleITK [e.g. 1.1.0], output of the SimpleITK Version() function:  2.3.1 (ITK 5.3)
How was SimpleITK installed?

[x] binary distribution [e.g. python -m pip install SimpleITK]

A minimal working example which causes the error.

import SimpleITK as sitk

def read_dicom_series_description(dicom_path, key):
    reader = sitk.ImageFileReader()
    reader.SetFileName(dicom_path)
    reader.LoadPrivateTagsOn()
    reader.ReadImageInformation()

    if reader.HasMetaDataKey(key):
        series_description = reader.GetMetaData(key)
    else:
        series_description = 'NA'

    return series_description

dicom_path = r'path\to\your\dicom'
key = "0008|103E"
print(f"Series Description with {key}:", read_dicom_series_description(dicom_path, key))
key = "0008|103e"
print(f"Series Description with {key}:", read_dicom_series_description(dicom_path, key))
print(sitk.Version())

Expected behavior

Series Description with 0008|103E: 3 Plane Localizer
Series Description with 0008|103e: 3 Plane Localizer
SimpleITK Version: 2.3.1 (ITK 5.3)
Compiled: Nov  1 2023 12:40:43

Unexpected behavior

Series Description with 0008|103E: NA
Series Description with 0008|103e: 3 Plane Localizer
SimpleITK Version: 2.3.1 (ITK 5.3)
Compiled: Nov  1 2023 12:40:43

This behavior was recently documented in the examples here: bee90d54942f54bd5042cd6877a5ee96cae1073e
@zivy Perhaps we need to clarify the documentation in the Image readers too?

This example still uses uppercase ("0020|000D", # Study Instance UID), which just bit me. I spent 1.5 hours chasing this down (derived series does not match the original one at study level).

This example still uses uppercase ("0020|000D", # Study Instance UID), which just bit me. I spent 1.5 hours chasing this down (derived series does not match the original one at study level).

Is there specific change in the Example, SimpleITK documentation or in ITK that would help address this issue?

Yes, changing that to lower case "0020|000D" -> "0020|000d" might save some trouble to somebody in the future.

Hello @dzenanz, sorry about that. This PR addresses the issue.

authors: blowekamp dzenanz xingyunjohn1 zivy


text:
Feature/on ticket reply redirect to show

While poking around at the ticket reply functionality it seemed odd to me to post a reply and get redirected to the tickets.index route. I'm open to discussion if redirecting to tickets.show (as in this PR) is better / worse / doesn't matter.

Opened this in error against master, do not merge,

repo: SimpleLance/SimpleLance

license: mit


text:
【HELP】Please help me use node-ffi in electron-vue

In the main process
Error: Could not locate the bindings file. Tried:
→ X:\git\electron_vue\build\binding.node
→ X:\git\electron_vue\build\Debug\binding.node
→ X:\git\electron_vue\build\Release\binding.node
→ X:\git\electron_vue\out\Debug\binding.node
→ X:\git\electron_vue\Debug\binding.node
→ X:\git\electron_vue\Debug\binding.node
→ X:\git\electron_vue\out\Release\binding.node
→ X:\git\electron_vue\Release\binding.node
→ X:\git\electron_vue\build\default\binding.node
→ X:\git\electron_vue\compiled\7.9.0\win32\ia32\binding.node
at bindings (X:\git\electron_vue\dist\electron\main.js:5743:9)
at Object. (X:\git\electron_vue\dist\electron\main.js:106:51)
at webpack_require (X:\git\electron_vue\dist\electron\main.js:21:30)
at Object. (X:\git\electron_vue\dist\electron\main.js:7263:11)
at webpack_require (X:\git\electron_vue\dist\electron\main.js:21:30)
at Object.module.exports.module.exports (X:\git\electron_vue\dist\electron\main.js:5399:11)
at webpack_require (X:\git\electron_vue\dist\electron\main.js:21:30)
at Object. (X:\git\electron_vue\dist\electron\main.js:2956:70)
at Object.module.exports.webpackEmptyContext.keys (X:\git\electron_vue\dist\electron\main.js:3081:30)
at webpack_require (X:\git\electron_vue\dist\electron\main.js:21:30)
reproduce this problem

npm install --global --production windows-build-tools
npm install -g node-gyp
npm install ffi --save-dev
cd node_modules\ffi && node-gyp rebuild (Omit configuration)
cd node_modules\ref&& node-gyp rebuild (Omit configuration)

src/main/index.js Added:
const ffi = require('ffi')
development environment.

Node version: v6.11.1
NPM version: v5.3.0
Operating System: windows10 x64

If I do that, then it can work
src/renderer/main.js Added:
    /* eslint-disable */
    const ffi = global.require('ffi')
    import Path from 'path'
    let lib = ffi.Library(Path.join(__static, '/dll/Test_x86.dll'), {
        'Add': ['int', ['int', 'int']]
    })
    console.log(lib.Add(5, 5))
    /* eslint-enable */

npm run dev

How do I add node-ffi to the main process? This question bothers me for three days. please help me.

@webees
The ffi is a native node module and needs to built properly against electron. We can do that easily with electron-rebuild.
yarn add ffi
yarn add -D electron-rebuild
.\node_modules\.bin\electron-rebuild.cmd
yarn dev

@SimulatedGREG
Thanks! but, I promise I've tried it. Is there anything else? look that:
src/main/index.js Just added:
const ffi = require('ffi')

solved! Need to add ffi to dependencies in package.json file!

[Just a note for others coming across this thread]
If you're using Webpack, you also have to add ffi/ref as "externals", as I found out here: https://github.com/electron/electron/issues/17745#issuecomment-511115877

authors: SimulatedGREG Venryx webees

repo: SimulatedGREG/electron-vue


text:
Hybrid Aquatic Crash even with Sinytra Connector and Forgified Fabric API

Mod Name
Hybrid Aquatic
Mod Homepage
https://modrinth.com/mod/hybrid-aquatic
Minecraft version
1.20.1
Describe the bug
When the 3 mods are installed, the game crashes when I click Single Player. I made a completely new installation so absolutely all mods in the folder are up to date.
Steps to reproduce
1.Install Hybrid Aquatic, Forgified API and Sinytra Connector
2.Boot up Minecraft
3.Click Single-player
4. CRASH w log report
Logs
https://pastebin.com/EJJwSMbC
Additional context
Granted, I do have other mods including aquatic-based ones and several library mods, but I don't which ones are causing the conflict or if it's something else.

After some further testing, the culprit may not be Hybrid Aquatic but the Sinystra itself.

Duplicate of #1174

repo: Sinytra/Connector


text:
All Fabric mods fail to load with cryptic errors if there is an invalid/corrupted Forge mod

Minecraft version
1.20.1
Describe the bug
All Fabric mods fail to load with cryptic errors if there is an invalid/corrupted Forge mod
Steps to reproduce

Add a mod with broken metadata (e.g. mkdir META-INF; echo "[invalid]" > META-INF/mods.toml; zip testmod.zip -r META-INF)
Add any Fabric mod to the instance
Observe inability to find fabric-api despite Forgified Fabric API being installed.

Logs
https://gist.github.com/Fuyukai/f9bd7c60f1a86374495e36ddad94697c
Additional context
Crash does not happen if testmod.jar is disabled, or the Fabric mods are disabled (Forge gives the appropriate warning about an invalid mod). The actual Fabric mod in this case doesn't matter; I picked the first I could find on Modrinth with no forge version or other dependencies; I've had it explode in an instance full of them.
For a less contrived example that actually happens in the wild, Oculus mc1.20.1-1.6.13a triggers this bug due to having invalid metadata.

probably a NeoForge bug

authors: Fuyukai Lolothepro


text:
For sending PM's how do I fill in the captcha ID/answer for the parameters?

Hi!
I'm learning how to use the Reddit API as I'm new to these kind of JSON type API's in general, but I was curious how to retrieve the Captcha ID/Answer?
For example, I have this code set up, and left the captcha id/answer with blank strings since I didn't know how to use them:
        try
        {
            reddit.ComposePrivateMessage(Subject_textbox.Text, Body_textbox.Text, To_textbox.Text, "", "");

        }

        catch (RedditException ex)
        {

            Console.WriteLine("exception: {0}", ex.Message);
            MessageBox.Show(ex.Message, "Captcha Required!", MessageBoxButtons.OK, MessageBoxIcon.Error);
            return;

        }

If anything, how would I request the captcha ID and store its "question" into a variable so the user can look at it in my app and submit an answer to it in another variable?

I'm not an expert, but I think you need to implement ICaptchaSolver. You can find the default implementation here: https://github.com/SirCmpwn/RedditSharp/blob/84e04cea351e10539b14f05b4948f091dcdc90d6/RedditSharp/ConsoleCaptchaSolver.cs
Once you've implemented it, I think you can just set the CaptchaSolver property on your Reddit object.

Could you give me an example of how this would work? That's what I'm stumbled on.

Firstly, you make a class that implements ICaptchaSolver:
public class MyCaptchaSolver : ICaptchaSolver

and you implement its HandleCaptcha method:
public CaptchaResponse HandleCaptcha(Captcha captcha)
{
    //use the captcha object to solve it somehow
    return //some sort of CaptchaResponse
}

and then make a new instance of that and set it to be your Reddit object's CaptchaSolver:
reddit.CaptchaSolver = new MyCaptchaSolver();

authors: Joroze YMIndustries ericBG

repo: SirCmpwn/RedditSharp


text:
sway refuses to switch between workspaces above certain speed

When I'm trying to continuously switch between workspaces, sway refuses to switch between workspaces if after switching to workspace, subsequent switch happens <~150ms since switch. This value is at best unreliable - it's easier to reproduce just by switching several times (although switches still have to happen quite fast).
Reproducible: Always
Steps to reproduce:

Switch to workspace2 from workspace1
Switch to workspace1
Repeat steps 1-2 quickly enough to trigger the bug.

I'm pretty sure this happens because sway doesn't allow you to hold down $mod+1 and then click on 2 to switch to workspace 2 (this is possible in i3).
When you try to switch quickly like that, you most likely press down one key before you release the other. So it seems like it's slow, but sway is just blocking the binding because you are pressing down more keys than expected. I bet you can make it switch quite fast if you really think about lifting your finger off the key, before pressing the next one :)
We need to make sway understand our gentle human touch. I'll look into it.

If the source of the problem is what you suggest, I don't want to fix it. One of the advantages of sway over i3 is that key bindings aren't based on modifiers. In i3 you can't have mod+1+2 do something distinct from mod+1 or mod+2, but in sway you can. I want to keep it that way. Key bindings are matched based on the current of the keyboard state machine and that shouldn't change.

It would still be possible to have $mod+1+2 if the binding exists, but if it doesn't then you could use the "trick" that i3 uses so it feels more natural (for people with slow fingers lol). I would prefer it that way as I often have a quick peek at another workspace, and sometimes I fail to switch back quick because of this.
But I can definitely understand your argument, I just don't think $mod+1+2 behaving like $mod+2 is a problem, but there might be some other cases where it's annoying?
Either way, that's my 2 cents.

Well, think about stacking modifiers as well (in sway modifiers are treated as normal keys). Would you want mod+shift+s to behave differently than mod+s? In my own config I depend on there being a difference.

I don't think that's a problem. The way it should work imo is:
If you press mod+Shift+s and the binding exists then that will win over mod+s. However, if you press mod+shift+s and that binding doesn't exist, then it would be treated as mod+s.

That seems fair. After playing around with sway's current keyboard handling, I also don't see any reason to allow $mod+1+2 and $mod+1 to coexist.

Fixed in #523, thanks @mikkeloscar

authors: SirCmpwn mikkeloscar zetok

repo: SirCmpwn/sway


text:
Disable -Wunused-result diagnostic

It caused unpredictable build failures with different build environments

To further clarify the intention of this, glibc is way too stringent with these and in many cases we just don't give a shit about i.e. ignoring the return value of write. And gcc fails to implement the generally-accepted means of explicitly silencing this on a case-by-case basis with (void)write(...).


text:
Fix switch to prev ws on handle_view_created

Switching back to original workspace should be done only if workspace
was switched while appending new view.

Are you sure that it influences anything? If I recall correctly, the cases in which this occurs were dealt before. (Or not?)

I had a clash if workspace_auto_back_and_forth was on and I issued command 'workspace back_and_forth'. It usually worked, but after creating a new view, this would switch from current workspace to view's workspace and back. Switching to view's workspace was done via set_focused_container, so prev_workspace_name wasn't changed.  When workspace_switch was called, prev_workspace_name would be overwritten by current workspace, which messed up back_and_forth functionality.
It only happened under drm backend though, the issue didn't appear under x11.


text:
Added Build Rule

Add build rule, to only build on Linux platform, reason for adding this: This allows the usage of the logrus package within a Windows based project. Current logrus project fails to import due to the fact the syslog is missing on Windows.
Important Note:
The additional empty newline between the // +build and the package declaration is mandatory for GoLang to detect the build command.
Current change is tested on Windows, It allows an import of Logrus without errors

A+ thank you

authors: GJRTimmer Sirupsen

repo: Sirupsen/logrus


text:
Fix/458679

Fix prop-types for errorComponent (this is a Placeholder prop in the react package)
Motivation
This fixes a bug where passing a custom error component via the errorComponent prop (as described in the docs) caused an "Invalid prop" error.
How Has This Been Tested?
Unit tests added.
Manual tests on react sample app.

Create a new CustomError component
Update Layout.js to pass a react component to the errorComponent prop to Placeholder <Placeholder errorComponent={CustomError} />
Verify that Home page renders without errors in disconnected and in EE
Update ContentBlock component to throw an error
Verify that CustomError is rendered on Home page instead of ContentBlock
Update Layout.js to pass a renderProp function to the errorComponent prop to Placeholder <Placeholder errorComponent={() =>
Error
} />
Verify that "Error" is rendered on Home page instead of ContentBlock

Types of changes

[x] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)
[ ] Documentation update (non-breaking change; modified files are limited to the /docs directory)

Checklist:

[ x] I have read the Contributing guide.
[ x] My code follows the code style of this project.
[ x] My code/comments/docs fully adhere to the Code of Conduct.
[ ] My change is a code change and it requires an update to the documentation.
[ ] My change is a documentation change and it requires an update to the navigation.

Also, should this fix be mentioned in doc release notes?

Also, should this fix be mentioned in doc release notes?

repo: Sitecore/jss


text:
Bug: absolute value of exp not working properly

Hey! I just installed Skript-parser and tested it. I wanted to have a sample script to start, so I downloaded the one linked in this release note: https://github.com/SkriptLang/skript-parser/releases (https://gist.github.com/Blueyescat/8793eecf545088bf78007a18f19a2013)
This script generated the following errors:
[18:53:39] ERROR: No expression matching ''abs e' was found (line 15: "print "absolute of e = %abs e% (= %|e|%)"", test.sk)
[18:53:39] ERROR: No expression matching ''abs e' was found (line 16: "if abs e = |e|", test.sk)

The code is (lines 15, 16 and 17):
	print "absolute of e = %abs e% (= %|e|%)"
	if abs e = |e|:
		print "yeah 'abs e' = '|e|'"

Again, try it with the correct and latest build first and see if this still exists. This looks like a critical issue we had a month ago but was fixed.

Again, sorry I forgot to mention that in my issue, but I'm using the latest nightly build of Skript-parser. I downloaded it here: https://github.com/SkriptLang/skript-parser/actions/runs/233965848
And I've just download the JDK (14.0.1 iirc), on macOS 10.15.6.

You're right. I am able to reproduce this issue as well.

authors: Mwexim noftaly

repo: SkriptLang/skript-parser


text:
Add expressions Region Flag and Region Priority

Related issue: #4

Anything else that should be changed?

I'll take a look this week and let you know :)

Almost did all of the required changes (I still have to allow multiple regions in the Priority expression). Also, can I add to the PR the effect for deleting regions? I saw that there isn't one yet.

The SkriptLang team loves contributions, so feel free to do so!

authors: APickledWalrus DelayedGaming DereWah

repo: SkriptLang/skript-worldguard


text:
make test is not working when WITH_DOCKER it set

The provided DOCKER_RUN is not working since it don't boot postgresql and redis for testing

Skygear Server Date/Version: v0.17.0
Application Platform:
[ ] Is this a regression?
[ ] Attached logs, screenshots

Expected Results
Test passed
Actual Results
various dial tcp 127.0.0.1:6379: getsockopt: connection refused and Unable to begin transaction for schema migration: dial tcp [::1]:5432: getsockopt: connection refused  indicate the test is fails.
Steps to reproduce

WITH_DOCKER=1 make test

Probably need to use docker-compose for the test to succeed, but docker-compose isn’t need for building the binary, so we either run docker-compose for all steps (which I don’t like, because that is unnecessary) or we provide WITH_DOCKER_COMPOSE=1 for that purpose.
I run test case in Docker using Docker Compose, but I run the command manually rather than using Makefile.

I think it will be ok to using docker-compose to run test when WITH_DOCKER=1. Something like this?
ifeq (1,${WITH_DOCKER})
DOCKER_RUN := docker run xxxxx
DOCKER__COMPOSE_RUN := docker-compose xxxx
endif

authors: cheungpat rickmak

repo: SkygearIO/skygear-server


text:
Exporting to xml

https://i.imgur.com/1jAeasd.png
I've followed the Wiki guide and I'm unsure if I've done something wrong here, the screenshot above shows the error I get when I try and export to xml.

This is caused due to the last PR https://github.com/Skylumz/Sollumz/pull/323
Fix is well underway and I will make a new PR by today to fix it. Sorry for the inconvenience

Okay, thanks, take your time with a fix, it doesn't have to be today.

authors: BobbyTheBuildery ultrahacx

repo: Skylumz/Sollumz


text:
🛑 My blog(CDN) is down

In 187dfcd, My blog(CDN) (https://sbrave.cn) was down:

HTTP code: 0
Response time: 0 ms

Resolved: My blog(CDN) is back up in 100e10e.

repo: SmartBrave/uptime


text:
🛑 My blog(CDN) is down

In c7cb4b2, My blog(CDN) (https://sbrave.cn) was down:

HTTP code: 0
Response time: 0 ms

Resolved: My blog(CDN) is back up in b3f8f73.


text:
🛑 My blog(CDN) is down

In 0251188, My blog(CDN) (https://sbrave.cn) was down:

HTTP code: 0
Response time: 0 ms

Resolved: My blog(CDN) is back up in 825f7e0.


text:
Multiple SmartEvse controllers in different modes

Is your feature request related to a problem? Please describe.
Currently I have two smartEvse 3s running on the latest firmware v3.6.7. One of them is connected to the sensorbox (P1 connected) with A, B, 12V and ground and the other one with A, B and GND as per the manual.
If I don't configure the Powershare function on both devices (one to Master and one to Node1) I get a "serial comm error check cfg or wiring". The downside of this Master/Node1 configuration is that it's impossible to use different modes (Smart/Solar) on each device. When I change one of the devices to Smart both of them go to Smart instead of keeping the other one in Solar.
We generally plug in both cars and prioritize charging one car by using Smart and leaving the other one in Solar so that the other one will start to charge if there's solar production and we've left with the other car or when it's full.
Describe the solution you'd like
Ability to seperately change the mode on each device.
Describe alternatives you've considered
Currently I manually disable one of the chargers or don't plug until we're leaving the one car or it's full. But we have to monitor the progress of the first car in order not to loose any solar production.
We previously used two old SmartEvse (V2) devices and it was working as requested above.
Additional context
From what I understand the powershare splits the power equally between the cars. It might be interesting to be able to set a priority so that one car takes the full (solar) power and the other waits until the first is full. It's more interesting to have one car a 80% and one empty instead of both at 40% at the end of the day.
Thanks for considering

This is a duplicate of this issue at the dingo35 repo:
https://github.com/dingo35/SmartEVSE-3.5/issues/112
I think the test version posted there does exactly what you are asking for. Please test !!!


text:
Make right and left constraints in UIStackView

[x] I have looked at the Documentation
[x] I have read the F.A.Q.
[x] I have filled out this issue template.

Issue Info

Info
Value

Platform
ios

Platform Version
12.0.1

SnapKit Version
5.0.0

Integration Method
cocoapods

Issue Description
I would like to set right and left constraints of a subview in a vertical UIStackView, but when I apply the followed code, just the left constraint worked.
verticalStackView.addArrangedSubview(subview)

subview.snp.makeConstraints { make in
 make.left.right.equalToSuperview().inset(15)
 make.height.equalTo(44)
}

How to fix that ?

Autolayout wouldn't work in a UIStackview - that isn't how they are intended to be used.
You could add a container UIView to the stack and make your subview a child of that.
This would allow you to enable constraints on your view.
        let myVerticalStackview = UIStackView(frame: .zero)
        myVerticalStackview.axis = .vertical

        let myContainerView = UIView(frame: .zero)
        let mySubview = UIView(frame: .zero)

        myContainerView.addSubview(mySubview)

        mySubview.snp.makeConstraints { make in
            make.left.right.equalToSuperview().inset(15)
            make.height.equalTo(44)
        }

        [myContainerView].forEach { myVerticalStackview.addSubview($0) }

Same issue here and I solved it.
If you set alignment to fill the subview will fills to fit the size of the stackview.
So you just set the alignment to center that's it.

authors: Mildwhale grifas nodediggity

repo: SnapKit/SnapKit


text:
Add metadata functionality to HTTP and S3 drivers

This allows someone defining an HTTP EF to specify a header destination-metadata which picks out data to be returned to the user with the rest of the manifest. Additionally, it allows for pagination to update a value in the json parameter sent in the request body.
Tested metadata response on an internal ingestion and pagination parameter via new automated tests in tests/test_drivers_https_pagination.py —

test_process_row_pagination_cursor_json
test_process_row_pagination_cursor_json_null
test_process_row_pagination_cursor_string
test_process_row_pagination_cursor_null
test_process_row_pagination_links

Tested destination-metadata in tests/tests/test_drivers_https_destination_metadata.py.

@sfc-gh-nlele @sfc-gh-pkommini lmk if this looks good or if anything else might be warranted

lgtm!

authors: sfc-gh-afedorov sfc-gh-nlele

repo: Snowflake-Labs/geff


text:
Pumpkin Revenue generation

Hello, Pumpkin Developers, Contributors, and Users!
In this issue, I'd like to discuss ways to generate sustainable funding for the Pumpkin project, ensuring a user and developer-friendly experience.
Project Costs

Website Hosting
Domain costs
Developer Time
Living expenses

To mention are the Plugin Marketplace we planed. This will require some processing power and a good amount- of storage.
What we can do
Charging Hosting companies
Charging Hosting companies who are providing pumpkin game servers. I my opinion, They Basically make money with Pumpkin so why not get a piece of the cake. There where also a idea of making an own Hosting company and providing pumpkin game servers. Having a larger fee we could advertise with much lower costs
Making an own Hosting Company
I mean i always wanted a own hosting company, I don't know if this fits well into this issue because its more of an personal project. But when such a project will come it will be open source and have pumpkin game servers.
Charging Server owners
I had also an idea of charging Server owners when for example they make over ... € a Month. This will make also bigger Servers (e.g. Hypixel) who are self hosting have to be charged. But im not sure if this is a good idea, im predicting a good amout of backlash.
Enterprise support :eyes:
A great solution I think. Companies need to have enterprise support. Their worst nightmare is if their servers go down and they have no professional to fix it, which is often the case with open source. What do they do then? Send a random message on Discord or Reddit asking if someone can help, and maybe get ghosted? Or, even if they don't get ghosted, how can they trust that the other person actually knows the software well enough? See this video I recently discovered on this topic: https://www.youtube.com/watch?v=2ymwP6_Fu0U&t=1s
Provide a "Enterprise" or "Advanced" version of pumpkin :-1:
Basically a closed-source version of Pumpkin with more features and the standard one.

You need to maintain more code
You have no contributors
You have to prevent leaks on the internet
It's not open source (i love open source)

I don't like this option
Plugin Marketplace
Like said above there where plans of making something like the spigot plugin shop/download page. Where free plugin but also paid plugins can be downloaded/bought. We couldn't take a share when a plugin is bought and give the rest to the plugin developer. I think spigot does this as well, Steam does it as well. Sounds like a really good option to me. But building such a Store needs lot of time.
Selling own Plugin
Selling own Plugins in on our own Plugin Marketplace :exploding_head:. Good solution
Website Ads
Putting Ads on our Website, Yeah lets also may sell all the user data to google.
Nah i don't like this
Developer Courses
Isn't this like just pay-to-win documentation? I'm not sure. I mean, if it's a video conference, maybe not. But that would require a lot of time. We could just let users buy pre-recorded videos explaining the Pumpkin API, or static documentation pages. But I'd rather publish tutorials on my YouTube channel for free.
Sponsored Content
Sounds like a good solution.
Revenue Distribution
After covering essential project costs, any remaining funds will be distributed to active developers and contributors.
I like the idea of charging Hosting Companies, Tell me your feedback

Your conclusion is also what my opinion is, focusing on hosting companies. They can have big savings by using performant softwares, and with fast enough boot time they can even shut down the servers and spin it up once someone connects. Companies have big wallets to spend on Minecraft, Minecraft players usually don't. I don't like any of the following:

Enterprise edition
Plugin marketplace
Selling plugins
Advertisements
Courses

Your conclusion is also what my opinion is, focusing on hosting companies. They can have big savings by using performant softwares, and with fast enough boot time they can even shut down the servers and spin it up once someone connects. Companies have big wallets to spend on Minecraft, Minecraft players usually don't. I don't like any of the following:
* Enterprise edition

* Plugin marketplace

* Selling plugins

* Advertisements

* Courses

Sounds reasonable. But i wonder why you dislike the idea of an Plugin marketplace?

Sounds reasonable. But i wonder why you dislike the idea of an Plugin marketplace?

It feels out of scope for Pumpkin, and it's a big "investment" of time that could be spent on the server software. Modrinth does this, it distributes plugins (but not paid). They have full-time employees, we don't. Realistically there isn't much to earn on it, from our side. The plugin creators wants their revenue, and I honestly don't believe that many people are gonna buy things. If we make hosting companies pay, we get money regardless if they play with or without plugins.

I think the plugin marketplace is something that might not generate a lot of revenue, but is important to make nonetheless. The only reason why making spigot servers got so popular, is because of sites that host plugins. Having an official solution, that we don't have to work around, in my opinion seems like a good idea.

It feels out of scope for Pumpkin, and it's a big "investment" of time that could be spent on the server software

I feel like a official plugin marketplace would also be a quality of life improvement for pumpkin users, not only a source of revenue.
Would you rather have to search 3 shady websites for plugins or simply go to the 1 official pumpkin store?

Modrinth does this, it distributes plugins (but not paid). They have full-time employees, we don't.
Your point is definitely valid but I just wanted to mention that modrinth does way more than hosting plugins so this is not a fair comparison. They host resource packs, shader packs, modpacks, etc.

Also a pumpkin specific marketplace would have other benefits like immediately showing a user which permissions a plugin needs / in which language it is written in etc. This is only possible with our own plugin metadata format.

Would you rather have to search 3 shady websites for plugins or simply go to the 1 official pumpkin store?

Modrinth is one trusted website

Also a pumpkin specific marketplace would have other benefits like immediately showing a user
which permissions a plugin needs / which language it is written in etc. This would only be possible with our own plugin metadata format.

What stops Modrinth from doing this? They already have custom code for every loader to parse and validate. What language is used doesn't matter, it's compiled to WASM so you don't even get to edit it.

Modrinth is one trusted website

It doesn't support paid plugins tho.
Selling plugins is definitely a thing devs will want to do.
Those will have to go somewhere else.

Another plus point is that we could integrate the plugin store with our server. Maybe you can just install a plugin like you would with cargo:
pumpkin install world_edit

You guys could also provide support contracts. You sell contracts where larger customers pay you regularly, and if they have bugs or reasonable feature requests you prioritize them, and if they pay enough you even provide 24/7 support for emergencies.

You guys could also provide support contracts. You sell contracts where larger customers pay you regularly, and if they have bugs or reasonable feature requests you prioritize them, and if they pay enough you even provide 24/7 support for emergencies.

Isn't this basically the Enterprise support i mentioned?

I think selling your own plugins and offering Patreon tiers would be the best way to monetize the project.
Making your own hosting company could work, but it's a very difficult operation, especially considering the amount of user support you'll need to provide for issues you haven't even caused.
Enterprise support is probably a good idea to offer, though I doubt it will make much revenue.

My reasoning against the other methods:

Charging Hosting companies.

None of them will pay for it, since the license permits them not to. It's impossible to make the project libre and simultaneously force hosting companies to pay. It will be very difficult to enforce.

^^ Same reasoning against charging server owners. Most can't afford paying anyhow since they're already paying for hosting.
Plugin marketplace.

There's already Modrinth - no need to reinvent the wheel. These platforms are very difficult to develop.

The other ideas mentioned in the original post have obvious faults so I won't talk about those unless you'd like my opinion on them.

@Snowiiii just don't be sponsored by amazon or betterhelp and that gets rid of 50% of the problem :pray:

repo: Snowiiii/Pumpkin


text:
🛑 Matomo is down

In 810d161, Matomo (https://matomo.fabrique.social.gouv.fr/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Matomo is back up in 143a6f2.

repo: SocialGouv/upptime


text:
Add pt-br language on SEVPN.slv  and languages.txt files

Add files for pt-br

closed in favour of https://github.com/SoftEtherVPN/SoftEtherVPN/pull/1057

authors: Flucons chipitsine

repo: SoftEtherVPN/SoftEtherVPN


text:
Not able to import socket.io-client

I am making a custom dashboard and not able to import any external dependency. How am I supposed to do that?

'socket.io-client' is imported by my-dashboard-component.jsx, but could not be resolved – treating it as an external dependency

Thank you

you have to add this /socket.io/socket.io.js assets.scripts in AdminBroOptions and serve it by your HTTP server (express):

I am new in react js can you please tell me how to use that in .jsx file

import { AdminBroOptions } from 'admin-bro

const options: AdminBroOptions = {
....
    assets: {
          scripts: [
           'https://cdnjs.cloudflare.com/ajax/libs/socket.io/1.4.5/socket.io.min.js'
           ]
     }
}

repo: SoftwareBrothers/admin-bro


text:
Add info about the installation instruction

Currently, there is no: 'installation instructions' in the documentation. We have to create this page or rename "example application" along with changes in text.

@szymonpoltorakrst - it is there: https://softwarebrothers.github.io/admin-bro-dev/tutorial-00-installation-instructions.html


text:
⚠ SolarOscp has degraded performance

In 2e6de60, SolarOscp ($SOLAROSCP_URL) experienced degraded performance:

HTTP code: 200
Response time: 298 ms

Resolved: SolarOscp performance has improved in aefcb52 after 10 minutes.

repo: SolarNetworkFoundation/upptime


text:
Moznost oznacovat text v sukromnej sprave

Pridať možnosť pre oznacovanie textu v sukromnej sprave.

Bolo by možné urobiť z http:// linku aktívny link aby po kliknutí bol otvorený prehliadač?

Bolo by možné urobiť z http:// linku aktívny link aby po kliknutí bol otvorený prehliadač?

repo: SomVPrahe/SvPMobileClientAndroid


text:
Reduced compile time by breaking up complex statements into smaller components

Functions.swift and FunctionsTests.swift each used to take around 30 seconds to compile. This has been reduced to approximately 1-2 seconds for each file

Codecov Report

Merging #5 into 1.1.0 will not change coverage.
The diff coverage is 100%.

@@         Coverage Diff          @@
##           1.1.0     #5   +/-   ##
====================================
  Coverage    100%   100%
====================================
  Files          6      6
  Lines       1717   1774   +57
====================================
+ Hits        1717   1774   +57

Impacted Files
Coverage Δ

Sources/Complex/Functions.swift
100% <100%> (ø)
:arrow_up:

Tests/ComplexTests/FunctionsTests.swift
100% <100%> (ø)
:arrow_up:

Continue to review full report at Codecov.

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

authors: SomeRandomiOSDev codecov-io

repo: SomeRandomiOSDev/Complex


text:
Somkiad

ไอเดียที่แตกต่างใน1เดียวของสยาม


text:
[sonarqube] Improvements for handling monitoringPasscode value

Hello,
I've encountered a few things that can be improved surrounding the use of monitoringPasscode value.
Missing env var in deployment.yaml
We recently bumped our SonarQube helm chart to the latest version and encountered our SonarQube pod in CrashLoopBackOff due to 403 on liveness checks. Upon closer inspection, I noticed the following environment variable was missing from the templates/deployment.yaml spec:
           # taken from templates/sonarqube-sts.yaml
            - name: SONAR_WEB_SYSTEMPASSCODE
              valueFrom:
                secretKeyRef:
                  name: {{ template "sonarqube.fullname" . }}-monitoring-passcode
                  key: SONAR_WEB_SYSTEMPASSCODE

Steps to reproduce:
deploy the sonarqube helm chart with version 1.2.5+179
Handle secret value better in livenessProbe
The deployment and statefulset manifests both template .Values.monitoringPasscode straight into the manifest as follows:
# example taken from templates/deployment.yaml
livenessProbe:
  httpGet:
    scheme: HTTP
    path: {{ .Values.livenessProbe.sonarWebContext }}api/system/liveness
    port: http
  httpHeaders:
  - name: X-Sonar-Passcode
    value: {{ .Values.monitoringPasscode }}
initialDelaySeconds: {{ .Values.livenessProbe.initialDelaySeconds }}
periodSeconds: {{ .Values.livenessProbe.periodSeconds }}

This isn't optimal as the value is treated as a secret in other places (like above). I would recommend defining exec commands instead so the environment variable can be used instead. For example:
livenessProbe:
  exec:
    command:
    - bash
    - -c
    - wget
    - -qO-
    - --header="X-Sonar-Passcode:${SONAR_WEB_SYSTEMPASSCODE}"
    - http://localhost:{{ .Values.servce.internalPort }}{{ .Values.livenessProbe.sonarWebContext }}api/system/liveness
initialDelaySeconds: {{ .Values.livenessProbe.initialDelaySeconds }}
periodSeconds: {{ .Values.livenessProbe.periodSeconds }}

Hi @kchenye-bitgo and happy new year.
That makes a lot of sense. do you want to create a PR to implement this as you already wrote the solution? :sweat_smile:

Hi @tobias-trabelsi-sonarsource Happy New Year to you and the team!
Sorry for the delay. I've opened #142 to make the necessary changes. Let me know if there is anything missing from there and I'll be glad to address them.

repo: SonarSource/helm-chart-sonarqube


text:
🛑 FileBrowser is down

In 9e177bc, FileBrowser (https://fs.soneji.xyz) was down:

HTTP code: 0
Response time: 0 ms

Resolved: FileBrowser is back up in e6a5c27.

repo: Soneji/uptime


text:
Any plans to support json (and jsonnet)?

I want to refer same json file in ecspresso and ecschedule.
Now I translate jsonnet to yaml via jsonnet cli.
Do you plan to suport json and jsonnet format as well as ecspresso ?
Or may I implement it?

As you said, ecspresso supports it, and it would be a good idea to follow suit. You are welcome to implement it.

authors: Songmu mrymam

repo: Songmu/ecschedule


text:
Redirect PropertyGrid data

Is there a way to redirect the contents of the property grid to a different node? I have a tree editor and a graph editor. Each tree node has an associated graph node. When the user selects the graph node, I would like the property grid to be updated as if the tree node were selected (but not actually select the tree node).

one way is to implement IPropertyEditingContext.
for reference look at class SelectionPropertyEditingContext
Alan

Do you have any more specifics? I'm looking but am not understanding.

You need to understand  the implementation of the IPropertyEditingContext.
Look for all the IPropertyEditingContext implementation and see how it is being used.
Property editing in ATF is bit complex so it requires more effort to understand it comparing to other parts of ATF.
Good luck.
Alan

authors: abeckus nrvllrgrs

repo: SonyWWS/ATF


text:
Game crashing

hi my game is crashing since the update whenever i try to weave in mug and bunshin, as soon as i click on bunshin the game crashes. updated the opcodes and have the latest version installed. not sure whats causing this, any help would be appreciated!

crashes only on XIVlauncher, official launcher works fine. Could this have something to do with the recent dalamud update?

just pressing battle litany crashes my game as well.

Launch both Dalamud and XIVAlexander with administrative rights.

apparently if i disable material UI installed through penumbra, it fixes the issue

repo: Soreepeong/XivAlexander


text:
Unrecoverable error on launch

XivAlexander_20230116_065619_019.log
I uninstalled the old version and installed the new version released and now this issue appears when I launch the game, game will lauch normally in the background.

Yeah, so I'm an idiot, fixed issue, forgot to change the dalamud auto loader to the new .exe


text:
Any solution for this?

Hey there. So, I updated both ffxiv.exe and ffxiv_dx11.exe files, but after using the curl to get the software to work again, I'm getting the following error:

Any ideas on where I'm ducking it up?

I need to apply https://github.com/Soreepeong/XivAlexander/commit/a115fab31053461e14abad878640b7718f123b3c#diff-830eff420b85cf8563a04d4b318f8b699d6394bf2ff7a4c626466d46138d3e21R110 to this too, but I don't have access to a PC for another day or two. You can keep ffxiv executable from previous game version, or manually search and replace from the script.

Is there anywhere to get my hands on the prepatch versions by chance? I don't backup my games folders so I don't have a previous version :(

You can just try again; I think it should work, but needs testing.

I have 6.35 exe uploaded at https://github.com/bankjaneo/XivMitmDocker/tree/main/app

authors: LittellBrandon Soreepeong bankjaneo xivseiken

repo: Soreepeong/XivMitmLatencyMitigator


text:
Storing order + resetting to that order

G'day,
I have SortableJS working, and it's very good. I like it. :)
I have nested divs set up to show a page structure. My intent is to be able to reset the view back to it's original state. The form's button[type=reset] does the form, but a function to pull the order of the pages back to their initial state is what I'm missing. (I'm hoping I don't have to save the HTML, destroy the SortableJS instance, and reinstantiate.)
I have included store:{get:function(){}, set:function(){}} but I'm unclear on how to get back to a specific point in time. Assuming I collect one of the arrays ["51w","43s","4fv"], how to I pump that back into the object? Or have I misunderstood the objective of this?
Any help would be appreciated.

You call sortable.sort(array) with the array you got from sortable.toArray(). And you call sortable.toArray() at the specific point in time where you want to save the instance. So you don't need store in this case.

Hi again,
So I've had ... some success.
This is the code I'm using for the instantiation...
var los=[];
function setupNestedSortable(){
    var nestedSortables = [].slice.call(document.querySelectorAll('.nested-sortable'));
    // Loop through each nested sortable element
    for (var i = 0; i < nestedSortables.length; i++) {
        los[i]={'sortable':new Sortable(nestedSortables[i], {
                group: 'nested',
                filter: '.unsortable',
                animation: 150,
                fallbackOnBody: true,
                swapThreshold: 0.65,
                onEnd: function(){
                    getCurrentPagesOrder();
                },
                store:{
                    get: function (sortable) {
                        getCurrentPagesOrder();
                        var order = localStorage.getItem(sortable.options.group);
                        //console.log(order);
                        return order ? order.split('|') : [];
                    },
                    set: function (sortable) {
                        var order = sortable.toArray();
                        localStorage.setItem(sortable.options.group.name, order.join('|'));
                        //console.log(order);
                    }
                }
            }),
            'arr':'Yo Momma'
        };
    }
    for (var i = 0; i < los.length; i++) {
        //console.log(los[i]['sortable'].toArray());
        los[i]['arr']=los[i]['sortable'].toArray();
        //console.log(los[i]['arr']);
    }
}

Then I reset like this
function resetSortable(){
    for(var i = 0; i < los.length; i++){
        if(los[i]['arr']!=''){
            los[i]['sortable'].sort(los[i]['arr']);
        }
    }
}```

You can see that the sortable object is being stored in `los[]` along with the current order as an array.

What I'm seeing is that while the changes in the nested structure are kept to the same section (ie: same depth, same parent) - `resetSortable()` works & puts them back.

However, when I move something to another parent, strange things happen. For example:
Starting Point:
![image](https://user-images.githubusercontent.com/605912/76818562-06e15f00-685a-11ea-8ba0-22f7a4a178c4.png)

Move 'Stuff' to 'About':
![image](https://user-images.githubusercontent.com/605912/76818590-1791d500-685a-11ea-9728-3a295fb18df5.png)

Then run the `resetSortable()`
![image](https://user-images.githubusercontent.com/605912/76818617-25dff100-685a-11ea-8638-b5e3a7756a51.png)

Any thoughts as to a solution?
(& Am I correct in assuming that the codes (ie: 43s) are the unique ID for a sortable child?)

I know you haven't had a chance to reply, but I went with the idea of storing the initial HTML, then using the destroy() function I found in the code, and reinitialising.
Thanks for your help. What you wrote above was great to another single level ordering I did. :)

repo: SortableJS/Sortable


text:
gcc-deploy/ARCH=x86_64,NAME=gcc,OS=u1404,SITE=generic,VERSION=6.3.0 #38 failed

Build 'gcc-deploy/ARCH=x86_64,NAME=gcc,OS=u1404,SITE=generic,VERSION=6.3.0' is failing!
Last 50 lines of build output:
[...truncated 17.19 MB...]
 /usr/bin/install -c -m 644 libitm.spec '/data/ci-build/generic/u1404/x86_64/gcc/6.3.0/lib/../lib64'
 /bin/mkdir -p '/data/ci-build/generic/u1404/x86_64/gcc/6.3.0/lib/../lib64'
 /bin/bash ./libtool   --mode=install /usr/bin/install -c   libitm.la '/data/ci-build/generic/u1404/x86_64/gcc/6.3.0/lib/../lib64'
libtool: install: /usr/bin/install -c .libs/libitm.so.1.0.0 /data/ci-build/generic/u1404/x86_64/gcc/6.3.0/lib/../lib64/libitm.so.1.0.0
libtool: install: (cd /data/ci-build/generic/u1404/x86_64/gcc/6.3.0/lib/../lib64 && { ln -s -f libitm.so.1.0.0 libitm.so.1 || { rm -f libitm.so.1 && ln -s libitm.so.1.0.0 libitm.so.1; }; })
libtool: install: (cd /data/ci-build/generic/u1404/x86_64/gcc/6.3.0/lib/../lib64 && { ln -s -f libitm.so.1.0.0 libitm.so || { rm -f libitm.so && ln -s libitm.so.1.0.0 libitm.so; }; })
libtool: install: /usr/bin/install -c .libs/libitm.lai /data/ci-build/generic/u1404/x86_64/gcc/6.3.0/lib/../lib64/libitm.la
libtool: install: /usr/bin/install -c .libs/libitm.a /data/ci-build/generic/u1404/x86_64/gcc/6.3.0/lib/../lib64/libitm.a
libtool: install: chmod 644 /data/ci-build/generic/u1404/x86_64/gcc/6.3.0/lib/../lib64/libitm.a
libtool: install: ranlib /data/ci-build/generic/u1404/x86_64/gcc/6.3.0/lib/../lib64/libitm.a
libtool: finish: PATH="/data/ci-build/generic/u1404/x86_64/ncurses/6.0/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/sbin" ldconfig -n /data/ci-build/generic/u1404/x86_64/gcc/6.3.0/lib/../lib64
/sbin/ldconfig.real: /data/ci-build/generic/u1404/x86_64/gcc/6.3.0/lib/../lib64/libstdc++.so.6.0.22-gdb.py is not an ELF file - it has the wrong magic bytes at the start.

----------------------------------------------------------------------
Libraries have been installed in:
   /data/ci-build/generic/u1404/x86_64/gcc/6.3.0/lib/../lib64

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
   - add LIBDIR to the `LD_LIBRARY_PATH' environment variable
     during execution
   - add LIBDIR to the `LD_RUN_PATH' environment variable
     during linking
   - use the `-Wl,-rpath -Wl,LIBDIR' linker flag
   - have your system administrator add LIBDIR to `/etc/ld.so.conf'

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
 /bin/mkdir -p '/data/ci-build/generic/u1404/x86_64/gcc/6.3.0/share/info'
 /usr/bin/install -c -m 644 ../../../libitm/libitm.info '/data/ci-build/generic/u1404/x86_64/gcc/6.3.0/share/info'
make[4]: Leaving directory `/home/jenkins/workspace/gcc-deploy/ARCH/x86_64/NAME/gcc/OS/u1404/SITE/generic/VERSION/6.3.0/gcc-6.3.0/build-38/x86_64-pc-linux-gnu/libitm'
make[3]: Leaving directory `/home/jenkins/workspace/gcc-deploy/ARCH/x86_64/NAME/gcc/OS/u1404/SITE/generic/VERSION/6.3.0/gcc-6.3.0/build-38/x86_64-pc-linux-gnu/libitm'
make[2]: Leaving directory `/home/jenkins/workspace/gcc-deploy/ARCH/x86_64/NAME/gcc/OS/u1404/SITE/generic/VERSION/6.3.0/gcc-6.3.0/build-38/x86_64-pc-linux-gnu/libitm'
make[1]: Leaving directory `/home/jenkins/workspace/gcc-deploy/ARCH/x86_64/NAME/gcc/OS/u1404/SITE/generic/VERSION/6.3.0/gcc-6.3.0/build-38'
Testing the module availability

--------------------------- /data/modules/compilers ----------------------------
gcc/6.3.0
ci(21):ERROR:102: Tcl command execution failed: prepend-path  MODULEPATH             $::env(LANGUAGES)

Testing the module
Checking gcc
/cvmfs/code-rade.africa-grid.org/generic/u1404/x86_64/gcc/6.3.0/bin/gcc
Checking fortran compile
gfortran: error: hello-world.f90: No such file or directory
Build step 'Conditional step (single)' marked build as failure

Changes since last successful build:
No changes
No changes
No changes
No changes

[Bruce Becker] 90015b4ae384a598d78c1e9db2f142e36d8ace50 - Updates in preparation for release

No changes

[Bruce Becker] 2795b56ae90924346465cea59c9cd6f19e100d19 - Unset the LANGUAGES var while configuring

[Bruce Becker] a68c44e0d6765de6f4ea50ab94f0f6b092dbc2df - Typo in unsetting LANGUAGUES

[Bruce Becker] 9d5a7f0ec7015d6051dd085550dbed406aa93d6d - Closed #32 Closed #34

View full output

Build was fixed!

repo: SouthAfricaDigitalScience/gcc-deploy


text:
Generate values.yaml.XXXXXXX with secrets in local dir.

This facilitates the admin grabbing it and storing it away securely.
Signed-off-by: Kurt Garloff kurt@garloff.de

Thanks for the review, Joshua!
I have added to .gitignore, as you suggested.


text:
Move Edu program status history to FRAM

Description
Move Edu program status history to FRAM by using the fram::RingArray to store program status history entries.
Additionally, add a unit test for RingArray with a custom type (in that case, ProgramStatusHistoryEntry).
Fixes #204

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

Project coverage is 95.35%. Comparing base (d2088ec) to head (d77193d).
Report is 5 commits behind head on master.

Files with missing lines
Patch %
Lines

Sts1CobcSw/Edu/ProgramStatusHistory.cpp
0.00%
5 Missing :warning:

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #328      +/-   ##
==========================================
- Coverage   97.69%   95.35%   -2.34%
==========================================
  Files          33       38       +5
  Lines        1039     1163     +124
  Branches       25       26       +1
==========================================
+ Hits         1015     1109      +94
- Misses         24       54      +30

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

authors: codecov-commenter jeromehue


text:
fix(ffe-form): autoprefixer does not work with apprence: none

Vi sliter med disse pilerne på firefox

Jag la tidligare på apperence: none; og det funker fint i bygget her.
generert css:

Problemet hos oss er av vi importerar less filen og bruker postcss sin autoprefixer og det kan se ut som dom ikke støttar appearance.
gammel issue fra 2013
Slik blir det til slut:

Jag tror derfor vi burde gjøre dette slik. Enige?

Misstenker det er denne autoprefixern som får det til og virke i designsystemet
const LessPluginAutoPrefix = require('less-plugin-autoprefix');

Coverage remained the same at 83.472% when pulling c371c7a484eb237399876eba4b2d67462956096c on develop_fix-apperence-none into 6b4fc2ef1a4a2b57c46872b3b2d3ffa6d52e0679 on develop.

Er det ikke litt bakvendt å dra vendor-spesifikke prefixer inn her fordi noen av de som bruker dette har en autoprefixer som ikke fungerer? Høres ut som den beste fiksen på det ligger et annet sted :)

Er det ikke litt bakvendt å dra vendor-spesifikke prefixer inn her fordi noen av de som bruker dette har en autoprefixer som ikke fungerer? Høres ut som den beste fiksen på det ligger et annet sted :)

Sikkert, men jag tenker att denne feilen burde treffe de aller fleste som bruker kompontent? Oppsettet vi har er standard i monorepoet så alla frontendappar vill nok lida av samma problem. Er fiksen og legge til denne css i alla apper og kanske templaten?  Hvis det var en app så hade jag bare fikset det hos oss men problemet er større en så desverre. :)

Er det ikke litt bakvendt å dra vendor-spesifikke prefixer inn her fordi noen av de som bruker dette har en autoprefixer som ikke fungerer? Høres ut som den beste fiksen på det ligger et annet sted :)

Sikkert, men jag tenker att denne feilen burde treffe de aller fleste som bruker kompontent? Oppsettet vi har er standard i monorepoet så alla frontendappar vill nok lida av samma problem. Er fiksen og legge til denne css i alla apper og kanske templaten? Hvis det var en app så hade jag bare fikset det hos oss men problemet er større en så desverre. :)

Jeg bare sier at det høres ut som en bedre fix er å bruke en autoprefixer som har fått med seg at appearance er i CSS L4 nå. Vi har feks ikke dette problemet der vi bruker appearance: none. Men hvis det er umulig å fikse det på noen annen måte kan man kanskje legge igjen en kommentar om hvorfor. Fint om det ikke ødelegger for andre igjen da.

Er det ikke litt bakvendt å dra vendor-spesifikke prefixer inn her fordi noen av de som bruker dette har en autoprefixer som ikke fungerer? Høres ut som den beste fiksen på det ligger et annet sted :)

Sikkert, men jag tenker att denne feilen burde treffe de aller fleste som bruker kompontent? Oppsettet vi har er standard i monorepoet så alla frontendappar vill nok lida av samma problem. Er fiksen og legge til denne css i alla apper og kanske templaten? Hvis det var en app så hade jag bare fikset det hos oss men problemet er større en så desverre. :)

Jeg bare sier at det høres ut som en bedre fix er å bruke en autoprefixer som har fått med seg at appearance er i CSS L4 nå. Vi har feks ikke dette problemet der vi bruker appearance: none. Men hvis det er umulig å fikse det på noen annen måte kan man kanskje legge igjen en kommentar om hvorfor. Fint om det ikke ødelegger for andre igjen og da.

Jag er egentlig ikke oenig med deg :)

Vi bruker forøvrig MiniCssExtractPlugin med postcss-loader versjon ^3.0.0 og autoprefixer versjon ^9.8.6.

Men for all del, om det er umulig å oppdatere ting i det rammeverket dere er låst i så er vel dette eneste utvei. Jeg antar de fleste autoprefixere ikke choker om de møter et vendor-prefix her og der.

Men for all del, om det er umulig å oppdatere ting i det rammeverket dere er låst i så er vel dette eneste utvei. Jeg antar de fleste autoprefixere ikke choker om de møter et vendor-prefix her og der.

Har dere noen browserlist her?
{
                        loader: 'postcss-loader',
                        options: {
                            plugins: () => [require('autoprefixer')],
                        },
                    },

// webpack config
module : {
    rules: [
        {
            test: /\.less$/,
            use: [
                isProd ? MiniCssExtractPlugin.loader : 'style-loader',
                'css-loader',
                'postcss-loader',
                'less-loader',
            ],
        },
    ]
}

// postcss.config.js
module.exports = {
    plugins: [
        require('autoprefixer')({}),
        require('postcss-clean')({})
    ],
};

Vi har ikke noe browserlist som jeg kan huske å ha satt opp så jeg regner med at den ruller på defaults. Dette er Webpack 4, har ikke hatt tid til å migrere til Webpack 5 enda.

// webpack config
module : {
    rules: [
        {
            test: /\.less$/,
            use: [
                isProd ? MiniCssExtractPlugin.loader : 'style-loader',
                'css-loader',
                'postcss-loader',
                'less-loader',
            ],
        },
    ]
}

// postcss.config.js
module.exports = {
    plugins: [
        require('autoprefixer')({}),
        require('postcss-clean')({})
    ],
};

Vi har ikke noe browserlist som jeg kan huske å ha satt opp så jeg regner med at den ruller på defaults. Dette er Webpack 4, har ikke hatt tid til å migrere til Webpack 5 enda.

Ligner ju masser på vårt:
 {
                test: /\.less$/,
                exclude: /node_modules/,
                use: [
                    extractCss ? MiniCssExtractPlugin.loader : 'style-loader',
                    'css-loader',
                    {
                        loader: 'postcss-loader',
                        options: {
                            plugins: () => [require('autoprefixer')],
                        },
                    },
                    {
                        loader: 'less-loader',
                        options: {
                            lessOptions: {
                                javascriptEnabled: true,
                            },
                        },
                    },
                ],
            },

Har du noen url der jag kan sjekke noen av deres DropDowns muligens?

https://ppm-charlie.test.sparebank1.no/privat/forsikring/pensjon/kjop/pkb
Det er test og krever ikke innlogging, er en ffe-dropdown for å velge fra-selskap.

https://ppm-charlie.test.sparebank1.no/privat/forsikring/pensjon/kjop/pkb
Det er test og krever ikke innlogging, er en ffe-dropdown for å velge fra-selskap.

Dere blir redded av dette, noen css som ligger på sidan av ffe kan det se ut som. Deres dropdown er gammel ser det ut som så den har ikke den apperence: none som jag la på først som autoprefixern ikke skjønner.

➜  ppm-client git:(save-ssn-to-session) fgrep -r "input:not" node_modules/@sb1/* -A 2
node_modules/@sb1/ffe-form/less/form.less:input:not([type='radio']):not([type='checkbox']) {
node_modules/@sb1/ffe-form/less/form.less-    appearance: none;
node_modules/@sb1/ffe-form/less/form.less-}
➜  ppm-client git:(save-ssn-to-session) fgrep -r "input:not" src/less/* -A 2
➜  ppm-client git:(save-ssn-to-session)

Ligger ikke hos oss 🤷

https://github.com/SpareBank1/designsystem/blob/develop/packages/ffe-form/less/form.less#L28
Der er CSSen. Autoprefixeren vår har lagt på det som trengs av prefixer.

https://github.com/SpareBank1/designsystem/blob/develop/packages/ffe-form/less/form.less#L28
Der er CSSen. Autoprefixeren vår har lagt på det som trengs av prefixer.

Hmmmmmm........

Jag vet ikke vad som er feil men lukker denne da

authors: coveralls ivarni pethel


text:
🛑 Wuffs Main is down

In d52c3b5, Wuffs Main (https://wuffs.net/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Wuffs Main is back up in ccb9161 after 6 minutes.

repo: SparksTheFolf/STF-Uptime-Status


text:
Running puppeteer gatsby netlify function

Hi I am trying to use gatsby netlify function with puppeteer but I am running in quite a few issues when my app is deployed to netlify. I’ve found a few topics with the issue but haven’t found the solution for this yet. Hence I am creating this issue.
when I try to trigger the puppeteer function I get this error:
Error when executing function “create-pdf.ts”: “Could not find Chrome (ver. 112.0.5615.121). This can occur if either 1. you did not perform an installation before running the script (e.g. npm install) or 2. your cache path is incorrectly configured (which is: /home/sbx_user1051/.cache/puppeteer). For (2), check out our guide on configuring puppeteer at https://pptr.dev/guides/configuration.”
I’ve added @sparticuz/chromium and suggested fixes from this repo but then I get this erorr:
Error when executing function “create-pdf.ts”: “The input directory “/var/task/.cache/bin” does not exist.”
I've made a simple reproduction repo: https://github.com/kdichev/gatsby-netlify-puppeteer-function/pull/1/files
But I've still haven't managed to make it work. I've also made a netlify support thread with all my findings
https://answers.netlify.com/t/running-puppeteer-gatsby-netlify-function/91453/1
I know that this could not be issue with sparticuz/chromium but I want to get more feedback if possible. If you feel that this is not for here feel free to close. Thanks a lot!

That error means that your bin folder, with the chromium.br file, is somewhere else. I've not used netlify,

This is also my findings as I've done some debugging and the default paths used are not there at all so the bin folder is somewhere else indeed. I've found some "fixes" in this repo for netlify that ensures that the external package is kept but seems like it's not working anymore or I've got some issue with my implementation.
https://github.com/Sparticuz/chromium/issues/24#issuecomment-1414107620
I will continue the research and will probably make a doc page here when I find the solution , hopefully with the help of netlify support.

ok so I probably managed to find the place for chromium.br file is by checking netlify docs for external node modules, i had to update netlify.toml like so:
[[plugins]]
    package = "@netlify/plugin-gatsby"
[functions]
    node_bundler = "esbuild"
    external_node_modules = ["@sparticuz/chromium"]

had to add node_bundler to esbuild as stated by netlify docs in order to use external_node_modules
then needed to update the code with the proper path to the file
  const browser = await puppeteer.launch({
    args: chromium.args,
    defaultViewport: chromium.defaultViewport,
    executablePath: await chromium.executablePath(
      "/var/task/node_modules/@sparticuz/chromium/bin"
    ),
    headless: chromium.headless,
  });

correct path is /var/task/node_modules/@sparticuz/chromium/bin
although this beringed me closer to the solution I still got an error:
Error when executing function "create-pdf.ts": "Failed to launch the browser process!
/tmp/chromium: error while loading shared libraries: libnss3.so: cannot open shared object file: No such file or directory

which is the same as using @sparticuz/chromium-min with the url https://github.com/Sparticuz/chromium/releases/download/v113.0.0/chromium-v113.0.0-pack.tar
so I guess this is working but still have issue with the libnss3.so
wondering now what's the next step heh

I tried with @sparticuz/chromium-min and I am getting a different error:

Error: Failed to launch the browser process!
/tmp/chromium: error while loading shared libraries: libnss3.so: cannot open shared object file: No such file or directory

That means that the AWS package isn't being extracted. Can you get me the output of the AWS_EXECUTION_ENV environment variable?

I published 113.0.1 that will look for that env var and extract the aws pack as well.

@Sparticuz I've tested both of my branches @sparticuz/chromium and @sparticuz/chromium-min with the latest version but I still get the same error

It checks that the AWS_LAMBDA_JS_RUNTIME env var starts with nodejs https://github.com/Sparticuz/chromium/pull/98/files#diff-0f2cb7ff7dfccabe7dbdb4b008cdfad1ab1a9003144226d414e5e817715dbacb. A look at process.env would help.

unfortunately is still failing with the same error:
https://deploy-preview-1--gatsby-netlify-puppeteer-function.netlify.app/ chromium
https://deploy-preview-3--gatsby-netlify-puppeteer-function.netlify.app/ chromium-min
logging this is truly:
console.log(
    process.env["AWS_LAMBDA_JS_RUNTIME"] &&
      /^nodejs/.test(process.env["AWS_LAMBDA_JS_RUNTIME"]) === true
 );

@Sparticuz you have an idea what else could be wrong?

Hi kdichev, I struggled with the same situation and was successful simple action, hope this can help you.
* still failing page and browser close, I want to close this page and open a new page.
    "@netlify/functions": "^1.4.0",
    "puppeteer-core": "^20.1.1",
    "@sparticuz/chromium-min": "^113.0.1",

learned from kdichev
netlify.toml
[functions]
  node_bundler = "esbuild"
  external_node_modules = ["@sparticuz/chromium-min"]

.../netlify/functions/chromium_test.ts
import { Handler } from "@netlify/functions";
import puppeteer from "puppeteer-core";
import chromium from "@sparticuz/chromium-min";

const handler: Handler = async () => {
  const browser = await puppeteer.launch({
    args: chromium.args,
    defaultViewport: chromium.defaultViewport,
    executablePath: await chromium.executablePath("https://github.com/Sparticuz/chromium/releases/download/v113.0.1/chromium-v113.0.1-pack.tar"),
    headless: chromium.headless,
  });

  try {
    const page = await browser.newPage();
    await page.goto("https://example.com");
    const pageTitle = await page.title();
    console.log("page title: ", pageTitle);
  } catch (err) {
    console.error("error", err.message);
  } finally {
    // some reason: dont return "await Page.close" & "await Browser.close" only Production
    browser.close();
  }

  return { statusCode: 200, body: "" };
};

export { handler };

Hey, @nikme, how did you resolve the following error?
/tmp/chromium: error while loading shared libraries: libnss3.so: cannot open shared object file: No such file or directory

I am stuck here with the Gatsby Netlify function I am working on.

Hey, @nikme, how did you resolve the following error?
/tmp/chromium: error while loading shared libraries: libnss3.so: cannot open shared object file: No such file or directory

I am stuck here with the Gatsby Netlify function I am working on.

@samlogan I didn't get this error =(

@samlogan were you able to get past that issue? I'm stuck there too! please share what worked for you if you did, much appreciated!

authors: Astevens521 Sparticuz ayushrana182 kdichev nikme samlogan

repo: Sparticuz/chromium


text:
Add leaflet dependency to bower.json

Missing dependency? I just chose the most recent Leaflet here; not sure if you have any opinions about it, but this lets me consume the library without a bower override to enforce load order.

Thanks Henry, keep em coming!

authors: hallahan henryptung

license: isc


text:
Fix validation unknown type errors

What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)

Fix tsc compilation errors.

What is the current behavior? (You can also link to an open issue here)

I get the following tsc compilation errors when using the npm package from my package and trying to compile.
src/lib/node_modules/@sphereon/pe-js/build/main/lib/validation/bundlers/fieldsVB.d.ts:14:5 - error TS2416: Property 'getValidations' in type 'FieldsVB' is not assignable to the same property in base type 'ValidationBundler<Field[]>'.
  Type '(fields: Field[]) => Validation<Field>[]' is not assignable to type '(t: Field[] | Field[][]) => Validation<unknown>[]'.
    Type 'Validation<Field>[]' is not assignable to type 'Validation<unknown>[]'.
      Type 'Validation<Field>' is not assignable to type 'Validation<unknown>'.
        Types of property 'predicate' are incompatible.
          Type 'ValidationPredicate<Field>' is not assignable to type 'ValidationPredicate<unknown>'.
            Type 'unknown' is not assignable to type 'Field'.

14     getValidations(fields: Field[]): Validation<Field>[];
       ~~~~~~~~~~~~~~

src/lib/node_modules/@sphereon/pe-js/build/main/lib/validation/bundlers/submissionRequirementVB.d.ts:13:5 - error TS2416: Property 'getValidations' in type 'SubmissionRequirementVB' is not assignable to the same property in base type 'ValidationBundler<SubmissionRequirement>'.
  Type '(srs: SubmissionRequirement[]) => Validation<SubmissionRequirement>[]' is not assignable to type '(t: SubmissionRequirement | SubmissionRequirement[]) => Validation<unknown>[]'.
    Type 'Validation<SubmissionRequirement>[]' is not assignable to type 'Validation<unknown>[]'.
      Type 'Validation<SubmissionRequirement>' is not assignable to type 'Validation<unknown>'.
        Types of property 'predicate' are incompatible.
          Type 'ValidationPredicate<SubmissionRequirement>' is not assignable to type 'ValidationPredicate<unknown>'.
            Type 'unknown' is not assignable to type 'SubmissionRequirement'.

13     getValidations(srs: SubmissionRequirement[]): Validation<SubmissionRequirement>[];
       ~~~~~~~~~~~~~~

What is the new behavior (if this is a feature change)?

No tsc compilation errors

Other information:

My tsconfig.json is as follows:
{
  "compilerOptions": {
    "module": "commonjs",
    "target": "es6",
    "moduleResolution": "node",
    "resolveJsonModule": true,
    "experimentalDecorators": true,
    "outDir": "./build/web",
    "sourceMap": false,
    "strict": true
  },
  "include": ["."]
}

Hi,
Thank you for opening this PR. The purpose of changes suggested has been accomplished in other PRs from time to time. Hence this ticket is being closed. Hopefully next release (v0.4.0) will be available on NPMJS.com soon.

authors: hrehman-sphereon smithbk

repo: Sphereon-Opensource/pe-js