Reorganize the build_artifacts -> build_packages -> distribtest  flow for easy-to-interpret results and simpler troubleshooting.

Context https://github.com/grpc/grpc/issues/26546#issuecomment-867480331
Problem statement:
I see folks mis-identifying the rootcause of problems in the artifact - packages - distribtest flow way too often (e.g. https://github.com/grpc/grpc/issues/26546). Basically, I think the issue is that there are multiple jobs (artifact linux, artifact macos, artifact windows, build packages linux, distribtests linux, distribtests macos, distribtests windows) that are grouped/chained together and depend on each other's outcome, but from kokoro perspective, they are mostly presented as individual jobs and that makes finding the links between these jobs far from straightforward.
I think this is something we should fix going forward, otherwise we're going to see confusion and misinterpretation in the future as well. I've already done some work along these lines in #26176, but more work is needed to achieve similar results for other languages.
Potential gains:

lower test latency (since we won't need to have all the artifacts for all the languages build in a single slow "build_artifacts" job.
easier to interpret test results, easier to quickly see root causes of problem
not requiring expert knowledge of the artifact - build packages - distribtest flow in order to be able to diagnose problems
ability to run distribtest for some languages platform as presubmit tests (e.g. as in #26176). Currently this is not possible since there is now way to display results of a chained job on a github PR (and distribtests are the last link in the build chain).

CC @lidizheng, @apolcyn, @stanley-cheung, @veblush

@jtattermusch I like this :) Something we need to be aware of is that some language (i.e. ruby) are building Windows artifacts on Linux, which makes this approach a bit complicated.

Now with the advent of bazelified RBE tests I think this can be basically considered obsolete.


Server-Driven Datagrid should have a debounce time when filtering

Select one ... (check one with "x")
[x] bug
[ ] feature request
[ ] enhancement

Expected behavior

Actual behavior
Each time you type in the column filter box, the clrDgRefresh is triggered thus sending a request on each key press.

Reproduction of behavior

Include a link to the reproduction scenario you created by forking one of the Clarity Plunker Templates:

Environment details

Angular version: 4.x.x

Clarity version:

OS and version:

Browser: [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]

this might be a duplicate of #793.


IE 7/8 support added

No major changes - just a few tweaks:

new Date().getTime() instead of Date.now()
attachEvent used instead of addEventListener
Variable for events added so IE can bind/unbind events rather than the object itself
ondragstart returns false so scrolling with internal links works

It doesn't offer the exact same experience as modern browsers (e.g the scrollbar doesn't appear) but it is usable and no longer throws errors.
I've updated the examples as best I can but haven't had chance to update those using modern JavaScript methods (e.g pull-to-refresh uses querySelector() in the callback).

great work! I have to make some tests before merging, though

Yeah, no problem. Ideally I'd have time to make the scrollbar work too but for now, I think my fork can be accepted as graceful degradation ;)
If you decide not to merge, it might be worth pointing people to mine if they want some basic IE support (I saw that some people in the Google Group were requesting it).

I'm surely going to merge it, it probably just needs a few refinements. thanks again for your great work

I've created the IE7-8 branch ( https://github.com/cubiq/iscroll/tree/IE7-8 ). Your username didn't come out in the merge, I don't know why (I'm not a git guru). Anyway I'll credit your name in the readme file. Sorry about that.

Cheers. Good idea moving it into its own branch - keeps IE out of the way of the real code ;)
On 24 Dec 2011, at 12:01, Matteo Spinelli wrote:

I've created the IE7-8 branch ( https://github.com/cubiq/iscroll/tree/IE7-8 ). Your username didn't come out in the merge, I don't know why (I'm not a git guru). Anyway I'll credit your name in the readme file. Sorry about that.

Reply to this email directly or view it on GitHub:
https://github.com/cubiq/iscroll/pull/152#issuecomment-3267525


[bug] Cancel drag from the outside / Cannot read properties of null (reading 'Sortable..') in _emulateDragOver

Repro & Source Code
Here's the repro: https://kasheftin.github.io/vuedraggable-bug/
Here's the source code: https://github.com/Kasheftin/vuedraggable-bug
Versions
sortablejs = ^1.15.0
@types/sortablejs = ^1.15.1
vuedraggable = ^4.1.0
Repro steps

Go to https://kasheftin.github.io/vuedraggable-bug/.
Click on the "blink" button. This button adds a temporary item to the list. The item is removed after 5 seconds.
Start dragging the created item to the other column but don't mouse up, just hold it.
Wait 5 seconds until the source element is removed.
Console starts spamming messages like Uncaught TypeError: Cannot read properties of null (reading 'Sortable1692890267221')
Mouse Up.
Fake (non-existent) item is being readded to the list. There's a store vs. DOM tree resynchronization (not sure about this step, it might be vuedraggable@next bug).

Demo

Motivation / Real-world example
We are developing a real-time application. Imagine some kind of kanban board that is used by multiple users at the same time. One user can start dragging a card while another user might delete it. In this case, we get several errors related both to sortable.js and vuedraggable. Sortable.js bug is definitely the repro step №5. We use forceFallback option, and the bug happens in _emulateDragOver function while trying to evaluate dragEl.parentNode[expando]._isOutsideThisEl(target). It looks like dragEl is detached from the DOM, and it has parentNode=null.
However, our main goal here is to be able to cancel the drag. If some item is being dragged while another user deletes it, we want the drag to stop. I tried to set disabled prop to true temporary, but it does not work, a ghost item still follows the cursor. Obviously, it's not related to any checks in move and other events, because it's something that happens from the outside. The socket receives the message about item deletion, the item is removed from the store, it matches the currently dragged item.id, hence we have to trigger some cancel method in sortable.js which removes the ghost item and stops the drag logic.

⬆
Facing similar issues, can't figure out a way to cancel the drag-n-drop operation when the item has modified externally i.e websockets.
A cancel operation would work, when a new websocket message is received, all "current" drag and drop operations could be cancelled.

Facing similar issues, can't figure out a way to cancel the drag-n-drop operation, due to all system hang up


Implement to_dbq to write a dask DataFrame to a big query table via intermediary parquet in gcs

Implement to_dbq using parquet in gcs as intermediary storage. It does what people have been doing already, in a more convenient wrapper.

[x] Closes https://github.com/coiled/dask-bigquery/issues/3

Nits:

I don't think this closes #3, since that says "no intermediate storage" and this is a wrapper around using intermediate storage, right?
It feels like it would be good to document required permissions, since one might not guess that you'd need GCS permissions to use something called "dask-bigquery".

Thanks Irina!
Am I right that as written, this leaves the parquet dataset around forever? It'd be nice to help people with cleanup / bucket lifecycle management. If it's possible to do something automated in code, that could be really nice. Otherwise we should document our recommendations.
(Also just to clarify Nat's nit, I don't think anyone's objecting to this approach, or objecting to closing https://github.com/coiled/dask-bigquery/issues/3. Just looking to avoid confusion for anyone who comes back here later and would be mislead by the description saying this does the "no intermediate storage" version.)

Nits:

I don't think this closes to_bigquery ideas - no intermediate storage #3, since that says "no intermediate storage" and this is a wrapper around using intermediate storage, right?

I agree, "closes" is the wrong word. "Motivated by" is more like it. It addresses the problem described in the issue, but as of this moment, we don't have an easy way to use Storage Write API and bypass the intermediate storage, since the API accepts data as protobuf.

It feels like it would be good to document required permissions, since one might not guess that you'd need GCS permissions to use something called "dask-bigquery".

👍 Yes, that will be useful in the docstring. This PR is still WIP. I also plan to add more parameters to the method, so users have more control over how the data is written to intermediary storage, and to BQ.

Cool, thanks for sharing a draft!

add more parameters to the method,

Probably on your mind already, but it'd be nice for users to be able to control the authentication with Google Cloud a bit. When the need for this came up recently, it was in a case with a dask cluster where setting up Application Default Credentials would be a little awkward.

Am I right that as written, this leaves the parquet dataset around forever? It'd be nice to help people with cleanup / bucket lifecycle management. If it's possible to do something automated in code, that could be really nice. Otherwise we should document our recommendations.

This piece does the cleanup:
https://github.com/coiled/dask-bigquery/blob/1b3a30853ef5f8d3828bd1b558d619fbdfae9f5a/dask_bigquery/core.py#L272-L274
I'm also going to update the docstring to advise configuring a bucket with retention policy.

(Also just to clarify Nat's nit, I don't think anyone's objecting to this approach, or objecting to closing #3. Just looking to avoid confusion for anyone who comes back here later and would be mislead by the description saying this does the "no intermediate storage" version.)

I wish it did! Until the Storage Write API supports Arrow in addition to protobuf, I think we're out of luck there.

This piece does the cleanup:

Oh right, thanks! Sorry!

@ncclementi @dchudz @ntabris I addressed the suggestions, please take another look.

@fjetter @bnaul Updated with your suggestions.

@ncclementi and @phofl , I addressed your comments. Please take a look.

lgtm

Thank you @phofl @ncclementi @bnaul.


[FORMATTING] psycopg2 params broken up by formatter

Input data
Which SQL and options did you provide as input?
SELECT
%(param)s param
FROM
table;

Expected Output
SELECT
  %(param)s param
FROM
  table;

Actual Output
SELECT
  % (param) s param
FROM
  table;

Usage
Using sql-formatter version 15.3.0 through nvim lsp-config with the language set to postgresql. Usage is described by the psycopg2 docs here https://www.psycopg.org/docs/usage.html#passing-parameters-to-sql-queries
Seems like this is the pyformat style from the PEP 249 standard https://peps.python.org/pep-0249/#paramstyle. Found https://github.com/sql-formatter-org/sql-formatter/issues/545#issuecomment-1479827705 but as I am using a higher version already I believe this is a separate issue.

I think you misread the issue you're referencing. What was implemented in the context of it wasn't support for PEP 245 (or whatever other parameter syntax). What was actually implemented was a way to define custom SQL parameters syntax.

To anyone who ends up here in the future,  I got it working with this monstrosity (config for conform.nvim)
formatters = {
sql_formatter = {
	args = {
		"-l",
		"postgresql",
		"--config",
		"{ "
		.. '"keywordCase": "upper", '
		.. '"paramTypes": { '
		.. '"custom": ['
		.. "{ "
		.. [["regex": "%\\(.+\\)s"]]
		-- .. '"key": "(text) => text.slice(2, -2)"'
                .. " },"
                .. "{ "
                .. [["regex": "%s"]]
                .. " }"
                .. "] "
		.. "} "
		.. "}",
	},
    },
},

I wasn't able to get key working as it seems to require a function which I don't know if it is possible to encode in json, but as I am not using sql-formatter's param substitution (using psycopg2's) I think thats okay.
Both of these now format correctly
SELECT
  %s foo
  %(bar)s
FROM
  table;


Before importing category, check the first map for existence of Map template and report back

Tell users importing maps whether the first map within that category has a Map template and report back. Possible precursor to stopping an import if the map does not have the Map template.
Also check for warp_status

Added a check on every view of a ready Import. Will look into the wikitext and see if it has a Map template. It will give a warning if it cannot find one, or if it errors out. Gives link to Map Template also https://commons.wikimedia.org/wiki/Template:Map
The Import can still go ahead though, its just a warning.


Support for inotify

Greeting,
I am currently developing a web server and I have use liburing for IO operations like read, write and accept.
One of my feature is to static serve html/css/js files and I will mmap those files into memory to save read operations, but I need a develop mode for web frontend developer to easily change html/css/js files and verify it on browser.
I wonder if there is any way to do inotify in io_uring ?
Seems like this IO operation is not currently support by kernel?
https://github.com/torvalds/linux/blob/d7227785e384d4422b3ca189aa5bf19f462337cc/include/uapi/linux/io_uring.h#L144-L195

You can use liburing to read events from the inotify fd.

You can use liburing to read events from the inotify fd.

Hi @ciconia ,
Thank you very much!
You're right.
I thought I need some mechanism to be notified when inotify fd is ready before I push read event into the sq, but actually I can just push it once and wait to retrieve it in the cq.


[glib:x64-linux] build failure

Host Environment

OS: Ubuntu 20.10

To Reproduce
Steps to reproduce the behavior:
./vcpkg install glib
Failure logs
Computing installation plan...
The following packages will be built and installed:
    glib[core]:x64-linux
Detecting compiler hash for triplet x64-linux...
Starting package 1/1: glib:x64-linux
Building package glib[core]:x64-linux...
Could not locate cached archive: /home/matteo/.cache/vcpkg/archives/2e/2e96e0e7a11a569d3f082ea6a85e370cc1cc899d.zip
-- Using cached /home/matteo/vcpkg/downloads/glib-2.52.3.tar.xz
-- Cleaning sources at /home/matteo/vcpkg/buildtrees/glib/src/2.52.3-34a15219ec.clean. Use --editable to skip cleaning for the packages you specify.
-- Extracting source /home/matteo/vcpkg/downloads/glib-2.52.3.tar.xz
-- Applying patch use-libiconv-on-windows.patch
-- Applying patch arm64-defines.patch
-- Applying patch fix-arm-builds.patch
-- Using source at /home/matteo/vcpkg/buildtrees/glib/src/2.52.3-34a15219ec.clean
-- Configuring x64-linux-dbg
-- Configuring x64-linux-rel
-- Building x64-linux-dbg
CMake Error at scripts/cmake/vcpkg_execute_build_process.cmake:142 (message):
    Command failed: /home/matteo/vcpkg/downloads/tools/cmake-3.18.4-linux/cmake-3.18.4-Linux-x86_64/bin/cmake --build . --config Debug --target install -- -v -j9
    Working Directory: /home/matteo/vcpkg/buildtrees/glib/x64-linux-dbg
    See logs for more information:
      /home/matteo/vcpkg/buildtrees/glib/install-x64-linux-dbg-out.log

Call Stack (most recent call first):
  scripts/cmake/vcpkg_build_cmake.cmake:93 (vcpkg_execute_build_process)
  scripts/cmake/vcpkg_install_cmake.cmake:24 (vcpkg_build_cmake)
  ports/glib/portfile.cmake:49 (vcpkg_install_cmake)
  scripts/ports.cmake:135 (include)

Error: Building package glib:x64-linux failed with: BUILD_FAILED
Please ensure you're using the latest portfiles with `./vcpkg update`, then
submit an issue at https://github.com/Microsoft/vcpkg/issues including:
  Package: glib:x64-linux
  Vcpkg version: 2020.06.15-unknownhash

Additionally, attach any relevant sections from the log files above.
-Please attach any additional failure logs mentioned in the console output.

Mentioned log file
install-x64-linux-dbg-out.log
Additional context
I was trying to directly install gtkmm, then I received this error regarding glib and recreated it. I've found #7978 but following all the steps suggested there, checking that my vcpkg version is already the most recent (I installed it today) didn't make a change. Can't figure it out alone.

/home/matteo/vcpkg/buildtrees/glib/src/2.52.3-34a15219ec.clean/glib/gconvert.c:60:2: error: #error GNU libiconv not in use but included iconv.h is from libiconv

Sure.
config-x64-linux-dbg-out.log
config-x64-linux-dbg-err.log

The macro _LIBICONV_H shouldn't be defined, did you install libiconv using other package manager(such as apt/yum)?

Just looked for it and yes, it's been installed using Anaconda. Thank you.

@MateCheck-rar Please remove libicon using Anaconda and try again.

_LIBICONV_H should be brought by the configuration files of other libraries in the system.

Ok, I tried to remove libiconv using Anaconda, it didn't work due to a ton of conflicts. The report took an hour and a half to be performed and the list didn't fit my entire terminal buffer. Completely removing Anaconda (I do not need it anymore) defenitely solved the issue. Thank you for the help, I'll be more careful managing my environments.


ListView doesn't profit from Cullable

Hi,
libGDX will not draw content of a Group that isn't visible if parent is ScrollPanel
Group implements Cullable, and ScrollPane will set the cullableArea if child is Cullable
But problem is ListView wrap the items table in a table, that means the itemsTable doesn't use the Cullable feature
That means EVERYTHING is rendered, if you have huge list it drop FPS by a lot

do you have an idea how to fix that?

the PR to scrollplane change, fixes this issue, but let's wait to see if it is the right way to fix that (if it gets merged)

I don't really remember how this is all implemented nor do I know how exactly culling area is implemented on libGDX side. Wouldn't it be enough for scrollTable for pass it's culling area to itemsTable? This would be easy to achieve.
Do you have an self contained example for testing this?


Generate locale files in subdir

It would be great if devs could control whether the translated files should get a _locale suffix or should be in locale/ subdir. Eg. with a subDir option.

Hi,
is this change available from npm?


Tooltip remains visible

Since 0.1.7, when tooltips are enabled, it seems like the previously shown tooltips remain visible.
It is visible on the d3pie generator:

go to http://d3pie.org/#generator-tooltips,
enable the tooltips.

The issue seems introduced by #54.
0.1.6 just works fine.

Drat, thanks @ojacquemart. Can't believe I missed that. Boy this project needs tests.
I'm out of town at the moment, but as soon as I get a spare hour I'll do a patch release. Thanks!

Fixed in 0.1.8.

Thanks for the fix!
Great project, btw :+1:

No problem, thanks @ojacquemart :)


Redesign pagination for lists on modals

And implement it.

Check the bottom separation of the lines

@piensaenpixel, so?


[BUG] Onyx template markdown links break when word-wrapped

Describe the bug
On exported Onyx template, in markdown sections, when a link is too long and has to be word-wrapped, its 'hitbox' becomes a rectangle spanning the entire wrapped-region.
Product Flavor

[x] Managed (https://rxresu.me)
[ ] Self Hosted

To Reproduce

Choose Onyx template
Load sample data
Replace "Summary" section with the following:
Export to pdf
The link for "web solutions for diverse industry" covers multiple lines and makes the "experience" link unclickable

I am a creative frontend developer offering 4+ years of [experience](https://github.com/) providing high-impact [web solutions for diverse industry](https://example.com/) organizations. Skilled in designing, developing and testing multiple web-based applications incorporating a range of technologies. Aspiring to combine broad background with strong technical skills to excel as a frontend web developer.

Expected behavior
Link "hitbox" is only as big as its display text, like it is before exporting to pdf.

Hi @beans42  can you please make a video or something I tried to reproduce this but unable to do it

The reproduction has changed a bit since I made this issue. You used to be able to put markdown in the text box for the sections but now you have to use the hyperlink button. Using the hyperlink button, it seems the issue is no longer present as of current release (repro here, export to pdf).

In the above image, the 'hitbox' of the link used to be the green area, which was wrong. Now it is the red area.
Closing this issue as it was already fixed.


🎨 Design register container - Step 1

Feature Request
[C-FEATURE]: 🚀 Design register container - Step 1
Description:
Design the first step of the login container. This phase should focus on laying out the foundational elements and visual style, ensuring a clear user flow into the subsequent steps.


reverting readme to previous version

slimmed down (instructions for install are on website instead of both places) + this has the feedback survey link

Already patched elsewhere.


Edit the background

Enter the frontend folder in public edit the testBack.png for good background)

All set


autobattle button does not work

hi, im using pet battle scripts (1.10.6) with rematch (5.2.4).
i imported rematch scripts for world quests in tww and saved those teams. when i start the battle, the team and script gets loaded but the autobattle key does not work.
i tried changing it, to no effect. i reset the addon options by deleting the configs for rematch and pbs from the wtf folder, also no effect.
am i missing something or is there a bug?
cheers, bela

forget it, im an idiot. there was no script attached to the team -.- sry


Build failed for simulator on M1

Hi,
We just migrate from Cocoapod to SPM for this librairie in our projet. When we try to launch the app on a simulator, we got this error in R.generated:
Could not find module 'RswiftResources' for target 'x86_64-apple-ios-simulator'; found: arm64-apple-ios-simulator, at: /[redacted]/Build/Products/Debug-iphonesimulator/RswiftResources.swiftmodule

We tried every solutions about this kind of error (e.g. changing the value of Build Active Architecture Only  and Always Embed Swift Standard Libraries ).
Seems there is nothing to do on our side when the dependencies come from SPM.
Thanks in advance

I'm also seeing this issue, running on master:

I also had to fork the repo as I could never get the correct R.Swift package to return in SPM

I too am having this issue on M1 laptop. Messed with Build Active Architecture Only as well. Now im getting the error "Command PhaseScriptExecution failed with a nonzero exit code"

Same error here

Same error too

Unfortunately, I cannot reproduce this. If I create a new project with R.swift and point it at the iPhone Simulator it work.
This seems to be a generic Xcode problem. Have you tried the usual Clean build project, Delete Derived Data, reboot Mac?
If the issue still remains, can you try to create a minimal sample project that demonstrates the issue?

facing the same issue. if I open Xcode using Rosetta it builds and runs successfully on the simulator.

I just found the reason and solution for my project.
I'm not sure I remember why but, when we started to have some devs with M1 and Intel in the same team, we had to exclude the arch arm64 in the project and for all dependencies in the podfile. It seems that this is not necessary anymore!
So, in the project config, I removed arm64 for Excluded Architectures. Also, in the PodFile, I removed :
post_install do |installer|
  installer.pods_project.targets.each do |target|
    target.build_configurations.each do |config|
      config.build_settings["EXCLUDED_ARCHS[sdk=iphonesimulator*]"] = "arm64"
    end
  end
end

Did a pod install, clean the build folder and retry!
Works on my M1 and an Intel.
@tomlokhorst this issue is fixed for me!


Add several varint prefix codes + lenghts for Holochain IDs

Holochain is an open source framework for building fully distributed, peer-to-peer applications.  See https://holo.host for more background.
We will be launching in the next few months, and would like our Holochain node Addresses to have the 0x86 prefix, if possible.  That, along with our 70-byte long core keys+parity data will result in a multicodec prefix of 0x8646.  When base-64 encoded, this yields Addresses with prefix "hkZ...", which is useful for our users to help them quickly identify potential Holochain Addresses.
Thanks for your consideration!

@Stebalien  We are having trouble confirming that 0x0d0243 converts into a varint as [0x86, 0x89, 0x68]; can you recommend an implementation of Varint (eg. in Python, Go, Rust, Javascript, ...) that we can confirm that with?
Also; does this mean that we would actually reserve 0x0d0243 in table.csv?

Thanks for checking that! I was encoding it as a signed varint, not an unsigned varint. The code should have been 0x1a0486 which encodes to [0x86, 0x89', 0x68].
Code:
package main

import (
	"encoding/base64"
	"encoding/binary"
	"fmt"
)

func CodeToBase64(code uint64) string {
	buf := make([]byte, binary.MaxVarintLen64)
	len := binary.PutUvarint(buf, code)
	buf = buf[:len]
	return base64.StdEncoding.EncodeToString(buf)
}

func Base64ToCode(s string) (uint64, error) {
	buf, err := base64.StdEncoding.DecodeString(s)
	if err != nil {
		return 0, err
	}
	code, n := binary.Uvarint(buf)
	if n == 0 {
		return 0, fmt.Errorf("code too large")
	} else if n != len(buf) {
		return 0, fmt.Errorf("invalid varint")
	}
	return code, nil
}

func main() {
	fmt.Println(CodeToBase64(0x1a0486))
	fmt.Println(Base64ToCode("holo"))
	fmt.Println(base64.StdEncoding.DecodeString("holo"))
}

Also; does this mean that we would actually reserve 0x0d0243 in table.csv?

Yes. Well, 0x1a0486.

Sorry, don't merge yet -- still not correct!

@pjkundert As you are playing around with getting a nice prefix, I'd just like to mention that IPFS is moving towards base32 encoding things (https://github.com/ipfs/go-ipfs/issues/4143), you might want to take that into account.

Yes, base-32 is nice; also, because we can add Reed-Solomon error detection/correction using 5-bit symbols directly to end of the base-32 hash (instead of to the original payload), providing greater error/erasure detection and correction power per R-S symbol (because erroneous input symbols are not blurred across multiple Reed-Solomon symbols).  Base64 URL encoding would also allow this, with 6-bit R-S symbols -- but the inclusion of -_ in the symbol set was just too hard to handle, for keys that users are going to occasionally copy and paste.
Our Holochain keys are already very large (102 Base58 symbols), and further expansion with a less powerful encoding would make them just too large.

Sheesh!  No joy.  Do not merge.  This approach won't work for us, either.  Base58 propagates errors into all subsequent octets output during a decode -- error correction built into the underlying payload is worthless...

I'll leave this open for a few days in case someone else wants to chime in. Please bug me if I don't merge it within a week.

Thanks!


New updated version

Hi,
I have an i2c LCD display that has 20x4 characters, and I made some changes to this project in order for it to work with modern Rust and crates implementations. Should still work with 16x2 displays, and I want to make it work with 20x4 also.

Thanks for your contribution, squashed and merged.
This project is no longer maintained, the new recommended way of using LCD screens on Linux with Rust is to use the charlcd crate. This crate makes use of the Linux device tree and the corresponding kernel driver. I think it is better to use the kernel driver rather than to implement from scratch like this implementation did.

See also this blog article: https://blog.microjoe.org/2019/hd44780-lcd-i2c-screen-using-linux-mainline-charlcd-driver.html

charlcd looks great, I'll check it out. Thanks :smiley:

Just one question: How do I include the DTS code you show in your blog into a Raspberry Pi device tree? I don't have hardware experience and I think I need to use that, or should I go with lcdproc?

Mhm, I have Linux hardware experience but not much with the Raspberry Pi itself. Maybe you should consult this page on the Raspberry Pi documentation. Or maybe I should start paid consulting to work out on how to use charlcd with the RPi. ;)


Correcting broken link to intro blog post

I noticed this link was broken, so I'm submitting a correction.

thanks!


New PHP Startup error with php 7.0 on ubuntu with oauth extension

Describe the bug
PHP 7.0 is currently erroring with the oauth extension
script worked 3 weeks ago when last run
appologies if this isn't the place to report this issue
Run shivammathur/setup-php@v2
  with:
    php-version: 7.0
    extensions: intl, mysqli, oauth
    ini-values: error_reporting=-1, memory_limit=512M, post_max_size=256M, xdebug.mode="coverage,debug,develop"
    coverage: xdebug
    ini-file: production

    - name: Check PHP Version
      run: |
        php -v
        php -r 'echo "curl version: " . curl_version()["version"] . "\n";'

Run php -v
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/20151012/oauth.so' - /usr/lib/php/20151012/oauth.so: undefined symbol: php_mt_rand_range in Unknown on line 0
PHP 7.0.33-76+ubuntu24.04.1+deb.sury.org+1 (cli) (built: Aug  2 2024 16:02:27) ( NTS )
Copyright (c) 1997-2017 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2017 Zend Technologies
with Zend OPcache v7.0.33-76+ubuntu24.04.1+deb.sury.org+1, Copyright (c) 1999-2017, by Zend Technologies
with Xdebug v2.9.0, Copyright (c) 2002-2019, by Derick Rethans
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/20151012/oauth.so' - /usr/lib/php/20151012/oauth.so: undefined symbol: php_mt_rand_range in Unknown on line 0
curl version: 8.5.0

Output from 3 weeks ago when script worked:
(appears to be same versions - sans xdebug and curl versions)

Run php -v
PHP 7.0.33-76+ubuntu22.04.1+deb.sury.org+1 (cli) (built: Aug  2 2024 16:01:57) ( NTS )
Copyright (c) 1997-2017 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2017 Zend Technologies
with Zend OPcache v7.0.33-76+ubuntu22.04.1+deb.sury.org+1, Copyright (c) 1999-2017, by Zend Technologies
with Xdebug v2.8.1, Copyright (c) 2002-2019, by Derick Rethans
curl version: 7.81.0

Version

[ ] I have checked releases, and the bug exists in the latest patch version of v1 or v2.
[X] v2
[ ] v1

Runners

[X] GitHub Hosted
[ ] Self Hosted

Operating systems

[ubuntu-latest](operating-system: [ubuntu-latest])
PHP versions

    php-version: ['5.4', '5.5', '5.6', '7.0', '7.1', '7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3']
  (how to include 8.4 with xdebug?)

Full workflow/action yml

Related:   PHP 7.2 and 7.3 appear to have changed as well
xdebug has gone from using v3.1.6  to using v3.1.5
I believe 3.1.5 has this bug
3 weeks ago

PHP 7.3.33-20+ubuntu22.04.1+deb.sury.org+1 (cli) (built: Aug  2 2024 16:18:50) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.3.33, Copyright (c) 1998-2018 Zend Technologies
with Zend OPcache v7.3.33-20+ubuntu22.04.1+deb.sury.org+1, Copyright (c) 1999-2018, by Zend Technologies
with Xdebug v3.1.6, Copyright (c) 2002-2022, by Derick Rethans
curl version: 7.81.0

Yesterday

PHP 7.3.33-21+ubuntu24.04.1+deb.sury.org+1 (cli) (built: Sep 27 2024 04:16:02) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.3.33, Copyright (c) 1998-2018 Zend Technologies
with Zend OPcache v7.3.33-21+ubuntu24.04.1+deb.sury.org+1, Copyright (c) 1999-2018, by Zend Technologies
with Xdebug v3.1.5, Copyright (c) 2002-2022, by Derick Rethans
curl version: 8.5.0

@bkdotcom
oauth extension for PHP 7.0 was broken in 2.0.9
https://github.com/php/pecl-web_services-oauth/pull/31
I will add a workaround for this to revert to the older version till the package is downgraded as well.
Xdebug should be the latest supported version for the PHP version, I will update the builds cache we have.

@bkdotcom
oauth for PHP 7.0 should work now.
The Xdebug version difference is because the ubuntu-latest is now ubuntu 24.04 and Xdebug package on that is 3.1.5 for PHP 7.3.

@shivammathur - much appreciated

@shivammathur
to hijack this "thread"
php 8.0ubuntu  seems to be broken
PHP Warning:  Failed loading Zend extension 'xdebug.so' (tried: /usr/lib/php/20240924/xdebug.so (/usr/lib/php/20240924/xdebug.so: cannot open shared object file: No such file or directory), /usr/lib/php/20240924/xdebug.so.so (/usr/lib/php/20240924/xdebug.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'mysqlnd.so' (tried: /usr/lib/php/20240924/mysqlnd.so (/usr/lib/php/20240924/mysqlnd.so: cannot open shared object file: No such file or directory), /usr/lib/php/20240924/mysqlnd.so.so (/usr/lib/php/20240924/mysqlnd.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'xml.so' (tried: /usr/lib/php/20240924/xml.so (/usr/lib/php/20240924/xml.so: cannot open shared object file: No such file or directory), /usr/lib/php/20240924/xml.so.so (/usr/lib/php/20240924/xml.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0

...  these errors continue

PHP 8.4.0RC1 (cli) (built: Sep 27 2024 04:52:34) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.4.0RC1, Copyright (c) Zend Technologies
    with Zend OPcache v8.4.0RC1, Copyright (c), by Zend Technologies
PHP Fatal error:  Uncaught Error: Call to undefined function curl_version() in Command line code:1
Stack trace:
#0 {main}
  thrown in Command line code on line 1

@bkdotcom
Can you provide me the complete yml for the workflow and the runner you are using. This above yml you provided appears to working correctly for me for PHP 8.0.
https://github.com/shivammathur/test-setup-php/actions/runs/11371542698/workflow

@shivammathur
facepalm.   I meant php 8.4
(at least I got the copy/pasted output correct)
The yml I included but with '8.4' added to the matrix

Update:  php 8.4 is working today!

Yes, I forgot to update here.


Update fpgaflow_default_tool_path.conf

Update regex for VPR

Motivate of the pull request

[ ] To address an existing issue. If so, please provide a link to the issue:
[ ] Breaking new feature. If so, please describe details in the description part.

Describe the technical details
What is currently done? (Provide issue link if applicable)

What does this pull request change?

Which part of the code base require a change

[ ] VPR
[ ] Tileable routing architecture generator
[ ] OpenFPGA libraries
[ ] FPGA-Verilog
[ ] FPGA-Bitstream
[ ] FPGA-SDC
[ ] FPGA-SPICE
[x] Flow scripts
[ ] Architecture library
[ ] Cell library
[ ] Documentation
[ ] Regression tests
[ ] Continous Integration (CI) scripts

Impact of the pull request

[ ] Require a change on Quality of Results (QoR)
[ ] Break back-compatibility. If so, please list who may be influenced.

@ganeshgore Can you quickly review this PR?

Looks good to me. We can merge.

Looks good to me. We can merge.

Thanks. Will merge once any proof is uploaded.

Please see attached table after script modification. Both the column 'total_routing_area' and the column 'totral_logic_block_area' now work perfectly.
task_result.csv

@foggy-slt Thanks for the input. Merge it now.


[Outlook] (preview) Advise about additional events

Docs Build status updates of commit 2f24592:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

docs/reference/objectmodel/preview-requirement-set/outlook-requirement-set-preview.md
:white_check_mark:Succeeded
View

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


Documentation: Clarify all llama3 recipes

Changelog

Added llama3 singe gpu full fine-tune to the llama3 section.
Seperated Single gpu and multi gpu sections.
Fix GPU number counts mismatch

Can you make sure to run linter on your changes locally? This can be done via pre-commit hooks, just need to make sure they're installed. See this comment. (If for any reason you run into trouble let me know and I can patch your changes and run on my end)

@ebsmothers Lint fixed. Will make sure to run it next time. Thanks!


Modification from DoWhile to For and If

transpileDoStmt - transpiler for C operator Do...While.
We have only operators FOR and IF in Go, but in C we also have operator Do...WHILE. So, we have to convert to operator FOR.
We can choose directly conversion from AST C code to AST C code, for :

avoid duplicate of code in realization WHILE and FOR.
create only one operator FOR powerful

This change is

Reviewed 1 of 1 files at r1.
Review status: all files reviewed at latest revision, all discussions resolved.

Comments from Reviewable


Providing an optimized Unavatar instance by WebP Cloud

Hi, this is Nova from WebP Cloud Services. For over two years, we've been providing public services at https://public.webp.se/.
Recently, we have partnered with Follow to support a self-hosted Unavatar instance, accessible via https://unavatar.webp.se/. All images rendered through this URL are optimized by our service, significantly reducing their size by 20% to 40% while maintaining high quality. This aligns with Unavatar's goal of providing optimized images that are compressed on-the-fly to save bandwidth and enhance overall website or application performance.
Currently, this service is hosted in the US, but we are expanding globally. You can read more about our efforts to reduce global average latency using Cloudflare Workers in our blog post: Using Cloudflare Workers at the edge to enable services to source data from nearby locations – reducing global average latency.
We are excited to share this service with the public and hope it proves beneficial.

However, the WebP is still a bit poor (https://caniuse.com/webp), so we're just waiting a bit to enable it by default.

Regarding this, we're rendering different types of image to different users, for each image we'll have three different caches: original image, webp version, avif version. We'll use User-Agent and Accept header from vistor to determine which type(s) are supported by that visitor and send the image with smallest size.
So no need to wait for WebP here for us, and this is our core feature(for WebP Cloud and Public Services, even for our open source software WebP Server Go)

BTW, your endpoint is returning 500 error:

We're only providing optimized images so for example if original image is at https://unavatar.io/reddit.com then https://unavatar.webp.se/reddit.com is available, in your case the origin for / is returning html, so that URL is not accessible to public and will return: Fetch remote image failed: Download: remote file is not image, remote returned [text/html; charset=UTF-8] with status code 500.
Note: For https://unavatar.webp.se/, the original image is coming from our self-hosted unavatar, not https://unavatar.io

partner with companies to help us to host unavatar.io

Regarding to this, what is the typical cooperation model here?👀


remove hardcoded version in otel conf

Opened https://github.com/logzio/logzio-agent-manifest/pull/189 with new branch name


pull request for e2e test at 12/29/2016 07:15:18

:white_check_mark: Validation status: passed
For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


BigDecimal support for Scale functionality

Resolves #122 - add support for a scale setting to limit the number of digits to the right of the decimal, similar to Java BigDecimal scale() and setScale() functionality.  No changes to existing behavior (no breaking changes).

Just noticed I left some spurious comments in fun roundToDigitPositionAfterDecimalPoint, have deleted those in a commit that is not pushed yet. Lemme know what other changes I should do. Thanks!

Thanks for the contribution @skolson! I'll be reworking the README.md a bit before releasing 0.2.0, so I might ping you for some help with the scale part if I get stuck. And also, If you want to add more improvements to the library, I'll be looking forward to them! Once again, thanks!


Added an option to bypass the update notification

Added a bypass to the update notification for a better feathers-cli UX addressing feathersjs/feathers-cli#12

Addessed #102


Flutter app works fine for a while but then shows this error

My app was running fine but after upgrading flutter to v9.0.4 it shows this error after app runs for some time and without doing any activity
Built build\app\outputs\apk\debug\app-debug.apk.
D/        (15227): HostConnection::get() New Host Connection established 0x76b036592760, tid 15254
D/EGL_emulation(15227): eglMakeCurrent: 0x76b02eafd740: ver 3 0 (tinfo 0x76b02d09e5c0)
Error -32000 received from application: Server error
JSON-RPC error -32000: Server errorError -32000 received from application: Server error
JSON-RPC error -32000: Server errorError -32000 received from application: Server error
JSON-RPC error -32000: Server errorError -32000 received from application: Server error
JSON-RPC error -32000: Server errorError -32000 received from application: Server error
JSON-RPC error -32000: Server errorTimeoutException: Request to Dart VM Service timed out: ext.flutter.debugPaint({enabled: false, isolateId: isolates/326248548})

@salihgueler there is not much info after this but app stops working

I mean, we do not know, what your application is doing in the idling state, therefore any information would be useful to follow up. Plus, flutter doctor -v could you please, share the output from doctor and your testing device?

#17302 looks similar.

Just upgrades to v1 release, got same error when launching on iOS simulator

Are you still seeing this with latest dev or master channel?


How is this plugin configured

Hello,  I'm trying out the http-post-plugin, but I don't understand how to configure it.  Is this a work in progress, or am I missing out on how this works?

same problem here, after installing the plugin and afterwards activating for a build there is no field to enter the URL, any hints?

I'm having the same issue. No way to configure the plugin. I even restarted the build server.

Configuration is global in the main Jenkins setting area, however the plugin seems abandoned. The plugin doesn't integrate with global credentials manager and the lack of ability to specify more than one endpoint is a problem. Recommend removing from Jenkins repo. Simple CURL command works fine as a substitute, albeit not as neat.

Sorry for the delay.
I just recognized that there is a fork over at xautlx/http-post-plugin@7476a3e that allows additional HTTP headers at job level.
This can be easily adopted to allow custom URLs and fallback to the global URL. Unfortunately I don't have time right now to tackle this issue, but I'd be more then happy to accept Pull Requests for this.

I came here with the same questions.. it is unclear that the plugin needs configuring at a global level and appears broken when built/uploaded as a HPi.


Preliminary support for constants.

Sorry, the instructions for contributing are copy-pasted from the go repository and differences for this are unclear.

Sorry for the confusion. We have been doing our reviews on Gerrithub:
https://review.gerrithub.io/#/admin/projects/riscv/riscv-go
https://review.gerrithub.io/#/q/project:riscv/riscv-go
Does this change work? I have a strikingly similar pending change that adds support for all of the Const ops, but I haven't pushed it out yet because register allocation is not working properly.
runtime/internal/atomic/atomic_riscv.go:25: internal compiler error: nil regnum for value: v7 = MOVQconst <uint64> [0]
Xadd64 <nil>
  b1:
    v1 = InitMem <mem>
    v9 = VarDef <mem> {~r2} v1
    v2 = SP <uintptr> : SP
    v8 = MOVmem <*uint64> {~r2} [0] v2 : AX
    v10 = MOVstore <mem> [0] v8 v7 v9
    Ret v10

Thanks for the information.
I wasn't able to find why the compiler wasn't allocating a register either. I couldn't find anything in the amd64 implementation to specify whether or not an instruction allocates a register. Much of my code is copied from the amd64 equivalent.
I had a work around that used a dedicated "store zero in address", but it was hacky and had its own problems, so I didn't commit it.


Replace gulp-util with gulp-noop; pin workbox-build to version 2.1.3

Gulp 4.0.0 has deprecated gulp-util. Since we only use it for gutil.noop(), replace it with the lightweight module gulp-noop that serves this exact same purpose.
<EMAIL_ADDRESS>expect the Service Worker to have a method called precacheAndRoute, but our Service Worker has a method called precache, which workbox-build@2.1.3@injectManifest expects. Basically, pin the version of workbox-build to the last one that worked, until someone else feels like rolling a forward fix :)

/to @pbakaus @morsssss


[WFCORE-4863] Upgrade PicketBox from 5.0.3.Final-redhat-00005 to 5.0.3.Final-redhat-00006

https://issues.redhat.com/browse/WFCORE-4863
Branch: https://github.com/jbossas/redhat-picketbox/tree/5.0.x
Diff: https://github.com/jbossas/redhat-picketbox/compare/5.0.3.Final-16-g4e49f86c...5.0.3.Final-18-g76744137

Core - Full Integration Build 9811 outcome was FAILURE using a merge of 84d3d29b3c8494977302d1940248f9c2800ac8b1
Summary: Exit code 1 (Step: Build & test full (Maven)) (new) Build time: 00:03:54

Core - Full Integration Build 9773 outcome was FAILURE using a merge of 84d3d29b3c8494977302d1940248f9c2800ac8b1
Summary: Exit code 1 (Step: Build & test full (Maven)) (new) Build time: 00:04:02

Core - Full Integration Build 9821 outcome was FAILURE using a merge of 84d3d29b3c8494977302d1940248f9c2800ac8b1
Summary: Execution timeout (new); tests passed: 6719, ignored: 104 Build time: 05:00:57


naming convention for weather data files?

How am I supposed to name weather data files that I store in public/data so the program will read them.  I figured it out for the folder current and for different altitude but I don't know how to name the files and create the folder so it reads different dates.

I figured it out for dates use public\data\weather"year""month""day""year"-wind-"idpart1"-"idpart2"-gfs-1.0

Is it right that public/data/weather/20190226/00-wind-surface-level-gfs-1.0.json
but it doesn't work.
Anyone, please tell me exactly file format.

I guess i had left out some slashes in the original solution I am pretty sure its should like like the following:
public/data/weather/year/month/day/hour-wind-surface-level-gfs-1.0.json
so an example public/data/weather/2019/02/26/0000-wind-level-gfs-1.0.json
A good way to check for these things is to use google chrome as your browser and click "f12" to pull up Chrome DevTools, in the networks tab you can see the path of the requests you are making.

Thank you so much :)


Perform actions after a package was removed

The removal of packages outside of the defined package registry flow may lead to dirty data if the package type stores informations about the available packages outside of the database. For example the Cargo registry stores the package index in a git repository. At the moment the owner needs to rebuild the whole index in this case from the user settings.
This PR enforces an update of the index entry in the git repository. In future the Debian registry will need this too.

I do have to say, the current architecture looks pretty error-prone:
Every caller must ensure themselves that they call the post-removal.
Sooner or later, this will produce buggy and unmaintainable behavior, simply because someone forgets it.
I think it would be a better idea to define an interface Registry (or similar) that gets the methods that every registry needs, i.e. UploadPackage, EditPackage(not sure if that's supported), DeletePackage (did I forget any common method?).
Then, you define an implementation per registry.
That way, adding new registries (and maintaining the existing ones)  will be much easier:
I think at the moment, you're the only one who really knows what's happening where inside the registry-related code.
Adding all that is certainly worth its own PR.

Why doesn't the packages_service run the cleanup function itself? Isn't it fragile to expect callers of packages_service.Remove...  to remember to do the cleanup?

We must distinguish between two different deletion modes:
The first is specified by the package type registry api. If there is a designated delete method there is no problem because the deletion of package is an intended operation.
The second is our custom delete operation from the UI or API. This operation is not covered by the package type specification. Most package types are ok with this because the client just queries the available packages and now there is one missing, everything fine. But there are also package types where it is not possible to generate such query responses on the fly. An example is the Cargo registry which stores the package index in a git repository. If a package gets deleted from the UI/API the git repository must be changed too, otherwise the repository is out of sync with the db. Currently there is only a note in the Gitea documentation what to do in this case.
So this PR is only needed for the second unsupported case. There are only 4 places where such logic is needed. Deletion from the package UI, deletion from the admin UI, deletion from the package API (Gitea API, not the registry API) and deletion by a cleanup rule.

I think it would be a better idea to define an interface Registry (or similar) that gets the methods that every registry needs

That's a naïve view of how most package registries work and only a few will fit in. The common "interface" all registries (except the uploading of container images) use, are the methods in services/packages/packages.go. Everything in the router is registry type specific. From my view there is not much left which is duplicated.

I think at the moment, you're the only one who really knows what's happening where inside the registry-related code.

I will add a readme file for future developers to explain how everything works together. (We should have more of these rough overviews of how things work in Gitea. But there should not be to much detail so they are not outdated shortly after.) As seen in https://github.com/go-gitea/gitea/issues/20751#issuecomment-1374669164 it looks like the interface is well thought out, otherwise it would not have been possible to add a new package type without asking questions.

Why doesn't the packages_service run the cleanup function itself? Isn't it fragile to expect callers of packages_service.Remove... to remember to do the cleanup?

I thought of multiple ways on how to implement it. The first guess is to add it into RemovePackageVersion which also handles the webhook notification. The first problem would be an import cycle there but that may be handled otherwise. The more important problem is that this method is used by the both deletion modes (defined and undefined). For the defined deletion this method should not perform the post-delete actions because they may (and are) different from the actions to be performed by the undefined deletion. So there could be a parameter to enable the actions but that's just again the "expect the callers" problem. I could add a RemovePackageVersionUndefined method which first calls RemovePackageVersion and then performs the actions. So the actions can't be forgotten but the caller must still use the correct method then. But I don't see a problem here generally because currently I can't think of a new way which would need unsupported deletes.

Can we have some tests?


Experiment: Tree-based cache

Instead of Map Board Score, use something like
data Tree k a where
    Root :: Board -> a -> [Tree 1 a] -> Tree 0 a
    Branch :: PossibleMove -> Board -> a -> [Tree k a] -> Tree (k-1) a

where board is identified by "path" in this tree - [PossibleMove].

See also pm_tree branch


Add support for JSON serialization and deserialization via Jackson

Currently JSON serialization relies on Gson library. This change enables seamless serialization through Jackson library, which is also widely used, for example in Spring Boot framework.
Refer to the newly added unit test. It validates the Java object to JSON string and vice versa transformations of 2 main models,

ChatCompletionRequest
ChatCompletionResponse

For each models, the instance creation process relies on the builder design pattern. Jackson can be configured to use it by adding following annotation at the class level
@JsonDeserialize(builder = ChatCompletionRequest.Builder.class)

Because of this custom deserializer, Jackson requires adding an annotation at the field level, for each fields that need to be included in the JSON output,
    @JsonProperty
    private final String model;

Following annotation avoids outputting null fields:
@JsonInclude(JsonInclude.Include.NON_NULL)

For polymorphism, following annotations at the interface level specifies which field to lookup to identify type. They also register each available implementations.
@JsonTypeInfo(
        use = JsonTypeInfo.Id.NAME,
        property = "role")
@JsonSubTypes({
        @JsonSubTypes.Type(value = AssistantMessage.class, name = "assistant"),
        @JsonSubTypes.Type(value = SystemMessage.class, name = "system"),
        @JsonSubTypes.Type(value = ToolMessage.class, name = "tool"),
        @JsonSubTypes.Type(value = UserMessage.class, name = "user")
})

Please also make sure all fields are serialized with snake case strategy

Please also make sure all fields are serialized with snake case strategy

Added following annotation at the class level and on the builder, for both serialization and deserialization.
@JsonNaming(PropertyNamingStrategies.SnakeCaseStrategy.class)

@alexis779 thank you!
Do you plan to finish the migration? It would be great to get rid of Gson completely and start using Jackson everywhere. Right now Gson is still used...

Removed Gson dependency to move over to Jackson exclusively.


Add site search to home page

Closes https://github.com/kubernetes/website/issues/21867
Deploy Preview: deploy-preview-42299--kubernetes-io

@stormqueen1990 would you be willing to review this change and add your commentary?

@stormqueen1990 would you be willing to review this change and add your commentary?

Sure thing!

/easycla

/lgtm
(also from https://github.com/kubernetes/website/pull/42299#pullrequestreview-1555466237)
/approve
Thanks @dipesh-rawat


(docs) updating function descriptions - slice (DOC-2152)

making function descriptions more uniform, to align with our style guide.
@nfagerlund

@jtappa can you amend the commit message summary to prepend "(docs)" and put the change in the imperative?
E.g. "(docs) Update slice ..."
The former will make our release ticket checker happy and is easier on whoever runs the release (and will turn travis green). The latter is just a best practice from CONTRIBUTING.md.

Hi @jtappa friendly reminder to update the commit summary when you get a chance, thanks!

:+1:


Zeppelin integration with Alluxio 2.0

Alluxio Version:
What version of Alluxio are you using?
Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior (as minimally and precisely as possible)
Expected behavior
A clear and concise description of what you expected to happen.
Urgency
Describe the impact and urgency of the bug.
Additional context
Add any other context about the problem here.

Hi
I am trying Zeeplin with Alluxio integration ,when running spark intractive queries getting class not found exception though add alluxio class jar in zeppelin class path as below

I am using Alluxio 2.0 storage along with aws s3 bukcet.I have started Master slave Aluxio cluster and able to run the jobs using spark 2.x,However having issue when run spark interactive queries using Alluxio storage and it throwing the error below though set class path in Zeppelin env
Java.lang.RuntimeException: java.lang.ClassNotFoundException: Class alluxio.hadoop.FileSystem not found
at org.apache.hadoop.conf.Configuration.getClass(Configuration.java:2596)
at org.apache.hadoop.fs.FileSystem.getFileSystemClass(FileSystem.java:3269)
at org.apache.hadoop.fs.FileSystem.createFileSystem(FileSystem.java:3301)
at org.apache.hadoop.fs.FileSystem.access$200(FileSystem.java:124)
at org.apache.hadoop.fs.FileSystem$Cache.getInternal(FileSystem.java:3352)
at org.apache.hadoop.fs.FileSystem$Cache.get(FileSystem.java:3320)
at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:479)
at org.apache.hadoop.fs.Path.getFileSystem(Path.java:361)
at org.apache.spark.sql.execution.datasources.DataSource$.org$apache$spark$sql$execution$datasources$DataSource$$checkAndGlobPathIfNecessary(DataSource.scala:709)
Steps taken
Add the entries below in Zeppelin env
spark.driver.extraClassPath /App/Alluxio/alluxio-2.0.0/client/alluxio-2.0.0-client.jar
spark.driver.extraLibraryPath /usr/hdp/current/hadoop-client/lib/native:/usr/hdp/current/hadoop-
spark.executor.extraClassPath /App/Alluxio/alluxio-2.0.0/client/alluxio-2.0.0-client.jar
Versions
Alluxio 2.0
ZooKeeper   3.4.6
Zeppelin Notebook 0.8.0
Saprk 2.3.2
HDP-<IP_ADDRESS>
Would appreciate if any advise on the issue above

hi @mohanpothula , here is an explanation why "Class alluxio.hadoop.FileSystem not found" is thrown, see  https://www.alluxio.io/blog/developer-tip-why-did-my-job-fail-with-error-message-class-alluxiohadoopfilesystem-not-found/
In addition, you can take a look at this and see if it helos
https://docs.alluxio.io/os/user/stable/en/compute/Spark.html#class-alluxiohadoopfilesystem-not-found-issues-with-sparksql-and-hive-metastore
Plus, how is Spark launched by Zeppelin? Is it running in standalone mode or by some other scheduler like YARN? For later, you may also need to inform YARN, see https://docs.alluxio.io/os/user/stable/en/deploy/Running-Alluxio-On-Yarn.html#configure-yarnapplicationclasspath

Closing this issue due to inactivity. Please reopen it if you need more help.


[resolves #354] Distro module attaches tar archive artifact multiple tim...

...es

Refer to this link for build results (access rights to CI server needed):
https://fabric8-ci.fusesource.com/job/wildfly-camel-pullreq/244/
Test PASSed.


Refactor context object to pass by reference

Resolves https://github.com/microsoft/kiota-http-go/issues/30
Adds a method prepareContext that us used to add all the content values to the request context before execution

Hey @rkodev this is something I noticed while working on #29 and addressed there. Can you run your tests on that PR to double check it addresses everything please? Given the nature of my changes, we'll have a bunch of conflicts if we merge both PRs, and I'll like to avoid that extra work if we can.

@baywer this is still failing on the branch, since the context values are still added during getHttpResponseMessage, but we do not receive the context object back.  This pr added a single method to set all the parameters from the same point.
I can leave the PR in draft mode till we merge the other PR since it introduces far more changes and would be easier to refactor this one. If the Test work on the othe branch I'm happy to close this one

that's ok, proceed with this one, and I'll handle the conflicts on mine when I'm ready.
The http PR kind of depends on the abstractions (at least to be feature complete), which depends on this https://github.com/microsoft/kiota/pull/1841
I still have to go through dotnet, java and TS. I don't anticipate other generation changes but they might surface up. And that might take a while during which I'd prefer avoiding blocking you.

can you add a changelog entry please? patch version

@baywet done


improved Trivy test

Description
Improvements in Trivy scan:

Modified the image ref to 'latest'
Removed the unnecessary build image step because we test 'latest' image

LGTM


No $ref support?

JSON Schema supports $ref but this doesn't seem to work with ncform. All types simply become a normal input field regardless of how complex they are.

You can refer to ncform-schema and ncform widgets

@daniel-dx so I interpret that as a no? Since I can't see it mentioned anywhere.

And if it's a no. Would you be open to a PR with support for it?

@Lewenhaupt  No plan to support $ref. What's your actual scenarios?


pulumi up --refresh fails on replacing domain

+-  ├─ digitalocean:index:Domain            pgb-domain                   **replacing failed**     [diff: ~ipAddress]; 1 error

  digitalocean:index:Domain (pgb-domain):
    error: 1 error occurred:
    	* Error creating Domain: POST https://api.digitalocean.com/v2/domains: 422 domain 'myproject.com': name already exists

is this on me to apply the deleteBeforeReplace=True option on DigitlaOcean Domain resources, or should it be the default?

Hi @anentropic
My apologies this has gotten you here. On most of our resources, Pulumi has autonaming enabled - it doesn't make sense to do that on Domain names so this would require a specific deleteBeforeCreate operation
Paul

I can see also the DigitalOcean API lacks an update endpoint for domains, so delete and recreate for an update makes sense


Add SOCKS4 support

I've only implemented what I needed (no bind command or userid support), it's dirtier than I'd like, and I didn't add any tests. I've also never written SOCKS-related code before. Seems to work so far, though. (tested by quickly adding it to reqwest)
Since I only need this for a random side project I don't expect that I'll clean this up any. Hopefully you find it useful in some way.

Superseded by #38, it seems.

Neat, fine by me.


Barcode Support

I have been trying and customizing the code for printing barcode. I could not succeed in developing a proper solution.
<?php
/* ASCII constants */
const ESC = "\x1b";
const GS="\x1d";
const NUL="\x00";

/* Output an example receipt */
echo ESC."@"; // Reset to defaults
echo GS."k".chr(4)."123123".NUL; // Print barcode
echo ESC."d".chr(1); // Blank line
exit(0);

How should the above code be translated to go. I am missing something. I tried placing \x04 instead of 4 in middle. But it just prints empty line.
//barcode is string
func (e *Escpos) PrintBarcode(barcode string, format string) {
	e.Write(fmt.Sprintf("\x1dk4%v\x00", barcode))
}

The first ESC+@ is the same as the Escpos.Init() call.
I believe echo GS."k".chr(4)."123123".NUL; is "\x1dk\x04123123\x00" in Go.
And the last one, ESC+d+1 is the same as Escpos.FormfeedN(1)

Thanks for the help. Any idea about implementing this functionality natively in this package? It seems to be a good addition.

The printers I have don't support barcodes. I had already tried this when I first wrote the package. If your printer supports it, please test it and see if it works as expected. I would gladly merge a PR supporting this, if I had reasonable assurance that it had been tested properly.

It works. The following code worked perfectly for printing digits / chars either(7 max). I am just a noob at Golang.
I will put up a PR as soon as I verify.
func (e *Escpos) PrintBarcode(barcode string, format string) {
	barcode = strings.ToUpper(barcode)
	e.Write("\x1dk\x04" + barcode + "\x00")
}

I gathered stuff from http://content.epson.de/fileadmin/content/files/RSD/downloads/escpos.pdf
format needs to be converted to HEX.
A PHP implementation exists in the following link.
https://github.com/mike42/escpos-php/blob/master/src/Mike42/Escpos/Printer.php#L382

I added a simple Escpos.Barcode func. However, as I stated before, I can't really test it since the printers I own don't support barcodes. I would like to rewrite this whole thing, as I haven't really looked at the code in this package in almost 2 years.


setting array to xLabels not working for complex values lower than 0.00000012

Hi fellow developer!
Before sending an issue, please consider Stack Overflow.
Tag your question with swiftcharts: http://stackoverflow.com/tags/swiftcharts/info.
Also, check https://github.com/gpbl/SwiftChart#common-issues-and-solutions
Thanks!

Always return 0


Support for Reddit Live?

Wondering if PRAW would be looking to support Reddit Live threads.

I would love to see support for the feature. Is this something you'd like to take a crack at? Otherwise, it'll likely sit as a feature request until someone who (1) wants the feature and (2) is willing to implement it does so.

I'd like to give that a crack.  I'll update here if I have any questions

+1

PRAW4 permits creation of Live threads: http://praw.readthedocs.io/en/praw4/pages/code_overview.html#praw.models.LiveHelper.create
Please reopen/update if you'd like to see other features. PRAW won't support streaming from live threads, however, as that requires websocket support.

Is there a way to access already generated content of a live thread without streaming? I'm just looking for a one time possibility to get all content from a live-stream  until a given time point

@methodds it looks like that should be feasible. https://www.reddit.com/dev/api#GET_live_{thread} Could you file a new issue requesting that feature?

Tbh I dont think my coding skills are sufficient, but I'll file the issue now. Thanks :)


I am confused whether the 1st solution used XGB / LGBM as their main model?

https://www.kaggle.com/c/quora-question-pairs/discussion/34355
What is the function of XGB / LGBM in this 1st solution?
Thank you very much.
@Wrosinski

Reread the Stacking part.


SemVer compatible values are required in packages.json (3 digit versioning)

Really simple fix, add a digit to packages.json line 4.
{
  "name": "com.acchosen.vr-stage-lighting",
  "displayName": "VR Stage Lighting",
  "version": "2.4.0",
  "description": "A collection of HLSL shaders, UdonSharp scripts, 3D models, prefabs, and assets designed to emulate the real control, quality, and complexity of professional stage lighting into VRChat in as many ways as possible.",
  "gitDependencies": {},
  "vpmDependencies": {},
  "legacyFolders": {},
  "legacyFiles": {},
  "localPath": "I:\\VRSL2022\\Packages\\com.acchosen.vr-stage-lighting",
  "dependencies": {
    "com.llealloo.audiolink": "0.3.1"
  }
}

This was fixed last night in https://github.com/AcChosen/VR-Stage-Lighting/pull/21
Additionally a new VPN community repo has been setup https://vpm.vrsl.dev

https://github.com/AcChosen/VR-Stage-Lighting/blob/main/Packages/com.acchosen.vr-stage-lighting/package.json now in the desired state, VPM community now setup at https://vpm.vrsl.dev/ to deploy releases via GitHub Actions


redirect_url is not working

Hey there,
I was trying to create a phishing page that should redirect the user to another website after a successful login, and according to the documentations that I found and the previously created issues that I read in this GitHub repository, the 'redirect_url' in the lures should work fine for this purpose. Unfortunately, it didn't work for me, as I tried the following versions, and nothing worked as expected from the redirection perspective:

3.1.0
2.4.0
2.3.0

Unfortunately, I couldn't try older versions as some of them have deprecated certdb (v1) and deprecated phishlets syntax as well. I set the redirect_url from the config to make a custom redirection in case of an error, and the redirect_url in phishlets command to redirect the victim/visitor to a specific URL as soon as he provides valid credentials. FYI I'm using an o365 phishlet.
Please try to solve this as we have tried every possible thing.

@andrew-mart1n  some time if you directly redirect to office or mostly google it will not redirect ,there is 2 method
1 : lures edit 0 redirect_url https://yourdomain.com
2: go to any free webhosting side(000webhost or any ) host a webpage for eg : index.php (write php code set redirection here to your desire o365 or google site ) and then in evilginx console
lures edit 0 redirect_url https://yourhostingpage.com
if you need more info regarding o365 or google phishlet can ping me on telegram.(Ricky_rik1)

Ricky_rik1)

Thanks for helping me get the gmail phishlet. You’re a lifesaver.

hey @rickyrik001,
I'm using evilnginx2 to conduct a phishing campaign for my org. for that I chose amazon website, where I'll send email to all my employee to saying that claim coupon on amazon.
So for that login into the amazon website to claim this coupon after successful login I want them to redirect to some other domain in which the content is "You are phished don't report this"
So the problem here is I couldn't able to do the dynamic redirect after successful login in amazon, I tried "lures edit 0 redirect_url https://domaintoredirtect"
But this is not working as excepted, can you help me here
Also, I've texted you in telegram please check

hey @rickyrik001,
I'm using evilnginx2 to conduct a phishing campaign for my org. for that I chose amazon website, where I'll send email to all my employee to saying that claim coupon on amazon.
So for that login into the amazon website to claim this coupon after successful login I want them to redirect to some other domain in which the content is "You are phished don't report this"
So the problem here is I couldn't able to do the dynamic redirect after successful login in amazon, I tried "lures edit 0 redirect_url https://domaintoredirtect"
But this is not working as excepted, can you help me here
Also, I've texted you in telegram please check

**Hi 👽 ! If you are interested in ⚙Advanced Phishing⚙ and the ✨Evilginx3✨ tool then I offer you Google Gmail and Custom Phishlets with a ✅Free Tutorial✅ which arrives if the 📈Telegram reaches 50 Subscribers📈
⏳ GOOGLE GMAIL PHISHLET 2024 WITH PROOF ⏳
->
⛔https://www.youtube.com/watch?v=nA47UknIE6A⛔
🔓 Ask your questions and a free tutorial from 50 subs on telegram !!!
->
📩https://t.me/Noremorse1011📩**


mobile with gpu problem

I tried simple matrix multiplications(1x1 with 1x1, 2x2 with 2x2, 1x2 with 2x1...) with weblas.sgemm on Android 7.0 with:

Chrome Mobile 58.0.3029.83
Firefox Mobile 53.0.2
Opera Mobile 42.7.2246.114996

but it is always producing the same number: 4.000000476837158 no matter what the values of the matrixes are (eg: 2x2 with 2x2 produces a 2x2 matrix where all of the 4 numbers are the same number)
It produces correct results on desktop browsers so I suspect :) that it maybe is related with encode_float. What can be the problem?

I am using standalone sgemm (which is the default) i think. Here is my simple code:
var A = new Float32Array([0.1]);
var B = new Float32Array([0.2]);
alert(weblas.sgemm(
  1,
  1,
  1,
  1.0,
  A,
  B,
  0.0,
  null));

Here is a test page I created. If you open in desktop browser, you will see 0.02 which is the correct result. However try to open with an android phone (chrome in my case), it shows 4.00...

Thanks for the test case. On IOS 10 safari (iPhone) the test page gives "0.01999". This must be an Android specific issue. I'll work on getting a test device for debugging this. It may take a while. If you'd like to investigate further and submit a PR instead of waiting, that's very welcome.
If you would like to help with this, your intuition that the problem lies in the float encode seems reasonable. I'd start there. Additionally, the float encode needs to be tested independently and more thoroughly. If you'd like to help with that testing, I would very much appreciate it. See #11 for a start.

I will try to look into encode, hope I can find the problem.

Don't hesitate to reach out, here or via email, if you need help. I'm also happy to do a video chat with you, if that would help.


⚠ Bofrost.de has degraded performance

In 87aaaee, Bofrost.de (https://www.bofrost.de) experienced degraded performance:

HTTP code: 200
Response time: 1310 ms

Resolved: Bofrost.de performance has improved in 2f5087a after 52 minutes.


Installation help

When installing via vim-plug, i.e like so
Plug 'yaegassy/coc-sqlfluff', {'do': 'yarn install --frozen-lockfile'}
I get this output (and error):
x Post-update hook for coc-sqlfluff ... Exit status: 127
coc-sqlfluff: Resolving deltas: 100% (27/27), done.
Is this expected behavior?
Also, should this linter work out of the box? Once I have run vim-plug, I wasn't sure if I needed to follow any more steps.
Per the readme I tried :CocCommand sqlfluff.install but I got error coc.nvim error on runcommand sqlfluff.install not found

Do you have coc.nvim installed?
e.g. .vimrc/init.vim:
" ...snip
call plug#begin('~/.vim/plugged')
  Plug 'neoclide/coc.nvim', {'branch': 'release'}
call plug#end()
" ...snip

After installing coc.nvim, use :CocInstall coc-sqlfluff to install coc-sqlfluff
(This is easier than installing coc-sqlfluff with vim-plug)
Then open the sql file and coc-sqlfluff will be available.

This worked using CocInstall. Thank you!!!
May I ask you one more question, I tried reading the docs for sqlfluff but was not able to find the solution to this...
The docs talk about a global default config. Does updating the default config file change the settings globally? I don't want to have to create a .config file for every single folder I'm working out of. Where does this default config file live so that I can edit it?
Thank you again for all your help.

The location of the global config file can be found in the documentation. https://docs.sqlfluff.com/en/stable/configuration.html#nesting
If you have any questions about sqlfluff, please ask them on the GitHub issue of sqlfluff itself. 🙇
This issue is closed.


[Test@SQLite] - Update SQLiteDialect overrideDriverTypeConversion to support empty date

Hi
When resolving issue #638 I didn't noticed that the test I have included would fail under SQLite.
This PR is meant to correct that mistake.
If you have any question, feedback or suggestion, please do not hesitate to say so :)
Cheers

Thanks!


NO-ISSUE: fix: use correct grace period setting for e2e test pods

adjusts the grace periods so the tests run within 2 mins instead of 5 due to waiting for 30s after each pod deletion instead of 1s

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 57.71%. Comparing base (a0a2217) to head (38ba33e).

Additional details and impacted files

@@             Coverage Diff             @@
##             main     #632       +/-   ##
===========================================
- Coverage   77.97%   57.71%   -20.26%
===========================================
  Files          28       54       +26
  Lines        2016     4016     +2000
===========================================
+ Hits         1572     2318      +746
- Misses        335     1464     +1129
- Partials      109      234      +125

see 27 files with indirect coverage changes


update insufficient resources error messaging and add pushed apps foo…

…tprint [#156934627]

Looks good, good work @robertjsullivan


Set ntp.sync_clock to true for users of ntp cookbook

This forces a clock sync on every Chef run, if the user has the ntp cookbook installed. This may not necessarily be what someone wants, but this will ensure that the clock is synchronized prior to performing Kerberos operations, which are clock skew sensitive.

👍 lgtm


Update sourcekitd use of install_fatal_error_handler

Cherry-pick from https://github.com/apple/swift/pull/40152 after I noticed these were also failing on next.

e463b69736da8b0a950ecd937cf990401bdfcdeb changed fatal_error_handler_t
to use a const char * reason rather than const std::string &.
Update sourcekitd to use const char * for the handler instead.

Turns out there's quite a few compilation errors, I'll make a new branch with a whole bunch of cherry-picks when I have it compiling locally.


Optimize simulator API for E-PEEN

Introduced new index on follows entity because of readtimeouts when running the simulator.
Also removed sign on register.

Generate the queries that EF core generates from our LINQ code and profile them on the postgres database

lange willy

We ended up in 3rd place, most likely because of our managed database being on a separate machine from our application. Which our two competitors seemed to host locally on the same machine as their application. To continue this optimication we would have needed the pr. endpoint profiling which is referenced here:
https://github.com/ChadIImus/Devoops/issues/93


Node 8 support

Hi @mathieuales. Is it necessary to limit node version to >=6 <7, when there is already 8 LTS?

Have the same issue. Will be really great if you update node version.

fixed in 0.5.3


Change obs error for GNSSRO bending angle and update build

Description
This PR adds changes for assimilating GNSSRO bending angle (ROPP1D and MetOffice operators) with the NRL observation error. Previous error parameters using the Desroziers et al 2005 method are commented out for reference. Here, the built code is also updated to account for recent changes in mpas-jedi to pass geometric height as geopotential height for bending angle forward simulations.
In addition, the ObsSpaceV2-to-V3.yaml file is updated for latest file in ioda repository as well as  the CMakeLists file.
Tests completed
Tier 1:

[x] 3dvar_OIE120km_WarmStart
[x] 3denvar_OIE120km_IAU_WarmStart
[x] 3dvar_OIE120km_ColdStart
[x] 3dvar_O30kmIE60km_ColdStart
[x] 3denvar_O30kmIE60km_WarmStart
[x] eda_OIE120km_WarmStart
[x] getkf_OIE120km_WarmStart
[x] ForecastFromGFSAnalysesMPT

Tested three scenarios. All passed: scenarios/3dvar_OIE120km_WarmStart.yaml scenarios/3denvar_OIE120km_WarmStart_VarBC.yaml scenarios/3dhybrid_O30kmIE60km_SpecifiedEnsemble_VarBC.yaml Thank you so much @ibanos90 !

Thanks so much for testing @junmeiban!


Task Hub: Create Your Own Content About Decentralized Web Nodes (DWNs)

📦 Task Hub: Create Your Own Content About Decentralized Web Nodes (DWNs)
🚀 Goal
We've created this parent content task for the community to get involved by sharing what they learned about Decentralized Web Nodes (DWNs) with us to create content. We want to give multiple people the opportunity to create content as part of Hacktoberfest.
🤝 Pick  ONE of the following content issues to contribute to this task
❗You must only assign yourself one task at a time to give everyone a chance to participate.❗
You may assign yourself your next task after your current task is reviewed & accepted.
We've broken down each content type into subtasks to give multiple participants the opportunity to create content. Feel free to take on any task that interests you. Every contribution counts!
Blogs

[x] #1739

Videos

[ ] #1740
[ ] #1741
[ ] #1742

🌟 Resources

[ ] Our Blogs
[ ] Our YouTube channel

Getting Started

Comment ".take" on this issue to get assigned
Fork the repository and create a new branch for this task
Follow the tasks outlined above
Submit a pull request with your changes
Respond to any feedback during the review process

Questions?
If you have any questions or need clarification, please comment on this issue or join our Discord community.
Happy coding! 🎉

.take

Hi @Lymah123 ! You can't assign yourself to this issue because this is just an issue that lists out the available issues. If you wanted to make a blog post about DWNs, I opened a new issue that you can assign yourself to here: #1801
Also please note here are the available issues

[ ] #1740
[ ] #1741
[ ] #1742
[ ] #1801


With version 2.1.0, Navigation items now require the permissions arg to be passed

Environment

Nautobot version (Docker tag too if applicable): 2.1.0
Python version: 3.8
Database platform, version: N/A
Middleware(s):

Steps to Reproduce

Have an app with a NavMenuItem that does not pass the permissions argument
Start Nautobot
Login as admin
Click on NavMenuTab where the NavMenuItem should appear
Observe that NavMenuItem does not appear

Expected Behavior
To see the NavMenuItem (or alternatively for the changelog and core Navigation docs to be updated)

Observed Behavior
NavMenuItem was a ghost

Likely a side-effect of #4787.

Probably just needs each of the if request.user|has_one_or_more_perms:<permissions list> checks in nautobot/core/templates/inc/nav_menu.html to change to if <permissions_list> and if request.user|has_one_or_more_perms:<permissions list>


Eslint not using Package.json config

to reproduce this problem just download this boilerplate which configures eslint in package.json no eslintrc  https://github.com/react-boilerplate/react-boilerplate everything works fine in comand line and in webstorm but in vscode it does not it just lebels errors based on config that i don't know where the are coming from

This works for me. I cloned the repository run npm install. Here is what I get. I honors the package.json config and even hot updates as expected. ESLint extension version is 1.2.6

Any additional information?

hi @dbaeumer
I have the same issue, but using the key eslintConfig in the package.json.
The config file is ignored :(

Thx!

@carlosvillu that looks different than the one reported from @afaayerhan
Can you please open a new issue with steps to reproduce. Best would be a GitHub repository I could clone.

@carlosvillu I seem to be having the same issue where a eslint doesn't load locally and I have to specify it every time in the workspace settings. is that also what you're experiencing?

This issue has been closed because it needs more information and has not had recent activity. Thank you for your contributions.


FI main into feature branch WNP_ToastNotifications_L1

Conflict resolution: kept incoming changes, excepted for the solution file where I kept both.
Of note: This brings the latest UDK into the WNP_ToastNotifications_L1
How tested: ran all push and toast notifications unit tests, didn't notice anything unexpected.

/azp run


Encryption predicate

#70
I think it is a simple as this... Let me know if see see any issues...

first issue is see is that this can't work with the EncryptionTransformer if i'm not mistaking. That does not have access to the entity so it cant call the predicate function. Does someone see way around that?

@generalpiston hello.
Did you/do you have time to do an other review maybe this week?

Good stuff! I should be able to run a release this weekend.


Use native composer home

Some services like Bitbucket use default configuration for the most common usages, for example the default cache points to the default composer cache dir:
https://confluence.atlassian.com/bitbucket/caching-dependencies-895552876.html
Altering the defaults parameters of composer with a custom $COMPOSER_HOME generates friction in the integration.
Ok, nothing that can't be solved with additional configuration, but if we can use defaults I think we should :smiley:

Totally agree this is a far better default than the one we had before.
I'm just wondering whether the COMPOSER_HOME environment variable should be removed at all, or rather set to $(composer config --global home). 🤔 Though I think this is quite unlikely, somebody may be relying on it. Maybe we could do something like this instead:
ENV COMPOSER_HOME=$(composer config --global home)
ENV PATH=$COMPOSER_HOME/vendor/bin:$PATH

We would chasing our own tail, a bit :stuck_out_tongue:
https://github.com/composer/composer/blob/ea9b7ecbb05c4b4265b1e15d72b2695439fdc12a/src/Composer/Factory.php#L56-L72
I understand if you want to retain backward compatibility, and I'll change the code if you ask me that.
Said that, if it would be up to me, I would drop it at all: the important thing is only the $PATH.

Uhm… no, I see the problem there. It was a mistake to set that variable in the first place. 😞
As a "standard" practice, I don't think anybody should read that value from the environment directly except Composer itself, so I guess it's fine to just drop it. 👍

Thanks again for your contribution!

So now there is a compatibility problem.
I already have adjusted my deployment for the composer home being in a different place.
This update will now effectively break my deployment cache.

Yes, it is an intended behaviour

Argh… @Nemo64, sorry about that. I didn't think about that use case. Now that you point that out, it comes up to my mind that I need to update volumes paths in a couple CI pipelines as well. 😞
Is yours a cache that's expensive to be recreated?

Would creating a symlink from /root/composer to $(composer config --global home) be a solution in your case?

Likely yes.
@fquffio I think $(...) notation isn't interpreted in Docker, a prinvent in Bitbucket says:
PATH=$(composer config --global home)/vendor/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

We can partially revert this change to have /root/composer as a symlink, and /root/composer/vendor/bin in the path, without a new ENV VAR

Ok, sorry again about that.
I'm in a meeting right now, so I can't address this problem in a proper way. I'm therefore temporarily reverting the merge commit, and opening an issue to restore the behaviour as of this PR.

I don't think that everything needs to be compatible indefinitely.
But even with the change in place, it's the nature of docker to cache everything so when the folder is changed, some might have the updates and other may not depending on when the cache was created. The only real solution would probably be to just tag any update with something. Like 7.2-chialab3 similar how Debian packages are versioned with -debian2.

Ideally we would adhere to SemVer. This is difficult, though, because PHP is already using SemVer for its releases, and our semantic versioning would conflict with that.
Adding a suffix to the tag would do the work. We might tag each commit with -$(git rev-parse --short HEAD), so chialab/php:7.2-abcdef0, but I'd still keep the tag chialab/php:7.2 that points to the latest available image of its kind. This way one might choose between the fixed version, or the latest build.
@Nemo64 @Slamdunk What do you think?

Docker images release cycle can't be strictly compared to libary ones.
Debian style refers only to fix backporting, so it's not our case.
If you'd like to have SemVer you should use your version first: chialab/1.0/php:7.2 but it's a bit ugly.
Dunno... I would concentrate my energies in fixing (my, I'm sorry) this issue without versioning it.
Documenting all this would be good though.

Right, if the issue can be resolved without breaking compatibility than go for it.
Still, I kind of dislike having mutable tags which may or may not break old projects in feature releases. Or having to tell my coworkers "do a pull before starting, there is a new extension we need". I think i'll create a separate issue for that.


Language status item shows duplicate spinning icons when busy

Does this issue occur when all extensions are disabled?: No

Version: 1.65.2 (user setup)
Commit: c722ca6c7eed3d7987c0d5c3df5c45f6b15e77d1
Date: 2022-03-10T14:33:55.248Z
Electron: 13.5.2
Chromium: 91.0.4472.164
Node.js: 14.16.0
V8: 9.1.269.39-electron.0
OS: Windows_NT x64 10.0.22000
Currently if we pin an item and we mark it busy, the spinning icon will appear in both language status item (the left one) and pinned item (the right one).

IMO it's a little duplicated and it would be great to show the busy icon only in the language status item (the left one) to help users focus on the item.

Pushed a fix that ensures that one item isn't causing two spinners. However, when a pinned and unpinned item mark themselves as busy you can still see two spinners.

@jrieken just tested in the insiders version, works great, thanks!


Could not resolve import<EMAIL_ADDRESS>in "demo\demo.js"

I tried to run demo of the Fore repository.
I followed steps in the Readme (clonning, npm i, npm run start ).
The demo pages are displayed, but the Fore content is missing, I only see static text.

There is error log in the console:
  Error: Could not resolve import<EMAIL_ADDRESS>in "demo\demo.js".
      at Object.resolveImport (V:\Projekty\Github\Daliboris\Fore\node_modules\es-dev-server\dist\plugins\nodeResolvePlugin.js:81:23)
      at async resolveImport (V:\Projekty\Github\Daliboris\Fore\node_modules\es-dev-server\dist\plugins\resolveModuleImportsPlugin.js:132:30)
      at async maybeResolveImport (V:\Projekty\Github\Daliboris\Fore\node_modules\es-dev-server\dist\plugins\resolveModuleImportsPlugin.js:82:41)
      at async resolveModuleImports (V:\Projekty\Github\Daliboris\Fore\node_modules\es-dev-server\dist\plugins\resolveModuleImportsPlugin.js:101:36)
      at async Object.transform (V:\Projekty\Github\Daliboris\Fore\node_modules\es-dev-server\dist\plugins\resolveModuleImportsPlugin.js:149:49)
      at async pluginTransformMiddleware (V:\Projekty\Github\Daliboris\Fore\node_modules\es-dev-server\dist\middleware\plugin-transform.js:77:34)
      at async watchServedFilesMiddleware (V:\Projekty\Github\Daliboris\Fore\node_modules\es-dev-server\dist\middleware\watch-served-files.js:18:9)
      at async messageChannelMiddleware (V:\Projekty\Github\Daliboris\Fore\node_modules\es-dev-server\dist\middleware\message-channel.js:37:9)
      at async etagCacheMiddleware (V:\Projekty\Github\Daliboris\Fore\node_modules\es-dev-server\dist\middleware\etag-cache.js:9:9)
      at async V:\Projekty\Github\Daliboris\Fore\node_modules\es-dev-server\dist\create-middlewares.js:105:9

I use Windows 10, node v16.13.0, npm 8.6.0, Visua Studio Code 1.7.43.
What other steps should I take? Thanks for any hints.

i assume you checked out the 'dev' branch?

Yes, you are right. I made fork of the dev branch (https://github.com/daliboris/Fore).

hm, that's really strange - the above dependency is defined in demo/package.json - could you check if you got a 'node_modules' folder in your demo directory please?

Thank you for the hint. There was not demo/node_modules directory. I had to run npm i inside demo folder, not only in main Fore directory.
Now it works. Thank you again.

you're welcome


Remove some slice pointers

Partial fix for #48
Some remain, for compatibility with the iovisor library.

CI is failing with KVM: entry failed, hardware error 0x0, which doesn't seem related.
@2opremio the CI runs under your account - are you able to raise a support request?


[FEATURE REQUEST] MacOS integration

It seems like the bindings for GtkOsxApplication are missing.

we already have an issue for the missing parts in gdk at #520; so let's limit this one to gtk only.

I'm going to go ahead and close this, if you find some macos specific functions/features that are missing please open a specific issue. There's nothing actionable on this one. See also #520


JamfComputerGroupUploader Error Finding Template

I have a local repo with the following structure
Main
-> JAMF_PreProduction_Policies
-->SomeRecipe.jamf.recipe.yaml
-> Templates
--> JAMF-StaticGroup.xml
So basically the at the root, I have two directories, one with all the recipes, and another with templates.  In an earlier release of this processor, everything was working fine.  I recently updated and now getting where it cannot find the template xml.  Here is an output of the error
JamfComputerGroupUploader: Matching dir: /Users/autopkg/Library/AutoPkg/RecipeOverrides
JamfComputerGroupUploader: Looking for JAMF-StaticGroup.xml in /Users/autopkg/Library/AutoPkg/RecipeOverrides
JamfComputerGroupUploader: Matching dir: /Users/autopkg/Library/AutoPkg/RecipeOverrides
JamfComputerGroupUploader: Parent Recipe: /Volumes/DataVolume01/Autopkg/LocalRecipes/JAMF_PreProduction_Policies/SomeRecipe.jamf.recipe.yaml
JamfComputerGroupUploader: Matching dir: /Volumes/DataVolume01/Autopkg/LocalRecipes/JAMF_PreProduction_Policies
JamfComputerGroupUploader: Matching dir: /Volumes/DataVolume01/Autopkg/LocalRecipes/JAMF_PreProduction_Policies
JamfComputerGroupUploader: Matching dir: /Volumes/DataVolume01/Autopkg/LocalRecipes/JAMF_PreProduction_Policies
Traceback (most recent call last):
  File "/Library/AutoPkg/autopkglib/__init__.py", line 840, in process
    self.env = processor.process()
  File "/Library/AutoPkg/autopkglib/__init__.py", line 626, in process
    self.main()
  File "/Volumes/DataVolume01/Autopkg/RecipeRepo/com.github.autopkg.grahampugh-recipes/JamfUploaderProcessors/JamfComputerGroupUploader.py", line 170, in main
    raise ProcessorError(
autopkglib.ProcessorError: ERROR: Computer Group file JAMF-StaticGroup.xml not found
  File "/Library/AutoPkg/autopkglib/__init__.py", line 840, in process
    self.env = processor.process()
ERROR: Computer Group file JAMF-StaticGroup.xml not found
Failed.

What I figured out is that I needed to add to the search directories the current directory I was operating in.  Even though my search directories is set with a '.', the processor was not searching it.
At least this could be documented or another condition can be added to search within the current directory IF there is a '.' in the existing REPO_SEARCH_DIR array.

Sorry, I don't quite understand I needed to add to the search directories the current directory I was operating in. Even though my search directories is set with a '.', the processor was not searching it.
The search locations are described in the wiki:
https://github.com/grahampugh/jamf-upload/wiki/JamfUploader-Templates#where-to-store-templates
It looks like you are using a local folder rather than a repo. That's probably why you have had to add that directory into the RECIPE_SEARCH_DIRS just as you would any real repo.


Blueprint error handling with url_prefix and lang_code

Please add error handlers to Blueprint (404 and others)
For multi language Site I had to write app error handlers and cookies and after requests with session and cookie and a bit mess in my code so may error handling inside blueprint is good idea
Thanks

There are already blueprint error handlers.

I need to handle page not found but it refers to app not blueprint and can you provide more clear examples or documentation on this ?  thanks

@ThiefMaster
thanks for answer ! https://stackoverflow.com/questions/49496761/two-language-flask-site-with-or-without-blueprints/49948870#49948870 My app example is this, I was trying to get multiple lang site for about 2-3 months and got that solution on my own (in documentation there are so little examples) now I am stuck on error handling, I can share full project with you to see (it is not big) I had to have after requests for cookie for lang and other little things to handle languages and it is bit tricky and not standard way to handle application problems I think..
can you tell me more about this ?

However, I think we should consider adding a way of registering an error handler for a base URL so you could do something like @app.errorhandler(NotFound, path='/api/')


Improve MAD code

The MAD flagging code was some of my first dask code. As such, it was very messy and probably slightly incorrect. This is not a complete fix - that will require a full rewrite - but this should improve its behaviour/make it more correct. At present I am using the whitened residuals (np.sqrt(r*r.conj()*W)) in the MAD flagger but it is possible the np.sqrt can be omitted. It is now possible to disable whitening (the multiplication by W in the above expression) for cases where the weights are known to be incorrect.
@landmanbester feel free to give it a test drive.

I am going to go ahead and merge this - I am fairly confident that it is better than what was there previously. That said this is still slightly incorrect as it is applying the MAD thresholds independently in the real and imaginary parts. This means that the residuals will end up falling into a rectangular box around the origin. The more correct approach may be to make the cut elliptical, i.e. to calculate re**2/(n*mad_re)**2 + im**2/(n*mad_im)**2 and then exclude points > 1. I will defer this to a later PR as it will require some fairly major tinkering.


Unable to run “facial_recognition.py ”

I found errors in 348 lines, 383 lines ，384 lines and 454 lines. But I can not change? The live detection function is not available.
@richmondu

ImportError: cannot import name 'FaceLivenessDetectorModels'
I got same issue

Install requirements.txt to get the correct versions of libraries.
Refer to testing_webcam_livenessdetection.py for sample usage of liveness decttion.

can we detect multiple person with different name?

Yes, detection and recognition is done face by face.
In the examples, i just detect and recognize one face.
To recognize many faces, just do recognition on all detected faces.

i created another face but still only can detect one face..
what we do if we want to detect our trained multiple faces

Please read the README file. Answers to basic questions can be found there.


fix: guess correct file name when editing media

When guessing a filename, no longer rely on the top-level property that contains the InputFile instance. Instead, directly look at the key behind which the InputFile instance is stored, however deep that may be. Also, if we are inside InputMedia*, use the media type instead. Also also, improve the list of known keys so that we get better at guess them.
Fixes #317.

Codecov Report
Patch coverage: 36.36% and project coverage change: -0.04 :warning:

Comparison is base (e95c1b2) 35.14% compared to head (d269a70) 35.10%.

:mega: This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #388      +/-   ##
==========================================
- Coverage   35.14%   35.10%   -0.04%
==========================================
  Files          16       16
  Lines        4778     4785       +7
  Branches      166      168       +2
==========================================
+ Hits         1679     1680       +1
- Misses       3097     3103       +6
  Partials        2        2

Impacted Files
Coverage Δ

src/core/payload.ts
71.95% <36.36%> (-2.58%)
:arrow_down:

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.