Is this package available for Angular?

I'm trying to include this package in Angular 7 via npm i face-api.js, but I'm always getting:
error TS2304: Cannot find name 'faceapi'.
Any hints or quick steps to include it correctly in Angular?

import * as faceapi from 'face-api.js';
seems to solve the issue

I am getting these warnings:
client:154<EMAIL_ADDRESS>Module not found: Error: Can't resolve 'crypto' in '/home/qamaruddin/eclipse-workspace/imgproc-frontend-angular/node_modules/@tensorflow/tfjs-core/dist' warnings @ client:154 onmessage @ socket.js:41 EventTarget.dispatchEvent @ sockjs.js:170 (anonymous) @ sockjs.js:887 SockJS._transportMessage @ sockjs.js:885 EventEmitter.emit @ sockjs.js:86 WebSocketTransport.ws.onmessage @ sockjs.js:2961 wrapFn @ zone.js:1188 push../node_modules/zone.js/dist/zone.js.ZoneDelegate.invokeTask @ zone.js:421 push../node_modules/zone.js/dist/zone.js.Zone.runTask @ zone.js:188 push../node_modules/zone.js/dist/zone.js.ZoneTask.invokeTask @ zone.js:496 invokeTask @ zone.js:1540 globalZoneAwareCallback @ zone.js:1566 client:154 ./node_modules/tfjs-image-recognition-base/build/es6/env/initialize.js Module not found: Error: Can't resolve 'fs' in '/home/qamaruddin/eclipse-workspace/imgproc-frontend-angular/node_modules/tfjs-image-recognition-base/build/es6/env'
The camera opens but no face tracking overlay :(

Including the js doesn't seem to resolve it either:

It seems there are plenty of complaints which I have no clue how to solve:
ERROR in src/app/logger.service.ts(29,30): error TS2339: Property 'stack' does not exist on type '{}'.
src/face/face.component.ts(120,42): error TS2345: Argument of type 'FaceDetectionWithLandmarks<FaceLandmarks68>[]' is not assignable to parameter of type 'FaceLandmarks | FaceLandmarks[]'.
  Type 'FaceDetectionWithLandmarks<FaceLandmarks68>[]' is not assignable to type 'FaceLandmarks[]'.
    Type 'FaceDetectionWithLandmarks<FaceLandmarks68>' is not assignable to type 'FaceLandmarks'.
      Property '_shift' is missing in type 'FaceDetectionWithLandmarks<FaceLandmarks68>'.

What typescript version are you using, maybe there is a mismatch between the tfjs-core version you installed and the version of face-api.js (should be 0.13.8)?

I had this issue when I was on node v8.15.0 but it went away with v10.11.0

I am seeing this same problem with the latest clean build of an angular 7 application.
   "name": "ang-face",   "version": "0.0.0",   "scripts": {     "ng": "ng",     "start": "ng serve",     "build": "ng build",     "test": "ng test",     "lint": "ng lint",     "e2e": "ng e2e"   },   "private": true,   "dependencies": {     "@angular/animations": "~7.2.0",     "@angular/common": "~7.2.0",     "@angular/compiler": "~7.2.0",     "@angular/core": "~7.2.0",     "@angular/forms": "~7.2.0",     "@angular/platform-browser": "~7.2.0",     "@angular/platform-browser-dynamic": "~7.2.0",     "@angular/router": "~7.2.0",     "core-js": "^2.5.4",     "face-api.js": "^0.18.0",     "rxjs": "~6.3.3",     "tslib": "^1.9.0",     "zone.js": "~0.8.26"   },   "devDependencies": {     "@angular-devkit/build-angular": "~0.13.0",     "@angular/cli": "~7.3.3",     "@angular/compiler-cli": "~7.2.0",     "@angular/language-service": "~7.2.0",     "@types/node": "~8.9.4",     "@types/jasmine": "~2.8.8",     "@types/jasminewd2": "~2.0.3",     "codelyzer": "~4.5.0",     "jasmine-core": "~2.99.1",     "jasmine-spec-reporter": "~4.2.1",     "karma": "~4.0.0",     "karma-chrome-launcher": "~2.2.0",     "karma-coverage-istanbul-reporter": "~2.0.1",     "karma-jasmine": "~1.1.2",     "karma-jasmine-html-reporter": "^0.2.2",     "protractor": "~5.4.0",     "ts-node": "~7.0.0",     "tslint": "~5.11.0",     "typescript": "~3.2.2"   } }

Boa noite pessoal.
Alguém saber o que é isso ? Estou tentando criar a pasta dist com o comando ng build --prod
ERROR in src/app/components/camera/face-detection.1.ts(1,26): error TS2307: Cannot find module './js/face-api'.
Obrigada por ter respondido a minha outra pessoa, ajudou bastante ! grata !!!!

The typescript version that google use to build typescript ends in .2222 i think, or something along those lines. If you try that version and it works, let us know on the ticket so it can be closed out :)

Thank you, my doubt has been resolved. The project I was studying was without the dist folder and the main.js file was missing, it was an upgrade in the gitignore file. But thank you so much for having responded. Thankful !

@justadudewhohacks this can be closed.

did anyone implement this in angular for reference with webcam stream?


CSS Styling

Instead of using a CSS library like Bootstrap, consider one of the following suggestions:
Explore the concept of CSS-in-JS, which abstracts CSS to the component level, using JavaScript to describe styles in a declarative and maintainable way. Some popular libraries include styled-components Links to an external site.and Emotion Links to an external site..
Try using a component library, such as Semantic UI Links to an external site., Chakra UI Links to an external site., or Ant Design Links to an external site..
Create all the CSS for your application just using CSS.

It just needs to look professional and be mobile-friendly.


Support searching through your playlist

If a playlist gets large its hard to find a video!

This is more of a UX issue than anything. How can I show a search field for the playlist's area?

Maybe the search input could have multiple drop-down options on the side like [Search YouTube], [Search Playlist]
OR find a way to combine both results so if your search matches things in your playlist it'll just show those automatically?

Was thinking about this earlier, doing it with keywords similar to how gmail works is probably the best way with the current ux. So searching playlists, just prefix your search with 'playlist:'. Can then extend this to other stuff later on, like platform specific searching (YouTube, SoundCloud, Spotify).

Nah I don't think that's how this should work.
I think that there should be multiple cards shown during search: http://www.google.com/design/spec/components/cards.html
One card for 'YouTube search results' and another card for 'playlists' etc.
As you type you're basically doing a /query/ match on all songs in your playlists and also sending the query to YouTube.
Does that make sense?


remove cockpit

part of ManageIQ/manageiq#21378
remove the custom cockpit thread/service
Also remove references to the cockpit console

963 deletions.  You're so close to 1000.  Find more lines.
✂ 🔥 ✂ 🔥 ✂ 🔥
🍰  🍪 👏 🙇 😍 🎉

UNWIP: wipping over in schema, no need to wip this too.


Snap to grid precision errors

Preflight Checklist

[x] I agree to follow the Code of Conduct that this project adheres to.
[x] I have searched the issue tracker for a feature request that matches the one I want to file, without success.

Describe the bug
When snapping a line to the grid, the line and endpoints do not match to the grid's actual position (screenshot 1).
Additionally, the preview when moving the endpoint shows the point being placed off the grid (screenshot 2), and additional adjustment has to be done for the point to be aligned with the grid (screenshot 3), but the endpoint will still be misaligned on placement.
To Reproduce
Steps to reproduce the behavior:
Create a line.
while the grid is enabled, move an endpoint to a grid position.
Zoom in.
Expected behavior
It is expected that when moving a line endpoint to snap on the grid, it should stay on the grid.
Screenshots
If applicable, add screenshots to help explain your problem.

draw.io version (In the Help->About menu of the draw.io editor):

draw.io version 16.0.2

Desktop (please complete the following information):

OS: Windows
Version: 16.0.2

Additional context
I am using a grid step value of 8, with units set to meters.

This can also be replicated by most objects when rotated 90 or 270 degrees.

Second part is #2385


Vidisha/students to view grades

This pull request addresses the user story related to enabling students to view their grades.
Changes Made:
Added New Feature:
Implemented the ability for students to view their grades directly.
Enhancements to Existing Feature:
Improved the existing view grades feature with additional functionality for a more comprehensive user experience.

Hello, one feature I would add is enabling students to test different scores to see how their grade is affected.


Many new LLMs

A bunch of LLM releases:
Added Grok-1
Added Snowflake Arctic
Added Mistral 7b v0.2 & Mixtral 8x7b
Added Mixtral 8x22
Added Phi-3 Mini
Added Llama 3
Added Gwen1.5 Family
Added Mamba 7B
Added Falkon 2
Added Skywork
Added LWM
And some additional additions:
Explain Gemma License
Fixed OLMo Link
Added exact release dates as comments for easier sorting and adding n…

Thank you for this!


Migrate CI job to GitHub Actions

See https://github.com/asciidoctor/asciidoctor/issues/3837 for context.

I have completed this change.
@ProgramFan The release will not be handled by GitHub Actions. However, before you release, you will need to go into Settings > Secrets and create a secret named RUBYGEMS_API_KEY with your API key for RubyGems. This will be used automatically by the release workflow.


Update blogging guidelines for Contribex Comms

Currently, the guidelines use a sequential approach to articles that are to be published in both contributor-site and website. Recent conversations have shown that this is not strictly correct: even if the revision first happen in contributor-site, there should be some equivalent content on the website PR.

/assign

Open in the community repository where the information is actually at https://github.com/kubernetes/community/issues/7478


Position classes not working

None of the position classes are working (E.g. position-absolute, position-fixed)

Bug reports must include a live demo of the problem. Per our contributing guidelines, please create a reduced test case via CodePen or JS Bin and report back with your link, Bootstrap version, and specific browser and OS details.

Sorry, found out that my Bootstrap version wasn't updated. Just got the latest and now it's working like a charm!


Update mirror for alpine 3.7 image

Signed-off-by: Jeremy Phelps<EMAIL_ADDRESS>

@drasko heh I don't disagree, but as it is, we have no control over those apk repos.  Do you have another suggestion?

Hmmm.. we can reach out to Alpine community and see with them maybe?

Ah, OK... Well... Dirty hack then :).


ValueError: Namespace Gtk not available with --no-gui

Hi!
I am trying to run emailproxy on a "headless" Linux VM (Ubuntu Server)
It seems even with --no-gui, it tries to load Gtk:
python emailproxy.py --no-gui --local-server-auth
Traceback (most recent call last):
File "emailproxy.py", line 39, in
import pystray
File "/usr/local/lib/python3.8/dist-packages/pystray/init.py", line 64, in
Icon = backend().Icon
File "/usr/local/lib/python3.8/dist-packages/pystray/init.py", line 56, in backend
return candidate()
File "/usr/local/lib/python3.8/dist-packages/pystray/init.py", line 28, in appindicator
from . import _appindicator as backend; return backend
File "/usr/local/lib/python3.8/dist-packages/pystray/_appindicator.py", line 19, in
gi.require_version('Gtk', '3.0')
File "/usr/lib/python3/dist-packages/gi/init.py", line 129, in require_version
raise ValueError('Namespace %s not available' % namespace)
ValueError: Namespace Gtk not available
My "quick and dirty" solution:
I moved the "import pystray" to the "else" part of "if self.args.no_gui" around line 1515.
I have not tested if this now works with gui-enabled installations.
And for a proper solution, you might want to look if there is a better placement, or if other libraries are needed to be handled similar as well?
Best regards,
Marco

The proxy was primarily designed for use with a GUI, so while the sort of change you propose does indeed work, I currently prefer the route suggested in the readme, which points to this previous discussion. Essentially, you set an environment variable to direct pystray not to try loading any GUI toolkit. If that doesn't work I'd be happy to look at alternatives, but for now I think it's the best way to go.


adds French translation

🇫🇷

A simple thing to correct:
Resources.resc should contain English translation and Resources.fr.resx should contain French.
Please rename the files.

Good Job 👍
Merged! Happy Hacktoberfest!
Congratulations on your first contribution.


Make vertx worker pool size configurable

PR Description
Make vertx worker pool size configurable. Web3Signer uses the worker pool for signing requests. Increasing the size of the pool might help if there is a spike in signing requests.
It can be configured by using the hidden option --Xworker-pool-size.
Default is set to the same the default in Vertx which is 20. See https://vertx.io/docs/apidocs/io/vertx/core/VertxOptions.html#DEFAULT_WORKER_POOL_SIZE
Fixed Issue(s)

Documentation

[x] I thought about documentation and added the doc-change-required label to this PR if updates are required.

Changelog

[x] I thought about adding a changelog entry, and added one if I deemed necessary.

Testing

[ ] I thought about testing these changes in a realistic/non-local environment.

LGTM. Do we need code to make the config and env vars work or is that just for the ATs?

That's just for ATs. We automatically get env and config through pico environment providers.


neovim: take into account plugin dependencies

neovim.tests: test lua transitive deps are available
neovimUtils.packDir: init: extend vimUtils.packDir
neovim: wrap LUA_PATH and LUA_CPATH
lua: take into propagated-build-inputs when building LUA_PATH

Description of changes
Attempt to fix https://github.com/NixOS/nixpkgs/issues/318925, e.g., luasnip
depends on jsregexp but it's currently not possible to load jsregexp when
luasnip is added to neovim.

Things done

Built on platform(s)

[ ] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
24.11 Release Notes (or backporting 23.11 and 24.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[ ] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

Isn't this what the extraLuaPackages option is for? It seems redundant because makeNeovimConfig function already sets LUA_PATH and LUA_CPATH based on that option.

So, I made an innacurate comment earlier but, it is actually possible to add jsregexp manually to neovim via the extraLuaPackages option of the makeNeovimConfig function? However, from what I gather, this is for doing it automatically when plugins declare propagated build inputs? If so thats kinda cool

However, from what I gather, this is for doing it automatically when plugins declare propagated build inputs so that things like jsregexp will be added automatically? If so thats cool and good for user experience.

That's correct.

This issue aside, maybe this option should be exposed in the module options for programs.neovim?

Rather the opposite. I would have to check the history but I am pretty sure extraLuaPackages was introduced as a workaround for the issue this PR fixes. I plan changes to the neovim wrapper for 24.11 and I will ask you and nixvim authors for feedback but let's leave that for another issue.
@GaetanLepage @mrcjkb Could you test please (cherry-pick on top of unstable) ? I reverted much of my local changes and looks like it's working here aka the neovim wrapper adds entries in LUA_PATH / LUA_CPATH with the wrapper.
I tested with (there is a test for it in nix-build -A neovim.tests as well. One  of the test is broken but it's already the case on master). I used:
let
  pluginsMap = pkgs.callPackage ../../hm/profiles/neovim/plugins.nix {};

  # a list of [ { plugin = DRV; config (optional) =  string } ]
# for instance [ { plugin = vimPlugins.luasnip' } ]
  allPlugins =
       pluginsMap.basePlugins
    ++ pluginsMap.luaPlugins
    ++ pluginsMap.colorschemePlugins
    ++ pluginsMap.filetypePlugins
  ;

  myNvimConfig = pkgs.neovimUtils.makeNeovimConfig {
    plugins = allPlugins;
  };
  myNvim = pkgs.wrapNeovimUnstable pkgs.neovim-unwrapped myNvimConfig;

in {
  environment.systemPackages = [
    (builtins.trace "${myNvim}" myNvim)
  ];

After rebuilding, less PRINTED_NVIM_PATH/bin/nvim shows jsregexp added to LUA_PATH.
Loading the executable worked too: /nix/store/m7qjpvyax1wb4zj6ccn4a051f5d4z0w3-neovim-0.10.0/bin/nvim --clean +'lua require"jsregexp"'.

I dont know enough around the lua packaging to know if you missed something but its clear enough that I can at least read it. I checked out your fork, added your wrapper changes to nixCats and it builds so, all good for me. I do have to copy in the changes to wrapper.nix though into nixCats when you push this and it hits live because i needed to do some hackery to install multiple versions of neovim XD

Could you test please (cherry-pick on top of unstable) ?

I'm sick right now, but hopefully I can test this in a few days 😄

Edit: actually, I do have 1 nitpick. In the wrapper.nix file we should maybe guard the search with an if check like the following in cae someone is using an old neovim version but the new wrapper or something due to using the module from unstable but the neovim from stable or something

Do you have an exemple in mind where there would be breakage ?  the API doesn't change soi I have trouble envisioning one,the hook should do nothing if file/folder doesn't work. Anyway nixos-unstable doesn't need to work with 24.05 code.
Wish the best recovery to mister rocks.nvim ;)

Do you have an exemple in mind where there would be breakage ?  the API doesn't change soi I have trouble envisioning one,the hook should do nothing if file/folder doesn't work. Anyway nixos-unstable doesn't need to work with 24.05 code.

So, if they built their own nvim in a flake, and updated their main config and not the flake, because the Lua you get the utils from is the one passed in via neovim-unwrapped they could hit an issue. However if you got luajit from callPackage instead of neovim-unwrapped it would avoid this issue, as would adding the check, so only one of the changes I suggested are needed to avoid that case.

this would happen for everyone who had pinned their version of the nightly overlay and then update their nixpkgs for everything else, causing their wrapNeovim function to update but be pulling the old version of lua that the flake pulled, which would cause the build to fail

This isn't a problem, because nixpkgs doesn't need to be backwards compatible with older versions of itself.

Carry on then. Ill be adding the check to nixCats though just in case because I was able to break it when testing the changes in that manner. But that doesnt need to match what is done in nixpkgs.

@BirdeeHub thanks for the feedback.
nix-build -A lua5_1.tests luajit.tests knot-resolver pass. I have driven this for a few days without issues. Let's unlock the power of the lua ecosystem and finally enable rocks.nvim and neorg/orgmode in nixpkgs.
I will merge and do further testing with the previouysly mentioned plugins. Having it in staging lets us some time to correct course should we find issues.

whoops... ammending the commit before the one that mentioned this one was a mistake apparently sorry for the spam


Android improvements

Addresses proposal in issue #3

disconnect method implementation
WPA2 and WPA3 being mutually exclusive
support connection on API < 29 without location permission

looks good to me, thanks for the pull

I may change is wpa2 and iswpa3 to two unique methods like connect to wpa2 / connect to wpa3, but for now this is more than sufficient.

I may change is wpa2 and iswpa3 to two unique methods like connect to wpa2 / connect to wpa3, but for now this is more than sufficient.

My intention was to keep it backward compatible (in the case of WPA2) - and also symmetric with WEP. If you prefer to have different methods that works too, it is a breaking change but that early in the development it is totally acceptable.

That's my thoughts precisely. As its still version ~0.0
It may be wonky with iOS considerations though so I haven't really come to any conclusion.


Support WebWorker Environment

It would be great if Caman could run in a webworker. I know that's where Caman came from, but it seems challenging enough to implement on the current codebase that is warrants creating an issue. Some of this was discussed in #173, but this is an official issue/request for the feature.
Couple of thoughts off the top of my head:

Caman would have to accept and operate directly on UInt8ClampedArrays in addition to images, canvases, etc.
Caman would have to postMessage back a UInt8ClampedArray instead of rendering to canvas.

Adding typeof document !== "undefined" in a few places made the code not have errors in a Worker, but without UInt8ClampedArray support, it won't process any images.
Since there's no access to the DOM/creating elements, all the Caman.prototype.initXXXXX functions run into errors.

Things that will work in a worker:

Math operations on an array of pixel data

Things that won't work in the worker:

Any of the canvas native functions (toDataURL, drawImage, etc)
Loading additional images (for layering, etc)
Any image decoding/encoding, or we'd have to include our own PNG/JPG/WebP codecs

I made some progress on this (initializes in the worker from a UInt8ClampedArray) but realized I've been working from the 4.1.1 zip I got from the website, not the latest github pull.
So it's back to the ol' drawing board for a while.

Ok, so I have a branch that is mostly working. Layering and resizing/cropping don't work at present but I'm working on that.
https://github.com/jocoolie/CamanJS/tree/webworker-environment
The big thing that worker implementations must do is define an exposeImageData(data, width, height) function that will handle the processed data.

@jocooler Any progress on this?

@EmanH  - I'm working on other projects for the time being. Figuring out how to decode/encode the image in the webworker is hard, potentially more computationally expensive than the savings from forking the webworker. And beyond my skill at this point. And a lot of this would be better handled by the GPU. So no progress and I'm not actively working on it now.

@jocooler I ended up getting it working. Crop and Vignette is done in the browser, the rest in the webworker.

@EmanH is there a chance to add a demo or some explanation on how u managed to run inside the worker ?

@EmanH: Would you be so kind to share your solution? Thanks!

@ctf0 and @av01d
Something like this:
editor = Caman(selector);

$scope.settings = {
	brightness: 0,
	contrast: 0,
	saturation: 0,
	vibrance: 0,
	exposure: 0,
	hue: 0,
	sepia: 0,
	gamma: 0,
	blur: 0,
	size: 0,
	strength: 40,
	blacks: 50,
	shadows: 80,
	midtones: 180,
	highlights: 255,
	red: 0,
	green: 0,
	blue: 0
};

var original = angular.copy($scope.settings);

if (window.Worker) {
	var workerProcess = new Worker(ROOT + 'js/admin/imageProcessor.js');

	var keys = ['image', 'tabs', 'settings', 'cropped', 'rotate'],
		output = {};
	_.each(keys, function(key) {
		output[key] = $scope[key];
	});

	output.width = ($scope.cropped.is && $scope.cropped.curCrop.w) || dimensions.width
	output.height = ($scope.cropped.is && $scope.cropped.curCrop.h) || dimensions.height;

	workerProcess.postMessage({ scope: angular.toJson(output), image: editor.imageData, original: original });

	workerProcess.onmessage = function(e) {

		$scope.$apply(function() {

			sv.message = e.data.message;
			if (e.data.percent) {
				sv.percent = percent + ((e.data.percent / 100) * (65 - percent));
			}

			if (e.data.type == 'finished') {

				sv.percent = 65;

				var newImgData = new ImageData(e.data.image, editor.imageData.width, editor.imageData.height);

				editor.imageData.data = e.data.image;
				editor.pixelData = e.data.image;

				editor.render(function() {

					sv.percent = 70;

					db.q('saveImageEdit', {
						base64: this.toBase64(),
						original: $scope.image.kp_imageID,
						overwrite: overwrite
					}, undefined, undefined, function(e) {
						if (e.lengthComputable) {
							sv.percent = 70 + ((e.loaded / e.total) * 30);
						}
					}).then(function(r) {
						sv.percent = 100;
						sv.message = "Upload Complete";
						workerProcess.terminate();
						if (r.image) {
							ngModel.$setViewValue(r.image.kp_imageID);
							$scope.ngModel = r.image.kp_imageID;
							ngModel.$render();
						}
						def.resolve(r);
					});

				}, newImgData);
			}

		});
	}

}

imageProcessor.js
var window = {Uint8Array: 1};
importScripts('caman.zaak.full.min.js');
importScripts('underscore-min.js');

this.exposeImageData = function (imgData){
	onmessage = undefined;
	postMessage({ type:"finished", message: "Processing Complete. Now saving...", image: imgData });
}

onmessage = function(e) {

    var data = e.data,
        $scope = JSON.parse(data.scope),
		original = data.original,
		editor;

    function apply() {

        var numFilters = 0;

        var st = $scope.settings;
        _.each($scope.tabs, function(itm) {
            if (itm.label == 'Vignette') {

                if (st.size > 0) {
                    editor.vignette(st.size + '%', st.strength);
                    numFilters++;
                }

            } else if (itm.link == 'bal') {

                if (st.red !== 0 || st.green !== 0 || st.blue !== 0) {
                    editor.channels({
                        red: st.red,
                        green: st.green,
                        blue: st.blue
                    });
                    numFilters++;
                }

            } else if (itm.link == 'levels') {

                var changed = 0;
                _.each(itm.adjustments, function(adj) {
                    if (st[adj[0]] !== original[adj[0]]) changed = 1;
                });

                if (changed) {
                    editor.curves('rgb', [50, st.blacks], [80, st.shadows], [180, st.midtones], [255, st.highlights]);
                    numFilters++;
                }

            } else if (itm.label != 'Crop' && itm.label != 'Rotate') {
                _.each(itm.adjustments, function(key) {
                    var fn = key[0] == 'blur' ? 'stackBlur' : key[0];
                    if (st[key[0]] !== 0) {
                        editor[fn](st[key[0]]);
                        numFilters++;
                    }
                });
            }
        });

		editor.render();

        return numFilters;

    }

    alreadySaving = 0;

    function saveFullRes() {

        if (!alreadySaving) {

            alreadySaving = 1;

            editor = Caman(data.image.data);

			setTimeout(function(){

                var numFilters = 0,
                    numFinished = 0,
                    nowSaving = 0;

                Caman.Event.listen("processStart", function(job) {
                    postMessage({
                        type: 'status',
                        message: "Applying " + job.name,
                        percent: numFilters && (numFinished / numFilters) * 100 || 0
                    });
                });

                numFilters = apply();

                Caman.Event.listen(editor, "processComplete", function(job) {

					numFinished++;

					var percent = numFilters && (numFinished / numFilters) * 100 || 0;

					postMessage({
                        type: 'status',
                        message: "Finished " + job.name,
                        percent: percent
                    });

					if(percent == 100) {
						setTimeout(function(){
							editor = undefined;
							data = undefined;
						}, 500);
					}

                });

			}, 500);
        }
    }

    saveFullRes();

}

I think I used this version of CamanJS:
https://github.com/zaak/zaak.github.io/tree/master/CamanJS-demo

Not sure if I would recommend this though. Uploading uncompressed image data is slow. Probably could get a JavaScript jpg library to compress it before save, but I haven't looked into that.


How to debug when no suggestion shows up?

I have followed the tutorial to install and authenticate codeium. But when I tried the fib.py example in the tutorial, nothing happens.
I used the default configuration without any customization. I also don't see any error or warning messages. Is there any way to debug what is wrong?

In general you should be able to see codeium logs inside a your operating system's tmp directory. Look for a file like /tmp/*-codeium.log and post the output here (redacting any sensitive information like API keys or names)

After disabling and re-enabling the plugin, it is working now. :astonished:


Build(deps): Bump ejs from 3.1.9 to 3.1.10 (#5735)

Pull request opened by the merge tool on behalf of #5735

Merged in c585ed4c4bff800810f0d0a943132114e142f149


Fix install of fixed namespace/name apps that aren't installed yet

https://github.com/rancher/dashboard/issues/1417


How to get slack workspace ( team) token and team data (like team_id) after installing slack using the link

Hi Team,
When slack bot is installed into a workspace using the install button, it saves the bot token, team id and other team data in the data file .
But I will like to get it as a response from an API.
How can I achieve that ?

Hi @suavelad, thanks for asking the question!
I guess you've installed your app from the app admin page (https://api.slack.com/apps/{your app id}), right? In the case, you can call auth.test API (https://api.slack.com/methods/auth.test) with the issued token. The API returns team_id and some other properties associated with the token.
I hope this helps.

Hi @seratch,
I installed it using the {my domain}/slack/install

@suavelad In the case, your installation store has all the information returned by https://api.slack.com/methods/oauth.v2.access API. Of course, it includes team_id and other properties. When it comes to your bolt-python listener code like functions with @app.event("app_mention") decorator, you don't need to write any code to know team_id of a request. You can access the string via context.team_id.
If you have follow-up questions on this, please let us know more about your use case or code examples you're working on.


HEAD request returns body

Result are with latest version 0.10.1
Why does a HEAD request yield a body?
[
    {
        "request": {
            "uri": {
                "startsWith": "/prefix"
            }
        },
        "response": {
            "text": {
                "template": "${req}"
            },
            "headers": {
                "header": "1.0",
                "Date": "Mon, 02 Mar 2015 21:27:38 GMT"
            }
        }
    }
]

↳ curl -i -X HEAD http://localhost:5001/prefix
HTTP/1.1 200 OK
Date: Mon, 02 Mar 2015 21:27:38 GMT
Content-Length: 165
header: 1.0
Content-Type: text/plain; charset=UTF-8

HTTP Request{uri=/prefix, version=HTTP/1.1, method=HEAD, queries={}, headers={User-Agent=curl/7.37.1, Host=localhost:5001, Accept=*/*, Content-Length=0}, content=}%

You response content is set by your template.
"text": {
    "template": "${req}"
}

req is a template variable you can get request information.

I understand why it's happening but should it be?
Here is the RFC on what HEAD is suppose to do:

9.4 HEAD

The HEAD method is identical to GET except that the server MUST NOT return a message-body in the response. The metainformation contained in the HTTP headers in response to a HEAD request SHOULD be identical to the information sent in response to a GET request. This method can be used for obtaining metainformation about the entity implied by the request without transferring the entity-body itself. This method is often used for testing hypertext links for validity, accessibility, and recent modification.

Good suggestion.
Currently, Moco sets response content based on your response setting, not your request.

After further thought, this probably shouldn't follow the spec to strictly. I can imaging someone trying to mock a server which did response with a body on a HEAD request. Making a change like this would not allow for that too easily. I'll close this as I think this is acceptable behavior.

Actually my recent change has implemented this feature which will be released in next release.

How will someone mock a server which does return a body in response to a HEAD request? Servers which do that are not following the HTTP spec but I have run into servers which do have this behavior. If this scenario can't be replicated I recommend this change not be made.

You're right. Not every programmer is a good programmer, especially in a tricky case.


Add node affinity

Ensure that consul and vault pods are spaced out amongst all the kubernetes nodes to ensure failure in one AZ doesn't disrupt service

Actually it is easier than expected.
Consul statefulset
    spec:
      affinity:
        podAntiAffinity:
          requiredDuringSchedulingIgnoredDuringExecution:
            - labelSelector:
                matchExpressions:
                  - key: "app"
                    operator: In
                    values:
                      - consul
              topologyKey: "kubernetes.io/hostname"

Vault deployment
    spec:
      affinity:
        podAntiAffinity:
          requiredDuringSchedulingIgnoredDuringExecution:
          - labelSelector:
              matchExpressions:
              - key: app
                operator: In
                values:
                - vault
            topologyKey: "kubernetes.io/hostname"
        podAffinity:
          requiredDuringSchedulingIgnoredDuringExecution:
          - labelSelector:
              matchExpressions:
              - key: app
                operator: In
                values:
                - consul
            topologyKey: "kubernetes.io/hostname"

This gives evenly distributed Consul/Vault pods, where every single Consul entity will have one Vault entity.
Any feedback appreciated

Thanks for example! I will create a PR to make this change. I was reading up on that topologyKey.
https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#interlude-built-in-node-labels

Taken from
https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#an-example-of-a-pod-that-uses-pod-affinity

https://github.com/ReadyTalk/vault-helm-chart/pull/27


stdout and stderr are written to console out of sync

🐛 Bug Report
data streamed to process.stdout and process.stderr does not appear in sync.
It makes debugging in some cases difficult and very confusing
e.g. I work with application where some parts, rely on console.log (so propagate debug logs to stdout) while some app dependencies output debug logs via popular debug library (which propagates logs to stderr)
Logs from both sources appear out of sync, which makes reliable debugging quite difficult.
To Reproduce
In empty project create some.test.js:
process.stdout.write("1\n");
process.stderr.write("2\n");
process.stdout.write("3\n");

After running jest output is as follows:
2
 FAIL  ./some.test.js
  ● Test suite failed to run

    Your test suite must contain at least one test.

      at node_modules/jest/node_modules/jest-cli/build/test_scheduler.js:256:22

1
3
Test Suites: 1 failed, 1 total
Tests:       0 total
Snapshots:   0 total
Time:        1.489s
Ran all test suites.

Expected behavior
Output as:
1
2
3
 FAIL  ./some.test.js
  ● Test suite failed to run

    Your test suite must contain at least one test.

      at node_modules/jest/node_modules/jest-cli/build/test_scheduler.js:256:22

Test Suites: 1 failed, 1 total
Tests:       0 total
Snapshots:   0 total
Time:        1.489s
Ran all test suites.

Env info
  System:
    OS: macOS High Sierra 10.13.5
    CPU: x64 Intel(R) Core(TM) i7-2760QM CPU @ 2.40GHz
  Binaries:
    Node: 10.7.0 - /usr/local/bin/node
    Yarn: 1.7.0 - /usr/local/bin/yarn
    npm: 6.1.0 - /usr/local/bin/npm
  npmPackages:
    jest: ^23.4.1 => 23.4.1

Could you setup a repro so it's easier to approach this case?

Could you setup a repro so it's easier to approach this case?

https://repl.it/@medikoo/stderr-stdout-sync-issue
Still it's not perfectly reliable, as behaves differently than in system terminal (but bug remains visible, as still output is out of sync). Also it runs Jest v22 and not latest 23 (not sure how I can bump it over there).
To reproduce locally is as easy as creating some.test.js file (with content as listed above) within some empty project folder, and running jest in it (no config or any other files are needed and assuming jest is  installed globally).

What is the status of this issue?

Solution to this is probably for Jest to intercept process.stdout in the same way it does console.*. That way we can send the output to a reporter who can print it in a controlled fashion instead of every line of code being able to intercept

Is it on the roadmap to also intercept process.stderr? That's what is the standard for most logging libraries, is to use stderr for logs.

bump

How can such terrible bug, be not handled for 6 years, phew..


Pex 2.1.93 pex --lock artifact downloading fails for sdists with ext_modules or PEP-517 build systems.

Even though we download lock artifacts using pip download --no-deps, Pip still tries to execute the build system. Maybe to gather metadata? I'm really not sure why it does this; no metadata is needed:
$ pex -V
2.1.93
$ pex3 lock create --no-wheel psutil==5.9.1 -o lock.json

lock.json:
{
  "allow_builds": true,
  "allow_prereleases": false,
  "allow_wheels": false,
  "build_isolation": true,
  "constraints": [],
  "locked_resolves": [
    {
      "locked_requirements": [
        {
          "artifacts": [
            {
              "algorithm": "sha256",
              "hash": "57f1819b5d9e95cdfb0c881a8a5b7d542ed0b7c522d575706a80bedc848c8954",
              "url": "https://files.pythonhosted.org/packages/d6/de/0999ea2562b96d7165812606b18f7169307b60cd378bc29cf3673322c7e9/psutil-5.9.1.tar.gz"
            }
          ],
          "project_name": "psutil",
          "requires_dists": [
            "enum34; python_version <= \"3.4\" and extra == \"test\"",
            "ipaddress; python_version < \"3.0\" and extra == \"test\"",
            "mock; python_version < \"3.0\" and extra == \"test\"",
            "pywin32; sys_platform == \"win32\" and extra == \"test\"",
            "wmi; sys_platform == \"win32\" and extra == \"test\""
          ],
          "requires_python": "!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,>=2.7",
          "version": "5.9.1"
        }
      ],
      "platform_tag": [
        "cp311",
        "cp311",
        "manylinux_2_35_x86_64"
      ]
    }
  ],
  "path_mappings": {},
  "pex_version": "2.1.93",
  "prefer_older_binary": false,
  "requirements": [
    "psutil==5.9.1"
  ],
  "requires_python": [],
  "resolver_version": "pip-legacy-resolver",
  "style": "strict",
  "transitive": true,
  "use_pep517": null
}

Leads to:
$ rm -rf ~/.pex && pex --lock lock.json -o psutil.pex
There was 1 error downloading required artifacts:
1. psutil 5.9.1 from https://files.pythonhosted.org/packages/d6/de/0999ea2562b96d7165812606b18f7169307b60cd378bc29cf3673322c7e9/psutil-5.9.1.tar.gz
    ERROR: Command errored out with exit status 1: /home/jsirois/.pex/venvs/s/0490b204/venv/bin/python3 /home/jsirois/.pex/venvs/s/0490b204/venv/lib/python3.11/site-packages/pip install --ignore-installed --no-user --prefix /home/jsirois/.pex/pip_cache/.tmp/pip-build-env-whexefy7/overlay --no-warn-script-location --no-binary :none: --only-binary :none: --no-index -- 'setuptools>=40.8.0' wheel Check the logs for full command output.

So #1811, which switched Pex to using pip download --no-deps to download lock artifacts, fails for various sdists.

This was spotted over in https://github.com/pantsbuild/pants/issues/15990

Aha, the explanation is here: https://github.com/pypa/pip/issues/1884#issuecomment-941431284
Pip needs to generate metadata to discover Requires-Python. IOW even though we say --no-deps; so Pip does not need Requires-Dist metadata, it does reasonably need Requires-Python in the generic case of downloading a requirement. Granted our requirements in this case are explicit URLs.

But then you'd think this would work with modern Pip that supports --ignore-requires-python:
^jsirois@gill ~/dev/pantsbuild/jsirois-pex (issues/1817 *) $ python -mvenv pip.venv
^jsirois@gill ~/dev/pantsbuild/jsirois-pex (issues/1817 *) $ source pip.venv/bin/activate
(pip.venv) ^jsirois@gill ~/dev/pantsbuild/jsirois-pex (issues/1817 *) $ pip -q install -U pip
(pip.venv) ^jsirois@gill ~/dev/pantsbuild/jsirois-pex (issues/1817 *) $ pip -V
pip 22.1.2 from /home/jsirois/dev/pantsbuild/jsirois-pex/pip.venv/lib/python3.11/site-packages/pip (python 3.11)
(pip.venv) ^jsirois@gill ~/dev/pantsbuild/jsirois-pex (issues/1817 *) $ pip download --no-deps --ignore-requires-python --dest /tmp/pip-download https://files.pythonhosted.org/packages/a0/a4/d63f2d7597e1a4b55aa3b4d6c5b029991d3b824b5bd331af8d4ab1ed687d/PyYAML-5.4.1.tar.gz
Collecting https://files.pythonhosted.org/packages/a0/a4/d63f2d7597e1a4b55aa3b4d6c5b029991d3b824b5bd331af8d4ab1ed687d/PyYAML-5.4.1.tar.gz
  File was already downloaded /tmp/pip-download/PyYAML-5.4.1.tar.gz
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Successfully downloaded PyYAML

Aha, the more on-point explanation is here: https://github.com/pypa/pip/issues/1884#issuecomment-941244968 - basically, legacy code in Pip mooshes download and prepare together and that's hard to untangle easily.


Support extensions autoupdate

When I install a extension that is not released in the marketplace, It can't be auto update and I have to reinstall it.
I wish there was an API for automatic updates like 'updateProvider'

You can use the command workbench.extensions.installExtension and pass the URI of the VSIX to re-install.


Transcript lines lose timestamp

Same page as correctly displayed on my computer R:

If you check Work -> Transcript -> Line in each image, what is the state (e.g. UID, timestamp)?

I haven’t seen this and there is no update so I will close. We can reopen if needed


The ability to not deny DNS requests instead restrict it with empty response

I have a namespace which should only be able to call everything within its namespace, be called from and into (sidecars) istio and has also virtualservice (api.project.in) defined enabling calling an API within another namespace. Resulting in the following cnp.
specs:
- endpointSelector: {}
  ingress:
  - fromEndpoints:
    - {}
- egress:
  - toEndpoints:
    - {}
  endpointSelector: {}
- endpointSelector: {}
  ingress:
  - fromEndpoints:
    - matchLabels:
        k8s:io.kubernetes.pod.namespace: istio-system
- egress:
  - toEndpoints:
    - matchLabels:
        k8s:io.kubernetes.pod.namespace: istio-system
  endpointSelector: {}
- egress:
  - toEndpoints:
    - matchLabels:
        project.com/name: api
        k8s:io.kubernetes.pod.namespace: project
  endpointSelector: {}
- egress:
  - toCIDR:
    - <IP_ADDRESS>/32
    toPorts:
    - ports:
      - port: "53"
        protocol: ANY
      rules:
        dns:
        - matchName: istio-pilot.istio-system.svc.cluster.local
        - matchName: zipkin.istio-system.svc.cluster.local
        - matchPattern: '*.35e787449149ac435252baa5a526aeb5.svc.cluster.local'
        - matchName: 'api.project.in'
  endpointSelector: {}

If the DNS config within the pod template spec left untouched the following will happen.

(this is not consistent, not sure why) sidecar container can't talk to istio-pilot.istio-system because it will begin with istio-pilot.istio-system.35e787449149ac435252baa5a526aeb5.svc.cluster.local. This will be denied and the complete dns query will be dropped instead of going through all dns resolve.conf search domains. So after adding matchPattern: '*.*.35e787449149ac435252baa5a526aeb5.svc.cluster.local' rule this will work.
If I now call api.project.in this will be also be dropped because dns will first try to go through all domains defined in the search option. api.project.in.35e787449149ac435252baa5a526aeb5.svc.cluster.local. This would now require to allow the complete chain until the full fqdn is resolved. If we now want to allow multiple endpoints *.project.in this will resolve into opening up all dns requests. This leaves (as far as I can see it) two options.

setting ndots:2 because we have luckily two dots within our vs endpoints.
or write own dns resolver

Ref. Slack thread https://cilium.slack.com/archives/C1MATJ5U5/p1564106142053800?thread_ts=1563184297.437800&cid=C1MATJ5U5
As mentioned by Ray in slack there is a --tofqdns-dns-reject-response-code option but this has no succeed respond code.
edit have to try if maybe nameError will work.

:tada: --tofqdns-dns-reject-response-code=nameError seems to work so that dns resolve.conf search domain chain is not broken.
Thanks for all the help. :+1:


Updating Sonoff-Tasmota to 6.6.0

Sonoff Tasmota released already on 6th of June a new version (6.6.0), would be great to update the version here as well?

6.6.0 had some issues. If you are going to replace it in the package, go ahead and grab <IP_ADDRESS> at http://thehackbox.org/tasmota/020300/sonoff.bin. And yes, sonoff.bin rather than sonoff-basic.bin. We are recommending to those that do get their device to flash with Tuya-Convert to immediately upgrade to sonoff.bin... so it would just be best to have the package do that directly.

Feel free to make a PR otherwise I think the current situation is fine. It is intended that you flash another bin after the conversion is complete.


Feature Request: Emtpy Optional Vars should be ignored

If I set arguments in the Extra Variables field and they are to be populated by arguments that are optional, if the user has not selected any value they will be empty, and this will likely result in a failure of the playbook to run.
If they are empty they should not be added as extra vars.  Extra vars from ${option.foo} should not be added unless there is a value for option.foo

This is indeed very needed.
For now, I have to work around it with adding another boolean option whichs act as a kind of switch between 2 optional arguments. If true, then a particular argument has to be populated by the user and if false, another argument.
This is not an ideal solution whereas ignoring empty optional vars is !

An empty string value can sometimes be a correct and expected value that can be used at some point in the playbook.
What you are asking for is Rundeck ansible plugin executing some kind of logic to include or not an option in the extra-vars. Your need does not necessarily match other users'.
Furthermore, according to your example if the option is an empty string the job fails. How would it be any different if the variable was not present at all?
Overall it's much easier to have an empty value and ignore it when it's the case.
There is also the option to have a default value as well.

In my case, I've conditional tasks on my playbook like if a variable is defined, run the task but with the actual approach, variable is always defined.
I can revise my conditions to check if the value is empty. However, I also need to check whether the variable is set, as my playbooks can be called without going through rundeck and the sysadmins running them usually don't set the unused variable to empty.
The empty variable overrides the default values set in the inventories. To get around this, as you say, you need to set the same value as default value in the Rundeck option, but if you change it, you need to remember to do this everywhere. After several years and in a large team, not everyone thinks about these kinds of details. (not to mention turn-over)
It would be nice to be able to choose the behavior to adopt in the event of an empty value. After all, I understand that it may not be easy to implement.

I see what you mean, in your case I would use the default filter to set the variable with the default value in the playbook so you can keep the empty value when the playbook is called from Rundeck and keep the undefined variable when called from the cli:
- name: Print var value when not empty string
  debug: "{{ my_var }}"
  when: my_var | default('') != ''

One big challenge to implement the requested behaviour is that options are used for more than just the ansible plugin, so having a checkbox there would not be the most relevant location.
You would need to add an option to the ansible plugin in the extra-vars section. I'm not a contributor to this project so I can't say what it requires to implement this, but it seems like a lot of work for little benefit since checking the var value or using the default filter in the playbook is much easier.

Thank you


chore: add more context to case file

new attempt to see if gh action runs.

@MrSeccubus can you merge? I only have write access to non-web-csirt 🤷🏻♂


Adding "jewel" to list of stable versions (ceph_stable_releases)

This is not needed.  ceph_stable_releases is needed by a couple of check, Jewel should not be part of it.


Interactable links/URLs

Please make so that, even as an optional settings maybe, the program would recognize http(s) URLs as such, and make them be clicked like an hyperlink, so that they'd be opened on the default browser of the machine.
Currently, URLs are considered as simple plain text and are therefore non-interactable.
Selecting the text of the URL, right-clicking and pressing "search in web" provides a similar result as it opens the URL directly on the browser, but with a lot of unnecessary steps.

This is interesting. Notepads is about plain text, hence why the hyperlinks aren't displayed as in other apps like Word, for example. On the other hand, the app uses a customized RichEditBox control, so in theory it should be doable to add support for rich text such as hyperlinks.

I remember RichEdit has such a feature built-in but never got time to test it and make it work. @XamDR Feel free to try it yourself.

I remember RichEdit has such a feature built-in but never got time to test it and make it work. @XamDR Feel free to try it yourself.

I remember RichEdit has such a feature built-in but never got time to test it and make it work. @XamDR Feel free to try it yourself.

Thank you. I will try to implement such feature.

I remember RichEdit has such a feature built-in but never got time to test it and make it work. @XamDR Feel free to try it yourself.

Thank you. I will try to implement such feature.

I finally was able to work on this feature and so far Notepads can display hyperlinks, save hyperlinks in .rtf files and also open .rtf files with hyperlinks. I have some screenshots:

Pasting a hyperlink:

Saving the file with .rtf extension:

File saved successfully:

Opening file using the context menu (since there isn't yet an association to a .rtf extension, I tried that way):

File opened successfully (there is an extra line at the end, but I think that's a solvable issue):

So far the biggest change to the app has been to make it accept the .rtf extension for both saving and opening files. That's the only way I found to display hyperlinks once the user saves the file and then wants to open it later. With plain text, it will display raw rtf, which is not very readable.
By the way, the shortcut Ctrl + clic works to open the hyperlinks, with the only issue that the cursor doesn't change from I-Beam to hand. I suspect that it's an internal rendering issue of the RichEditBox control.

I finally was able to work on this feature and so far Notepads can display hyperlinks, save hyperlinks in .rtf files and also open .rtf files with hyperlinks. I have some screenshots:

Pasting a hyperlink:

Saving the file with .rtf extension:

File saved successfully:

Opening file using the context menu (since there isn't yet an association to a .rtf extension, I tried that way):

File opened successfully (there is an extra line at the end, but I think that's a solvable issue):

So far the biggest change to the app has been to make it accept the .rtf extension for both saving and opening files. That's the only way I found to display hyperlinks once the user saves the file and then wants to open it later. With plain text, it will display raw rtf, which is not very readable.
By the way, the shortcut Ctrl + clic works to open the hyperlinks, with the only issue that the cursor doesn't change from I-Beam to hand. I suspect that it's an internal rendering issue of the RichEditBox control.

Cool progess so far! But would that mean the only way to interact with links would be to save files in .rtf?
It would be nice if it were filetype independent. Like Notepad++, Atom, VS Code, etc.
All of those recognize URLs even in .txt files and have a double click or a Ctrl+Click to open links (but are also focused on programming and often have a spartan design, instead of being plain text focused and clean looking like a Fluent UI).

Cool progess so far! But would that mean the only way to interact with links would be to save files in .rtf?
It would be nice if it were filetype independent. Like Notepad++, Atom, VS Code, etc.
All of those recognize URLs even in .txt files and have a double click or a Ctrl+Click to open links (but are also focused on programming and often have a spartan design, instead of being plain text focused and clean looking like a Fluent UI).

Cool progess so far! But would that mean the only way to interact with links will be to save files in .rtf?
It would be nice if it were filetype independent. Like Notepad++, Atom, VS Code, etc.
All of those recognize URLs even in .txt files and have a double click or a Ctrl+Click to open links (but are also focused on programming and often have a spartan design, instead of being plain text focused and clean looking like a Fluent UI).

First, thanks for your feedback. About the interaction with hyperlinks, yes that's something that I have in mind. I think it's something feasible, but it will definitely take more time to implement it.

Cool progess so far! But would that mean the only way to interact with links will be to save files in .rtf?
It would be nice if it were filetype independent. Like Notepad++, Atom, VS Code, etc.
All of those recognize URLs even in .txt files and have a double click or a Ctrl+Click to open links (but are also focused on programming and often have a spartan design, instead of being plain text focused and clean looking like a Fluent UI).

First, thanks for your feedback. About the interaction with hyperlinks, yes that's something that I have in mind. I think it's something feasible, but it will definitely take more time to implement it.

@XamDR @JasonStein I wonder if this is still in the todo list?

Any updates?

Bumping the thread, as I would love to see this implemented as well. This has fast become my Notepad++ replacement, and this is the only 'feature' that I sorely miss.


Issue with installing from github

I encountered two errors while trying to run the setup.py script as indicated in the documentation, it seems like two python2.7 print statements were in the code:
https://github.com/puolival/multipy/blob/eaf84869858373bb56f73b08c04607ea8101a30b/multipy/two_group_reproducibility.py#L223
https://github.com/puolival/multipy/blob/eaf84869858373bb56f73b08c04607ea8101a30b/multipy/viz.py#L342
Installed successfully after changing them to python3 print statements. Let you know if I encounter any problems using the library.

Thanks for pointing this out! There was actually already one issue about the print commands, and I thought I had fixed this everywhere. I'll change the code asap so Python 3 is supported as well.

Now fixed.

Thanks!
On Mon, Mar 16, 2020 at 9:22 AM Tuomas Puoliväli<EMAIL_ADDRESS>wrote:

Now fixed.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/puolival/multipy/issues/5#issuecomment-599403282, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AFTAUBPLOAYV4CVLMYBIVTDRHXOT3ANCNFSM4LLMY6TQ
.

--
Anton N. Waniek
M.Sc. *Data Science for Decision Making *– Student
Department of Data Science and Knowledge Engineering
Maastricht University
*T: *+31 (0)6 15 68 2503
*E<EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS>


Feat/teams

This puts the team creation form submit scripts in the Vue component, fyi. The session.userId is working in the template with a couple of adjustments in config/express.

@tbushman you need to run yarn install to update the lock file.


Snakecase naming convention plugin

EF Core 3.0 is adding public conventions support, including plugins. This means we can have an external plugin which applies snake case naming, which is the standard PostgreSQL naming.
Note: this wouldn't be a PostgreSQL-specific plugin.
/cc @divega @ajcvickers @AndriySvyryd

is there a link to the documentation/pr/issue on efcore that i can look at for this?

@AndriySvyryd is anything written up on this already? Also can you confirm that conventions can be added in a standard way from plugins, e.g. to change table and column naming as proposed here?

In 3.0 public conventions mean that the providers can have conventions using only public API, user-defined conventions are still not fully supported, tracked in https://github.com/aspnet/EntityFrameworkCore/issues/214

But there's an extension point for plugins - IConventionSetPlugin, currently used by the Proxies package - ProxiesConventionSetPlugin. This way still requires messing with the service provider.

Great! Thanks for the help @AndriySvyryd, this sounds like it should make a naming plugin possible.
@williamdenton do you intend to work on this? If so I'll hold off looking at it. Note that Npgsql itself already includes a NpgsqlSnakeCaseNameTranslator which could be repurposed for this plugin.

I have a working solution at the moment for snake case (as mentioned in the linked issue above). I dont have time at the moment to dig into this.
I am preparing an example project and blog of using AWS RDS using efcore and npgsql with the providePassword work I've already done. And would like to include snake_case naming in there, and if it exists in an offical capacity that would be great.

I definitely hope to look into this for 3.0 but if anyone else has some time to do it that would help. If I don't hear from anyone I'll take a look.

@AndriySvyryd, how can I set the entity type name when I have a IConventionEntityType?

This is done: https://github.com/efcore/EFCore.NamingConventions


Knock with ActionCable

I wish connect authenticated user with ActionCable, my implementation is below, I have doubts about if is the best approach:
module ApplicationCable
  class Connection < ActionCable::Connection::Base # :nodoc:
    identified_by :current_user

    def connect
      self.current_user = find_verified_user
    end

    protected

    def find_verified_user
      token = Knock::AuthToken.new token: request.params[:token]

      verified_user = User.find_by id: token.payload['sub']
      return verified_user if verified_user

      reject_unauthorized_connection
    end
  end
end

If have any tip I will appreciate 👍

I'm doing something very similar, except I'm passing the Authorization: Bearer <token> header instead of passing the token in the parameters.
It would be nice if Knock had an api method that could be used this way :
user = Knock.current_user request

that way all the complexity would be completely hidden away for the developer, and there would be full code reuse.

Only need send with the URL the token.

@brunowego Did you still use this method? I am looking into doing the same.

@JerryArns yep, for me works pretty well.

it doesnt work as token is just a string and token.payload['sub'] returns undefined method payload

I am using Ember at frontend, I have tested Angular before, both works.
Example of request:
Started GET "/cable?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE0OTczNTQ2OTksInN1YiI6ImE2OWFkMDAzLTdlMjYtNDg0ZC04NGYxLWFiNDFkZmY0ZDQxNiJ9.ilAecBjtEjI_1hgva_GEd9vbhOX74QwbgOhtXgQL-f4" for <IP_ADDRESS> at 2017-06-12 08:51:47 -0300


Add OS-specific Docker installation

Previously for Ubuntu and Debian, we were using the Ubuntu docker repo. We have fixed the repo issue.

Review Completed
@prasad-takale-eminds please merge the PR as @vbabuEM has already approved it


Compute server connection not closed properly after "ctrl+c"

Interrupting a julia program with "ctrl+c", that has an open connection to a Gurobi compute server results in an still open connection.
If a "normal" error occurs and the julia program is interrupted there is no such problem.
Maybe somewhere an InterruptException should be handled. :)

See also: https://github.com/JuliaOpt/Gurobi.jl/issues/52
Handling CTRL+C at all would be an improvement, regardless of the compute server.

Closing as duplicate of #52


Copy over code from old creek-platform-metadata repo

Reviewer checklist

[ ] Ensure relevant issues are linked (description should include text like "Fixes #")
[ ] Ensure any appropriate documentation has been added or amended

Coverage remained the same at 100.0% when pulling 8ee5b0a7d3942d47eec5771c34953d6ffa43ae8d on copy into cb2e8a523150d21b510f66de8429f21a125e62e1 on main.


insim: relay websocket support

I'm chalking this down for initial release as I really want to validate that it's possible to support further underlying IO transports, without needing a huge breaking change.
The initial release is aimed to be the path to stabilisation.
Whilst I've technically proven this with UDP and TCP support, and Mock IO support, I'd really like something that fundamentally works differently to make sure that there's not something lurking that I've not thought of.

Have raised #81.
LFS World websocket relay seems to be dead, or tungstenite is incompatible. I haven't investigated very far, based on https://www.lfs.net/forum/post/2042576#post2042576.
In principle it works, which is primarily what I wanted to see (i.e. can we make an arbitrary ClientTransport - the answer is yes!).

LFS World websocket relay seems to be dead, or tungstenite is incompatible. I haven't investigated very far, based on https://www.lfs.net/forum/post/2042576#post2042576.

The websocket LFS relay service has been back up again for a couple of weeks, so you can test it.

Thanks for the heads up Martin <3 I shall have to find some time to play over the weekend :D

Implemented under #95.
Turns out LFSW Relay requires the Origin header. Which Tungstenite (and most non-web browser libraries seem to not set).


Feature/fix template path

Also merge in a fix on the template paths

it is needed rebase this PR and make some tests. How this PR has not activity since 2013 I will close it.
But if someone make test and rebase it, is just resend this PR that I will review it.


PackageId:CPython39.Exe.x64;PackageAction:DownloadPackage;ReturnCode:0x800704dd;

This issue has been moved from a ticket on Developer Community.

[severity:I'm unable to use this version] [regression]
Describe your issue here
===DO NOT EDIT BELOW THIS LINE===
PackageId:CPython39.Exe.x64;PackageAction:DownloadPackage;ReturnCode:0x800704dd;

Original Comments
Feedback Bot on 11/21/2022, 10:42 PM:
(private comment, text removed)

Original Solutions
(no solutions)

Going to close this out. If the issue still persists, please reopen with the information requested. Thanks.😊


Add Support for Corsair Lighting Node CORE

Make it possible to create a Corsair Lighting Node CORE with this library.
Needed information:

[ ] USB PID
[ ] USB Product Name
[ ] Supported commands

I found the ids, there are documented in the wiki.

What would the pinouts be for the node core? There are 6 ports vs the pro's 2 which would be very useful for multiple fans.
Oh and thanks for the great work.

If you know the type of fans used, you can program the arduino to expose the 6 different pins for each fan, but else the Node CORE has one channel with one pin and you have to create a circuit that chains the fans. The chaining of fans must pass the output data signal of the previous to the next fan.


TailwindCSS Typography

Added @tailwindcss/typography plugin to render markdown content only.

Most of the features look good except the code blocks, for that I think we have to add another color for code background.

@pourmand1376, can you confirm if all the markdown features are working correctly.

Thank you for taking the time to check all the markdown syntax. Also thank you for the suggestions, here are my replies:

Yes, h1 is too big but h1 is supposed to be used as the page header (like blog titles, etc) using it in the content may not be the proper use of it. And about h5 and h6 being the same, the explanation is given here https://github.com/tailwindlabs/tailwindcss-typography/blob/master/demo/components/MarkdownSample.mdx#we-havent-used-an-h4-yet, basically it says to give proper distinction we would have to reduce the size of these tags lower than the body text (which isn't ideal).
I previously made the decision of not using background color for inline codes, since it wasn't looking that great and had to add padding which messed with the line heights.
Regarding definition lists there is a open issue in their repository, https://github.com/tailwindlabs/tailwindcss-typography/issues/146 . We would have to investigate how to implement it (would be better if we could create an PR upstream).
This, I think have to be implemented separately.
It is more of a personal preference.
https://gohugo.io/content-management/shortcodes/#use-hugos-built-in-shortcodes, Hugo probably doesn't have any emoji shortcode, in that case have to added separately (will look into that later).
This is interesting, have to investigate weather it will be possible to implement natively with low JavaScript.

Many of these could depend on the personal choice of the users. I suggest to add another scss file for custom css which can be configured by the user as he/she wants.

Hey @pourmand1376, I went ahead and fixed the h1 margin problems, task list margin problems, also added font weight to h5.
Could not do anything to h6, since that will cause it to look smaller than normal text.
Added a custom scss file for users to add their own custom styles so that there is no conflicts during updating.
Sorry, I think I misunderstood the emoji short code problem. This was a configuration problem, I enabled it.

Thanks for the changes and explanation. I respect your personal preferences. In fact, I think they are very good. Now, It looks a lot better.
Just two minor recommendations:

The code block doesn't have a good background. At least, it should be consistent across two code blocks.

We should somehow remove this backtick. This "nano" should be rendered as nano (without backtick).

I have removed the backticks from inline code blocks. Also made sure the code blocks are hilighted even if no language was provided (will fallback as .txt). Since the previous hilight theme (monokai) wasn't looking good I replaced it with Dracula which can be easily configured from config.


Panic after upgrade to 1.0-beta

After upgrade to test 1.0-beta I got this panic:
time=2019-04-01T15:13:28.954478674Z app=trickster caller=trickster/main.go:54 level=info event="application start up" name=trickster version=1.0.0
time=2019-04-01T15:13:28.954590951Z app=trickster caller=cache/memory/memory.go:40 level=info event="memorycache setup"
time=2019-04-01T15:13:28.954636574Z app=trickster caller=routing/registration/registration.go:44 level=info event="Registering Prometheus Route Paths" originName=default upstreamHost=localhost:10902
time=2019-04-01T15:13:28.954685424Z app=trickster caller=util/metrics/metrics.go:184 level=info event="metrics http endpoint starting" address= port=8082
time=2019-04-01T15:13:28.954790933Z app=trickster caller=trickster/main.go:61 level=info event="proxy http endpoint starting" address= port=9090
panic: runtime error: index out of range

goroutine 106 [running]:
github.com/Comcast/trickster/internal/proxy.FetchViaObjectProxyCache(0xc0001261c0, 0xae9360, 0xc000134b60, 0xae4fe0, 0xc000142690, 0xf, 0xae0100, 0x0, 0x0, 0x0, ...)
	/go/src/github.com/Comcast/trickster/internal/proxy/objectproxycache.go:37 +0xad3
github.com/Comcast/trickster/internal/proxy.DeltaProxyCacheRequest.func2(0xc0003ef260, 0xc000458070, 0xc00011a280, 0xae9360, 0xc000134b60, 0xae4fe0, 0xc000142690, 0xc0003e9b50, 0xc00010a270, 0xc0001074d0)
	/go/src/github.com/Comcast/trickster/internal/proxy/deltaproxycache.go:175 +0x106
created by github.com/Comcast/trickster/internal/proxy.DeltaProxyCacheRequest
	/go/src/github.com/Comcast/trickster/internal/proxy/deltaproxycache.go:171 +0x139c

Using: tricksterio/trickster:1.0-beta
prometheus: thanos-querier 0.3.2
Tested with default config changing only host of the prometheus.
Previous versions of trickster worked fine
Some queries seems to work and others ends on this panic. I can't see a pattern here

@ese It looks like it is panicking while trying to handle Authorization headers. So just to check: are you using auth with your Prometheus, and if so, how is that setup (e.g., Basic auth, etc)?  I can setup a similar test harness to reproduce the condition.

@ese I've made some adjustments and pushed an updated tricksterio/trickster:1.0-beta docker image to address this condition. You'll need to re-pull that image, or use tricksterio/trickster:1.0-beta2. Thanks for trying out the beta and reporting an issue. Hopefully this resolves it!

That new release fix the problem. Thanks!


beside not working correctly with above

The following code has alignment issues:
(import image)

(define c1 (rectangle 100 25 "solid" "red"))
(define c2 (above c1 (rectangle 100 25 "solid" "orange")))
(define c3 (above c2 (rectangle 100 25 "solid" "yellow")))
(define c4 (above c3 (rectangle 100 25 "solid" "green")))
(define c5 (above c4 (rectangle 100 25 "solid" "blue")))
(define c6 (above c5 (rectangle 100 25 "solid" "violet")))

c2
c3
(beside c2 c3)
c1
c2
(beside c1 c2)

Fixed! Alignment of layout primitives was being done incorrectly in shapes rather than in the layout primitives themselves.


[MB-2698] Create EDI Header

Description
This PR adds the header lines to the header segment for an EDI
Reviewer Notes
This ticket should be reviewed and merged after the CLI story, https://github.com/transcom/mymove/compare/hm-mb-3647.
Setup
This PR can be tested by first creating a payment request with the DLH service item and then running the following command, replacing payment-request-number with the actual value for the payment request.
You can create a DLH payment request with the following payload and save to a file called create_payment_request.json
{
  "body": {
    "isFinal": false,
    "moveTaskOrderID": "9c7b255c-2981-4bf8-839f-61c7458e2b4d",
    "serviceItems": [
      {
        "id": "fd6741a5-a92c-44d5-8303-1d7f5e60afbf"
      },
    ]
  }
}

You can create the payment request for this payload with the prime client api. The command below will create the payment request and then output the payment request number
prime-api-client --insecure create-payment-request --filename  create_payment_request.json| jq '.paymentRequestNumber'

You can then use the payment request number and the generate EDI cli to output an edi file for the payment request
go run ./cmd/generate-payment-request-edi/ --payment-request-number [$paymentRequestNumber]

Sample Expected Output
ISA*00*0084182369*00*_   _*ZZ*GOVDPIBS*12*8004171844*20200911*1523*U*00401*100001272*0*T*|
GS*SI*MYMOVE*8004171844*20200911*1523*100001251*X*004010
ST*858*0001
BX*00*J*PP*4659-6176*TRUS**4
N9*CN*4659-6176-1**
N9*CT*TRUSS_TEST**
N9*1W*Leo, Spacemen**
N9*ML*E_1**
N9*3L*ARMY**
G62*86*2020-09-11*0*
N1*ST**10*CNNQ
N3*Fort Gordon*
N4*Augusta*GA*30813*United States**
N1*SF*dbzwwCCg6o*10*LKNQ
N3*987 Other Avenue*P.O. Box 1234
N4*Des Moines*IA*50309*US**
HL*1**|
N9*PO*38a8822e-2bd9-464a-ac81-df83ccf5341d**
L0*1*373.000*DM*1349.000*B******L
SE*18*0001
GE*1*100001251
IEA*1*100001272

Code Review Verification Steps

[ ] Code follows the guidelines for Logging
[ ] The requirements listed in
Querying the Database Safely
have been satisfied.
Any new migrations/schema changes:

[ ] Follow our guidelines for zero-downtime deploys (see Zero-Downtime Deploys)
[ ] Have been communicated to #g-database
[ ] Secure migrations have been tested following the instructions in our docs

[ ] There are no aXe warnings for UI.
[ ] This works in Supported Browsers and their phone views (Chrome, Firefox, IE, Edge).
[ ] Tested in the Experimental environment (for changes to containers, app startup, or connection to data stores)
[ ] User facing changes have been reviewed by design.
[ ] Request review from a member of a different team.
[ ] Have the Jira acceptance criteria been met for this change?

References

Jira story for this change
this article explains more about the approach used.

Fails

:no_entry_sign:
Yarn Audit Issues Found:
high - Remote Memory Exposure
Package bl
Patched in >=1.2.3 <2.0.0 || >=2.2.1 <3.0.0 || >=3.0.1 <4.0.0 || >=4.0.3
Dependency of @trussworks/react-uswds
Path @trussworks/react-uswds > happo-plugin-storybook > archiver > tar-stream > bl
More info https://npmjs.com/advisories/1555
1 high vulnerabilities and 0 critical vulnerabilities found

Messages

:book:
:link: MB-2698

  Generated by :no_entry_sign: dangerJS against 3211da42165fdcad19c091cd603a6e9dd698d746

@reggieriser This PR is closed since it's been absorbed into the CLI  PR https://github.com/transcom/mymove/pull/4776. I made the updates suggested here and added them to that PR


Adding testing to run.sh.

./run.sh tests should now run Python tests in client/python/

As discussed, this is in tests/run.sh, but there are some other worthwhile enhancements to it, like running R unit tests.


Space after colon

I wonder if theres some way to add something like "space_after_colon": true, to CSS, JS and JSON and maybe style HTML attribute, just like space_in_paren works
CSS BEFORE:
.row {
    width:200px
}

CSS AFTER:
.row {
    width: 200px
}

JSON/JS BEFORE:
let obj = {
    settings:{
         width:100,
         height:300
    }
}

JSON/JS AFTER:
let obj = {
    settings: {
         width: 100,
         height: 300
    }
}

Suggestion (if "wrap_attribtes": "force-aligned")
HTML Style attr BEFORE:

Hello

HTML Style attr AFTER:

    Hello

Operating System (+Version):  Windows 10
VS Code Version:  1.30
beautify Version:  1.4.7

The support for options would need to be provided in https://github.com/beautify-web/js-beautify
This extension wraps that project into a VS Code extension.

Other than the style attribute version, the space gets inserted always, so there would only be a need for this if you wanted it not to happen this way.


SyntaxError: Unexpected token 'export'

I am using next js. According to you docs, I am trying to implement on nextjs project but got the error.

Closing as a duplicate of https://github.com/Doist/typist/issues/83


Instruct Jenkins to collect coverage data from integration tests

first we need to compile the binaries to collect this data
then when executing them specify where results will be written
when done report to codecov.io

add to whitelist

Looks like collecting coverage from integration tests (e.g. a stand alone running binary) is rather impossible, see https://www.cyphar.com/blog/post/20170412-golang-integration-coverage due to lack of proper tooling in the language.
I'm closing this PR as it will require too much effort which isn't worth it.


have you looked at KaTeX for math typesetting

https://github.com/KaTeX/KaTeX
https://katex.org

Kind of :smile: Do you have an idea how to integrate it with Julia?

Do you have an idea how to integrate it with Julia?

sorry, i can't help on that. I haven't started learning Julia yet.

Thanks for opening an issue @qlcom !
@Wikunia ,there does seem to be some work being done to bring KaTeX into Julia as evidenced here: https://github.com/piever/KaTeX.jl
@qlcom - what benefit do you see using KaTeX instead of our current LaTeX solution? Just curious here as though I am familiar with KaTeX, I just don't know why we might want to replace LaTeX.

I just don't know why we might want to replace LaTeX

KaTex renders TeX expression. TeX functions supported by KaTeX - https://katex.org/docs/supported.html

Good point, we'll look into it at some time! Thanks again @qlcom :smile:


Module MVP

Can be installed into a project and used manually to resolve and install dPacks
Basic hooks script passed to node --require ...
See customization-hooks for docs about this flag
Node execution hooks intercepted by the file passed to --require, e.g. node --require register.js index.js

register.js registers the core dpm.js resolver code
index.js is your custom code containing DMIs

dpm.js does the resolving and installing of dPacks

Tasks

[x] register.ts does the initial registration of the hook for use with --require
[x] dpm.ts

[x] uses code from web-features.ts
[x] intercepts and resolves DMI, resolves DID, gets DWN endpoints, fetches dPack and installs it locally

[x] index.ts exports dpm.ts
[x] publish dpm to npmjs and to dwn as a dPack record

Can be installed into a project and used manually to resolve and install dPacks

Basic hooks script passed to node --require ...

See customization-hooks for docs about this flag

Node execution hooks intercepted by the file passed to --require, e.g. node --require register.js index.js

register.js registers the core dpm.js resolver code
index.js is your custom code containing DMIs

dpm.js does the resolving and installing of dPacks

Tasks

[x]  register.ts does the initial registration of the hook for use with --require

[x]  dpm.ts

[x]  uses code from web-features.ts
[x]  intercepts and resolves DMI, resolves DID, gets DWN endpoints, fetches dPack and installs it locally

[x]  index.ts exports dpm.ts

[x]  publish dpm to npmjs and to dwn as a dPack record

For revised direction, see comments on #2. Closing issue with today's publish to npmjs.com


Remove fake verifying log client

No more fakes!

Codecov Report

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

@@           Coverage Diff           @@
##           master     #936   +/-   ##
=======================================
  Coverage   51.61%   51.61%
=======================================
  Files          34       34
  Lines        2509     2509
=======================================
  Hits         1295     1295
  Misses        978      978
  Partials      236      236

Continue to review full report at Codecov.

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

Merged by #937


[Cache] New Component

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

Comparison is base (e645565) 65.85% compared to head (de79de0) 65.85%.

Additional details and impacted files
@@            Coverage Diff            @@
##               main     #112   +/-   ##
=========================================
  Coverage     65.85%   65.85%
  Complexity      886      886
=========================================
  Files           145      145
  Lines          2308     2308
=========================================
  Hits           1520     1520
  Misses          788      788

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


Python Interactive Window Disappears When Clicking Editor  after latest insider update

See https://github.com/microsoft/vscode/issues/86246
I don't think this is python extension's problem, since it turned to be like what is above after it updated to latest version

Thanks for reporting this issue.
Please could you take the time to fill in the issue template.
There's a lot of crucial information thats missing, versions, OS, etc.

FYI - I'm unable to replicate this issue with the latest version of the extension and latest version of VS Code on my Mac.

FYI - I'm unable to replicate this issue with the latest version of the extension and latest version of VS Code on my Mac.

That happened to my company's computer. But on my personal computer, it's OK. Can I reset default setting to fix that problem? And how to reset default setting in VSCode?

OS: Win10 1903
insider version: 1.41 12-04 updated
I am not in my office right now, so I cannot tell the detailed info of that version

@DonJayamanne This issuse can be closed now. It is normal now, after new updates.


Minor code cleanup

Hello there!
Considering using split in a project and forked the project to get a better feel for its implementation. I've made a few minor code cleanup / idiomatic coding changes. Feel free to merge them in or ignore as you see fit.
Thanks!
Ryan

Thanks very much Ryan

No problem!
On Sun, Oct 9, 2011 at 1:52 PM, Andrew Nesbitt <
<EMAIL_ADDRESS>
Thanks very much Ryan
--
Reply to this email directly or view it on GitHub:
https://github.com/andrew/split/pull/22#issuecomment-2340925


Fix EC2 job workflow

We just need to change the IP address in Github Secrets to the new one. I will send you the information in slack.


[Bug] Problem propagating float values

Reported by pgrigorenko on 2011-01-19 12:41 UTC
If a float value is propagated to a scheme, its string value becomes double causing compile error "Type mismatch: cannot convert from double to float". To fix this, trailing "f" should be added.

Commented by pgrigorenko on 2011-01-19 12:43 UTC
Fixed in 9140625e201cd0bf12963f937f7d0bb27ebd1b33

Updated by pgrigorenko on 2011-01-19 12:43 UTC

status: open --> closed-fixed


Non-shareable fields coming from pagination

Describe the bug
I get the following errors when trying to create a federation graph:
Non-shareable field "PageInfo.hasNextPage" is resolved from multiple subgraphs: it is resolved from subgraphs "orders" and "shipments" and defined as non-shareable in all of them
Non-shareable field "PageInfo.hasPreviousPage" is resolved from multiple subgraphs: it is resolved from subgraphs "orders" and "shipments" and defined as non-shareable in all of them
Non-shareable field "PageInfo.startCursor" is resolved from multiple subgraphs: it is resolved from subgraphs "orders" and "shipments" and defined as non-shareable in all of them
Non-shareable field "PageInfo.endCursor" is resolved from multiple subgraphs: it is resolved from subgraphs "orders" and "shipments" and defined as non-shareable in all of them

Is there any way to add the directive to this type?
Have you read the Contributing Guidelines?
yes
Expected behavior
PageInfo type should have the @shareable directive

I have no experience with federation graphs, is this something you could checkout?

TriPSs any updates on that one ?

#132

Since #132 is now merged/released I'm going to close this ticket.


[AIRFLOW-721] Descendant process can have disappeared before termination

There is a race condition in helpers.py's kill_descendant_processes
that checks for running processes and then tries to terminate them.
This is not done atomically allowing for a small window where a PID
can disappear before termination.
Testing Done:

Unittests should now pass again

@saguziel @aoen , please verify and see also my comment on https://github.com/apache/incubator-airflow/commit/23068924c09d6cebb0af6151b1950197ac16e67b

Current coverage is 66.64% (diff: 36.36%)

Merging #1963 into master will decrease coverage by 0.01%

@@             master      #1963   diff @@
==========================================
  Files           135        135
  Lines         10211      10218     +7
  Methods           0          0
  Messages          0          0
  Branches          0          0
==========================================
+ Hits           6807       6810     +3
- Misses         3404       3408     +4
  Partials          0          0

Powered by Codecov. Last update d3abe2c...9ff2cd2

@alexvanboxel would you mind reviewing this plz? It should solve the issues we are seeing with Travis

Ah, that's why you get green PR. I'll schedule a review this evening.

Aside from my remark it looks good

Nice catch, and thanks for the fix @bolkedebruin !


Oracle - Schema Browser

When I connect an Oracle database, I can't see the database explorer properly. This is because my read-only user needs to switch the schema browser of another user. Is it possible to fill the database explorer using a parameter from settings.json?
For example... I access my oracle read-only user, but I would like to see the schema browser (tables, views) from "services" user:
Setting.json:
"sqltools.connections": [
{
"dialect": "OracleDB",
"name": "My Oracle DB",
"server": "<IP_ADDRESS>",
"port": 1521,
"database": "DEV",
"username": "read_only_user",
"password": "read_only_user",
"schemaBrowser": "services"
}
]
And the "database explorer" on vscode, would be filled by the query below, using OWNER described on settings.json:
SELECT owner, table_name FROM all_tables
WHERE owner = 'SERVICES';
Is it possible?
Thanks

Closing. Will be tracked in #322


Address shortcomings of IFluidLoadable & IFluidHandle

IFluidLoadable.uri should be removed. Most of the code sets it incorrectly anyway - IFluidLoadable.handle.absolutePath is correct value to use.
That said, IFluidHandle.absolutePath should be deprecated as well. Handles & handle serialization / deserialization should be internal knowledge, never exposed outside of container.
We should look into removing second argument (path) from FluidObjectHandle.constructor, or making it optional, It should be empty in most cases. In most cases where we are building custom routes, the right way is to construct network of IFluidHandleContext objects properly. In other words, how to get to this object (represented by handle) is not responsibility of handle owner, this knowledge exists up the stack and communicated via passing right IFluidHandleContext instance.

assign Si

Issues originally tracked here are already addressed. I've opened dedicated issue https://github.com/microsoft/FluidFramework/issues/4165 for consolidating IFluidLoadable & IProvideFluidHandle


Mutate and append to value support

It would be nice if one could:
* Append to an existing value atomically
* Mutator operation on the value, like +/-n

Thanks!

Original issue reported on code.google.com by<EMAIL_ADDRESS>on 10 Jan 2012 at 9:33

Noted.  This has come up before, but we haven't decided on whether
or not to do it.   You have two options without direct leveldb support:

(1) Do a read-modify-write operation to update (can be expensive
and you will have to implement some concurrency control to lock
out other writers to the same key during this oepration).

(2) Arrange your schema in such a way that every logical key
maps to a set of neighboring leveldb keys (e.g.,
logical_key#seq_number).  Then updates can be done by just
creating a new key and writing the delta under that key.
And reads can be done by adding a wrapper that merges
together values that fall under the same logical key.

Original comment by<EMAIL_ADDRESS>on 18 Jan 2012 at 6:06

i am interesting of the secondary suggestion, maybe we need to introduce a
chain like store unit in the DB

Original comment by jyf1987 on 11 Sep 2012 at 8:09

Thanks, I already use your first suggestion, as I need to read the old value to
check that the new is a valid state change anyway.

Original comment by<EMAIL_ADDRESS>on 3 Feb 2012 at 3:58

For option (2), how would you recommend allocating sequence numbers?

- Could have sequence number in memory in process reading/writing to db but
awkward to recover sequence number if process crashes (would have to iterate
over all keys and use max_sequence_number + 1).

- Could store sequence number in db but would then have to use option (1) above
in order to read-modify-write to allocate a new sequence number.

- Could use a time-based sequence number but seems dangerous to trust clock
after crash/restart.

- Could use an external service to allocate sequence numbers but that seems
like kicking the can down the road.

What do you think?

Original comment by<EMAIL_ADDRESS>on 29 Mar 2014 at 8:07


failed to attach BPF perf event: invalid argument

Hello,
I am trying to write a profile.py in go, python version works properly, but there is a problem when attaching to perf event.  I just cannot see which argument is invalid.
Thanks for any comments.
---------------------------------------------------  run it
root@dr1:~/goprofile# go run profile.go
Loaded do_perf_event
ioctl(PERF_EVENT_IOC_SET_BPF) failed: Invalid argument
---------------AttachPerfEvent() type=1, cfg=0 samplePeriod=0 sampleFreq=99
Failed to attach perf event: "failed to attach BPF perf event: invalid argument"
full code here: https://github.com/weixingsun/perf_tuning_results/blob/master/jvm/gojvmti/profile.go
---------------------------------------------------  snippet
code := strings.Replace(source, "PID", spid, 1)
m := bpf.NewModule(code, []string{})
defer m.Close()
kprobe, err := m.LoadKprobe("do_perf_event")
if err != nil {
fmt.Fprintf(os.Stderr, "Failed to load do_perf_event: %s\n", err)
os.Exit(1)
}else{
fmt.Fprintf(os.Stdout, "Loaded do_perf_event\n") //this works
}
TYPE :=1    //PERF_TYPE_HARDWARE=0,PERF_TYPE_SOFTWARE=1
COUNTER:=0  //PERF_COUNT_HW_CPU_CYCLES=0
PERIOD:=0
FREQ:=99
//AttachPerfEvent(evType, evConfig int, samplePeriod int, sampleFreq int, pid, cpu, groupFd, fd int) error
err = m.AttachPerfEvent(TYPE, COUNTER, PERIOD, FREQ, pid, -1, -1, kprobe)
//

I am not sure if it is the issue, but in your code COUNTER:=0.
I think it should be PERF_COUNT_SW_BPF_OUTPUT instead.
According to /usr/include/linux/perf_event.h, PERF_COUNT_SW_BPF_OUTPUT=10.
Also, I wonder about cpu:=1: do you want only to trace the second CPU, or should it be cpu:=-1 to trace all cpus?

@alban thanks for your comments, I did binded this pid to cpu1,
after change COUNTER:=10, it complains as below, is this meaning type1 conflict cfg 10?
Unable to open or attach perf event for BPF_OUTPUT
Invalid perf event type 1 config 10
-----------------------AttachPerfEvent() type=1, cfg=10 samplePeriod=0 sampleFreq=99
-----------------------failed to attach BPF perf event:

in libbpf.c the 2 params return invalid from invalid_perf_config() , so  type 1 config 10 is conflict.
I guess type=1, config=0 according to the python version: profile.py
so that the question back to: ioctl(PERF_EVENT_IOC_SET_BPF) failed: Invalid argument
how to diagnose it? thanks

I fixed this error by change my kprobe to perf_event, looks like it called the right type lib.load_func and then lib.bpf_attach_perf_event returns properly now, thanks


Added Cocoa Pods LICENSE

@pedrofranceschi
Please add the tag 1.1.0 to this commit, then the extension will be available at http://cocoapods.org.

Done.


binfmt: Rename dump_module to binfmt_dumpmodule

Summary
follow other binfmt function naming convention
Impact
Minor, rename the internal function
Testing
Pass CI

LGTM


TOML schemas

When editing an archival site in VSCode or another editor that supports TOML Schemas, it would be nice if you got validation on your objects and the archival types.
The archival repo would publish schemas for:

manifest.toml
objects.toml

Then, during build/rebuild, archival should emit toml schemas for each object definition in objects.toml.

TOML schemas are not widely supported, however, Even Better TOML (and many/most other editors) support toml schemas via JSON schemas. These are in turn supported by taplo.
We should be able to use the inheritance order as per https://taplo.tamasfe.dev/configuration/using-schemas.html#using-schemas to provide autocomplete in most editors.

It probably makes the most sense to provide these schemas via a VSCode extension for archival


Adds optional EFS performance mode to EFS module

What is this PR trying to achieve?
Adds optional EFS performance mode to EFS module in order to utilise faster performance on EFS where necessary.
Who is this change for?
💻

Part of https://github.com/wellcometrust/platform-api/issues/537


Please add guide about Pick one or multi file on Storage, SD Card!

Please add guide about Pick one or multi file on Storage, SD Card!
Thank you!

Chi tiết tài liệu
⚠ Không chỉnh sửa phần này. Điều này là bắt buộc cho docs.microsoft.com ➟ Vấn đề khi liên kết GitHub.

ID: 22cd76be-2702-6a58-498c-a84c723d9588
Version Independent ID: 9f98549e-ff3d-5b8d-67e6-523834c4dd6d
Content: Picking a Photo from the Picture Library - Xamarin
Content Source: docs/xamarin-forms/app-fundamentals/dependency-service/photo-picker.md
Service: unspecified
Product: xamarin
GitHub Login: @davidbritch
Microsoft Alias: dabritch

Hi @nguyenthanhliemfc - those are Android-specific concepts that wouldn't really apply to iOS, for example. Using the information in the Dependency Service and Custom Renderer docs, you should be able to build a UI that provides those options only on supported platforms (such as Android). We will consider adding some more information about this in the future.
Thanks for your feedback.

Or could you please add docs How to pick Multi photos from Gallery. Thank you!


Oculus Integration tool no longer modifies Device Manager Profile

Overview
Followup of the work done here #8861 to streamline using Oculus with MRTK
related to #8849

/azp run

/azp run

/azp run

Modifying since there's still some use case for a one time profile modification (imported mrtk first and then the oculus profile). doing a quick refactor to prevent device manager collisions

/azp run


New Dracula JetBrains UI plugin

Existing Theme
I've transferred the ownership of my personal JetBrains UI Plugin repository.
Location: https://github.com/dracula/jetbrains-dracula
This new theme may not coexist with the old JetBrains Dracula theme.
Could you remove or mark deprecated the old repository.
PS: the author of the old JetBrains theme is no longer maintaining the theme. https://github.com/dracula/jetbrains/issues/33

What do you think would be the best way to handle this update? (bunch of questions below, sorry)

Is the old one still useful? If not, maybe we could tag the current version or move it to a different branch?
What do you think would be the best to name the old repo? Would something like legacy work?

The old one is useful for users who use old version JetBrains IDEs ( version before 2019.1 ). This new UI plugin is only compatible with JetBrains IDEs 2019.1 or later.
Rename the old one to "legacy-jetbrains" is a good choice, and thus this new one can be renamed to "jetbrains".

All set. Thank you! 🙌


docs: "targetting" typo

In 83 repos, the README.md documentation section "Supported Node.js Versions" has a typo "targetting" which should be "targeting"
i.e.

Client libraries targeting some end-of-life versions of Node.js are available

it should read

Client libraries targeting some end-of-life versions of Node.js are available

Should be fixed by this

Thank you @jainsamyak !


Implement passing configuration over environment variables

[x] I've read and understood the Contributing guidelines and have done my best effort to follow them.
[x] I've read and agree to the Code of Conduct.
[x] I've been mindful about doing atomic commits, adding documentation to my changes, not refactoring too much.
[x] I've a descriptive title and added any useful information for the reviewer. Where appropriate, I've attached a screenshot and/or screencast (gif preferably).
[x] I've written tests to cover the new code and functionality included in this PR.
[x] I've read, agree to, and signed the Contributor License Agreement (CLA).

PR Summary
This pull request adds functionality for overriding configuration file content from environment variables.
For example:
$ SLACK_TOKEN="xoxb-foo-bar" REPEAT_PLUGIN_DUMMY_VARIABLE="true" rtmbot

This will result in effectively the following rtmbot.conf:
SLACK_TOKEN: "xoxb-foo-bar"
plugins.repeat.RepeatPlugin:
    dummy_variable: "true"

All rtmbot-specific configuration variables can overridden. For plugin-specific configuration
I left the limitation of treating all values as strings to keep code from getting overly complex.
All this is mentioned in the README.md that is also updated by this pull request.
Related Issues
Implements at least the environment variable portion of #89.
Test strategy
tests/test_rtmbot_runner.py includes unit tests that cover most usual cases that came to mind.

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.

Hi. What is the ETA for merging the change?
I really miss this feature #86

@Roach  could you merge this please ?


iOS Bug on 9-cube-grid

iOS issue with animation-delay. see @ http://i.xomf.com/nhqkq.gif

Any updates here?

https://github.com/tobiasahlin/SpinKit/pull/129

@ATBO thanks

Should be fixed in #143


exploitdb: 2024-10-02 -> 2024-11-16

Diff: https://gitlab.com/exploit-database/exploitdb/-/compare/refs/tags/2024-10-02...2024-11-16

Things done

Built on platform(s)

[ ] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
25.05 Release Notes (or backporting 24.11 and 25.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[ ] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

nixpkgs-review result
Generated using nixpkgs-review.
Command: nixpkgs-review pr 356407

x86_64-linux

:white_check_mark: 1 package built:

exploitdb