[QUESTION]: How can I install nvidia driver on Athena Nix

It is the same as installing the driver under NixOS, follow the instruction here : https://nixos.wiki/wiki/Nvidia

@D3vil0p3r TBC

I have a module laying around we can add this somewhere:
{ config, pkgs, lib, ... }: let
  datacenterEnabled = config.hardware.nvidia.datacenter.enable;
in {
  options = {
    hardware.nvidia.rtx = lib.mkEnableOption "Enable NVIDIA RTX support";
  };

  config = lib.mkIf config.hardware.nvidia.rtx {
    programs.atop.atopgpu.enable = true;
    services.xserver.videoDrivers = lib.optional (!datacenterEnabled) "nvidia";
    environment.systemPackages = with pkgs; [
      nvitop
      cudaPackages.cudnn
      cudatoolkit
    ];

    boot = {
      extraModulePackages = [ config.hardware.nvidia.package ];
      initrd.kernelModules = lib.optionals (!datacenterEnabled) [
        "nvidia"
        "nvidia_modeset"
        "nvidia_drm"
        "nvidia_uvm"
      ];
    };

    hardware = {
      graphics.enable = !datacenterEnabled;
      nvidia = {
        open = false;
        nvidiaPersistenced = true;
        prime.offload.enable = datacenterEnabled;
        powerManagement.enable = datacenterEnabled;
        powerManagement.finegrained = datacenterEnabled;
        package = let
          driver = config.boot.kernelPackages.nvidiaPackages;
        in
          if datacenterEnabled then driver.dc_535 else driver.beta;
      };
    };
  };
}

It should be managed at install level.  I should check if the autogpu driver install was implemented or not

@DerDennisOP can you implement Nvidia and AMDGpu modules in Athena Nix but by setting them as false? So the installer will switch them to true if one of those gpu is detected?

tbh I have no idea about the installer, but we can add some nvidia hardware module and turn it on when needed. Whatever you decide. I havn't had problems with amd gpus yet, since setting them up is as simple as that: ```
hardware.graphics = {
enable = true;
enable32Bit = true;
};

Is a module really needed, doesn't nixos-generate-config already detects hardware and generates proper configuration ? Also using : https://github.com/NixOS/nixos-hardware

Is a module really needed, doesn't nixos-generate-config already detects hardware and generates proper configuration ? Also using : https://github.com/NixOS/nixos-hardware

no thats not the case

Are you sure you're familiar with Nix ?
I can't help but wonder why all these are for :

We won't be able to detect drivers breaking on platforms better than what is already in nixos-hardware especially on MacOS platforms.
I believe we shouldn't reinvent the wheel to use iGPU and dGPU but just my 2cent, I'm pretty sure most hardware quirks for specific platform needs to go upstream and should not be handled by the installer directly.

Btw here are the module you're looking to write I think : https://github.com/NixOS/nixos-hardware/blob/d830ad47cc992b4a46b342bbc79694cbd0e980b2/common/gpu/

IMHO, here is what we should try and auto detect, to import profiles for hardware quirks during install :

https://github.com/NixOS/nixos-hardware/tree/d830ad47cc992b4a46b342bbc79694cbd0e980b2?tab=readme-ov-file#list-of-profiles

If you want to work on it let me know @DerDennisOP I maybe able to help

Is a module really needed, doesn't nixos-generate-config already detects hardware and generates proper configuration ? Also using : https://github.com/NixOS/nixos-hardware

no thats not the case

Are you sure you're familiar with Nix ?
I can't help but wonder why all these are for :
We won't be able to detect drivers breaking on platforms better than what is already in nixos-hardware especially on MacOS platforms.
I believe we shouldn't reinvent the wheel to use iGPU and dGPU but just my 2cent, I'm pretty sure most hardware quirks for specific platform needs to go upstream and should not be handled by the installer directly.

we cant use nixos-hardware since it has servers and desktops that are common builds there wont be every user specific configuration there. we might be able to take a module from there. But since I'm not familiar with this I'm sure you can handle it alone better ;)

I still don't understand your comment, I'm sorry if I miss anything but profiles are specific to hardware platforms, common modules are only defined so options can be toggled on/off, see for instance these framework laptops profiles :

https://github.com/NixOS/nixos-hardware/tree/master/framework

I don't see any Framework servers yet, if you happen to see any let me know

Are you sure you're familiar with Nix ?

@AkechiShiro please don't say things like this. @DerDennisOP what is your proposal? The installer practically detects the GPU model implemented on the system and my idea was to switch to true Nvidia or AMD nix attributes.

@D3vil0p3r I would say adding a module enabling all the options needed options for Nvidia and AMD. After that we can just enable it by setting e.g. a "gpu" value to "nvidia" or "amd"

Yes. It can be also changed automatically by Aegis installer once implemented. Im trying to make cyber-toolnix as a module instead of a Rust program.


Issues with opentherm-gateway-simple - not able to modify temperature

Hello,
I recently ordered Opentherm gateway so i would be able to monitor and change temperature between my current gas boiler Baxi nuovola duotec+24 and existing baxi thermostat.
i was able to assemble the parts, installed opentherm-gateway-simple based on your blog post
https://diyless.com/blog/opentherm-gateway-sample
however on the OTGW webpage i can not change temperature on the boiler - only i can see temp info coming from boiler (please see image).
Is there a way how to get this gateway working? Ideal state would be integration of the gateway  with homeassistant (which i saw only for opentherm thermostat module - but not for gateway)

Hi @kerajkeraj
Initially our gateway example was just to show a possibility to monitor and/or alter the controls from an existing thermostat. End user was supposed to write the firmware up to his needs.
Currently we are working on more ready-to-use firmware with HA integration for the gateway.


chore(main): release 1.1.0

:robot: I have created a release beep boop
1.1.0 (2023-03-04)
Features

use node16 runner (6527893)

This PR was generated with Release Please. See documentation.

:robot: Release is at https://github.com/a13r/helm-action/releases/tag/v1.1.0 :sunflower:


fixed::division and fixed::multiplication work incorrect in some cases

Hi!
I was working on geometric calculation using bn::fixed and faced with "Division by zero" error. I dig deeper and found optimized branch of fixed::division and fixed::multiplication works incorrectly. Under optimized branches I consider these:
        if constexpr(Precision % 2 == 0)
        {
            int data = _data / half_scale();
            int other_data = other._data / half_scale();
            return from_data(data * other_data);
        }

        if constexpr(Precision % 2 == 0)
        {
            int data = _data * half_scale();
            int other_data = other._data / half_scale();
            return from_data(data / other_data);
        }

If other is too small (for example 0.0048) other_data will be 0. For devision it is fatal error "Division by zero". For multiplication it returns wrong result and it is hard to find where is mistake. For me self I've just removed this and use safe_* methods instead of. Maybe you need to make the same chanes in engine, because I spent several hours to find where is the problem and some one also can faced with this problem.

Yes, this is true. But I didn't know about it and I just used operators *, /. Maybe you may add assert or more tricky condition to call optimized version when it possible and other cases call non-optimized.
By the way did you profile optimized version vs non-optimized? Maybe you have some number, because performance also importan for me.

Sorry, but I don't know what assert or more tricky condition should I add to call one version or the other without reducing performance (and breaking compatibilty with older releases).
If you know what to add/change, I suggest using your own bn::fixed derived class and overloading * and / operators.

Thanks.


build failing on windows

Running ant does not provide the specified jar in build\artifacts. No other jar by that name either.
find . -name "java-repl.jar"

doesn't find anything
At first it would spawn a lot of git processes (tens?) during the ant build process and just hang. After removing git, I get the following error:
D:\vagrant\dev\java-repl\build.xml:124: Execute failed: java.io.IOException: Cannot run program "git": CreateProcess error=2, The system cannot find the file specified

Total time: 14 seconds

Why does it need git?
Further edit:
After cleaning up my git installation and doing a fresh install:
package:
    [unzip] Expanding: D:\vagrant\dev\java-repl\build\artifacts\javarepl-dev.build-tests.jar into D:\vagrant\dev\java-repl\build\artifacts\reports.unzipped.jar
      [zip] Building zip: D:\vagrant\dev\java-repl\build\artifacts\javarepl-dev.build-sources.jar
      [zip] Building zip: D:\vagrant\dev\java-repl\build\artifacts\javarepl-dev.build-test-sources.jar
     [exec] Result: 128
    [junit] TEST javarepl.completion.TypeCompleterTest FAILED
    [junit] Tests FAILED
   [delete] Deleting directory D:\vagrant\dev\java-repl\build\artifacts\reports.unzipped.jar

BUILD FAILED
D:\vagrant\dev\java-repl\build.xml:192: The following error occurred while executing this line:
D:\vagrant\dev\java-repl\build.xml:113: The following error occurred while executing this line:
D:\vagrant\dev\java-repl\build\macros.xml:110: Tests failed

Total time: 15 seconds

Windows build was never tested or supported


Impossible to install fibers package on Azure Web App

Repro steps.
On a fresh Azure Web App (Windows + Node LTS) run npm install fibers on CMD.
Project structures.
I encountered this problem within a project wich is Nuxt.js base web that uses Vuetify which in turn uses the problematic fibers pacakge.
The log/error given by the failure.
D:\home\site\wwwroot>npm install fibers
gyp ERR! build error
gyp ERR! stack Error: D:\Program Files (x86)\MSBuild\14.0\bin\MSBuild.exe failed with exit code: 1
gyp ERR! stack     at ChildProcess.onExit (D:\Program Files (x86)\npm\6.12.0\node_modules\npm\node_modules\node-gyp\lib\build.js:194:23)
gyp ERR! stack     at ChildProcess.emit (events.js:210:5)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:272:12)
gyp ERR! System Windows_NT 10.0.14393
gyp ERR! command "D:\Program Files (x86)\nodejs\12.13.0\node.exe" "D:\Program Files (x86)\npm\6.12.0\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "rebuild" "--release"
gyp ERR! cwd D:\home\site\wwwroot\node_modules\fibers
gyp ERR! node -v v12.13.0
gyp ERR! node-gyp -v v5.0.5
gyp ERR! not ok
node-gyp exited with code: 1
Please make sure you are using a supported platform and node version. If you
would like to compile fibers on this machine please make sure you have setup your
build environment--
Windows + OS X instructions here: https://github.com/nodejs/node-gyp
Ubuntu users please run: sudo apt-get install g++ build-essential
RHEL users please run: yum install gcc-c++ and yum groupinstall 'Development Tools'
Alpine users please run: sudo apk add python make g++
'nodejs' is not recognized as an internal or external command,
operable program or batch file.
npm WARN enoent ENOENT: no such file or directory, open 'D:\home\site\wwwroot\package.json'
npm WARN wwwroot No description
npm WARN wwwroot No repository field.
npm WARN wwwroot No README data
npm WARN wwwroot No license field.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR<EMAIL_ADDRESS>install: node build.js || nodejs build.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the<EMAIL_ADDRESS>install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR!      D:\local\AppData\npm-cache_logs\2020-07-22T15_13_22_997Z-debug.log

Kudu on Azure App Service generally does not support native node module building.

Kudu on Azure App Service generally does not support native node module building.

Do you mean that everyone that is installing fibers package, is it just not a "downloading" and the package is built?

Anyone? No further ideas on this matter?
Could be a matter of the region where the App Service is set?

Hi
If the problem persists and is related to running it on Azure App Service, please open a support incident in Azure:
https://learn.microsoft.com/en-us/azure/azure-portal/supportability/how-to-create-azure-support-request
This way we can better track and assist you on this case
Thanks,
Joaquin Vano
Azure App Service


Add loading all processors from all modules in a package

Codecov Report

Merging #42 (2fc4807) into main (7c30b49) will not change coverage.
The diff coverage is 100.00%.

@@            Coverage Diff            @@
##              main       #42   +/-   ##
=========================================
  Coverage   100.00%   100.00%
=========================================
  Files            7         7
  Lines          336       355   +19
=========================================
+ Hits           336       355   +19

Impacted Files
Coverage Δ

src/event_processor/event_processor.py
100.00% <100.00%> (ø)

src/event_processor/util.py
100.00% <100.00%> (ø)

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 7c30b49...2fc4807. Read the comment docs.


Don't substitute environment variables

Motivation
environment variables are already taken by bash scripts. We don't need to substitute them.

@sijie would it be worth to keep updating the chart version as mentioned in helm docs, with each PR merge.

@rvashishth #21 is for releasing charts. we bump the chart version when releasing a version.


Feature request: Visual Change Detection Tree

Augury version (required): 1.14.0
Angular version (required): 4.3.0
Date: 30/08/2017
OS: Mac OSX Sierra
Description of issue:
It would be really cool if we could have some sort visual tree that shows Change Detection happening in real time. This would allow you to see frequency of change detection throughout your app and what is causing it. Is this even possible?
Thanks

@arafeek It could be cool to possibly be able to visually see your components as a tree (sort of like you can in Augury right now) but visually show change detection. Maybe you could step through the state/history of it so you can see what triggers change detection and/or see what change detection touches based on your OnPush components etc.
Maybe this idea is ultimately less 'useful' and more just visually appealing as I can obviously go through the call stack to find out what is triggering change detection.

@arafeek It could be cool to possibly be able to visually see your components as a tree (sort of like you can in Augury right now) but visually show change detection. Maybe you could step through the state/history of it so you can see what triggers change detection and/or see what change detection touches based on your OnPush components etc.
Maybe this idea is ultimately less 'useful' and more just visually appealing as I can obviously go through the call stack to find out what is triggering change detection.

This sort of feature(s) is covered by https://github.com/rangle/augury-labs.


Paginator fixes take3

This PR fixes issues reported in #1347 and #1351.

Ordering a query by a column from an association which uses SINGLE_TABLE inheritance no longer throws an error.
Limiting a query which is ordered by fields from a joined -To-Many association now works as expected.

This patch converts LimitSubqueryOutputWalker to use the ROW_NUMBER window function for queries on platforms that support it. Other platforms use a modified version of the previous method. The modification is to not select the ORDER BY columns in the wrapping query. The reason those columns were selected like that in the first place is that ORDER BY on columns not in the select list is unsupported on many platforms. MySQL and SQLite are fine with it, and don't support ROW_NUMBER.
The ROW_NUMBER solution is actually much simpler.
LimitSubqueryOutputWalker SQL generation tests for PG and Oracle have been changed.
There are 2 failing expectedException tests right now. The LimitSubqueryWalker needs to be modified to throw an exception when it detects a query that does the following things together:

Joins a -To-Many association
Orders by a column from the associated entity
Limits the result

As with the previous patch, this depends on changes to SQLServerPlatform2008 that have not yet been merged. SQLServerPlatform2008 in DBAL/master currently mangles the generated queries when trying to apply LIMIT/OFFSET.

@vaheshadunts @alexander-orabey I believe this fixes both of your issues... Please test.

@mrkrstphr Does this fix your issue?

@zeroedin-bill no, it does not. I will try to write a failing test tomorrow.

@mrkrstphr Ok, thanks - the functional testsuite is taking shape, and that should help prevent regressions like this in the future.
What platform are you running on?

Test suite runs in sqlite.

@zeroedin-bill as I see its ok in travis, I'll merge and test it later, thanks.

Hi, I don't know is it related but now this query is throwing exception
        $q = $this->entityManager->createQuery(
            '
SELECT entity FROM System\Entity\SimpleEntity entity
WHERE  ((SELECT COUNT(simple.id) FROM System\Entity\SimpleEntity AS simple) = 1)
ORDER BY entity.id DESC
        '
        );
        $q->setHint(Query::HINT_CUSTOM_OUTPUT_WALKER, 'Doctrine\ORM\Tools\Pagination\LimitSubqueryOutputWalker');
        $list = $q->getScalarResult();

Exception:
An exception occurred while executing 'SELECT DISTINCT id_0 FROM (SELECT s0_.id AS id_0, s0_.name AS name_1, s1_.id AS id_2 FROM simple_entity s0_ WHERE ((SELECT COUNT(s1_.id) AS dctrn__1 FROM simple_entity s1_) = 1)) dctrn_result ORDER BY id_0 DESC':

SQLSTATE[42S22]: Column not found: 1054 Unknown column 's1_.id' in 'field list'
```

If I remove `ORDER BY entity.id DESC` from query then it runs fine.

Now its impossible to use Paginator when where is ordering and subquery with count()

@zeroedin-bill it looks like our issue is cases that use table inheritance with an inheritance type of JOINED.
For a test case, should I put that in PaginatorTest or in Functional\Ticket somewhere?

Since most of PaginationTest is new, and it hasn't been merged, please put
it into PaginationTest - I'll merge it into my PR branch.
Thanks!
On Mar 30, 2015 8:52 AM, "Kristopher Wilson"<EMAIL_ADDRESS>wrote:

@zeroedin-bill https://github.com/zeroedin-bill it looks like our issue
is cases that use table inheritance with an inheritance type of JOINED.
For a test case, should I put that in PaginatorTest or in
Functional\Ticket somewhere?
—
Reply to this email directly or view it on GitHub
https://github.com/doctrine/doctrine2/pull/1353#issuecomment-87665933.

@antanas-arvasevicius - fixed and added a testcase, thanks

@zeroedin-bill here is a failing test case: https://github.com/doctrine/doctrine2/compare/master...mrkrstphr:paginator-test-for-joined-inheritance?expand=1

Great, thanks :)
Bill Schaller
Software and Support Engineer
Zeroed-In Technologies LLC
m:  +1.336.601.0632   o:  +1.410.242.6611 x2122
w:  *http://www.zeroedin.com http://www.zeroedin.com/ *
On Mon, Mar 30, 2015 at 11:19 AM, Kristopher Wilson <
<EMAIL_ADDRESS>wrote:

@zeroedin-bill https://github.com/zeroedin-bill here is a failing test
case:
https://github.com/doctrine/doctrine2/compare/master...mrkrstphr:paginator-test-for-joined-inheritance?expand=1
—
Reply to this email directly or view it on GitHub
https://github.com/doctrine/doctrine2/pull/1353#issuecomment-87720359.

@mrkrstphr - merged and fixed.

@stof resolved comments, thanks

@zeroedin-bill thank you very much!

@zeroedin-bill found another issue: https://github.com/zeroedin-bill/doctrine2/pull/1

@zeroedin-bill commenting out this function call (https://github.com/zeroedin-bill/doctrine2/blob/paginator-fixes-take3/lib/Doctrine/ORM/Tools/Pagination/LimitSubqueryOutputWalker.php#L424) seems to fix it, and doesn't cause any other errors. Is this call necessary?

@mrkrstphr fixed, thanks :)

Our test suite now passes with this branch. Thanks!

@mrkrstphr Thanks for your help and testing :+1:

Merged into master at doctrine/doctrine2@82230cc42706741699cd9bbfa4b59a7588ddcd1d - now tagging 2.5.0-RC2


Setting property to null does not work

Extending the Gtk3 Test "TestProperty.TestObject" fails if the test looks like this:
        [TestMethod]
        public void TestObject()
        {
            var pixbuf = GdkPixbuf.Pixbuf.NewFromFile("test.bmp");
            var aboutDialog = new AboutDialog();

            aboutDialog.Logo.Should().BeNull();
            aboutDialog.Logo = pixbuf;
            aboutDialog.Logo.Should().Be(pixbuf);

            aboutDialog.Logo = null;
            aboutDialog.Logo.Should().BeNull(); //This fails because logo is not set to null properly
        }

The provided sample is invalid as the AboutDialog automatically creates a default Logo. Therefore the test must be updated to use another class.


Added consul-alerts with slack integration

Installtion of consul-alerts
2.integration of slack with consul-alerts

@sorenh can you please weigh in here about downloading things from the internet? I'm assuming this should be packaged for us to use it?

The packaging for consul-alerts is available at: https://github.com/JioCloud/consul-alerts-pkg

Package built and published in rustedhalo repository. So, instead of downloading it, you should now be able to simply install the consul-alerts package.

this was merged as #649


Update show databases documentation to state users need select privileges

The documentation for show databases states currently that no privileges are required
https://www.cockroachlabs.com/docs/stable/show-databases.html#required-privileges
However this is wrong, for a user to be able list the database with this command they must have been granted select privilege on the database
pl_test@localhost:26257/defaultdb> show databases;
database_name
(0 rows)
root@localhost:26257/defaultdb> grant select on database movr to pl_test;
GRANT
Time: 22.287154ms
pl_test@localhost:26257/defaultdb> show databases;
database_name
movr
(1 row)
Thanks
Paul

Passing to @ericharmeling for further grooming.

I'll pick this up for fixit

This was fixed by https://github.com/cockroachdb/docs/pull/9197.


false UpdateLiveStats

UpdateLiveStats show Caught 1,958 pokemon when i setting "daily_catch_limit": 800, in config .
2016-08-26 14:12:36,618 [UpdateLiveStats] [INFO] [log_stats] Uptime : 0:13:36 | Level 23 | Earned 226,666 Stardust | +490,220 XP | 2,162,923 XP/h | Visited 1,838 stops | Caught 1,958 pokemon
config  :
   "gps_default_altitude": 8.0,
    "replicate_gps_xy_noise": false,
    "replicate_gps_z_noise": false,
    "gps_xy_noise_range": 0.000125,
    "gps_z_noise_range": 12.5,
    "debug": false,
    "test": false,
    "health_record": false,
    "location_cache": true,
    "distance_unit": "km",
    "reconnecting_timeout": 15,
    "logging_color": true,
	"save_pokemon_spawn": true,
    "daily_catch_limit": 800,

What exactly do you mean? The number of pokemon caught doesn't have anything to do with your catch limit as far as I can tell. It takes into account everything you've caught all day today.

"daily_catch_limit": 800 ==> bot wont catched pokemon number 801 per a day , value pokemon_caught in UpdateLiveStats:
      {
        "type": "UpdateLiveStats",
        "config": {
          "enabled": true,
          "min_interval": 10,
          "stats": ["uptime", "level","stardust_earned", "xp_earned", "xp_per_hour", "stops_visited","pokemon_caught"],
          "terminal_log": true,
          "terminal_title": true
        }
      },

pokemon_caught : The number of caught pokemon.  ==> i think mean of is number of caught pokemon when bot start not caught pokemon per a day

So, are you saying the bot is catching too many pokemon (ignoring catch limit)? Or that the UpdateLiveStats output is incorrect?

At this moment my UpdateLiveStats are incorrect.

I see the same - stats are incorrect

Same here:

2016-08-26 14:54:24,074 [UpdateLiveStats] [INFO] [log_stats] Level 24 | Uptime : 0:00:09 | Visited 1,666 stops | 80.31km walked | 635,236 pokemon/h | 246,323,573 XP/h

Same here. No config changes done, but did a Git Pull
Uptime : 2:20:49 | Earned 457,903 Stardust | +1,020,415 XP | 434,763 XP/h | Visited 4,736 stops | Level 26

Can any of you please list what it has for your starting stats (level, exp, startdust, etc) and then the live update message. This is probably due to one of my PRs.

2016-08-26 02:51:16,622 [PokemonGoBot] [INFO] Level: 6 (Next Level: 2680 XP) (Total: 18320 XP)
2016-08-26 02:51:16,623 [PokemonGoBot] [INFO] Pokemon Captured: 38 | Pokestops Visited: 73
2016-08-26 02:52:32,588 [       cli] [INFO] Ran for 0:01:25
2016-08-26 02:52:32,588 [       cli] [INFO] Total XP Earned: 18320  Average: 779562.16/h
2016-08-26 02:52:32,588 [       cli] [INFO] Travelled 2.58km
2016-08-26 02:52:32,588 [       cli] [INFO] Visited 73 stops
2016-08-26 02:52:32,588 [       cli] [INFO] Encountered 38 pokemon, 38 caught, 0 released, 0 evolved, 18 never seen before ()
2016-08-26 02:52:32,588 [       cli] [INFO] Threw 44 pokeballs
2016-08-26 02:52:32,588 [       cli] [INFO] Earned 3800 Stardust
2016-08-26 02:52:32,588 [       cli] [INFO] Hatched eggs 0
2016-08-26 02:52:32,588 [       cli] [INFO] Next egg hatches in 2.42 km
Yeah, this is by bad. Let me look into it.

PR #4778 should fix.

Merged to dev branch.


Migrate CI

After migrating to travis-ci.com (#29) , it seems that Travis CI no longer offers free builds for open-source projects: https://news.ycombinator.com/item?id=25338983
GitHub Actions seems the next logical choice...
This might help get us started: https://github.com/actions/starter-workflows/blob/main/ci/go.yml
And then maybe use this for goveralls? https://github.com/shogo82148/actions-goveralls

See also: https://bmaupin.github.io/wiki/programming/services/github-actions.html


removed std::cout from ast_def.cpp

Submisison Checklist

[ ] Run unit tests: ./runTests.py src/test/unit
[x] Run cpplint: make cpplint
[x] Declare copyright holder and open-source license: see below

Summary
Removed use of std::cout from ast_def.cpp
Intended Effect
Can't have cout in server code.
How to Verify
grep, check diffs
Side Effects
No.
Documentation
no.
Reviewer Suggestions
anyone.
Copyright and Licensing
Please list the copyright holder for the work you are submitting (this will be you or your assignee, such as a university or company):
Columbia University
By submitting this pull request, the copyright holder is agreeing to license the submitted work under the following licenses:

Code: BSD 3-clause (https://opensource.org/licenses/BSD-3-Clause)
Documentation: CC-BY 4.0 (https://creativecommons.org/licenses/by/4.0/)

I reviewed it. When it's done, running tests on travis, we can merge.


Language Server

Initial Language Server for Gleam, Currently within the VSCode repository. However this could be moved to its own repo with a submodule for compilation.
References

https://code.visualstudio.com/api/language-extensions/language-server-extension-guide
https://github.com/microsoft/vscode-extension-samples/tree/main/lsp-sample
https://github.com/microsoft/vscode-languageserver-node

Notes
Fixes https://github.com/gleam-lang/gleam/issues/180

Closed as there is a native LSP being build by @lpil


Make the code samples buttons

This is a better way to achieve what I originally did in 4cb2c91e65857c7dcfaaf1f87306881231871405. Can now tab over the samples when clickable too.

Could you add these 3 classes

Done, definitely more consistent.


Language prefix in web address vs. content language

I'm not sure if this truly a bug or maybe it is intentional behaviour, but came across a page where the frame is in French while the content is in English, when the prefix is "fr" but the rest of the URL is in English?
Describe the bug

Tested. This issue appears to be resolved now both on staging and on alpha.canada.ca.


update getAmount to return either base units or subunits

sometimes it is beneficial to return the base unit value of a currency rather than the subunit value. this commit allows us to do that by passing a boolean to the getAmount method. this implementation will not break BC, and users can continue to use the getAmount method as before.
in fact, the PHP number formatter doesn't do any of this math for you, which is why you needed to include it in your IntlFormatter. This commit allows us to move that responsibility from the formatter to the Money class.
if the mixed return types bothers you, I could also extract this out into a separate method, something like getConvertedAmount()

I do not like methods with an option like that. Please send a pull request for a separate method. Thanks!


OpenSSL-3.0.0-beta1 fixes

This pull request lets at least the VOMS API and clients build and run against OpenSSL-3.0.0-beta1 (API tested using LCMAPS).

several functions now have 'constified' their parameters: add appropriate #if
defining AC_dup using &(AC_it) causes a SEGV in OpenSSL 3.0. The proper way
seems to always have been to use ASN1_ITEM_rptr(), see for example
OpenSSL-1.1.1's version of crypto/rsa/rsa_asn1.c lines 113-116

I used the changes from this PR to build voms for Fedora rawhide that now has OpenSSL 3.0.

I just realised that for a proper fix for OpenSSL3.0 all occurrences of ERR_PACK need to be checked, since the function part is deprecated and set to 0 in ERR_PACK. That can result in overwriting other entries (library name or reasons).
This concerns:

src/ac/error.c: should be skipped entirely
src/sslutils/scutils.c: should skip loading the scerr_str_functs
src/sslutils/sslutils.c: should skip loading the prxyerr_str_functs
Also references to ERR_func_error_string also need adapting since that will always be (null). That concerns src/socklib/Server.cpp and src/common/data.cc
All these are not really breaking voms, but can lead to misleading and/or faulty error messages.

If this patch is sufficient to have a successful compilation of VOMS with OpenSSL 3, I'm happy to merge. Later I'll have a deeper look to the use of ERR_PACK and to the many compilation warnings I see, due at least in part to the change of C++ standard.

As I said before: I use this PR for building on Fedora, EPEL and Debian:
https://src.fedoraproject.org/rpms/voms/blob/rawhide/f/voms-openssl3.patch
https://salsa.debian.org/ellert/voms/-/blob/master/debian/patches/voms-openssl3.patch


refactor: use helium

:tada: This PR is included in version 2.0.0-alpha.2 :tada:
The release is available on:

npm package (@alpha dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Update Angular 6

[x] Update to Angular 6
[x] Refactor library architecture
[x] Update to CircleCi v2
[x] Revise README.md and dependency badges
[ ] Add StackBlitz demo
[ ] Create release notes

Fix #39

Coverage increased (+5.04%) to 100.0% when pulling c5f494a4ec3dbe496613f485e12d898be16efdb3 on update-angular-6 into 9b1e8673a273f62bc7febe2bfee8bb6a4ebb3513 on master.


IIS 502 Error in Microsoft Azure

Awesome work, thanks!
How do I publish this stuff to Azure Web App? I try to copy the "bin\Release\netcoreapp1.1\publish" to my IIS wwwroot folder but I get a 502.5 Error. Any ideas?

Do a pubish using the npm script. > npm publish-for-iis


ff4j-demo: fixing configuration of the jetty-maven-plugin issue.

In jetty maven plugin version 8 and 9, contextPath is a sub tag of webApp and not directly a sub tag of configuration.
With the current config, after an:
mvn jetty:run
An attempt to access http://localhost:8080/ff4j-demo will generate a 404 http error
With the change everything works fine and one can flipp at will these nice planets
More about this here: Root context path with maven jetty plugin

Hello Alain,
Thx for the modification.
I noticed you forked the repos, ff4j-demo is one thing but you should also have a look on the spring boot sample with the starter Spring boot.

Hello Cédrick,
Thank you sure, I will!!!


Fix using namespace std

Build fails on Linux (it has no precompiled headers, need "use namespace std;" in the .cpp)

I am not a big fan on putting "std::" prefix, from my point of view having xxx:xxx:xxx in C++ code makes code difficult to read.
I am OK for putting e.g. using std::bitset; but  I am reluctant to accept std:: stuff directly in classes (except when the class is public, this is not the case here)

would you mind to remove std:: prefix and add using namespace std::bitset; when needed (here in HashWrapper.h and File_Mxf.h)?

Ok.

Remove prefix for all public std::bitset<> members?
Source\MediaInfo\File__Analyze.h
Source\MediaInfo\File__Analyze_MinimizeSize.h
Source\MediaInfo\Multiple\File__ReferenceFilesHelper_Sequence.h
Source\MediaInfo\Audio\File_Dts.h
Source\MediaInfo\Text\File_Eia608.h
Source\MediaInfo\Multiple\File_Mxf.h
Source\MediaInfo\Text\File_Teletext.h
Source\MediaInfo\MediaInfo_Config.h
Source\MediaInfo\MediaInfo_Internal.h
Source\MediaInfo\Reader\Reader_File.h

Ha ha. Good catch of incoherencies in my own coding rules.
I take it optionally, for me it is not a priority.


Fixed minor typos in the cFS docs

Describe the contribution
Fixed a few minor typos (misspelling of words) in README.md, CONTRIBUTING.md and SECURITY.md.
Testing performed
None (non-executable code).
Expected behavior changes
None (Markdown doc changes only).
System(s) tested on
n/a
Additional context
n/a
Code contributions
n/a

Thanks for the contribution!

Thanks for the contribution!

Cheers Gerardo.

CCB:2021-08-25 APPROVED


Submitting my climate analysis to main

Pull Request Description Here
Adresses Issue (start typing # to see a list of issues)
Before you submit, remember to:

[ ] Pull in all changes from main to reduce conflicts
[ ] Request reviews from @earthlab-education/ea-students

This looks like a comprehensive coverage of the issue - not sure how to get rid of the depreciated pink reporting items, but it does look complete.


Image Resizer

One of my favourite power toys of the past was Image Resizer.
It was great to be able to give clients a tool in explorer to resize images as needed.
I can't remember what it could do but my wishlist would be:

Resize to the specified size
Resize so that the long axis is X (maintaining ratio)
Resize so that the specified axis is X (maintaining ratio)
Fit within the given space, centred with the short axis matched to the content box.

The old power toy could do this with a whole folder of images if needed.

plus 1

Yes it was the most usefull powertoy

Plus 1

I was also an avid user of the Image Resizer. Very convenient tool to lower the resolution/size of a directory containing images/photos

Much needed Windows feature, given that this is supposedly an OS for 'creators' it should really be part of the OS, as should 'fancyzones'. This is just basic, rudimentary productivity, no power to it.

Would you want it to be like PowerRenamer where it is in the shell?  select one or multiple photos?
Common scenario, images of different aspect ratios.  You'd want the image to be distorted for "Resize to the specified size"?

Yeah the way PowerRenamer works is how I'd envisaged it.
"Resize to the specified size" would be more for single images or sets with identical dimensions or ratios. Maybe with a lock to ration option so it would auto-calculate the Y value based on the X etc....

Hello,
IMHO resize should change/lower the resolution of selected photos. Typical of a scenario where you want to publish photos on the web but do not want to upload pictures in full res due to bandwidth/constraints. So the aspect ratio of the photos is not changed in the process.
Sent from Mailhttps://go.microsoft.com/fwlink/?LinkId=550986 for Windows 10
From: Adam<EMAIL_ADDRESS>Sent: Thursday, December 5, 2019 11:00 AM
To<EMAIL_ADDRESS>Cc<EMAIL_ADDRESS><EMAIL_ADDRESS>Subject: Re: [microsoft/PowerToys] Image Resizer (#53)
Yeah the way PowerRenamer works is how I'd envisaged it.
"Resize to the specified size" would be more for single images or sets with identical dimensions or ratios. Maybe with a lock to ration option so it would auto-calculate the Y value based on the X etc....
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHubhttps://github.com/microsoft/PowerToys/issues/53?email_source=notifications&email_token=AF4SKI6XX42ZXLNM773P7QTQXDGNRA5CNFSM4HL2YL22YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEGAFFYI#issuecomment-562057953, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AF4SKIZWSLPLRCBB6IW2JFDQXDGNRANCNFSM4HL2YL2Q.

https://github.com/bricelam/ImageResizer

For those who want to follow along, https://github.com/microsoft/PowerToys/tree/dev/imageResizer

This is now available in 0.16 https://github.com/microsoft/PowerToys/releases


Matplotlib subplots not working with seaborn distplot

Code sample, a copy-pastable example if possible
A "Minimal, Complete and Verifiable Example" will make it much easier for maintainers to help you.
import pandas as pd
import xarray as xr
import numpy as np

def drop_nans_and_flatten(dataArray: xr.DataArray) -> np.ndarray:
    """flatten the array and drop nans from that array. Useful for plotting histograms.

    Arguments:
    ---------
    : dataArray (xr.DataArray)
        the DataArray of your value you want to flatten
    """
    # drop NaNs and flatten
    return dataArray.values[~np.isnan(dataArray.values)]

# create dimensions of xarray object
times = pd.date_range(start='1981-01-31', end='2019-04-30', freq='M')
lat = np.linspace(0, 1, 224)
lon = np.linspace(0, 1, 176)

rand_arr = np.random.randn(len(times), len(lat), len(lon))

# create xr.Dataset
coords = {'time': times, 'lat':lat, 'lon':lon}
dims = ['time', 'lat', 'lon']
ds = xr.Dataset({'precip': (dims, rand_arr)}, coords=coords)
ds['month'], ds['year'] = ds['time.month'], ds['time.year']

Making plot using proplot
import proplot as plot
import calendar

f, axs = plot.subplots(nrows=4, ncols=3, axwidth=1.5, figsize=(8,12), share=2) # share=3, span=1,
axs.format(
    xlabel='Precip', ylabel='Density', suptitle='Distribution',
)

month_abbrs = list(calendar.month_abbr)
mean_ds = ds.groupby('time.month').mean(dim='time')
flattened = []
for mth in np.arange(1, 13):
    ax = axs[mth - 1]
    ax.set_title(month_abbrs[mth])
    print(f"Plotting {month_abbrs[mth]}")
    flat = drop_nans_and_flatten(mean_ds.sel(month=mth).precip)
    flattened.append(flat)
    sns.distplot(flat, ax=ax, **{'kde': False})

Actual result vs. expected result
This should explain why the current behavior is a problem and why the expected result is a better solution.
The proplot returns a plot like follows:

It looks empty plot. Also the axes are only sharing the x-axis for each column but I want it to be shared across all subplots.
The matplotlib version does what I expect.
fig, axs = plt.subplots(4, 3, figsize=(8, 12), sharex=True, sharey=True)

month_abbrs = [m for m in calendar.month_abbr if m != '']

for mth in range(0, 12):
    ax_ix = np.unravel_index(mth, (4, 3))
    ax = axs[ax_ix]
    mth_str = month_abbrs[mth]
    sns.distplot(flattened[mth], ax=ax)
    ax.set_title(mth_str)

fig.suptitle('Distribution of Rainfall each Month');

Thanks for the examples (and your interest)! Never thought of using seaborn with ProPlot. This is probably related to my fill_between_wrapper overrides. All of ProPlot's plotting wrappers are supposed to be strict supersets/not interfer with usage of the existing matplotlib API, but I appear to have overlooked something. Will get to it within the next few days.

Oooooh interesting! I love the package idea because I myself have never got round to understanding the many ways of controlling matplotlib settings. Should probably look into that too! But yes if it turns out to be a pain ill use a different histogram function I just quite like the seaborn one and it’s easy to use!
Also because it’s a big part of python visualisation I’m guessing others might want it too! Thanks so much
Sent from my iPhone

On 18 Jul 2019, at 23:22, Luke Davis<EMAIL_ADDRESS>wrote:
Thanks for the examples (and your interest)! Never thought of using seaborn with ProPlot. This is probably related to my fill_between_wrapper overrides. All of ProPlot's plotting wrappers are supposed to be strict supersets/not interfer with usage of the existing matplotlib API, but I appear to have overlooked something. Will get to it within the next few days.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.

Sorry for the delay -- the latest commit (c45c88a) fixes this. Try running pip uninstall proplot then re-installing with pip install git+https://github.com/lukelbd/proplot.git#egg=proplot (when ProPlot is officially released it will use a versioning system, but for now I'm just pushing bugfixes directly to master).
Also note that you cannot specify both the figure dimensions and the axes dimensions. If you input the former the latter will be ignored. ProPlot now issues a warning when this happens.

And thanks again for posting the example, you made it a very quick fix.

Thanks @tommylees112 and @lukelbd for posting and solving this issue! It was useful to look at this code to solve my own seaborn + proplot issue.

@tommylees112 maybe you can help me with this. When I try and run your code above I get ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all().  Did you ever run into this error?
I just installed proplot so I have version 0.5.0.
Here's the code I used:
import pandas as pd
import xarray as xr
import numpy as np
import seaborn as sns

import proplot as plot
import calendar

def drop_nans_and_flatten(dataArray: xr.DataArray) -> np.ndarray:
    """flatten the array and drop nans from that array. Useful for plotting histograms.

    Arguments:
    ---------
    : dataArray (xr.DataArray)
        the DataArray of your value you want to flatten
    """
    # drop NaNs and flatten
    return dataArray.values[~np.isnan(dataArray.values)]

# create dimensions of xarray object
times = pd.date_range(start='1981-01-31', end='2019-04-30', freq='M')
lat = np.linspace(0, 1, 224)
lon = np.linspace(0, 1, 176)

rand_arr = np.random.randn(len(times), len(lat), len(lon))

# create xr.Dataset
coords = {'time': times, 'lat':lat, 'lon':lon}
dims = ['time', 'lat', 'lon']
ds = xr.Dataset({'precip': (dims, rand_arr)}, coords=coords)
ds['month'], ds['year'] = ds['time.month'], ds['time.year']

f, axs = plot.subplots(nrows=4, ncols=3, axwidth=1.5, figsize=(8,12), share=2) # share=3, span=1,
axs.format(
    xlabel='Precip', ylabel='Density', suptitle='Distribution',
)

month_abbrs = list(calendar.month_abbr)
mean_ds = ds.groupby('time.month').mean(dim='time')
flattened = []
for mth in np.arange(1, 13):
    ax = axs[mth - 1]
    ax.set_title(month_abbrs[mth])
    print(f"Plotting {month_abbrs[mth]}")
    flat = drop_nans_and_flatten(mean_ds.sel(month=mth).precip)
    flattened.append(flat)
    sns.distplot(flat, ax=ax, **{'kde': False})

And the error:
Plotting Jan
---------------------------------------------------------------------------
ValueError                                Traceback (most recent call last)
<ipython-input-1-bea6a445aa3a> in <module>
     46     flat = drop_nans_and_flatten(mean_ds.sel(month=mth).precip)
     47     flattened.append(flat)
---> 48     sns.distplot(flat, ax=ax, **{'kde': False})
     49

~/miniconda3/envs/maize-Toff/lib/python3.7/site-packages/seaborn/distributions.py in distplot(a, bins, hist, kde, rug, fit, hist_kws, kde_kws, rug_kws, fit_kws, color, vertical, norm_hist, axlabel, label, ax)
    226         ax.hist(a, bins, orientation=orientation,
    227                 color=hist_color, **hist_kws)
--> 228         if hist_color != color:
    229             hist_kws["color"] = hist_color
    230

ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()

Bringing this up because I'm trying to make a similar plot (proplot subplots + sns.distplot()) but am running into that ValueError for my code as well.


hockey step not able to create app entry on hockeyapp

New Issue Checklist

[x] Updated fastlane to the latest version
[x] I have read the Contribution Guidelines

Issue Description
If the application is not created on hockey app the action hockey does not create it. My fastfile is provided with environment with values replaced with xxxxxxx for privacy.
Complete output when running fastlane, including the stack trace and command used
[15:28:12]: Driving the lane 'Upload' 🚀
[15:28:12]: --------------------
[15:28:12]: --- Step: hockey ---
[15:28:12]: --------------------
[15:28:12]: Symbols not found on path xxxx. Crashes won't be symbolicated properly
[15:28:12]: Starting with file(s) upload to HockeyApp... this could take some time.
+---------------+--------+
|      Lane Context      |
+---------------+--------+
| PLATFORM_NAME |        |
| LANE_NAME     | Upload |
+---------------+--------+
[15:28:13]: Error trying to create app version:  404 - {"errors"=>{"app"=>["not found"]}}
+------+--------+-------------+
|      fastlane summary       |
+------+--------+-------------+
| Step | Action | Time (in s) |
+------+--------+-------------+
| 💥   | hockey | 0           |
+------+--------+-------------+
[15:28:13]: fastlane finished with errors
Environment
✅ fastlane environment ✅
Stack

Key
Value

OS
10.11.6

Ruby
2.4.0

Bundler?
false

Git
git version 2.10.1 (Apple Git-78)

Installation Source
/usr/local/bin/fastlane

Host
Mac OS X 10.11.6 (15G1421)

Ruby Lib Dir
/usr/local/Cellar/ruby/2.4.0/lib

OpenSSL Version
OpenSSL 1.0.2j  26 Sep 2016

Is contained
false

Is homebrew
false

Is installed via Fabric.app
false

Xcode Path
/Applications/Xcode.app/Contents/Developer/

Xcode Version
8.2.1

System Locale

Variable
Value

LANG
en_US.UTF-8
✅

LC_ALL

LANGUAGE

fastlane files:
`./fastlane/Fastfile`
lane :Upload do
	hockey(
		api_token: "xxxxxxxx",
		create_update: true,
        public_identifier: "xxxxxxxx",
        bundle_short_version: "xxxxxxxx",
        bundle_version: "xxxxxxxx",
		ipa: "xxxxxxxx",
        notes: "xxxxxxxx"
	)
end

No Appfile found
fastlane gems

Gem
Version
Update-Status

fastlane
2.28.7
✅ Up-To-Date

Loaded fastlane plugins:
No plugins Loaded
Loaded gems

Gem
Version

did_you_mean
1.1.0

slack-notifier
1.5.1

CFPropertyList
2.3.5

claide
1.0.1

colored2
3.1.2

nanaimo
0.2.3

xcodeproj
1.4.4

rouge
1.11.1

xcpretty
0.2.4

terminal-notifier
1.7.1

unicode-display_width
1.1.3

terminal-table
1.7.3

plist
3.2.0

public_suffix
2.0.5

addressable
2.5.0

multipart-post
2.0.0

word_wrap
1.0.0

tty-screen
0.5.0

babosa
1.0.2

colored
1.2

highline
1.7.8

commander-fastlane
4.4.3

excon
0.55.0

unf_ext
<IP_ADDRESS>

unf
0.1.4

domain_name
0.5.20170223

http-cookie
1.0.3

faraday-cookie_jar
0.0.6

fastimage
2.1.0

gh_inspector
1.0.3

uber
0.0.15

representable
2.3.0

retriable
2.1.0

hurley
0.2

little-plugger
1.1.4

multi_json
1.12.1

logging
2.2.0

jwt
1.5.6

memoist
0.15.0

os
0.9.6

signet
0.7.3

googleauth
0.5.1

httpclient
2.8.3

google-api-client
0.9.28

mini_magick
4.5.1

multi_xml
0.6.0

rubyzip
1.2.1

security
0.1.3

xcpretty-travis-formatter
0.0.4

dotenv
2.2.0

bundler
1.14.6

faraday_middleware
<IP_ADDRESS>

json
2.0.3

io-console
0.4.6

openssl
2.0.2

faraday
0.12.1

generated on: 2017-05-01

fastlane doesn't create a new hockey app for you, you can either create it manually using the hockey web UI, or you can use Crashlytics beta, which creates the app automatically on the first run 👍

Thanks for the quick response. And yes, apologies. I should have worded this clearly. I am aware that fastlane does not do it as yet - I directly invoke the hockeyapp api to create the application.
I was wondering if such a functionality could be requested or even submitted by us. That is to say, are there any "guiding principles" that oppose "app creation" from within this fastlane action?

Oh, I understand now. Currently no, and it's probably nothing we will work on, as we're currently focusing on other areas on fastlane.

Could I give it a go?

Sure thing. Check out how to get started (https://github.com/fastlane/fastlane/blob/master/YourFirstPR.md) and this is the action that needs to be modified https://github.com/fastlane/fastlane/blob/master/fastlane/lib/fastlane/actions/hockey.rb
Let me know if you need any help 👍  Thanks for your contribution

Looking into it now.  I ll comment with the PR when i am done.

We just received an issue from the Microsoft team, maybe you should talk with them first before spending time on this task 👍  https://github.com/fastlane/fastlane/issues/9105

Thanks Felix! I think they might want to include this change- given what they are planning to offer.

@pav1790 thanks for your interest. We've just published the new Mobile Center plugin and you can expect the create option to be added soon.

I will close this issue. Sorry I hadn't looked into this further. Ended up using the hockeyapp apis to do most of it. I ll be keeping an eye on the mobilecenter plugin. :)


python3Packages.pencompy: init at 0.0.4

Description of changes
Library for interacting with Pencom relay boards
https://github.com/dubnom/pencompy
This is a Home Assistant dependency.

Things done

Built on platform(s)

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

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

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

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

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module
[ ] (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes

[x] Fits CONTRIBUTING.md.

Result of nixpkgs-review pr 170313 run on x86_64-linux 1

2 packages built:

python310Packages.pencompy
python39Packages.pencompy

Result of nixpkgs-review pr 170313 run on aarch64-linux 1

2 packages built:

python310Packages.pencompy
python39Packages.pencompy


Add default trait implementation for TxIn

fixes #339
Adds a default impl for TxIn, if any of the values are incorrect please let me know

Codecov Report

Merging #341 into master will increase coverage by 0.06%.
The diff coverage is 93.33%.

@@            Coverage Diff             @@
##           master     #341      +/-   ##
==========================================
+ Coverage   81.66%   81.73%   +0.06%
==========================================
  Files          38       38
  Lines        7032     7048      +16
==========================================
+ Hits         5743     5761      +18
+ Misses       1289     1287       -2

Impacted Files
Coverage Δ

src/blockdata/transaction.rs
93.9% <93.33%> (+0.42%)
:arrow_up:

Continue to review full report at Codecov.

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

Looks good to me. Will defer to others for concept ACKs


Fix hash code collisions

pass all test
time 16 sec
Ryzen 5 3GHZ 16GB RAM

Thx! This looks better now indeed. It's a bit slower (00:22.457) but correct now, so I've merged it. Thx!


Select Genre in Fragmentarium

 Select Genre in Fragmentarium

@jlaasonen
Quick Overview for PR
genre.ts
I used a tree structure for the nested genres genre.ts
(i parse the tree to create a list which creates a element for every node in the tree)
      ARCHIVAL
          |
    Administrative
    /         \
Lists     Multientry

=>
    [
        ["ARCHIVAL"],
        ["ARCHIVAL", "Administrative"],
        ["ARCHIVAL", "Administrative", Lists"],
        ["ARCHIVAL", "Administrative", Multientry"],
    ]

Each top genre ARCHIVAL and Canonical , e.g., are a tree (so multiple trees) which get converted to lists and so on.
Details.tsx
I used a nested <OverlayTrigger/> Component.

The user click the edit Button which opens a popup with <Select/>
If the user selects an options which is already a selected genre  a second popup (tooltip) ontop of the<Select>
component will appear notifiying the user that he already selected that option.

The genre tree stuff looks overly complicated, considering it only appears to be used to generate the options for the select. It would simpler just to have a list of the available genres in the same format as in the model.


Spike on electron.js for access to users file system

┆Issue Number: HCAB-392

Using the electron.js framework would allow the creation of a standalone client Data Browser app with direct access to the user's local file system thus allowing a more seamless file download experience.
Note: this sounds like a major undertaking and not every user would want an app installed on their system so we would probably still need to maintain the in-browser app.

no longer required


Add d.ts generation

Other aurelia repositories export their own d.ts file by using the babel-dts-generator plugin.
It would be great if the validation repository could do the same.

Going to see if I can get help on this from the team!!

Yes please add the d.ts file, typescript is a must.

Any updates on whether the next release will include the d.ts file? :)

@janvanderhaegen are you willing to accept PR's for this?

Willing to accept PR's for anything helpful!

@janvanderhaegen Here you have it #122

Closing as a duplicate of many others, first was #4
Contributions still needed on this just trying to help triage the issues by narrowing down the open ones
Duplicate of #4


Include all products in the supported versions list

Fixes #121

@lfrancke @siegfriedweber What do you think?


Add reviewdog tool to docs

I recently found a new tool that can run Rubocop on Github PRs: https://github.com/reviewdog/action-rubocop

Before submitting the PR make sure the following are checked:

[x] Wrote good commit messages.
[x] Commit message starts with [Fix #issue-number] (if the related issue exists).
[x] Feature branch is up-to-date with master (if not - rebase it).
[x] Squashed related commits together.
[x] Added tests.
[x] Added an entry to the Changelog if the new code introduces user-observable changes. See changelog entry format.
[x] The PR relates to only one subject with a clear title and description in grammatically correct, complete sentences.
[x] Run bundle exec rake default. It executes all tests and RuboCop for itself, and generates the documentation.

Thanks!


Changed the proposed nginx configuration to mimic Symfony's one

The proposed configuration solves this 404 error issue when trying to load the web profiler under nginx.

I'm really a newbe in using and configuring Nginx so if anyone has some tips feel free to share.

Good point @stof. I've added the 404 redirection for PHP files other than the front controller file name.

I'm no nginx expert, so I need validation from other devs.

@fabpot the config looks good, merge

Thanks for the feedback @mayeco

Thank you @mTorres


Do you have any ideas about the parameters created by png info?

First of all,  thanks for your great work!
by the way
Why is the image parameter returned by the png info module not complete, if I want to use the api call to generate the image, then the png info module does not return enough parameters, there are many parameters that are not returned

Oh hm, I'm not sure, it should show all parameters. Can you give me an example image that is causing you trouble?

Oh hm, I'm not sure, it should show all parameters. Can you give me an example image that is causing you trouble?

this format data is created by your function(select_source_file()):
{
    "prompt": "shoes on the ground, consistent background colour, natural shadow of shoes on the ground",
    "negative_prompt": "Negative prompt: Abnormal light and shadow on the ground",
    "Steps": "41",
    "Sampler": "Euler a",
    "CFG scale": "7",
    "Seed": "783177188",
    "Size": "1048x1400",
    "Model hash": "346e4b5a73",
    "Model": "realisticVisionV60B1_v60B1InpaintingVAE",
    "VAE hash": "63aeecb90f",
    "VAE": "vae-ft-mse-840000-ema-pruned.ckpt",
    "Denoising strength": "0.75",
    "Conditional mask weight": "1.0",
    "Mask blur": "6",
    "Controlnet 0": {
        "Module": "lineart_realistic",
        "Model": "control_v11p_sd15_lineart [43d4be0d]",
        "Weight": "1.45",
        "Resize Mode": "Crop and Resize",
        "Low Vram": "False",
        "Processor Res": "512",
        "Guidance Start": "0",
        "Guidance End": "1",
        "Pixel Perfect": "True",
        "Control Mode": "Balanced",
        "Save Detected Map": "True"
    },
    "Version": "v1.7.0"
}

but if I use api to use stable diffusion, I need more parameters, for example:
payload = {
        "prompt": promptList[0],
        "negative_prompt": promptList[1],
        "init_images": [img],
        "mask": mask,
        "resize_mode": 1,  # Resize mode: [Just resize, Crop and resize, Resize and fill, Just resize(latent upscale)]
        "mask_blur": 4,  # Mask blur: 0-64
        "inpainting_fill": 1,  # Masked content: [fill, original, latent noise, latent nothing]
        "inpaint_full_res": Inpaint_area,  # Inpaint area: [Whole picture(False), Only masked(True)]
        "sampler_name": Sampling_method,  # Sampling method
        "inpaint_full_res_padding": 32,  # Only masked padding, pixels
        "steps": Sampling_steps,  # Sampling steps
        "inpainting_mask_invert": 0,  # mask mode 0 inpaint masked, 1 inpaint inclusive masked
        "width": width,  # Resize to Width
        "height": height,  # Resize to Height
        "batch_size": 1,  # Batch count
        "batch_count": 1,  # Batch size
        "cfg_scale": 7,  # CFG Scale
        "denoising_strength": Denoising_strength,  # Denoising strength
        "seed": -1,
        "alwayson_scripts": {
            "ControlNet": {
                "args": [
                    {
                        "input_image": controlnet0_input,
                        "enabled": True,  # Enable tick
                        "module": controlnet0_module,  # Preprocessor
                        "model": controlnet0Key_para['model'],  # Model
                        "weight": controlnet0_weight,  # Control Weight
                        "guidance_start": 0.0,  # Starting Control Step
                        "guidance_end": 1.0,  # Ending Control Step
                        "processor_res": 512,
                        "control_mode": controlnet0_control_mode,  # Control Mode: [Balanced, My is m imp, C is m imp]
                        "resize_mode": 1,  # Resize Mode: [Just Resize, Crop and Resize, Resize and Fill]
                        "pixel_perfect": eval(controlnet0_pixel),
                    },
                    {
                        "input_image": controlnet1_input,
                        "enabled": True,
                        "module": controlnet1_module,  # Preprocessor
                        "model": controlnet1Key_para['model'],  # Model
                        "weight": controlnet1_weight,  # Control Weight
                        "guidance_start": 0.0,  # Starting Control Step
                        "guidance_end": 1.0,  # Ending Control Step
                        "processor_res": -1,
                        "control_mode": controlnet1_control_mode,
                        "resize_mode": 1,  # Resize Mode: [Just Resize, Crop and Resize, Resize and Fill]
                        "pixel_perfect": eval(controlnet1_pixel),
                    },
                    {
                        "input_image": controlnet2_input,
                        "enabled": True,
                        "module": controlnet2_module,  # Preprocessor
                        "model": controlnet2Key_para['model'],  # Model
                        "weight": controlnet2_weight,  # Control Weight
                        "guidance_start": 0.0,  # Starting Control Step
                        "guidance_end": 1.0,  # Ending Control Step
                        "processor_res": -1,
                        "control_mode": controlnet2_control_mode,
                        "resize_mode": 1,  # Resize Mode: [Just Resize, Crop and Resize, Resize and Fill]
                        "pixel_perfect": eval(controlnet2_pixel),
                    },
                    {
                        "enabled": False,  # Enable tick
                    }
                ]
            }
        }
    }

Initially I wanted to use the webui version to debug the best output parameters, then use your repository to get and format the parameters used for the images, and then migrate to the use of the api, but found that the parameters obtained from the images were not complete enough to call the api

The example you gave had 2 more controlnet images, so it's longer. But other than that, it's a different format. You'll have to use some code to change from one format to the other, and to fill the missing paremeters. Note that it's possible that some parameters are not saved to the image, and you have to infer these yourself, or they are simply lost with no way to retrieve them.

The api example you showed had 2 more controlnet images than the output example you showed, so it's much longer. But other than that, it's just a different format. You'll have to use some code to change from one format to the other, and to fill the missing paremeters. Note that it's possible that some parameters are not saved to the image, and you have to infer these yourself, or they are simply lost with no way to retrieve them.

Yes, I found that some parameters were not written into the picture, so those parameters were not parsed out. Thank you for your reply


Used assertXMLEqual() to improve robustness of PluginActionsTestCase.test_user_cant_edit_child_plugins_directly.

See failed build: https://travis-ci.org/divio/djangocms-text-ckeditor/jobs/284735340.

Coverage remained the same at 78.323% when pulling d29d2ee71a47dbd2d696841fd810bbb944140a88 on sir-sigurd:test-plugin into 4604b08ab8fed7d5521ae42cabf6973abe695e97 on divio:master.

Thanks!


Configurable global plan wrapper

Restore the global plan wrapper setting and make it configurable. Eventually we want to replace it with a combination of:

https://github.com/DiamondLightSource/dodal/issues/576
https://github.com/bluesky/ophyd-async/issues/314
But we need a working solution in the interim

@DiamondJoseph has convinced me not to do this for now, instead we are going to manually add @attach_data_session_metadata_decorator to all plans we want to use this for. This gives us our working interim solution.
The long-term solution is to sync the directory provider with the RunEngine and make detectors delay opening an HDF5 file until after a run starts, which is documented in these two issues:

https://github.com/DiamondLightSource/dodal/issues/576
https://github.com/bluesky/ophyd-async/issues/314

@DiamondJoseph and @keithralphs have all the plans we want wrapped been wrapped yet?

IIRC Keith has a copy of count that has type annotations, decorators on a branch for.... i22?

Yes we made the edits for these last Tuesday in readiness for when <a thing that Joseph told me but I've since forgotten> was completed. Hopefully, these changes were made on my laptop, or they may nave since been destroyed

I can confirm that I do have the code on my laptop and it was waiting for https://github.com/DiamondLightSource/dodal/pull/590 so once a release of dodal including this is made, I can push the change to i22_bluesky that depends on the release.


Expose heap size as a percentage

Allow user to fix the percentage of the memory allocated to the heap.
This PR fixes #93

@cassand Can you also create an issue for it and reference it in the PR description? Thanks!

Nice work!

@cassand very nice, and thanks for adding the test!!


The question list displayed in the personal center is missing a page break

https://answer.flashcat.cloud/questions/10010000000001653

fixed in v1.1.0


Add support for set :network_mode to allow host networking in containers

This lets you create host-networked containers for improved network performance and single-tenant docker hosts. The interaction with host_port is kind of weird but it seems to work just fine at least in newer dockers.

Looks good, with minor changes above.


add update of laser absorption to additivefoam app

The AdditiveFOAM app material property update was not updating the laser absorption based on the Mist files. This PR updates the app to follow a similar pattern as the laser absorption adjustment used in the 3DThesis app (implemented in #54).

Just curious, why the mixing of os.system and subprocess?

That's a problem throughout Myna due to my unfamiliarity with the subprocess module when I started developing. I think in general subprocess is more versatile, for example with the use here of capturing the output for parsing. May fix to make more stylistically uniform in the future.


0.7.0

0.7.0

Codecov Report

Merging #9 into master will increase coverage by 1.46%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master       #9      +/-   ##
==========================================
+ Coverage   96.37%   97.83%   +1.46%
==========================================
  Files          16       18       +2
  Lines         635      694      +59
==========================================
+ Hits          612      679      +67
+ Misses         23       15       -8

Flag
Coverage Δ

#ios
97.4% <98.18%> (+1.02%)
:arrow_up:

#macos
97.4% <98.18%> (+1.02%)
:arrow_up:

#tvos
97.69% <100%> (+1.31%)
:arrow_up:

Impacted Files
Coverage Δ

Sources/Operations/DelayOperation.swift
100% <ø> (ø)
:arrow_up:

Sources/Conditions/NegatedCondition.swift
100% <100%> (ø)
:arrow_up:

Sources/Conditions/OperationCondition.swift
100% <100%> (+55.55%)
:arrow_up:

Sources/Operation+Injection.swift
100% <100%> (ø)

Sources/AdvancedBlockOperation.swift
100% <100%> (ø)
:arrow_up:

Sources/Conditions/ExclusivityManager.swift
100% <100%> (ø)
:arrow_up:

Sources/AdvancedOperationError.swift
100% <100%> (ø)

Sources/GroupOperation.swift
95.91% <100%> (+2.04%)
:arrow_up:

Sources/AdvancedOperation.swift
99.23% <100%> (+0.42%)
:arrow_up:

...ces/Conditions/NoFailedDependenciesCondition.swift
100% <100%> (ø)
:arrow_up:

... and 5 more

Continue to review full report at Codecov.

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


How to turn cloud_cluster from segment_submap.cpp into standard PointNetVLAD input vector (4096-d)?

Thanks for your sharing of KITTI preprocessing code of PointNetVLAD. In the source issues of PointNetVLAD, you give some P-R Curves on KITTI. Could you talk about the method of transforming the data structure pcl::PointXYZL (specifically variable "cloud_cluster" in segment_submap.cpp) into standard PointNetVLAD input vector (4096-d)?

@kxhit Thanks a lot. I'll go ahead with the matlab code.


CJS support

Is your feature request related to how popovers work in general? No
Is your feature request related to how this polyfill works? Please describe.
My codebase only supports CJS packages while the polyfill is only bundled for ESM.
Describe the solution you'd like
Include CJS support in the package.json. esbuild seems to support it out of the box.
Describe alternatives you've considered
Not sure what other options there are.

@myasonik Which entrypoint are you currently trying to require that's failing? Would #224 fix your use case?


Fix #3278

This PR fixes #3278 where the canvas color was incorrectly being set during startup.

There is an option to add a test?

Sure, will do.


Microsoft Teams Apps Not Working in SharePointOnline

Target SharePoint environment
SharePoint Online
What SharePoint development model, framework, SDK or API is this about?
other (enter in the "Additional environment details" area below)
Developer environment
Windows
What browser(s) / client(s) have you tested

[ ] 💥 Internet Explorer
[X] 💥 Microsoft Edge
[ ] 💥 Google Chrome
[ ] 💥 FireFox
[ ] 💥 Safari
[ ] mobile (iOS/iPadOS)
[ ] mobile (Android)
[ ] not applicable
[ ] other (enter in the "Additional environment details" area below)

Additional environment details
No response
Describe the bug / error
This issue was first reported by twgolds in issue https://github.com/OfficeDev/microsoft-teams-library-js/issues/1851. The Teams developer team by ChetanSharma-msft answered that this should be reported to the SharePoint Team instead so I hopw you can help.
We have created a Teams Application (not using spfx) and need this to be visible in SharePoint page.
The Teams apps have been loaded into the SPO and then we've created Pages based on these applications.
When opening a page that has been created using the Teams App, we simply get a blank page, in the console is an error message:
"Uncaught (in promise) SharePoint context is not initialized" -this is occurring within Microsoft code.
Steps to reproduce
Hi,
The steps are quite simple, but many.
Take any Teams App. Confirm that it runs within Teams.
Modify the manifest.json to ensure it contains the "supportedSharePointHosts" attribute, with values "sharePointFullPage"
"configurableTabs": [
{
"configurationUrl": "https://myhost.com/config",
"canUpdateConfiguration": true,
"scopes": [
"team",
"groupchat"
]
, "supportedSharePointHosts": ["sharePointFullPage", "sharePointWebPart"],
"sharePointPreviewImage": "https://myhost.com/img/sharepoint-teams-app.png"
}
Go to SharePointOnline admin center.
Go to the "App Section"
Upload your Teams Manifest ( the .zip file, not just the manifest.json )
Deploy the app ( SharePoint should prompt you automatically to do so )
Go to a SharePoint Site within your SharePoint tenant
Open a "Site Page"
Click the "Gear" on the top right near your profile picture
Select "Add a Page"
On the "Pages" window that opens up, select the "Apps" tab. Your new App should be listed.
Select your App to create a new "Full Paged App" page within SharePoint.
Expected behavior
A blank page in SharePoint instead of the app, and error message in console log

Any update on this issue?


Init fails with BadRequest when run against Hygraph (GraphCMS) endpoint

Is there an existing issue for this?

[X] I have searched the existing issues

Product
Strawberry Shake
Describe the bug
Hi there, I am brandnew to StrawberryShake and I am trying to get my first project to work. Unfortunately, I am struggeling with the init process. I setup a backend in Hygraph (formerly known as GraphCMS) and installed the StrawberryShake tools. Now I want to issue the init command (dotnet dotnet-graphql init ) but I receive a Bad Request (400) response: "error HTTP_ERROR: Response status code does not indicate success: 400 (Bad Request)."
Hygraph offers multiple endpoints: ContentAPI, High Performance Content API, Asset Upload API, Management API). What I need is the ContentAPI and the Asset Upload API. When I run the init command on either of these I am getting the above result. When I run the init command with the Management API endpoint, it works.
I contacted Hygraph support and they checked their logs and saw the issued query (see steps to reproduce) and this query works. I also entered this query directly in their GraphQL playground and I got a valid result.
It looks to me as if the processing of the response leads to the error. I can provide you with the endpoint in a private message if that helps you analyze the problem.
I hope you can help to solve this problem.
Steps to reproduce
Run dotnet dotnet-graphql init <url to graphql> and you'll get the Bad Request.
I can provide you with the endpoint URL in a private message.
Relevant log output
error HTTP_ERROR: Response status code does not indicate success: 400 (Bad Request).

Additional Context?
This is the query that the Hygraph support provided me with. It was issued by the init command.
query IntrospectionQuery {
  __schema {
    queryType {
      name
    }
    mutationType {
      name
    }
    types {
      ...FullType
    }
    directives {
      name
      description
      locations
      args {
        ...InputValue
      }
    }
  }
}
fragment FullType on __Type {
  kind
  name
  description
  fields(includeDeprecated: true) {
    name
    description
    args {
      ...InputValue
    }
    type {
      ...TypeRef
    }
    isDeprecated
    deprecationReason
  }
  inputFields {
    ...InputValue
  }
  interfaces {
    ...TypeRef
  }
  enumValues(includeDeprecated: true) {
    name
    description
    isDeprecated
    deprecationReason
  }
  possibleTypes {
    ...TypeRef
  }
}
fragment InputValue on __InputValue {
  name
  description
  type {
    ...TypeRef
  }
  defaultValue
}
fragment TypeRef on __Type {
  kind
  name
  ofType {
    kind
    name
    ofType {
      kind
      name
      ofType {
        kind
        name
        ofType {
          kind
          name
          ofType {
            kind
            name
            ofType {
              kind
              name
              ofType {
                kind
                name
              }
            }
          }
        }
      }
    }
  }
}

Version
13.5.1

Is there maybe an AccessToken or something similar being sent with the query through the playground?
The HTTP status code indicates that the request reached and was rejected at the server, so it's probably not an error caused by processing the response.
If you can get a hold of the schema of your server some other way, you can also init Strawberry Shake with that as a workaround for now:
dotnet graphql init -f ./path/to/schema.graphql

I issued the introspection query through the playground to receive the schema information and save that to a file. Then I followed your recommendation and issued the init command with "-f ./path/to/schema.graphql". That seemed to have worked.
I added a query by creating a Query1.graphql file and built the solution. Now I am getting these errors:
0>------- Started building project: StrawberryShakeDemo
dotnet --version
dotnet "C:\Users\Dirk\.nuget\packages\strawberryshake.server\13.5.1\build\..\tools\net7\dotnet-graphql.dll" generate "C:\tmp\StrawberryShakeDemo\StrawberryShakeDemo" -o "C:\tmp\StrawberryShakeDemo\StrawberryShakeDemo\obj\Debug\net7.0\berry" -n StrawberryShakeDemo -a md5 -t
Generate C# Clients started.
Generate StrawberryShakeDemo started.
Generate StrawberryShakeDemo completed in 28 ms
0>EXEC(2,1): Error SS0001 : Expected a `Name`-token, but found a `String`-token.
0>EXEC(2,1): Error SS0001 : Expected a `Name`-token, but found a `String`-token.
0>StrawberryShake.Server.targets(79,5): Error MSB3073 : Der Befehl "dotnet "C:\Users\Dirk\.nuget\packages\strawberryshake.server\13.5.1\build\..\tools\net7\dotnet-graphql.dll" generate "C:\tmp\StrawberryShakeDemo\StrawberryShakeDemo" -o "C:\tmp\StrawberryShakeDemo\StrawberryShakeDemo\obj\Debug\net7.0\berry" -n StrawberryShakeDemo -a md5 -t" wurde mit dem Code 1 beendet.
0>------- Finished building project: StrawberryShakeDemo. Succeeded: False. Errors: 3. Warnings: 0
Build completed in 00:00:01.526

Any ideas what is going wrong?

I also got more feedback from the Hygraph people. I re-issued the init command and now they say that the query is incorrect. They issued query was:
query IntrospectionQuery {
schema: __schema {
queryType {
name
}
mutationType {
name
}
types {
...FullType
}
directives {
name
description
args {
...InputValue
}
onField
onFragment
onOperation
}
}
}
fragment FullType on __Type {
kind
name
description
fields(includeDeprecated: true) {
name
description
args {
...InputValue
}
type {
...TypeRef
}
isDeprecated
deprecationReason
}
inputFields {
...InputValue
}
interfaces {
...TypeRef
}
enumValues(includeDeprecated: true) {
name
description
isDeprecated
deprecationReason
}
possibleTypes {
...TypeRef
}
}
fragment InputValue on __InputValue {
name
description
type {
...TypeRef
}
defaultValue
}
fragment TypeRef on __Type {
kind
name
ofType {
kind
name
ofType {
kind
name
ofType {
kind
name
ofType {
kind
name
ofType {
kind
name
}
}
}
}
}
}

The error message that lead to the 400 Bad Request was:
{
"message": "[line: 1] field 'onField' is not defined in '__Directive'"
}

This is in this part of the query:
}
onField
onFragment
onOperation
}
}

Its not incorrect but for very old GraphQL servers. locations was introduced later in the GraphQL spec cycle.
However,
try out 13.6.0-rc.0 which has a new introspection tool which should detect schema capabilities better. I close this issue as I am pretty sure it works with the new version. If it does not work reopen it with a comment.


default binsize for triangular_index() and tinn() should be 7.8125 instead of 7.815

in triangular_index() and tinn(), the default value for binsize was set to 7.815, however the correct value should be 7.8125(1000/128).

You're absolutely right. I had the correct bin size of 7.815 in the docstring, but had the typo in the input parameters. I just updated the file and fixed that error.
Many thanks for pointing it out!


#1: add support for horses in database initialization

Added value type 7, Horse.

/paulo - can you please review this pull request?

/paulo - can you check now?


Ruby update 3.3.2 broke our workflow

Hello,
we have in our project Wire a ruby version 3.3.1 specified and we use your image like:
runs-on: ghcr.io/cirruslabs/macos-runner:sonoma
The last update (on Sunday night?) broke all our workflows and stopped teams from being able to continue to work with the error:

rbenv: version `3.3.1' is not installed (set by /*****/wire-ios/.ruby-version)

Is there any chance how to avoid these behaviour from your side? E.g. could you provide checksums of your images that we can pin to and update only if we want to? Or support multiple ruby versions to have some time to migrate manually?

Thanks for pointing to that, I didn't know this action. Will try it and later update this issue :)

Thanks for your help, it works well!


Over Quota

Seems firepoker.io is over quota, not sure if you were aware of this issue:
FIREBASE WARNING: The Firebase database 'firepokerio' has exceeded its quota limit and has been temporarily disabled. See https://firebase.google.com/support/faq/#database-overquota for more information. (https://firepokerio.firebaseio.com)

Thanks @dcunited08 going to take a look at it

@dcunited08 seems the issue with quota as gone away for now because the billing period reset at the end of the month.

Works for me, thanks 👍


Out of bounds error when using a path shortcut after undo

On a path tag that already has some points on it:

Create a new point
Undo that point using Ctrl-Z
Create a new point using a keyboard shortcut such as "M" or "L"
You should get an out of bounds error in AttributePath

I'm not managing to reproduce it in main, can you post a video?

I reproduced it now


Clarify "Free Trial!"

Based on some of the store reviews, users seem to think the app is a paid product. We should clarify what the distinction between the dashboard and app and what's paid.

We already payed for the machine that doesn't work/perform as desired and arrived 6 months later, and now we have to pay more for an app? Really Nebra, be ashamed!

Possibly merge into: https://github.com/NebraLtd/maker-starter-app/issues/152
Acceptance criteria

When link is clicked, it opens the embedded Dashboard sign up page

@marvinmarnold your input is required here

@Andrewsopoku, I just updated the text in the AC

@marvinmarnold Seen thanks. But is the dashboard home page not more appropriate than the sign up page? A user may already be signed in or have an account.

Published v1.0.5 to both stores. Waiting on approval.


update logger link

Coverage remained the same at 38.281% when pulling 9bc090cdf4ea471989ecf3f7fed5460164fcc0b3 on devghosh:master into 6d7bcb2b035fbf8337ce5c3608021832d0010f57 on jabong:master.


Agent Weave actor does not crash gracefully

Consider the following error case, where the kontena-ipam returns a HTTP 400 error on a conflict retry timeout:
I, [2016-11-23T15:09:08.847558 #1]  INFO -- Kontena::ServicePods::Creator: creating service: null-redis5-70
E, [2016-11-23T15:09:10.693540 #1] ERROR -- : Actor crashed!
Kontena::NetworkAdapters::IpamError: Bad Request
	/app/lib/kontena/network_adapters/ipam_client.rb:121:in `handle_error_response'
	/app/lib/kontena/network_adapters/ipam_client.rb:62:in `rescue in reserve_address'
	/app/lib/kontena/network_adapters/ipam_client.rb:51:in `reserve_address'
	/app/lib/kontena/network_adapters/weave.rb:151:in `modify_create_opts'
	/usr/lib/ruby/gems/2.3.0/gems/celluloid-0.17.3/lib/celluloid/calls.rb:28:in `public_send'
	/usr/lib/ruby/gems/2.3.0/gems/celluloid-0.17.3/lib/celluloid/calls.rb:28:in `dispatch'
	/usr/lib/ruby/gems/2.3.0/gems/celluloid-0.17.3/lib/celluloid/call/sync.rb:16:in `dispatch'
	/usr/lib/ruby/gems/2.3.0/gems/celluloid-0.17.3/lib/celluloid/cell.rb:50:in `block in dispatch'
	/usr/lib/ruby/gems/2.3.0/gems/celluloid-0.17.3/lib/celluloid/cell.rb:76:in `block in task'
	/usr/lib/ruby/gems/2.3.0/gems/celluloid-0.17.3/lib/celluloid/actor.rb:339:in `block in task'
	/usr/lib/ruby/gems/2.3.0/gems/celluloid-0.17.3/lib/celluloid/task.rb:44:in `block in initialize'
	/usr/lib/ruby/gems/2.3.0/gems/celluloid-0.17.3/lib/celluloid/task/fibered.rb:14:in `block in create'
E, [2016-11-23T15:09:10.698736 #1] ERROR -- Kontena::ServicePods::Creator: Kontena::NetworkAdapters::IpamError: Bad Request
E, [2016-11-23T15:09:10.703886 #1] ERROR -- Kontena::ServicePods::Creator: /app/lib/kontena/network_adapters/ipam_client.rb:121:in `handle_error_response'

The exception raised by the Actor[:network_adapter].modify_create_opts(...) call crashes the Weave actor. This leads to a cascade of further failures, until the Celluloid supervisor manages to restart the actor and it re-initializes:
E, [2016-11-23T15:09:10.705245 #1] ERROR -- Kontena::Workers::EventWorker: Celluloid::DeadActorError: attempted to call a dead actor: adapter_image?

However, the re-initialization after the actor crash causes it to lose any state in the form of instance variables, which complicates recovery for any state formed by any one-time startup Celluloid signals. The re-initializing actor after a crash will never receive any of the one-time Celluloid signals sent during the normal startup process.
See #1392 for one example of this issue, concerning the Weave@ipam_running state. The Weave actor's ipam_ready? relies on the @ipam_running = true state set on the Celluloid ipam:start event. However, this is only sent once during the agent startup, which means that a crashing Weave actor will re-initialize the @ipam_running = false state and remain stuck there. This then leads to complete agent failure in the form of WeaveHelper#wait_network_ready? timing out, because the ipam_ready? never recovers:
I, [2016-11-23T15:09:12.361498 #1] INFO -- Kontena::ServicePods::Creator: creating service: null-redis4-73
...
E, [2016-11-23T15:14:12.374291 #1] ERROR -- Kontena::ServicePods::Creator: Timeout::Error: Timeout while: waiting for all network components running
E, [2016-11-23T15:14:12.374713 #1] ERROR -- Kontena::ServicePods::Creator: /app/lib/kontena/helpers/wait_helper.rb:39:in `wait!'
/app/lib/kontena/helpers/weave_helper.rb:22:in `wait_network_ready?'
/app/lib/kontena/service_pods/creator.rb:32:in `perform'
/app/lib/kontena/service_pods/creator.rb:70:in `block in perform_async'
/usr/lib/ruby/gems/2.3.0/gems/celluloid-0.17.3/lib/celluloid/calls.rb:28:in `public_send'
/usr/lib/ruby/gems/2.3.0/gems/celluloid-0.17.3/lib/celluloid/calls.rb:28:in `dispatch'
/usr/lib/ruby/gems/2.3.0/gems/celluloid-0.17.3/lib/celluloid/call/sync.rb:16:in `dispatch'
/usr/lib/ruby/gems/2.3.0/gems/celluloid-0.17.3/lib/celluloid/future.rb:18:in `block in new'
/usr/lib/ruby/gems/2.3.0/gems/celluloid-essentials-0.20.5/lib/celluloid/internals/thread_handle.rb:14:in `block in initialize'
/usr/lib/ruby/gems/2.3.0/gems/celluloid-0.17.3/lib/celluloid/actor/system.rb:78:in `block in get_thread'
/usr/lib/ruby/gems/2.3.0/gems/celluloid-0.17.3/lib/celluloid/group/spawner.rb:50:in `block in instantiate

Three approaches to a solution:

Make sure the Weave actor never crashes by trapping all possible exceptions in every method
Make the Actor state more robust by both querying the current state during initialization, and then updating it during any events
Remove the Actor state, and query the state directly (e.g. Kontena::Launchers::IpamPlugin#running?)

This issue is about the Actor design in general, not the specific ipam_running? issue fixed by #1392.

Similar happens for the Kontena::NetworkAdapters::IpamCleaner` actor:
kontena-agent | D, [2016-11-24T12:24:11.111676 #1] DEBUG -- NetworkAdapters::IpamClient: Request GET /KontenaIPAM.Cleanup: 500 Internal Server Error: {"Error":"Failed to open TCP connection to localhost:2379 (Connection refused - connect(2) for \"localhost\" port 2379)"}
kontena-agent | E, [2016-11-24T12:24:11.112490 #1] ERROR -- : Actor crashed!
kontena-agent | Kontena::NetworkAdapters::IpamError: Failed to open TCP connection to localhost:2379 (Connection refused - connect(2) for "localhost" port 2379)
kontena-agent | 	/app/lib/kontena/network_adapters/ipam_client.rb:117:in `handle_error_response'
kontena-agent | 	/app/lib/kontena/network_adapters/ipam_client.rb:94:in `rescue in cleanup_index'
kontena-agent | 	/app/lib/kontena/network_adapters/ipam_client.rb:91:in `cleanup_index'
kontena-agent | 	/app/lib/kontena/network_adapters/ipam_cleaner.rb:28:in `block in cleanup_ipam'
kontena-agent | 	/app/lib/kontena/network_adapters/ipam_cleaner.rb:25:in `loop'
kontena-agent | 	/app/lib/kontena/network_adapters/ipam_cleaner.rb:25:in `cleanup_ipam'
kontena-agent | 	/usr/lib/ruby/gems/2.3.0/gems/celluloid-0.17.3/lib/celluloid/calls.rb:28:in `public_send'
kontena-agent | 	/usr/lib/ruby/gems/2.3.0/gems/celluloid-0.17.3/lib/celluloid/calls.rb:28:in `dispatch'
kontena-agent | 	/usr/lib/ruby/gems/2.3.0/gems/celluloid-0.17.3/lib/celluloid/call/async.rb:7:in `dispatch'
kontena-agent | 	/usr/lib/ruby/gems/2.3.0/gems/celluloid-0.17.3/lib/celluloid/cell.rb:50:in `block in dispatch'
kontena-agent | 	/usr/lib/ruby/gems/2.3.0/gems/celluloid-0.17.3/lib/celluloid/cell.rb:76:in `block in task'
kontena-agent | 	/usr/lib/ruby/gems/2.3.0/gems/celluloid-0.17.3/lib/celluloid/actor.rb:339:in `block in task'
kontena-agent | 	/usr/lib/ruby/gems/2.3.0/gems/celluloid-0.17.3/lib/celluloid/task.rb:44:in `block in initialize'
kontena-agent | 	/usr/lib/ruby/gems/2.3.0/gems/celluloid-0.17.3/lib/celluloid/task/fibered.rb:14:in `block in create'
kontena-agent | I, [2016-11-24T12:24:11.136312 #1]  INFO -- Kontena::NetworkAdapters::IpamCleaner: initialized

It will no longer perform any IPAM cleanups.

I wonder if this is related:
kontena-agent | E, [2016-12-27T13:17:00.242480 #1] ERROR -- Kontena::ServicePods::Creator: Timeout::Error: Timeout while: waiting for all network components running
kontena-agent | E, [2016-12-27T13:17:00.242659 #1] ERROR -- Kontena::ServicePods::Creator: /app/lib/kontena/helpers/wait_helper.rb:39:in `wait!'
kontena-agent | /app/lib/kontena/helpers/weave_helper.rb:22:in `wait_network_ready?'
kontena-agent | /app/lib/kontena/service_pods/creator.rb:32:in `perform'
kontena-agent | /app/lib/kontena/service_pods/creator.rb:70:in `block in perform_async'
kontena-agent | /usr/lib/ruby/gems/2.3.0/gems/celluloid-0.17.3/lib/celluloid/calls.rb:28:in `public_send'
kontena-agent | /usr/lib/ruby/gems/2.3.0/gems/celluloid-0.17.3/lib/celluloid/calls.rb:28:in `dispatch'
kontena-agent | /usr/lib/ruby/gems/2.3.0/gems/celluloid-0.17.3/lib/celluloid/call/sync.rb:16:in `dispatch'
kontena-agent | /usr/lib/ruby/gems/2.3.0/gems/celluloid-0.17.3/lib/celluloid/future.rb:18:in `block in new'
kontena-agent | /usr/lib/ruby/gems/2.3.0/gems/celluloid-essentials-0.20.5/lib/celluloid/internals/thread_handle.rb:14:in `block in initialize'
kontena-agent | /usr/lib/ruby/gems/2.3.0/gems/celluloid-0.17.3/lib/celluloid/actor/system.rb:78:in `block in get_thread'
kontena-agent | /usr/lib/ruby/gems/2.3.0/gems/celluloid-0.17.3/lib/celluloid/group/spawner.rb:50:in `block in instantiate'
kontena-agent | E, [2016-12-27T13:18:48.801832 #1] ERROR -- Kontena::NetworkAdapters::IpamCleaner: Excon::Error::Socket: Connection refused - connect(2) for <IP_ADDRESS>:2275 (Errno::ECONNREFUSED)
kontena-agent | E, [2016-12-27T13:18:50.041818 #1] ERROR -- Kontena::NetworkAdapters::IpamCleaner: Excon::Error::Socket: Connection refused - connect(2) for <IP_ADDRESS>:2275 (Errno::ECONNREFUSED)

I wonder if this is related:

Not, this presumably means that the grid's etcd cluster is broken, and the kontena-ipam is unable to operate. This may be caused by offline initial nodes, or weave issues. Ensure that all of your grid's initial nodes are up and healthy.


De-duplicate indentations in JSX Texts

Fixes #20766 - Some of the interesting notes are in https://github.com/orta/TypeScript/pull/1

@typescript-bot cherry-pick this to branchname release-3.8

@typescript-bot cherry-pick this to release-3.8

@typescript-bot cherry-pick this to release-3.8

@typescript-bot cherry-pick this to release-3.8 and LKG

Thanks, was just coming to do that

Woah, hold up, this thing doesn't make PRs anymore @weswigham?

Uhhh, that's news to me, especially since I had it open a PR (https://github.com/microsoft/TypeScript/pull/36644) just the other day after it was updated.

I think I'm being lied to and that @orta manually cherry-picked it, since the cherry-pick script in this branch is out of date :P (y'know, since the last build for this branch is a failure)


tgpt: init at 1.6.11

Description of changes
ChatGPT in terminal without needing API keys
https://github.com/aandrew-me/tgpt
Fixes #239583

Things done

Built on platform(s)

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

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

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

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

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

[x] Fits CONTRIBUTING.md.


Normalize actress names

When an actress changes their name, it tends to break the existing links between the actress in the media library.
To that end, JAVLibrary and a few select other scrapers provide actress aliases alongside the actress' new name.
If possible, add actress aliases to scraper output and do a comparative reference to the jvThumbs.csv actress file to determine if one of the actress' aliases is already a primary actress. If so, convert the actress name to the name in the thumb csv.
EXAMPLE
In jvThumbs.csv -> Amami Kokoro is a primary name without any aliases
On JAVLibrary
Current Name: Fukada Eimi
Alias: Amami Kokoro
When aggregating metadata, convert Fukada Eimi -> Amami Kokoro automatically due to her name already existing the thumb csv.

If "sort.metadata.nfo.preferactressalias": true

Data retrieval (if JAVLibrary is included)
Aggregate data
2a. Perform all thumbcsv functions if applicable (retrieve thumbnail, replace with thumbcsv alias)
2b. Replace original actress names with the last alias retrieved from JAVLibrary (the oldest alias)
Output aggregated data

Example:
(Javinizer -Find GUN-749 -Javlibrary).Actress

LastName      : Akira
FirstName     : Eri
JapaneseName  : 晶エリー
EnglishAlias  : {@{LastName=Oosawa; FirstName=Yuka; JapaneseName=}, @{LastName=Arai; FirstName=Eri; JapaneseName=}}
JapaneseAlias : {@{LastName=; FirstName=; JapaneseName=大沢佑香}, @{LastName=; FirstName=; JapaneseName=新井エリー}}
ThumbUrl      :

LastName      : Ooura
FirstName     : Manami
JapaneseName  : 大浦真奈美
EnglishAlias  :
JapaneseAlias :
ThumbUrl      :

LastName      : Aimi
FirstName     : Rika
JapaneseName  : 逢見リカ
EnglishAlias  :
JapaneseAlias :
ThumbUrl      :

LastName      : Akari
FirstName     : Miku
JapaneseName  : あかり美来
EnglishAlias  : {@{LastName=Reiwa; FirstName=Rei; JapaneseName=}, @{LastName=Yuuka; FirstName=Rin; JapaneseName=}}
JapaneseAlias : {@{LastName=; FirstName=; JapaneseName=令和れい}, @{LastName=; FirstName=; JapaneseName=ゆうか凛}}
ThumbUrl      :

LastName      : Senshu
FirstName     : China
JapaneseName  : 千種ちな
EnglishAlias  : {@{LastName=Katahira; FirstName=Yurina; JapaneseName=}, @{LastName=Suzuki; FirstName=Chihiro; JapaneseName=}}
JapaneseAlias : {@{LastName=; FirstName=; JapaneseName=片平ゆりな}, @{LastName=; FirstName=; JapaneseName=鈴木ちひろ}}
ThumbUrl      :

LastName      : Hitomi
FirstName     : Ai
JapaneseName  : ひとみ愛
EnglishAlias  :
JapaneseAlias :
ThumbUrl      :

All names will be converted to the oldest alias.
e.g. for Akari Miku, the name is converted to => Yuuka Rin
(Javinizer -Find GUN-749 -Javlibrary -Aggregated -Actress) | Select LastName, FirstName, JapaneseName, ThumbUrl | Format-Table

LastName FirstName JapaneseName ThumbUrl
-------- --------- ------------ --------
Arai     Eri       新井エリー   https://pics.r18.com/mono/actjpgs/oosawa_yuka2.jpg
Oura     Manami    大浦真奈美   https://pics.r18.com/mono/actjpgs/ooura_manami.jpg
Omi      Rika      逢見リカ     https://pics.r18.com/mono/actjpgs/aimi_rika.jpg
Yuuka    Rin       ゆうか凛     https://pics.r18.com/mono/actjpgs/akari_miku.jpg
Suzuki   Chihiro   鈴木ちひろ
Hitomi   Ai        ひとみ愛


Fix color of layer button

Fixes #332
I have using color use on locate fab.
This regression has been introduced with bump of material library -> new version has update color of background.
I don't know if green is the best color for layer fab?
Maybe use same color has search bar?
Use @null like on search bar?

Thanks!


Crash when a DepthCloud plugin is loaded from a config file

Crash when a DepthCloud is loaded from a file
If you try to load and config file with an active DepthCloud plugin and the publishers are active too, there is a reproducible crash

In particular the segmentation fault is happening here
The MessageFilter is configured here https://github.com/ros2/rviz/blob/8f2e17e441399974ebd465a2d2ef0a3529f57f23/rviz_default_plugins/src/rviz_default_plugins/displays/depth_cloud/depth_cloud_display.cpp#L306-L312
If I remove this line
depthmap_tf_filter_->connectInput(*depthmap_sub_);

Then the crash is not happening I tried to debug with gdb but I didn't get any idea why this is happening.
@clalancette any thoughts?

Fix https://github.com/ros2/rviz/pull/1133

Backported to Humble and Iron

https://github.com/ros2/rviz/commit/3471ac5d16d6c42b422c7c3a784c1c1daf63ca8c
https://github.com/ros2/rviz/commit/49196e6fbdaa9465ec48c0df131a693188853d8d


Submission Request, pwgen

Hello Guys, home I'm doing this right, I submit for your review the following "Function" to be added to the store both armhf and x86_64
{
  "title": "Password Generator",
  "description": "Basic implementation of the known linux 'pwgen' command, for OpenFaas, armhf",
  "image": "playgali/faas_pwgen:latest-armhf",
  "name": "pwgen",
  "fprocess": "xargs pwgen -s",
  "network": "func_functions",
  "repo_url": "https://github.com/playgali/faas_pwgen",
  "labels": {
    "com.openfaas.ui.ext": "txt"
  },
  "environment": {
    "write_timeout": "10"
  }
}

and the other one
{
  "title": "Password Generator",
  "description": "Basic implementation of the known linux 'pwgen' command, for OpenFaas",
  "image": "playgali/faas_pwgen:latest",
  "name": "pwgen",
  "fprocess": "xargs pwgen -s",
  "network": "func_functions",
  "repo_url": "https://github.com/playgali/faas_pwgen",
  "labels": {
    "com.openfaas.ui.ext": "txt"
  },
  "environment": {
    "write_timeout": "10"
  }
}

Thank you for your time

@alexellis I tested the function. WDYT? It's good to have.

Looks fine to me, but can I ask that you re-create the GitHub repo on GitHub and then transfer it to the faas-and-furious repo? We're trying to maintain all the store images in one place so we can move them over to our own CI in time.

Should I create the repo on github? or was that message for @iyovcheva ?

@playgali I think it was to you if you're fine with migrating your code to GitHub

It is done friends!!, The repos are now on GitHub

Great.. can you transfer ownership of the repo to me? alexellis. I'll then move it to faas-and-furious

its done, you probably have a better base image for all functions, so you might have to edit it a little bit

Base image is probably not needed.. it looked like we just needed the watchdog and a single package from apk?

thats right, its just a basic example I used for a presentation back in April


feat: add steps to update stable formula in publish workflow

Signed-off-by: Harikrishnan Balagopal<EMAIL_ADDRESS>

related https://github.com/konveyor/move2kube-website/pull/84


make singleton gp args required

Make singleton groundedness pro eval inputs required.  Them being optional POST-conversation overload refactor is a minor bug. I also re-recorded all tests with groundedness in their name to be safe.

duplicate


how to handle typescript issue

Hi,
Maybe someone met this before:

I really like this plugin comparing to the className, but as long as I started to use it together with typescript - I see this message.
Maybe there are known ways to fix it?
Regards,

@PavelPolyakov did you solve it?

@bySabi no, at the end I started to use className and other pure react properties which are available out of the box.

is a shame.
I really like to copy and paste HTML with class attrs :-)

@PavelPolyakov In the end I could solve it by adding the definition of the class attribute to the React definitions with:
declare module 'react' {
  interface HTMLAttributes<T> extends AriaAttributes, DOMAttributes<T> {
    // extends React's HTMLAttributes
    class?: string;
  }
}

@tkrotoff maybe this is useful to you too. Related to https://github.com/Microsoft/TypeScript/issues/9327

and to put in the typings folder:
import "react";

declare module "react" {
  interface HTMLAttributes<T> extends AriaAttributes, DOMAttributes<T> {
    // extends React's HTMLAttributes
    class?: string;
  }
}

Tested with a next.js based project