Adding metadata in the default VectorElement metadata collection does not work

Hello,
I've seen this bug with the latest NuGet build of CartoMobileSDK.Android in a Xamarin app, as well as in the latest WinPhone10 build retreived from the GitHub releases page (sdk4-winphone-4.0.1-f956a659c22020f333398acd6f7e508b6d77ce48), still in Xamarin.
Basically the problem is that if I try to add a metadata entry to a VectorElement instance, it won't work. A workaround is to manually create and fill an instance of StringVariantMap, and then override the default collection with the new one.
To reproduce, create a new blank Xamarin Android app in Visual Studio, reference the CartoMobileSDK.Android NuGet package, and write this code in the activity:
protected override void OnCreate(Bundle bundle)
{
    base.OnCreate(bundle);

    // Set our view from the "main" layout resource
    // SetContentView (Resource.Layout.Main);

    LineStyleBuilder styleBuilder = new LineStyleBuilder
    {
        Color = new Color(255, 0, 0, 255),
    };

    MapPosVector positions = new MapPosVector();
    positions.Add(new MapPos(0, 0));
    positions.Add(new MapPos(10, 10));
    Line line = new Line(positions, styleBuilder.BuildStyle());

    // Method 1 - does not work
    line.MetaData.Add("key", new Variant("value"));
    Log.Debug("Metadata_repro", $"Method 1: {line.MetaData.Count}");
    // Output: D/Metadata_repro(31959): Method 1: 0

    // Method 2 - works
    StringVariantMap map = new StringVariantMap
    {
        { "key", new Variant("value") }
    };
    line.MetaData = map;
    Log.Debug("Metadata_repro", $"Method 2: {line.MetaData.Count}");
    // Output: D/Metadata_repro(31959): Method 2: 1
}

The documentation explicitly specifies that the Metadata getter "Returns a modifiable meta data map", which is clearly not the case.

This is actually expected behaviour. When you access line.MetaData, then a copy of the actual metadata is created. The documentation is wrong and I have pushed a fix to the develop branch. Thanks for point this out.


Tacotron2 is generating new mel spectograms and alignment for the same input text sequence while inferencing.

Hi everyone,
I am trying to generate speech from text using tacotron2 finetuned on my custom dataset. So, while inferencing, As you can see from the image attached below, I am getting mel-spectograms with different shape and alignments for the same input sequence.

I tried removing the dropout layer in prenet but then model generates no alignment at all. I tried almost all other suggested approaches for the same but it failed. I also tried to perform inference using torch.no_grad(). I don't want to generate new alignments everytime.
Please help me out. Thanks in advance!!

This is due to the prenet dropout, the problem is that the network is now dependent on the prenet dropout and does not generalize to it being off. The tacotron2 is hence not deterministic by design (at lest as implemented in this repo).

Any specific reason for pre-net dropout being different from a regular dropout?

It disrupts feedback. In mel spec the frames are highly similar, you can just predict the previous frame to do quite well on the loss fn.  If you remove the dropout then this can lead to positive feedback. I guess the solution here would be to randomly turn off prenet droput during training.

Here are useful insights about dropout in PreNet: https://github.com/mozilla/TTS/issues/50


Yotube-DL no longer recognizing "extractor upload I.D"

Checklist

[x] I'm asking a question
[x] I've looked through the README and FAQ for similar questions
[x] I've searched the bugtracker for similar questions including closed ones

Question

As the title says I tried downloading a video via D:\Youtube Videos> youtube-dl.exe -x --audio-format wav (YT LINK) but it doesn't matter what video it still doesn't want to download despite me doing this command almost every time I use YouTube-dl. Is there anyway to fix this or am I just not seeing the Issue. Any help would be appreciated. I've looked through the forms they're to confusing and don't make any sense if they fixed it or not. Its been over a year since I installed youtube-dl and I don't remember how I did it making it even more confusing when other posts have "solutions" but doesnt explain how to fix it

I came here because of this exact bug, but issue #31530 has provided a solution. You will need a version of git installed that is accessible to your command line, as well as pip (which is part of python).
Or else find another way to replace your local installation of youtube-dl with the current master version on github here.

following up on the edit I made to that comment, here:
https://github.com/ytdl-patched/youtube-dl/releases

following up on the edit I made to that comment, here: https://github.com/ytdl-patched/youtube-dl/releases

Thank you so much

Use #30839, as asked, to find this information without opening a new issue.


[Bug]: The "copy application url" link is broken inside  share modal

Is there an existing issue for this?

[X] I have searched the existing issues

Description
The "copy application url" link is broken inside share modal
Steps To Reproduce

Go to http://ee-1792.dp.appsmith.com/
Click pick any App click on deploy button
in view mode click on share button
Nlow make app as public
Click on copy application url
Now open a new browser window and paste the url
The Url is not copied

Public Sample App
No response
Environment
Release
Issue video log
No response
Version
v1.9.27

A new user has reported this issue again. I didn't see an open issue for it so I reopened this one.
https://discord.com/channels/725602949748752515/1199404583701729352


exception when runnning, in which both recovery and mask on

hello,
maybe this problem is on windows only, but I wonder if there are some solution. the problem is : when I add def SampleGalapagos(fieldset, particle, time):     if fieldset.hainan_mask[time, particle.depth, particle.lat, particle.lon] == 1:         particle.visited_hainan = 1 and def DeleteParticle(particle, fieldset, time):     particle.delete() at the same time, it will come out these problem:
INFO: Compiled GalapagosParticleAdvectionRK4SampleGalapagosAge ==> C:\Users\ADMINI~1\AppData\Local\Temp\parcels-tmp\b3cd2748cfdf0ad1ba5ba70184487415.dll
---------------------------------------------------------------------------
OSError                                   Traceback (most recent call last)
<ipython-input-19-5733fa7ebae1> in <module>
     19
     20 pset.execute(AdvectionRK4+pset.Kernel(SampleGalapagos)+Age, dt=delta(hours=1), output_file=outfile,
---> 21              recovery={ErrorCode.ErrorOutOfBounds: DeleteParticle})

E:\ProgramData\Anaconda3\envs\parcels\lib\site-packages\parcels\particleset.py in execute(self, pyfunc, endtime, runtime, dt, moviedt, recovery, output_file, movie_background_field, verbose_progress)
    418             else:
    419                 time = max(next_prelease, next_input, next_output, next_movie, endtime)
--> 420             self.kernel.execute(self, endtime=time, dt=dt, recovery=recovery, output_file=output_file)
    421             if abs(time-next_prelease) < tol:
    422                 pset_new = ParticleSet(fieldset=self.fieldset, time=time, lon=self.repeatlon,

E:\ProgramData\Anaconda3\envs\parcels\lib\site-packages\parcels\kernel.py in execute(self, pset, endtime, dt, recovery, output_file)
    274         # Execute the kernel over the particle set
    275         if self.ptype.uses_jit:
--> 276             self.execute_jit(pset, endtime, dt)
    277         else:
    278             self.execute_python(pset, endtime, dt)

E:\ProgramData\Anaconda3\envs\parcels\lib\site-packages\parcels\kernel.py in execute_jit(self, pset, endtime, dt)
    203         particle_data = pset._particle_data.ctypes.data_as(c_void_p)
    204         self._function(c_int(len(pset)), particle_data,
--> 205                        c_double(endtime), c_float(dt), *fargs)
    206
    207     def execute_python(self, pset, endtime, dt):

OSError: exception: access violation reading 0x00000186DEE83138

if there any methods or it must be on linux

Thanks @wongchieh, for reporting. I don't use windows myself, and have little experience with developing for it. This OSError: exception: access violation seems something to do with windows and/or the gcc compiler in conda. I fear we can't fix this easily.
You could try running in Scipy mode, by specifying that your particles are ScipyParticle objects instead of JITParticle objects. Note, however, that runs will then be significanlty slower.


Vite 4.0 support?

Any chance of allowing this?

yes.
use 0.3.1 (if don't like the peer-deps warning)


Use openRC depend rather than executing "service docker start" from "workflow-helper" script

https://github.com/OpenRC/openrc/blob/master/service-script-guide.md#the-depend-function

@invidian @mrmrcoleman  if we want to use the depend the right way, i can think of this as a solution:

create a docker.rc that will include copying registry certificate (ca.pem) into /etc/docker/....
this docker.rc will eventually replace /etc/init.d/docker in the worker node later.
modify all init scripts in osie/installer to add the new rc file and a new rc_add entry
modify workflow-helper.rc and add depend(){need docker}
modify workflow-helper.sh to remove the starting of docker service and other things.

or do you have any other simpler suggestions? maybe i am missing something.

If copying Docker registry certificate is only needed for workflow-helper.sh, I think it's fine to keep it in the script, it does not need separate .rc file in my opinion. Other than that, the plan sounds good to me. Thanks for looking into it!

Fixed by https://github.com/tinkerbell/osie/pull/48

How is it fixed by #48 when it didn't get merged?

Woops! I didn't notice that the PR was closed, but not merged. Sorry about that.

Archiving repo, closing issue per GitHub's recommendation.


Add ability to delete device_ endpoint from authorizationServerMetadataEndpoint and providerConfigurationEndpoint

Expected Behavior
I want to be able to delete device_authorization related endpoints when requested by /.well-known/openid-configuration.
Current Behavior
GET  /.well-known/openid-configuration.
{
    "issuer": "http://<IP_ADDRESS>:6080",
    "authorization_endpoint": "http://<IP_ADDRESS>:6080/oauth2/authorize",
    "device_authorization_endpoint": "http://<IP_ADDRESS>:6080/oauth2/device_authorization",
    "token_endpoint": "http://<IP_ADDRESS>:6080/oauth2/token"
}

I want to get data in the response without the device_authorization endpoint here
Context
The authorizationServerMetadataEndpoint and providerConfigurationEndpoint always have device_authorization applied.
I tried to remove it with the Customizer, but I found that the DeviceAuthorizationEnpoint (/oauth2/device_authorization) is hard coded into the OidcProviderConfigurationEndpointFilter and AuthorizationServerSettings.
If there is a way to remove this, please let me know, and if not, please add the ability to disable the device_endpoint.

Naturally, I tried the authorizationServerMetadataCustomizer and providerConfigurationCustomizer
If I look at the doFilterInternal of OidcProviderConfigurationEndpointFilter, I can't remove the deviceAuthorizationEndpoint, which is an OPTIONAL value in the code, because it defaults to deviceAuthorizationEndpoint. Also, I can't modify the internal claim because it is an unmodifiableMap. Am I missing something?
I'd like to get some references if possible.


fix cast errors for label, weight and init score columns

fixes https://github.com/Azure/mmlspark/issues/682 based on user feedback
User may receive error that can be difficult to track down if they pass non-double column for label, weight or init score (int or long), so we just cast it to double for them if it is not already a double type column for convenience

/azp run

/azp run


Compile Error, "Extra argument 'showsIndicators' in call" in  ScrollView(showsIndicators: false)

Hi Amr,
Are you using the latest Xcode 11 beta? (beta 4 11M374r, as indicated in Readme). ScrollView initializer with showsIndicators argument is available, as documented here: https://developer.apple.com/documentation/swiftui/scrollview/3337759-init

thanks I will update my Xcode to this version,  as my current version is  ( 11M336w )

Great, closing, then.


[Use case] webbymouse

Hi, FYI I've made a Desktop app (via node webkit) which use robotjs to control desktop mouse.
It bundle with express server so user can open a mobile browser and the mobile device turn into touchpad immediately.
https://github.com/gasolin/webbymouse

Looks awesome! I'll make a wiki page for apps using RobotJS when I get home.

Alright you can add your app to this list!
https://github.com/octalmage/robotjs/wiki/Projects-using-RobotJS
Please follow this format:
https://github.com/nwjs/nw.js/wiki/List-of-apps-and-companies-using-nw.js
Let me know when it's added!

I added WebbyMouse for you!
https://github.com/octalmage/robotjs/wiki/Projects-using-RobotJS

thanks!


[#4751] Update library

httpclient 4.3 -> 4.5.6
httpcore 4.3 -> 4.4.10

Codecov Report

Merging #4769 into master will increase coverage by 0.02%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master    #4769      +/-   ##
==========================================
+ Coverage   40.45%   40.48%   +0.02%
==========================================
  Files        2570     2570
  Lines       78297    78297
  Branches    10643    10643
==========================================
+ Hits        31675    31695      +20
+ Misses      43735    43722      -13
+ Partials     2887     2880       -7

Impacted Files
Coverage Δ

...tor/metric/datasource/DefaultDataSourceMetric.java
75% <0%> (-3.13%)
:arrow_down:

...navercorp/pinpoint/rpc/common/SocketStateCode.java
82.92% <0%> (-2.44%)
:arrow_down:

...java/com/navercorp/pinpoint/rpc/DefaultFuture.java
72.5% <0%> (-1.67%)
:arrow_down:

...rc/main/java/com/navercorp/pinpoint/test/Item.java
68.96% <0%> (ø)
:arrow_up:

...pinpoint/profiler/monitor/DeadlockMonitorTask.java
19.76% <0%> (+1.16%)
:arrow_up:

...point/rpc/client/DefaultPinpointClientHandler.java
72.29% <0%> (+1.27%)
:arrow_up:

...ofiler/sender/StandbySpanStreamDataSendWorker.java
83.58% <0%> (+2.98%)
:arrow_up:

.../profiler/sender/StandbySpanStreamDataStorage.java
76.27% <0%> (+3.38%)
:arrow_up:

...rp/pinpoint/rpc/server/PinpointServerAcceptor.java
89.72% <0%> (+4.79%)
:arrow_up:

...pinpoint/profiler/instrument/AccessorAnalyzer.java
65.71% <0%> (+8.57%)
:arrow_up:

... and 2 more

Continue to review full report at Codecov.

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


Dynamically config changes

As an Architect
I want to be able to manage different rate-limit values for day/night period
So that I can move the batch GET requests to night period of time and decrease rate limits for day period of time

I created two cronjobs: one conjob upload config into kong for day period and another for the night.
Also, I created service in kong namespace (for 8001 port).
All config located in charts: https://github.com/edenlabllc/ehealth.charts/tree/master/jobs/upload kong config
service: https://github.com/edenlabllc/ehealth.charts/blob/master/kong/templates/svc-kong-config.yaml

Configured two cronjobs for day and night period.


Updated the UI of the Footer

@Priyaaa1 Thanks for assigning me this issue.
I have completed this task and have made a Pull Request under issue #145
The Final Screenshots of the Footers are given below:

@Priyaaa1 I have resolved the conflicts but by default I tried to merge the branches that's why getting the above error.


Specify ADD_RT for android platform, which embeds librt in libc

I needed this change to build tesseract 3.05.02 using the android ndk.

3.05 is nut supported and you push it to master branch (5.0)

@Robyer, does this change help for Android builds?

Assuming https://developer.android.com/ndk/guides/stable_apis
Note that on Android, unlike Linux, there are no separate libpthread or librt libraries. That functionality is included directly in libc, which does not need to be explicitly linked against.

@egorpugin It looks like this PR was too old and it's fix is already included in current code, so the merge should be reverted, See: https://github.com/xloem/tesseract/blob/fed6603a77dfb628bd4bcde43484c68f89532e92/configure.ac#L106-L108

Uh-oh.


Update note for infinityfree

Access infinityfree.net now will auto redirect to infinityfree.com
ref delete section:

Thanks for all your recent contributions!


Fineract 1349

Description
https://issues.apache.org/jira/browse/FINERACT-1349
Describe the changes made and why they were made.
Ignore if these details are present on the associated Apache Fineract JIRA ticket.
Checklist
Please make sure these boxes are checked before submitting your pull request - thanks!

[x] Write the commit message as per https://github.com/apache/fineract/#pull-requests

[x] Acknowledge that we will not review PRs that are not passing the build ("green") - it is your responsibility to get a proposed PR to pass the build, not primarily the project's maintainers.

[ ] Create/update unit or integration tests for verifying the changes made.

[ ] Follow coding conventions at https://cwiki.apache.org/confluence/display/FINERACT/Coding+Conventions.

[ ] Add required Swagger annotation and update API documentation at fineract-provider/src/main/resources/static/api-docs/apiLive.htm with details of any API changes

[x] Submission is not a "code dump".  (Large changes can be made "in repository" via a branch.  Ask on the developer mailing list for guidance, if required.)

FYI our guidelines for code reviews are at https://cwiki.apache.org/confluence/display/FINERACT/Code+Review+Guide.

Trying to Reopen this for review. Seem another PR was opened in its place. This seems to contain commits fixing 2 different issues. ITs say the branch was already recreated or forced pushed.. You have to send another PR.

one of the commit is same as that i n another PR : https://github.com/apache/fineract/pull/1702, once that is merged, i hall rebase and send this as a new single commit PR


New UTF8String APIs

Rationale
As it stands UTF8String lacks full feature parity with System.String. To help alleviate this and taking Issue #358 as a guideline, below are a number of proposed methods to be added to UTF8String.
API Proposal
public partial ref struct Utf8String {

    public static Utf8String operator+(Utf8String s1, Utf8String s2);

    public bool IsNullOrWhiteSpace();

    public Utf8String Remove(int startIndex);
    public Utf8String Remove(int startIndex, int count);

    public Utf8String Replace(Utf8String oldValue, Utf8String newValue);

}

partial static class Utf8Helper {

    public static bool IsDigit(uint codePoint);

}

Discussion
In the original proposal @krwq mentioned that + operator as well as Remove and Replace methods may cause issues with views of strings. However, currently functionality referring to substrings create new Utf8String instances instead of referring to the original. It's entirely possible I may have overlooked something, but as it stands the methods add a lot of convenience without an obvious clear detriment.

@KrzysztofCwalina @ahsonkhan @shiftylogic

Thanks. Some questions/comments:

System.String is immutable. Do we want Utf8String to be immutable too?
System.String can be put on the heap. Utf8String currently cannot. Should Utf8String be heapable?

BTW, I think concatenation only makes sense for heapable strings.

Do we have APIs to do ToUpper/ToLower?
We should consider adding something like String.Split. It would be great if the API was non allocating, i.e. it would return struct collection like type.

I think Utf8String should be as close as possible to String.  Strings are units of data - want to store/compose them, use as keys in hashtables and so on.
Also it would be useful to have Utf8Extensions that work with ReadOnlySpan and Span, if In-place mutating like Replace.
Maybe add similar Utf16Extensions over spans of Char for completeness.

@KrzysztofCwalina Answers below:

It probably should be. I think deviating behavior between Utf8String and System.String is unnecessary and confusing. To that end it would be worth it to change Remove and Replace  to fit with the System.String API, i.e.

    public Utf8String Remove(int startIndex);
    public Utf8String Remove(int startIndex, int count);

    public Utf8String  Replace(Utf8String oldValue, Utf8String newValue);

Heap allocation for Utf8String would definitely fit its performance focus, but might be outside of the scope of the issue. With the risk of sounding naïve - what would be the risks of concatenation on stack allocated Utf8Strings?

Not yet, but I think they would be a good addition to this issue.

Useful, but that would quite possibly either make Remove and Replace functionality unfeasible or requiring a redesign to fit within memory constraints. Working off of @VSadov 's suggestion - implementations of Remove and Replace could be added in Utf8Helper that work in-place on Span<T> and ReadOnlySpan<T>. I'm a bit unsure about maintaining separate implementations, particularly because of degrading usability - the two would need to be clearly distinguishable.

IsDigit would be invariant. Culture-sensitivity could be implemented  similarly to System.Char, i.e. use Unicode Categories for classification of characters. I don't think culture-sensitive implementation would necessarily make sense in the Utf8String, but Utf8Helper could be a good place.

& 7. Both are oversights and now fixed above. IsDigit should be correctly marked as static and Utf8String as a partial struct.

The suggestions in 4. and 7. could bloat `Utf8Helper` a bit. Currently it handles code point en- and decoding, but also has a `IsWhiteSpace` method. Would it make sense to spin off methods dealing with operations on an existing `Utf8String` into a separate class?

Utf8String needs to be usable on the heap, otherwise its usefulness greatly decreases
I wrote my own version precisely to work around that current limitation:
https://github.com/migueldeicaza/NStack/blob/master/NStack/strings/ustring.cs
The above implementation (ustring) is to a large extent a port of the Go string, and contains some useful features.  Docs here:
https://migueldeicaza.github.io/NStack/api/NStack/NStack.ustring.html

Use the naming "rune" instead of codePoint, as I think the Go guys make a compelling case for this.
Supports Utf8 strings from C# strings, blobs of memory, byte arrays
Has nice Range API that returns a subset of the string
Does not enforce that the contents of Utf8 string are valid - key for dealing later with Unix filenames.  This permeates the surface of the API.
Rune-ification of a utf8string

The IsDigit implementation in Go and NStack are Unicode aware, and they are not limited to the ascii values.

Use the naming "rune" instead of codePoint, as I think the Go guys make a compelling case for this.

From: https://blog.golang.org/strings

"Code point" is a bit of a mouthful, so Go introduces a shorter term for the concept: rune. The term appears in the libraries and source code, and means exactly the same as "code point", with one interesting addition.
The Go language defines the word rune as an alias for the type int32, so programs can be clear when an integer value represents a code point. Moreover, what you might think of as a character constant is called a rune constant in Go. The type and value of the expression
'⌘'
is rune with integer value 0x2318.

That is an interesting term for code point. cc @tarekgh

Code point is the phrase in the standards. Just because someone else made something up is not a good reason to use it. Especially as there is an actual runic block.

Some of us lack taste, but we try to learn from the masters.
The same people that came up with "rune" came up with the encoding that revolutionized the Unicode world by introducing the UTF encoding.   This is a great -and completely unrelated- read:
http://doc.cat-v.org/bell_labs/utf-8_history

I had a somewhat similar argument about bigendian network encoding when almost everything is litte endian. The only good reason seems to be "because a million years ago someone said it would be so". And now we have to flip everything that comes off the network......

So, what do people think about the following:
// Ideally, the representation would be just like System.String,
// but this cannot be done without runtime support, and so would not work
// on existing runtimes.
// This representation is close. The main difference is that it can box.
public struct Utf8String : IEquatable<Utf8String>
{
    byte[] _codingPoints;

    public Utf8Span Slice(...) ...
}
public ref struct Utf8Span {
    ReadOnlySpan<byte> _codingPoints;
}

// Existing type.
public class String {
    public Utf16Span Slice(...)
}

public ref struct Utf16Span {
    ReadOnlySpan<char> _codingPoints;
}

If I follow the proposal, is the idea that we would have two data types, one heap-friendly, one stack-only?   I like that plan.
I would like to steal the idea that was used in Span recently where a naive implementation was provided for older runtimes, but modern runtimes were made aware of the type and a better implementation was available.
So the idea would be to make Utf8String a class and runtime optimize it so:

Modern runtimes could create Utf8Strings that have the string data inlined in the body of the object instance, like System.String.

We could provide alternative storage systems (current byte buffer, no-copy byte buffer, wrap an existing unmanaged blob).

If I follow the proposal, is the idea that we would have two data types, one heap-friendly, one stack-only?

Yes.

a naive implementation was provided for older runtimes, but modern runtimes were made aware of the type and a better implementation was available.

What would be the representation of the maive representation? An array inside a class? It would mean two GC objects per naive string.

Yes, for the native representation it would cause an extra allocation.

The difference between fast and slow span is very small. The difference between these two string representations would be very significant. I worry that people would just not want to use it.

Is mapping an array inside a struct wrapper to a class too much of a stretch?
e.g.
Older
public struct Utf8String : IEquatable<Utf8String>
{
    byte[] _codingPoints;

    public Utf8Span Slice(...) ...
}

Newer
public class Utf8String : IEquatable<Utf8String>
{
    byte _firstCodingPoint;

    public Utf8Span Slice(...) ...
}

@benaadams, I am not sure I follow.

Type forwarding from struct to class; whether it would make things too weird

@KrzysztofCwalina we have a high-performance version, it just does not go into the heap ;-)
In a moment of insanity, but mostly because I am going to sleep now and what better end of the day than throwing a grenade and leaving, what if we had "interface IUtf8String" and have "struct SUtf8String : IUtf8String" and "Utf8String : IUtf8String"
/me runs from @benaadams

Need a [CanOnlyBeUsedAsGenericConstraint] attribute for the interface

I would prefer Utf8String to be a class if at all possible.
Experience with ImmutableArray being struct shows that while perf is good, there is a number of unfortunate scenarios around boxing/interfaces/IntrlockedExchange/nullable and so on.
ImmutableArray could not be no-indirection class without VM support since elements may contain references that must be reported to GC. Utf8String does not have this problem so, perhaps with some unsafe trickery it can be done without direct VM help.
I am thinking of something like:
[StructLayout(LayoutKind.Sequential)]
public sealed class Utf8String : IEquatable<Utf8String> //, other interfaces
{
    // same field layout as in String
    private int m_stringLength;
    private byte m_firstChar;

    public static readonly Utf8String Empty = new Utf8String();

    // never call publicly
    private Utf8String() { }

    // factory allocates System.String instance with the right data,
    // but then unsafely casts it to Utf8String and patches its VTable.
    public static Utf8String(byte[] data)
    {
        string stringInst;
        fixed (char* charPtr = &data)
        {
            stringInst = new String(charPtr, 0, data.Length / 2);
        }

        Utf8String inst = Unsafe.Cast<Utf8String>(stringInst);
        inst.m_stringLength = data.Length;

        //unsafely replace VTable of inst with one from Utf8String.Empty
        fixed (void** p1 = &inst.m_stringLength)
        {
            fixed (void** p2 = &Empty.m_stringLength)
            {
                // no idea if this is the right offset
                p1[-1] = p2[-1];
            }
        }

        return inst;
    }

    //... the rest of implementation assumes that "chars" follow m_firstChar contiguously.
}

@jkotas  - can something like the above work?

This is what @migueldeicaza suggested above - modern runtimes could create Utf8Strings that have the string data inlined in the body of the object. It can be done, but it requires runtime support. I do not think we would implement it by patching the vtable - it is dirty and it would not actually work as written above.

The difference between these two string representations would be very significant.

I think it would be about the same as difference between slow span and fast span overall. Depends on  microbenchmarks you pick to make the point.

E.g. The difference on .NET Core x64 is: The fast version allocates AlignUp(21 + length, 8) bytes on GC heap and the slow version allocates AlignUp(49 + length, 8) on GC heap.

Of course the new runtimes can take mplement it natively.
The suggestion above is for "slow" Utf8String on legacy runtimes.
I wonder why VTable patching would not work. Other that it is "dirty" on which i agree.

See https://github.com/SixLabors/ImageSharp/issues/327 for an example how some people dislike small differences in performance

I wonder why VTable patching would not work

The GC needs to be able to compute size of on object. Any variable sized objects have to have special vtable that make them variable sized.

See SixLabors/ImageSharp#327 for an example how some people dislike small differences in performance

Real-world portable libraries tend to have workarounds for both functional and performance issues in older runtimes. There is nothing to like about those, but it is the reality.

Yeah, I am not saying that two object string is ano-go, just pointing out that some people are very sensitive about it.

With the risk of sounding naïve - what would be the risks of concatenation on stack allocated Utf8Strings?

Not naive at all, I probably worded it too strong. I was thinking that if people are willing to live with the limitations of a stack only string, they probably would not be happy with concat allocating like crazy.

I did not know that variable-sized objects have special vtable. I thought GC knows the size and only needs info about layout to know what objects are reachable from current.
Oh well...

Another option I thought about for slow string: abstract class with multiple implementations like follows:
public abstract Utf8String {
    int _length;

    protected abstract Span<byte> Bytes;

    public static Utf8String Create(bytes[] utf8){
        if(utf8.Length == 0) return Utf8String.Empty;
        if(utf8.Length == 1) return new Utf8String1(utf8[0]);
        if(utf8.Length == 2) return new Utf8String2(utf8[0], utf8[1]);
        ...
        else return new Utf8StringArray(utf8.Clone());
    }
}
internal class Utf8String1 : Utf8String {
    byte _b0;

    protected override Span<byte> Bytes => new Span(ref _b0, _length);
}
internal class Utf8String2 : Utf8String {
    byte _b0;
    byte _b1;

    protected override Span<byte> Bytes => new Span(ref _b0, _length);
}
internal class Utf8String4 : Utf8String {
    byte _b0;
    byte _b1;
    byte _b2;
    byte _b3;

    protected override Span<byte> Bytes => new Span(ref _b0, _length);
}
///...
internal class Utf8StringArray : Utf8String {
    byte[] _bytes;

    protected override Span<byte> Bytes => _bytes;
}

But it will make calls on the fast string virtual

Anyway, I think we all agree that we want Utf8String to be heapable.
@A-And, if you'd like to keep running with this project, please:

Rename Utf8String to Utf8Span
Add a class called Utf8String that for now just stores an array of bytes (UTF8 coding units). We can optimize it later
I think the class class should have roughly the same APIs like the Utf8Span type, in fact, the Utf8Span's implementation (for most members) could be reused.

@KrzysztofCwalina Great. Also glad this caused so much discussion.

As a reference, I have a proposal to support declaring UTF8String constants using data declarations here: https://github.com/dotnet/csharplang/issues/909
I believe the only requirement would be that Utf8String be allowed to map directly to a some format that contains a length and a byte*

I am so happy to hear about the move for Utf8String to become heapable @KrzysztofCwalina!

I am so happy you are pushing for UTF8 string in general @migueldeicaza! :-)

Why are we using byte[] as the storage here instead of Memory<byte>.

I agree. We should consider Memory.

Memory would add 8 more bytes to the instance footprint and it would make primitive operations like indexing significantly slower...

We need to decide if we copy the data in the ctor or not. If we don't copy, Utf8String will not be immutable.  If we do copy, we can take Memory, or even Span.

We need to decide if we copy the data in the ctor or not.

Copying leads to user behavior side effects.  For example with string, creating N size and mutating in place with fixed at creation :pensive:
Shady non-(additionally)-allocating approach (data written 1 time):

Fast allocate empty string size N (new string('\0', N)) - Pre 0-init
Fix string
(Write) Write N chars

Alternative non-(additionally)-allocating approach (data including zeroinit written 3 times, read 2 times):

stackalloc N size char*
(Write) zeroinit N
(Write) write N chars
(Read) string .ctor - scan char* to determine length (WszMultiByteToWideChar)
string .ctor - Fast allocate empty string size N - Pre 0-init
(Read+Write) string .ctor - copy char* input (WszMultiByteToWideChar)

Copy in char* string .ctor - isn't a great sell; especially if you have to go unsafe anyway to call the method (safe stackalloc -> Span<char> overload + ReadOnlySpan<char> -> string.ctor may reduce this a little)

we could solve the problem with something like: https://github.com/dotnet/corefx/issues/21472
var text = Utf8String.Create(20, (data)=> {
    for(int i=0; i<data.Length; i++) data[i] = 65+i;
});

If we only had function pointers, i.e. allocation free delegates :-)

If we only had function pointers, i.e. allocation free delegates :-)

@KrzysztofCwalina, there is a championed proposal that would add such functionality: https://github.com/dotnet/csharplang/issues/302
I just don't know where it is in the priority queue for language features

My take is that we should not copy, this is what I did for ustring.   A convenience method could be used by those that desire a copy of the data to take place.
That design decision has the side effect of making Utf8String a proxy for interpreting data encoded in Utf8 format.    This also means that like NStack.ustring it should also allow for invalid UTF8 data to be specified, and provide the APIs necessary to cope with it, this allows the UTF8String to be used as a transport correctly, even when the underlying encoding might be wrong (see, every Unix file system in the world, and also one of the reasons that Go supports this).

My take is that we should not copy

I think forced copying would also provide a perf hit for UTF8 string literals (https://github.com/dotnet/csharplang/issues/909), if they (or some variation) get championed/approved in the future.
I will say, no matter which is the default (copying or not), there should be an API that explicitly allows the other to be possible.

cc @GrabYourPitchforks, fyi.


add package manager for install Atom on Windows

An alternative to Chocolatey

Thanks for suggesting this :tophat:, but we document things we don't officially support. Sharing this on the forum would be neat, though: https://discuss.atom.io/


Use TLS strict mode

http://en.wikipedia.org/wiki/HTTP_Strict_Transport_Security
even restricting min TLS version and cipher suites further might be even better.

Moved to: https://github.com/neptulon/neptulon/issues/38


Fluentd wont deploy due to a lack of clusterrole and binding

On clusters with RBAC enabled the fluentd service wont deploy with an error:
 text_fields  timer_off
2017-09-16 12:56:00 +0000 [info]: reading config file path="/fluentd/etc/elk.conf"
2017-09-16 12:56:00 +0000 [info]: starting fluentd-0.12.32
2017-09-16 12:56:00 +0000 [info]: gem 'fluent-plugin-elasticsearch' version '1.9.2'
2017-09-16 12:56:00 +0000 [info]: gem 'fluent-plugin-kubernetes_metadata_filter' version '0.26.3'
2017-09-16 12:56:00 +0000 [info]: gem 'fluent-plugin-record-reformer' version '0.9.0'
2017-09-16 12:56:00 +0000 [info]: gem 'fluent-plugin-tail_path' version '0.1.0'
2017-09-16 12:56:00 +0000 [info]: gem 'fluentd' version '0.12.32'
2017-09-16 12:56:00 +0000 [info]: adding filter pattern="kubernetes.var.lib.docker.containers.*.*.log" type="kubernetes_metadata"
2017-09-16 12:56:01 +0000 [info]: adding match pattern="**" type="copy"
2017-09-16 12:56:01 +0000 [error]: config error file="/fluentd/etc/elk.conf" error="Exception encountered fetching metadata from Kubernetes API endpoint: 403 Forbidden"
2017-09-16 12:56:01 +0000 [info]: process finished code=256
2017-09-16 12:56:01 +0000 [warn]: process died within 1 second. exit.

This is also documented upstream as well
https://github.com/fluent/fluentd-kubernetes-daemonset/issues/14

@rssfed23, thank you for pointing this out. The following PR fix it: https://github.com/microservices-demo/microservices-demo/pull/745

#745 is merged.


upgrade toml11 in extlib/toml

related to #30 .

It is found that essentially I need nothing to upgrade toml11 except changing submodule pointer to toml11, but I think I can simplify the code in mjolnir by using new features in toml11.


Implement MQTT subscription and event handling

Description
This solution covers subscribing textview objects to topics, where they are then handled by the MQTT controller.
Due to constraints regarding activity classes and the lack of permanence present when changing scenes, the subscription map must be cleared upon class initialisation to prevent bloat.
The text objects subscribe to a topic by using the update(TextView text, String topic) method present in the MQTT controller.
They are then provided relevant messages by the callback function which is initialised upon controller connection.
Issues

Closes #38

Dependencies

Updated eclipse-paho-client from 1.2.0 to 1.2.5

Checklist

[x] I have updated the relevant documentation to cover the changes implemented. (including changes to the wiki)
[x] I have specified any additions, alterations or removals of dependencies.
[x] I have followed the code style present in the project.
[x] I have updated or added tests as necessary to cover the changes implemented.

:ballot_box_with_check: Definition of Done checklist

[x] Meaningful title and valuable description in pull request
[x] Code change tested manually if not covered by automated tests
[x] Pull request linked to one or more issues/stories
[x] Acceptance criteria of the linked stories satisfied
[ ] Code change comprehended by those who approved it
[x] State of target branch maintained or improved after the code change

Do note that this implementation is relatively static, but very easily expandable should we need to cover other android objects.


Is CloudTableClient thread safe?

Is it thread safe?

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 59855499-8cb1-9518-8e1a-0c98e862608c
Version Independent ID: ca4a8579-0b37-c22b-de8a-1dc4f00cd0b5
Content: CloudTableClient Class (Microsoft.Azure.Cosmos.Table) - Azure for .NET Developers
Content Source: xml/Microsoft.Azure.Cosmos.Table/CloudTableClient.xml
Service: cosmos-db
GitHub Login: @rloutlaw
Microsoft Alias: routlaw

@ulfkri - Yes, CloudTableClient is thread safe. The recommendation is to use a single CloudTableClient instance across all operations.


Landscape orientation in fullscreen mode (only)

Hey Guys,
After several sleepless nights, I don't have any more ideas how to do what I am trying to do.
In short words, I am trying to allow my fullscreen video to be accessible in all orientations (landscape and portrait). This is the only place in the app where I want to allow that. All other views are locked to portrait.
My idea was to delegate fullscreen enter / exit event and in that place, programmatically set orientation allowance, so on fullscreen enter, unlock landscape additionally and on fullscreen exit, lock back only to portrait. Everything works fine apart from the one crucial part...I can not delegate fullscreen enter/exit event (delegating those events was my idea but I might be completely wrong and that should be managed in completely different way)
Thanks in advance for any help!

ok guys, that was my fault. Everything works as it supposed to work with fullscreen mode ( 👍 ) . I only extended the RCTVideo here by triggering dismiss event anytime user click "Done". Somehow it isnt triggered for this action, which in my case was required because I have to perform some action on video close.
I know it is not elegant solution but I am quite rush and newbie in iOS. I am leaving that here because maybe someone could point me out what I did wrong or it might be used as a hint for someone who will experience the same problem.

Same issue on android.

Hello @dwaligora . Can you share your solution? I want to same behavior but not found any solution yet :(


can't instantiate an inner class

@ import $ivy.`org.apache.avro:avro:1.8.1`
import $ivy.$
@ new org.apache.avro.Schema.Parser
Class file for org.apache.avro.Schema$Parser not found
Compilation Failed
@ new org.apache.avro.Schema.Parser
cmd1.sc:1: erroneous or inaccessible type
val res1 = new org.apache.avro.Schema.Parser
    ^
Compilation Failed
@ classOf[org.apache.avro.Schema].getClasses
res1: Array[Class[?0] forSome { type ?0 }] = Array(
  class org.apache.avro.Schema$Parser,
  class org.apache.avro.Schema$Field,
  class org.apache.avro.Schema$Type,
  class org.apache.avro.JsonProperties$Null

@ import org.apache.avro.Schema.Parser
import org.apache.avro.Schema.Parser
@ new Parser()
cmd2.sc:1: not found: type Parser
val res2 = new Parser()
               ^
Compilation Failed

> scala -cp C:\Users\idror\.ivy2\cache\org.apache.avro\avro\bundles\avro-1.8.1.jar
Welcome to Scala 2.11.8 (Java HotSpot(TM) 64-Bit Server VM, Java 1.8.0_102).
Type in expressions for evaluation. Or try :help.

scala> new org.apache.avro.Schema.Parser
warning: Class org.codehaus.jackson.JsonFactory not found - continuing with a stub.
warning: Class org.codehaus.jackson.map.ObjectMapper not found - continuing with a stub.
warning: Class org.codehaus.jackson.JsonNode not found - continuing with a stub.
warning: Class org.codehaus.jackson.JsonGenerator not found - continuing with a stub.
warning: Class org.codehaus.jackson.JsonGenerator not found - continuing with a stub.
warning: Class org.codehaus.jackson.JsonNode not found - continuing with a stub.
warning: Class org.codehaus.jackson.JsonNode not found - continuing with a stub.
warning: Class org.codehaus.jackson.JsonNode not found - continuing with a stub.
warning: Class org.codehaus.jackson.JsonNode not found - continuing with a stub.
warning: Class org.codehaus.jackson.JsonNode not found - continuing with a stub.
warning: Class org.codehaus.jackson.JsonNode not found - continuing with a stub.
java.lang.NoClassDefFoundError: org/codehaus/jackson/JsonParseException
  ... 32 elided
Caused by: java.lang.ClassNotFoundException: org.codehaus.jackson.JsonParseException
  at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
  at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
  at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
  ... 32 more

Looks like a duplicate of #515, and is problem with the latest unstable 2.12 version. This bug doesn't occur in 2.11.x, so one option is to stick with 2.11.x until I manage to sort out the 2.12 problem

I couldn't find instructions on how to use scala 2.11

the main instructions install 2.11 http://www.lihaoyi.com/Ammonite/#Ammonite-REPL

Fixed in 0.8.1 http://www.lihaoyi.com/Ammonite/#0.8.1


Improvements in AST and checker module

Rename fields in the AST.
Add test case for for statement.
Create a generic function to visit the children in the checker module.

The lexer can't tell apart integers from floats and that is by design. It makes it behave more similar to Lua's and allows us to treat stuff like 4.. and 1337require as syntax errors.
That said, not that you mention it I think it might be cleaner to do this math.type logic in the parser instead of deferring it to the typechecker.


There is a problem that the device name that is not in English is not print properly.

There's a code that gets the device's information from the GetDevicesForBackend method and gets deviceInfo.name from the DescrambleUTF8 method doesn't seem to work correctly.
It has been tested only in Korean, but there seems to be a possibility of problems with other languages like Japanese or other Asian languages.

I'm currently back on a Mac for 99% of my time so I'm not sure when I will have the time to look into it :( Sounds similar to when the font swallowed Cyrilic characters.

I just want to add another thing with this issue as this also does the same thing with Japanese windows OS.
This actually leads to not able to save a proper device as it writes with those garble letters. So I cannot set a device properly using this GUI as it's only meant for English letters.

I think it's a cjk text saving problem, still in Chinese environment


[request] Dax as output format

Hello,
Recently I've bought a PSP console because mine was damaged long time ago, and I've noticed that the latest M33 firmware is compatible with DAX format (that saves some space), so would be nice to have this format as output format too.
I've seen that you've added LZ4 format as output (PRO firmware compatible), but the size is the same as CSO (of course, will be faster on some games).
Thanks!!

If I remember right, DAX is basically CSO with more overhead (more header data), but larger default block size.  In that case, you can beat DAX with maxcso using the --block=8192 option.
Some CSO implementations only support the default block size (2048) - does M33?  I believe PRO doesn't, because they couldn't spare extra RAM (which is probably why they don't support DAX either?)
DAX is probably not hard to add support for, but if CSO would work better it might make more sense to just use that.
ZSO should almost always be a bit larger than a CSO, but may indeed load faster on the PSP's CPU (only because it's 222Mhz - 333Mhz.)
-[Unknown]

You're rigth. Thanks for the info...
8192 as block size compress even a bit more than dax, but looks like M33 is not compatible (it don't shows the game on VHS). Maybe will be nice for PC emulators.
I've tested 4096 block size too, but don't works.
Greetings!!

Will be implemented in #16.  Will make a release later.
-[Unknown]

Thank you very much!!!

Released in v1.10.0.  Use --format=dax like so:
maxcso --format=dax somefile.iso
Other options like --fast and --use-zopfli still work.  It can also go directly from a .cso to a .dax file.
-[Unknown]


create-react-app success, yarn install or npm install success, but yarn start or npm start error.

Is this a bug report?
(write your answer here)
no, or maybe
Did you try recovering your dependencies?
my evn:
npm  6.4.1
create-react-app 2.1.2
node v8.11.2
yarn 1.9.4
Yes ,I tried, but it is not work.
Which terms did you search for in User Guide?
npm error
Environment
window 7
npm  6.4.1
create-react-app 2.1.2
node v8.11.2
yarn 1.9.4
(paste the output of the command here)
Steps to Reproduce
1, create-react-app mydemo
2, cd mydemo,and yarn install
3. yarn start
Expected Behavior
here is my vs-code output.
E:\gitHub\临时文件夹\mypcblogtest>yarn start
yarn run v1.9.4
$ react-scripts start
There might be a problem with the project dependency tree.
It is likely not a bug in Create React App, but something you need to fix locally.
The react-scripts package provided by Create React App requires a dependency:
"babel-eslint": "9.0.0"
Don't try to install it manually: your package manager does it automatically.
However, a different version of babel-eslint was detected higher up in the tree:
E:\gitHub\node_modules\babel-eslint (version: 7.2.3)
Manually installing incompatible versions is known to cause hard-to-debug issues.
If you would prefer to ignore this check, add SKIP_PREFLIGHT_CHECK=true to an .env file in your project.
That will permanently disable this message but you might encounter other issues.
To fix the dependency tree, try following the steps below in the exact order:

Delete package-lock.json (not package.json!) and/or yarn.lock in your project folder.
Delete node_modules in your project folder.
Remove "babel-eslint" from dependencies and/or devDependencies in the package.json file in your project folder.
Run npm install or yarn, depending on the package manager you use.

In most cases, this should be enough to fix the problem.
If this has not helped, there are a few other things you can try:

If you used npm, install yarn (http://yarnpkg.com/) and repeat the above steps with it instead.
This may help because npm has known issues with package hoisting which may get resolved in future versions.

Check if E:\gitHub\node_modules\babel-eslint is outside your project directory.
For example, you might have accidentally installed something in your home folder.

Try running npm ls babel-eslint in your project folder.
This will tell you which other package (apart from the expected react-scripts) installed babel-eslint.

If nothing else helps, add SKIP_PREFLIGHT_CHECK=true to an .env file in your project.
That would permanently disable this preflight check in case you want to proceed anyway.
P.S. We know this message is long but please read the steps above :-) We hope you find them helpful!
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

sorry  ,i solved . thank you !

hi, how did u solve it? i have same problem

hi, how did u solve it? i have same problem

Check your parent folder, Whether there is a  node_modules folder. And delete it.

Please show me me the step to fix this issue


Update onboard-group-policy-service-principal-encryption.md

Changed Azure Connected Machine agent link description

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


What to do to make Osiris super op

Toggleable Esp, bhop, Glow
Make esp more visible like idk
Maybe fake aa = Anti-Aim
Make maybe a bootloader

"Toggleable Esp, bhop, Glow"
it's easy to do :p
since you don't know how to do it, I'll quickly explain to you about the bhop, for example.
First, add this command line to your Misc.cpp when you define "bunnyHop"
if (!config->misc.bunnyHop || !GetAsyncKeyState(config->misc.bunnyHopkey))         return;
Defined "bunnyHopkey" for the config
In Config.h :
int bunnyHopkey{ 0 };
Make sure you can bind the bhop from the gui :
(in GUI.cpp)
ImGui::Checkbox("Bunny hop", &config->misc.bunnyHop);
ImGui::SameLine();
hotkey(config->misc.bunnyHopkey);
And it's done baby

I am just a new i dont know how to code but il try
On Thu, Aug 13, 2020 at 22:38 cdgfdgdgfdg<EMAIL_ADDRESS>wrote:

"Toggleable Esp, bhop, Glow"
it's easy to do :p
since you don't know how to do it, I'll quickly explain to you about the
bhop, for example.
First, add this command line to your Misc.cpp when you define "bunnyHop"
if (!config->misc.bunnyHop || !GetAsyncKeyState(config->misc.bunnyHopkey))
return;
Defined "bunnyHopkey" for the config
In Config.h :
int bunnyHopkey{ 0 };
Make sure you can bind the bhop from the gui :
(in GUI.cpp)
ImGui::Checkbox("Bunny hop", &config->misc.bunnyHop);
ImGui::SameLine();
hotkey(config->misc.bunnyHopkey);
And it's done baby
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/danielkrupinski/Osiris/issues/2068#issuecomment-673672158,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AQGVA4RESDN7GE4MLRPVQXDSAQ6K3ANCNFSM4P6WSUNQ
.

I am just a new i dont know how to code but il try
…
On Thu, Aug 13, 2020 at 22:38 cdgfdgdgfdg @.***> wrote: "Toggleable Esp, bhop, Glow" it's easy to do :p since you don't know how to do it, I'll quickly explain to you about the bhop, for example. First, add this command line to your Misc.cpp when you define "bunnyHop" if (!config->misc.bunnyHop || !GetAsyncKeyState(config->misc.bunnyHopkey)) return; Defined "bunnyHopkey" for the config In Config.h : int bunnyHopkey{ 0 }; Make sure you can bind the bhop from the gui : (in GUI.cpp) ImGui::Checkbox("Bunny hop", &config->misc.bunnyHop); ImGui::SameLine(); hotkey(config->misc.bunnyHopkey); And it's done baby — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub <#2068 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQGVA4RESDN7GE4MLRPVQXDSAQ6K3ANCNFSM4P6WSUNQ .

If you really need me to do it for you, I'll make a pull request for u


chore(deps): Bump spring-boot-starter to 3.0.4

This handles the bump for
spring-boot-starter-parent from 3.0.2 to 3.0.4.
It appears we do not need to define a version
for spring-boot-starter-data-jpa, unless we
desired a version differing from the starter
parent. Maven by default will download
jar files based on the version defined for the
starter parent tag, which will be used as the
version towards dependencies with the
org.springframework.boot groupId. Occurrences of
spring-boot-starter-data-jpa.version have been
removed to avoid additional spring boot starter
PRs.

Here are two sources I used explaining this: baeldung.com/spring-boot-starter-parent#managing-dependencies & geeksforgeeks.org/spring-boot-dependency-management

@Bronstrom can we bump this to 3.0.4 to close #180 & #181

@Bronstrom can we bump this to 3.0.4 to close https://github.com/EasyDynamics/oscal-rest-service/pull/180 & https://github.com/EasyDynamics/oscal-rest-service/pull/181

Just updated.

@Bronstrom can you fix conflicts so we can merge this in?


[Feat] : Design Cookie policy page

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
@Akshatchaube01
we can design cookie policy page
when user click on that they will redirected to /cookie-policy
it will look like this,

Describe the solution you'd like
A clear and concise description of what you want to happen.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.
What problem is this feature trying to solve?
How do we know when the feature is complete?

We do not plan on adding more pages to the website


Unwrapping errors should always throw an Error object

Giving a stack trace. Decide on e => e instanceof Error ? e : new Error(e) or simply e => new Error(e). Probably the latter as you'd want a trace all the way to the unwrap.

e => e instanceof Error ? e : new Error(e)

Maybe we could use Error.cause: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error/cause

e => e instanceof Error ? e : new Error(e)

Maybe we could use Error.cause: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error/cause

That looks nice:
> Error('bar', { cause: Error('foo') })
Error: bar
    at REPL5:1:1
    at Script.runInThisContext (node:vm:129:12)
    ... 7 lines matching cause stack trace ...
    at [_line] [as _line] (node:internal/readline/interface:893:18) {
  [cause]: Error: foo
      at REPL5:1:23
      at Script.runInThisContext (node:vm:129:12)
      at REPLServer.defaultEval (node:repl:572:29)
      at bound (node:domain:433:15)
      at REPLServer.runBound [as eval] (node:domain:444:12)
      at REPLServer.onLine (node:repl:902:10)
      at REPLServer.emit (node:events:525:35)
      at REPLServer.emit (node:domain:489:12)
      at [_onLine] [as _onLine] (node:internal/readline/interface:422:12)
      at [_line] [as _line] (node:internal/readline/interface:893:18)
}

The only thing that gives me pause is that if a consumer is using their own error classes extending Error they'll lose the ability to check instanceof directly on the thrown error, which may be surprising:
> class Error2 extends Error {}
> e2 = new Error2()
> ee = new Error('', { cause: e2 })
> e2 instanceof Error2
true
> ee instanceof Error2
false

https://github.com/samhh/fp-ts-std/commit/4046691e5364fb0a9ad9cadb027cf122601d870c


IOS Issue with copying tx address to clipboard

We were playing with this today and it seems there is an issue related to IOS:
After you send a transaction; go to wallet, copy "to" to clipboard; it shows copied to clipboard, but doesn't actually seem to copy, if I paste it to "notes" on my iphone, there is some sort of HTML that looks far more intense than the simple address i'm attempting to paste.
Im_uname confirms this happens with an android version too, perhaps he can chime in.

The problem I got on Android is simply this https://github.com/Bitcoin-com/Wallet/issues/515#issuecomment-473508737 which seems yet to be fixed.

This was a problem with both Android and iOS in previous versions. The good news is that we have now fixed this problem in the latest release v5.7.1
Please report back if you have anymore problems.

Thank you! I noticed it copies the address as a hyperlink now instead of plain text not sure if it was like that in the past). This is great. Thanks for the fix!

@CreativeName4 hello there, can you specify please how it gets copied as a hyperlink? does it copy the right address format? thanks!

I just copied, pasted, and emailed it to myself. I think I was wrong, it appears as though it pasted it as a hyperlink, in reality it when clicking on it, it was prompting to open up on iOS with a wallet app (BRD). I need to figure out why BRD has been given default priority to cashaddress when I have several wallets.


Update dependabot config to remove refactored presentation server

/open-metadata-implementation/user-interfaces/presentation-server/nodejs/src/cra-client  has been removed, so dependabot config needs updating accordingly
noted in https://github.com/odpi/egeria/pull/3833

This has been done


Clipboard support

It would be nice if you could copy to clipboard the selected text.

Hey why is this issue closed? I have the same problem :( Did you fixed it?


fix(ffe-sb1-logos): Include favicon

Includes ico folder in package

Coverage remained the same at 81.877% when pulling f11e31db17cd74a025cb923ac302a1becb626bff on fix/ffe-sb1-logos_Include-favicon into 0a55727b61118edd13f29b9b0400593944e4d5b9 on develop.


Does the library support creating watson conversation services?

I checked the example folder and saw examples creating container cluster. However, I could not find any document about creating other blue mix services, e.g., watson conversation. Will this go sdk support such operation? Thanks.

@huikang ,
Yes. bluemix service example can be found here
Thanks

@ashishth09 Thanks for your reply. Now I understand I can provision a watson conversation instance by using this bluemix-go client. I have some further question regarding how to retrieve the service key after provision. For example, this is what I usually do with command line
cf create-service-key conversation-app convKey
cf service-key conversation-app convKey

The output will include the url, password, and username of the conversation service and I can embed these into my other app.
The bluemix-go client seems no provide such username and password value in it service key. Am I missing anything? Thanks.

are the username and password embedded in this credential [1] as a map?
[1] https://github.com/IBM-Bluemix/bluemix-go/blob/defd07a416a323cbcb64aeb477c84875a43061aa/api/mccp/mccpv2/service_keys.go#L28

yes you got it 😃


Gerrit Flow Cleanup - For v1 Use Project ID Instead of Gerrit ID

Summary
Gerrit Flow Cleanup - For v1 Use Project ID Instead of Gerrit ID
Background
To avoid unnecessary lookups, update the v1 Gerrit flow to use the project ID directly instead of the gerrit flow (if possible).
Current v1 redirect flow leverages the gerrit ID as part of the path parameter. Once the redirect executes and lands on the v1 contributor console, the logic looks up the project_id from the Gerrit table using the gerrit id.  The gerrit ID is, I think, not longer used.  Why not just pass the project_id initially?
This task is to evaluate the v1 contributor console to pass the project_id to avoid the additional lookup on the UI side.
Key Code Segments:

v1 and v2 Gerrit Redirect Logic
v1 Contributor Console path params
v1 Contributor Console lookup call
v1 Contributor Console lookup impl

Acceptance Criteria
The "done" criteria when this feature or problem is resolved. Such as:

Unit Tests added and running in CI
Functional Tests updated to cover feature, if applicable
Demonstrate the set of capabilities to the product team while the code is running in the STAGING environment.

References
(Optional) Provide any code or specification references that would be helpful for the developer implementing this feature.

We are closing issue for now - will re-evaluate at a later date.


Fixed sending objects with no .read and with length

This is a bug fix, because sending such an object currently will cause an exception:
  File "test.py", line 81, in client
    r = session.post(url, data=DataWithoutLength(a)).text
  File "/Users/icebreak/source/requestssux/requests/requests/sessions.py", line 572, in post
    return self.request('POST', url, data=data, json=json, **kwargs)
  File "/Users/icebreak/source/requestssux/requests/requests/sessions.py", line 524, in request
    resp = self.send(prep, **send_kwargs)
  File "/Users/icebreak/source/requestssux/requests/requests/sessions.py", line 637, in send
    r = adapter.send(request, **kwargs)
  File "/Users/icebreak/source/requestssux/requests/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/Users/icebreak/source/requestssux/.venv2/lib/python2.7/site-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/Users/icebreak/source/requestssux/.venv2/lib/python2.7/site-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/Users/icebreak/miniconda2/lib/python2.7/httplib.py", line 1042, in request
    self._send_request(method, url, body, headers)
  File "/Users/icebreak/miniconda2/lib/python2.7/httplib.py", line 1082, in _send_request
    self.endheaders(body)
  File "/Users/icebreak/miniconda2/lib/python2.7/httplib.py", line 1038, in endheaders
    self._send_output(message_body)
  File "/Users/icebreak/miniconda2/lib/python2.7/httplib.py", line 886, in _send_output
    self.send(message_body)
  File "/Users/icebreak/miniconda2/lib/python2.7/httplib.py", line 858, in send
    self.sock.sendall(data)
  File "/Users/icebreak/miniconda2/lib/python2.7/socket.py", line 228, in meth
    return getattr(self._sock,name)(*args)
TypeError: sendall() argument 1 must be convertible to a buffer, not DataWithoutLength

The patch makes sure that it will only fix this specific instance.

I believe the correct, backwards-compatible, and feature-intended behaviour is to raise a different exception that we can not and will not handle the body

Hi @tzickel,
If you read the documentation and the docstrings for the post method, you can see we support the following:

:param data: (optional) Dictionary, list of tuples, bytes, or file-like object to send in the body of the :class:Request.

You can find the definition of file-like here.
We will have the same problem on most of our interfaces when supplied objects not meeting the expected input criteria. We could also implement a custom Header class, but if it doesn't conform to the mapping interface, it's unlikely to work as expected.
I believe you'll find if you replace your test case with the minimum of implementing IOBase from the io module that it fixes the error you're encountering. While @sigmavirus24 is right that we could implement exception handling, I think it's a bit of a slippery slope to start adding exact type checking to every API entry.
This is the test code I used:

class TestIteratorWithLength(io.IOBase):
    def __init__(self, data):
        self.data = data.encode()
        self.length = len(self.data)
        self.itersize = 2**20

    def __len__(self):
        return self.length

    def __iter__(self):
        return self

    def __next__(self):
        if self.data:
            ret = self.data[:self.itersize]
            self.data = self.data[self.itersize:]
            return ret
        else:
            raise StopIteration()

    next = __next__

test = TestIteratorWithLength('test')

r = requests.post('https://httpbin.org/post', data=test)
print(r.json())

@nateprewitt The issue with file object is described here:
https://github.com/requests/requests/issues/4837
mainly, it's a performance hog, since it will call .read with 8192 blocks instead of iterating and getting how much data it can.

Hmm.... this is an issue only in python2 (and maybe old python 3 versions)... newer python http handling can bypass this requests limitation, I still think requests should act the same...

Codecov Report

Merging #4838 into master will increase coverage by 0.16%.
The diff coverage is 93.33%.

@@            Coverage Diff             @@
##           master    #4838      +/-   ##
==========================================
+ Coverage   66.79%   66.96%   +0.16%
==========================================
  Files          15       15
  Lines        1572     1580       +8
==========================================
+ Hits         1050     1058       +8
  Misses        522      522

Impacted Files
Coverage Δ

requests/adapters.py
71.3% <93.33%> (+1.03%)
:arrow_up:

Continue to review full report at Codecov.

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

Closing due to inactivity and label


Add test cases relating to Theme commands

Add test cases relating to theme commands according to #60 .
Todo in future PR: add test to ThemeCommandTest.java to check if the MainWindow's CSS file is changed.

LGTM


Open recently closed file

Description
Sometimes you close a file that you don't want to close. It would be nice to have something like on chrome or sublime, a command like 'ctrl + shift + t' to open again the last file closed.
Versions
Mac Os El Capitan, Brackets Release 1.7 versión 1.7.0-16898 (release b0a363b71)

Hi @rafaqf,
you can re-open Recently Opened files via File -> Open Recent (or CTRL+O). Files removed from the working space should be somewhat more transparent than the ones still open.


Einsum cutensor GPU

Description
Implementation of einsum on GPU though cuTensor library
Checklist
Essentials

[ ] Changes are complete (i.e. I finished coding on this PR)
[x] All changes have test coverage:
Unit tests are added for different einsum scenarios
[x] Code is well-documented:
[x] To the best of my knowledge, examples are either not affected by this change, or have been fixed to be compatible with this change

Changes

[x] Added a new implementation of einsum operator though cuTensor library

Comments
TODO:

Include Broadcast cases
Include diagonal cases
Include single operand with cuTensor
Alignment in workspace

@MoisesHer we deprecated Makefile usage for master. could you add that logic to cmake instead?

Why make this optional at all? Why not just add it and we're fine? This just adds test complexity otherwise

For me, I think we may enable cutensor by default given that it has better performance. The problem is I'm not sure if it's possible to do that.

There are quite a bit of cpp lint errors. https://jenkins.mxnet-ci.amazon-ml.com/blue/organizations/jenkins/mxnet-validation%2Fsanity/detail/PR-18921/6/pipeline#step-80-log-514

@mxnet-bot run ci [unix-cpu]

@springer13 we are having difficulties to identify what combinations are covered or not by cuTensor.
Can you please take a look at this function? https://github.com/apache/incubator-mxnet/pull/18921/files#diff-97b34ff5dce0b1e4346953b5ca2b5bc5R471
Please, follow numpy-einsum convention

I find that there are some lint errors.

@springer13 we are having difficulties to identify what combinations are covered or not by cuTensor.
Can you please take a look at this function and help to define a correct an exclusion criteria? https://github.com/apache/incubator-mxnet/pull/18921/files#diff-97b34ff5dce0b1e4346953b5ca2b5bc5R471
Please, follow numpy-einsum convention

This has been solved


Use machine readable output for ToJSON ScriptWitnessIndex

Description

New ToJSON ScriptWitnessIndex instance
Any JSON output uses this instance.
In JSON logging, "ExtraRedeemers" object contents are machine readable rather than difficult-to-parse user-friendly-string.

Checklist

[ ] Commit sequence broadly makes sense and commits have useful messages
[ ] New tests are added if needed and existing tests are updated.  These may include:

golden tests
property tests
roundtrip tests
integration tests
See Runnings tests for more details

[ ] Any changes are noted in the CHANGELOG.md for affected package
[ ] The version bounds in .cabal files are updated
[ ] CI passes. See note on CI.  The following CI checks are required:

[ ] Code is linted with hlint.  See .github/workflows/check-hlint.yml to get the hlint version
[ ] Code is formatted with stylish-haskell.  See .github/workflows/stylish-haskell.yml to get the stylish-haskell version
[ ] Code builds on Linux, MacOS and Windows for ghc-8.10.7 and ghc-9.2.7

[ ] Self-reviewed the diff

Note on CI
If your PR is from a fork, the necessary CI jobs won't trigger automatically for security reasons.
You will need to get someone with write privileges.  Please contact IOG node developers to do this
for you.

This might be worth doing a golden test for, so waiting on this https://github.com/input-output-hk/hedgehog-extras/pull/31


Bug: continueDecoding calls the wrong filter for decodeData() calls.

Signed-off-by: Wayne Zhang<EMAIL_ADDRESS>Description:
In this specific case: there are 3 decode filters.   The second filter calls addDocodeData() in its decodeHeaders() call.  The buffered data should be passed to the 3rd filter, not to the 2nd filter since it is added by the second filter.
This is correct if all filters are "continued".  But it is not correct if the first filter is stopped and continued with continueDecoding() call.
This PR adds two test cases:
AddDataWithAllContinue pass:   all filters return continue.
AddDataWithContinueDecoding fails:  the first filter stopped, and continued.
This PR only has the added tests.   The fix will be added later.
Risk Level: None
Testing:  Unit-test

Thanks @qiwzhang. LMK if you have any trouble with the fix.
/wait

@mattklein123 please hold.  I am trying another approach to fix.

Trying another approach: https://github.com/envoyproxy/envoy/pull/5350


Create a Developer User in SAP Cloud Platform ABAP Environment

Tutorial URL: https://developers.sap.com/tutorials/abap-environment-developer-user.html
According to this tutorial there should have been a tile Maintain employees but there is not in my Trial Environment. As I get it, this tutorial for creating a user intended only for TechEd attenders, usual tenants on shared trial instance have no admin rights, yes?

Same issue for me as well.

You don't need to maintain your employee in you trial environment.
You just create ABAP instance and you can create your test program.
I could make some samples following this tutorial.
https://developers.sap.com/group.abap-env-restful-managed.html

Hi @Suncatcher  @smile-ot  @k-younghwan,
this tutorial isn't possible in the trial, that's why we added the license tag. You need a license to do so. Yes, in the trial, you don't have admin rights. You have to check up if there is a license tag or not added to the ABAP tutorials. You can only do tutorials, which are without the license tag for the SAP Cloud Platform ABAP trial.
Best regards,
Merve

Ok, got it. Just noticed Requires Customer/Partner License tag.
Closing the issue.


task/operator-sdk-generate-bundle: allow for supplying additional labels

in order to comply with the required labels check, the generated dockerfile needs to have labels amended to it. By providing an additional file with this data, it can be appended in order to pass the compliance check.
❯ cat -p config/metadata/additional-labels.txt
LABEL com.redhat.component="openshift-osd-example-operator" \
      description="A sample operator used for testing SREP tooling" \
      distribution-scope="public" \
      io.k8s.description="A sample operator used for testing SREP tooling" \
      name="openshift/osd-example-operator" \
      release="v0.0.0" \
      url="https://github.com/openshift/osd-example-operator" \
      vendor="Red Hat" \
      version="v0.0.0"

Below is the summarized output of running the task locally
...

[generate-bundle : operator-sdk-generate-bundle] + operator-sdk generate bundle --overwrite --channels stable --input-dir deploy --version 4.16.0-abcdef8 --package osd-example-operator --kustomize-dir config/manifests --extra-service-accounts osd-example-admin
[generate-bundle : operator-sdk-generate-bundle] Generating bundle version 4.16.0-abcdef8
[generate-bundle : operator-sdk-generate-bundle] Generating bundle manifests
[generate-bundle : operator-sdk-generate-bundle] Bundle manifests generated successfully in bundle
[generate-bundle : operator-sdk-generate-bundle] Generating bundle metadata
[generate-bundle : operator-sdk-generate-bundle] time="2024-09-05T12:18:35Z" level=warning msg="ClusterServiceVersion validation: [OperationFailed] provided API should have an example annotation"
[generate-bundle : operator-sdk-generate-bundle] time="2024-09-05T12:18:35Z" level=info msg="Creating bundle.Dockerfile"
[generate-bundle : operator-sdk-generate-bundle] time="2024-09-05T12:18:35Z" level=info msg="Creating bundle/metadata/annotations.yaml"
[generate-bundle : operator-sdk-generate-bundle] time="2024-09-05T12:18:35Z" level=info msg="Bundle metadata generated successfully"
[generate-bundle : operator-sdk-generate-bundle] + '[' -f config/metadata/additional-labels.txt ']'
[generate-bundle : operator-sdk-generate-bundle] + cat config/metadata/additional-labels.txt

[build-container : build] Adding the entitlement to the build
[build-container : build] STEP 1/13: FROM scratch
[build-container : build] STEP 2/13: LABEL operators.operatorframework.io.bundle.mediatype.v1=registry+v1
[build-container : build] STEP 3/13: LABEL operators.operatorframework.io.bundle.manifests.v1=manifests/
[build-container : build] STEP 4/13: LABEL operators.operatorframework.io.bundle.metadata.v1=metadata/
[build-container : build] STEP 5/13: LABEL operators.operatorframework.io.bundle.package.v1=osd-example-operator
[build-container : build] STEP 6/13: LABEL operators.operatorframework.io.bundle.channels.v1=stable
[build-container : build] STEP 7/13: LABEL operators.operatorframework.io.metrics.builder=operator-sdk-v1.31.0-ocp
[build-container : build] STEP 8/13: LABEL operators.operatorframework.io.metrics.mediatype.v1=metrics+v1
[build-container : build] STEP 9/13: LABEL operators.operatorframework.io.metrics.project_layout=go.kubebuilder.io/v3
[build-container : build] STEP 10/13: COPY bundle/manifests /manifests/
[build-container : build] STEP 11/13: COPY bundle/metadata /metadata/
[build-container : build] STEP 12/13: LABEL com.redhat.component="openshift-osd-example-operator"       description="A sample operator used for testing SREP tooling"       distribution-scope="public"       io.k8s.description="A sample operator used for testing SREP tooling"       name="openshift/osd-example-operator"       release="v0.0.0"       url="https://github.com/openshift/osd-example-operator"       vendor="Red Hat"       version="v0.0.0"
[build-container : build] STEP 13/13: LABEL "build-date"="2024-09-05T12:18:44" "architecture"="x86_64" "vcs-type"="git" "vcs-ref"="35e2cca6f77a24308697957e9994a0c54b687674"
[build-container : build] COMMIT quay.io/redhat-user-workloads/oeo-cicada-tenant/osd-example-operator/bundle:on-pr-test
[build-container : build] --> 0506c4e76f56
[build-container : build] Successfully tagged quay.io/redhat-user-workloads/oeo-cicada-tenant/osd-example-operator/bundle:on-pr-test
[build-container : build] 0506c4e76f5687c1a3b564859f504029bdbdcc0328854e64cd22132752bc6be8
[build-container : build] /var/lib/containers/storage/vfs/dir/6b665e0e17d0fa80753efbb5415cd920f5d7086675212ef0d0ff6aa2c69b6c81
...

/lgtm
/approve

Hi @rcerven :eyes: could you please take a look?


install with rancher.console set in cloud-config.yml boots to default console

RancherOS Version: (ros os version)
1.1.0
Where are you running RancherOS? (docker-machine, AWS, GCE, baremetal, etc.)
SolusVM VPS (KVM)
Installing with the following cloud-config.yml boots to the default console.
#cloud-config
rancher:
  console: debian
ssh_authorized_keys:
  -  ssh-rsa ...

My use case is automating the installation of RancherOS with Ansible.
The act of switching console breaks the script because the ssh connection is closed and host key is different in the new console. I'm currently looking into a workaround with sleeps and disabling host key verification, etc. However, I think it would be nice for the rancher.console setting in cloud-config.yml to be honored by the installer.

I have the same issue.
Worse even, when upgrading from a Rancher OS with the debian console to v1.1.0, it falls back to the default console making hosts unreachable via ansible.

I tested v1.0.4 and it does not have this feature :)
Rolling back from v1.1.0 to v1.0.4 restores the debian console.

On v1.1.0, when switching manually to the debian console, it uses rancher/os-debianconsole:v1.1.0-rc3 instead of the v1.1.0 that exists on the docker hub. Is this meant to be like that ?

Come to think of it, that's the reason I started looking into Ansible. I updated to 1.1.0 and couldn't login through SSH. I thought I had messed up and needed to reinstall. Interesting...
So yeah, big +1 on this, will update title.
Thanks @jdel for workaround!

No worries, the fix is easy, I think @SvenDowideit needs just to remove the extra -rc3 in here:
https://github.com/rancher/os-services/blob/v1.1.0/d/debian.yml

@jsundqvist the title is misleading. I don't think it breaks SSH. I have setup a couple of ROS 1.1.0 with ansible yesterday and i can logon to the server avterwards.
However, the default console doesn't have python, preventing ansible to do anything unless you use the raw module.

Right, my bad. Got a little excited.

@jsundqvist Can you check the logging and see if it's the same as in https://github.com/rancher/os/issues/2071 ?