Interfaces implementation

I am trying to create an interface, and types implementing it. But I keep running into this problem:
"Schema must contain unique named types but contains multiple types named "personType" (see http://webonyx.github.io/graphql-php/type-system/#type-registry)."
I'm still making tests, so the examples will be simple: I have the BoyType and GirlType.
BoyType:
  public function get_fields(){

    return [
                    'name'=>[
                         'type'=>Type::String(),
                    ],
                    'age'=>[
                         'type'=>Type::Int(),
                    ],
                    'moustache'=>[
                         'type'=>Type::String(),
                    ],
                    'sex'=>[
                         'type'=>Type::String(),
                         'resolve'=>function(){
                            return "man";
                         }
                    ],
                    'partner'=>[
                         'type'=>TypeRegistry::getType('GirlType'),
                    ],
                  ];
  }

 public function type () {
        $Type = new ObjectType([
              'name' => 'BoyType',
              'fields' => function() {
                  return $this->get_fields();
              },
              'interfaces'=>[
                TypeRegistry::getType('personType')
              ],
          ]);

        TypeRegistry::addType('BoyType', $Type);
        return $Type;
  }

GirlType:
  public function get_fields(){

    return [
                    'name'=>[
                         'type'=>Type::String(),
                    ],
                    'age'=>[
                         'type'=>Type::Int(),
                    ],
                    'makeup'=>[
                         'type'=>Type::String(),
                    ],
                    'sex'=>[
                         'type'=>Type::String(),
                         'resolve'=>function(){
                            return "woman";
                         }
                    ],
                    'partner'=>[
                         'type'=>TypeRegistry::getType('personType'),
                    ],
                  ];
  }

  public function type () {
        $GirlType = new ObjectType([
              'name' => 'GirlType',
              'fields' => function() {
                  return $this->get_fields();
              },
              'interfaces'=>[
                TypeRegistry::getType('personType')
              ],
          ]);

        TypeRegistry::addType('GirlType', $GirlType);
        return $GirlType;

  }

They both implement the interface personType:
 public function type () {
        $personType = new InterfaceType([
              'name' => 'personType',
              'resolveType' => function($value) {
                  if ($value['sex'] === 'man') {
                      return TypeRegistry::getType('BoyType');
                  } else if($value['sex'] === 'woman'){
                      return TypeRegistry::getType('GirlType');
                  }else{
                      return TypeRegistry::getType('BoyType');
                  }
              }
          ]);

        TypeRegistry::addType('personType', $personType);
        return $personType;
  }

I want to create a query "Girl_list":
public function query () {
    $q = array( 'Girl_list' =>
          array( 'type' =>TypeRegistry::getType('GirlType') ,
                'resolve' => function ($root, $args, $context, ResolveInfo $info) use (&$boy) {
                  $gg = $this->dataG(); //dataG is a test girl
                  return $gg;
                }
             )
           );
    $this->query = $q;
  }

but when I try to build the schema, I always get the error i mentioned at the beginning. I tried changing a few things, but never managed to fix it much. I for example used  a custom typeLoader in the schema:
'typeLoader' => function($name)  {
        return TypeRegistry::getType($name);
    }

This made it possible to use personType in fields, but it was somehow still impossible to use the personType as the type of a query. I've been stuck on it for a while now, been digging through the source code too.
Am I doing something wrong? Or is something not working as intended?

The error you see is possible if type registry creates two different instances of a type. Most likely there is an error in the type registry code. Can you share it?

Maybe you are creating your interface type twice. Hard to say, because I don't know who calls those type() methods and when. Try changing your addType method to something like this:
   public static function addType($name, $type){
      if($type == null){
      } else {
           if (isset(self::$types[$name])) {
                throw new \Exception("Cannot add type $name to the registry twice");
           }
           self::$types[$name]=$type;
      }
   }

If this exception throws - then you should debug the sequence of your type() calls (i.e. why the type is created twice).

That was indeed the problem, thank you very much for your help


[Event Request] codeunit 5940 ServContractManagement - OnAfterCreateAllServLines

Can you add event OnAfterCreateAllServLines in procedure CreateAllServLines?
            Validate("Last Invoice Date", "Next Invoice Date");
            "Print Increase Text" := false;
            Modify;
        end;

        OnAfterCreateAllServLines(ServContractToInvoice, ServContractLine);
    end;

    [IntegrationEvent(false, false)]
    local procedure OnAfterCreateAllServLines(ServiceContractHeader: Record "Service Contract Header"; var ServContractLine: Record "Service Contract Line")
    begin
    end;

Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. Please do not reply to this, as we do not monitor closed issues. If you have follow-up questions or requests, please create a new issue where you reference this one.


How to set scroll speed a random variable

Describe your problem here.
I need to create a Lua script where i can set a random scroll speed between 2 values
Are you modding a build from source or with Lua?
Lua
What is your build target?
Windows x64
Did you edit anything in this build? If so, mention or summarize your changes.
No response

function onCreate()
    local randomScrollSpeed = (getRandomInt(0, 1) == 0) and 2 or 4 -- Game chooses between 2 and 4 scroll speed

    setProperty('songSpeed', randomScrollSpeed)

    debugPrint('Scroll Speed set to: ' .. randomScrollSpeed)
end


path is too long

when install it from dev or 1.9.x, 1.9.1 today's version,
got this error. (visual studio 2013)

"~/Modules/Orchard.DynamicForms/node_modules/gulp-less/node_modules/gulp-util/node_modules/dateformat/node_modules/meow/node_modules/indent-string/node_modules/repeating/node_modules/is-finite/node_modules/"

http://blog.icanmakethiswork.io/2014/12/gulp-npm-long-paths-and-visual-studio-fight.html

I know it has been fixed in the latest npm version.

Link?

Duplicate: #5561

https://windows.uservoice.com/forums/265757-windows-feature-suggestions/suggestions/6573539-remove-the-long-standing-max-path-limitation
Vote :)

We should then automate the removal of those node_modules before publishing.
Or we could also excluse those folder from publishing.
http://blogs.msdn.com/b/webdev/archive/2010/04/22/web-deployment-excluding-files-and-folders-via-the-web-application-s-project-file.aspx

Not working either.
http://stackoverflow.com/questions/25237823/actually-excluding-files-from-publish-without-verifying-it

Added this in Post built event command line of the 3 projects that holds node_modules folders.
if exist "$(ProjectDir)node_modules"  ( rimraf $(ProjectDir)node_modules )`

It deletes the folders but that's not really an adequate solution. Though it fixes the publish problem automatically. You also need to do :
npm install rimraf -g

before for installing rimraf globally.

This will be fixed as part of #5450.

Installing globally isn't really a viable solution for everyone using the source.  @DanielStolt what's your plan for getting this in the solution?  I mentioned this in the dupe issue but I had success creating a generic project and adding it to the solution, adding the gulpfile and package.json manifest to it.  This allows me to download all of the npm modules into a separate directory in the root and avoid deployment issues.  Just need to remember to add it to all solutions (Azure Cloud Service and Orchard.Web).
As you had mentioned before, including a git-ignore and vs-ignore config in there would be beneficial as to not commit those node modules to source control.

@dcinzona This sounds like what I have in mind? Going to work on it this weekend.

Awesome! Looking forward to it
Thanks @DanielStolt

Fixed in 6da6c5c.

You should check out ‘Long Path Tool’ it will help you fix the issues.
I had faced similar issue and this tool helped me to resolve this issue.


VulnWhisperer - Dashboard 'No results found'

Kibana's dashboard shows error 'No result found'  in this section  and render this message error 'Saved "field" parameter is now invalid. Please select a new field.'

VulnWhisperer - Critical Assets

And shows empty(white section) in those  sections :

VulnWhisperer - Critical Assets Aggregated
VulnWhisperer - TL - TaggedAssetsPluginNames
VulnWhisperer - TL - CriticalAssetsPluginNames
VulnWhisperer-CVSS
VulnWhisperer-CVSSHeatmap

Same iisue
ELK + FileBeats - >5.6.11
All componets VulnWhisperer compiled without errors and warnings
Logs dowloaded from nessus, configs take from your git branch and corrected ctatlogs
Where we can find?

Hi @SAFAA-HAZAR ,
The PR https://github.com/austin-taylor/VulnWhisperer/pull/95 has fixed the message error you were mentioning Saved "field" parameter is now invalid. Please select a new field.
Regarding the Kibana dashboards not showing any results, have you made sure that Kibana's time picker is selecting the range in which your data was created? By default, Kibana shows the last 15 minutes only, usually not matching with any data.
Cheers!


Pick up latest setUpGlobals.js

Summary
We've run into issues using fetch() with minified builds, that the FormData support detection was not working
Changelog
Pick up change from https://github.com/facebook/react-native/commit/bccc92dfdd2d85933f2a9cb5c8d1773affb7acba#diff-3d750d038ea035cc40dd893c3a39e315
Microsoft Reviewers: Open in CodeFlow

/azp run


Less blocking, less memory consuming Pool::batch()?

Description
Wouldn't it be a good idea if Guzzle allowed to limit memory consumption by Pool::batch()? (using the concurrency option) Why the decision was made to force it keep all results in memory?
Example
$promisesGenerator = (function () {
    for ($i = 0; $i < 1000; $i++) {
        $contextData = new stdClass();
        $contextData->hello = 'world';
        $contextData->i = $i;
        $promise = new Promise(fn() => doSomeWork($contextData));
        yield $contextData => $promise;
    }
})();

$resultsGenerator = Pool::batch(
    new Client(),
    $promisesGenerator,
    ['concurrency' => 10]
);

foreach ($resultsGenerator as $contextData => $workResult) {
    // do smth
};

Additional questions

Why it is needed to keep the order of requests and results? Since the work is asynchronous, obviously there will be many cases when the order doesn't matter but reducing the blocking time worth it to return results as they arrive - and not waiting for response #17 before returning the already obtained results ##18-45?
Why does the Pool enforces me to provide a client instance? What if I'm not using one? Why cannot it create it itself since it is him who need it, not me?
Is it possible to use arbitrary data as keys? Why not?

Upd. And what do you think about renaming the batch method to maybe batchUnwrap or smth similar? Because what it does is obviously unwraps - that is $promise->wait(unwrap: true) - a batch of promises...

Upd. And what do you think about renaming the batch method to maybe batchUnwrap or smth similar? Because what it does is obviously unwraps - that is $promise->wait(unwrap: true) - a batch of promises...

And why does Guzzle require to provide an iterable of either Requests or callables that return a Promise? Even in the example from docs, the iterable provided is a Generator - so why do I have to generate callables that return a Promise instead of generating Promises directly? Why Guzzle doesn't support this? e.g. compare with:
$promiseCallablesGenerator = (function () {
    for ($i = 0; $i < 1000; $i++) {
        $contextData = new stdClass();
        $contextData->hello = 'world';
        $contextData->i = $i;
        $promise = new Promise(fn() => doSomeWork($contextData));
        $promiseCallable = fn() => $promise; // why this extra step needed?
        yield $contextData => $promiseCallable;
    }
})();

$resultsGenerator = Pool::batch(
    new Client(),
    $promiseCallablesGenerator,
    ['concurrency' => 10]
);

And why does Guzzle require to provide an iterable of either Requests or callables that return a Promise? Even in the example from docs, the iterable provided is a Generator - so why do I have to generate callables that return a Promise instead of generating Promises directly? Why Guzzle doesn't support this? e.g. compare with:
$promiseCallablesGenerator = (function () {
    for ($i = 0; $i < 1000; $i++) {
        $contextData = new stdClass();
        $contextData->hello = 'world';
        $contextData->i = $i;
        $promise = new Promise(fn() => doSomeWork($contextData));
        $promiseCallable = fn() => $promise; // why this extra step needed?
        yield $contextData => $promiseCallable;
    }
})();

$resultsGenerator = Pool::batch(
    new Client(),
    $promiseCallablesGenerator,
    ['concurrency' => 10]
);

Controlling memory usage is hard to do, however I can't image you will run into any issues, unless you are forcefully loading response bodies into memory. // cc @Nyholm


How to implement native 'hidesBottomBarWhenPushed'?

Hi,
I'm using your custom tabbarcontroller,but there is a issue that I want this tabbarcontroller can have a property like hidesBottomBarWhenPushed in native.
Did you considered this ?
Regards,
Vienta

Hi Vianta,
MHCustomTabBarController was built for a specific and simple use case, so I did not consider implementing every feature UITabBarController has. I also do not have any plans to implement this feature, but it should be pretty straight forward to implement something like this yourself.
The tab bar is basically just a view, so you can hide it whenever you want, you just have to manage the showing and hiding yourself.

hiThx for reply.I had implemented it.thanks for your job!
发自Outlook
On Mon, Feb 16, 2015 at 2:26 AM -0800, "Martin Hartl"<EMAIL_ADDRESS>wrote:
Hi Vianta,
MHCustomTabBarController was built for a specific and simple use case, so I did not consider implementing every feature UITabBarController has. I also do not have any plans to implement this feature, but it should be pretty straight forward to implement something like this yourself.

—
Reply to this email directly or view it on GitHub.


Uart accept buffer

Supersedes https://github.com/hermitcore/uhyve/pull/491
(Uhye-Interface was merged in the meantime, which made this PR requiring a rework)

Time to finally merge this...


Connection timed out running ab

Everything seems to be running well when running it normally, I'm able to get a response back from my bees, I'm getting valid response codes, however, I tested this against a site that didn't allow TLSV1.0 so it was failing the handshake.  So I tried running with -Z and then a cipher name that meets the criteria of the site, but now I'm receiving the error connection timed out running ab.  I tried ssh'ing into the server and verifying that apache2-utils is installed, and ab seems to be able to be run on the servers, so I'm not sure what else could be wrong here.

Hi @aaron-hall-7  - can you provide some steps to reproduce this symptom/issue, including an nginx or apache server configuration that causes this issue?

Hah, I wrote up a massive response detailing all of this out only to find out I was using an incorrect cipher.  Thanks for your help @FliesLikeABrick.  I'm closing this one out.

@aaron-hall-7  what was the incorrect cipher? I might want to patch it to handle that more gracefully, even if it is user error

@FliesLikeABrick I was using this one: TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 but I can't remember what list I got that from.
Here's what bwmg output: Bee 0 lost sight of the target (connection timed out running ab).
Here's the output that ab gave me from the server: error setting cipher list [TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384]<PHONE_NUMBER>23584:error:1410D0B9:SSL routines:SSL_CTX_set_cipher_list:no cipher match:../ssl/ssl_lib.c:2129:
Switching to EECDH+AES128 worked and gave me back response codes as expected.


It would be good to have simple WEB UI to manage brokers and topics

I think that it would be very convenient for most of the users to have WEB UI (together with CLI).
A simple WEB UI could be added to be embedded inside HttpServer.
It could be a single-page-app, containing just 2 tabs:

brokers - allows to manage brokers (list|add|update|remove|start|stop)
topics - allows to manage topics (list|add|update|rebalace);

I know that this would require some additional effort, but it should not very big and, imho, some basic version could be implemented and delivered in 5-10 days. We could start just with brokers tab, for instance.

Hey @mindscratch we modified kafka-manager for some of these https://github.com/stealthly/kafka-manager but not sure how maintainable that is going to be with upstream/downstream re-base. It would be great to have a single kafka-manager that can support implementations, agreed.

@joestein Maybe the "solution" is a React.js client that is a static bit of html + javascript and simply uses the existing HTTP api you've so nicely written for this framework?

@joestein If I understood correctly, you forked the yahoo/kafka-manager project and replaced the "JMX scheduler" with the mesos/kaftka, right?

I have created a first version of the WebUI using Angular and Material Design here: https://github.com/sagentio/kafka/tree/feature/webui
Currently works:

List brokers
Start broker
Stop broker
Remove broker
List topics

TODO:

Add a broker
Add a topic
Update a topic
Create overview / detail screens per broker / topic that shows more info.
Add menu on the left and some logic navigation.

Please let me know what you think of it and if you would consider this usable!

@tobilg correct, we haven't integrated the admin though so that is still kafka-manager instead of through scheduler ... having it through the scheduler is important so we can have things like rackaware partition assignment, rebalancing, etc so it is more of a view only thing really
@sjoerdmulder cool, we'll take a look


Add SmileToUnlock

This library uses ARKit Face Tracking in order to catch a user's smile.
Project URL
https://github.com/rsrbk/SmileToUnlock
Category
ARKit
Description
This library uses ARKit Face Tracking in order to catch a user's smile.
Why it should be included to awesome-ios (optional)
Checklist

[x] Only one project/change is in this pull request
[x] Addition in chronological order (bottom of category)
[x] Supports iOS 9 / tvOS 10 or later
[x] Supports Swift 4 or later
[x] Has a commit from less than 2 years ago
[x] Has a clear README in English

          1 Warning

:warning:
Found 6 link issues, a project collaborator will take care of these, thanks :)

Link issues by awesome_bot

Line
Status
Link

5
Dupe
https://gitter.im/vsouza/awesome-ios

18
301
https://goo.gl/hNadrZ redirects tohttps://try.instabug.com/awesomeios/?utm_source=awesomeios&utm_medium=spon&utm_content=header

20
301
https://goo.gl/q93Qtd redirects tohttps://try.instabug.com/awesomeios?utm_source=awesomeios&utm_medium=spon&utm_content=learn-more

21
301
https://goo.gl/A74z8Q redirects tohttps://instabug-ga.appspot.com/UA-41982088-6/github/awesomeios?pixel

21
Dupe
https://instabug.com

2705
503
https://boombox.io/

  Generated by :no_entry_sign: Danger


Unable to restart an instance using DFM in .Net 7 Isolated

We've used DurableFunctionsMonitor.DotNetIsolated 6.3.0 -beta1 version to setup our DFM. When we run it and try to restart any failed/ pending instance it shows a popup saying restart is not supported for isolated process. Do we have any ETA on when it could be available. Also please share any work arounds for this(if any)

Do we have any ETA on when it could be available

No we don't. Remember, this is not a Microsoft official product, but rather a voluntary project created and driven by selfless enthusiasts.

Also please share any work arounds for this(if any)

You can always do that with a non-isolated version of DfMon, e.g. with DfMon VsCode extension.

So, our function is actually built as an isolated one. Not sure if the non-isolated packages would be compatible. Please suggest otherwise.

Since it is now clarified that DfMon is an official MS product, I would like to bump this feature request. Looking at the code, I suspect that it is blocked on this issue in durabletask-dotnet though, so I poked them too. 😄


if parts are missing, don't make it impossible to try to download them later (except for livestreams)

DO NOT REMOVE OR SKIP THE ISSUE TEMPLATE

[X] I understand that I will be blocked if I intentionally remove or skip any mandatory* field

Checklist

[X] I'm requesting a feature unrelated to a specific site
[X] I've looked through the README
[X] I've verified that I'm running yt-dlp version 2023.03.04 (update instructions) or later (specify commit)
[X] I've searched known issues and the bugtracker for similar issues including closed ones. DO NOT post duplicates
[X] I've read the guidelines for opening an issue

Provide a description that is worded well enough to be understood
problem
The current default settings (--skip-unavailable-fragments) skip missing parts and then concat the remaining available parts so that it is impossible to try to finish the missing parts later. Once the file is merged, the only way to get a complete video is a full redownload of the video.
request
If fragments (part.files) of a download are missing for whatever reason, don't make it impossible by default to finish the unfinished fragments on a later yt-dlp rerun.
rationale
The possible reasons for missing fragments are manifold and stretch from network errors to write errors.
implemenation
I'll set this issue up as a place to collect and bring together the previously expressed ideas scattered across multiple issue threads. I'll leave further discussion about the best solution to the experts here.

In the exceptional and rare case of a missing fragment, yt-dlp could exceptionally forcibly trigger --keep-fragments when missing a fragment so that it has a chance to finish missing parts on a rerun. This should override the --no-keep-fragments default, but NOT override if the user explicitly set --no-keep-fragments. The partfiles hould be kept (either in addition to or instead of the merged final file) as long as the download is not 100% completed due to missing parts.

@pukkandan had this idea : "We download all the available fragments, but don't actually merge if something is unavailable." (This may or may not be the same ideas as in (1) above).

@Jules-A idea here:

I'd like missing fragments to be tried to obtained even after all other have been downloaded. Although....

Once you have skipped a fragment, further fragments may have been already downloaded and concatted. It makes no  sense to retry them again.

The current way files are built from fragments would need to be completely re-written in order for it to be possible.
[…] it would be helpful over just aborting and trying another time: It would help downloading from unreliable sources where some fragments are missing at certain times, similar to incompletely seeded torrents. It would allow you to get all the ones that are available so next time you try you don't have to worry about the remaining fragments.

I'd like to reiterate that missing/unfinished fragments are not only the result of "unreliable sources" as characterized above, but also the result of problems on the user side (WLAN fluctuation, unstable Internet connection, Windows crash, disk full, etc.).
related issues:

#3730
#6757
#6793
#6078

Provide verbose output that clearly demonstrates the problem

[X] Run your yt-dlp command with -vU flag added (yt-dlp -vU <your command line>)
[X] If using API, add 'verbose': True to YoutubeDL params instead
[X] Copy the WHOLE output (starting with [debug] Command-line config) and insert it below

Complete Verbose Output
log here

Why do you keep opening new issues for the same thing?

ah, I meant to say to track it in #6078, as explained in https://github.com/yt-dlp/yt-dlp/issues/6757#issuecomment-1505005929. I hadn't even seen this new issue when I replied https://github.com/yt-dlp/yt-dlp/issues/6757#issuecomment-1506136100

Doesn't really matter, but okay


⚠ Bofrost.de has degraded performance

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

HTTP code: 200
Response time: 1008 ms

Resolved: Bofrost.de performance has improved in b01f78c after 8 minutes.


[frontend][onnx]fix pad constant value is none

hi, cc @AndrewZhaoLuo
When I import my onnx model. I found my model get a error with pad. because the pad constant value is none. shown as follow:

It`s just a very little bug. So I fix it and no unnit test.

Dose this PR need to be reviewed again? @AndrewZhaoLuo @leandron

Dose this PR need to be reviewed again? @AndrewZhaoLuo @leandron

Yeah I'll leave it to Leandron B)

I am sorry, I really can't create an unit test with empty string of constant_value.
@leandron @AndrewZhaoLuo

I am sorry, I really can't create an unit test with empty string of constant_value. @leandron @AndrewZhaoLuo

In verify_pad_v11 I can seem to make the following:
          graph = helper.make_graph(
                [node],
                "pad_test",
                inputs=[
                    helper.make_tensor_value_info("input", TensorProto.FLOAT, list(indata.shape)),
                    helper.make_tensor_value_info("pads", TensorProto.INT64, (len(pads),)),
                    helper.make_tensor_value_info("constant_value", TensorProto.STRING, (1,)),
                ],
                initializer=[
                    helper.make_tensor("pads", TensorProto.INT64, (len(pads),), pads),
                    helper.make_tensor("constant_value", TensorProto.STRING, (1,), [b""]),
                ],
                outputs=[
                    helper.make_tensor_value_info("output", TensorProto.FLOAT, list(outdata.shape))
                ],
            )

However, my version of ONNXRT can't seem to accept the string type. What have you tried?

Yes, I tried many times but I got the same error as yours.
onnxruntime.capi.onnxruntime_pybind11_state.InvalidGraph: [ONNXRuntimeError] : 10 : INVALID_GRAPH : This is an invalid model. Type Error: Type 'tensor(string)' of input parameter (constant_value) of operator (Pad) in node () is invalid.

Can you share your model by any chance? Can you also run your model via ONNX-RT?

Can you share your model by any chance? Can you also run your model via ONNX-RT?

coat_model.zip

model have been uploaded.
The model can pass by ONNX-RT. And the floating point comparison between tvm and onnx-RT result can also pass.

Sorry, I'll take a look tomorrow.

Hey, @AndrewZhaoLuo  Have you seen this PR, and any update with me? thanks.

Oops, I am so sorry, I have been very busy lately. I will try to get to this this weekend


Cannot get tables metadata

Describe the bug:
Trying to connect to Kyuubi via JDBC connection (with client such as Dbeaver) and I cannot see tables list tree in the UI.
The client throws method not implemented exception.
To Reproduce Steps to reproduce the behavior:

Run Kyuubi on yarn client in client mode
Make sure your yarn metastore configuration denfined to existing hive metastore.
Open dbeaver client and connect via hive2 driver to the running Kyuubi instance.
Open tables tab in the client and it throws exception: method not implemented

Expected behavior: show tables list based on the schema in the connection string.
Thanks a lot for helping:)

thanks @benmizrahi to point this out, we haven't implement any METASTORE operations yet. And I think we should have it fixed ASAP.

Do you have any time estimation for development?

I am glad that you can help with this

is v0.7 released?

not yet


food ordering website

Describe the project
A food ordering website by using Html and CSS. A website is fully responsive.
Issue Type:

[ ] Bug Report
[ ] Feature Request
[ ] Documentation
[x] New Project

Hey @ashadmuneer, kindly check the projects, Food Ordering website is already made

Describe the project
A food ordering website by using Html and CSS. A website is fully responsive.
Issue Type:

[ ]  Bug Report
[ ]  Feature Request
[ ]  Documentation
[x]  New Project


How to contribute?

I'd be interested in working on a PR to add some functionality to the SimpleLoss class but I wanted to get an opinion from the maintainers first. For one thing, I'd like to know if you're allowed to accept contributions from persons outside of Netflix and if there is a release I would need to sign or anything like that. I'd also like to know how you would like to receive contributions - just fork the repo and issue a pull request?

Hey, we do accept contributions outside of Netflix for riskquant, thanks so much for your interest!  A PR is great... I still need to set up travis ci to automate tests, so for now I'll just verify the PR, making sure the tests pass and that we have coverage.

I went with the github pythonapp workflow instead of travis ci, so feel free to submit a PR whenever you have time


Bugfix for cartesian grids netcdf load/save with isotopes

function cartesian_to_internal(grid::CartesianLinearGrid, griddata::AbstractArray) strip out missing that will have been added by internal_to_cartesian

:warning: Please install the  to ensure uploads and comments are reliably processed by Codecov.
Codecov Report
Attention: Patch coverage is 0% with 1 line in your changes missing coverage. Please review.

Project coverage is 54.51%. Comparing base (9135e8a) to head (8b43f54).
Report is 31 commits behind head on main.

Files with missing lines
Patch %
Lines

src/Grids.jl
0.00%
1 Missing :warning:

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #149      +/-   ##
==========================================
- Coverage   54.88%   54.51%   -0.38%
==========================================
  Files          39       41       +2
  Lines        4267     4021     -246
==========================================
- Hits         2342     2192     -150
+ Misses       1925     1829      -96

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


how to delete

Yea thats it

i made a boo boo
how do i delete this thread

Only the repository owner (@BloodWorkXGaming) can delete issues. Just leave it closed and pretend it never happened.


Resolve Inconsistency

The note above states that "guest and federated users can join as anonymous live event attendees" but the table below the note states that guest users cannot watch live events. Which is correct? Please resolve this discrepancy or clarify the text.

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

ID: 2b679199-caa5-4cc5-27e5-60a2cf999f69
Version Independent ID: 6878c954-e248-94c2-7602-47437ec7a2dd
Content: Plan for live events in Microsoft Teams
Content Source: Teams/teams-live-events/plan-for-teams-live-events.md
Service: msteams
GitHub Login: @tonysmith
Microsoft Alias: tonysmit

@DeanGross Thank you for pointing this out
I will get this discrepancy over to the Teams team for investigation.
The team will get this prioritized into a sprint plan. Thank you for reporting and making the docs better. Much appreciated.
I made a note to request the team to update this when the work is complete.

Thanks for your feedback. We've revised the document to eliminate the inconsistency.


Unable to write negative value into DINT array.

I found out that it's impossible to write negative value into DINT array, when writing whole array.
Current Behavior
Write fails on range check.
Possible Solution
Assuming that in function generateWriteMessageRequestForAtomic in /src/tag/index.ts on line 714 should be
valBuf.writeInt32LE(value[i], i * 4);
instead of
valBuf.writeUInt32LE(value[i], i * 4);

Thanks for the bug find. I’ll be back to working on this repository after Jan 6, 2025On Dec 16, 2024, at 9:08 AM, cernym85 @.***> wrote:
I found out that it's impossible to write negative value into DINT array, when writing whole array.
Current Behavior
Write fails on range check.
Possible Solution
Assuming that in function generateWriteMessageRequestForAtomic in /src/tag/index.ts on line 714 should be
valBuf.writeInt32LE(value[i], i * 4);
instead of
valBuf.writeUInt32LE(value[i], i * 4);
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you are subscribed to this thread.Message ID: @.***>


Add my own games

Hello!
First of all, congratulations for the great work.
I really liked it and found it very interesting!
I followed the description of how to build the application and it worked, with the 3 initial games working correctly.
So I tried to add my own snes games by adding the .smc file to the / assets / games / directory but the application doesn't recognize the file and still only displays the 3 by default.
How do I add games from other platforms?
Thanks for listening.
best regards

Hey, @Scatmannn!
I agree, @giongto35 is a legend who've made this cool project possible.
And speaking about your issue, maybe, I could help you.
While it's just enough to place one of the currently allowed SNES ROM files (smc, sfc, swc, fig, bs (I wonder what it stands for (:) into the assets/games folder and restart the app (overworker) in order to load your games, it's possible that ROM file name can't be read by the loader or this ROM is broken. Currently, there is no way to see what's going on during loader loading because there is no trace logging for that, except hard crashes, or is there, @giongto35?
Anyways, I've successfully loaded my own SNES ROMs without an issue on the latest app snapshot, so, @Scatmannn, it'd be great if you could provide the exact file names of your ROMs (to find and load them) or just post a downloadable archive with them somewhere. That'd be much easier, I guess.

How do I add games from other platforms?

Right now it's kinda hacky. There is a config file where you specify libretro cores and available ROM file names for folder autoscan:
var FileTypeToEmulator = map[string]string{
	"gba": "gba",
	"gbc": "gba",
	"cue": "pcsx",
	"zip": "mame",
	"nes": "nes",
	"smc": "snes",
	"sfc": "snes",
	"swc": "snes",
	"fig": "snes",
	"bs":  "snes",
       // here you can add any file names for any core: "filename" : "libretro core"
       // (many file names to one core, but a filename should be unique)
}
...
// and here you define any libretro core which name is used up above
// don't forget to put  a real Libretro core library into the assets/emulator/libretro/cores/ folder
// with the proper for your OS extension (or just all of them): .so -- Linux,
.dylib -- MacOS,
.dll -- Windows (:
// you can download them here https://buildbot.libretro.com/nightly/
// skip Width and Height and just add a proper Path
var EmulatorConfig = map[string]EmulatorMeta{
	"gba": {
		Path:   "assets/emulator/libretro/cores/mgba_libretro",
		Width:  240,
		Height: 160,
	},
	"pcsx": {
		Path:   "assets/emulator/libretro/cores/pcsx_rearmed_libretro",
		Width:  350,
		Height: 240,
	},
	"nes": {
		Path:   "assets/emulator/libretro/cores/nestopia_libretro",
		Width:  256,
		Height: 240,
	},
	"snes": {
		Path:   "assets/emulator/libretro/cores/mednafen_snes_libretro",
		Width:  256,
		Height: 224,
	},
	"mame": {
		Path:   "assets/emulator/libretro/cores/mame2016_libretro",
		Width:  0,
		Height: 0,
	},
}

@sergystepanov , thank you so much for your help.
I restarted the application process and was able to list and show my snes roms in the application.
Now the following problem has occurred: When starting any snes game and press any buttom (START, SELECT, ETC), the app simply breaks and freezes. I tried with many different roms and games.
Strange that the ones from NES work perfectly, only the ones that break the app.
I used the game Contra III - The Alien Wars (U) [!]. Smc
This is my error log:
`I0113 15:18:12.595507    2832 log.go:301] Overlord: Received start request from a browser
I0113 15:18:12.595546    2832 log.go:301] Overlord: Relay start request from a browser to worker
I0113 15:18:12.596011    2833 log.go:301] Received a start request from overlord
I0113 15:18:12.596180    2833 log.go:301] Starting game Contra III - The Alien Wars (U) [!]
I0113 15:18:12.596383    2833 log.go:301] Got Room from local    ID:
I0113 15:18:12.596507    2833 log.go:301] Init new room:  514e1003ee5b19ef___Contra III - The Alien Wars (U) [!] Contra III - The Alien Wars (U) [!] {Contra III - The Alien Wars (U) [!] assets/games/Contra III - The Alien Wars (U) [!].smc smc}
I0113 15:18:12.596608    2833 log.go:301] Updated player Index to:  0
I0113 15:18:12.597791    2833 log.go:301] Is PC in room false
I0113 15:18:12.597945    2833 log.go:301] Detach peerconnection
I0113 15:18:12.598409    2832 log.go:295] Overlord: Received registerRoom room 514e1003ee5b19ef___Contra III - The Alien Wars (U) [!] from worker edcd5b17-7786-49e0-8d75-14a29afc383d
I0113 15:18:12.598490    2832 log.go:295] Overlord: Current room list is: map[514e1003ee5b19ef___Contra III - The Alien Wars (U) [!]:edcd5b17-7786-49e0-8d75-14a29afc383d]
I0113 15:18:12.598555    2832 log.go:301] Received room response from browser:  514e1003ee5b19ef___Contra III - The Alien Wars (U) [!]
I0113 15:18:12.621099    2833 log.go:301] Check  /root/.cr/save/514e1003ee5b19ef___Contra III - The Alien Wars (U) [!].dat  on online storage :  false
I0113 15:18:12.621129    2833 log.go:301] Check if game is on cloud storage
I0113 15:18:12.632927    2833 log.go:295] Room 514e1003ee5b19ef___Contra III - The Alien Wars (U) [!] started. GamePath: assets/games/Contra III - The Alien Wars (U) [!].smc, GameName: Contra III - The Alien Wars (U) [!]
Libretro API version: 1
ROM size: 1048576
library_name: Mednafen bSNES
library_version: v0.9.26 c40d159
valid_extensions: smc|fig|bs|st|sfc
need_fullpath: true
block_extract: false
Video pixel: {0 0 0 1 0 4} 1 0 1 2[Log]: Loading assets/games/Contra III - The Alien Wars (U) [!].smc...
[Log]:  Using module: snes(Super Nintendo Entertainment System/Super Famicom)
[Log]: MDFN_MakeFName: ./Contra III - The Alien Wars (U) [!].srm
[Log]: MDFN_MakeFName: ./Contra III - The Alien Wars (U) [!].rtc
[Log]: (null)
--- System audio and video info ---
Aspect ratio:  1.3333333730697632
Base width:  256
Base height:  224
Max width:  512
Max height:  512
Sample rate:  44100
FPS:  60.1
I0113 15:18:12.746981    2833 log.go:295] Viewport custom size is disabled, base size will be used instead 256x224
I0113 15:18:12.747271    2833 log.go:301] meta:  {assets/emulator/libretro/cores/mednafen_snes_libretro<PHONE_NUMBER>0 60 256 224 1.3333333730697632}
I0113 15:18:12.747401    2833 log.go:301] Video Encoder:  VP8
I0113 15:18:12.747533    2833 log.go:301] Enter fan audio
0.726540, 0.727273
listening audio channel true
panic: runtime error: index out of range
goroutine 76 [running]:
github.com/giongto35/cloud-game/pkg/emulator/libretro/nanoarch.coreInputState(0x100000004, 0x0, 0xdde0a8)
/home/ellus/Downloads/aff/aff/pkg/emulator/libretro/nanoarch/nanoarch.go:146 +0x1df
github.com/giongto35/cloud-game/pkg/emulator/libretro/nanoarch._cgoexpwrap_8b53d38a9b3f_coreInputState(0x100000004, 0x0, 0x0)
_cgo_gotypes.go:499 +0x41
github.com/giongto35/cloud-game/pkg/emulator/libretro/nanoarch._Cfunc_bridge_retro_run(0x7f0e516e63f0)
_cgo_gotypes.go:276 +0x41
github.com/giongto35/cloud-game/pkg/emulator/libretro/nanoarch.nanoarchRun.func1(0x7f0e516e63f0)
/home/ellus/Downloads/aff/aff/pkg/emulator/libretro/nanoarch/nanoarch.go:439 +0x56
github.com/giongto35/cloud-game/pkg/emulator/libretro/nanoarch.nanoarchRun()
/home/ellus/Downloads/aff/aff/pkg/emulator/libretro/nanoarch/nanoarch.go:439 +0x2d
github.com/giongto35/cloud-game/pkg/emulator/libretro/nanoarch.(*naEmulator).Start(0xc000336000)
/home/ellus/Downloads/aff/aff/pkg/emulator/libretro/nanoarch/naemulator.go:160 +0x81
github.com/giongto35/cloud-game/pkg/worker/room.NewRoom.func1(0xc000162480, 0xc00007c360, 0x2260, 0x7ffda194a727, 0xe, 0x1, 0x0, 0x140, 0xf0, 0xda3038, ...)
/home/ellus/Downloads/aff/aff/pkg/worker/room/room.go:134 +0x8c6
created by github.com/giongto35/cloud-game/pkg/worker/room.NewRoom
/home/ellus/Downloads/aff/aff/pkg/worker/room/room.go:89 +0x42e
I0113 15:18:17.057696    2832 log.go:301] [!] read: websocket: close 1006 (abnormal closure): unexpected EOF
I0113 15:18:17.057728    2832 log.go:301] Unregister server from overlord
Makefile:75: recipe for target 'dev.run' failed
make: *** [dev.run] Error 2
root@ellus-370E4K:/home/ellus/Downloads/aff/aff# `

@Scatmannn, yes, I see. I have the same error. Thanks for report, I'll try to look into it tomorrow if @giongto35 won't fix it before me. I haven't look into the code in a while, so I'm not up to date with all the changes. It seems, something has broken in the user input...

Thanks @Scatmannn for your interest in the project. Thanks @sergystepanov for your punctual support, long time no see you :D.
I just updated some input and add voice chat inside. Seems like it is a broken change. I will take a look at it. In meantime, @Scatmannn  you can skip the last commit or 2 commits. reset to this one:
https://github.com/giongto35/cloud-game/commit/4b9dc14c1154b50ca2d4dd4f10b64b628ad4d7e8

Hi, I fixed the issue on master. You can pull it again.
The bug is that contra game has more than 5 game ports (5 game players ??), so it caused index out of range. I just set the max port to 8 + do some refactor.

@giongto35
Wow!! Nice!
In fact the bug was happening to all SNES games, no matter if the rom was E, U or J they were all crashing with this problem.
I did some testing here now, about 15 minutes of testing on the Gradius III game and it worked very well.

Thank you very much for your attention and willingness to help.
Best regards

@Scatmannn  You re welcome :D.
Hope you have good experience with the project. Let me know if you find any room for improvement, I 'm willing to do it.

Hm, If I understand correctly that 'port' thing:

The ascending input port indexes provided by the core in the struct are generally presented by frontends as ascending User # or Player #, such as Player 1, Player 2, Player 3, etc.

So, it's basically the maximum cap of distinct inputs of the core.
After looking into the code of some cores (nestopia, bsnes), I'm pretty sure the number of ports available in the frontend callback: func coreInputState(port C.unsigned, ... can only be extracted from the environment variable RETRO_ENVIRONMENT_SET_INPUT_DESCRIPTORS, something like this (don't know the exact Go syntax):
case C.RETRO_ENVIRONMENT_SET_INPUT_DESCRIPTORS:
  descriptors := (*[1 << 30]C.struct_retro_input_descriptor)(data)
  maxPort := 0
  for _, descriptor := range descriptors {
    // array of descriptions terminated with the null description by the docs
    // descriptor.device can be whatever it can be and not only joy_pad
    if descriptor.description == nil { break }
    if (some cast) descriptor.port > maxPort { maxPort = thatPort }
  }
break

And this variable (as example in nestopia) is just some description for frontend developers from core devs (:, which should be true but who knows how they code input callbacks, as example in Nestopia they just hard coded 4 port callback (input_state_cb):
 if (supports_bitmasks)
   {
      int16_t ret[4];
      /* Player 0 needs some extra checks */
      ret[0]              = input_state_cb(0, RETRO_DEVICE_JOYPAD, 0, RETRO_DEVICE_ID_JOYPAD_MASK);
      ret[1]              = input_state_cb(1, RETRO_DEVICE_JOYPAD, 0, RETRO_DEVICE_ID_JOYPAD_MASK);
      ret[2]              = input_state_cb(2, RETRO_DEVICE_JOYPAD, 0, RETRO_DEVICE_ID_JOYPAD_MASK);
      ret[3]              = input_state_cb(3, RETRO_DEVICE_JOYPAD, 0, RETRO_DEVICE_ID_JOYPAD_MASK);
...
     for (unsigned p = 0; p < 4; p++)
      {
         for (unsigned bind = 0; bind < sizeof(bindmap_default) / sizeof(bindmap[0]); bind++)
            input->pad[p].buttons |= input_state_cb(p, RETRO_DEVICE_JOYPAD, 0, bindmap[bind].retro) ? bindmap[bind].nes : 0;

Personally, I'd try to connect these things to keep them in sync.
In the bsnes, as you said, 5 ports.
It's up to core devs to decide how many ports they want (:.
Speaking of this issue, I'd be fix this like that:
func coreInputState(port C.unsigned, device C.unsigned, index C.unsigned, id C.unsigned) C.int16_t {
	if id >= 255 || index > 0 || device != C.RETRO_DEVICE_JOYPAD
                     ->   || port > maxPort in your bitmap struct (:
		return 0
	}

(I'm busy with stuff, probably gonna have some time to code what I wanted by the spring :)

Hello again! @giongto35 @sergystepanov
Today I have done several tests with various games and all are presenting the same problem: Freeze for no apparent reason, even in tests where I simply turn on the game and let it run without pressing any button on the interface or keyboard.
Games tested:

Gradius III (U) [!] (Snes)
Bishoujo Senshi Sailor Moon Super S - Fuwa Fuwa Panic (J) (snes)
Samurai Showdown III (psx)
yu-gi-oh! - forbidden_memories (psx)

And many others.
If relevant, here is what happens in my log (I use ubunto 18.04 - 64bits for the tests):

[Log]:  Using module: snes(Super Nintendo Entertainment System/Super Famicom)
[Log]: MDFN_MakeFName: ./Bishoujo Senshi Sailor Moon Super S - Fuwa Fuwa Panic (J).srm
[Log]: MDFN_MakeFName: ./Bishoujo Senshi Sailor Moon Super S - Fuwa Fuwa Panic (J).rtc
[Log]: (null)
--- System audio and video info ---
Aspect ratio:  1.3333333730697632
Base width:  256
Base height:  224
Max width:  512
Max height:  512
Sample rate:  44100
FPS:  60.1
I0114 16:25:51.636870    3287 log.go:295] Viewport custom size is disabled, base size will be used instead 256x224
I0114 16:25:51.637025    3287 log.go:301] meta:  {assets/emulator/libretro/cores/mednafen_snes_libretro<PHONE_NUMBER>0 60 256 224 1.3333333730697632}
I0114 16:25:51.637091    3287 log.go:301] Video Encoder:  VP8
I0114 16:25:51.637318    3287 log.go:301] Enter fan audio
0.726540, 0.727273
listening audio channel true
I0114 16:26:16.488209    3287 log.go:295] ICE Connection State has changed: disconnected
I0114 16:26:16.488321    3287 log.go:301] ===StopClient===
I0114 16:26:16.488990    3287 log.go:295] ICE Connection State has changed: closed
I0114 16:26:16.489114    3287 log.go:301] Data channel closed
I0114 16:26:16.489154    3287 log.go:301] Closed webrtc

Hi, @Scatmannn!
I would like to ask some questions, if you don't mind?

How long does it take to make the games stop on average?
Is it same amount of time or it differs from game to game or run to run?
What do you mean by "Freeze for no apparent reason"? Game frozen completely, no audio, video and controls?

I tried to run (on Windows) your list of games and Gladius (geez, this game is hard) with Pokemon Cards and played for 10 minutes then let them sit for a bit, it worked just fine. Sailor moon with Samurais was just a black screen from the beginning and won't run, same as on RetroArch, so it's a problem with cores themself or these 2 roms.
Ok, gonna try to reproduce it on Linux later, then. Hard to tell what problem that can be.

Thanks  @sergystepanov for the investigation on port :+1:, you always provide valuable insights.
Hi @Scatmannn, As @sergystepanov said, if RetroArch cannot run the game, it's is game issue.
I'm also curious about the symptoms: Is it freeze after like 10 mins no input or just stop even at the beginning.
I indeed sometimes get hang on production server for some unknown reason, don't know if it's related in this case. I think I rely on WebRTC DataChannel and when it's close for reason like timeout, the game session will stop.
I will try to reproduce also.


BUG: Using urlKeys option with history push makes state unresponsive to URL change

Context
What's your version of nuqs?
"nuqs": "2.1.1"

What framework are you using?

✅ Next.js (app router)

Which version of your framework are you using?
v14.2.0

-> Paste the relevant framework versions from your package.json here
"dependencies": {
    "next": "14.2.0",
    "nuqs": "2.1.1",
    "react": "^18",
    "react-dom": "^18"
  },

Description
If you use the urlKeys option along with history: "push", then on pressing the browser back button, the query params get removed from the URL but the state variable returned by useQueryStates still shows the old value.
This issue does not occur if you remove urlKeys.
Reproduction
https://codesandbox.io/p/devbox/tender-paper-8sd759
Example: Steps to reproduce the behavior:

Open the code sandbox
Go to /working route to see the correct behvaior. The steps to perform are written there. This page does not use urlKeys hence it works well.
Now go to the /not-working route to see the incorrect behavior that happens when you add urlKeys. The steps to perform are mentioned there.

Thanks for this great report!
I can reproduce the error and I think I see where it's coming from, I'll have a fix out shortly.

Could you try this and let me know if it solves the problem on your end?
pnpm add https://pkg.pr.new/nuqs@759

Yup, this fixes the problem in my codebase as well. Thanks!


Add support for partitioned cookies

For cookies set within iframes it's helpful to set the Partitioned flag to have compatibility with Chrome's CHIPS update.
Example usage might be:
// middleware.ts

import { createCsrfMiddleware } from '@edge-csrf/nextjs';

// initalize csrf protection middleware
const csrfMiddleware = createCsrfMiddleware({
  cookie: {
    secure: process.env.NODE_ENV === 'production',
    partitioned: true, // add this new arg
  },
});

export const middleware = csrfMiddleware;

Thanks for the suggestion! I added support for the partitioned attribute and published a new release candidate (v2.3.0-rc1):
https://www.npmjs.com/package/@edge-csrf/nextjs/v/2.3.0-rc1?activeTab=versions
Let me know if it's working as expected.

@bookernath Have you had a chance to try out the release candidate (v2.3.0-rc1)? Let me know if it's working for you and I can cut a new release.
https://www.npmjs.com/package/@edge-csrf/nextjs/v/2.3.0-rc1?activeTab=versions

This feature is live in v2.3.0


chore: update renovate config

:tada: This PR is included in version 4.7.2 :tada:
The release is available on:

v4.7.2
GitHub release

Your semantic-release bot :package::rocket:


Fix missing traceback import

Any reviewer can review and I'll only need one approval.
Noticed this here in association with issue 9740.
Good news! Lint is coming and will catch oversights like this in the future.

... or the missing import is the cause of issue 9740 and the fix is already drafted as pull request 9739. :-P


og:image:secure_url is not set correct when content has metadata for image & og:image

To Reproduce
When metadata has 2 images for image and og:image the og:image:secure_url is an absolut link using the image meta data.
Expected behavior
If og:image is set in metadata it should ne used for og:image:secure_url as well.

In general when we add an og:image the og:image on the page is relative to the page. According to OpenGraph it should be absolute. Same for twitter, and apparently Slack (and maybe other social platforms) have issues showing the image.


Add inject class for coproducts

This can't work like that - constraints don't contribute to selection therefore injectLeft and injectRight are the same from an apartness point of view.

Would need to be something like:
instance injectReflexive :: Inject f f where
  inj = identity
  prj = Just

else instance injectLeft :: Inject f (Coproduct f g) where
  inj = Coproduct <<< Left
  prj = coproduct Just (const Nothing)

else instance injectRight :: Inject f g => Inject f (Coproduct h g) where
  inj = Coproduct <<< Right <<< inj
  prj = coproduct (const Nothing) prj

Wait, what's the difference between this and https://github.com/purescript/purescript-inject/pull/10

Gonna deprecate inject :)

Oh right we are deprecating -inject?

Wait, am I lying?  Hold on.

No I'm not lying.  The issue is the reflexive case.  The compiler doesn't know that f /~ Coproduct f g (even though that is impossible).

Issue: https://github.com/purescript/purescript/issues/3329

Thanks! I see what's going on now.


CC0001 Is raised on multiple variable declarations.

The following code raises CC0001
public void Foo()
{
    string foo = "", otherFoo = "";
}

However the code fix introduces a compile error:
 Error	CS0819	Implicitly-typed variables cannot have multiple declarators

Bug confirmed.

Closed on #549.


feat(zk_toolbox): Add zk_supervisor override configs command

What ❔
Add zk_supervisor override configs command
Why ❔
In some cases we want to override some default configs. Right now it is done manually and we need proper automation for regular use/ci.

As an integration test you can remove this sed
https://github.com/matter-labs/zksync-era/blob/3609ea6f1b6d767c0f1d64a9303f0331db920931/.github/workflows/ci-core-reusable.yml#L129-L131


Getting Data from Other Workbooks

I am not finding any documentation on how to get data from other Excel workbooks. I know this is possible with Google App Script, but it does not look I am finding anything about this with Office Script

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

ID: 91eab22e-1a2a-a9e7-2331-f87462d64fcc
Version Independent ID: bf0955e2-2a06-ea7d-3d78-c8c52294d23a
Content: Scripting fundamentals for Office Scripts in Excel on the web - Office Scripts
Content Source: docs/develop/scripting-fundamentals.md
Product: excel
Technology: scripts
GitHub Login: @o365devx
Microsoft Alias: o365devx

@sumurthy This is a question about whether Office Scripts supports getting data from other spreadsheets. @alison-mk We also may need to update docs for clarity either way?

@sumurthy This is a question about whether Office Scripts supports getting data from other spreadsheets. @alison-mk We also may need to update docs for clarity either way?

correct! Essentially trying to have one Excel be my single source of truth and have it update other Excel sheets. All the data is stored within the same SharePoint

correct! Essentially trying to have one Excel be my single source of truth and have it update other Excel sheets. All the data is stored within the same SharePoint

@mhusk, Currently, an Office Script runs on a single workbook at a time. You could use Power Automate to combine multiple scripts in different workbooks into a single flow. There's a series of PA-centric tutorials that teach the platform and how to both pass data to and return data from workbooks using scripts:

Pass data to scripts in an automatically-run Power Automate flow
Return data from a script to an automatically-run Power Automate flow

I'll pass this along to the product team to confirm this answer. Would you be willing to share your scenario? That way, we can consider how to best help solve your problems and improve Office Scripts.

@mhusk, Currently, an Office Script runs on a single workbook at a time. You could use Power Automate to combine multiple scripts in different workbooks into a single flow. There's a series of PA-centric tutorials that teach the platform and how to both pass data to and return data from workbooks using scripts:

Pass data to scripts in an automatically-run Power Automate flow
Return data from a script to an automatically-run Power Automate flow

I'll pass this along to the product team to confirm this answer. Would you be willing to share your scenario? That way, we can consider how to best help solve your problems and improve Office Scripts.

Hi @mhusk,
@sumurthy confirmed with me that Power Automate is currently needed scripts to work with multiple workbooks. He has a sample here: https://github.com/sumurthy/officescripts-projects/tree/main/Event Cross Reference
We are working on new APIs to link to an external workbook from a script and pull data from that workbook. Those should be available soon.

Hi @mhusk,
@sumurthy confirmed with me that Power Automate is currently needed scripts to work with multiple workbooks. He has a sample here: https://github.com/sumurthy/officescripts-projects/tree/main/Event Cross Reference
We are working on new APIs to link to an external workbook from a script and pull data from that workbook. Those should be available soon.

@AlexJerabek I can share my scenario. I am not super well versed with Power Automate. I can share my use case

@AlexJerabek I can share my scenario. I am not super well versed with Power Automate. I can share my use case

@mhusk This might be a better discussion to have on Stack Overflow (with the "office-scripts" tag). There's actually a related question already there: https://stackoverflow.com/questions/65547948/read-data-from-another-excel-workbook-using-office-script

@mhusk This might be a better discussion to have on Stack Overflow (with the "office-scripts" tag). There's actually a related question already there: https://stackoverflow.com/questions/65547948/read-data-from-another-excel-workbook-using-office-script

@mhusk Thanks for the question. Please feel free to reach out to me suramam (at) microsoft . com for any details you may have on the scenario. Very curios to learn about it and verify that our upcoming API will support your scenario. Also sent a connect over LinkedIn. You can use either medium for next comm. Thanks!

@mhusk Thanks for the question. Please feel free to reach out to me suramam (at) microsoft . com for any details you may have on the scenario. Very curios to learn about it and verify that our upcoming API will support your scenario. Also sent a connect over LinkedIn. You can use either medium for next comm. Thanks!


Allow to set which terminal to launch (Mac)

It would be great to be able to choose which terminal app to use when launching Boot2Docker.app.
I'm a iTerm2 user an I wish it were used instead of Apple's Terminal.app.

@inigosola this works perfectly, thanks !

It's worse that just needing to support it.  On my installation, it confuses iTerm and Terminal.  An extra window that I can't access shows up on iTerm2, and a second dock icon shows up for Terminal, but I cannot get access to the shell on the docker instance.
This is a bug and should be fixed.

Somewhat related is that for me the default handler for .command files (terminal) was Terminal, not iTerm. So I put together a small project to describe and test the defaults: https://github.com/sirkkalap/osx-default-terminal

+1 pls

+1

+1, but make it an option. You should be able to use an env var or config file/flag in $HOME/.boot2docker/

:+1:

+1

+1

+1

+1

+1

+1

+1

+1

+1

+1

:+1:

+1

+1

+1

OK, I got tired of getting all of the notifications. I created an AppleScript (what a horrible language!) that:

Checks if iTerm exists
Checks if ~/.boot2docker/terminal exists
Checks if the first word in ~/.boot2docker/terminal equals "iTerm"

If all of the above are true, it launches in iTerm; else, it launches in Terminal
I cleaned up the variables by unifying them outside of Terminal vs. iTerm instantiation, but didn't bother fixing the different implementation methods (Terminal uses do script, iTerm uses write text, etc.) but it works quite well.
Pull Request coming in 2...

I may be wrong here, but
using open command to open a script that has extension .command might work too. And it would use the system default terminal, so there would be no need for configuration.
Any thoughts about that?

+1

+1

+1

+1 for integrate with iterm2

+1

+1

+1

:+1:
boot2docker can inspect the global environment variables for something like:
DOCKER_TERM=/path/to/term and use that Terminal.

There are some possible options mentioned in this StackOverflow thread.

+1

+1

+1

+1

+1

+1

:+1:

This was already done in this commit https://github.com/boot2docker/osx-installer/tree/8f2332575d7ad2fb3d9abf60b175de69488cf946/mpkg/boot2docker.app/Contents/Resources/Scripts

Terminal agnostic boot2docker launcher: https://gist.github.com/afmacedo/013723430541a2fc4d94


Org level APIs

As the provider of a set of APIs, I would like to be able to offer certain APIs at the "org" level. The idea is these APIs would provide capabilities focused around applying configuration and policy across end user workspaces within an org.
Example Use Case:
As an org administrator, I want to specify a set of domains that can be used for exposing services via ingress in my org workspaces. The API I am using needs me to verify ownership of the domain via a DNS txt record. I can do this at the workspace level, but this means re-verifying the domain for each individual workspace. Instead I would like to verify my domain once with the org workspace, and then have it be available for use within any workspace under my org.
@sttts  @chirino @ncdc

The workspace type work @stevekuznetsov is one will allow addition of APIBindings. With @ncdc's APIExport virtual workpace you will then be able to access those API objects in all workspaces. tl/dr: we are near.


share ref with update method

Describe the Feature
Allow to control of value by ref (only for web version so far).
Possible Implementations
ref.current.updateValue(value: number)
Related issue
https://github.com/react-native-community/react-native-slider/issues/205

Can anyone please tell me how to update the value using ref?

Can anyone please tell me how to update the value using ref?

You can usesliderRef.current.setNativeProps({ value: 50 }).

Can someone give a minimum working example on how to actually get the ref? This is my not working example
import * as React from 'react';
import Slider, { SliderRef } from '@react-native-community/slider';

const SliderTest: React.FC = () => {
  const sliderRef = React.useRef<Slider>();

  return (
    <Container>
      <Slider
        ref={sliderRef}
      />
    </Container>
  );
}

This works for me:
import React, { useState, useRef } from "react";
import Slider from "@react-native-community/slider";

const SliderComponent = (props) => {
    const sliderRef = useRef(null);
    const [duration, setDuration] = useState("45");
    <View>
      <TextInput
        style={styles.durationText}
        value={duration}
        onChangeText={(value) => {
          setDuration(value);
          sliderRef.current.setNativeProps({ value: parseInt(value) });
        }}
        keyboardType={"number-pad"}
        maxLength={3}
      />
      <Slider
        style={styles.slider}
        minimumValue={0}
        maximumValue={120}
        step={1}
        value={45}
        onValueChange={(value) =>
          setDuration(Math.floor(value).toString())
        }
        ref={sliderRef}
      />
    </View>
}

Handling some edge cases like empty strings is still required but the basics should work

Can someone give a minimum working example on how to actually get the ref? This is my not working example
import * as React from 'react';
import Slider, { SliderRef } from '@react-native-community/slider';

const SliderTest: React.FC = () => {
  const sliderRef = React.useRef<Slider>();

  return (
    <Container>
      <Slider
        ref={sliderRef}
      />
    </Container>
  );
}

This is the error
No overload matches this call.
  Overload 1 of 2, '(props: Readonly<SliderProps>): Slider', gave the following error.
    Type 'MutableRefObject<Slider | undefined>' is not assignable to type '(string & MutableRefObject<SliderRef>) | (((instance: Slider | null) => void) & MutableRefObject<SliderRef>) | (RefObject<...> & MutableRefObject<...>) | undefined'.
      Type 'MutableRefObject<Slider | undefined>' is not assignable to type 'RefObject<Slider> & MutableRefObject<SliderRef>'.
        Type 'MutableRefObject<Slider | undefined>' is not assignable to type 'RefObject<Slider>'.
          Types of property 'current' are incompatible.
            Type 'Slider | undefined' is not assignable to type 'Slider | null'.
              Type 'undefined' is not assignable to type 'Slider | null'.
  Overload 2 of 2, '(props: SliderProps, context?: any): Slider', gave the following error.
    Type 'MutableRefObject<Slider | undefined>' is not assignable to type '(string & MutableRefObject<SliderRef>) | (((instance: Slider | null) => void) & MutableRefObject<SliderRef>) | (RefObject<...> & MutableRefObject<...>) | undefined'.
      Type 'MutableRefObject<Slider | undefined>' is not assignable to type 'RefObject<Slider> & MutableRefObject<SliderRef>'.
        Type 'MutableRefObject<Slider | undefined>' is not assignable to type 'RefObject<Slider>'.ts(2769)
index.d.ts(143, 9): The expected type comes from property 'ref' which is declared here on type 'IntrinsicAttributes & IntrinsicClassAttributes<Slider> & Readonly<SliderProps> & Readonly<{ children?: ReactNode; }>'
index.d.ts(143, 9): The expected type comes from property 'ref' which is declared here on type 'IntrinsicAttributes & IntrinsicClassAttributes<Slider> & Readonly<SliderProps> & Readonly<{ children?: ReactNode; }>'

Hi, I had the same issue (it gives me an error on lint but works anyway). So to get rid of the lint error I created a custom type like this:
type MySliderRef = (React.LegacyRef<Slider> & React.MutableRefObject<SliderRef>) | undefined;
...
const sliderRef = useRef() as MySliderRef;
...
(sliderRef?.current as Slider).setNativeProps({ value: 0 });
...
<Slider
  ref={sliderRef}
  style={styles.slider}
  minimumValue={0}
  maximumValue={indexDates.length - 1}
  step={1}
  minimumTrackTintColor="#FFFFFF"
  maximumTrackTintColor="#000000"
  onValueChange={onDateSliderChange}
  />

I hope that helps!
Regards,
Sandro.


Swift 2.2 - Unknown attribute asmname

It seems that on Xcode 7.3b2 and the included Swift 2.2 beta version, the keyword @asmname has been removed so all those methods are generating errors and preventing the build.
@asmname("zlibVersion") private func zlibVersion() -> COpaquePointer
@asmname("deflateInit2_") private func deflateInit2(strm : UnsafeMutablePointer<Void>, level : CInt, method : CInt, windowBits : CInt, memLevel : CInt, strategy : CInt, version : COpaquePointer, stream_size : CInt) -> CInt
@asmname("deflateInit_") private func deflateInit(strm : UnsafeMutablePointer<Void>, level : CInt, version : COpaquePointer, stream_size : CInt) -> CInt
@asmname("deflateEnd") private func deflateEnd(strm : UnsafeMutablePointer<Void>) -> CInt
@asmname("deflate") private func deflate(strm : UnsafeMutablePointer<Void>, flush : CInt) -> CInt
@asmname("inflateInit2_") private func inflateInit2(strm : UnsafeMutablePointer<Void>, windowBits : CInt, version : COpaquePointer, stream_size : CInt) -> CInt
@asmname("inflateInit_") private func inflateInit(strm : UnsafeMutablePointer<Void>, version : COpaquePointer, stream_size : CInt) -> CInt
@asmname("inflate") private func inflateG(strm : UnsafeMutablePointer<Void>, flush : CInt) -> CInt
@asmname("inflateEnd") private func inflateEndG(strm : UnsafeMutablePointer<Void>) -> CInt

Swift 2.2 abruptly removed the @asmname attribute in favor of @_silgen_name.
There's a branch named swift/2.2 for this project that addresses this issue. As soon as Xcode 7.3 goes live I will merge with the master branch.

Sorry, didn't saw it.
Thanks for your patience.

Actually the branch has been sitting on my laptop for a couple weeks. I didn't push it to Github until you opened this issue.
Also I'm going to keep this issue open until 7.3 is final... in case others might run into the same issue.
Thanks for your help!

Thanks for your work!

Just a reminder: Xcode 7.3 was released. It's time to merge swift/2.2 with master.

+1, currently can't build on Xcode 7.3 as it went out of beta :)

+1

+1

+1

Just pushed an update. There is also a swift/2.0 branch for projects that are not Xcode 7.3 ready.
Please let me know if anyone runs into trouble with this build.
Thanks for your patience.

Thank you very much! :)

Thanks!

No backward compatible? 😞
You could use the new compiler directive:
#if swift(>=2.2)
print("Running Swift 2.2 or later")
#else
print("Running Swift 2.0 or earlier")
#endif

v2.6 could be used on Xcode 7.2 and 7.3.
WDYT?

@ricardopereira I don't think this will work. The '#if swift` directive was introduced in the swift 2.2 compiler. There's no way that I know of to detect the version of the Swift compiler prior to 2.2.
I'm still looking for a work around. It seems that the switch from @asmname to @_silgen_name totally broke backwards compatibility for any project needing that functionality.
I pushed a swift/2.0 branch to help remedy the problem. I know it's not ideal, but it's the only option I'm aware of.
If you have any ideas please let me know. Sorry for the inconvenience. :(

@tidwall Oh, I see. You right. Damn it 😫.
I think the best is to have two different branches like you have then.
Thanks


fix 1-22 dev release build and kops script

Issue #, if available:
Description of changes:

The 1-22 builds were getting overwritten by the dev-release build settings and using the non-minimal images.  This should fix that
Tweaked the kops script to better handle the new version esp wrt the older kube versions.

The kops roles changes to add the newly required perm has been rolled out to prod so we should see passing conformance builds for at least 1.18-1.21.
Testing
Created 1.18-1.21 clusters with kops locally and they all came up correctly.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

/lgtm
/approve


Dockerfile: move systemctl preset-all

In case RPMs are bringing their own presets or these get copied from elsewhere
Follow-up for https://github.com/openshift/okd-machine-os/pull/535#issuecomment-1441878620

/lgtm

/override ci/prow/e2e-gcp-upgrade

/retest

/override ci/prow/e2e-aws-ovn
Only known images used by tests


Updated converter.py util to work with Python 3

Also added .gitignore compatible with VisualStudio and some minor comments + formatting changes.
Cheers

Thanks for the additions. I always meant to get around to updating this

Thanks so much for creating something that works with these inexpensive OLEDS. I'm having a bit of fun with it on a Edrum prototype today.

From: Nick Veitch<EMAIL_ADDRESS>Sent: Saturday, July 6, 2019 2:50 PM
To: evilnick/evilOLED
Cc: Chris Myrick; Author
Subject: Re: [evilnick/evilOLED] Updated converter.py util to work with Python 3 (#4)
Thanks for the additions. I always meant to get around to updating this
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com/evilnick/evilOLED/pull/4?email_source=notifications&email_token=AC73TQ3YFVPWCHQT52HX5E3P6DSOLA5CNFSM4H6UBEC2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODZK6RUY#issuecomment-508946643, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AC73TQ7NPAKJBR6YKWVDV3TP6DSOLANCNFSM4H6UBECQ.


What is this fork?

I was disappointed by the state of TOML libraries in python, so I decided to fork library which is better than others.

tomli/tomli_w: I don't get those arguments about splitting writer and reader. Everyone will question that decision after discovering that new shiny python3.11 tomllib has no dump() method. Also writer is kinda bad and inextensible from user's code, also has no support for pathlib objects encoding.
tomlkit: too difficult to understand and has no support for pathlib objects too.
other shinenigans that already died like qtoml, libtoml, pytoml.

Closest goals to achieve:

DONE get rid of python <= 3.6 compatibility code
DONE process pathlib objects in the base TomlEncoder
replace travis CI with Github Actions
make release on PyPI, for sure by different name, because @uiri is inaccesible for couple of years
TOML v1.0.0/1.1.0 spec support

It's news to me that I'm inaccessible

Oh, my bad, sorry! But you have no github activity for year at least, so I was confused. Do you have plans on python toml library or it will stay unmaintained?


Gazetteer cleanup listener

For #25

@hkkenneth, great! Well done! Just thinking, do we need to have something similar to clean output directory before job execution (to remove outputs from previous run)? @healtex/deid

It can be easily done with a beforeJob() method with an almost identical implementation - do we have any use cases which we may want to keep the files...?

On a different note, I think in the future, we could have a configuration to let advanced users keep the gazetteer files after the job: to inspect them, or to use the files to customize their own gazetteers?

@hkkenneth For the first version (consider the desktop application) we could just use name of the input folder and then create corresponding folders: {name}-gazetteers (for step1) and {name}-results (for step2) in that case we will be able to run multiple instances of app (e.g. processing two datasets at the same time).
Agree that it might be a good idea to keep gazetteers, so we can a corresponding option to our workflow and in the desktop app we could have a checkbox.

What's {name} here? But can't users already achieve the same effect with separate workspace?

@hkkenneth , yep, workspace sounds like a better option.


[Concurrency] Don't warn about re-stating inherited unavailable conformances to Sendable.

The unavailability check was not using the root conformance, which is where the extension declaration with the unavailability attribute is for inherited conformances, leading to bogus warnings about re-stating unchecked conformances to Sendable.
Resolves: rdar://132059160

@swift-ci please smoke test


Property 'validatePaymentVerification' does not exist on type 'typeof Razorpay'

Steps to reproduce the behavior
import Razorpay from "razorpay";

....

 const isSignatureValid = await Razorpay.validatePaymentVerification(
        {
            "order_id": razorpay_order_id,
            "payment_id": razorpay_payment_id,
        },
        razorpay_signature,
        process.env.RAZORPAY_KEY_SECRET
    )

Expected behavior
It should work
Actual behavior
It's not working
Code snippets
No response
Node version
v18.17.0
Library version
2.9.1
Additional Information
No response

For now I'm using this workaround

    const signatureVerificationPayload = `${razorpay_order_id}|${razorpay_payment_id}`;
    const isSignatureValid = await Razorpay.validateWebhookSignature(
        signatureVerificationPayload,
        razorpay_signature,
        process.env.RAZORPAY_KEY_SECRET as string
    )

validatePaymentVerification comes from razorpay-utils use,
import { validatePaymentVerification } from 'razorpay/dist/utils/razorpay-utils';
Refer to this doc
@1995navinkumar (I am tagging you since I found you approving recent PRs.) It looks like there is an import miss in this documentation NodeJS similar miss is in the code snippet of Go as well (missing utils import). I didn't find any repo related to documentation; if it is open source, please share it with me. I'd like to contribute.

The doc is already updated.
Closing this issue.


Install Dell-EMC-Ansible-Modules-for-iDRAC [failed]

QwikContext
I have failure when I tried to install Dell-EMC-Ansible-Modules-for-iDRAC
Details
Ansible is not installed.
FAILED: Dell EMC OpenManage Ansible Modules installation failed.
ASAP
Severity
p2

version python 3.6 solved the problem


Adding correct ETag support

When an HTTP client contains a page locally and requests the same url again, it sends and ETag which is an identifier for the content of the page, with the request. If the server knows that the content hasn't changed, it can answer with 304 and no content. The goal is that there is not useless traffic between the server and the client.
Testing the feature:

Send a request to any url
Ensure the response contains a specific ETag header
Send the same request, its headers should have a If-None-Match: [ETAGVALUE]
The result should be coming from the cache, as a 304, with the same ETag header, and no body
Send a no-cache request (CTRL+F5), the result should have a different ETag, and the full body

/cc @DanielStolt @Piedone for review

Works as expected for me during a smoke test.
Note: if you test this with Chrome Dev Tools be aware that by default it disabled caching so ETags won't be sent. You can overcome this by unticking cache disabling under its settings.

It worked for me on Chrome, with the F12 toolbar if this is what is called Dev Tools. I also verified using cUrl to ensure the body is not sent with the 304.

Review done - looks good. Since you both tested it, we've reached the goal so I won't bother. ;)


apache arrow c++: Ways to invalidate data

To whom this may concern,
I'm working on a research project where I need to delete several rows from an arrow array. Since the arrow does not support update/delete, I wonder if it's possible for me to invalidate data using the validity map?
(I have tried re-construct the table, but the performance was not satisfying).
Thank you for any help in advance!

I came across this example: http://arrow.apache.org/docs/cpp/arrays.html#performance
arrow::Int64Builder builder;
// Make place for 8 values in total
builder.Resize(8);
// Bulk append the given values (with a null in 4th place as indicated by the
// validity vector)
std::vector<bool> validity = {true, true, true, false, true, true, true, true};
std::vector<int64_t> values = {1, 2, 3, 0, 5, 6, 7, 8};
builder.AppendValues(values, validity);

std::shared_ptr<arrow::Array> array;
arrow::Status st = builder.Finish(&array);

In this code, you can construct the validity map while constructing a new arrow::Array.
I wonder if there is an API in Apache Arrow, or an ad-hoc solution, to change this validity map after the construction of arrow::Array so that this will invalidate some elements in this arrow::Array?
Thanks

I wonder if there is an API in Apache Arrow, or an ad-hoc solution, to change this validity map after the construction of arrow::Array so that this will invalidate some elements in this arrow::Array?

Yes...ish.  At this point you're probably venturing into more internal features so it may have gotchas down the road.
For example:
  std::cout << array->ToString() << std::endl;
  arrow::BitUtil::ClearBit(array->null_bitmap()->mutable_data(), 1);
  std::cout << array->ToString() << std::endl;

Some caveats:

null_bitmap is not going to take into account the array offset, if any, so you will need to adjust that into your calculation.
You will need to convert from "index to change" to byte/bit to change (e.g. divide by 8 then modulo 8)
Not all arrays have a validity bitmap (only dense union and sparse union do not at the moment)
The validity bitmap may be null (often when an array is constructed without any null values we do not create one)
The Array caches the null_count so if the null count changes then you would want to unset that cached value.  Unfortunately, I don't know any trick off the top of my head to do this.

Ah, it seems you can do array->data()->SetNullCount(new_null_count); but you will be responsible for doing the math to compute the new null count.  If the null count is wrong then strange things may happen.

Thank you for your response! I'm particularly interested in the third option. Would you mind showing me some hint about how that is done?

Do you mean the compute functions?  Here is an example (sample output is based on @OscarTHZhang 's example):
  ARROW_ASSIGN_OR_RAISE(
      arrow::Datum filter_mask,
      arrow::compute::CallFunction("not_equal", {array, arrow::Datum(2)}));
  std::cout << filter_mask.make_array()->ToString() << std::endl;
  // [true, false, true, null, true, true, true, true]
  ARROW_ASSIGN_OR_RAISE(
      arrow::Datum filtered_array,
      arrow::compute::CallFunction("filter", {array, filter_mask}));
  std::cout << filtered_array.make_array()->ToString() << std::endl;
  // [1, 3, 5, 6, 7, 8]
  ARROW_ASSIGN_OR_RAISE(
      arrow::Datum null_replaced,
      arrow::compute::CallFunction(
          "if_else", {filter_mask, array,
                      arrow::Datum(arrow::MakeNullScalar(array->type()))}));
  std::cout << null_replaced.make_array()->ToString() << std::endl;
  // [1, null, 3, null, 5, 6, 7, 8]

I saw there is a class in gandiva called selection_vector I wonder if that can do the same?

That seems likely but I don't know much about gandiva myself.  Perhaps someone else has a thought.

Resolving.  Any more in depth conversation should probably happen on the dev@ mailing list.


honor connection_pool_per_downstream_connection in tcp_conn_pool

Commit Message: this flag is already supported by httpConnPool. Adding to tcpConnPool as well so that thrift_proxy etc can use this feature.
Risk Level: low
Fixes #34762

@zuercher  Could you please take a look at this PR when you have time.
Looks like you are the domain expert on tcp connection pool (original author) and code owner of thrift proxy.
Thanks

/retest

This needs a test, similar to the existing one that exercises the HTTP version of this feature (See ClusterManagerImplTest's ConnectionPoolPerDownstreamConnection in test/common/upstream/cluster_manager_impl_test.cc.

added ConnectionPoolPerDownstreamConnection_TCP
can use a better name if needed :)

/retest failed

The CI is acting really flaky for me
/retest failed

I was able to get some to pass, but the publish and verify test is failing on master as well.

I was able to get some to pass, but the publish and verify test is failing on master as well. However, the failure here is different. It might be the base that merging master will help.

I did rebase 15h ago. Can try again later today

rebase doesn't help. Failure this time was
Error: ENOSPC: no space left on device, write
/retest failed

/retest failed

/retest failed

/retest

The other thing this PR needs is a release note for the change. Up to you whether you call it a bug fix or a minor behavior change.

done @zuercher

/retest

/retest

/retest

I have never had so much trouble with Envoy CI before 😄
System.IO.IOException: No space left on device : '/home/runner/runners/2.317.0/_diag/Worker_20240715-035746-utc.log'
My other PR passed without issues. This error doesn't look related to my changes but haven't seen a single success after so many re-runs 🤔
/retest

/retest failed

/retest failed

@zuercher CodeQL isn't a mandatory check it seems.
Do you think it is worth blocking on this 'no disk space' failure or is this PR good to go 🤔

it was fixed here: https://github.com/envoyproxy/envoy/pull/35231
retrying the build

/retest failed

/retest failed

@zuercher CodeQL isn't a mandatory check it seems. Do you think it is worth blocking on this 'no disk space' failure or is this PR good to go 🤔

I was out last week in any event, but I don't have permissions to bypass the checks. Looks like it's working now, though.


feat: add @nodevu/translate

adds @nodevu/translate, which acts as a translation layer between nodevu's aliases and the aliases that Package Support (https://github.com/nodejs/package-maintenance/issues/517) uses.

Nice stuff, Tierney 💖

LTS issues will be fixed when this gets a dependency update, I'd rather do that in a follow-up PR.


Added pass-through instances for MonadRecord typeclass

It looks good, but I'm considering making a more general instance instead:
instance (Monad m, MonadTrans t, Monad (t m)) => MonadRecord d (t m) where
    appendRecord = lift . appendRecord

I know that when using it sometimes we can get strange errors (but mostly they will show that something is missing from our side), but it minimalizes the boilerplate much.
I'm using such instances sometimes and they didnt made any big troubles yet.
Another idea could be just to create TH splices to minizmize the boilerplate. Anyway, I will vote for the overlapping instance for now. What do you think about it?

I strongly suggest staying away from OverlappingInstances, especially given that the overlap is publicly exposed by the library. I don't feel confident explaining properly how they can break code, but you can find a lot of literature on this topic.
Using template haskell is a far better alternative to reduce the boilerplate.
As far as I know, this is an intrinsic problem of monad transformers that we can only escape from by using a completely different model, like what is done in extensible-effects or monad-layers.

Ok, that makes perfect sense. I did not know about those packages though. Thank you for the links! :)


mysql: change init container to busybox and nc

In the future, we want to add support for other databases to this helm
chart, such as ClickHouse for OLAP workloads. Each of these new
databases will require their own init containers to check if the main
port is available.
Instead of using multiple container images for multiple tools, let's
simplify the setup using netcat nc inside busybox image.

This change looks fine to me -- though I don't follow your comment about how nc means we don't need multiple containers for other dbs?

@tylerwilliams we will need multiple init containers, but only 1 busybox image will be downloaded and shared between those init containers.

I think you forgot to remove the http in https://github.com/buildbuddy-io/buildbuddy-helm/pull/98/files#diff-b55b63dcd9c43af4e07dadb271098d5ba19b82457833bb74ccbe958924d01c9aR34 (you did it for the enterprise version).
Do you not have tests for your changes? The initcontainer now fails with:
init-mysql nc: bad port '//buildbuddy-mysql'
init-mysql waiting for buildbuddy-mysql service
init-mysql nc: bad port '//buildbuddy-mysql'
init-mysql waiting for buildbuddy-mysql service
init-mysql nc: bad port '//buildbuddy-mysql'
init-mysql waiting for buildbuddy-mysql service
...

@blackliner We've removed the http:// prefix in https://github.com/buildbuddy-io/buildbuddy-helm/commit/40a88eae3d263c72ca9ee1294ba1319e716aa16f and bumped the chart version in https://github.com/buildbuddy-io/buildbuddy-helm/commit/2df6b5cc87b385784d9dc2afe4153603a4c9ec7f
We have a suite of tests / integration tests / etc in https://github.com/buildbuddy-io/buildbuddy - but these Helm charts are best-effort and more of a guide for how BuildBuddy can be deployed (they don't contain all of the bells and whistles needed for a full productionized deployment). Writing tests that would have caught this type of issue would be difficult without deploying a Kubernetes cluster.
For productionized deployments, we recommend using something like Google Cloud SQL or Amazon RDS rather than the mysql container that's included in this chart.
The helm charts are also open source and MIT licensed - so we'd happily accept PRs for both bug fixes and test suites.


Configuring a quartz scheduler process with 0 threads (submit only) and another with X threads

Is it possible for me to create a quartz cluster where:

In one tomcat process, the scheduler will be able to schedule tasks only and not perform any tasks at all.
Another separate process which can both schedule and perform tasks.

I am asking because threadCount must be at least 1 and I am thinking of setting it to 0.
Or if I don't start the scheduler will I be able to achieve this?
Thanks.

I will be closing this issue. I found the answer here: http://www.quartz-scheduler.org/documentation/quartz-2.3.0/cookbook/MultipleSchedulers.html
Basically as long as scheduler.start() is not called, this scheduler can be used to schedule task but not execute them.


Update root pem certs

Hi @nicolasnoble, I further removed the certificate for DST Root CA X3 which is expired a couple of hours ago (https://letsencrypt.org/docs/dst-root-ca-x3-expiration-september-2021/), and it seems the source of truth - https://hg.mozilla.org/mozilla-central/raw-file/tip/security/nss/lib/ckfw/builtins/certdata.txt has yet been updated.

Will this make its way to the python package? I would assume not since I think python uses the certifi certs.

The internal failed test is flaky and MacOS failures are unrelated to this PR.

Is this going to be released? I've bumped into this and I've come up with a workaround but it would be nice to start using this fix.
Thanks

Per https://github.com/grpc/grpc/releases schedule, the next release (pre-release) will happen in a week or so. I will also try cherry-picking #27539 into v.1.41.0 later this week.


How look data in db.

I come from android.I use facebook stetho for see db and which use in hive.

You can use hivedb studio to inspect hivedb data. (You need to upload db file). This is preview feature and may have some issues.
Notes:

Hivedb Studio doesn't supports encrypted boxes
Hivedb uses IndexedDB on browser environment. If you want to inspect db on browsers just check IndexedDB page on DevTools (you can open by pressing F12).

How find my hive db in phone

Hive db files located in getApplicationDocumentsDirectory if you have initialized hive using initFlutter(). Check this stackoverflow answer for copying files from android data directory to computer.

Hivedb studio does a great job! I hope we could edit data then download hive DB from site in the future.
The offline data browser would be a good idea as well.
@TheMisir

https://stackoverflow.com/a/44089388/10925171
This is another solution that works better for me.
if there was a way hivedb studio was watching changes on the files it was great...
The next stage is to integrate it into devtools

https://stackoverflow.com/a/44089388/10925171
This is another solution that works better for me.
if there was a way hivedb studio was watching changes on the files it was great... The next stage is to integrate it into devtools

Hey, maybe you might want to give http://isar.dev a try. It's built by author of Hive, with more richer features and supports inspecting data alongside with other improvements. I don't have any plans on improving hive studio right now

Hive(DBMS) Easily Work with Hive Databases in your Flutter App with hive_ui Package
https://pub.dev/packages/hive_ui

https://pub.dev/packages/hive_ui

https://pub.dev/packages/hive_ui


Revert "Fix docs for "unless-stopped" restart policy"

Reverts docker/docker.github.io#6287

Not what I wanted ...


New Streaming Service Scores + Hybrid Change

Pull request
Purpose
To apply new streaming service scores for HD and UHD qualities, and adjust the guide pages with additions and consistency changes
Approach
Changes:

Updated streaming service scores
Re-ordered streaming service lists in Sonarr guide pages by score (descending)
new UHD Streaming Boost and UHD Streaming Cut CFs to boost and cut streaming service scores at 4K
Updated Sonarr CF page with new CFs
New Sonarr guide sonarr-uhd-streaming-services.md section with new CF details
Repack CFs re-scored for Radarr/Sonarr to allow compatibility with new streaming service CF scores
Updated Web 2160p Recyclarr config
Amended Hybrid CF to apply to Remuxes only

Open Questions and Pre-Merge TODOs
Check all boxes as they are completed

[x] Use github checklists. When solved, check the box and explain the answer.

Learning
If you're adding a new Custom Format make sure you follow the Radarr/Sonarr Custom Format (JSON) Guidelines.
Requirements
Check all boxes as they are completed

[x] These changes meet the standards for contributing.
[x] I have read the code of conduct.

Amended Hybrid CF to apply to Remuxes only

We removed it because they use hybrid if they create a DV + HDR10 release and that's mentioned in the release name anyway
And some releases just add DV HDR10 and don't mention hybrid, and it's basically the same release
And it's not because they use a better source


Big Rewrite - Use MARLlib for everything

[x] Implement basic skeleton to work around
[ ] [IN PROGRESS] Implement custom execution_plan() for ToMMAPPOPolicy trainer (ToMMAPPOTrainer).

[ ] Seperate residual and actor network grad update logic from that of the belief network. I believe this can be done by updating the policy's step(), compute_gradient() and adjacent subroutines.

[ ] Implement the different loss functions for different parts of the policy.
[ ] Optional(???) Modify the specifics of the simple adversary environment to match the environment described by Oguntola et al.

Just updated the tasks for this PR. I think I've figured out how everything is structured w.r.t. MARLLib, Rllib, etc. There's some small things regarding the theory behind the training process proposed by Oguntola et. el. Apart from that I should be on the  home straight with regards to implementing their work.

Alright, all that's left is trying to get the backward pass working and we have a working implementation of Oguntola et al.s' work to play around with!

I'm going to merge this and leave it as is for now. Maybe I'll have the chance to  finish the rest of this off and continue my work on it some other time :)


3.23.52

Fixed it.... Just had to delete my fork and do it again.

I could fix the previous one later but if this one is OK, I'll merge it then :D


Add support for sidc code lookup

Military users need the ability to use the Military Symbol Editor by looking up symbols based on thier SIC code.
This is an exmample code that does not work:  SFG-UCI----D---
Here is a link to a application that can show you what the symbol should look like.
https://spatialillusions.com/unitgenerator.html#SFG-UCI----D---
This is where the search capability should be:

This is already possible, although in 2525B Change 2 there seems to be inconsistency across the industry as to whether the last 3 characters should be --- or ***
If you look in the tags for particular symbols, you'll see that we have gone with the *** option
The action item on this would be to look at mil2525d.stylx or mil2525c_b2.stylx and edit the tags to improve the UX

@Dbarnes1 I want to capture the some of the issues that we were able to understand from talking the other day.
Currently we as a team have two examples of data coming in from customers using --- and not ***. Those customers are the USMC customer that you saw in June 2017 and the DDS message examples that came from an exercise with the US Army. Being that DDS is one of the main ways that DCGS-A shares messages and they use --- I think it would make sense for us to pivot.  We also found out that taking away parts of the code did not allow the symbol to be drawn using just the first part of the SIDC. This is also what was found form @NatalieCampos ran into on issue #180.

Added ability to search by full SIDC in PR: #390
Note the search will find the base symbol / style item on the search pane. It should look like this with PR:

Works as designed. MSE searches only for the base symbol. If there is ever a requirement to search for an entire SIDC and populate fields based on the SIDC pieces, that will require focused workflow design and a new issue.

Doc QC:

[ ]  Defense Whats new -- after PR 8017 is reviewed and merged

verified in PDF MT 341 and MSE 147 and Resources online, PR merged and will wait until next build to pick up/verify What's New.

verified in what's new - closing.


Add support for Memory Buffer SBE dump

The memory buffer SBE dump is similar to the dump collected from the processor SBE, but with a different method. This dump is collected during a critical failure on the SBE and contain specific debug data.
This commit provides an interface calling the dump collection so other services can invoke dump collection when there is an SBE failure detected.

run ci

jenkins run tests please


Question: Accessing environment variable in lua filter

This is a question.
I'm using lua filter and I need a way to access an environment variable within the lua code. Is that possible?

While it is not recommended, you can always use os.getenv (calling system call every time you handle a request probably costly). I think a combination of templating for config and metadata could give better help there.
However, if you insist to do it, an example to call it directly from the script:
          http_filters:
          - name: envoy.filters.http.lua
            typed_config:
              "@type": type.googleapis.com/envoy.config.filter.http.lua.v2.Lua
              inline_code: |
                function envoy_on_request(request_handle)
                  request_handle:headers():add("system-path", os.getenv("PATH"))
                end
                function envoy_on_response(response_handle)
                  response_handle:headers():add("system-path", os.getenv("PATH"))
                end

Thanks!
I was trying os.getenv myself and was not doing it right. It works now. Although like you said from performance point of view I will try to figure out a way where I may not need to read from env.
Closing this ticket


Additional Delete Options for Windows OS - Move to Recycle Bin

This change adds a new option for Windows users to optionally select to move the selected files to Recycle Bin rather Permanently Delete them from disk.
This way, developers (on Windows) would have a chance to restore them back when needed.
This option would be more useful than SCC option to restore, if the deleted file had uncommitted intermediate changes.

Also, are you using it for LV2018? because i'm thinking of moving it to LV2020 as we are no longer using older versions of labview, so it's hard to keep a system around with LV2018 installed just for this plugin

Have you tested this? because when deployed, the Conditional Disable structure does not recognize the OS.

I have tested it only in windows PC. I do not have other OSs.
But the CDS should work fine in a deployed machine where the OS might be different.

Next to that you made a typo in the case of the LVDeleteFile_Provider_OnCommand.vi. It should say LV_DELETE_FILES, but in your version it says LV_DELETE_FILE

Yeah, I might have missed that one..
Will push one commit for its fix.

Also, are you using it for LV2018? because i'm thinking of moving it to LV2020 as we are no longer using older versions of labview, so it's hard to keep a system around with LV2018 installed just for this plugin

I actually used LV 2024 Q1 and used it's beta feature Save Version option to set the project to save all files into 2018 (can see an entry in project file attributes) . I chose this as the source in your branch was saved in 2018.
And I am currently using this plug in with LV 2020 (x64).

I tested the CDS in my PC, strangely CDS with OS as condition does not work as intended.
But, changing the condition to TARGET_TYPE does work,

I'm going to merge this request, but i'm also going to a checkmark to the dialog to remember the choice and not ask again