Add the up/down Device and Interface methods

Add up/down methods to Device and Interface for placing the underlying
device in a up or down state. This interface will also be handy when
adding support for MLDv2.

Thanks for the PR! What's the intended use case?
It seems the new functionality is not yet used for anything, method calls are threaded through and exposed to the user. You can call custom methods on your particular Device with iface.device_mut().up() without needing to add them to the Device trait.
IMO we should add methods to Device when smoltcp itself needs them. Does MLDv2 require up/down?

Does MLDv2 require up/down?

Not explicitly, but there will be requests that we might want to send when we start/stop.

It seems the new functionality is not yet used for anything, method calls are threaded through and exposed to the user. You can
call custom methods on your particular Device with iface.device_mut().up() without needing to add them to the Device trait.
IMO we should add methods to Device when smoltcp itself needs them. Does MLDv2 require up/down?

Yeah, currently this isn't really much different than iface.device_mut.up(). You're 100% right about that. This doesn't have to complicate any existing device implementations, but is something that users would likely have to hand implement. I can't think of a use case where you would not want to implement a up/down method for your device.

Thinking about it, there are 2 related but different things we want:

Actively set the device in an up/down state.
Ask whether the device is up/down.

A device may come up/down "on its own". For example, an Ethernet being plugged/unplugged, WiFi connecting/disconnecting.... Or it may come up/down due to us manually setting it up/down. I imagine an Ethernet driver may report as "up" when we've set it as up AND there's a cable plugged in.
so perhaps all smoltcp needs is the second? Just an fn is_up(&self) -> bool in the trait. This would be useful for DHCP, MLD, IGMP and others to know when the network comes up, to react accordingly.
The first can be done with device-specific methods, calling them through iface.device_mut(). Smoltcp will never need to call them, just the user, so it makes sense for them not to be in the trait.

We discussed yesterday in the chat about the DHCP always needing 5s.
It turned out to be that smoltcp tried to do DHCP DISCOVER while the link was down, and the 5s came from the retry cooldown.
Something like this would give smoltcp opportunity to act accordingly to the link state, as @Dirbaio pointed out.
As it is not the user need to track the up/down state of the link and reset DHCP when the link goes down -> up.
Not sure if it's smoltcp's job to track this though, I'm not that familiar with its design.


SERVER_CHANGELOG.md has been added for v0.44.0

Motivation and Context
SERVER_CHANGELOG.md  has been added (generated through the changelogger tool)
Description
Server side SDK has it's own SERVER_CHANGELOG.md that will have the server side changes carried out in a revision.
Testing
Checklist
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Let's talk about how we should go about this. My initial impression is that this shouldn't be a separate .next.toml since we can make changes that affect both the client and the server, and we shouldn't have to copy/paste entries into both files to represent those. Also, GitHub can only have one set of notes for a release, so these really should be combined.
I think we can just add a property to the current changelog toml format that indicates the change is for client, server, or both. Then we can just modify how we render the changelog so that it breaks out separate client/server sections.

Is this PR still relevant?

This PR is no longer needed as changelog tool has now been updated to include server SDK changes.


Multiple independent worlds in the same game

What problem does this solve or what need does it fill?
In games with multiple independent in-game worlds (something like different dimensions, different levels etc.), there seems to be no good way to separate these worlds, if you want to simulate each world independently at the same time but still need some interaction between the worlds.
Consider for example a multiplayer game with multiple dimensions. You would want to simulate all these dimensions at the same time on the server, ideally in parallel on multiple threads, since they are independent, yet you also need to have things that are shared between the dimensions, for example networking, list of online players, chat, etc.
Analogous situasions could also arise in singleplayer games. For example want to have a split-screen game, where each side of the screen contains a different world, room, dimension, level, etc, but you want both sides to be playable independently with maybe a few specific interactions between them (for example a racing game where every player races on their own independent track, but times and score are on a shared leaderboard). In such a case input handling, rendering, textures, and maybe a few game specific variables would need to be shared, yet otherwise the separate sides of the screen should be independent.
What solution would you like?
I do not have the appropriate knowledge of Bevy ECS design, to suggest a technically sound solution. However, one approach might be to have a concept of subworlds in the ECS, so each subworld could have its own systems, resources and entities, which would operate independently from other subworlds, but would also have access to entites and resources in the global world as needed (for rendering, input, networking, sharing textures, shared game state etc). All the subworlds could then be scheduled to run in parallel. This would also make it really easy to ensure entites in subwrolds do not accidentally interact.
What alternative(s) have you considered?
As far as I know there are currently two possible alternatives:
Option one would be to run multiple apps at the same time. This would solve the parallelization and independence problems, however any shared state between worlds would be hard to implement, especially stuff like textures, rendering contexts, windows and shared network connections.
Option two would be to run a single app and implement separate worlds with something like a component with a world id.
This makes shared state trivial, however, making the worlds independent would be quite a bit of extra work, because every relevant system would now have to be built to filter and proces entites per world. This is especially troublesome if you want to integrate external plugins like rapier physics, which assumes that all components are in the same physical space. I have no idea if running systems for different world in parallel could be achieved in this case, given that in most cases, different worlds would probably have the same component types in them, so building queries that only target a single world seems impossible. (I suppose with a small, fixed number of worlds you could define a marker component for each world, however this approach falls appart as soon as the number of worlds is variable. This would also not work for systems from external libraries).

I think you might be interested in the Subworld RFC: bevyengine/rfcs#16

Yea, the subworld RFC is probably what you're looking for.
There hasn't been too much progress with it lately, however, we'd appreciate more contribution/discussion for it :)

I was not aware the RFC repo existed. The subworld RFC does indeed seem to be very similar to my proposoal. Closing this in favor of the RFC.


⚠ Jenkins Plugins Artifactory has degraded performance

In dc36ff6, Jenkins Plugins Artifactory (https://get.jenkins.io/plugins/artifactory/) experienced degraded performance:

HTTP code: 200
Response time: 1221 ms

Resolved: Jenkins Plugins Artifactory performance has improved in 7f8abf7 after 20 minutes.


feat: Add hint NTH_OPTIMIZED_PLAN to let the optimzier can select n-th optimized plan

Proposed changes
Add hint NTH_OPTIMIZED_PLAN to let the optimzier can select n-th optimized plan. For example:
you could use
select /*+SET_VAR("nth_optimized_plan"=2) */ * from table

to select the second-best plan in the optimizer.
Problem summary
Describe your changes.
Checklist(Required)

[ ] Does it affect the original behavior
[ ] Has unit tests been added
[ ] Has document been added or modified
[ ] Does it need to update dependencies
[ ] Is this PR support rollback (If NO, please explain WHY)

Further comments
If this is a relatively large or complex change, kick off the discussion at<EMAIL_ADDRESS>by explaining why you chose the solution you did and what alternatives you considered, etc...

run buildall

run buildall


Build Error on 64-bit linux.

http://pastebin.com/h264ftRt

This looks like just a warning. Did you get a non-zero exit code?


Removes go dist

Checklist

[x] I have viewed, signed, and submitted the Contributor License Agreement.
[ ] I have linked issue(s) that this PR should close using keywords or the Github UI (See docs)
[ ] I have added an integration test, if necessary.
[x] I have reviewed the styleguide for guidance on my code quality.
[x] I'm happy with the commit history on this PR (I have rebased/squashed as needed).

sorry nit pick, can you re-add the pkg directory code? It's good historical context if we need it and it won't affect the workflows if it sticks around


Added support for JVM callback ops

This PR is a proposed workaround for a limitation related to my Scala API and discussed in #12895 and #12915. Given that we currently cannot load external op libraries through languages other than Python, this PR adds a JVM callback op to the main TensorFlow library. I understand this is not ideal and may not be acceptable but it's just offered as a possible workaround.
On the plus side, this op is not specific to Scala. It allows any JVM language to create ops that call functions in that language. The arguments and outputs of such functions are arrays of pointers to "eager tensors". The only limitation is that the op invocation has access to the original JVM instance that was used when constructing it. This is similar to the current py_func op limitation though and so, should be fine for now.
@asimshankar Do you think that this is acceptable for now?
P.S. The replication of a few lines from the C API code is ugly but I'm not sure what's best to do here and I didn't want to introduce more changes until you take a look.

Can one of the admins verify this patch?

@eaplatanios : IIUC, this is to allow distribution of your Scala bindings using then nightly builds for the period during which @allenlavoie 's changes to the shared libraries aren't in effect. Given the estimated timeline (O(weeks)), and the fact that in the interim you could build your own libraries instead of using the nightly builds for your distribution, I'm tempted to suggest against adding this operation to the core TensorFlow libraries.
Thanks for for your understanding.

@asimshankar No problem, I totally understand and was kind of expecting that. I'll look into using the CI build scripts you provide on one of our servers.


Add Conditionable trait to support ->when() and ->unless()

WHY
BEFORE - What was wrong? What was happening before this PR?
Nothing
AFTER - What is happening after this PR?
The Conditionable trait from laravel 8 is added. (Backpack minimum laravel 8 version is higher than when this is added into laravel so it is very safe)
https://www.amitmerchant.com/conditionally-executing-callbacks-conditionable-trait-laravel-8x/
I think this will greatly improve the fluent flexibility and reduce if () clauses as you can chain methods on a conditional basis in a fluent way.
HOW
How did you achieve that, in technical terms?
Add the Conditionable trait
Is it a breaking change?
No
How can we test the before & after?
Try chaining ->when() or ->unless() method and inside it call other fluent methods conditionally
Feel free to edit this PR and add the Conditionable trait to other classes too (filters, columns.etc), I can add it too if you all want but tell me which classes
I think this is a small change that is a big improvement to developer DX

The macroable trait can be considered in another PR as well if it isn't done yet.

Laravel's Macroable trait can be considered in another PR as well if it isn't done yet.

✅ Already done 😉

This is a great feature!
@tabacitu I propose to add it to:

CrudColumn
CrudField already done on this PR
CrudFilter
CrudPanel to do things like $this->crud->when($condition, function (CrudPanel $crud) {...}. I think it's useful since very often we set values for settings conditionally.

Sample of a crud field to use in docs:
// If $condition is met, let's add a field
$this->crud->when($condition, function (CrudPanel $crud) {
    $crud->field('email')
        ->label('Email Address')
        ->type('email')
        // Unless $anotherCondition is met, let's add a hint!
        ->unless($anotherCondition, function (CrudField $field) {
            $field->hint('My hint')
            // When the operation is create, let's move the field after name
            ->when($this->crud->getOperation() === 'create', function (CrudField $field) {
                $field->after('name');
            });
        })
        // Finally, if the operation is update, let's put this field into a tab!
        ->when($this->crud->getOperation() === 'update', function (CrudField $field) {
            $field->tab('My tab');
        });
});

How about documenting this here?

Moving this here to continue it. Great idea @ziming... thanks!


Refactoring for v2.0.0 (draft)

Current architecture is copied from ruby.

Internals are  overengineered and difficult to understand.
Speed also can be improved.
Some things like source maps are integrated via kludges.

This ticket should collect suggestions on architecture changes, to make everything more simple.
UPD. hike was rewritten. It did not increased speed, but at least now i'm sure that it has no problems.

Closing. We dropped mincer from nodeca. No need to keep endless tivkets.

Hi @puzrin,
Is this project still have maintenance released ?
What are tools do you suggest to replace it ?
Cheers,
Tortue Torche

Is this project still have maintenance released?

I have no plans no spend noticeable time on it, but if someone will send PR, it will be updated. Also i can share permissions if someone wish to continue.

What tools do you suggest to replace it?

I see no problems with continue use mincer if it satisfies your needs. And here is our new code if that helps to anyone: https://github.com/nodeca/nodeca.core/blob/master/lib/system/init/bundle.js.

@puzrin :+1:

And do you plan to extract Bundler from Nodeca, as a standalone package like Mincer?

No. My experience shows that it takes a lot of time to generalize such things for good library. And my goal is to create nodeca ("product"), not libraries :) .

Alright, maybe I'll try to extract it for a future project...

No problem. Just note that code is a bit dirty. We usually polish after several months of use.

I'm not hurried :smile_cat:

@puzrin by curiosity, what do you use in nodeca as an asset build tool?
Mincer seemed to me like a super powerful tool that no other library would rival with...

@aug-riedinger see links above

Saw it, sorry to have bothered.
Would you mind explaining why you moved away from mincer instead of another custom solution?

Mincer is too file-centric. We needed component-centric tool. Similar code but different approach.


Moving database calls out of Session library into sessions model

For those of us with 'special' database needs (in my case, connecting to DB2 and using non-standard field names in the session table), having all the database calls embedded in the session class is a pain in the keister.  I've moved them out into a sessions model which makes fiddling around with session handling a simple matter of overriding 5 function calls.

hrm, I see your point, however, would good support for DB2 be better?  How are you working with DB2 now, is that something you'd like to see about contributing back?

Support for DB2 would be great, though my situation is probably pretty unusual -- I doubt too many people are running CI on an IBM iSeries.  I actually ended up making native database calls (it looks a lot like PDO, but even more of a pain) and not using the ActiveRecord tools at all.  I might try to wrap my code in something that's more general-purpose, but right now it's not fit for public consumption.
Moving the database code out helps everyone who has funky database issues.  I wrote (and re-wrote) my data access libraries repeatedly trying to get something that would work well on the iSeries but once I had the database calls moved out of the session class, I didn't have to muck around in there again.  I just overrode the model.

@jtboofle
I`ve got similar thing I run some apps on Tomcat/Quercus env. I need to have an access to java backend because we have SOA env. running lots of hubs and adapters with heavy data load.
In my case I have php-java mapper/driver extended by models (where java backend deals with DB using hibernate) Updating the session table is done by Auth model (it load user_session_model), I gave up with updating user_session table using Session lib.


Initialize stake task refactor

This PR refactors the code for the staking task that was implemented in https://github.com/keep-network/keep-core/pull/3026. The task was split and renamed to initialize.

Should we expect any conceptual conflicts with the work in #3096?


Images in ListView disappear when changed/updated

Steps to Reproduce
Images in ListView disappear when updated.  (by the way - updates to text, icons, and checkboxes all work, it's just images not rendering on change).
Code to reproduce at https://github.com/DanVancPdx/listview_problem
What should happen?  When an image is clicked, a popup box (alert) shows images.  When an image in the popup box is selected (tapped), it should change the image in the ListView.
This error occurs on the Alpha channel and Master as well (as of Jan 29).
To Reproduce:

Run App.  The following screen is presented.  Click on the IMAGE of the apple.

A pop-up screen appears (alert), and select any image other than apple.  Click SET.

Note that the apple image is gone.  In it's place should be the selected image.

The Sort Ascending and Sort Descending buttons do sort the list successfully, the text shows correctly in sorted order, but some images disappear.

Note: I've tried setting keys at various levels, all un-successful for me.   Maybe I'm setting them at the wrong place(s).  I've removed all key setting in this example to start fresh with the problem.
Changes to text, icons, and checkbox status work in the ListView - just Images don't.
import 'package:flutter/material.dart';
import 'package:flutter/foundation.dart';
import 'dart:async';

void main() => runApp(new MaterialApp(home: new ItemsSelect(), theme: new ThemeData(primarySwatch: Colors.green), routes: <String, WidgetBuilder>{}));

class FruitList {
  FruitList({
    this.fruitName,
    this.fruitPhotoAsset,
  });

  String fruitName;
  String fruitPhotoAsset;
}

class ItemsSelect extends StatefulWidget {
  ItemsSelect({
    Key key,
  })
      : super(key: key);

  ItemsSelectState createState() => new ItemsSelectState();
}

class ItemsSelectState extends State<ItemsSelect> with RouteAware {
  List<FruitList> fruitsList;

  @override
  initState() {
    super.initState();
    fruitsList = <FruitList>[
      new FruitList(
        fruitName: "{Empty}",
      ),
    ];
    fruitsList.clear();
    this.getData();
  }

  Future<String> getData() async {
    this.setState(() {
      fruitsList.add(new FruitList(
        fruitName: "apple",
        fruitPhotoAsset: "assets/apple.png",
      ));
      fruitsList.add(new FruitList(
        fruitName: "banana",
        fruitPhotoAsset: "assets/banana.png",
      ));
      fruitsList.add(new FruitList(
        fruitName: "pear",
        fruitPhotoAsset: "assets/pear.png",
      ));
      fruitsList.add(new FruitList(
        fruitName: "pineapple",
        fruitPhotoAsset: "assets/pineapple.png",
      ));
      fruitsList.add(new FruitList(
        fruitName: "strawberry",
        fruitPhotoAsset: "assets/strawberry.png",
      ));
    });
    return "Success!";
  }

  _changePhoto(int index) async {
    int _selectedValue = 1;
    var alert = new AlertDialog(
        title: new Text('Set selected image:'),
        content: new SingleChildScrollView(
          child: new ListBody(children: <Widget>[
            new FlatButton(
                color: Theme.of(this.context).primaryColor,
                child: const Text('Set image to watermellon.'),
                onPressed: () {
                  Navigator.of(this.context).pop();
                  _updatePhotoAsset(index, "assets/watermellon.png");
                }),
          ]),
        ));
    showDialog(context: this.context, child: alert);
  }

  _updatePhotoAsset(int i, String asset) {
    setState(() {
      //*** This is the problem area.  The photoAsset is changed, but it usually
      //*** now goes blank on the device.
      //***
      //*** However, the text field does get updated with the appended x.
      fruitsList[i].fruitPhotoAsset = asset;
      fruitsList[i].fruitName += 'x';
      print("photo asset $i updated to: $asset");
    });
  }

  _sortAscending() {
    setState(() {
      fruitsList.sort((x, y) => x.fruitName.compareTo(y.fruitName));
    });
  }

  _sortDescending() {
    setState(() {
      fruitsList.sort((y, x) => x.fruitName.compareTo(y.fruitName));
    });
  }

  @override
  Widget build(BuildContext context) {
    return new Scaffold(
      body: new Container(
          color: Colors.blue.shade100,
          child: new Column(children: <Widget>[
            new Text("\n\n\n"),
            new Container(
                padding: const EdgeInsets.all(8.0),
                color: Colors.blue.shade100,
                child: new Row(
                  children: <Widget>[
                    new Expanded(child: new Text(" ")),
                    new RaisedButton(
                      child: new Text("Sort Asc"),
                      onPressed: () {
                        setState(() {
                          _sortAscending();
                        });
                      },
                    ),
                    new RaisedButton(
                      child: new Text("Sort Desc"),
                      onPressed: () {
                        setState(() {
                          _sortDescending();
                        });
                      },
                    ),
                    new Text("       Tap image to change"),
                  ],
                )),
            new Expanded(
                child: new ListView.builder(
                    itemCount: fruitsList == null ? 0 : fruitsList.length,
                    itemBuilder: (BuildContext context, int index) {
                      return new Card(
                          child: new Container(
                              color: Colors.red.shade100,
                              height: 60.0,
                              child: new ListTile(
                                trailing: new Container(
                                  child: new Row(
                                    mainAxisAlignment: MainAxisAlignment.end,
                                    crossAxisAlignment: CrossAxisAlignment.center,
                                    children: <Widget>[
                                      new GestureDetector(
                                        onTap: () {
                                          setState(() {
                                            _changePhoto(index);
                                          });
                                        },
                                        child: new Image.asset(
                                          fruitsList[index].fruitPhotoAsset,
                                          //*** this photo should get changed by onTap, but doesn't
                                          width: 55.0,
                                          height: 55.0,
                                        ),
                                      ),
                                    ],
                                  ),
                                ),
                                title: new Text('${fruitsList[index].fruitName}', style: new TextStyle(fontWeight: FontWeight.bold)),
                                //*** while this text does get updated by the above onTap
                              )));
                    })),
          ])),
    );
  }
}

Logs
Run your application with flutter run and attach all the log output.
Launching lib\main.dart on Android SDK built for x86 64 in debug mode... Initializing gradle... Resolving dependencies... Running 'gradlew assembleDebug'... Configuration 'debugCompile' in project ':app' is deprecated. Use 'debugImplementation' instead. Configuration 'profileCompile' in project ':app' is deprecated. Use 'profileImplementation' instead. Configuration 'releaseCompile' in project ':app' is deprecated. Use 'releaseImplementation' instead. Built build\app\outputs\apk\app-debug.apk (23.1MB). Installing build\app\outputs\apk\app.apk... I/FlutterActivityDelegate(27235): onResume setting current activity to this D/EGL_emulation(27235): eglMakeCurrent: 0x7feef2ceb4a0: ver 2 0 (tinfo 0x7feef2ce8fe0) Syncing files to device Android SDK built for x86 64... D/        (27235): HostConnection::get() New Host Connection established 0x7feef2ce0140, tid 27250 D/EGL_emulation(27235): eglMakeCurrent: 0x7feef2ceb4a0: ver 2 0 (tinfo 0x7feef33fe200) I/Choreographer(27235): Skipped 52 frames!  The application may be doing too much work on its main thread.
Run flutter analyze and attach any output of that command also.
Analyzing C:\Users\Daniel\Documents\Flutter_Projects\ListViewWithImages\listview_problem...   hint - The member 'activity' can only be used within instance members of subclasses of 'ScrollPosition' at lib\imagePicker.dart:266:30 - invalid_use_of_protected_member 1 issue found. (Ran in 10.9s)
Flutter Doctor
`Microsoft Windows [Version 10.0.16299.192]
(c) 2017 Microsoft Corporation. All rights reserved.
C:\Users\Daniel>flutter doctor
[√] Flutter (on Microsoft Windows [Version 10.0.16299.192], locale en-US, channel alpha)
• Flutter at C:\Users\Daniel\flutter
• Framework revision 8f65fec5f5 (7 weeks ago), 2017-12-12 09:50:14 -0800
• Engine revision edaecdc8b8
• Tools Dart version 1.25.0-dev.11.0
• Engine Dart version 2.0.0-edge.d8ae797298c3a6cf8dc9f4558707bd2672224d3e
[√] Android toolchain - develop for Android devices (Android SDK 27.0.3)
• Android SDK at C:\Users\Daniel\AppData\Local\Android\sdk
• Android NDK at C:\Users\Daniel\AppData\Local\Android\sdk\ndk-bundle
• Platform android-27, build-tools 27.0.3
• Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-915-b01)
[√] Android Studio (version 3.0)
• Android Studio at C:\Program Files\Android\Android Studio
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-915-b01)
[√] IntelliJ IDEA Ultimate Edition (version 2017.3)
• Flutter plugin version 21.0.3
• Dart plugin version 173.4301.22
[√] Connected devices
• Android SDK built for x86 64 • emulator-5554 • android-x64 • Android 6.0 (API 23) (emulator)`

I have a similar issue that seams to be releated. When I load my app the images show as expected

then if I put the app in background and bring it again to front, the images do not show as expected, but I get a white hole where the images should appear

Maybe this is releated to this https://github.com/flutter/flutter/issues/14228

Well, my issue was solved when I did a flutter upgrade using the master branch. Try do that

thanks csbenjamin!  Upgrade to master branch and problem is resolved.  Yay!


Initialize 2.2.2.dev0 version

Coverage remained the same at 90.347% when pulling 00f21f3f079faa986f7e33aa9574cecc8e8faaac on release/dev into 8136146eb34f3bcd701725d9148a0665159ec1d1 on master.


Add Dockerfile

Attached Dockerfile allows to create small docker image (~50 MB) that runs doorman.

Thanks for the contribution. I see the value in having a slimmer base image, but think most people will have an easier time getting started with the official node base. But it certainly makes sense to have busybox-based doorman builds in the docker registry if you'd like to push one up.


Allow toggling off the new-thread-spawned detector

When a test spawns a new thread, madsim will panic with "attempt to spawn a system thread in simulation.", which is good for catching one specific kind of determinism breakage.
However I still see benefits of using madsim's seeded RNG with regular tests, as it helps narrowing down the possible causes of a failure, especially for property-based testing. I would like to propose adding a new environment variable that would disable the said check.
I am currently testing with the check removed, I also had to insert a sleep if going == false in the block_on loop.

Thanks for the quick fix again :heart: , there is just one more thing that I mentioned on the last line that enables awaiting on events triggered by the thread.

Oh sorry I missed the last part. Thanks for your PR!


Not able to sync user access policies into the enforcer

Hi,
I have a casdoor running inside a docker container which I'm able to access on localhost:8001 (using casdoor production image, not the all-in-one image). I'm trying to sync my casbin policies from my postgres DB into casdoor, for which I've created an adapter and an enforcer using that adapter. The enforcer successfully loads policies from DB and loaded into the casdoor UI when I sync them for the first time. The issue occurs when I open the enforcer again, it doesn't show the loaded policies and instead show an error message as shown in the screenshot attached (which looks like it's trying to create the same policy rows again). Plz suggest a resolution for this particular issue.
Also wanted to know, if before I call the enforcer API for checking user authorisation for a particular resource, do I need to manually sync the enforcer again in case any new policies were added into the DB? Or does it refer to the configured postgres DB directly to query user permissions?

Any update on this?

@hsluoyz Can you help resolving this issues?
Also, it would be really helpful if you could help clarify this question
"Also wanted to know, if before I call the enforcer API for checking user authorisation for a particular resource, do I need to manually sync the enforcer again in case any new policies were added into the DB? Or does it refer to the configured postgres DB directly to query user permissions?"

@hsluoyz what posgres version did you use? Did you try MySQL too? What are the reproduce steps?

I used Postgres 15. No I didn't try MySQL.
Reproduce steps:

Create an adapter. Test that DB connection is successful
Create an enforcer using that adapter and sync policies (Policies show up)
Save and Exit
Opening that enforcer again shows this error message.

I can't reproduce this problem in the newest version, can you record a video to display?
I use pgsql 16 to reproduce.

@hsluoyz Can you help resolving this issues? Also, it would be really helpful if you could help clarify this question "Also wanted to know, if before I call the enforcer API for checking user authorisation for a particular resource, do I need to manually sync the enforcer again in case any new policies were added into the DB? Or does it refer to the configured postgres DB directly to query user permissions?"

it refer to the configured postgres DB directly to query user permissions

Closed for cannot reproduce


Implement progressive promotion

This PR adds a new field to the Canary spec analysis.stepWeightPromotion. When stepWeightPromotion is specified, the promotion phase happens in stages, the traffic is routed back to the primary pods in a progressive manner, the primary weight is increased until it reaches 100%. This way the HPA has time to scale up the primary replicas and scale down the canary ones.
Fix: #381
TODO:

unit tests
e2e tests
docs

For testing:
# update CRDs
kubectl apply -f https://raw.githubusercontent.com/weaveworks/flagger/progressive-promotion/artifacts/flagger/crd.yaml

# replace Flagger image
kubectl -n istio-system set image deployment/flagger \
flagger=stefanprodan/flagger:prom-weight.1

Codecov Report

Merging #593 into master will decrease coverage by 0.22%.
The diff coverage is 16.21%.

@@            Coverage Diff             @@
##           master     #593      +/-   ##
==========================================
- Coverage   54.95%   54.72%   -0.23%
==========================================
  Files          62       62
  Lines        5241     5268      +27
==========================================
+ Hits         2880     2883       +3
- Misses       1944     1967      +23
- Partials      417      418       +1

Impacted Files
Coverage Δ

pkg/controller/scheduler.go
42.79% <16.21%> (-1.96%)
:arrow_down:

Continue to review full report at Codecov.

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

Hey @stefanprodan, I was able to test it and it works really well. Thank you!
This is the Canary spec
spec:
  analysis:
    interval: 1m
    maxWeight: 50
    metrics:
    - interval: 1m
      name: request-success-rate
      thresholdRange:
        min: 99
    stepWeight: 10
    stepWeightPromotion: 5
    threshold: 10

those are the events
Events:
  Type     Reason  Age                   From     Message
  ----     ------  ----                  ----     -------
  Warning  Synced  21m                   flagger  java-flagger-primary.maersk not ready: waiting for rollout to finish: observed deployment generation less then desired generation
  Normal   Synced  20m                   flagger  Initialization done! java-flagger.maersk
  Normal   Synced  16m                   flagger  New revision detected! Scaling up java-flagger.maersk
  Normal   Synced  15m                   flagger  Starting canary analysis for java-flagger.maersk
  Normal   Synced  15m                   flagger  Advance java-flagger.maersk canary weight 10
  Normal   Synced  14m                   flagger  Advance java-flagger.maersk canary weight 20
  Normal   Synced  13m                   flagger  Advance java-flagger.maersk canary weight 30
  Normal   Synced  12m                   flagger  Advance java-flagger.maersk canary weight 40
  Normal   Synced  11m                   flagger  Advance java-flagger.maersk canary weight 50
  Normal   Synced  10m                   flagger  Copying java-flagger.maersk template spec to java-flagger-primary.maersk
  Normal   Synced  29s (x10 over 9m29s)  flagger  (combined from similar events): Advance java-flagger.maersk primary weight 100

and this is what I see in my graphs

(note that I used a small stepWeightPromotion just to make it very evident on the graphs)

Thanks @maruina for testing this 👍
Kubernetes events get compacted so the best way to monitor Flagger is by tailing the logs with jq:
kubectl -n istio-system logs deploy/flagger -f | jq .msg

Better, thanks.
"Starting canary analysis for java-flagger.maersk"
"Advance java-flagger.maersk canary weight 10"
"Advance java-flagger.maersk canary weight 20"
"Advance java-flagger.maersk canary weight 30"
"Advance java-flagger.maersk canary weight 40"
"Advance java-flagger.maersk canary weight 50"
"Copying java-flagger.maersk template spec to java-flagger-primary.maersk"
"Advance java-flagger.maersk primary weight 55"
"Advance java-flagger.maersk primary weight 60"
"Advance java-flagger.maersk primary weight 65"
"Advance java-flagger.maersk primary weight 70"
"Advance java-flagger.maersk primary weight 75"
"Advance java-flagger.maersk primary weight 80"
"Advance java-flagger.maersk primary weight 85"
"Advance java-flagger.maersk primary weight 90"
"Advance java-flagger.maersk primary weight 95"
"Advance java-flagger.maersk primary weight 100"
"Promotion completed! Scaling down java-flagger.maersk"

Looking forward to the next release :)


Issue125 contact page

Please always provide the GitHub issue(s) your PR is for, as well as test URLs where your change can be observed (before and after):
Fixes #125
Test URLs:

Original: https://www.sunstar-foundation.org/contact

Before: https://main--sunstar-foundation--hlxsites.hlx.live/contact

After: https://issue125-contact-page--sunstar-foundation--hlxsites.hlx.live/contact

[ ] New Blocks introduced in this PR
If yes, please provide details below

Block Name
Documentation

For e.g. cards
doc-link

[ ] New variations introduced in this PR

Variation Name
Documentation

For e.g. cards (grid)
doc-link

Some findings:

The contents align on the left on the original site.

Lose button icon(to keep the consistency with other pages, maybe it's not a problem)

Table>ths have different width in mobile view

All asked issues fixed. Pl check & review.


Format time on x and y axis to day of the week or week number in a year, etc.

Is it possible to specify a way time format is displayed on x and y axis?
What I would like to achieve is to have for example 'Mon', 'Fr' or 'Week 23' instead of '03-05-2018'.
I tried to use 'minInterval' and 'maxInterval', but it does not produce outcomes that I am looking for.
Is it possible to do it in echarts or do I need to use separate library?

echarts provides echarts.format.formatTime:
var option = {
    // ...
    xAxis: {
        type: 'time',
        axisLabel: {
            formatter: function (value) {
                return echarts.format.formatTime('yyyy-MM-dd', value);
                // And other formatter tool (e.g. moment) can be used here.
            }
        }
    }
}

Where is this documented?

Where is this documented?

It seems there is no documentation for now but you can check the code


Is there any way where we can launch applicaion and get root access

in hub node structure in root access is not working and giving  no such element found error

What are you trying to achieve?


feat: move mypy configuration to pyproject.toml

Description
This PR aims to minimize the number of configuration files for the project. Instead of a separate mypy.ini, we now would have all the configurations within the pyproject.toml file leading to a overall minimal code structure.

Request for Review: @dlwh

I edited the pre-commit config to use the official isort hook.


Issues with yielding methods in a decorator pattern

The following describes an intent of implementing a decorator pattern with a method that receives a block.
The only way I made it work is by using captured blocks in the concrete implementation which is not ideal.
I thought it was related to #7195, but here I am not using any generic type as in https://github.com/crystal-lang/crystal/issues/7195#issuecomment-448453007.
I attach some attempts and error that leaded to weird error messages and even an ICE.
abstract class Base
  abstract def lazy_greet(& : -> String)
end

class Concrete < Base
  def lazy_greet(& : -> String)
    s = yield
    "Hi #{s}"
  end
end

class Decorator < Base
  def initialize(@inner : Base)
  end

  def lazy_greet(&block : -> String)
    @inner.lazy_greet(&block)
  end
end

class Shout < Decorator
  def lazy_greet(&block : -> String)
    super do
      "#{block.call}!!!"
    end
  end
end

class Base
  def with_shout
    Shout.new(self)
  end
end

g = Concrete.new.with_shout
pp!(g.lazy_greet { "Waldo" })

In foo.ignoreme.cr:7:9

 7  | s = yield
          ^
Error: read before assignment to local variable ''

Changing Concrete implementation by adding block name:
class Concrete < Base
  def lazy_greet(&block : -> String)
    s = yield
    "Hi #{s}"
  end
end

In foo.ignoreme.cr:7:9

 7  | s = yield
          ^----
Error: read before assignment to local variable 'block'

Changing it to a call of captured block make things work. But the block is captured instead of inlined.
class Concrete < Base
  def lazy_greet(&block : -> String)
    s = block.call
    "Hi #{s}"
  end
end

g.lazy_greet do
  "Waldo"
end # => "Hi Waldo!!!"

Removing the block restriction leads to ICE
class Concrete < Base
  def lazy_greet
    s = yield
    "Hi #{s}"
  end
end

Nil assertion failed (NilAssertionError)
  from raise<NilAssertionError>:NoReturn
  from Nil#not_nil!:NoReturn
  from Crystal::MainVisitor#visit<Crystal::Yield>:Bool
  from Crystal::ASTNode+@Crystal::ASTNode#accept<Crystal::MainVisitor>:Nil
  from Crystal::MainVisitor#type_assign<Crystal::Var+, Crystal::ASTNode+, Crystal::Assign, Nil>:(Crystal::MetaVar | Nil)
  from Crystal::MainVisitor#visit<Crystal::Assign>:Bool
  from Crystal::ASTNode+@Crystal::ASTNode#accept<Crystal::MainVisitor>:Nil
  from Crystal::ASTNode+@Crystal::ASTNode#accept<Crystal::MainVisitor>:Nil
  ...

Reduced:
class Foo
  def foo(&block)
    yield
  end
end

class Bar
  def foo(&block)
    block.call
  end
end

(Foo.new || Bar.new).foo { "Waldo" }

Or put type restrictions:
class Foo
  def foo(&block : -> String)
    yield
  end
end

class Bar
  def foo(&block : -> String)
    block.call
  end
end

(Foo.new || Bar.new).foo { "Waldo" }

In general it happens when there's a multidispatch and one method uses yield and another captures the block. As far as I know that's not implemented in the compiler.

Related: #5299

Related: #5299


Disable the ai code reviewer

Summary | Résumé
We removed the API key at the moment for cost reason. Hence this disables the ai code reviewer. We might try it one more week after slight changes to the action and changing region to be more cost effective. Stay tuned.
Related Issues | Cartes liées

https://app.zenhub.com/workspaces/notify-planning-614b3ad91bc2030015ed22f5/issues/gh/cds-snc/notification-planning/1
https://app.zenhub.com/workspaces/notify-planning-core-6411dfb7c95fb80014e0cab0/issues/gh/cds-snc/notification-planning-core/1

Before merging this PR
Read code suggestions left by the
cds-ai-codereviewer bot. Address
valid suggestions and shortly write down reasons to not address others. To help
with the classification of the comments, please use these reactions on each of the
comments made by the AI review:

Classification
Reaction
Emoticon

Useful
+1
👍

Noisy
eyes
👀

Hallucination
confused
😕

Wrong but teachable
rocket
🚀

Wrong and incorrect
-1
👎

The classifications will be extracted and summarized into an analysis of how helpful
or not the AI code review really is.
Test instructions | Instructions pour tester la modification
TODO: Fill in test instructions for the reviewer.
Release Instructions | Instructions pour le déploiement
None.
Reviewer checklist | Liste de vérification du réviseur

[x] This PR does not break existing functionality.
[x] This PR does not violate GCNotify's privacy policies.
[x] This PR does not raise new security concerns. Refer to our GC Notify Risk Register document on our Google drive.
[x] This PR does not significantly alter performance.
[x] Additional required documentation resulting of these changes is covered (such as the README, setup instructions, a related ADR or the technical documentation).

⚠ If boxes cannot be checked off before merging the PR, they should be moved to the "Release Instructions" section with appropriate steps required to verify before release. For example, changes to celery code may require tests on staging to verify that performance has not been affected.

@ben851 Let's have our conversation about the code reviewer tomorrow first before removing more. ATM, we just want to disable. We will remove once we are 100% sure we are done with our tests and usage.


Current thread is not owner of the lock

java.lang.IllegalMonitorStateException: Current thread is not owner of the lock! -> <not-locked>
	at com.hazelcast.concurrent.lock.operations.UnlockOperation.ensureUnlocked(UnlockOperation.java:71)
	at com.hazelcast.concurrent.lock.operations.UnlockOperation.unlock(UnlockOperation.java:65)
	at com.hazelcast.concurrent.lock.operations.UnlockOperation.run(UnlockOperation.java:57)
	at com.hazelcast.spi.impl.operationservice.impl.OperationRunnerImpl.run(OperationRunnerImpl.java:137)
	at com.hazelcast.spi.impl.operationexecutor.classic.ClassicOperationExecutor.runOnCallingThread(ClassicOperationExecutor.java:380)
	at com.hazelcast.spi.impl.operationexecutor.classic.ClassicOperationExecutor.runOnCallingThreadIfPossible(ClassicOperationExecutor.java:342)
	at com.hazelcast.spi.impl.operationservice.impl.Invocation.doInvokeLocal(Invocation.java:247)
	at com.hazelcast.spi.impl.operationservice.impl.Invocation.doInvoke(Invocation.java:231)
	at com.hazelcast.spi.impl.operationservice.impl.Invocation.invokeInternal(Invocation.java:198)
	at com.hazelcast.spi.impl.operationservice.impl.Invocation.invoke(Invocation.java:168)
	at com.hazelcast.spi.impl.operationservice.impl.InvocationBuilderImpl.invoke(InvocationBuilderImpl.java:51)
	at com.hazelcast.client.impl.client.PartitionClientRequest.process(PartitionClientRequest.java:58)
	at com.hazelcast.client.impl.ClientEngineImpl$ClientPacketProcessor.processRequest(ClientEngineImpl.java:463)
	at com.hazelcast.client.impl.ClientEngineImpl$ClientPacketProcessor.run(ClientEngineImpl.java:379)
	at com.hazelcast.spi.impl.operationservice.impl.OperationRunnerImpl.run(OperationRunnerImpl.java:100)
	at com.hazelcast.spi.impl.operationexecutor.classic.OperationThread.processPartitionSpecificRunnable(OperationThread.java:130)
	at com.hazelcast.spi.impl.operationexecutor.classic.OperationThread.process(OperationThread.java:120)
	at com.hazelcast.spi.impl.operationexecutor.classic.OperationThread.doRun(OperationThread.java:101)
	at com.hazelcast.spi.impl.operationexecutor.classic.OperationThread.run(OperationThread.java:76)

This is shown in storage log.

Upgraded to Hazelcast 3.5.4 in https://github.com/meridor/perspective-backend/commit/fb80460e4ffc3837ea6669c7b509ef5e53bec5f5. Will reopen in next milestone if still reproduces.


linphone does not build

Issue description
unpacking sources
unpacking source archive /nix/store/pdvi2adyxlc1gziw062bdldmwcndnq32-linphone-3.8.5.tar.gz
source root is linphone-3.8.5
setting SOURCE_DATE_EPOCH to timestamp<PHONE_NUMBER> of file linphone-3.8.5/coreapi/liblinphone_gitversion.h
patching sources
configuring
fixing libtool script ./ltmain.sh
configure flags: --disable-static --disable-dependency-tracking --prefix=/nix/store/k5swi0dhavjm2y98mcmdkf0rw898baly-linphone-3.8.5 --enable-ldap --with-ffmpeg=/nix/store/z16dcmj07yk0g4bxinxcanwq73b1vvy9-ffmpeg-2.8.6-dev --with-polarssl=/nix/store/38lv51wsjphlg4j55s5lg3qiqc57an0h-mbedtls-2.3.0 --enable-lime --enable-external-ortp --enable-external-mediastreamer
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
configure: linphone-3.8.5       A full featured audio/video sip phone.
configure: licensed under the terms of the General Public License (GPL)
checking for a BSD-compatible install... /nix/store/07axizqswlwc819xcd8dk2m1q0ylddmh-coreutils-8.25/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /nix/store/07axizqswlwc819xcd8dk2m1q0ylddmh-coreutils-8.25/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking how to create a pax tar archive... gnutar
checking whether make supports nested variables... (cached) yes
checking whether the C++ compiler works... yes
checking for C++ compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of g++... none
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking dependency style of gcc... none
checking if gcc/ld supports -Wl,--output-def... no
checking for strerror in -lcposix... no
checking for inline... inline
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /nix/store/6nh1pgzsrf71xx2gy5x61czhwgd0b55y-gnugrep-2.25/bin/grep
checking for egrep... /nix/store/6nh1pgzsrf71xx2gy5x61czhwgd0b55y-gnugrep-2.25/bin/grep -E
checking for ANSI C header files... yes
checking for md5sum... md5sum
checking whether NLS is requested... yes
checking for intltool >= 0.40... 0.51.0 found
checking for intltool-update... /nix/store/6k8km5d843mb7yak88mnp23jqv5q83z9-intltool-0.51.0/bin/intltool-update
checking for intltool-merge... /nix/store/6k8km5d843mb7yak88mnp23jqv5q83z9-intltool-0.51.0/bin/intltool-merge
checking for intltool-extract... /nix/store/6k8km5d843mb7yak88mnp23jqv5q83z9-intltool-0.51.0/bin/intltool-extract
checking for xgettext... /nix/store/zd4jxcablghpaawqw80v591gik1krwhq-gettext-0.19.8/bin/xgettext
checking for msgmerge... /nix/store/zd4jxcablghpaawqw80v591gik1krwhq-gettext-0.19.8/bin/msgmerge
checking for msgfmt... /nix/store/zd4jxcablghpaawqw80v591gik1krwhq-gettext-0.19.8/bin/msgfmt
checking for gmsgfmt... /nix/store/zd4jxcablghpaawqw80v591gik1krwhq-gettext-0.19.8/bin/msgfmt
checking for perl... /nix/store/xlqafmhfnzwg0c77ns8m41k2vn1frqz3-perl-5.22.2/bin/perl
checking for perl >= 5.8.1... 5.22.2
checking how to print strings... printf
checking for a sed that does not truncate output... /nix/store/8ga3jbvr2q2jy9g27b9iy8c746nr20q4-gnused-4.2.2/bin/sed
checking for fgrep... /nix/store/6nh1pgzsrf71xx2gy5x61czhwgd0b55y-gnugrep-2.25/bin/grep -F
checking for ld used by gcc... /nix/store/4mhq8ic8wk46wpwjyghap1x7xfdk2rj3-gcc-wrapper-5.4.0/bin/ld
checking if the linker (/nix/store/4mhq8ic8wk46wpwjyghap1x7xfdk2rj3-gcc-wrapper-5.4.0/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /nix/store/lfvkcv5kvcpjlmsxcn9nv0lhcg5h2zyp-binutils-2.26.1/bin/nm -B
checking the name lister (/nix/store/lfvkcv5kvcpjlmsxcn9nv0lhcg5h2zyp-binutils-2.26.1/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking how to convert x86_64-unknown-linux-gnu file names to x86_64-unknown-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-unknown-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /nix/store/4mhq8ic8wk46wpwjyghap1x7xfdk2rj3-gcc-wrapper-5.4.0/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /nix/store/lfvkcv5kvcpjlmsxcn9nv0lhcg5h2zyp-binutils-2.26.1/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for a working dd... /nix/store/07axizqswlwc819xcd8dk2m1q0ylddmh-coreutils-8.25/bin/dd
checking how to truncate binary pipes... /nix/store/07axizqswlwc819xcd8dk2m1q0ylddmh-coreutils-8.25/bin/dd bs=4096 count=1
./configure: line 8464: /usr/bin/file: No such file or directory
checking for mt... no
checking if : is a manifest tool... no
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... no
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/nix/store/4mhq8ic8wk46wpwjyghap1x7xfdk2rj3-gcc-wrapper-5.4.0/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking how to run the C++ preprocessor... g++ -E
checking for ld used by g++... /nix/store/4mhq8ic8wk46wpwjyghap1x7xfdk2rj3-gcc-wrapper-5.4.0/bin/ld
checking if the linker (/nix/store/4mhq8ic8wk46wpwjyghap1x7xfdk2rj3-gcc-wrapper-5.4.0/bin/ld) is GNU ld... yes
checking whether the g++ linker (/nix/store/4mhq8ic8wk46wpwjyghap1x7xfdk2rj3-gcc-wrapper-5.4.0/bin/ld) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC -DPIC
checking if g++ PIC flag -fPIC -DPIC works... yes
checking if g++ static flag -static works... no
checking if g++ supports -c -o file.o... yes
checking if g++ supports -c -o file.o... (cached) yes
checking whether the g++ linker (/nix/store/4mhq8ic8wk46wpwjyghap1x7xfdk2rj3-gcc-wrapper-5.4.0/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... (cached) GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
configure: Enable library dependencies linking:
checking for pkg-config... /nix/store/zwbfwxkbjgg6hd25y99fmj3vdsy626qp-pkg-config-0.29/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for msgfmt... (cached) /nix/store/zd4jxcablghpaawqw80v591gik1krwhq-gettext-0.19.8/bin/msgfmt
checking for gmsgfmt... (cached) /nix/store/zd4jxcablghpaawqw80v591gik1krwhq-gettext-0.19.8/bin/msgfmt
checking for xgettext... (cached) /nix/store/zd4jxcablghpaawqw80v591gik1krwhq-gettext-0.19.8/bin/xgettext
checking for msgmerge... (cached) /nix/store/zd4jxcablghpaawqw80v591gik1krwhq-gettext-0.19.8/bin/msgmerge
checking for ld used by GCC... /nix/store/4mhq8ic8wk46wpwjyghap1x7xfdk2rj3-gcc-wrapper-5.4.0/bin/ld
checking if the linker (/nix/store/4mhq8ic8wk46wpwjyghap1x7xfdk2rj3-gcc-wrapper-5.4.0/bin/ld) is GNU ld... yes
checking for shared library run path origin... done
checking for CFPreferencesCopyAppValue... no
checking for CFLocaleCopyCurrent... no
checking for GNU gettext in libc... yes
checking whether to use NLS... yes
checking where the gettext function comes from... libc
checking for get_current_dir_name... yes
checking for strndup... yes
checking for stpcpy... yes
checking for LDAP... no
checking for ldap_initialize in -lldap... yes
checking ldap.h usability... yes
checking ldap.h presence... yes
checking for ldap.h... yes
checking for SASL... yes
checking for LIBUPNP... yes
checking for ZLIB... yes
configure: ZLIB found
checking for LIBXML2... yes
checking for LIBGTK... yes
checking for LIBGLIB... yes
checking for NOTIFY4... yes
checking for NOTIFY1... no
checking for getifaddrs... yes
checking readline.h usability... no
checking readline.h presence... no
checking for readline.h... no
checking readline/readline.h usability... yes
checking readline/readline.h presence... yes
checking for readline/readline.h... yes
checking history.h usability... no
checking history.h presence... no
checking for history.h... no
checking readline/history.h usability... yes
checking readline/history.h presence... yes
checking for readline/history.h... yes
checking for readline in -lreadline... yes
checking whether byte ordering is bigendian... no
checking for SPEEX... yes
checking X11/Xlib.h usability... yes
checking X11/Xlib.h presence... yes
checking for X11/Xlib.h... yes
checking for XUnmapWindow in -lX11... yes
checking polarssl/gcm.h usability... no
checking polarssl/gcm.h presence... no
checking for polarssl/gcm.h... no
configure: error: "LIME requires POLARSSL in version >= 1.3"
builder for ‘/nix/store/q8ykdqkjjspm2mkdb5873ypyl7g93qra-linphone-3.8.5.drv’ failed with exit code 1
cannot build derivation ‘/nix/store/2abdz8c96pmfr145szps7z26p33vrlin-system-path.drv’: 1 dependencies couldn't be built
cannot build derivation ‘/nix/store/r8azrrq031w2zabzljgv5ra71s8jwhcg-nixos-system-nix1-16.09pre88185.52a875f.drv’: 1 dependencies couldn't be built
error: build of ‘/nix/store/r8azrrq031w2zabzljgv5ra71s8jwhcg-nixos-system-nix1-16.09pre88185.52a875f.drv’ failed

I think this issue was introduced by commit https://github.com/NixOS/nixpkgs/commit/69db5f5ad7c9550f4476555498035b126d3c33e7, which upgrades mbedtls from 1.3 to 2.3. See also https://tls.mbed.org/tech-updates/releases/mbedtls-2.0.0-released, which states:

This release makes the full migration from our old PolarSSL name to the new mbed TLS name. This is reflected in the way files, directories, variables, etc are all named. As a result every function name and most defines have changed.

@fpletz I’m curious why this breakage was not detected at the time when you upgraded mbedtls? Don’t we have tools to rebuild all reverse-dependencies?
AFAICT, linphone doesn’t support mbedtls yet. When checking out its git repository (commit 4c2268e2de1cf3fd503e3682e2e2ad77bbebc950), configure.ac still checks for polarssl/gcm.h.
What’s the preferred way of fixing this issue? Should we continue to provide the mbedtls 1.3 series? Or should we try to migrate linphone to mbedtls 2 and contribute that patch upstream?
Steps to reproduce

Add linphone to environment.systemPackages
Run nixos-rebuild switch --upgrade

Technical details

System: (NixOS: nixos-version, Ubuntu/Fedora: lsb_release -a, ...)

16.09pre87999.20f009d (Flounder)

Nix version: (run nix-env --version)

nix-env (Nix) 1.11.2

Nixpkgs version: (run nix-instantiate --eval '<nixpkgs>' -A lib.nixpkgsVersion)

"16.09pre88185.52a875f"

FWIW, linphone requires more fixes. Even when using mbedtls 1.3.17, I get:
linphonecall.c: In function 'linphone_call_init_audio_stream':
linphonecall.c:1942:5: error: implicit declaration of function 'audio_stream_enable_dtls' [-Werror=implicit-function-declaration]
     audio_stream_enable_dtls(call->audiostream,&params);
     ^
linphonecall.c: In function 'linphone_call_init_video_stream':
linphonecall.c:2052:6: error: implicit declaration of function 'video_stream_enable_dtls' [-Werror=implicit-function-declaration]
      video_stream_enable_dtls(call->videostream,&params);
      ^
linphonecall.c: In function 'linphone_call_start_audio_stream':
linphonecall.c:2538:6: error: implicit declaration of function 'media_stream_set_srtp_recv_key_b64' [-Werror=implicit-function-declaration]
      media_stream_set_srtp_recv_key_b64(&(call->audiostream->ms.sessions),stream->crypto[0].algo,stream->crypto[0].master_key);
      ^
linphonecall.c:2539:6: error: implicit declaration of function 'media_stream_set_srtp_send_key_b64' [-Werror=implicit-function-declaration]
      media_stream_set_srtp_send_key_b64(&(call->audiostream->ms.sessions),stream->crypto[0].algo,local_st_desc->crypto[crypto_idx].master_key);
      ^
linphonecall.c:2565:4: error: implicit declaration of function 'media_stream_session_encryption_mandatory_enable' [-Werror=implicit-function-declaration]
    media_stream_session_encryption_mandatory_enable(&call->audiostream->ms.sessions,linphone_core_is_media_encryption_mandatory(call->core));
    ^
linphonecall.c: In function 'linphone_call_start_video_stream':
linphonecall.c:2613:4: error: unknown type name 'VideoStreamDir'
    VideoStreamDir dir=VideoStreamSendRecv;
    ^
linphonecall.c:2613:23: error: 'VideoStreamSendRecv' undeclared (first use in this function)
    VideoStreamDir dir=VideoStreamSendRecv;
                       ^
linphonecall.c:2613:23: note: each undeclared identifier is reported only once for each function it appears in
linphonecall.c:2630:57: error: passing argument 2 of 'video_stream_set_native_window_id' makes pointer from integer without a cast [-Werror=int-conversion]
     video_stream_set_native_window_id(call->videostream,call->video_window_id);
                                                         ^
In file included from linphonecore.h:26:0,
                 from linphonecall.c:24:
/nix/store/5sjkyppg5mmi831g5dwikzkghy82z996-mediastreamer-2.12.1/include/mediastreamer2/mediastream.h:991:17: note: expected 'void *' but argument is of type 'long unsigned int'
 MS2_PUBLIC void video_stream_set_native_window_id(VideoStream *stream, void *id);
                 ^
linphonecall.c:2632:57: error: passing argument 2 of 'video_stream_set_native_window_id' makes pointer from integer without a cast [-Werror=int-conversion]
     video_stream_set_native_window_id(call->videostream,lc->video_window_id);
                                                         ^
In file included from linphonecore.h:26:0,
                 from linphonecall.c:24:
/nix/store/5sjkyppg5mmi831g5dwikzkghy82z996-mediastreamer-2.12.1/include/mediastreamer2/mediastream.h:991:17: note: expected 'void *' but argument is of type 'long unsigned int'
 MS2_PUBLIC void video_stream_set_native_window_id(VideoStream *stream, void *id);
                 ^
linphonecall.c:2634:66: error: passing argument 2 of 'video_stream_set_native_preview_window_id' makes pointer from integer without a cast [-Werror=int-conversion]
     video_stream_set_native_preview_window_id (call->videostream,lc->preview_window_id);
                                                                  ^
In file included from linphonecore.h:26:0,
                 from linphonecall.c:24:
/nix/store/5sjkyppg5mmi831g5dwikzkghy82z996-mediastreamer-2.12.1/include/mediastreamer2/mediastream.h:992:17: note: expected 'void *' but argument is of type 'long unsigned int'
 MS2_PUBLIC void video_stream_set_native_preview_window_id(VideoStream *stream, void *id);
                 ^
linphonecall.c:2639:10: error: 'VideoStreamRecvOnly' undeclared (first use in this function)
      dir=VideoStreamRecvOnly;
          ^
linphonecall.c:2641:10: error: 'VideoStreamSendOnly' undeclared (first use in this function)
      dir=VideoStreamSendOnly;
          ^
linphonecall.c: In function 'linphone_call_handle_stream_events':
linphonecall.c:3593:8: error: 'AudioStreamType' undeclared (first use in this function)
   case AudioStreamType:
        ^
linphonecall.c:3596:8: error: 'VideoStreamType' undeclared (first use in this function)
   case VideoStreamType:
        ^
linphonecall.c: In function 'linphone_call_get_native_video_window_id':
linphonecall.c:3913:10: error: return makes integer from pointer without a cast [-Werror=int-conversion]
   return video_stream_get_native_window_id(call->videostream);
          ^
linphonecall.c: In function 'linphone_call_set_native_video_window_id':
linphonecall.c:3923:56: error: passing argument 2 of 'video_stream_set_native_window_id' makes pointer from integer without a cast [-Werror=int-conversion]
   video_stream_set_native_window_id(call->videostream, id);
                                                        ^
In file included from linphonecore.h:26:0,
                 from linphonecall.c:24:
/nix/store/5sjkyppg5mmi831g5dwikzkghy82z996-mediastreamer-2.12.1/include/mediastreamer2/mediastream.h:991:17: note: expected 'void *' but argument is of type 'long unsigned int'
 MS2_PUBLIC void video_stream_set_native_window_id(VideoStream *stream, void *id);
                 ^
cc1: all warnings being treated as errors
make[4]: *** [Makefile:894: linphonecall.lo] Error 1
make[4]: Leaving directory '/tmp/nix-build-linphone-3.8.5.drv-0/linphone-3.8.5/coreapi'
make[3]: *** [Makefile:977: all-recursive] Error 1
make[3]: Leaving directory '/tmp/nix-build-linphone-3.8.5.drv-0/linphone-3.8.5/coreapi'
make[2]: *** [Makefile:670: all] Error 2
make[2]: Leaving directory '/tmp/nix-build-linphone-3.8.5.drv-0/linphone-3.8.5/coreapi'
make[1]: *** [Makefile:583: all-recursive] Error 1
make[1]: Leaving directory '/tmp/nix-build-linphone-3.8.5.drv-0/linphone-3.8.5'
make: *** [Makefile:511: all] Error 2
builder for ‘/nix/store/mb3pip8yddd17wn7vmg48vl98wagjq7w-linphone-3.8.5.drv’ failed with exit code 2
error: build of ‘/nix/store/mb3pip8yddd17wn7vmg48vl98wagjq7w-linphone-3.8.5.drv’ failed

Bumping linphone to 3.9.1 and belle-sip to 1.4.2, using mbedtls 1.3.17 with linphone, I can get it to build.
When running linphone and trying to open the Preferences window, it crashes saying “trace trap” on the command line. I suppose a somewhat broken linphone is better than no linphone at all, though?

This issue looks a bit outdated (#18334).  Linphone 4.0 is out, and the next version is expected next week.


[FEATURE] option to pick colors

Description
In the gradient text generator, the colors in the gradient are fixed, users should get the option to pick the two colors they want
Screenshots
No response

:tada: This issue has been resolved in version 1.5.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


PCF Dev VM starting failed

I am starting PCF Dev from below VM.

But getting the below issue
The virtual machine 'pcfdev-v0.436.0' has terminated unexpectedly during startup with exit code 1 (0x1). More details may be available in 'C:\Users\RAMMURTHY RAJU.pcfdev\vms\pcfdev-v0.436.0\Logs\VBoxHardening.log'.
Result Code:
E_FAIL (0x80004005)
Component:
MachineWrap
Interface:
IMachine {f30138d4-e5ea-4b3a-8858-a059de4c93fd}

Hi @kkkkramu,
Starting the PCF Dev VM manually in Virtualbox is not supported and will not work. That said, you're experiencing the same issue that you reported in #187, so I'm closing this issue for now.
Please ensure that you have enough free memory to run PCF Dev (at least 3GB, and ideally 4GB of free RAM), and re-install Virtualbox 5.1+.  If that doesn't fix your issue, confirm that you can start other VMs in Virtualbox, and follow up with us in #187.


Problem with modules - Staff, Chatbox,

There is a visual problem on these 2 modules, the page of the module comes on top of the mune and everything else.

Staff
Chatbox

Thanks for this work

Staff and chatbox cannot be done, because the .tpl file is built into the module and not in the panel template

Another StaffCP template supports its 2 pages by creating .tpl files
Here they are: https://jmp.sh/6RZwxkH

Hm, I'll try then

Nope, tried doing, nothing worked


NEUROMED RESEARCH INITIATIVE

Great work guys
Originally posted by @sirandysaunders in https://github.com/open-telemetry/opentelemetry.io/issues/727#issuecomment-917535756

Save

Did you mean to open this issue here? Closing as off-topic.


Heat client fixture needs to support a parameter for expected target stack status

In order to extend these fixtures to work with the f5-openstack-heat-plugins functional tests, we need to expect a stack to fail. One way we do this is to create a stack and expect the status to be 'CREATED_FAILED'. So we will allow a new parameter when creating a stack which is the expect target status.

Fixed by PR #46


fix destroySession for cookies with maxAge

PR Checklist
Please check if your PR fulfills the following requirements:

[ ] Tests for the changes have been added (for bug fixes / features)

PR Type
What kind of change does this PR introduce?

[x] Bugfix

What is the current behavior?
destroySession doesn't delete cookie if max-age is set.
What is the new behavior?
Cookie is deleted.
Other information
This PR stems from this issue and the resulting merged PR.

Thank you


Revert "Introduce async write interface in the TLS."

Reverts vespa-engine/vespa#3792
@toregge Pr due to system test breakage.

LGTM

Reapplied in #3802


linkify.find keep  tag in the link value/href

When i use the following code:
linkify.find('
https://www.youtube.com/watch?v=LAYabFnzeJM
');

The result is:
[{
  "type": "url",
  "value": "https://www.youtube.com/watch?v=LAYabFnzeJM
",
  "isLink": true,
  "href": "https://www.youtube.com/watch?v=LAYabFnzeJM
",
  "start": 5,
  "end": 54
}]

As you can see, the link href and value, both have the closing
 tag.
Is it expected behavior?

Update: i fixed it by removing all HTML from the text (with sanitize-html package) BCS apparently the library does not strip the HTML before looking for links


angular-cli addons[] and packages[]

Hi there,
I would like to ask for the purpose of those please ?
Thanks for the awesome work

Hi @mkoczorowski ,
The Angular CLI is based on the ember-cli project, which supports addons and packages.
This is currently not a future in Angular CLI but there will be some sort of plugin system in the future.
In the code you can find references to these 2 keys that reveal they have a future. It's hard to say when this is available, but there will be a roadmap soon, I expect it to be on there.
https://github.com/angular/angular-cli/blob/master/packages/angular-cli/lib/config/schema.json#L123
"description": "Configuration reserved for installed third party addons.",
"description": "Configuration reserved for installed third party packages.",


BouncyCastle

Since BouncyCastle 1.8.9 has been deprecated, are there plans to migrate to BouncyCastle.Cryptography 2.1.1? If so, ETA? If not, why?

There is currently a task to have this updated. Internal tracking id for this is DCM-8877
If you wish to add in your details to this, you can open a support case with DocuSign Developer Support referencing this ID and your support representative can add on your details to this. Currently no ETA available to share.


How to resize the chart manually?

Hi I want to resize the chart manually, how should I do it?
I'm looking for something like:
// In parent
this.refs.chart.resize(width, height);

Oh, I figured it out.
One have to pass
width = {myWidth}
height = {myHeight}
redraw = {true}

as props to the chart component to make the chart to redraw to the preferred size.


LE Scan

Implement LE Scan.
First step is to implement the "LE Set Scan Enable Command" PDU.
Reference the Bluetooth Core Specification v4.0 page 823 (7.8.11 LE Set Scan Enable Command)

Has any progress been made on this? If not, I'd like to give it a shot. I've successfully built this project on an Ubuntu VM. Is it possible to build on OSX using the dongle connected to the Mac? Having a native Xcode environment would certainly speed up development. This is what I'm seeing today when I run swift build
BluetoothLinux-master/Sources/BluetoothLinux/POSIXError.swift:34:39: error: use of unresolved identifier 'NSPOSIXErrorDomain'
        let nsError = NSError(domain: NSPOSIXErrorDomain, code: Int(code.rawValue), userInfo: nil)
                                      ^~~~~~~~~~~~~~~~~~
Foundation.NSPOSIXErrorDomain:1:12: note: did you mean 'NSPOSIXErrorDomain'?
public let NSPOSIXErrorDomain: String
           ^
<unknown>:0: error: build had 1 command failures

I use Parallels and compile on Ubuntu, and edit on Mac in Xcode. Only Bluetooth will compile on Mac, the SPM support is for Linux only.

@semireg Implemented in v2.5.0


Modify the behvior of the PullRequest resource when used as an output…

… to prefill the directory.
Changes
When used as an output on an existing PullRequest, the resource will now prefill the output directory.
This behavior change will prevent users from accidentally deleting comments, labels and statuses from
a PullRequest if they forget to copy the information over from the input directory before making modifications.
Submitter Checklist
These are the criteria that every PR should meet, please check them off as you
review them:

[X] Includes tests (if functionality changed/added)
[X] Includes docs (if user facing)
[X] Commit messages follow commit message best practices

See the contribution guide for more details.
Double check this list of stuff that's easy to miss:

If you are adding a new binary/image to the cmd dir, please update
the release Task to build and release this image.

Reviewer Notes
If API changes are included, additive changes must be approved by at least two OWNERS and backwards incompatible changes must be approved by more than 50% of the OWNERS, and they must first be added in a backwards compatible way.
Release Notes
The PullRequest resource now pre-fills the output directory when it is used as an Output.

cc @skaegi this is what the end goal of that other resource mutation PR was for!

I understand the need for these, however my understanding was that we were going to extend the resource interface to expose a way for resources to pre-fill the output folder when they're used as outputs. Was there a change of plan?

I understand the need for these, however my understanding was that we were going to extend the resource interface to expose a way for resources to pre-fill the output folder when they're used as outputs. Was there a change of plan?

No change in plan as far as I know: that was done here in https://github.com/tektoncd/pipeline/pull/1345
This PR makes use of that mechanism.

Hey @wlynch with the solution you've designed for https://github.com/tektoncd/pipeline/issues/1286 do we still need this PR?

Hey @wlynch with the solution you've designed for #1286 do we still need this PR?

The manifest based approach should fix many of the problems this PR was trying to address, but I think we may still run into some trouble for empty directories (in particular updates to the PR itself).
I'd be okay with dropping this in favor of routing out bugs in the manifest approach.


What is the minimum iOS Version that can run SwiftUICharts?

My Xcode says it's iOS 14.0.
I was hoping for iOS 13.0 for my iPhone 6s Plus.

iOS 14.0.
What version of charts are you using?
There are a couple things used that are only available in iOS 14.
All the accessibility uses the iOS 14 APIs rather than the now deprecated iOS 13 ones.
It looks like all the issues are surmountable it's just I'm not sure if or when I'll have time to look at it.

I'm okay at my end.
Thanks.


Allow existing triggers to be merged in with new trigger definitions

Right now Htmx.Net doesn't play nice with existing trigger headers.  Any third-party components that may attempt to inject trigger headers will fail as Htmx.Net assumes any existing header is a misuse of the library (possibly due to mixing obsolete legacy trigger methods with newer WithTrigger method).
The solution that this PR proposes is to pre-load any existing matching triggers currently in the outgoing response into the _triggers dictionary when all triggers are processed.  If a newer trigger with the same key as an existing trigger is used the old version will be ignored.
In order to accommodate this change I had to remove the check to see if the legacy obsolete Trigger* methods were called alongside the WithTrigger method.  The net effect is that calling a Trigger* method prior to calling WithTrigger will cause the Trigger* events be treated as a simple non-detailed events to be merged together with WithTrigger events.
Tests were added to ensure that all triggers would be aggregated across multiple attempts to add triggers.  I had to remove tests that would check for combinations of legacy Trigger* method and WithTrigger since this check would be functionally obsolete because triggers would be merged.
This is backwards compatible with the existing code since the change only takes place if a trigger header already exists before trying to add it. Multiple triggers are combined as detailed events even if the detail payload is empty.

Looks like the Qodana Scan build task is failing.  "This build of Qodana for .NET has expired. Download a new build from https://www.jetbrains.com/qodana/"

See #32


Tie the dependency setup progress to the progress bar

Currently, the progress bar is set to display as indeterminate, but it needs to be tied to the progress of the thread that the install button spawns. Currently, I'm unsure as to how to do so, and other items are more important, but it will be addressed as soon as possible.

I may be able to communicate with the download process by using the resources here:
https://gist.github.com/somada141/b3c21f7462b7f237e522
https://stackoverflow.com/questions/41106599/python-3-5-urllib-request-urlopen-progress-bar-available
https://www.alpharithms.com/progress-bars-for-python-downloads-580122/
This still leaves the question of the extraction progress


std.socket: Work around https://issues.dlang.org/show_bug.cgi?id=14980

The underlying bug is a compiler issue that looks like might not get fixed soon. This is however a rather critical regression which affects most D network server software, so I think warrants a workaround.
https://issues.dlang.org/show_bug.cgi?id=14980

I opened #3612 to fix inherent issue in tempCString function, and it's targetting stable branch /2.068.1 release.


Control DANDI Jobs and Threads

This PR allows users to control the number of jobs and threads when uploading to DANDI on the GUIDE.
May fix the segmentation fault issue we discovered during alpha tests.

@garrettmflynn Is there a way to constrain the values of the IntRangeSlider to not include zero? Also to include in the description something about how -1 syntax uses all available processes, etc...

Not yet—but I will make a way. Users can also free-input any flat value—so I'll implement a way to automatically round those too.

Working on this now. Is there a similar way to bound threads?

Just pushed the proper workflow for jobs. Threads currently have no maximum

Is there a similar way to bound threads?

Yessir,
number_of_threads = cpu_count() / cpu_count(logical=False)

Sweet updated. Should be ready for review now

One minor update to a description and otherwise LGTM

Awesome. Glad we're getting this in

@garrettmflynn One question on the effect of the new chromatic stories

Working locally now on Storybook


[UI Proposal] Hyperlink activity!

Might already be an issue for this but wasn't able to find it via search
These should all be hyperlinked, it's probably one of the first things everyone will try and do.

Likewise, they should be hyperlinked on the full latest activity page too.

and in User Activity too

Duplicate of https://github.com/paideiadao/paideia-app/issues/18


Two more tx validity checks needed

For each output i in a transaction's outputs list:

Check to make sure that the list of outputs[i].public_keys agrees with the set of public_key instances in the outputs[i].condition.details
Check to make sure that the outputs[i].condition.details does in fact generate the given outputs[i].condition.uri

@sbellem This is probably a good one for you, since you've been thinking about Crypto-Conditions the most lately.

This ticket #728 proposes an alternative solution to the same problem.


fixed wrong enum value for interac payment network

This should fix #46

Thanks for the PR.
Could you redirect it to the dev branch?
You also need to raise the versions in pubspec and describe the CHANGELOG of all the packages you have affected.

@mit-73 bumped versions, resolved comments and added changelog entries

@michaelgobbers thanks for the PR, released a new version in pub.


Megaissue 2024 Q2 -  Posthog for LLMs

Summary
As the number of companies building integrating LLMs increases, we want PostHog to be known as a go-to tool that helps engineers (that build with and integrate LLMs.) build better products.
To do this, we've teamed up with Langfuse to create an integration to bring LLM insights into PostHog. This quarter we'll be focusing on driving adoption of this integration
Goal
Get 50 PostHog customers using the Langfuse integration
Plan
Alpha/Private Beta (current stage)

[x] Dashboard template
[ ] Email mutual PostHog and Langfuse customers @jamesefhawkins
[ ] Email AI companies in the Startup and YC programs
[ ] Docs page for the integration in the Product Analytics docs

Open Beta

[ ] Case study post(s) featuring customers using the integration
[ ] Bookface post
[ ] Feature in monthly startups email (PostHog startup program)
[ ] Changelog post for Beta + feature in changelog email
[ ] SEO content: Tutorials + Blog posts (List of posts TBD)

Prod release

[ ] Changelog post for Prod release + feature in changelog email
[ ] Announcement blog post
[ ] Walkthrough video (to be included in announcement blogpost)
[ ] Announce via all social channels (twitter, LinkedIn, etc)
[ ] Product for Engineers newsletter: AI/LLM themed post where we can also mention the langfuse integration

Open Questions

@jamesefhawkins When is the best time for the bookface launch? During the next YC batch?
@marcklingen / @clemra: When do you we'll be in an open beta?

tagging a bunch of folks for comment+feedback: @ivanagas @andyvan-ph @jtemperton @joethreepwood @jamesefhawkins @marcklingen @clemra

Email AI companies in the Startup and YC programs

We have AI teams identified for the W24 batch btw, but not old batches or the Startups program. Just FYI as you'll have to identify these separately.
Probably worth an in-app notification for something like this btw. Anything in the changelog is also possible to go out with a changelog Pylon announcement.
Anything in Bookface is going to be best in the next batch, which isn't for a while yet.
Wonder if we want to start asking teams what industry they're in when they sign-up.
I'm also going to be doing some Sales-Led stuff next quarter. I haven't planned things out there, but there's a chance we can do some stuff together to funnel AI teams to this.

We could probably so some social threads and announcements here too. AI stuff seems to blow up there. Up to you though.

Wonder if we want to start asking teams what industry they're in when they sign-up.

Was just thinking this. Dedicated onboarding flow / email campaign for AI companies?

Wonder if we want to start asking teams what industry they're in when they sign-up.

Was just thinking this. Dedicated onboarding flow / email campaign for AI companies?

I imagine Growth will have thoughts.
But yes, we could obvs then tailor a lot of things

Very much here for finding the right angle for a newsletter issue on this when the time is right. And happy to brainstorm, of course.

Issue with the content plan:

https://github.com/PostHog/meta/issues/194

Closing out this Q2 issue and will create a new one for Q3. Overall a success! We reached 50 customers in early June


Would anyone like to maintain this project?

As discussed in issue #76, this project lacks a maintainer to merge features from community members. Oath (Yahoo's parent company) doesn't have anyone to maintain this internally anymore, but we'd be happy to hand it off to community leadership so it doesn't become stale.
@rahiel has expressed interest in maintaining it to add python3 support and potentially a REST interface. I'm inclined to grant write/admin permissions to do so unless someone objects.
I also want to open this up to anyone from the community who has an interest in this so we can discuss it here. There are a lot of minor PR's that could be merged fairly easily, and I'm sure there are other features some of you would like to build. I'll leave this issue open for a week to give time for this discussion.

I've added @rahiel to have write access on this repo. If anyone else wants to help, please reach out to me.


Add component wrapper to the metadata component

What

Adds the component wrapper helper to the metadata component.
Note: I added direction-rtl to the permitted classes, as it's used across multiple components, but if you think I should do something else, let me know.

Why
As the trello card states:

Standardising our components to use the component wrapper helper will reduce code, increase standardisation, and improve future feature implementation speed.

Visual changes
None.

@andysellick Should be ready for another review, thanks!

Thanks @andysellick - have updated the docs 👍


⚠ Node - de-5fa44465.yalaso.top has degraded performance

In b5e5805, Node - de-5fa44465.yalaso.top (http://de-5fa44465.yalaso.top/api/v1/ping) experienced degraded performance:

HTTP code: 200
Response time: 2541 ms

Resolved: Node - de-5fa44465.yalaso.top performance has improved in 5feba75 after 2 minutes.


Update prom metrics to support ENG-51 renaming

All metrics are now averages, except explicit "total" metrics
main_pod_average metric is removed
Requires updates to template to ensure matching metric names
dev2.3 rc live-traffic template being updated to match

Hold up -- why would you want to average this? Instead of summing the metrics to produce the true request rate you are now averaging it. The value you are producing is no longer the request rate -- the only way to get that value is to sum up all of the instances to aggregate them. These changes make values that were being reported accurately and semantically aligned with the metric name into one that is not.
If you need averages why not leave the average metrics in place? Why is this in any way necessary and a good idea?

changes were made to normalize metrics being returned to address ENG-51.
rate for main and tuning need to be of the same order, as that's how
they're used/being compared.  I can change the names, but the intent is the
same.
Robert
On Mon, Aug 9, 2021 at 9:47 AM Blake Watters @.***>
wrote:

@.**** requested changes on this pull request.
I don't understand this. Explain further but not merging atm
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/opsani/servox/pull/305#pullrequestreview-725598519,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAHDOZV7FY6ALF4GPMJ2U63T4ABCZANCNFSM5BJAD2MA
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email
.


Adding a camera to a scene then resizing the scene deletes all meshes from the scene

Steps to reproduce

Add some meshes to a scene
Add a DOMElement
Add a camera
Resize the scene with Scene#setScale()
Observe the meshes will disappar

Isolation
Tested against:

v0.6.2 (hard to observe in the code example but its there)
v0.7.0
a5d7fd552505c0f2d40c4a86aa0a61950736ff16

Code Example
    'use strict';

    console.log(famous);
    //var famous = require('famous');
    var DOMElement = famous.domRenderables.DOMElement;
    var FamousEngine = famous.core.FamousEngine;
    var Mesh = famous.webglRenderables.Mesh;
    var Color = famous.utilities.Color;
    var Geometry = famous.webglGeometries.Geometry;
    var Camera = famous.components.Camera;

    var scene = FamousEngine.createScene();
    var centeredOriginNode;

    FamousEngine.init();

    scene
        .setSizeMode('relative', 'relative', 'absolute')
        .setProportionalSize(0.7, 0.7, 0.7)
        .setAbsoluteSize(1000, 1000, 500)
        .setOrigin(0.5,0.5,0.5)
        .setRotation(0.5,0.5,0.5)
        ;

    centeredOriginNode =
        scene.addChild()
            .setSizeMode('relative','relative','relative')
            .setProportionalSize(0.6,0.6,0.6)
            .setAlign(0.5,0.5,0.5)
            .setOrigin(0.5,0.5,0.5)
            .setMountPoint(0.5,0.5,0.5)
            ;

    var oCubeNode = addDebugCube(centeredOriginNode);
    oCubeNode.setOrigin(0.5,0.5,0.5);

    var oDOMElement = new DOMElement(centeredOriginNode, {properties: {'font-size':'100px', 'background-color':'#F00'}}).setContent("hello cruel world!");

    setTimeout(function() {
        var oCamera = new Camera(scene).setDepth(800);
        oDOMElement.setContent("camera added to scene");
        setTimeout(function() {
            scene.setScale(0.5,0.5,0.5);
            oDOMElement.setContent("scene scaled (notice we are now missing the cube mesh)");
        }, 1000 * 3);
    }, 1000 * 3);

    function addDebugCube(parent) {

        var oCube = parent.addChild().setOpacity(0.3);

        // cube
        var oGeometry =
            new Geometry({
                type: 'LINES',
                buffers: [
                    { name: 'a_pos', data: [
                        -1,-1,-1, 1,-1,-1, 1,1,-1, -1,1,-1,
                        -1,-1,1, 1,-1,1, 1,1,1, -1,1,1
                    ], size: 3 },
                    { name: 'indices', data: [
                        0,1, 1,2, 2,3, 3,0, // front face
                        4,5, 5,6, 6,7, 7,4, // back face
                        0,4, 4,7, 7,3, 3,0, // left face
                        1,5, 5,6, 6,2, 2,1 // right face
                    ], size: 2 }
                ]});

        var oMesh =
            new Mesh(oCube)
                .setGeometry(oGeometry)
                .setBaseColor(new Color("#FFFFFF"))
                ;

        return oCube;
    };

Relevant code chunk
        setTimeout(function() {
            scene.setScale(0.5,0.5,0.5);
            oDOMElement.setContent("scene scaled (notice we are now missing the cube mesh)");
        }, 1000 * 3);

Observed Output
After one adds a wireframe cube mesh & a DOM element (correct output):

After then adding a camera (again correct output):

Finally, this is the output after scaling the scene. Notice that the wireframe cube has disappeared:

Expected Output
The red DOM element should be enclosed by a wireframe cube. Instead the cube has disappeared.
Workaround
Add a child node to the scene below the camera then Node#setScale() the child node instead.

May be related to #436 or some of it's associates.


Support rust modules

Kernel 6.1 now supports rust. I will wait to see if nixpkgs decides to package 6.1 with CONFIG_RUST. If so then the primary thing to figure out is compiling rust kernel modules. Otherwise, will also need to figure out compiling the kernel with rust support.

And its done :)


Ember-data custom headers not included in requests

I have a headers object defined in my ember-data adapter but they are not being sent with the requests to my API server. When I run the app without fastboot they are sent as expected but with fastboot they are omitted.
ember 2.3.1
ember-data 2.4.0-beta.3+8d22d1095e
ember-cli-fastboot 0.5.0

The custom headers are actually included and run as part of beforeSend hook of jquery ajax /najax (in case of fastboot) (see: https://github.com/emberjs/data/blob/v2.4.0/addon/adapters/rest.js#L918).
As part of najax(), the header property is set by calling the beforeSend() (see here: https://github.com/najaxjs/najax/blob/master/lib/najax.js#L75).
I confirmed this using http-mock and running the app in fastboot.
I think this can be closed.


Dashboard UI

Create the Dashboard display that all projects have. The display is like a “skeleton” that is shared by all projects—data specific to the project is passed in and displayed on the dashboard.
Goal due date: End of reading week

issue resolved in pr #56 and #59. Good job to everyone who contributed to this issue 🎉


Add Krazyman50real's 8o Mashup

Song Name
Eighto X Mario & Peach Have a Baby
Artist Name
Krazyman50real
Source
Direct file download
Youtube Link
No response
Direct File Link
https://files.catbox.moe/votudg.MP3
Song ID
624882
Start Offset [ms]
0
Extra
im sorry but it sounds good ok

reject
non-YouTube sources are not supported, unless it is a permanent direct download link from a CDN that has given permission for Auto Nong to download from


chore: Cache CRS data in backend directories within ~/.nargo/

Description

Problem*

Resolves
Summary*
This PR changes the handling of CRS data from downloading a fresh copy and saving it to a temporary directory each time to saving it into the backend's directory and persisting it to be reused in future.
Documentation

[ ] This PR requires documentation updates when merged.

[ ] I will submit a noir-lang/docs PR.

[ ] I will request for and support Dev Rel's help in documenting this PR.

Additional Context

PR Checklist*

[x] I have tested the changes locally.
[x] I have formatted the changes with Prettier and/or cargo fmt on default settings.

This is still in draft though I don't see anything else left to do on the PR

This PR is waiting for the PRs it depends on to be merged first.


Upgrade gradle to 4.10.2

Upgraded following https://gradle.org/install/#with-the-gradle-wrapper :
• ./gradlew wrapper --gradle-version=4.10.2 --distribution-type=bin
• ./gradlew tasks

removed the enhancement tag as this is not a user-facing enhancement


A generated AdditionalProperties doesn't have a struct tag

At least for JSON and YAML, I'd expect:
					"additionalProperties": {
						"type": "string"
					}

Would convert into the following Go:
	AdditionalProperties map[string]string `json:"-"`

But instead we see:
	AdditionalProperties map[string]string

Which means that (un)marshaling fails to capture the required fields

Hey jamietanna, thanks for opening this issue. I am not sure I understand this use-case, could you elaborate a bit more please? eg: why would additional properties need to be omitted? and how does including them causes the failure in capturing the required fields?
Perhaps a full marshaling+unmarshaling example could help, thanks! 😁

I'm facing the same problem, no additionalProperties are being unmarshalled, rendering them unusable.
E.g. having a schema.json
{
    "type": "object",
    "additionalProperties": {
        "type": "object",
        "properties": {
            "property1": {
                "type": "string"
            },
            "property2": {
                "type": "number"
            }
        }
    },
    "properties": {
        "foo": {
            "type": "string"
        },
        "bar": {
            "type": "string"
        }
    }
}

after calling  go-jsonschema schema.json --output schema.go --package gen --tags yaml --extra-imports
the Go code is:
// Code generated by github.com/atombender/go-jsonschema, DO NOT EDIT.

package gen

import "encoding/json"
import yaml "gopkg.in/yaml.v3"

type TestJson struct {
	// Bar corresponds to the JSON schema field "bar".
	Bar *string `yaml:"bar,omitempty"`

	// Foo corresponds to the JSON schema field "foo".
	Foo *string `yaml:"foo,omitempty"`

	AdditionalProperties map[string]interface{}
}

// UnmarshalJSON implements json.Unmarshaler.
func (j *TestJson) UnmarshalJSON(b []byte) error {
	var raw map[string]interface{}
	if err := json.Unmarshal(b, &raw); err != nil {
		return err
	}
	type Plain TestJson
	var plain Plain
	if err := json.Unmarshal(b, &plain); err != nil {
		return err
	}
	if v, ok := raw[""]; !ok || v == nil {
		plain.AdditionalProperties = map[string]interface{}{}
	}
	*j = TestJson(plain)
	return nil
}

// UnmarshalYAML implements yaml.Unmarshaler.
func (j *TestJson) UnmarshalYAML(value *yaml.Node) error {
	var raw map[string]interface{}
	if err := value.Decode(&raw); err != nil {
		return err
	}
	type Plain TestJson
	var plain Plain
	if err := value.Decode(&plain); err != nil {
		return err
	}
	if v, ok := raw[""]; !ok || v == nil {
		plain.AdditionalProperties = map[string]interface{}{}
	}
	*j = TestJson(plain)
	return nil
}

Then a test unmarshalling the following test.yaml:
foo: "foo value"
bar: "bar value"
property1: "additional property 1"
property2: "additional property 2"

fails.
Go test code:
t.Run("test", func(t *testing.T) {
		var yamlNode yaml3.Node
		file, _ := os.ReadFile("test.yaml")
		yaml3.Unmarshal(file, &yamlNode)

		genStruct := gen.TestJson{}

		genStruct.UnmarshalYAML(&yamlNode)
		if len(genStruct.AdditionalProperties) == 0 {
			t.Fatalf("no additional properties")
		}
	})

hey @jamietanna @apodznoev I pushed this pr out, mind to have a look at it and see if it resolves the problems you noted? #278 thanks!


Updating DAC Support For SQL Server Objects and Versions

William Assaf requested us to update the https://docs.microsoft.com/en-us/previous-versions/sql/sql-server-2012/ee210549(v=sql.110) document which is out of date. I remembered we created this task on ADO somewhere but couldn't find it.

Adding to your list if we can take care of this doc either by updating it with latest info, or get rid of that outdated doc and point the users to DacFx/SqlPackage docs. Thanks :)


can't edit the time values while debugging

when I debug my python code I'm unable to edit the time values !!??

VS Code version: 1.28.2
Extension version (available under the Extensions sidebar): v2018.10.1
OS and version: XXX windows 10 1803 OS build 17134.345
Python version (& distribution if applicable, e.g. Anaconda): v3.7.0

That's because datetime.timedelta.days is a read-only attribute:
>>> import datetime
>>> test = datetime.timedelta(days=60)
>>> test.days
60
>>> test.days = 4
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: readonly attribute

@brettcannon could this be improved in future python releases and should I file this feedback on python interpreter instead ?

@YousefSaber it could be I wouldn't count on it since those semantics have existed for over 15 years and it's on purpose (you don't want someone changing your timedelta underneath you just like you don't want the number "4" to suddenly mean "6"; it's the outcome of math). What you probably want to do instead is go to the debug console and re-assign the variable to test something out, e.g. Test = datetime.timedelta(days=4).


https://github.com/deeplearning4j/nd4j/issues/1197

Refer to this link for build results (access rights to CI server needed):
/job/nd4j_PR/13/


Love to Ops

The ops part of astrapy should get a systematic check: typing support is not always correct, test coverage is scarce (not an easy challenge), signature of methods should be checked.

Two things come to mind:

probably there's no reason why create_keyspace returns a raw httpx.Response. If so, align with the others, with custom handling since it will return 201 when successful. Much like create_database, in this case we could craft a sensible small dict to make this method uniform to the others
In general, some DevOps calls return a List and others a Dict. Now everything is typed as OPS_API_RESPONSE which is union of the two, but this is not perfect. The create keyspace had to cast to dict for test to typecheck. Indeed whether dict or list is fixed for a given API call. Make the code reflect this, possibly with two _json_request and _list_request methods or something. A long, tedious work.