Login Error: The required anti-forgery cookie "__RequestVerificationToken" is not present.

Dear, I got the below error while logging in with admin/admin after first open the Bonobo server:
500 Server Error

A server error occurred when processing your request. Please try again or contact the system administrator.

Bonobo version: V6.5.0
Server: Windows Server 2016 Standard
And I have tried serial ways but no luck:

Add <httpCookies httpOnlyCookies="true" requireSSL="true"/> in web.config
Move the folder out of C:\inetpub\wwwroot;
Re-open the browser;

After googled hours in internet, it seems that the root reason is code issue. could anyone can help me out of this?
Below is the log copied from Bonobo.Git.Server\App_Data\Logs:
2020-04-22 11:54:24.061 +08:00 [Error] 500 Exception caught in Global.asax
System.Web.Mvc.HttpAntiForgeryException (0x80004005): The required anti-forgery cookie "__RequestVerificationToken" is not present.
   at System.Web.Helpers.AntiXsrf.TokenValidator.ValidateTokens(HttpContextBase httpContext, IIdentity identity, AntiForgeryToken sessionToken, AntiForgeryToken fieldToken)
   at System.Web.Helpers.AntiXsrf.AntiForgeryWorker.Validate(HttpContextBase httpContext)
   at System.Web.Mvc.ControllerActionInvoker.InvokeAuthorizationFilters(ControllerContext controllerContext, IList`1 filters, ActionDescriptor actionDescriptor)
   at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass21.<BeginInvokeAction>b__19(AsyncCallback asyncCallback, Object asyncState)
   at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResultBase`1.Begin(AsyncCallback callback, Object state, Int32 timeout)
   at System.Web.Mvc.Async.AsyncControllerActionInvoker.BeginInvokeAction(ControllerContext controllerContext, String actionName, AsyncCallback callback, Object state)
   at System.Web.Mvc.Controller.<BeginExecuteCore>b__1c(AsyncCallback asyncCallback, Object asyncState, ExecuteCoreState innerState)
   at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncVoid`1.CallBeginDelegate(AsyncCallback callback, Object callbackState)
   at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResultBase`1.Begin(AsyncCallback callback, Object state, Int32 timeout)
   at System.Web.Mvc.Controller.BeginExecuteCore(AsyncCallback callback, Object state)
   at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResultBase`1.Begin(AsyncCallback callback, Object state, Int32 timeout)
   at System.Web.Mvc.Controller.BeginExecute(RequestContext requestContext, AsyncCallback callback, Object state)
   at System.Web.Mvc.MvcHandler.<BeginProcessRequest>b__4(AsyncCallback asyncCallback, Object asyncState, ProcessRequestState innerState)
   at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncVoid`1.CallBeginDelegate(AsyncCallback callback, Object callbackState)
   at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResultBase`1.Begin(AsyncCallback callback, Object state, Int32 timeout)
   at System.Web.Mvc.MvcHandler.BeginProcessRequest(HttpContextBase httpContext, AsyncCallback callback, Object state)
   at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   at System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step)
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

@darioajr @mattn @doggy8088 @joelsand

What's the .NET Framework version you used?

What's the .NET Framework version you used?

The server has .NET Framework 4.6.1 installed, but the Bonono site is run at .NET v4.5 with .NET CLR Version v4.0.30319 via IIS -> Application Pools.
It is strange that I can run the site by downloading the source code from GitHub and building/publishing in my local PC.

It could be a cookie issue.  Please check the anti-forgery cookie __RequestVerificationToken was sent to the server or not.

@doggy8088 Thanks for your replies. I am turning to the GitLab in RHEL right now. I will back to this issue again if failed again. Thanks a lot.

This cookie could be removed from one of your Chrome extension. It's very possible. There are many people installed AdBlocker extension.


[HOW-TO] Customize the FPS of a recorded video using H264Encoder

Hello,
I am trying to record a video at the highest framerate supported by my camera V3 which is supposed to be capable of doing 1080p@50FPS according to the documentation.
But the FPS I'm trying to apply doesn't seem to work and I always get an output file that is 30FPS:

Here is my code:
from picamera2 import Picamera2
from picamera2.encoders import H264Encoder, Quality

from libcamera import controls

picam2 = Picamera2()
picam2.video_configuration.controls.FrameRate = 50.0
video_config = picam2.create_video_configuration(main={"size": (1920, 1080)})
picam2.configure(video_config)
picam2.set_controls({"AfMode": controls.AfModeEnum.Continuous})
h264encoder = H264Encoder()
picam2.start_recording(h264encoder, "test.h264", quality=Quality.VERY_HIGH)
sleep(10)
picam2.stop_recording()

What am I doing wrong ?
I thank you in advance for your help.
Regards,
Azsde.

Hi, please try
video_config = picam2.create_video_configuration(main={"size": (1920, 1080)}, controls={'FrameRate': 50})

(and you probably don't need the line above.) Does that make a difference?

It doesn't seem to affect the reported framerate in MediaInfo (which is still at 30.000 FPS).

Ok, so now the .h264 file correctly is reporting 50 FPS:

But either when using MP4Box or ffmpeg to make it into a playable .mp4 file, the duration is not correct and the footage is sped up (it should be around 10s and is recognized to be 3 seconds long by VLC).
Am I missing something here ?

Maybe try saving a timestamp file alongside the h.264 file so that we can check the video really is running at 50fps? (Add pts="timestamps.txt" to the start_recording() call.)

Looking at the timestamp file (which contains frame timestamps in milliseconds), the camera does seem to be delivering frames every 20ms (actually very marginally less). But there are lots of jumps when a whole second or so of frames go missing. So it seems to be that the problem is that there are large numbers of frame drops. What kind of Pi is this?
I would expect the correct duration if you give the timestamp file to mkverge, only there will presumably be numerous small pauses where the missing frames should be.

This a Raspberry Pi 3b+, is it too weak to handle such a video stream ?

Isn't it just a memory issue? 3B+ has 'only' 1GB. Pi4 probably has  more (2, 4, or 8GB).
Try the Pi4. My guess is it will behave better.

I just tried with a Pi 4 8Gb, I still have issues to "convert" the .h264 file to a .mp4 file using ffmpeg / mp4box, the output videos are indeed 60FPS but they play way too fast.
When using mkvmerge, the playback speed is correct, however the output file is not 60 FPS but rather 38ish FPS.

One thing you have to do at high framerates is turn off the extra denoise processing, which is relatively slow (the libcamera-vid command you were using does this). In Python, add 'NoiseReductionMode': 1 to the controls when you create the configuration.
I would say the first thing to check is that libcamera-vid will run and give you the correct framerate reliably with no drops, judged by checking the timestamp file. Also be sure to run without a preview window. Then let's move on to Python. Maybe use format "YUV420", and perhaps start with lower resolutions/bitrates to begin with. Anyway, so I think your configuration would be something like this:
video_config = picam2.create_video_configuration(main={"size": (1920, 1080), 'format': 'YUV420'},
                                                 controls={'FrameRate': 50, 'NoiseReductionMode': 1})

Hello,
I had time to work on the subject again,the issue doesn't seem to come from picamera as libcamera-vid produces the same result:
libcamera-vid --level 4.2 --framerate 50 --width 1920 --height 1080 --save-pts timestamp-libcam.pts -o video-libcam.264 -t 60000 --denoise cdn_off -n
Using MediaInfo on the "raw" h264 file shows that the produced file has the expected FPS.

However, when trying to play the h264 file using VLC, the output video doesn't have any duration and play faster than it should (like if the video was sped up).
"Converting" the h264 file using ffmpeg also result in a 50FPS video, but with an incorrect duration and it play faster that it should as well.
"Converting" the h264 file using mvkmerge result in a 32ish FPS video with an correct duration and it plays at a normal rate.
Anyway, I'll try to get support on the Raspberry Pi forums as it is not an issue related to picamera2.

I'd try recording at a much lower resolution and/or quality. If you get the FPS you're expecting with that, then it's likely a performance issue, which seems quite possible. If not, then you can dig deeper.
Generating a timestamps.txt is about the only reliable way I've found to validate the framerate. Each represents the timestamp for each frame, so you can figure out the FPS. (As in your example above, they're 20ms apart, apart from the frame drops, which timestamps.txt is also useful for detecting.)

Remember that ".h264" is not a proper file format. It contains video frames but without timestamps, so a player can choose to play it at any rate that it wants. Also note that for the last few years, vlc has been unable to play streams without timestamps properly. It skips stuff, produces garbled output, all kinds of nonsense happens. If you want to play ".h264" files, I recommend a player other than vlc (e.g. ffplay).


Implement 'Templates' window

SCOPE

Tabs (Templates, Functional Groups). Templates tab should have the groups that exist now in the template window placed in the same order with the same names. Functional Groups should contain all the functional groups without tabs.
Template representation on the tab should include preview of the structure, name (Ignore smiles in design), and provide ability to initiate template editing.
FG representation should include preview of the structure and name (Ignore smiles in design).
Pay attention to how the scrolls should work: they should be inside the group on the tab. For FG consider all tab as single group.
Search row: when entering the name in the row the list of templates & groups should be updated immediately leaving only the ones with the name containing the row value. The tab with no appropriate elements should be made disabled. For the tab with the results only groups with corresponding results should be visible. The list of elements in this groups should contain only the ones satisfying the search criteria.

OOS
Template editing: https://github.com/epam/ketcher/issues/1342
Templates panel: https://github.com/epam/ketcher/issues/1310
Templates window position: https://github.com/epam/ketcher/issues/1345

Design as an image, except:

button in header should be a cross
title supposed to take 2 lines in templates library tab, and 1 line in functional group

Verified in Release 2.5


Changed user_id to UNSIGNED INT

zfcuser used UNSIGNED INT for user id, so creation of foreign key throws mismatch error

I'm basing this off ZfcUser/data/schema.sql. If you would like to make compatible schemas for the other RDBMS, I'll happily accept a pull request.


I want to enhance the whole UI on the whole page

What's the style idea?
We need to improve overall UI of the Home page
Add screenshots
Add screenshots
Code of Conduct

[X] I agree to follow this project's Code of Conduct

i would like to work on this issue under GSSOC'23 . please assign this to me

Like what all things you want to enhance @sarthak-star . Give a brief idea about it

i would like to add some hover effects ,make some transitions smoother and more pleasant.I want to make this website more aesthetic and visually appealing.

Go ahead and work on it @sarthak-star


bug([COMPONENT]): [TITLE] Material tooltip should be enabled on [matTooltipDisabled]="0"

Reproduction
Use StackBlitz to reproduce your issue: https://stackblitz.com/edit/components-issue-6fypne
Steps to reproduce:

create a div with mat-tooltip
on [matToolTipDisabled] pass 0 as input

Expected Behavior
What behavior were you expecting to see?
As matToolTipDisabled receive boolean Input so if we use [matTooltipDisabled]= "0" in html template then the matTooltip should be enabled , 0 is to be considered as falsy value
Actual Behavior
What behavior did you actually see?
I am using [matTooltipDisabled]= "0" in html template and matTooltip is still disabled in the template
Environment

Angular: 7.2.7 & 9.1.0
CDK/Material:7.2.0 & 9.1.0
Browser(s): Chrome
Operating System (e.g. Windows, macOS, Ubuntu): macOS(10.14.6)

The input is explicitly set to require a boolean so passing in other random values is at your own risk.


Consistan command names

Make some command names neater, and use consistent names with hyphen separated words.

Resolved in command overhaul aca7976


Updated "an Microsoft" to "a Microsoft" references

Hi team! I was reading this article and noticed several references to "an Microsoft 365" instead of the proper grammar of "a Microsoft 365". Was likely due to a Find&Replace during the Office 365 to Microsoft 365 rebranding. Would probably behoove someone to run a check across the whole stack of pages? How can I help?

Good catch, @justadakaje. We'll get this fixed.

@justadakaje can you please give me an example URL?


feat: include service name within the schema check

closes https://github.com/kamilkisiela/graphql-hive/issues/750

It's a breaking change if somebody has the check marked as "required" on Github

It's a breaking change if somebody has the check marked as "required" on Github
What strategy do you propose here? Unfortunately, we cannot check who marked it as required.

We could just tell users that the name will change. (low effort by both parties involved)
We could make it backward compatible (opt-in). (more effort on our side; no effort for existing users)

@n1ru4l I rebased the PR to latest, CI should pass now.
I think the concern about the breaking changes is valid, but the impact is actually low.
@kamilkisiela what should be the next step?


feat!: json schemas for device config and mappings

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

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

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

Other information:

Status

[ ] Code documentation for the relevant parts in the code have been added/updated by the PR author
[ ] The functionality has been tested by the PR author
[ ] The functionality has been tested by NRK

Codecov Report
Base: 71.12% // Head: 75.60% // Increases project coverage by +4.48% :tada:

Coverage data is based on head (9c0dbb3) compared to base (043bb22).
Patch coverage: 100.00% of modified lines in pull request are covered.

Additional details and impacted files
@@              Coverage Diff              @@
##           release49     #837      +/-   ##
=============================================
+ Coverage      71.12%   75.60%   +4.48%
=============================================
  Files            322       26     -296
  Lines          36311     5252   -31059
  Branches        3937      511    -3426
=============================================
- Hits           25825     3971   -21854
+ Misses         10194     1279    -8915
+ Partials         292        2     -290

Impacted Files
Coverage Δ

packages/corelib/src/dataModel/Timeline.ts
95.04% <100.00%> (+0.15%)
:arrow_up:

meteor/lib/collections/Studios.ts

meteor/lib/collections/lib.ts

meteor/server/api/blueprints/migrationContext.ts

meteor/server/api/peripheralDevice.ts

meteor/server/migration/X_X_X.ts

...er/lib/customPublication/optimizedObserverArray.ts

packages/job-worker/src/cache/CacheObject.ts

meteor/lib/collections/WorkerThreads.ts

packages/job-worker/src/ingest/rundownInput.ts

... and 287 more

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

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

One note I'd like to make on this PR is that it definitely breaks compatibility with any Peripheral Devices, so I would like to hold off on merging this in until we have a wider discussion on how to handle that, by for example bumping Core (and Playout Gateway, MOS Gateway, and Package Manager and Input Gateway) to 2.0.0


Re-parsing optimized PIL files does not always work

See #1476 for a test.

We still have an issue that I worked around in 89a137c1076830e5e37a09b4c8ec31883efadc8d.
To reproduce it, consider this modified test_data/pil/fib_arrays.pil:
let N = 16;
namespace std::prover(N);
    enum Query {
        Input(int),
        Output(int, int),
        Hint(fe),
        DataIdentifier(int, int),
        None,
    }
    let eval: expr -> fe = [];
namespace FibArrays(N);
    col fixed ISLAST(i) { if i == N - 1 { 1 } else { 0 } };
    col witness unused;
    col witness x0, x1;
    // This would work:
    // let x: expr[2] = [x0, x1];
    let x = [x0, x1];

    // Use the array somehow so that the optimizer doesn't remove it.
    col witness unused2(i) query std::prover::Query::Hint(std::prover::eval(0 * x[0]));

    ISLAST * (x[1]' - 1) = 0;
    ISLAST * (x[0]' - 1) = 0;

    (1-ISLAST) * (x[0]' - x[1]) = 0;
    (1-ISLAST) * (x[1]' - (x[0] + x[1])) = 0;

    (unused - 1) * unused2 = 0;

The following reproduces the bug:
$ cargo run pil test_data/pil/fib_arrays.pil -o output -f
  ...
$ cargo run pil output/fib_arrays_opt.pil -o output -f
    Finished dev [unoptimized + debuginfo] target(s) in 0.21s
warning: the following packages contain code that will be rejected by a future version of Rust: mathru v0.6.10
note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1`
     Running `target/debug/powdr pil output/fib_arrays_opt.pil -o output -f`
Deducing witness columns...
Analyzing PIL and computing constraints...
thread 'main' panicked at pil-analyzer/src/statement_processor.rs:420:21:
Explicit array length required for column x.
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace


[Bug]: Gravity applying when turned off - only in multiplayer server

General Info

[ ] I am running a modpack
[ ] I can reproduce this issue consistently in single-player
[X] I can reproduce this issue consistently in multi-player
[X] I have searched for this issue previously and it was either (1) not previously reported, or (2) previously fixed and I am having the same problem.
[ ] I am crashing and can provide my crash report(s)
[X] I am using the latest version of the mod

Loader version
Fabric 0.16.3
Minecraft version
1.12.1
Mod version
ArmorPoser-fabric-1.21-6.1.1
Java version
java version "1.8.0_411"
Issue Description
When I try to move the armor stand on the y-axis it acts like the gravity is still applied even when turned off.
I saw someone else on the comments on curseforge state this, but did not see a report here.
Additional Information
No response

armor stands additionally add the base plate back and always turn to face south regardless of set rotation

Unsure, but... if this is not a typo in your report then Minecraft 1.12.x is not in the list for supported version :

Probably a typo. Though everyone seems to report their java version wrong these days

Does the server have the mod installed? As this is a requirement as the mod is NOT client-side only

OMG, yes that is a typo, meant to be 1.21.1
When I look at my Java version it says that is the one I have installed.
Server is hosted through Shockbyte if that is useful information.
Yes, the server has the mod installed. I am able to access the UI and edit armor stands, however the gravity does not actually turn off, base plates do not stay disabled, and all rotations reset to south.


linux build failure

Can not build it on linux, what is the general steps to use this lib on linux?

Hi, Linux isn't currently supported by this library: just OS X and Windows. There was an error on the README in the front page.  To support Linux, I'll need to port Socket.osx.inl to use epoll.


Add city_of_whittier

# us-ca-city_of_whittier-1551995679577.geojson.gz
ok - 32149/32149 (100%) valid addresses
ok - 0 outside of boundary (dropped)
ok - 0 have an unsupported number format
ok - 0 are missing street names
ok - 0 could not be parsed
ok - 0 suffered misc failures


Usefull or just for fun!

hi，
1 I don not know what you said below.
"benchmark_model/Label_image compatible with Tflite+NBG."
2 There is a realworld quesion, if I have a more layers and newest tflite model, could I transfer it by this acuitylite tool to generate the testcase of my tflite mode? Or it supports only few and old cnn models?
3 What is the real use of this tflite-vx-delegate? It will generate the testcase of any tflite model , and we just need run the demo code or projcect  generated by the tool?
4 Is there any detailed step to intruduce the use of this tool?  If  I use this tool,then I do not need any other like tengine etc,right?
BR

To3: The role of tflite-vx-delegate is to map the tflite model on our npu, and the supported ops will run on our npu. The model can be run through benchmark_model or minimal, and the process of delegating the model to the npu will be performed in invoke().
To4: tflite-vx-delegate/README.md will teach you how to build and run.

@2050airobert ，
As we discussed in https://github.com/VeriSilicon/TIM-VX/issues/412.
The vx-delegate is our official support for tensorflow-lite runtime - it's production quality and promised long time support. In concept, this repo is not a tool but a backend for tensorflow-lite runtime.


Tutorial - data sampling methods explained

Issue description
The options for sampling groups, image pairs and labels
Type of Issue
Please delete options that are not relevant.

[ ] Documentation update

What's the expected result?
clearly described method that us consistent with data loaders
What's the actual result?
Additional details / screenshot

@s-sd Sorry Shaheer if it looked like that the changes have been made without informing/discussing with you ;) Please have a quick look at: https://github.com/ucl-candi/DeepReg/blob/56-doc-data-sampling/tutorials/sampling.md
which Yunguan will also review. All of us are still figuring out what the best way forward with the loaders. Please chip in! It is good to hold off a few things uncertain until the nifti's merge - as you are doing - to make sure h5 and nifti are consistent with each other.

@YipengHu the new changes all look great! I will have a look at the sampling tutorial and will hold off on the h5 loaders until the nifti's merge


SSR: Don't mix non-path-based rules with path-based

If any rules contain paths, then we reject any rules that don't contain paths. Allowing a mix leads to strange semantics, since the path-based rules only match things where the path refers to semantically the same thing, whereas the non-path-based rules could match anything. Specifically, if we have a rule like foo ==>> bar we only want to match the foo that is in the current scope, not any foo. However "foo" can be parsed as a pattern (BIND_PAT -> NAME -> IDENT). Allowing such a rule through would result in renaming everything called foo to bar. It'd also be slow, since without a path, we'd have to use the slow-scan search mechanism.

bors r+


Installing from PIP fails

It fails because no version of mentioned tensorflow found.

I have the same issue. The error being:
ERROR: Could not find a version that satisfies the requirement tensorflow<=1.15.0,>=1.12.0 (from fawkes) (from versions: 2.2.0rc3, 2.2.0rc4, 2.2.0, 2.3.0rc0, 2.3.0rc1, 2.3.0rc2)
ERROR: No matching distribution found for tensorflow<=1.15.0,>=1.12.0 (from fawkes)

https://github.com/Shawn-Shan/fawkes/issues/8#issuecomment-661099924


Change position of SnackBar shown when an App Invite is sent (or don't show)

SnackBar is shown overlapping my AdMob banner, and that's not good... would be great to set which coordinator layout to use, or having the option to not showing that SnackBar

@sjvc thanks for this feedback, I will forward this to the AppInvites team.


iTunes

These are great, thanks!
How about an icon for the iTunes Store (not just the Apple icon)?  Thanks!

I’m going to close this issue for two reasons.

I can’t find a vector source to work from.
Apple asks users not to use the iTunes icon, but rather the Apple icon (see here).


Add Godot VirtualJoystick

Godot VirtualJoystick - A simple vitual joystick for mobile devices.

Wow, that was fast. Actually, I'm the one who thank you for continuing to keep this project alive :)


Formatting tags

Not necessarily a bug, but the formatting tags. Since the description supports formatting tags, do you have an example of how it would be? Is this in HTML as well?

For example;
Hi my name is [color=red]Alyssa[/color] and I really like [glow=yellow]cats[/glow].


empty case statements should not increase complexity #840

case only increases complexity if the next statement is not immediately another case.

see https://github.com/jshint/jshint/issues/840#issuecomment-128913071
i don't think this is wanted.
please feel free to disagree

I'm not sure I agree. In visual studio and intellij in C# and java respectively, complexity is NOT increased by an empty case statement. I also wonder outside of consistency with other operators within jshint how increasing complexity of an empty case makes sense?

Superseded by gh-2597


BeginDialog.Property needs better example

Is your feature request related to a problem? Please describe.
The example for the Property field below is bad because we're expecting a property path not prompt text as in the example. A better example would be ex. dialog.result.

@vishwacsena Composer will use the most specific example for the placeholder. Since the oneOf property includes examples in each item, we will use that value instead of the example defined on the resultProperty schema.

@a-b-r-o-w-n , I was referring to using the more specific example provided by the resultProperty in its schema definition which would be this .. "dialog.userName" and if that is missing, fall back to the any examples in the stringExpression definition?

@vishwacsena I see. I'll schedule this in the next release.


Strange drag and drop crash bug

I'm dealing with a weird crash happening with the use of Gtk.DropTarget
Strangely enough this only seems to happen inside Flatpak runtime. On both GNOME SDK 46 and 47. But I cannot reproduce it on my own machine locally (Debian 12, GNOME 43).
The problem seems related to garbage collection.
I've narrowed it down to a simple reproducible window that shows this:

namespace MyApp
{
    public class BugWindow : Adw.ApplicationWindow
    {
        private readonly Gtk.Button _button;
        private readonly Gtk.Button _button2;
        private readonly Gtk.DropTarget _drop;
        private readonly Gtk.DropTarget _drop2;
        public BugWindow(Gtk.Application app)
        {
            Application = app;

            var box = Gtk.Box.New(Gtk.Orientation.Vertical, 6);
            box.Append(Adw.HeaderBar.New());
            _button = Gtk.Button.NewWithLabel("File 1");
            _button2 = Gtk.Button.NewWithLabel("File 2");
            _button.OnClicked += OnFileSelect;
            _button2.OnClicked += OnFileSelect;
            box.Append(_button);
            box.Append(_button2);

            SetContent(box);

            _drop = Gtk.DropTarget.New(Gio.FileHelper.GetGType(), Gdk.DragAction.Copy);
            _drop.OnDrop += OnDrop;
            _button.AddController(_drop);

            _drop2 = Gtk.DropTarget.New(Gio.FileHelper.GetGType(), Gdk.DragAction.Copy);
            _drop2.OnDrop += OnDrop;
            _button2.AddController(_drop2);
        }

        private bool OnDrop(Gtk.DropTarget drop, Gtk.DropTarget.DropSignalArgs e)
        {
            System.GC.Collect(); // Force gc for stress testing.
            Console.WriteLine("dropped!");
            var file = new Gio.FileHelper(e.Value.GetObject()!.Handle, false);
            var path = file.GetPath();
            Console.WriteLine(path);

            if (File.Exists(path))
            {
                Console.WriteLine("File exists.");
                if (drop == _drop)
                {
                    _button.SetLabel(file.GetBasename()!);
                    Console.WriteLine("Set label");
                }
                else if (drop == _drop2)
                {
                    _button2.SetLabel(file.GetBasename()!);
                    Console.WriteLine("Set label 2");
                }

                return true;
            }

            return false;
        }

        private void OnFileSelect(Gtk.Button sender, EventArgs args)
        {
            Console.WriteLine("here we are.");
            var chooser = Gtk.FileChooserNative.New("Open stuff", this, Gtk.FileChooserAction.Open, null, null);
            chooser.Show();
        }
    }
}

Press File 1 button and when the file chooser opens, do not select the file with it but use it to drag and drop files into the File 1 button, this should update the file 1 button's label to the dragged file's name.
Continue to drag a file into the File 2 button and watch the app crash.

This is the error logs
Process terminated.
Repeat 2 times:
--------------------------------
   at GObject.Internal.Object.RemoveToggleRef(IntPtr, GObject.Internal.ToggleNotify, IntPtr)
--------------------------------
   at GObject.Internal.ObjectMapper+ToggleRef.<Dispose>b__9_0()
   at GLib.Internal.SourceFuncAsyncHandler.<.ctor>b__3_0(IntPtr)
   at Gio.Internal.Application.Run(IntPtr, Int32, System.String[])
   at Gio.Internal.Application.Run(IntPtr, Int32, System.String[])
   at Gio.Application.Run(Int32, System.String[])
   at Gio.Application.RunWithSynchronizationContext(System.String[])
   at Oto.Program.Run(System.String[])
   at Oto.Program.Main(System.String[])
>>> Error: Child process exited with code 134

Again emphasizing this happens in Flatpak runtime and only when drag and drop was used.
Here's a video demonstration:
Screencast from 2024-09-24 03-32-04.webm

This sounds a bit like while disposing the ToggleRef there is some invocation of the notify callback.
This needs to be investigated.

Good news, I can reproduce the bug on my system. I will work on the fix here: #1128


Adding a channel causes sampler to sound worse

A sampler that is connected directly to the destination node sounds normal. However, when a channel with no volume or panning adjustments is added in between the sampler and the destination node, the audio quality suffers. The best way I can describe it is a tinnier and narrower sound.
Implemenetation: https://jsfiddle.net/tb9qhLjc/

this change is sound is likely because the stereo audio file is being turned into a mono file. Currently Tone.Channel is missing a channelCount property like all of the other uses of Tone.Panner. I'll update that shortly and then you'll have to explicitly set the channelCount to 2 like this
const channel = new Tone.Channel({
  channelCount: 2
})

This works perfectly for the other uses of Tone.Panner. Thanks for all your work and the prompt response!


Push notifications proposal

This issue will contain the proposal to add IOS push, and Android push channels.
Backend
New required models / concepts:

New "Channel" entries, with device id's as the relevant identifier rather than email address.
For mobile push, we need a new convention for recording and calculating device specific subscription state.

Standard subscriptions are device independent and configured within the upstream application.
Device specific subscriptions, which are configured within the end user's device settings.

Some standard set of user properties to be aggregated in clickhouse, including device subscription status (better name pending), and device token.
A new "Application" model. This model will have an assigned auth token secret, which will be used to retrieve user's device tokens.
Channel specific analytics.

We will also need to amend our user journey temporal worker to support additional message types.
Frontend
New requirements:

A way to select different messaging channels from the journey builder message node.
A way to create channel specific templates from the UI.
A way to restrict the available the available templates in the message node based on the selected message type.
A way add the relevant mobile auth token in the application settings.

Implementation and Architecture Proposal for React Native SDK for Push Notifications

Device Token Generation:

Implement logic to generate a unique device token using Firebase FCM upon app launch.
Store the device token locally on the user's device for future use or we can send directly from track event to backend.

Identity Event Trigger:

Enhance the SDK to trigger an identity event upon successful token generation.
Associate the device token with the user ID for backend tracking purposes.

Event Tracking:

SDK to track the following events related to push notifications:

Push Received: Track when a push notification is received by the device.
Push Viewed: Track when a user views a received push notification.
Push Clicked: Track when a user clicks on a received push notification.

Implement event tracking mechanisms within the SDK to capture and record these events.
Associate these events along with the user_id and journey_id for reporting purposes.

By following steps, we can enhance our SDK to effectively track push notification events and provide insights for analytics and reporting purposes. It's crucial to note that for push notifications, the entire analytics process will rely on sdk events. @maxgurewitz please add anything you'd like, and let me know if you're ready to proceed with the implementation.

Backend Higher level flow/Implementation Proposal:

Receiving Device Info:

When we get the token and user ID from the SDK, we'll start by creating a journey.

Fetching Message Template:

Next, we'll grab the token and message template stored in our db.

Personalizing Message:

Then, we'll make the message personal by adding details that match the user's profile.

Creating Payload:

After that, we'll put together all the info needed for the push notification.

Using Providers:

We'll use two providers, FCM for Android and APNS for iOS, to send the notification.

Sending to Devices:

The notification will then be sent to the user's device based on the platform they're using.

Tracking SDK Events:

We'll monitor the events triggered by the SDK, such as when a push notification is received, viewed, or clicked. This data will be crucial for reporting and understanding user engagement.

In this plan, we'll update Temporal to handle push notifications by adding support for the "PUSH" message type. We'll fetch user details, message templates, and provider info to send push notifications. Plus, we'll handle campaign events from the SDK for reporting. @maxgurewitz  Anything else you'd like to include in backend before we move forward with the implementation?

@danish1112 a few things!

We have a work in progress in progress of native mobile push. @Kacppian worked on it.
You can currently use our webhook channel to implement native mobile push, using a deviceToken user property as an identifier, and sending a request to fcm. We plan to release an instructional video on how to do this soon!


az vm format-secret does not work

Description
The az vm format-secret command does not work. This can be seen by trying to run one of the examples under az vm create. The command[s] run, and the error, are:
        az keyvault certificate create --vault-name vaultname -n cert1 \
          -p "$(az keyvault certificate get-default-policy)"

        secrets=$(az keyvault secret list-versions --vault-name vaultname \
          -n cert1 --query "[?attributes.enabled].id" -o tsv)

        vm_secrets=$(az vm format-secret -s "$secrets")

format-secret returns indicating that a resource group parameter is missing, although the command does not take one:
stramer@churchy [10:10] in [/mnt/c/Users/sttramer.REDMOND]
∅ ⤅  % az vm format-secret -s "$secrets"
Parameter 'resource_group_name' can not be None.
stramer@churchy [10:11] in [/mnt/c/Users/sttramer.REDMOND]
∅ ⤅ ∃ % az vm format-secret -s "$secrets" -g ResourceGroup
az: error: unrecognized arguments: -g ResourceGroup

This either indicates the example is incorrect, or the format-secret command does not work as expected.

Environment summary
Install Method: How did you install the CLI? (e.g. pip, interactive script, apt-get, Docker, MSI, nightly)
Answer here: apt-get
CLI Version: What version of the CLI and modules are installed? (Use az --version)
Answer here:
azure-cli (2.0.16)

keyvault (2.0.9)
vm (2.0.13)

OS Version: What OS and version are you using?
Answer here:
WSL
Linux churchy 4.4.0-43-Microsoft #1-Microsoft Wed Dec 31 14:42:53 PST 2014 x86_64 x86_64 x86_64 GNU/Linux
Ubuntu 16.04LTS
Shell Type: What shell are you using? (e.g. bash, cmd.exe, Bash on Windows)
Answer here: zsh on WSL

If you echo $secrets do you see valid secret URIs?
Otherwise, it sounds like the mechanism to sniff the KeyVault ID is failing. If you list the vaults in your active subscription, does the KeyVault you are trying to use appear?

Yes, as far as I can tell, the URI is valid. The vault is listed in the results of az keyvault list and the requested cert is in the output of az keyvault certificate list --vault-name NAME.

Are you using some kind of custom domain that does not start with the vault name?  I'm not able to repro locally yet, but I can definitely see where the sniffing logic might break down.

Nope - no custom domain prefix. The key vault was created by running a garden-variety az keyvault create -n NAME -g ResourceGroup command. No external FQDN is mapped in. The URL provided to az vm format-secret was in the form https://VAULTNAME.vault.azure.net/secrets/cert1/ID_HASH

I've gotten a partial repro. If I list the secret versions with TSV and try to use that as input I get an error on the number of segments. I'll create a PR that fixes that issue, and will hopefully fix yours (with any luck it's the same problem with a different symptom on ZSH).

Hello, I am still having this issue. Is this issue fixed?
$ secret=$(az keyvault secret list-versions --vault-name WebSvrCert --name WebCert --query "[?attributes.enabled].id" --output tsv)
$ echo $secret
https://websvrcert.vault.azure.net/secrets/WebCert/d79e98486c5f42a6a12c863608b3a6e8
$ vm_secret=$(az vm secret format --secret "$secret")
Parameter 'resource_group_name' can not be None.
Traceback (most recent call last):
File "/opt/az/lib/python3.6/site-packages/knack/cli.py", line 194, in invoke
cmd_result = self.invocation.execute(args)
File "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/init.py", line 331, in execute
six.reraise(*sys.exc_info())
File "/opt/az/lib/python3.6/site-packages/six.py", line 693, in reraise
raise value
File "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/init.py", line 304, in execute
result = cmd(params)
File "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/init.py", line 168, in call
return super(AzCliCommand, self).call(*args, **kwargs)
File "/opt/az/lib/python3.6/site-packages/knack/commands.py", line 109, in call
return self.handler(*args, **kwargs)
File "/opt/az/lib/python3.6/site-packages/azure/cli/core/init.py", line 348, in default_command_handler
result = op(**command_args)
File "/opt/az/lib/python3.6/site-packages/azure/cli/command_modules/vm/custom.py", line 1429, in get_vm_format_secret
'id': _get_vault_id_from_name(cmd.cli_ctx, client, vault_name)
File "/opt/az/lib/python3.6/site-packages/azure/cli/command_modules/vm/custom.py", line 1406, in _get_vault_id_from_name
vault = client.get(group_name, vault_name)
File "/opt/az/lib/python3.6/site-packages/azure/mgmt/keyvault/operations/vaults_operations.py", line 193, in get
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'),
File "/opt/az/lib/python3.6/site-packages/msrest/serialization.py", line 488, in url
data = self.validate(data, name, required=True, **kwargs)
File "/opt/az/lib/python3.6/site-packages/msrest/serialization.py", line 558, in validate
raise ValidationError("required", name, True)
msrest.exceptions.ValidationError: Parameter 'resource_group_name' can not be None.
chi@Azure:~/clouddrive$

@Castermeek what version of the CLI are you running?  az --version

I am using 2.0.27
chi@Azure:~$ az --version
azure-cli (2.0.27)
From: Travis Prescott<EMAIL_ADDRESS>Sent: Wednesday, February 21, 2018 2:56 AM
To: Azure/azure-cli<EMAIL_ADDRESS>Cc: Chi Yao<EMAIL_ADDRESS>Mention<EMAIL_ADDRESS>Subject: Re: [Azure/azure-cli] az vm format-secret does not work (#4379)
@Castermeekhttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fcastermeek&data=04|01|chiyao%40microsoft.com|c9c5dec412504daba07708d5788b2e8f|72f988bf86f141af91ab2d7cd011db47|1|0|636547461535470694|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwifQ%3D%3D|-1&sdata=S6CdvMfn4uLYCoHl%2Fn7nR4LodJgKVBzIUsl40SMC%2BQI%3D&reserved=0 what version of the CLI are you running? az --version
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FAzure%2Fazure-cli%2Fissues%2F4379%23issuecomment-367062363&data=04|01|chiyao%40microsoft.com|c9c5dec412504daba07708d5788b2e8f|72f988bf86f141af91ab2d7cd011db47|1|0|636547461535470694|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwifQ%3D%3D|-1&sdata=PdsbqqogSBb4UngE57WU5AcWJRtM8OlL5q%2BFccQ878U%3D&reserved=0, or mute the threadhttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAa5ywSlTlgov0w3JqHutbO6VOByIxzVUks5tWwcngaJpZM4PNQxM&data=04|01|chiyao%40microsoft.com|c9c5dec412504daba07708d5788b2e8f|72f988bf86f141af91ab2d7cd011db47|1|0|636547461535470694|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwifQ%3D%3D|-1&sdata=O92Nmn7TgfVLfnP4dMP%2FukfFRmcGAbPGIf9q97Qnv4o%3D&reserved=0.

@Castermeek since you are experiencing this on the latest build, please open a new issue and provide the requested details so we can investigate.

Submitted a new issue.
https://github.com/Azure/azure-cli/issues/5718


removed code and comments that are no longer necessary, and updated code

that removes dates that do not parse

Should solve issue #29


[BUG]

Information

Apktool Version (apktool -version) -2.4.1
Operating System (Mac, Linux, Windows) -Windows
APK From? (Playstore, ROM, Other) -Other

Stacktrace/Logcat
...
fakeLogOpen(/dev/log_stats) failed
Include stacktrace here

Steps to Reproduce

java.exe -jar apktool2.4.1.jar b -o  a.apk c:\a_decompile

This happens when multiple commands are running at the same time

I can't replicate this.

I can't replicate this.


Light client app ui

[ ] issue #
[ ] follows contribution guide
[ ] code change includes tests
[ ] breaking change

@all-contributors add @sajalbnl for code


Add route parser for '$' as name/value pair preferably with-two way binding

Hi,
I'd like to see (or add) support for a new specifier for routes $ that will parse the url as a set of name=value pairs and feed them as an object in the activate. The name/value pairs could be delimited by a pipe "|".
Currently I ca do this users/:id/detail and get in the activate({id:"1234"} called but I want a bit more control so I'd like users/$/ so I can do /users/id=123|action=edit|highlight=firstName
My activate should be then invoked with {id=123, action="edit", highlight="firstName"}.
Second step that would be even nicer would be to have a two-way bindable attribute:
import {UrlBind} from 'aurelia';
export class UserEditView{
    @UrlBind('id') id: string;
    @UrlBind('action') action: string;
    @UrlBind('highlight') highlightElementName: string;
}

Ideally these should be two way bindings so if my action in the view changes from 'edit' to 'activate' the url should automatically adjust (preferably without a deactivate/activate event) to /users/id=123|action=activate|highlight=firstName
Of course the parsing for the $ should stop at the first '/' so this can be used with child routers
/users/id=123|action=activate|highlight=firstName/address/[id=456|highlight=state|error='state is missing']/edit
I think I can could do the first part of this and submit a pull-request but I'm not exactly sure where to start on the second one.
PS>> I don't want to use the "?" as that's supposed to go and the end and does not seem to be designed to be inside the route and be used in multiple child views.

It looks like you are trying to re-implement query strings. Why don't you just use those?

Because the query string does not have a view selector. In the above example I can have id=1234 for one view and id=456 for the child view. With query strings I'd need to be extra careful to only have a single set of parameters that work for all views.

I don't think we're going to add this out-of-the-box. It's very non-standard and would complicate a router that already has a ton of features.
As far as I know, there's nothing preventing you from doing this yourself though. You can just treat the entire segment as a single parameter in your route. You can then parse that parameter according to your own rules and handle it any way you want. You could even create a router pipeline step that automatically identified parameters in this pattern and pre-parsed them into the params object so it's all handled before it reaches the activate method.
In terms of data-binding, we can't do that in the router itself since that has no dependency on templating. But, implementing it in this way would actually complicate controllers because instead of having a single activate callback with all params, you would now have to have a callback for each param, each one being called separately, and you would need to sync route and state updates across all of them.


+1

          +1

Originally posted by @JonnyTech in https://github.com/laiiihz/alga/issues/95#issuecomment-2159750358
https://github.com/laiiihz/alga/issues/134#issue-2363185211

git fetch origin
git checkout 1-+1


feat(@embark/specialconfigs): introduce dynamic addresses

This commit introduces a new Smart Contract configuration addressHandler
that lets users define a function to "lazily" compute the address of the
Smart Contract in question.
This is useful when a third-party takes care of deploying a dependency
Smart Contract, but the address of that Smart Contract only being available
at run-time.
Example:
deploy: {
  SimpleStorage: {
    fromIndex: 0,
    args: [100],
  },
  OtherContract: {
    deps: ['SimpleStorage'],
    address: async (deps) => {
      // use `deps.contracts.SimpleStorage` to determine address
    },
    abiDefinition: ABI
  },
}

In the example above, OtherContract will be deployed after SimpleStorage
because it uses the deps property to define Smart Contracts that it depends
on. All dependencies are exposed on the addressHandler function parameter
similar to deployment hooks.
Closes #1690

Notice: The base branch for this PR is https://github.com/embark-framework/embark/tree/feature/add_embarkjs


[KYUUBI #3020] kyuubi ldap add new config property kyuubi.authentication.ldap.bindnpw and kyuubi.authentication.ldap.attrs

Why are the changes needed?

Among the kyuubi ldap configuration parameters, there is currently "kyuubi.authentication.ldap.base.dn=", but there is no place corresponding to the CN password setting. similar to hive
"hive.server2.authentication.ldap.bindn",
"hive.server2.authentication.ldap.bindnpw".
How was this patch tested?

[ ] Add some test cases that check the changes thoroughly including negative and positive cases if possible

[x] Add screenshots for manual tests if appropriate

[ ] Run test locally before make a pull request

1.set kyuubi config

2.connect kyuubi successfully

3.Test LDAP InitialLdapContext failed

4.Test LDAP InitialDirContext failed

btw, https://github.com/apache/incubator-kyuubi/pull/3213#issuecomment-1210229800 these UTs can be added to the codebase too?

btw, #3213 (comment) these UTs can be added to the codebase too?
The ldap UTs code will be added.

btw, #3213 (comment) these UTs can be added to the codebase too?
The ldap UTs code will be added.

@yaooqinn Please help check the PR, I have added the LDAP UTs.

cc @turboFei can you check this, since LDAP is adopted in your environment

BatchRestApiSuite:
- basic batch rest client
- basic batch rest client with invalid user *** FAILED ***
  "org.apache.http.client.HttpResponseException: status code: 403, reason phrase:

  <meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1"/>
  <title>Error 403 LDAP InitialLdapContext search results are empty, LDAP user: user.</title>

HTTP ERROR 403 LDAP InitialLdapContext search results are empty, LDAP user: user.

URI:	/api/v1/batches/1

STATUS:	403

MESSAGE:	LDAP InitialLdapContext search results are empty, LDAP user: user.

SERVLET:	org.glassfish.jersey.servlet.ServletContainer-7b1d7f74

Powered by Jetty:// 9.4.48.v20220622

  " did not contain "Error validating LDAP user: uid=user" (BatchRestApiSuite.scala:75)

could you help fix above UT failure?

AllKyuubiConfiguration:
- Check all kyuubi configs *** FAILED ***
  java.lang.AssertionError: assertion failed: /home/runner/work/incubator-kyuubi/incubator-kyuubi/docs/deployment/settings.md out of date, please update doc with KYUUBI_UPDATE=1 build/mvn clean install -Pflink-provided,spark-provided,hive-provided -DwildcardSuites=org.apache.kyuubi.config.AllKyuubiConfiguration

KYUUBI_UPDATE=1 build/mvn clean install -Pflink-provided,spark-provided,hive-provided -DwildcardSuites=org.apache.kyuubi.config.AllKyuubiConfiguration

Some examples for hadoop ldap:
hadoop.security.group.mapping=org.apache.hadoop.security.LdapGroupsMapping
hadoop.security.group.mapping.ldap.url=ldaps://ldap.hadoop.qa.ebay.com
hadoop.security.group.mapping.ldap.ssl=true
hadoop.security.group.mapping.ldap.keystore=/apache/java/jre/lib/security/cacerts
hadoop.security.group.mapping.ldap.base=dc=dev,dc=ebay,dc=com
hadoop.security.group.mapping.ldap.bind.user=cn=Directory Manager
hadoop.security.group.mapping.ldap.bind.password.file=/etc/hadoop/ldap.bind.passwd
hadoop.security.groups.cache.background.reload=true
hadoop.security.groups.cache.background.reload.threads=3
hadoop.security.group.mapping.ldap.directory.search.timeout=5000
hadoop.security.group.mapping.ldap.search.group.hierarchy.levels=100
hadoop.security.group.mapping.ldap.connection.timeout.ms=10000
hadoop.security.group.mapping.ldap.read.timeout.ms=10000
hadoop.security.group.mapping.ldap.search.filter.user=(&(objectClass=ebayUnixAccount)(uid={0}))
hadoop.security.group.mapping.ldap.search.filter.group=(objectClass=ebayUnixGroup)

fixed.

BatchRestApiSuite:
- basic batch rest client
- basic batch rest client with invalid user *** FAILED ***
  "org.apache.http.client.HttpResponseException: status code: 403, reason phrase:

  <meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1"/>
  <title>Error 403 LDAP InitialLdapContext search results are empty, LDAP user: user.</title>

HTTP ERROR 403 LDAP InitialLdapContext search results are empty, LDAP user: user.

URI:	/api/v1/batches/1

STATUS:	403

MESSAGE:	LDAP InitialLdapContext search results are empty, LDAP user: user.

SERVLET:	org.glassfish.jersey.servlet.ServletContainer-7b1d7f74

Powered by Jetty:// 9.4.48.v20220622

  " did not contain "Error validating LDAP user: uid=user" (BatchRestApiSuite.scala:75)

could you help fix above UT failure?

fixed

FYI:
It is better to execute below command, modify the docs manually is difficult.
KYUUBI_UPDATE=1 build/mvn clean install -Pflink-provided,spark-provided,hive-provided -DwildcardSuites=org.apache.kyuubi.config.AllKyuubiConfiguration

FYI: It is better to execute below command, modify the docs manually is difficult.
KYUUBI_UPDATE=1 build/mvn clean install -Pflink-provided,spark-provided,hive-provided -DwildcardSuites=org.apache.kyuubi.config.AllKyuubiConfiguration

@turboFei upgraded, thanks.

The LGTM, please rebase master and resolve conflicts

Codecov Report

Merging #3213 (6f680df) into master (a63587b) will increase coverage by 0.25%.
The diff coverage is 96.22%.

:exclamation: Current head 6f680df differs from pull request most recent head e03e036. Consider uploading reports for the commit e03e036 to get more accurate results

@@             Coverage Diff              @@
##             master    #3213      +/-   ##
============================================
+ Coverage     51.06%   51.32%   +0.25%
  Complexity       13       13
============================================
  Files           470      468       -2
  Lines         26224    26173      -51
  Branches       3626     3622       -4
============================================
+ Hits          13392    13433      +41
+ Misses        11556    11462      -94
- Partials       1276     1278       +2

Impacted Files
Coverage Δ

...uthentication/LdapAuthenticationProviderImpl.scala
94.00% <94.44%> (+2.00%)
:arrow_up:

...in/scala/org/apache/kyuubi/config/KyuubiConf.scala
97.43% <100.00%> (+0.03%)
:arrow_up:

...rg/apache/kyuubi/ctl/cmd/log/LogBatchCommand.scala
78.00% <0.00%> (-4.00%)
:arrow_down:

...ache/kyuubi/operation/KyuubiOperationManager.scala
80.82% <0.00%> (-1.37%)
:arrow_down:

...he/kyuubi/ha/client/etcd/EtcdDiscoveryClient.scala
67.50% <0.00%> (-0.63%)
:arrow_down:

...a/org/apache/kyuubi/service/TFrontendService.scala
91.17% <0.00%> (-0.30%)
:arrow_down:

...c/main/java/org/apache/kyuubi/jdbc/hive/Utils.java
36.78% <0.00%> (-0.11%)
:arrow_down:

.../java/org/apache/kyuubi/jdbc/KyuubiHiveDriver.java
4.87% <0.00%> (ø)

.../org/apache/kyuubi/jdbc/hive/KyuubiConnection.java
4.16% <0.00%> (ø)

...a/org/apache/kyuubi/jdbc/hive/common/HiveChar.java

... and 8 more

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more

Now the only remaining comments is https://github.com/apache/incubator-kyuubi/pull/3213#discussion_r947509152
I think we can fallback to get binddn according to guidKey & baseDn if AUTHENTICATION_LDAP_BINDDN is not specified.
Otherwise, the customers that use the old kyuubi version will meet failure when upgrading kyuubi.
@dev-lpq

thanks for your contribution @dev-lpq , will merge it after UT passed.

thanks @dev-lpq , merged to master

could you bind your<EMAIL_ADDRESS>to your github account?
FYI: https://github.com/settings/emails

<EMAIL_ADDRESS>
@turboFei Added, thanks.

could you bind your<EMAIL_ADDRESS>to your github account?
FYI: https://github.com/settings/emails
@dev-lpq

@turboFei  Added, thanks.

merged to 1.6 as well

@dev-lpq @turboFei after a detailed look and comparing to the hive codebase, I think the current implementation is not mature. As 1.6 is going to RC, I prefer to revert this change in branch-1.6 and leave it n master to get more time to improve it.

The following logic is not correct I think
val mail = if (!hasDomain(user) && domain.nonEmpty) (user + "@" + domain.get) else user
...
nameEnuResults = ctx.search(baseDn, s"(mail=$mail)", sc)

I can not fully understand what's purpose of kyuubi.authentication.ldap.attrs by reading the descriptio "Specifies part of the search as an attribute returned by LDAP.  For example: mail,name." and code. BTW, I don't find a similar conf key in Hive.
I don't have much experience w/ LDAP, and I would like to provide similar configurations w/ Hive unless we have strong reasons that we can give a better solution.

Basically, the principle is to give users the same(or better) configuration keys w/ Hive.
For implementation, unboundid-ldapsdk claims to provide better API than JDK, I think it is valued to have a try, another option is referring to Hive code.

Thank you  for your answer, the current way to verify ldap:
1.access to ldap datasource
kyuubi.authentication.ldap.bindpw & kyuubi.authentication.ldap.binddn
2. query target user info
nameEnuResults = ctx.search(baseDn, s"(mail=$mail)", sc)
3. check the account and password according to kyuubi.authentication.ldap.attrs.
I will research unboundid-ldapsdk and hive LDAP , and provide a better solution.

@dev-lpq, thanks for your passion and patience


Add tests for all major backend functionality

This includes at least:

[x] Users
[x] Sessions
[x] Securities
[x] Prices
[x] Accounts
[x] Transactions
[x] Reports
[x] Lua

[x] reports

[x] securities

[x] accounts

[x] dates

[x] prices

[x] balances

[ ] Imports

[x] Gnucash

[x] OFX

[x] banking

[x] credit card

[x] investments

This issue was finished up with https://github.com/aclindsa/moneygo/pull/31


Switching contexts using kcs affects all terminals

Because kcs is manipulating files in the ~/.kube directory (by default), it's not possible to have one Kubernetes context in one terminal and a different Kubernetes context in a different terminal. I don't think is any workaround at this time.

IMHO that's possible if you have more than one directory with configs. And use command line to define which one to use (if not selected will be used default one). Do you want me to draft this idea?

AIUI moving to multiple directories would also involve setting the KUBECONFIG environment variable, and if we're going to go down that route then we don't need multiple directories at all (we could just set KUBECONFIG to a file in the default $HOME/.kube directory. That being said, if you'd like to explore the idea and submit a PR for consideration, that'd be great. Thanks!

I'm closing this issue as the kcs functionality I'm seeking is provided by ktx (https://github.com/heptiolabs/ktx/).


tests: Update observability integration tests

Context
Update observability integration test to follow standardized approach and use common chisme code (see minio tests)
What needs to get done
Update to follow standardized approach
Definition of Done
Observability integration tests use common chisme code

Closing since this was created by mistake


Feature/update apriltags

updated some formats for the apriltag module and included the documentation

I'll trust that you've tested it on a drone.
I was going to submit a PR this weekend to format all the code anyways, so formatting is whatever.


Remove borders

Remove the borders to make the content more readable. If you don't remove the borders, add padding the items so the borders won't be so tight to the text.

I love the layout of your header and navigation bar.  The borders are disrupting your clean, neat styling.


Column name not output in csv format

Describe the bug
When it is an Excel format, the column name is output correctly, but when it is a csv format, the column name is not output correctly.
To Reproduce
If you set the option to "-f csv" in the fosslight_dependency_scanner to open and check the generated csv file after running, there is no column name.
Expected behavior
The column name should be output in the same way as when output in excel format.
System environment (please complete the following information):

OS: Windows
Python : python3.9

fosslight util(https://github.com/fosslight/fosslight_util/pull/171)에서 수정하였습니다.

수정된 건으로 Close합니다.


Vcpkg asset cache

Switch to asset cache to eliminate potential network download issues.
Asset Caching

This is done.


Definition error in 2-Regression/4-Logistic/README.md

Error in the definition of false positive and false negative corrected the same.

this is so confusing!

@jlooper hey
Sorry to confuse you but you should have a look again in the matrix that you are referring

0
1

0(Not orange)
TN
FP

1(orange)
FN
TP

so
false positive - when reality = Not orange and prediction = Orange
false negative - when reality = Orange and prediction = Not Orange
and that is what is mentioned wrongly in the points thanks.

we went down this road in July: https://github.com/microsoft/ML-For-Beginners/pull/235


update clang to v18

Update clang version.
The changes to rbperf.h are due to clang-format changes.

Shelving this for now. We need to wait for https://github.com/KyleMayes/install-llvm-action/issues/75 to be fixed.


Update cloudknox-onboard-aws.md

There are 6 steps, instead of 5.

@marcelodiiorio : Thanks for your contribution! The author(s) have been notified to review your proposed change.


install.sh installs old version that is incompatible with macosx

might be related to #12, #11
Both running install.sh and installing luaver with homebrew installs an old version of luaver. This basically makes the function __luaver_get_platform() outdated. In MacOSX systems this means that luaver thinks it's running on linux, and compilation obviously fails.

related to #8

@OrenjiAkira Homebrew version won't not run install.sh.
Have you read caveats of luaver?
They will be shown on the installation and appears on brew info luaver.

@umireon The problem is that install.sh downloads a luaver script file from a server, which is an outdated version of the file. It doesn't matter whether you use homebrew or not. Manually editting the luaver script file after installation and apply the fix from #8 solves the problem locally. All that is needed is to update the file hosted in the server.

Yes, install.sh has a problem with macOS since it installs 1.0.0 which is not compatible with macOS.
And, no, homebrew version has no problem with macOS because it is patched.
Have you added if which luaver > /dev/null; then . which luaver; fi in .bashrc or .bash_profile as written in caveats?
$ brew info luaver
luaver: stable 1.0.0, HEAD
Manage and switch between versions of Lua, LuaJIT, and Luarocks
https://github.com/DhavalKapil/luaver
/usr/local/Cellar/luaver/1.0.0 (5 files, 31.7K) *
  Built from source on 2016-12-20 at 03:28:51
From: https://github.com/Homebrew/homebrew-core/blob/master/Formula/luaver.rb
==> Dependencies
Required: wget ✔
==> Caveats
Add the following at the end of the correct file yourself:
  if which luaver > /dev/null; then . `which luaver`; fi

I just retested the homebrew version and it works fine. When I created the issue I recall that even the homebrew version had this problem. I may be mistaken because the date of the patch is earlier than the issue by a couple of weeks, meaning it should have been patched by the time I tested it. Or I just don't remember it well. I apologize for not being updated on the homebrew version's status.
The issue remains regarding install.sh, though.

@OrenjiAkira No problem. Homebrew version has a bit confusing installation.
I hope the next release of luaver will solve the issue with install.sh on macOS.

just out of curiosity, why doesn't homebrew have the latest version here?  Why does it need to be patched?

Check the details on formula revisions:
https://github.com/Homebrew/brew/blob/master/docs/Formula-Cookbook.md
You can specify a revision of a version, given as a commit hash.  It seems applicable here.

Formula revision is not intended to include an arbitrary version of softwave into Homebrew but to modify Formula itself.
Anyhow, unversioned things will never be accepted in Homebrew.
Instead, you can try HEAD build.

Revisions were a bit overloaded, and I was speaking from outdated information, my bad : https://github.com/Homebrew/brew/issues/38
I'm pretty sure there's still a way to do this via git commit and version number.  If I have time, I'll try it out.

Here's a pull request for brew-core for luaver: https://github.com/Homebrew/homebrew-core/pull/8747
It cleans up the install a bit, and enables git-based version and patching via revisions. Let me know if you like it.

One more quick note... once a new stable version is released, you can change these lines:
  url "https://github.com/DhavalKapil/luaver.git",
      :revision => "61861f2a966645a663971cd4e26d2a6104d075f6"
  version "1.0.0-p1"

to this:
  url "https://github.com/DhavalKapil/luaver.git",
      :tag => "1.0.1"

should make upgrading a bit easier

The install.sh problem can be resolved by #43.

Closing this now. Let me know if you still face this issue.


docs: Fix spelling in the contributing guide

Summary
Fixing a typo in the contributing guideline.
Checklist

[x] I understand and agree to the Code of Conduct.
[x] I have followed the Style Guide for Python Code as best as possible for the submitted code.
[x] I have added pytest unit tests for any new functionality.

Thanks!


PopUp After submitting form

We can have popup after submitting form for user interface
https://github.com/khushi-joshi-05/Food-ordering-website/assets/109230049/c122a65a-f395-4f5b-aff7-123339ecd53f
No popup only page
https://github.com/khushi-joshi-05/Food-ordering-website/assets/109230049/afcc5398-a868-4721-bb86-1af0826da5fa

I would like to contribute for this project. Please assign this task to me under GSSoC'24 with required labels.


OpenIdConnectOptions Support for Absolute URIs

While I can appreciate the desire to simplify and abstract the OIDC configuration as much as possible, I've run into a handful of scenarios where the inability to define absolute URIs for the IDP Authorization Endpoint URI and the CallbackPath (Redirect) URI has been limiting and frankly feels a little dirty to step around.
One scenario required that my application (the relying party) point to an intermediate/proxy location as my "IDP" authorization endpoint in order for domain specific user claims to be appended to the authorization request query string parameters before redirecting to the actual IDP authorization endpoint. All other OIDC transactions would then happen between my application and the IDP. As of now there is no was to explicitly set/override the authorization endpoint or other values that typically come from the well known endpoint metadata. In working through SSO setup with various SaaS providers, I've learned that this kind of configuration flexibility is well supported outside of .NET.
Another scenario that I believe to be less of a fringe case than the previous deals with CallbackPath generation. In our organization, SSL is applied at the load balancer, not at the application server level. Because the OpenIdConnectOptions expect a relative path when specifying the "CallbackPath", this creates the problem of the "redirectUri" parameter being "http" and not "https" because the library auto generates the base URL and scheme. The result is that when the IDP attempts to send the auth code back to my application, I get a "Correlation Error" because the hop from "http" to "https" results in a remote failure. I've seen some feedback on this item related to enabling forwarding headers in Identity Server etc. but we don't use Identity Server and don't have the latitude to go that route.
This is how I've worked around this scenario:
.AddOpenIdConnect("oidc", oidcConnectionOptions =>
{
    oidcConnectionOptions .Events = new OpenIdConnectEvents
    {
        OnRedirectToIdentityProvider = redirectContext=>
        {
            if (!_env.IsEnvironment("Debug"))
            {
                //Force scheme of redirect URI
                redirectContext.ProtocolMessage.RedirectUri = redirectContext.ProtocolMessage.RedirectUri.Replace("http://", "https://", StringComparison.OrdinalIgnoreCase);
            }
            return Task.FromResult(0);
        }
    };

    //Set relative CallbackPath (Redirect URI)
    oidcConnectionOptions.CallbackPath = "/access/authenticate";

    //Set other options here....
)};

This would be my preference:
.AddOpenIdConnect("oidc", oidcConnectionOptions =>
{
    var baseAddress = new Uri("https://myhostname.com");
    var callbackPath = new Uri("/access/authenticate");
    oidcConnectionOptions.AbsoluteCallbackPath = new Uri(baseAddress, callbackPath);

    //Maybe something like this for metadata endpoint overrides
    var proxyBaseAddress = new Uri("https://idpproxy.com");
    var proxyAuthPath = new Uri("/sss/oauth2/authorize");
    oidcConnectionOptions.AuthorizationEndpointOverride = new Uri(proxyBaseAddress, proxyAuthPath);

    //Set other options here....
)};

Previously discussed. There are many other things broken if your request fields are not correct, this one is just more obvious. The recomended solution is https://docs.microsoft.com/en-us/aspnet/core/host-and-deploy/proxy-load-balancer?view=aspnetcore-2.1#when-it-isnt-possible-to-add-forwarded-headers-and-all-requests-are-secure


Interface mocks cannot be bound in inversify containers

We use inversify for IOC (https://inversify.io/). Injecting mocks is an important testing use case for us. However, we found that interface mocks cannot be properly bound in inversify contexts.
Here's code combining inversify and ts-mockito that shows the problem:
import "reflect-metadata";
import { Container } from "inversify";
import { instance, mock } from "ts-mockito";

const container = new Container();

// Binding a class mock: works as expected
class Bar {}

const barMock = mock(Bar);
container.bind<Bar>("Bar").toConstantValue(instance(barMock));
const barMockGet = container.get<IFoo>("Bar"); // => barMock (expected)

// Binding an interface mock: doesn't work
interface IFoo {
  prop: string;
}

const ifooMock = mock<IFoo>();
container.bind<IFoo>("IFoo").toConstantValue(instance(ifooMock));
const ifooMockGet = container.get<IFoo>("IFoo"); // => null (should be ifooMock)

After looking into the inversify code, it seems that the problem is that inversify.isPromise incorrectly returns true for interface mocks, which makes invetsify try to resolve the mock, resulting in a null value:
import { isPromise } from "inversify/lib/utils/async";

const isBarMockPromise = isPromise(barMock); // => false (expected)
const isIfooMockPromise = isPromise(ifooMock); // => true (should be false)

The inversify code for isPromise is here: https://github.com/inversify/InversifyJS/blob/master/src/utils/async.ts

ts-mockito is using Proxy for interfaces mocking. So when InversifyJS wants to check if then is a function:
function isPromise(object) {
    var isObjectOrFunction = (typeof object === 'object' && object !== null) || typeof object === 'function';
    return isObjectOrFunction && typeof object.then === "function";
}

ts-mockito immediately creates mock function for then - thats why InversifyJS thinks its a mock. And ts-mockito needs to do that because it cannot figure out if its a part of interface or not (interfaces are not available in runtime).

As a work around you can do when(mockedFoo['then']).thenReturn(undefined); - but I think its ugly.

Faced this problem today.
Currently resolved with tiny wrapper function based on @NagRock suggestion
function mockInterface<T>(): T {
  const mocked = mock<T>();
  when((mocked as any).then).thenReturn(undefined);
  return mocked;
}

@NagRock Just encountered the same problem, but unfortunately I didn't see this post soon enough so had to spend a lot of time debugging. Since then is so important for identifying a Promise perhaps we should include it in the list of excludedFunctionNames inside MockableFunctionsFinder?

Yeah, also spend a long time to figure this  issue out.


Misleading note on how to log to Log Stream

Tip 30 (https://microsoft.github.io/AzureTipsAndTricks/blog/tip30.html) states that when you call Trace.WriteLine from an ASP.Net MVC application, the text will appear in the Log Stream.  This is true from an ASP.Net MVC application, but not ASP.Net Core.  From an ASP.Net Core application, writing to Trace.WriteLine does not direct to the Log Stream.  The only thing I have found that will write to Log Stream from ASP.Net Core in a Windows container is by writing to ILogger.  Oddly, Trace.WriteLine does direct to the Log Stream from Linux containers.
I am requesting that the documentation reflect these nuances.

Hi @cecilphillip, could you please take a look at this question for tip 30? Thank you.

Hey @mbcrump, do you know who would be responsible for updating this?

Hey @mbcrump, do you know who would be responsible for updating this?

Hey @coder333,
This article was meant for ASP.NET MVC, not core. It doesn't state anywhere in the article it is for core.
What could be helpful is to add a note at the top mentioning that this article is for ASP.NET MVC (targeting the .NET Framework).  // @vaheminasyan2
Thanks for the feedback!
MC

Hey @coder333,
This article was meant for ASP.NET MVC, not core. It doesn't state anywhere in the article it is for core.
What could be helpful is to add a note at the top mentioning that this article is for ASP.NET MVC (targeting the .NET Framework).  // @vaheminasyan2
Thanks for the feedback!
MC

Thank you @mbcrump for taking a quick look at this. I updated the tip to include your note.

Thank you @mbcrump for taking a quick look at this. I updated the tip to include your note.


fix free_problem

solve #234

in-line done
all tests still pass

Okay, so I dug into this.
From the CPLEX docs for CPXfreeProb, lp_p is A pointer to a CPLEX problem object as returned by CPXXcreateprob/CPXcreateprob., not a variable holding a pointer as originally thought.
The confusion stems from the fact that closeCPLEX requires A pointer to a variable holding the pointer to the CPLEX environment as returned by CPXXopenCPLEX/CPXopenCPLEX.. So we have
https://github.com/JuliaOpt/CPLEX.jl/blob/0ab8e859e05d07f3230d6375b929413eb1d3d291/src/cpx_env.jl#L44-L51

Is model.lp set to C_NULL after the call? If not, we should do so to avoid crashes.

Is model.lp set to C_NULL after the call?

No. Good point.

Is model.lp set to C_NULL after the call?

It throws an error when model.lp is set to C_NULL after the call (usually after 600 calls of CPLEX.free_problem) :
error in running finalizer: CPLEX.CplexError(code=1004, msg="CPLEX Error  1004: Null pointer for required data.
")

Is model.lp set to C_NULL after the call?

It throws an error when model.lp is set to C_NULL after the call (usually after 600 calls of CPLEX.free_problem) :
error in running finalizer: CPLEX.CplexError(code=1004, msg="CPLEX Error  1004: Null pointer for required data.
")

I confirm with the script of Issue #234 .
I tried to add notify_freed_model(model.env) such as:
function free_problem(model::Model)
    stat = @cpx_ccall(freeprob, Cint, (Ptr{Cvoid}, Ptr{Cvoid}), model.env.ptr, model.lp)
    model.lp = C_NULL
    notify_freed_model(model.env)
    if stat != 0
        throw(CplexError(model.env, stat))
    end
end

but I obtain
error in running finalizer: AssertionError(msg="env.num_models > 0")
after around 500 iterations of script of Issue #234 .

Clearly we should avoid making cpx_ccalls when either the environment or lp model pointer is C_NULL.

Just like this?
function free_problem(model::Model)
  if (model.env != C_NULL) && (model.lp != C_NULL)
    stat = @cpx_ccall(freeprob, Cint, (Ptr{Cvoid}, Ptr{Cvoid}), model.env.ptr, model.lp)
    model.lp = C_NULL
    if stat != 0
        throw(CplexError(model.env, stat))
    end
  end
end

It seems to work.
We should not use notify_freed_model(model.env)?

Instead of free_prolem, modify
https://github.com/JuliaOpt/CPLEX.jl/blob/0ab8e859e05d07f3230d6375b929413eb1d3d291/src/cpx_model.jl#L13-L16
to be
    function model_finalizer(model)
        if model.lp != C_NULL
            free_problem(model)
        else
            # User must have called `free_problem` directly.
        end
        notify_freed_model(env)
    end

Almost there @MarcMush. Can you confirm that the tests still pass and that the script in #234 runs without crashing.

I tested @MarcMush  branch.
Everything passes and the script in #234 does not crash.

Thanks @MarcMush and @trigaut


abc-verifier: 20160818 -> 2018-07-08

Now hosted on github.
Bump forward from 2016.

[x] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS)
Built on platform(s)

[x] NixOS
[ ] macOS
[x] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
[x] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[ ] Fits CONTRIBUTING.md.

Success on aarch64-linux (full log)
Attempted: abc-verifier
Partial log (click to expand)
[100%] Built target abc
installing
post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/0i7chzzmbrfhdryvn9w0kxhr2h8j78np-abc-verifier-2018-07-08
shrinking /nix/store/0i7chzzmbrfhdryvn9w0kxhr2h8j78np-abc-verifier-2018-07-08/bin/abc
strip is /nix/store/0pjsgkxz0rp5baycq5sp2s72lrr5q9sg-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/0i7chzzmbrfhdryvn9w0kxhr2h8j78np-abc-verifier-2018-07-08/bin
patching script interpreter paths in /nix/store/0i7chzzmbrfhdryvn9w0kxhr2h8j78np-abc-verifier-2018-07-08
checking for references to /build in /nix/store/0i7chzzmbrfhdryvn9w0kxhr2h8j78np-abc-verifier-2018-07-08...
/nix/store/0i7chzzmbrfhdryvn9w0kxhr2h8j78np-abc-verifier-2018-07-08

Success on x86_64-darwin (full log)
Attempted: abc-verifier
Partial log (click to expand)
Scanning dependencies of target abc
[100%] Building C object CMakeFiles/abc.dir/src/base/main/main.c.o
[100%] Linking CXX executable abc
[100%] Built target abc
installing
post-installation fixup
strip is /nix/store/7ddbq63v97nk8gkbf7gcsfmby37h6gbl-cctools-binutils-darwin/bin/strip
stripping (with command strip and flags -S) in /nix/store/yd3iq98n8nmaicq3hm5y9diyla9k8qw7-abc-verifier-2018-07-08/bin
patching script interpreter paths in /nix/store/yd3iq98n8nmaicq3hm5y9diyla9k8qw7-abc-verifier-2018-07-08
/nix/store/yd3iq98n8nmaicq3hm5y9diyla9k8qw7-abc-verifier-2018-07-08

@GrahamcOfBorg build pkgsMusl.ab-verifier

No attempt on x86_64-linux (full log)
The following builds were skipped because they don't evaluate on x86_64-linux: pkgsMusl.ab-verifier
Partial log (click to expand)
Cannot nix-instantiate `pkgsMusl.ab-verifier' because:
error: attribute 'ab-verifier' in selection path 'pkgsMusl.ab-verifier' not found

No attempt on x86_64-darwin (full log)
The following builds were skipped because they don't evaluate on x86_64-darwin: pkgsMusl.ab-verifier
Partial log (click to expand)
Cannot nix-instantiate `pkgsMusl.ab-verifier' because:
error: Musl libc only supports Linux systems.

No attempt on aarch64-linux (full log)
The following builds were skipped because they don't evaluate on aarch64-linux: pkgsMusl.ab-verifier
Partial log (click to expand)
Cannot nix-instantiate `pkgsMusl.ab-verifier' because:
error: attribute 'ab-verifier' in selection path 'pkgsMusl.ab-verifier' not found

Oops typo.
@GrahamcOfBorg build pkgsMusl.abc-verifier

No attempt on x86_64-darwin (full log)
The following builds were skipped because they don't evaluate on x86_64-darwin: pkgsMusl.abc-verifier
Partial log (click to expand)
Cannot nix-instantiate `pkgsMusl.abc-verifier' because:
error: Musl libc only supports Linux systems.

Success on x86_64-linux (full log)
Attempted: abc-verifier
Partial log (click to expand)
[100%] Built target abc
installing
post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/lpfbfbpg7ixs3ip0wd7fhlkwwcx616wf-abc-verifier-2018-07-08
shrinking /nix/store/lpfbfbpg7ixs3ip0wd7fhlkwwcx616wf-abc-verifier-2018-07-08/bin/abc
strip is /nix/store/4qvrxzxa535y8304mk195x50b6p9607d-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/lpfbfbpg7ixs3ip0wd7fhlkwwcx616wf-abc-verifier-2018-07-08/bin
patching script interpreter paths in /nix/store/lpfbfbpg7ixs3ip0wd7fhlkwwcx616wf-abc-verifier-2018-07-08
checking for references to /build in /nix/store/lpfbfbpg7ixs3ip0wd7fhlkwwcx616wf-abc-verifier-2018-07-08...
/nix/store/lpfbfbpg7ixs3ip0wd7fhlkwwcx616wf-abc-verifier-2018-07-08

Success on aarch64-linux (full log)
Attempted: pkgsMusl.abc-verifier
Partial log (click to expand)
[100%] Built target abc
installing
post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/k1yjyiqq46wpr749kkyjx84r1mq8c9sn-abc-verifier-2018-07-08
shrinking /nix/store/k1yjyiqq46wpr749kkyjx84r1mq8c9sn-abc-verifier-2018-07-08/bin/abc
strip is /nix/store/5ihkpxfwb2s4k92pdl82pg9k7dbr99k6-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/k1yjyiqq46wpr749kkyjx84r1mq8c9sn-abc-verifier-2018-07-08/bin
patching script interpreter paths in /nix/store/k1yjyiqq46wpr749kkyjx84r1mq8c9sn-abc-verifier-2018-07-08
checking for references to /build in /nix/store/k1yjyiqq46wpr749kkyjx84r1mq8c9sn-abc-verifier-2018-07-08...
/nix/store/k1yjyiqq46wpr749kkyjx84r1mq8c9sn-abc-verifier-2018-07-08

Failure on x86_64-linux (full log)
Attempted: pkgsMusl.abc-verifier
Partial log (click to expand)
cannot build derivation '/nix/store/hjbavvknkc7k17c6nl2a4ynd9h30x4hq-perl-XML-Parser-2.44.drv': 5 dependencies couldn't be built
cannot build derivation '/nix/store/1h63xicm2f5vgawlkjgixjn6bz0az7vq-intltool-0.51.0.drv': 5 dependencies couldn't be built
cannot build derivation '/nix/store/9rrnbnm3bhha39i2gpgxrp9mjadzqvyc-gnome-doc-utils-0.20.10.drv': 10 dependencies couldn't be built
cannot build derivation '/nix/store/ki62lwjd409c641j6xzr9cq8kxvklrkw-shadow-4.5.drv': 11 dependencies couldn't be built
cannot build derivation '/nix/store/3czgxwc74yb54h3brlm292cpmvi9h9bb-util-linux-2.32.drv': 5 dependencies couldn't be built
cannot build derivation '/nix/store/5rqshynav9c7pw3875181wgivwmznv3p-e2fsprogs-1.44.2.drv': 7 dependencies couldn't be built
cannot build derivation '/nix/store/azqwjlv2jl13vywf3m3a7bgcpcbmd4lr-libarchive-3.3.2.drv': 12 dependencies couldn't be built
cannot build derivation '/nix/store/ci1qidycqs3fahj8fndpmgfarbsdc7g5-cmake-3.11.2.drv': 11 dependencies couldn't be built
cannot build derivation '/nix/store/qf0mbrqkbp29crx8rbcvgpg1rwgwccx8-abc-verifier-2018-07-08.drv': 5 dependencies couldn't be built
error: build of '/nix/store/qf0mbrqkbp29crx8rbcvgpg1rwgwccx8-abc-verifier-2018-07-08.drv' failed


Provide the ability to upload patches #78

Created new endpoints for the package upload operation and refactored the healthCheckJob code to be usable by multiple job.
The import package page:

The import package result:

The modification for file section:

There are no tests added yet, I will add them in a future commit.


Remove Pods Dependencies & OCMock

OCMock is only needed in a few tests, we can replace these with doubles and everything is a-ok. Also removes the need for a Podfile, so no additional steps are needed to run the tests.

damn you @jspahrsummers!
lgtm though


Nuget

Hi,
is FluentFTP available on Nuget?
Looking the code it seems you have the scripts to create the nuget packaged, but I can't find it.
Thanks
.u

I'm setting up a MyGet system this week.

Thanks.
Let me know when is on Nuget.

I've just installed it through NuGet and it worked like a charm (good timing bu the way ;-).
Is there a way to bundle an X509 certificate (from a file) or do I have to register it in the X509Store, and if so, which one?
Regards.

I've opened a new issue for the SFTP question.


Test with complex numbers and complex ffts

Will the test work for fully-complex inputs (where imaginary component is different from zero)?

Right. I was worried about the failure with complex numbers and just tried the same input with a different data type. However, if I use
  x = np.random.randint(-30, 30, size=(nx, nx)) + np.random.randint(-30, 30, size=(nx, nx)) *1j
  h = np.random.randint(-20, 20, size=(nh, nh)) + np.random.randint(-20, 20, size=(nh, nh)) * 1j

The test fails again. So there must be something else going wrong there...

No worries, I'm missing an extra np.conj, I should have a fix with full complex support shortly!

Thanks! Also, thanks a lot for releasing this code to the public domain. I will use it in another piece of software (released with the BSD license), with an acknowledgement and a link to this page. Let me know if it is sufficient or you would like some other mention/reference. I haven't found a CITATION guideline or similar :).

Yay, published 1.1.1 to PyPI, please check it out 🥳!
I hope I didn't break anything 😅…

Let me know if it is sufficient or you would like some other mention/reference

This isn't just sufficient, it's more than sufficient 🙏. No CITATION, I'm an independent programmer, and signal processing is just my side hobby.

@fasiha: In order to limit the dependencies, I would like to include the python source (+ array_range and nextprod) as part of the software I distribute, with proper acknowledgement. This is why I asked :). The unlicense allows it, but I still like to make sure that the work of different people is properly recognized.

Thank you for taking attribution and licenses so seriously, as both a user and as an open source author I truly appreciate it!


Cannot find module (Documents folder)\install.js

Yo.
Trying to install Karma with the PhantomJS launcher on Win8.1x64.
It works on everyone else's machine. Here are the steps we're taking:
Install Node via .msi for 64 bit
npm install karma --save-dev
npm install karma-jasmine
npm install -g karma-cli
Download PhantomJS static binary from http://phantomjs.org/download.html
npm install karma-phantomjs-launcher
And that's where, on my machine, for some reason I cannot figure out (I have checked SET and ENV, etc.), I get the following error:
npm install karma-phantomjs-launcher
-
><EMAIL_ADDRESS>install C:\InComm\enterprise-apps\Web\Admin\Scripts\Tests\node_modules\karma-phan
tomjs-launcher\node_modules\phantomjs
> node install.js

module.js:338
    throw err;
          ^
Error: Cannot find module 'C:\Users\celiyah\Documents\install.js'
    at Function.Module._resolveFilename (module.js:336:15)
    at Function.Module._load (module.js:278:25)
    at Function.Module.runMain (module.js:501:10)
    at startup (node.js:129:16)
    at node.js:814:3
npm ERR! Windows_NT 6.3.9600
npm ERR! argv "node" "C:\\Users\\celiyah\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js"
 "install" "karma-phantomjs-launcher"
npm ERR! node v0.12.0
npm ERR! npm  v2.6.0
npm ERR! code ELIFECYCLE

npm ERR<EMAIL_ADDRESS>install: `node install.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the<EMAIL_ADDRESS>install script 'node install.js'.
npm ERR! This is most likely a problem with the phantomjs package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node install.js
npm ERR! You can get their info via:
npm ERR!     npm owner ls phantomjs
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     C:\InComm\enterprise-apps\Web\Admin\Scripts\Tests\npm-debug.log

I checked with the phantomjs folks and they say it is not their issue since npm isn't even getting to the phantomjs install package, but when I try to install phantomjs I get the same error.
Frustratingly, npm install karma-chrome-launcher works fine.

Could you try installing phantomjs 2 manually? Also what is the output when you install phantomjs on its own?

Yo, left this in the wrong thread, so reposting it here:
Kind of a strange directory setup anyway. I had a problem for months in a windows environment with Node. Kept looking in my Documents folder for install.js for dependencies, even when the bloomin' version was defined in the original install.js deps. Anyways, my final solution to all these Node EPERM or ENOENT errors on Windows (really):
Nuke Windows. Start over. Install Node.js fresh. Globally install NPM. Disable original NPM (where npm). Globally install your command line utilities (e.g., karma-cli). Then install anything else you need.
Still trying to figure out whether to blame Ballmer or Dahl.

Thanks for the answer, sounds like computers were doing what computers can do best, not working..


Make rdbms data bag optional

Description
If rdbms data bag does not exist, use the dbuser and dbpassword from attributes
Issues Resolved
Fix #98
Contribution Check List

[ ] All tests pass.
[ ] New functionality includes testing.
[ ] New functionality has been documented in the README if applicable

Do we perhaps need to add tests for the with/without data bag logic? Maybe just a ChefSpec?

@gsreynolds It would be good to have those tests in place

Travis failures in latest commit are due to rundeck_api_client library loading in serverspec testing (kitchen-vagrant vs kitchen-dokken locations in serverspec spec_helper.rb), so unrelated to PR. Not sure why between 8def37ee6a8143564dd6ffb67018e86aa7265022 that was green and 5898717bbc7b4b2c4df13477d746e4a796ee67ca those jobs are failing though...
UNIT_AND_LINT job was successful however: https://travis-ci.org/sous-chefs/rundeck/jobs/271993370

Rebased branch from master, changes from #177 caused conflicts in recipes/_data_bags.rb

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

Comments from Reviewable

@gsreynolds we can probably get this merged in sometime soon with the uni test fixes.

If this is still needed please reopen 👍


Last sync info displayed

After sync is completed current date and time is saved in shared preferences and displayed accordingly.

This looks good to me, However I'll suggest that there is already a class in the project named "CommonToolProperties" which can be used to store key value pairs in session, this works similar to SharedPreferences and may be it internally used the SharedPreference only.
using this class  i think the code can be more manageable, and also should we store the string constant "LAST_SYNC_INFO" in some constant class rather than creating constants in the main business logic class?

runtests

This looks good to me, However I'll suggest that there is already a class in the project named "CommonToolProperties" which can be used to store key value pairs in session, this works similar to SharedPreferences and may be it internally used the SharedPreference only.
using this class i think the code can be more manageable, and also should we store the string constant "LAST_SYNC_INFO" in some constant class rather than creating constants in the main business logic class?

@IAmJaishree  I don't think class "CommonToolProperties" is right for this purpose and moreover its a Read-Only-Class. So I think that SharedPreference is the best suitable option.
And regarding constants, storing them in a separate file seems good idea. I will modify the code.

@pawanharariya You can do use "CommonToolProperties" class, I explored the codebase and found that this class is being used for this purpose only and have also tried to check its functionality by writing code as well and it's working, I am able to save values in session.
You can use this class in the following manner.
PropertiesSingleton props = CommonToolProperties.get(context, appName);
now this props field will have set and get methods where you can pass a key and get and set the value of the key as following.
GetKey:
 this.aggregateUri = props.getProperty("Key");
SetKey:
props.setProperties(Collections.singletonMap("Key", newValue.toString()));

Fixes odk-x/tool-suite-x#201


[FEATURE REQUEST] Custom mirror sources for pip and npm repositories

Please confirm these before moving forward

[X] I have searched for my feature proposal and not found a work-in-progress/duplicate/resolved/discarded issue.
[X] This proposal is a completely new feature. If you want to suggest an improvement or an enhancement, please use this template

Describe the new feature
Users can switch mirror sources for pip and npm repositories
Describe how this new feature could help users.
Provide faster download speed and better experience for users in some countries or regions that use the official warehouse to download slowly

I did not know that was possible. Can you please post an example of how do you do that?

This is my ui design.

I think this pip update is updated using commands. Here, it should be possible to add a judgment to add a temporary mirror source to realize this function. For pip and npm to check for updates, it is recommended to use the official source, after all, the official source is updated faster.

This is my ui design.

Thanks for the example, but I meant how to get pip.exe to actually change the source

Because it is updated using commands, for pip you can enable temporary source, for example pip install  [package name] -i https://pypi.tuna.tsinghua.edu.cn/simple some-package


Getting 404 Errors

Getting 404 error when trying to use youtube-dl-exec
updating yt-dlp to<EMAIL_ADDRESS>solved the issue
yt-dlp --update-to<EMAIL_ADDRESS>
This was listed as an issue a few months ago on the yt-dlp page https://github.com/yt-dlp/yt-dlp/issues/7811

great to know, thanks!


annotation-function/affixation-function inconsistency

Why not fallback to completion-extra-properties in both cases?
         (props (or props completion-extra-properties))
         (annotf (or (selectrum--get-meta 'annotation-function table pred)
                     (plist-get props :annotation-function)))
         (aff (or (selectrum--get-meta 'affixation-function table pred)
                  (plist-get completion-extra-properties
                             :affixation-function)))

Thanks, fixed by f6f02cf7d0b3d7772b840d5d9549901f9d449dc9


update to swift 4 manifest

The Swift 3 manifest will be going away in Swift 5.
@daltoniam I'm not sure the story about the PRs looking to fix the issues around the dependencies, but I'm thinking about moving those to internal system targets (something new introduced in Swift 4.2.) Thoughts?

Thanks. I still needed to get this done, I appreciate you doing this. Yeah, #520 does fix an issue with Carthage builds, but it also introduces some Objective-C bridging which I don't want to do, because that would break Linux support (which I still want to do) and I think it might break the SPM builds. All these package managers never want to play nice together 😬. Thanks again.

@daltoniam Yeah I actually tried to get linux working this weekend. It's going to be pretty painful I think, you'll have to get rid of the CFNetworking stuff. Since although the functions are defined in open source core foundation, actually trying to use them runs into this gem.

So I think to really get linux support your best bet is to use SwiftNIO for that. But I'm not sure how that fits into the work with using the Networking lib. Since I don't think that is available on Linux either.

Apple has released https://github.com/apple/swift-nio-transport-services for this task. Also there is https://github.com/apple/swift-nio-examples where some of examples will be kept.
In near future I'm looking more into SwiftNIO and how it can benefit also this project.

@fassko Sweet. I think if this lib could use SwiftNIO for all platforms it would greatly ease the maintenance cost compared to a ton of #if os checks. (Which are probably still going to be needed)

@nuclearace Well that is disappointing but not unexpected 😞. I agree with y'all, we should probably look at SwiftNIO. I might be holding on to an outdated version of the project, but I try to balance simplicity and bringing in a lot of dependencies which has been has been a bit of a pain with all the package managers. I guess that is already the status quo, so probably just makes sense to unify on a system.

@daltoniam  if #520 won't be merged, please consider https://github.com/daltoniam/Starscream/pull/482, thanks