New launch parameters

Version 1.0 will add a few new options (see https://store.steampowered.com/news/app/1621690/view/4247544173385794673) which should be available as new launch parameters. These parameters should be set via the environment variables.
Unfortunately, the README of the dedicated server was not updated yet. I took a short view into the source using dnSpy. (File Pug.Base.dll)
[Flags]
public enum WorldMode
{
    Undefined = -1,
    Normal = 0,
    Hard = 1,
    Creative = 2,
    Casual = 4,
    Classic = 5
}

public enum WorldGenerationSettingType
{
    Chaos,
    OreDensity,
    Tunnels,
    Chambers,
    Rivers,
    Lakes,
    Pits,
    CeilingHoles
}

public enum WorldGenerationSettingLevel
{
    Off,
    Low,
    Normal,
    High,
    Extreme
}

I will try to figure out how the parameters are supplied to the dedicated server and add this to a pull request.
May we have luck, and the README will be updated tomorrow with the full 1.0 release. Otherwise, I will dig around.

Short update:
Source Pug.Other.dll class CommandLineArgs
  public const string kPressDemo = "-pdemo";
  public const string kConsumerDemo = "-cdemo";
  public const string kMarketingBuild = "-marketing";
  public const string kCsBackend = "-csbackend";
  public const string kSteamPlaytest = "-playtest";
  public const string kSteamDemo = "-steamdemo";
  public const string kAllowNoSteam = "-allownosteam";
  public const string kNonPlayable = "-nonplayable";
  public const string kNoRgb = "-norgb";
  public const string kExtraChecks = "-extrachecks";
  public const string kWindowScale = "-windowscale";
  public const string kSeason = "-season";
  public const string kDisableAutosave = "-disableautosave";
  public const string kVersionSuffix = "-versionsuffix";
  public const string kServerConfig = "-serverconfig";
  public const string kServerWorldId = "-world";
  public const string kServerWorldName = "-worldname";
  public const string kServerWorldSeed = "-worldseed";
  public const string kServerGameId = "-gameid";
  public const string kServerDataPath = "-datapath";
  public const string kServerMaxPlayers = "-maxplayers";
  public const string kServerWorldMode = "-worldmode";
  public const string kServerSeason = "-season";
  public const string kServerIp = "-ip";
  public const string kServerPort = "-port";
  public const string kExtraLog = "-extralog";
  public const string kNoNetwork = "-nonetwork";
  public const string kSafeMode = "-safemode";
  public const string kConfDir = "-confdir";
  public const string kWaitFor = "-waitfor";
  public const string kScriptsOnly = "-scriptsonly";
  public const string kkScriptDebugging = "-scriptdebugging";
  public const string kPSRegion = "-psregion";
  public const string kPlayFabCustomId = "-playfabcustomid";
  public const string kPlayFabPartyId = "-playfabpartyid";
  public const string kBenchmark = "-benchmark";
  public const string kQuitAfterBenchmark = "-benchmark-quit";
  public const string kBenchmarkOutputBasePath = "-benchmark-output-base-path";
  public const string kForceBenchmarkOptionEnabled = "-forceBenchmarkOptionEnabled";
  public const string kEnableSwitchLinkTimeOptimization = "-enableSwitchLinkTimeOptimization";
  public const string kEnableSwitchRomCompression = "-enableSwitchRomCompression";
  public const string kUseIngameInviteMenu = "-useIngameInviteMenu";
  public const string kDisableSentry = "-disableSentry";
  public const string kDisableBurst = "-disableBurst";
  public const string kNetworkDebug = "-networkDebug";
  public const string kOnScreenDebug = "-onScreenDebug";
  public const string kCreatePatch = "-createPatch";
  public const string kPatchReferencePath1 = "-patchReferencePath1";
  public const string kPatchReferencePath2 = "-patchReferencePath2"

Currently there are no launch parameters available. The only way to use the parameters is to generate a new world on the Core Keeper client and transfer the world file to the dedicated server.
I opened a request (Dedicated Server - Launch parameter for WorldGenerationSettingType)[https://discord.com/channels/851842678340845600/1278234489985830984] on the official Core Keeper Discord server.
I will keep you updated.

Update <IP_ADDRESS> added new launch parameters 😁

Updated dedicated server README with instructions for creating a world with custom world generation parameters.

https://store.steampowered.com/news/app/1621690/view/4580811814109976003?l=english

@arguser Thank you for the information
This is not what I expected 🙁
I will take a look later. May this ist only a JSON file which can be generated with little effort

Just created a worldgenparams file. It is a JSON file but pretty complex.
{
    "globalSeed":<PHONE_NUMBER>,
    "worldScale": 1.0,
    "biomeChaos": 0.0,
    "ring1Size": 150.0,
    "ring2Size": 400.0,
    "ring3Size": 1170.0,
    "ring4Size": 1350.0,
    "ring1Chaos": 0.0,
    "ring2Chaos": 0.0,
    "ring3Chaos": 0.0,
    "ring4Chaos": 0.0,
    "dirt": {
        "ResourceCount": 2,
        "resourceDistribution": {
            "x": 0.899999976158142,
            "y": 0.1440060287714,
            "z": 0.185059577226639,
            "w": 0.149000003933907
        },
        "resourceThreshold": 0.300000011920929,
        "riverSize": 0.128000006079674,
        "riverAmount": 1.0,
        "lakeThreshold": 0.0,
        "chamberThreshold": 0.421499997377396,
        "scatteredWallThreshold": 0.13400000333786,
        "ceilingHoleThreshold": 0.0,
        "tunnelThreshold": 0.135000005364418,
        "tunnelAmount": 0.374000012874603,
        "sandThreshold": 0.0410000011324883,
        "sandAmount": 0.610000014305115,
        "pitThreshold": {
            "x": 0.0,
            "y": 0.0
        },
        "biomeEdgePitSize": 15.0,
        "biomeEdgePitLedgeSize": 4.0,
        "biomeSubTileTreshold": 0.305000007152557,
        "explosiveWallAmount": 0.270000010728836
    },
    "clay": {
        "ResourceCount": 4,
        "resourceDistribution": {
            "x": 0.656912505626678,
            "y": 0.142766773700714,
            "z": 0.101939350366592,
            "w": 0.200000002980232
        },
        "resourceThreshold": 0.300000011920929,
        "riverSize": 0.100000001490116,
        "riverAmount": 1.0,
        "lakeThreshold": 0.0,
        "chamberThreshold": 0.375,
        "scatteredWallThreshold": 0.133000001311302,
        "ceilingHoleThreshold": 0.0,
        "tunnelThreshold": 0.125,
        "tunnelAmount": 0.5,
        "sandThreshold": 0.0299999993294477,
        "sandAmount": 0.75,
        "pitThreshold": {
            "x": 0.0,
            "y": 0.0
        },
        "biomeEdgePitSize": 10.0,
        "biomeEdgePitLedgeSize": 4.0,
        "biomeSubTileTreshold": 0.0,
        "explosiveWallAmount": 0.259999990463257
    },
    "stone": {
        "ResourceCount": 4,
        "resourceDistribution": {
            "x": 0.649988532066345,
            "y": 0.156208842992783,
            "z": 0.0920978188514709,
            "w": 0.200000002980232
        },
        "resourceThreshold": 0.300000011920929,
        "riverSize": 0.0939999967813492,
        "riverAmount": 1.0,
        "lakeThreshold": 0.0,
        "chamberThreshold": 0.326999992132187,
        "scatteredWallThreshold": 0.156000003218651,
        "ceilingHoleThreshold": 0.0,
        "tunnelThreshold": 0.101999998092651,
        "tunnelAmount": 0.400000005960464,
        "sandThreshold": 0.122000001370907,
        "sandAmount": 0.282000005245209,
        "pitThreshold": {
            "x": 0.0,
            "y": 0.0
        },
        "biomeEdgePitSize": 10.0,
        "biomeEdgePitLedgeSize": 4.0,
        "biomeSubTileTreshold": 0.0,
        "explosiveWallAmount": 0.25
    },
    "forest": {
        "ResourceCount": 3,
        "resourceDistribution": {
            "x": 0.796570718288422,
            "y": 0.100720882415771,
            "z": 0.200000002980232,
            "w": 0.200000002980232
        },
        "resourceThreshold": 0.300000011920929,
        "riverSize": 0.150000005960464,
        "riverAmount": 1.0,
        "lakeThreshold": 0.0,
        "chamberThreshold": 0.524999976158142,
        "scatteredWallThreshold": 0.0900000035762787,
        "ceilingHoleThreshold": 0.0,
        "tunnelThreshold": 0.0869999974966049,
        "tunnelAmount": 0.5,
        "sandThreshold": 0.0299999993294477,
        "sandAmount": 0.0,
        "pitThreshold": {
            "x": 0.0,
            "y": 0.0
        },
        "biomeEdgePitSize": 10.0,
        "biomeEdgePitLedgeSize": 4.0,
        "biomeSubTileTreshold": 0.280000001192093,
        "explosiveWallAmount": 0.0
    },
    "desert": {
        "ResourceCount": 3,
        "resourceDistribution": {
            "x": 0.791023194789886,
            "y": 0.102215066552162,
            "z": 0.200000002980232,
            "w": 0.200000002980232
        },
        "resourceThreshold": 0.300000011920929,
        "riverSize": 0.0610000006854534,
        "riverAmount": 0.5,
        "lakeThreshold": 0.0,
        "chamberThreshold": 0.75,
        "scatteredWallThreshold": 0.0,
        "ceilingHoleThreshold": 0.0,
        "tunnelThreshold": 0.32600000500679,
        "tunnelAmount": 0.788999974727631,
        "sandThreshold": 0.0399999991059303,
        "sandAmount": 0.0,
        "pitThreshold": {
            "x": 0.0,
            "y": 0.0
        },
        "biomeEdgePitSize": 10.0,
        "biomeEdgePitLedgeSize": 4.0,
        "biomeSubTileTreshold": 0.0,
        "explosiveWallAmount": 0.0
    },
    "sea": {
        "ResourceCount": 3,
        "resourceDistribution": {
            "x": 0.790434718132019,
            "y": 0.102803319692612,
            "z": 0.200000002980232,
            "w": 0.200000002980232
        },
        "resourceThreshold": 0.300000011920929,
        "riverSize": 0.400000005960464,
        "riverAmount": 1.0,
        "lakeThreshold": 0.0,
        "chamberThreshold": 0.463499993085861,
        "scatteredWallThreshold": 0.263000011444092,
        "ceilingHoleThreshold": 0.0,
        "tunnelThreshold": 0.100000001490116,
        "tunnelAmount": 0.5,
        "sandThreshold": 0.0299999993294477,
        "sandAmount": 0.0,
        "pitThreshold": {
            "x": 0.0,
            "y": 0.0
        },
        "biomeEdgePitSize": 15.0,
        "biomeEdgePitLedgeSize": 10.0,
        "biomeSubTileTreshold": 0.0,
        "explosiveWallAmount": 0.0
    },
    "crystal": {
        "ResourceCount": 1,
        "resourceDistribution": {
            "x": 0.200000002980232,
            "y": 0.200000002980232,
            "z": 0.200000002980232,
            "w": 0.200000002980232
        },
        "resourceThreshold": 0.469999998807907,
        "riverSize": 0.150000005960464,
        "riverAmount": 1.0,
        "lakeThreshold": 0.0,
        "chamberThreshold": 0.375,
        "scatteredWallThreshold": 0.0750000029802322,
        "ceilingHoleThreshold": 0.0,
        "tunnelThreshold": 0.0799999982118607,
        "tunnelAmount": 0.5,
        "sandThreshold": 0.5,
        "sandAmount": 0.0,
        "pitThreshold": {
            "x": 0.0,
            "y": 0.0
        },
        "biomeEdgePitSize": 10.0,
        "biomeEdgePitLedgeSize": 4.0,
        "biomeSubTileTreshold": 0.0,
        "explosiveWallAmount": 0.0
    },
    "passage": {
        "ResourceCount": 0,
        "resourceDistribution": {
            "x": 0.200000002980232,
            "y": 0.200000002980232,
            "z": 0.200000002980232,
            "w": 0.200000002980232
        },
        "resourceThreshold": 0.0,
        "riverSize": 0.136000007390976,
        "riverAmount": 1.0,
        "lakeThreshold": 0.0,
        "chamberThreshold": 0.190500006079674,
        "scatteredWallThreshold": 0.0299999993294477,
        "ceilingHoleThreshold": 0.0,
        "tunnelThreshold": 0.207000002264977,
        "tunnelAmount": 0.400000005960464,
        "sandThreshold": 0.0,
        "sandAmount": 0.0,
        "pitThreshold": {
            "x": 0.0311711970716715,
            "y": 0.0
        },
        "biomeEdgePitSize": 7.78000020980835,
        "biomeEdgePitLedgeSize": 0.0,
        "biomeSubTileTreshold": 0.0,
        "explosiveWallAmount": 0.0
    }
}

The values of the JSON file are defined in the WorldGen.Runtime.dll. Based on the WorldGenerationSettingLevel the values are set by predefined float values.
It would be possible to create a script which sets the same values, but maintaining this is hard work as Pugstorm can change this on every update. Another option would be to use WorldGen.Runtime.dll in a self-written program or script. (I know that PowerShell can include .Net libraries native, but I have not seen this on Linux yet 🤔 )
I don’t want to increase the Dockerfile to an extreme size only for this feature.
I will play around here a bit to check the possibilities.

Looks like a pretty advanced feature which not many would play with... Could be good to be able to inject the configuration for those who like to experiment but not much else.


only top parent have the :@_interdoc_reftext_resolver variable

Solves issue #3

It does not because you just added a new variable doc without actually using it.

Sorry missed that... good catch

Thank you!


Remove provenance machinery

Provenance was added a while ago as a first step towards the multi-survey problem. However, that's further down the road for now and provenance is introducing some API bloat and slowdown. I'd advocate for scrapping it and re-implementing it fresh when there is more purpose to it.

I agree with that. I believe that, as it stands, the provenance column causes more confusion than it helps in solving multi-survey problems.


Add Postgres upgrade blog post

It could use a read over or two. It would probably make sense to expand the "Wrapping up" section to contextualize or summarize a bit more, but I kinda ran out of steam on that.

Redeploying the Vercel preview...  Not sure why the last one was borked.

Direct link to preview: https://medplum-www-git-mattlong-pg-upgrade-blog-post-medplum.vercel.app/blog/zero-downtime-postgres-major-version-upgrade


Why does my rule behave different from an oracle?

I have the following, with question at the end:
{-# LANGUAGE DeriveDataTypeable, GeneralizedNewtypeDeriving, MultiParamTypeClasses #-}
{-# OPTIONS_GHC -Wall #-}

import           Control.Applicative
import           Development.Shake
import           Development.Shake.Classes
import           Development.Shake.FilePath
import           Development.Shake.Rule
import           System.Directory (createDirectoryIfMissing)
import           System.Process

newtype GetNonHiddenFilesQ = GetNonHiddenFilesQ (FilePath, String) deriving (Show, Typeable, Eq, Hashable, Binary, NFData)
newtype GetNonHiddenFilesA = GetNonHiddenFilesA [FilePath] deriving (Show, Typeable, Eq, Hashable, Binary, NFData)

instance Rule GetNonHiddenFilesQ GetNonHiddenFilesA where
  -- storedValue _ (GetNonHiddenFilesQ (topDir, findPattern)) = Just . GetNonHiddenFilesA <$> findNonHiddenFilesIO topDir findPattern
  storedValue _ _ = return Nothing

getNonHiddenFilesRule :: Rules ()
getNonHiddenFilesRule = rule $ \(GetNonHiddenFilesQ (topDir, findPattern)) ->
  Just (GetNonHiddenFilesA <$> liftIO (findNonHiddenFilesIO topDir findPattern))

getNonHiddenFiles :: FilePath -> String -> Action [FilePath]
getNonHiddenFiles topDir findPattern = do
  GetNonHiddenFilesA files <- apply1 $ GetNonHiddenFilesQ (topDir, findPattern)
  return files

-- | Similar to `getDirectoryFiles`, but does not include hidden files
-- (starting with dot) or files in hidden directories, and does not
-- call `need`. Uses @find@ internally.
findNonHiddenFilesIO
  :: FilePath -- ^ dir fom which to search ("." or "" for current dir)
  -> String   -- ^ pattern to pass to @find@ (used after @-name@)
  -> IO [FilePath]
findNonHiddenFilesIO topDir findPattern = do
  let pat = if findPattern == "" then "." else findPattern
  out <- readProcess
    "find"
    [ topDir, "-type", "d", "-path", "*/\\.*"
    , "-prune", "-o"
    , "-not", "-name", ".*", "-type", "f", "-path", pat, "-print"
    ]
    ""
  return (map normalise $ lines out)

-- For oracle.
newtype GetNonHiddenFiles = GetNonHiddenFiles (FilePath, String) deriving (Show, Typeable, Eq, Hashable, Binary, NFData)

main :: IO ()
main = do
  createDirectoryIfMissing True "oracle"
  createDirectoryIfMissing True "rule"

  shakeArgs shakeOptions
    { shakeLint = Just LintBasic
    } $ do

    getNonHiddenFilesRule

    -- Oracle for `getNonHiddenFiles`.
    askNonHiddenFilesOracle <- addOracle $ \(GetNonHiddenFiles (topDir, findPattern)) -> do
      liftIO $ findNonHiddenFilesIO topDir findPattern

    -- Similar to `getDirectoryFiles`, but ignores hidden files/dirs.
    -- Uses @find@ inside.
    let getNonHiddenFilesO :: FilePath -> String -> Action [FilePath]
        getNonHiddenFilesO topDir findPattern = do
          askNonHiddenFilesOracle $ GetNonHiddenFiles (topDir, findPattern)

    -- Running prints:
    --   Build completed in 0:01m
    phony "testOracle" $ do
      _ <- getNonHiddenFilesO "oracle" "*"
      writeFile' "oracle/myfile" "x"
      _ <- getNonHiddenFilesO "oracle" "*"
      return ()

    -- Running prints:
    --   Lint checking error - value has changed since being depended upon:
    --     Key:  GetNonHiddenFilesQ ("rule","*")
    --     Old:  GetNonHiddenFilesA []
    --     New:  <missing>
    phony "testRule" $ do
      _ <- getNonHiddenFiles "rule" "*"
      writeFile' "rule/myfile" "x"
      _ <- getNonHiddenFiles "rule" "*"
      return ()

Why is that?
It seems to me that what I do with GetNonHiddenFilesQ/A is exactly what Development.Shake.Rules.Oracle does (having storedValue _ _ = return Nothing).
What am I missing?

Does the testRule phony have a problem if you skip the writeFile'? My guess is that is a red herring. I suspect the key line you are missing is https://github.com/ndmitchell/shake/blob/master/src/Development/Shake/Special.hs#L13 - there is a hack to say that oracles always rebuild, and that is fine. If that turns out to be the issue, I can add an extra method to Rule that returns whether a rule should be ignored for lint checking.
In general, if you depend on a value, and then something else in the build causes it to change value, that would be bad. In this case, I'd also suggest push the find call into storedValue, and not returning Nothing, which should fix it as well. Was there a reason for wanting to pull it out and do it later?

In general, if you depend on a value, and then something else in the build causes it to change value, that would be bad.

I probably wasn't very clear: I precisely desire to get the Lint checking error - value has changed since being depended upon error.
When I switched from an Oracle to my own rule, it suddenly got me those lint errors that I hoped to see, because my build system was wrong.
Your link to Special indeed explains what the difference is.
Now the next question would be: Oracles are much less verbose than custom rules. Would it be possible to have some flavour of oracles that don't always rebuild, or otherwise achieve a conciseness similar to that of oracles for my problem?

Oracles are a bit weird, they seem to be conflating many concepts (caching, always rebuilding, type-directed rules) into one. I do suspect that splitting the pieces up would make them more reusable and less magical. In many ways they are custom rules, and with GHC's new type level literals, it might be more feasible to give enough sugar so that defining real rules is so simple that oracles aren't required.
The lint check is defined to rerun storedValue and see if the value matches. For Oracles, that never matches, as there is no storedValue, and it would be hard to see how you could get one with the current API, unless you modified the approach and went from something other than storedValue.


refactor(transformer/class-properties): share replace_class_name_with_temp_var in class_properties

[!WARNING]
This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

#8105  👈 (View in Graphite)
#8104
#8103
#8102
#8100
#8099
#8098
main

How to use the Graphite Merge Queue
Add either label to this PR to merge it via the merge queue:

0-merge - adds this PR to the back of the merge queue
hotfix - for urgent hot fixes, skip the queue and merge this PR next

You must have a Graphite account in order to use the merge queue. Sign up using this link.

An organization admin has enabled the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

This stack of pull requests is managed by Graphite. Learn more about stacking.


Detect and respect "dark theme" Kibana

https://github.com/bitsensor/elastalert-kibana-plugin/issues/124

Almost everything is ok:

Only editor needs some tweaks:

For nearest future I do not have plan to implement new features.
Contribution is welcome 😉

It does not occur if it is a newly remade version. If so, no action is required. Close

Fixed:


FundingInfo doesn't need swap_id, as that can be retrieved as the source of the message

The swap id is useful to display to the user for which swap the funding is intended.


euler is possible to allow prefix params like "_xyz" instead of "xyz" ?

hi friend, thanks for this awesome controller !
Its would be awesome if you can found a hack to allow prefixed variable.
ex:
  const params = {
    euler: { _x: 0.0, _y: 0.0, _z: 0.0 },
  }
  pane.addInput(params, 'euler', {
    view: 'rotation',
    rotationMode: 'euler',
    order: 'XYZ',
    unit: 'deg',
  });

I suppose if you not allowed this yet is may related to architecture limitation of plugins API ?

My user case is because in usage of a game engine rendering (webgl), we need use a custom update loop with requestAnimationFrame where is run in loop and will apply data like.

So in this kind of case , the update run like this, and the gui should mutate private "._xyz" value instead of setter values ".xyz".
	update(): void {
		this.proj.scale.set( this._zoom );
		this.proj.euler.set( this.euler._x, this.euler._y, this.euler._z ); // apply _.x and not .x
		this.setPlanes( this._focus, this._near, this._far, this._orthographic );
	}

if the Gui apply euler data on setter in same time as the game update, every math break and go weird.
Is there a way to use param like euler: { _x: 0.0, _y: 0.0, _z: 0.0 } instead of  euler: { x: 0.0, y: 0.0, z: 0.0 }
I add a dirty temp hack on my side to make this work, but i should not really not hack my engine to make it work with a gui, is really not a good idea 🤣

so i add a custom object in hight level, where the update use it instead the low level .

i also have another question ,is there a way to reduce the mouse sensibility ?
i tried add  a very low value in step like step: 0.001  without success !
		folder2.addInput( $, '_eulers', {
			view: 'rotation',
			rotationMode: 'euler',
			order: 'XYZ',
			unit: 'rad',
			step: 0.0001, // sensivity ? seem not work.
			picker: 'inline',
			expanded: true,
		} );

Sorry for pock you and for the inconvenience and thanks you @0b5vr for any time you can give :)

Sorry for the late reply :bow:
Thank you for the detailed description of your circumstance.
I remembered I just followed how the API design goes in the original tweakpane APIs when I implement this but let me check this again.
Honestly I'm also bothered by the interface (I want to get the result in Array format).
Also I'm 80% sure that I did no mouse sensitivity stuff when I do this, which is worth considering I believe.

you are not alone, I was interested in it to make a plugin and I also found that the API was very restrictive and not very intuitive. I am not a fan of technologies and architecture choosed by the API.
Feel free to update if you found a solution, i will update my dirty code on my side :)


Add timeout to each CI test

Description
Add a timeout for each job, because if something runs for much longer than usual there's probably something wrong.
@hhenry01 do these timeouts look reasonable to you?
Resources

https://stackoverflow.com/a/59076067

Is that enough time for build-images? Prebase takes like 3 hours, is it not included in the timeout?

Is that enough time for build-images? Prebase takes like 3 hours, is it not included in the timeout?

Build images only builds base and dev. For pre-base you have to build locally and push yourself.

Is that enough time for build-images? Prebase takes like 3 hours, is it not included in the timeout?

Build images only builds base and dev. For pre-base you have to build locally and push yourself.

In that case LGTM. I just need to make sure clang-tidy doesn't balloon out of control.

It currently takes ~20 minutes to build base and dev in CI: https://github.com/UBCSailbot/sailbot_workspace/actions/workflows/build-images.yml
Although we technically have unlimited minutes for GitHub actions, that may change in the future and the time saved > convenience of CI in this case IMO


Article images

In the article page, each image has a 24px margin.
https://www.servicenow.com/blogs/2022/3-innovations-boost-customer-efficiency.html

is it the same as https://github.com/hlxsites/servicenow/issues/129 ?


fix when group doesn't exist

handle FATAL ERROR when trying to openGroup but the group doesn't exist.

Hi, maybe we should throw an exception?

Yes, it would be much better. I'm not a C++ master, but I have done my best ;-)

A exception ist better. Maybe we could add the name of the opening group to the exception like for opening a file.
And we need a test for this case.

Added unwrapping and checkig if he group id is >=0
There is an inner catch in Group::New for the actual H5Gopen call and setting th javascript throw.  The Group::Instantiate doesn't get this so cecked the id.  However there may bes a way to check for existence first I'm thinking of adding internally in the Group::New so the vebosity from H5Gopen doesn't happen

added existence check


[DOC]: Number the deployment steps

How would you describe the priority of this documentation request
None
Please provide a link or source to the relevant docs
https://github.com/NVIDIA/nv-ingest/blob/main/README.md#:~:text=Step 1%3A Starting containers
Describe the problems in the documentation
In step 1, convert the deployment steps to a numbered list for better readability,
(Optional) Propose a correction or improvement
No response

Closed with https://github.com/NVIDIA/nv-ingest/pull/84


Standardize Payload Data

Currently, it is difficult to differentiate between different sources of data through the payload. Each source has a different way of recording data and makes it difficult to run analytics on the returned data. Sources include:

[x] GPS

[x] Captive Portal

[x] Sensor

[x] Health

[x] DPS

One way to make this easier is by transmitting the payload in JSON. However, this can be an issue as JSONifying the payload can use up a lot of precious bytes needed to transmit data (especially in a disaster situation). To mitigate this, coded JSON templates could be used and be translated on the server-side. This is also a bit of an issue as it is a bit complex.
Another way to do this is by giving each source its own byte code. This could then be used on the PapaDuck to send data over different topics. This would also make it easier to store data coming from different sources.

Moving the next part to #105


fix: default dashboard/chart cards are vector with perfect corners

SUMMARY

The corners of the default card/dash images had pre-rendered rounded corners, that looked goofy at certain scales. They were also PNG, so they got a little blurry at times.
Now they're SVG, with square corners, cropped by their containers' border-radius, so we should be sharp all the way around!
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

TEST PLAN

ADDITIONAL INFORMATION

[ ] Has associated issue:
[x] Changes UI
[ ] Requires DB Migration.
[ ] Confirm DB Migration upgrade and downgrade tested.
[ ] Introduces new feature or API
[ ] Removes existing feature or API

Codecov Report

Merging #11684 (e693c5a) into master (3ad65bc) will decrease coverage by 4.29%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master   #11684      +/-   ##
==========================================
- Coverage   66.46%   62.17%   -4.30%
==========================================
  Files         889      435     -454
  Lines       43049    26859   -16190
  Branches     4009        0    -4009
==========================================
- Hits        28614    16699   -11915
+ Misses      14327    10160    -4167
+ Partials      108        0     -108

Flag
Coverage Δ

cypress
?

javascript
?

python
62.17% <ø> (-0.72%)
:arrow_down:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files
Coverage Δ

superset/db_engines/hive.py
0.00% <0.00%> (-85.72%)
:arrow_down:

superset/db_engine_specs/hive.py
53.90% <0.00%> (-30.08%)
:arrow_down:

superset/db_engine_specs/presto.py
69.76% <0.00%> (-12.53%)
:arrow_down:

superset/db_engine_specs/mysql.py
79.59% <0.00%> (-12.25%)
:arrow_down:

superset/db_engine_specs/sqlite.py
65.62% <0.00%> (-9.38%)
:arrow_down:

superset/utils/cache.py
76.00% <0.00%> (-4.00%)
:arrow_down:

superset/utils/celery.py
82.14% <0.00%> (-3.58%)
:arrow_down:

superset/examples/world_bank.py
97.10% <0.00%> (-2.90%)
:arrow_down:

superset/examples/birth_names.py
96.51% <0.00%> (-2.33%)
:arrow_down:

superset/models/core.py
87.19% <0.00%> (-2.07%)
:arrow_down:

... and 461 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 3ad65bc...e693c5a. Read the comment docs.

looks like those SVG files are missing licenses, otherwise LGTM

Whoops! Too hasty. Added! Will merge when CI passes. Thanks all!


feat: add profile attachments to DA stack

Description
Configure SCC to create default attachment aligned with compliance claims for this stack
https://github.com/terraform-ibm-modules/stack-retrieval-augmented-generation/issues/13
Release required?

[ ] No release
[ ] Patch release (x.x.X)
[ ] Minor release (x.X.x)
[ ] Major release (X.x.x)

Release notes content

Run the pipeline
If the CI pipeline doesn't run when you create the PR, the PR requires a user with GitHub collaborators access to run the pipeline.
Run the CI pipeline when the PR is ready for review and you expect tests to pass. Add a comment to the PR with the following text:
/run pipeline

Checklist for reviewers

[ ] If relevant, a test for the change is included or updated with this PR.
[ ] If relevant, documentation for the change is included or updated with this PR.

For mergers

Use a conventional commit message to set the release level. Follow the guidelines.
Include information that users need to know about the PR in the commit message. The commit message becomes part of the GitHub release notes.
Use the Squash and merge option.

/run pipeline

/run pipeline

/run pipeline

@vburckhardt As per the discussions here, we went with a basic list input variable and a predefined attachment configuration scoped to full account in order to keep the input variable simple to use via Projects.
As per that discussion, we also created an internal issue to expose a more advanced complex object type input, with supporting documentation on how to pass values to it from Projects UI, where users could basically customise exactly how they want there attachment to be set up.
Even if we had that advanced object type input variable, I don't think we would be able to reference the resource group outputs from the stack member DAs? I don't think it supports a kind of syntax like this?
{
          "name": "profile_attachments",
          "value": [{
                            profile_name    = "name"
                            profile_version = "1.0.0"
                            description     = "desc"
                            schedule        = "daily"
                            scope = [
                              {
                                environment = "ibm-cloud"
                                properties = [
                                  {
                                    name  = "scope_type"
                                    value = "account"
                                  },
                                  {
                                    name  = "scope_id"
                                    value = "ref:../1 - Account Infrastructure Base/outputs/audit_resource_group_name"
                                  },
                                  {
                                    name  = "scope_id"
                                    value = "ref:../1 - Account Infrastructure Base/outputs/observability_resource_group_name"
                                  }
                                ]
                              }
                            ]
                      }]
}

/run pipeline

/run pipeline

/run pipeline

/run pipeline

A couple of comments:

If you are changing the SCC module parameters anyway, could you please add the prefix parameter and pass the value from the stack?
The current AI Security Guardrails profile name is actually AI Security Guardrails 2.0 (although the semver version on it is 1.0.0). The name "AI Security Guardrails" was used for v.1 which has some issues.
The problem with the AI Guardrails profile is that it requires much more setup (needs to have a target  with credentials in SCC, trusted profile, etc) for it to work properly.  So the user will have to do a lot more manual steps in order to make it work. It's not the DA problem per se, but we will create a bad impression.

Isn't the consensus now to go with the AI Guardrails 2.0 profile?

@in-1911 yes tracked internally here

/run pipeline

@jor2 I think you want to wait for https://github.com/terraform-ibm-modules/terraform-ibm-scc-da/pull/148 to be merged so the scope can be defined in the stack

/run pipeline

/run pipeline

@ocofaigh is this a know error?
    tests.go:272: [PROJECTS] Apply Error: {map[error_msg: failed to find an object with the 'metadata/guid' key = 'de5cc4e8-9116-44ed-84ea-c9ca77521a17' at //api.dataplatform.cloud.ibm.com/v2/projects resource_name:get_project resource_type:restapi_object]}
    tests.go:369: Error deploying configuration 4 - WatsonX SaaS services: deploy failed for configuration 4 - WatsonX SaaS services last state: deploying_failed
    tests.go:384: [PROJECTS] Apply Error: {map[error_msg: failed to find an object with the 'metadata/guid' key = 'de5cc4e8-9116-44ed-84ea-c9ca77521a17' at //api.dataplatform.cloud.ibm.com/v2/projects resource_name:get_project resource_type:restapi_object]}
    tests.go:414: [PROJECTS] Error deploying configurations, terminating deployment.

I think we should set watsonx_project_name parameter to __NULL__ in the stack definition itself.
This should skip project creation and the bug that is related to that.
If any test code uses Watsonx SaaS DA, it should set that to __NULL__ as well. In the stack the project is created by the Sample App Config DA, and there I managed to go around that issue as well.
Now I am leaning towards the theory that this might be the timing issue with provisioning a new WML instance and immediately creating a new project in it, because in my stack deployments there is about 10 minutes gap between those two actions (because I suppress creating a project in Watson SaaS DA by the parameter above). And I did not get the same error even when trying to use some different combinations of credentials.

/run pipeline

/run pipeline

/run pipeline

/run pipeline

/run pipeline

/run pipeline


[Snyk] Upgrade eslint from 8.46.0 to 8.56.0

This PR was automatically created by Snyk using the credentials of a real user.Snyk has created this PR to upgrade eslint from 8.46.0 to 8.56.0.
:information_source: Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.

The recommended version is 10 versions ahead of your current version.
The recommended version was released 2 months ago, on 2023-12-15.

Release notes

Package name: eslint

8.56.0 - 2023-12-15Features

0dd9704 feat: Support custom severity when reporting unused disable directives (#17212) (Bryan Mishkin)
31a7e3f feat: fix no-restricted-properties false negatives with unknown objects (#17818) (Arka Pratim Chaudhuri)

Bug Fixes

7d5e5f6 fix: TypeError: fs.exists is not a function on read-only file system (#17846) (Francesco Trotta)
74739c8 fix: suggestion with invalid syntax in no-promise-executor-return rule (#17812) (Bryan Mishkin)

Documentation

9007719 docs: update link in ways-to-extend.md (#17839) (Amel SELMANE)
3a22236 docs: Update README (GitHub Actions Bot)
54c3ca6 docs: fix migration-guide example (#17829) (Tanuj Kanti)
4391b71 docs: check config comments in rule examples (#17815) (Francesco Trotta)
fd28363 docs: remove mention about ESLint stylistic rules in readme (#17810) (Zwyx)
48ed5a6 docs: Update README (GitHub Actions Bot)

Chores

ba6af85 chore: upgrade<EMAIL_ADDRESS>(#17864) (Milos Djermanovic)
60a531a chore: package.json update for @ eslint/js release (Jenkins)
ba87a06 chore: update dependency markdownlint to ^0.32.0 (#17783) (renovate[bot])
9271d10 chore: add GitHub issue template for docs issues (#17845) (Josh Goldberg ✨)
70a686b chore: Convert rule tests to FlatRuleTester (#17819) (Nicholas C. Zakas)
f3a599d chore: upgrade eslint-plugin-unicorn to v49.0.0 (#17837) (唯然)
905d4b7 chore: upgrade eslint-plugin-eslint-plugin v5.2.1 (#17838) (唯然)
4d7c3ce chore: update eslint-plugin-n v16.4.0 (#17836) (唯然)
fd0c60c ci: unpin Node.js 21.2.0 (#17821) (Francesco Trotta)

8.55.0 - 2023-12-01Features

8c9e6c1 feat: importNamePattern option in no-restricted-imports (#17721) (Tanuj Kanti)

Documentation

83ece2a docs: fix typo --rules -> --rule (#17806) (OKURA Masafumi)
fffca5c docs: remove "Open in Playground" buttons for removed rules (#17791) (Francesco Trotta)
a6d9442 docs: fix correct/incorrect examples of rules (#17789) (Tanuj Kanti)
383e999 docs: update and fix examples for no-unused-vars (#17788) (Tanuj Kanti)
5a8efd5 docs: add specific stylistic rule for each deprecated rule (#17778) (Etienne)

Chores

eb8950c chore: upgrade<EMAIL_ADDRESS>(#17811) (Milos Djermanovic)
93df384 chore: package.json update for @ eslint/js release (Jenkins)
fe4b954 chore: upgrade<EMAIL_ADDRESS>(#17799) (Milos Djermanovic)
bd8911d ci: pin Node.js 21.2.0 (#17809) (Milos Djermanovic)
b29a16b chore: fix several cli tests to run in the intended flat config mode (#17797) (Milos Djermanovic)
de165c1 chore: remove unused config-extends fixtures (#17781) (Milos Djermanovic)
d4304b8 chore: remove formatting/stylistic rules from new rule templates (#17780) (Francesco Trotta)
21024fe chore: check rule examples for syntax errors (#17718) (Francesco Trotta)

8.54.0 - 2023-11-17 Read more

8.53.0 - 2023-11-03Features

528e1c0 feat: Deprecate formatting rules (#17696) (Nicholas C. Zakas)
c0b11dd feat: Add suggestions for no-prototype-builtins (#17677) (Yonathan Randolph)

Bug Fixes

1ad6257 fix: ensure that exit code for fatal errors is not overwritten (#17683) (Milos Djermanovic)
b329ea7 fix: add ; after JSX nodes in  no-object-constructor autofix (#17672) (Francesco Trotta)

Documentation

ab8c60d docs: change position of return to top button (#17688) (Tanuj Kanti)
4fc44c0 docs: update twitter icon to new X icon (#17687) (Tanuj Kanti)
4164b2c docs: Update README (GitHub Actions Bot)
8651895 docs: Fix tabs in rule examples (#17653) (Francesco Trotta)
3aec1c5 docs: explained rule fixers and suggestions (#17657) (Josh Goldberg ✨)

Chores

ba4d4d5 chore: remove metascraper (#17707) (Milos Djermanovic)
0d07338 chore: Update dependencies (#17706) (Milos Djermanovic)
93256a3 chore: package.json update for @ eslint/js release (ESLint Jenkins)
485ec7d test: fix ESLint tests for caching (#17699) (Milos Djermanovic)
db06a7f ci: bump actions/setup-node from 3 to 4 (#17676) (dependabot[bot])
994596b ci: run tests in Node.js 21 (#17673) (Francesco Trotta)

8.52.0 - 2023-10-20 Read more

8.51.0 - 2023-10-06 Read more

8.50.0 - 2023-09-22 Read more

8.49.0 - 2023-09-08 Read more

8.48.0 - 2023-08-25 Read more

8.47.0 - 2023-08-11 Read more

8.46.0 - 2023-07-28

    from eslint GitHub release notes

Commit messages

Package name: eslint

8e8e9f8 8.56.0
085978b Build: changelog update for 8.56.0
ba6af85 chore: upgrade<EMAIL_ADDRESS>(#17864)
60a531a chore: package.json update for @ eslint/js release
0dd9704 feat: Support custom severity when reporting unused disable directives (#17212)
31a7e3f feat: fix no-restricted-properties false negatives with unknown objects (#17818)
ba87a06 chore: update dependency markdownlint to ^0.32.0 (#17783)
7d5e5f6 fix: `TypeError: fs.exists is not a function` on read-only file system (#17846)
9271d10 chore: add GitHub issue template for docs issues (#17845)
70a686b chore: Convert rule tests to FlatRuleTester (#17819)
9007719 docs: update link in ways-to-extend.md (#17839)
f3a599d chore: upgrade eslint-plugin-unicorn to v49.0.0 (#17837)
905d4b7 chore: upgrade eslint-plugin-eslint-plugin v5.2.1 (#17838)
4d7c3ce chore: update eslint-plugin-n v16.4.0 (#17836)
3a22236 docs: Update README
54c3ca6 docs: fix migration-guide example (#17829)
4391b71 docs: check config comments in rule examples (#17815)
fd28363 docs: remove mention about ESLint stylistic rules in readme (#17810)
fd0c60c ci: unpin Node.js 21.2.0 (#17821)
48ed5a6 docs: Update README
74739c8 fix: suggestion with invalid syntax in no-promise-executor-return rule (#17812)
e0cb960 8.55.0
969b272 Build: changelog update for 8.55.0
eb8950c chore: upgrade<EMAIL_ADDRESS>(#17811)

Compare

Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.
For more information:
🧐 View latest project report
🛠 Adjust upgrade PR settings
🔕 Ignore this dependency or unsubscribe from future upgrade PRs

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (ed9e7df) 89.54% compared to head (2e1261f) 89.21%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #336      +/-   ##
==========================================
- Coverage   89.54%   89.21%   -0.33%
==========================================
  Files          10       10
  Lines         306      306
==========================================
- Hits          274      273       -1
- Misses         32       33       +1

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


"Unexpected Application Error!" On application startup

Hey :)
Congrats for the open sourcing!
I wanted to try the app on Linux (Ubuntu 22.10), I3 desktop but I'm getting the following error:
Unexpected Application Error!
Can't find variable: RTCPeerConnection
connect@tauri://localhost/assets/index-11557f96.js:1067:4468
start@tauri://localhost/assets/index-11557f96.js:1067:11835
@tauri://localhost/assets/index-11557f96.js:1319:104679
d1@tauri://localhost/assets/index-11557f96.js:40:24284
U3@tauri://localhost/assets/index-11557f96.js:40:31625
W6@tauri://localhost/assets/index-11557f96.js:40:31481
HY@tauri://localhost/assets/index-11557f96.js:40:31031
JY@tauri://localhost/assets/index-11557f96.js:40:40919
hc@tauri://localhost/assets/index-11557f96.js:40:40277
Z3@tauri://localhost/assets/index-11557f96.js:40:36887
Z3@[native code]
ec@tauri://localhost/assets/index-11557f96.js:38:3280
JY@tauri://localhost/assets/index-11557f96.js:40:41285
hc@tauri://localhost/assets/index-11557f96.js:40:40277
Y6@tauri://localhost/assets/index-11557f96.js:40:35734
Y6@[native code]
w@tauri://localhost/assets/index-11557f96.js:25:1555
_@tauri://localhost/assets/index-11557f96.js:25:1917

I tried both the .deb and .AppImage downloads, they both fail similarly.
Running the deb package from the terminal shows:
$ kittycad-modeling
Getting user info...

Also, is it expected that the download page here doesn't show Linux install?

https://github.com/KittyCAD/modeling-app/issues/625 I missed that in my search, I think it's the same, my bad!

@Edznux You're correct! That's why we pulled the linux builds from our website 😢

Thanks for reporting though!


PyLance 2021.9.2

With some of my programs the newest release causes electron_node bundle.js to have "high" cpu usage. It bumps the cpu speed to 4.4 ghz and persists. Changing back to the last version 2021.9.1 gets rid of this problem.

Thanks for the report. Could you please attach the logs emitted when you are seeing this problem?

I think I have the same problem. 100% cpu of 1 core by pylance, but bringing 2021.9.1 back did nothing, same behavior. Pylance log consist of two info lines with version and path. Like this:
[Info  - 11:29:50 AM] Pylance language server 2021.9.1 (pyright e804f324) starting
[Info  - 11:29:50 AM] Server root directory: /home/poh/.vscode/extensions/ms-python.vscode-pylance-2021.9.1/dist

My usecase is like this:

Type some line of python code
It is all in white color without syntax highlight
Pylance 100% cpu 1 core
After 20-30 seconds pylance calms down
Syntax highlight appears

If going back to 2021.9.1 didn't change anything, then your issue is likely not the same as the original issue.
Can you please file a new issue with a reproduction, e.g. what it is you typed?

Well, I know it doesn't help much but after the lastest upgrade to 2021.10.1 I get the same problem as well, with pylance, as soon as I switch to my virtual env python interpreter. Htop shows 50% more CPU on
/usr/share/code/code /home/giacomo/.vscode/extensions/ms-python.vscode-pylance-2021.10.1/dist/server.bundle.js --cancellationReceive=file:93621ae8b7dea8fa85157875361ce625874b52229c --node-ipc --clientProcessId=36819
where 36819 is
/usr/share/code/code --inspect-port=0 /usr/share/code/resources/app/out/bootstrap-fork --type=extensionHost --skipWorkspaceStorageLock
With the default log settings, pylance doesn't show any logs at all.

Thanks for the update


Use only major and minor versions for Go version semver

This PR changes the upgrader to only use major and minor versions in the Go version search semver.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

/approve
/lgtm

/cherrypick release-0.20

/cherrypick release-0.19


Australian Phone numbers in the range “+618 25 Riverland, Murraylands” and “+618 58 Albany” showing invalid

Australian Phone numbers in the range “+618 25 Riverland, Murraylands” and “+618 58 Albany” showing invalid

@ravikirannukala,
Thank you for taking the time to improve libphonenumber! For your next metadata issue, we invite
you to file issues in Google's new Issue Tracker, which we're currently testing.
We are unable to find any official evidence or online working numbers for prefixes 8 25 and 8 58 apart from wiki.  Please share any official evidence you may have. See our guidelines.

The only source I found was in wiki.

@ravikirannukala,
We cannot make this change based on the provided evidence. The statements need to be supported by official sources (like ITU doc, a national numbering plan).
If no official evidence or an example number from a business website or similar can be found then we don't have enough information to fix the issue and may have to close it as infeasible.

What is your source for Australian numbers?
Ravi
On Wed., 16 Aug. 2017 at 3:37 pm, kkeshava<EMAIL_ADDRESS>wrote:

@ravikirannukala https://github.com/ravikirannukala,
We cannot make this change based on the provided evidence. The statements
need to be supported by official sources (like ITU doc, a national
numbering plan).
If no official evidence or an example number from a business website or
similar can be found then we don't have enough information to fix the issue
and may have to close it as infeasible.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/googlei18n/libphonenumber/issues/1899#issuecomment-322671055,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AKYvLc6EvdM3NvJmU7EglKQAzqDbh93Aks5sYoALgaJpZM4O0KTh
.

@ravikirannukala,
We refer ITU doc and national numbering plan provided by Australian Government.

I'm closing as this issue is infeasible for us to fix at this point (we need more information). Please re-open if you respond so we pick up on it.

That's fine thanks
On Wed., 23 Aug. 2017 at 7:18 pm, kkeshava<EMAIL_ADDRESS>wrote:

I'm closing as this issue is infeasible for us to fix at this point (we
need more information). Please re-open if you respond so we pick up on it.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/googlei18n/libphonenumber/issues/1899#issuecomment-324271834,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AKYvLXPrih2A32vMN3FwBJE-IPr-rXyhks5sa-5vgaJpZM4O0KTh
.


fix(BarChartCard): use series for sample data generation

Summary

series was not being used to generate sample data in the dashboard preview which was leading to data items not matching correctly in the generation logic

Change List (commits, features, bugs, etc)

Swapped sample data generation for dashboard previews to use series similar to the isEditable sample generation

This should really be rewritten to have a single generatedata function with a boolean for isEditable vs the isPreview

Removed hideHeader boolean for custom cards as we shouldn't assume the user wants it
Added a test to cover default card renders

Acceptance Test (how to verify the PR)

Go to any DashboardEditor story, add a BarChartCard, select a time range, select a groupBy, select a data item, then see that the data renders correctly

@davidicus can you rereview this today?

@davidicus can you rereview this today?

:tada: This PR is included in version 2.143.0-next.5 :tada:
The release is available on:

npm package (@next dist-tag)
GitHub release

Your semantic-release bot :package::rocket:

:tada: This PR is included in version 2.143.0-next.5 :tada:
The release is available on:

npm package (@next dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


[python] Support new set-membership query condition

Issue and/or context: This is an adaptation of PR https://github.com/TileDB-Inc/TileDB-Py/pull/1837 for issue https://github.com/single-cell-data/TileDB-SOMA/issues/1742

The unit-test case is failing because of this, needing to be fixed:
Before:
>>> uri = 'tiledb://johnkerl-tiledb/oron-var'
>>> sdf = tiledbsoma.DataFrame.open(uri)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
NameError: name 'tiledbsoma' is not defined
>>> import tiledbsoma
>>> sdf = tiledbsoma.DataFrame.open(uri)
>>> sdf.read(
...     column_names=['feature_name'],
...     value_filter='feature_id in ["ENSG00000148584"]',
... ).concat().to_pandas()
  feature_name
0         A1CF

After:
>>> uri = 'tiledb://johnkerl-tiledb/oron-var'
>>> sdf = tiledbsoma.DataFrame.open(uri)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
NameError: name 'tiledbsoma' is not defined
>>> import tiledbsoma
>>> sdf = tiledbsoma.DataFrame.open(uri)
>>> sdf.read(
...     column_names=['feature_name'],
...     value_filter='feature_id in ["ENSG00000148584"]',
... ).concat().to_pandas()
  feature_name       feature_id
0         A1CF  ENSG00000148584

That is to say, we need to preserve the feature that the queried-for attribute name gets added to the list of output attrs.

Codecov Report
Attention: 9 lines in your changes are missing coverage. Please review.
:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.

Files
Coverage Δ

apis/python/src/tiledbsoma/_query_condition.py
57.02% <68.96%> (+0.41%)
:arrow_up:

... and 76 files with indirect coverage changes
:loudspeaker: Thoughts on this report? Let us know!.

(BTW the aforementioned unit-test case has since been fixed)

CI fail
E   ImportError: cannot import name 'SparseDataset' from 'anndata._core.sparse_dataset' (/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/anndata/_core/sparse_dataset.py)

as AnnData 0.10.0 dropped today:
https://anndata.readthedocs.io/en/latest/#version-0-10

Before:
anndata._core.sparse_dataset.SparseDataset

After:
anndata._core.sparse_dataset.CSRDataset
anndata._core.sparse_dataset.CSRDataset

This is stacked atop the blocking PR #1766 until that PR is merged, at which point this PR will be on main.

Update: this PR was a very simple copy of https://github.com/TileDB-Inc/TileDB-Py/pull/1837
Along the way we ran into the following, which were fixed:

#1775
#1784

So this should now be a very simple approve.


Enabling Add-On via Bicep

I'm in the process of automating AKS cluster creation using a Bicep template. Can the add-on be enabled this way, or only via CLI/Portal? I can't see anything in the template reference so guessing not, but thought I'd ask anyway

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

ID: e4a217cd-8949-e9b8-d8c5-a0f864b10237
Version Independent ID: e38769a3-04f6-c695-da48-8d0598a06bb9
Content: Tutorial: Enable the Ingress Controller add-on for a new AKS cluster with a new Azure Application Gateway
Content Source: articles/application-gateway/tutorial-ingress-controller-add-on-new.md
Service: application-gateway
GitHub Login: @Caya
Microsoft Alias: caya

@thepaulmacca Thanks for your comment! We will review and provide an update as appropriate.

@thepaulmacca, Appreciate your patience. Bicep has 100% parity with what can be accomplished with ARM Templates. Here is the main.bicep file syntax for your quick reference,
resource aksCluster 'Microsoft.ContainerService/managedClusters@2021-03-01' = {
  name: 'name'
  location: resourceGroup().location
  identity: {
    type: 'SystemAssigned'
  }
  properties: {
    kubernetesVersion: '1.19.7'
    dnsPrefix: 'dnsprefix'
    enableRBAC: true
    addonProfiles: {
      ingressApplicationGateway: {
        enabled: true
        config: {
          applicationGatewayId: ''
        }
      }
    }
    agentPoolProfiles: [
      {
        name: 'agentpool'
        count: 3
        vmSize: 'Standard_DS2_v2'
        osType: 'Linux'
        mode: 'System'
      }
    ]
    linuxProfile: {
      adminUsername: 'adminUserName'
      ssh: {
        publicKeys: [
          {
            keyData: 'REQUIRED'
          }
        ]
      }
    }
  }
}

You can enable addon's here in this bicep file using "AddonProfiles" property. If you still get stuck while composing the file, then have a look at this reference ARM template example.
We are closing this issue for now. If there are further questions regarding this matter, please reply and we will gladly continue the discussion.


Booklist Application using JavaScript

An application that helps users manage the booklist  by adding deleting and updating the list. I am good with javascript and would like to work on this issue under GSSOC'21. Please /assign this issue to me admin.

This sounds cool. We can partner on this

@vanshikapandey  Is it similar to TODO List?

No sir this isn't similar to to-do list.I will be implementing it bit
differently.Kindly assign it to me
On Sun, Mar 28, 2021, 14:11 Rajat Kumar @.***> wrote:

@vanshikapandey https://github.com/vanshikapandey Is it similar to TODO
List?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/Vishal-raj-1/Awesome-JavaScript-Projects/issues/658#issuecomment-808935125,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ANO32HNKIKFHTLKJUXJN2RDTF5WO5ANCNFSM4ZZDBT4Q
.

Thank you for assigning this issue sir.will get back asap:)
On Tue, Mar 30, 2021, 03:42 Rajat Kumar @.***> wrote:

Assigned #658
https://github.com/Vishal-raj-1/Awesome-JavaScript-Projects/issues/658
to @vanshikapandey https://github.com/vanshikapandey.
—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub
https://github.com/Vishal-raj-1/Awesome-JavaScript-Projects/issues/658#event-4525762404,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ANO32HMFZUUDWLWRIZUTKC3TGF6EVANCNFSM4ZZDBT4Q
.

@vanshikapandey Whats the update ?
Reply within 2 days or else we have to close it.

Hello sir it's almost done I will make the pr by tomorrow
On Wed, Apr 14, 2021, 18:51 Harsh Gupta @.***> wrote:

@vanshikapandey https://github.com/vanshikapandey Whats the update ?
Reply within 2 days or else we have to close it.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/Vishal-raj-1/Awesome-JavaScript-Projects/issues/658#issuecomment-819899481,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ANO32HNBJNBSN3R3ZJDRGBLTIYMADANCNFSM4ZZDBT4Q
.

@vanshikapandey It's been a long time, you haven't sent the PR till now.

@vanshikapandey Any update? Kindly reply within 2 days or else i have to close this issue.

I will send by today evening
On Mon, May 3, 2021, 11:16 Harsh Gupta @.***> wrote:

@vanshikapandey https://github.com/vanshikapandey Any update? Kindly
reply within 2 days or else i have to close this issue.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/Vishal-raj-1/Awesome-JavaScript-Projects/issues/658#issuecomment-831327767,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ANO32HJAGG6PZW32JZWNMPDTL246LANCNFSM4ZZDBT4Q
.

@vanshikapandey What's the update?


Add network command to show the connected peers

This is one of CLI related enhancement, add new command: obc-peer network, to show all existing network connections for the target peer node.

Closing as this exists now. The command is peer network list


Allow setError on input

Material Dialogs version: <IP_ADDRESS>

Hello,
Is it possible to add the setError() method on the input EditText?
I don't see t in the source code

You can use getEditText() on the built dialog.


SW-6565 Filter tasks by due date

Codecov Report
Patch coverage: 52.45% and project coverage change: -0.99 :warning:

Comparison is base (997fdeb) 60.66% compared to head (5b7fc5e) 59.67%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #325      +/-   ##
==========================================
- Coverage   60.66%   59.67%   -0.99%
==========================================
  Files          13       13
  Lines         938      987      +49
==========================================
+ Hits          569      589      +20
- Misses        330      353      +23
- Partials       39       45       +6

Impacted Files
Coverage Δ

internal/server/workflow.go
61.95% <32.14%> (-5.28%)
:arrow_down:

internal/server/workflow_vars.go
80.00% <41.17%> (-15.84%)
:arrow_down:

internal/sirius/get_applied_filters.go
100.00% <100.00%> (ø)

internal/sirius/get_task_list.go
86.44% <100.00%> (+0.72%)
:arrow_up:

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


Update track 1 READMEs with notice

@ronniegeraghty, @RickWinter see https://github.com/Azure/azure-sdk-for-rust/pull/1841/commits/aa0ff21a0cb9171ff85314961198bb49e79f67e5 for the non-generated changes.


Add GetGenHeader to Msg

For Middlware to act on generic headers, we need to provide a way to access them. Msg.GetGenHeader() returns the value of the requested header of the Msg.

Codecov Report

Merging #57 (da130c0) into main (664aca5) will increase coverage by 0.02%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main      #57      +/-   ##
==========================================
+ Coverage   84.18%   84.20%   +0.02%
==========================================
  Files          11       11
  Lines        1258     1260       +2
==========================================
+ Hits         1059     1061       +2
  Misses        137      137
  Partials       62       62

Impacted Files
Coverage Δ

msg.go
86.71% <100.00%> (+0.04%)
:arrow_up:

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


Allow distinguishing turbo:load events related to the initial page load or to turbo visits

The turbo:load event is triggered both on page load and for turbo visits. While this is great when writing code when Turbo is a requirement, this leads to duplicated work for the initial page load when writing Turbo-aware logic that also need to work for pages not using Turbo (and so using the native load event for the initial page load).
It would be great to be able to distinguish the 2 kinds of loads to support such use case (probably through a property in event.detail).

This is an old issue but it looks like it's possible now, I managed to do that by testing the event.detail.timing object.
The only difference between the turbo:load event from initial page load and turbo visits is that turbo visits have a timing object while the initial page load does not (see the calls to notifyApplicationAfterPageLoad)
So we can just check if the object is empty or not:
document.addEventListener('turbo:load', (event) => {
   const isInitialPageLoad = Object.keys(event.detail.timing).length === 0
}


Tell the agent which python libraries are available dynamically.

By replacing this hardcoded list with a dynamic command:
https://github.com/haesleinhuepf/bia-tischi/blob/771c638a7bd8d8430dc5d9e0167e08b8c24e02f4/src/bia_tischi/_utilities.py#L75

duplicate of #16


Fixed an incorrect hyperlink.

I found an incorrect hyperlink ... the "Context and Scope" link on the overview page takes you to the "Solution Strategy" page.

That's awesome - not only finding the bug, but fixing it at the same instant :-)


IMPORTANT: This template is deprecated - nuxt-community/starter-template

@johnleider Please See that the nuxt-community/starter-template is deprecated
must use https://github.com/nuxt/create-nuxt-app to crate app create-nuxt-ap have vuetify option it just need to update to latest version and some changes in layout.vue,index.vue hope you consider it

I haven't been heavily involved in nuxt support within the framework. Could you provide some help with this?

@johnleider I don't have much time anyway i will help my suggestion is, for nuxt+vuetify use create-nuxt-app and select vuetify as the UI currently there is no other starter template for us to create a new one..

I could try and help out with this.
Looks like the create-nuxt-app with vuetify is lacking an option for a la carte. Should future development just be directed towards create-nuxt-app? Or is there still interest in keeping a vuetify specific template up to date?

We should contribute in create-nuxt-app work on improve vuetify

Sorry for closing this issue I decided to work on this same repository to continue this as our vuetify nuxt template officially

#67 fixed in this PR


Create dataset loader for Okapi m-ARC

Dataloader name: okapi_m_arc/okapi_m_arc.py
DataCatalogue: http://seacrowd.github.io/seacrowd-catalogue/card.html?okapi_m_arc

Dataset
okapi_m_arc

Description
m-ARC is a multilingual version of ARC, a dataset of 7,787 genuine grade-school level, multiple-choice science questions assembled to encourage research in advanced question-answering and reasoning.

Subsets
-

Languages
ind, vie

Tasks
Commonsense Reasoning

License
Creative Commons Attribution Non Commercial 4.0 (cc-by-nc-4.0)

Homepage
http://nlp.uoregon.edu/download/okapi-eval/datasets/

HF URL
https://huggingface.co/datasets/jon-tow/okapi_arc_challenge

Paper URL
https://arxiv.org/abs/2307.16039

#self-assign

Back working on this. Sorry for the delay.

Back working on this. Sorry for the delay.

Sure, please let us know if you need any help, @tellarin!

Hi @tellarin, thanks for taking this PR. Just a heads up, due to the delay, I would like to let @SamuelCahyawijaya take over this issue if there's no update until Tuesday, 16 April 2024 EoD AoE (23:59 UTC-12).


[ART-6052] attach microshift build and check bugs

after build microshift complete, attach the build info advisory and sweep microshift bugs in promote job

implement in https://github.com/openshift-eng/aos-cd-jobs/pull/3563


Mem Leak

Hello and thank you for this project. It has helped me a lot to understand XDP and move forward with my own version.
After testing for mem leaks using Valgrind, I think that readcfg() is leaking. What are your thoughts?
==19146== 10,425 bytes in 2,085 blocks are definitely lost in loss record 11 of 11
==19146==    at 0x483B7F3: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so)
==19146==    by 0x494238E: strdup (strdup.c:42)
==19146==    by 0x41DCF7: readcfg (in /usr/bin/xdpfw)
==19146==    by 0x41EB93: updateconfig (in /usr/bin/xdpfw)
==19146==    by 0x4200E9: main (in /usr/bin/xdpfw)
Full log attached
valgrind.log

The leak comes from config.c:156
cfg->interface = strdup(interface);
Maybe we need to free() the return value after using it?

Possible fix in #33

Looks good! Thank you for the help :)

I am going to close this for now since I merged the PR. Feel free to reopen if needed!
Also, no problem on creating the project. I'm just glad it helps others with XDP and such.


feat: added OpenTelemetry instrumentation

Instruments telemetries from all 3 backend services.
I'm basing the instrumentation on Traceloop's image which output more data per span that can be used to generate tests later on:

HTTP Request Headers
HTTP Body
Propagation of trace-loop-id which is in use by tests

Closing this for now but will need to pick it back up for v2


unifi: 7.0.25 -> 7.1.61

Description of changes
Release notes: https://community.ui.com/releases/UniFi-Network-Application-7-1-61/06f67c89-c798-423f-91a2-4cb2bca7694d
-> I don't see any breaking changes!
I've updated my personal UniFi Network controller running on NixOS using services.unifi.enable = true; and had no problems so far!

Things done

Built on platform(s)

[x] x86_64-linux
[x] 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

[x] 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/)
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.

Thanks!


ShaderCompilerException at ShaderCompiler.compileShader

command: flutter test --machine --start-paused -d windows test\widget_test.dart
on: beta/3.3.0-0.3.pre
Thread 0 main threadShaderCompilerException: ShaderCompilerException: Shader compilation of "C:\src\flutter\packages\flutter\lib\src\material\shaders\ink_sparkle.frag" to "build\unit_test_assets\shaders/ink_sparkle.frag" failed with exit code -1073740791.content_copy
at ShaderCompiler.compileShader(shader_compiler.dart:77)
at <asynchronous gap>(async)
at writeBundle.<anonymous closure>(bundle_builder.dart:184)
at <asynchronous gap>(async)
at Future.wait.<anonymous closure>(future.dart:522)
at <asynchronous gap>(async)
at writeBundle(bundle_builder.dart:162)
at <asynchronous gap>(async)
at TestCommand._buildTestAsset(test.dart:479)
at <asynchronous gap>(async)
at TestCommand.runCommand(test.dart:318)
at <asynchronous gap>(async)
at FlutterCommand.run.<anonymous closure>(flutter_command.dart:1209)
at <asynchronous gap>(async)
at AppContext.run.<anonymous closure>(context.dart:150)
at <asynchronous gap>(async)
at CommandRunner.runCommand(command_runner.dart:209)
at <asynchronous gap>(async)
at FlutterCommandRunner.runCommand.<anonymous closure>(flutter_command_runner.dart:281)
at <asynchronous gap>(async)
at AppContext.run.<anonymous closure>(context.dart:150)
at <asynchronous gap>(async)
at FlutterCommandRunner.runCommand(flutter_command_runner.dart:229)
at <asynchronous gap>(async)
at run.<anonymous closure>.<anonymous closure>(runner.dart:62)
at <asynchronous gap>(async)
at AppContext.run.<anonymous closure>(context.dart:150)
at <asynchronous gap>(async)
at main(executable.dart:91)
at <asynchronous gap>(async)

dup of https://github.com/flutter/flutter/issues/107590


Excalidraw's Codesandbox isn't opening

When you try to open Excalidraw's github repository in Codesandbox it gives an error message "Only a max of 500 modules is allowed in a sandbox"

https://docs.excalidraw.com/docs/introduction/contributing#option-2---codesandbox

I can create a PR that removes Codesandbox option from the docs if needed :)

That's actually an old link. The new Cloud Codesandbox doesn't have that limitation, which we link to from the Development page: https://docs.excalidraw.com/docs/introduction/development#code-sandbox
You can certainly create a PR to align the Contributing page with the latest!


fix: pyzmq version fix

Trying to resolve following error. (is occurring in every PR)

@hpohekar, the build doc is passing for PRs now.


Refresh Data For Preview Window

hasAuthority and isLocalPlayer can change at runtime.  This window needs to reflect those changes.

nice

:tada: This PR is included in version 4.2.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


Build Host and push nuget package to our internal DevOps Artifacts feed

Create pipeline in this repo, check out the Host dev branch, update the references of the packages for the PowerShell worker, build Host bits using the build-extensions.ps1 script. Push nuget package to our internal DevOps Artifacts feed

Is there a reason why we want a dedicated build for the host as opposed to working with the published artifacts from the host build?

Hi @madelinegordon -- I am adding a few more details for this work item.

Modify existing build script located at https://github.com/Azure/azure-functions-host/blob/dev/build/build-extensions.ps1

Add a new parameter, e.g., $nightlyBuild. I would suggest using a switch instead of a boolean

Add the logic to update the reference to the PowerShell worker. As per our discussion, we will create a list of workers that haven been onboarded to build the Host. We can retrieve this list during the build process. However, for now just focus on the PowerShell worker.

Once you have modified the build script, test your changes to make sure the script continues to work without the $nightlyBuild flag.

Once everything is working locally, please send a PR and add @pragnagopa and me to review it.

Next, update Host pipeline

Add a new bool variable named $nightlyBuild and set it to $false by default. These means that the stages below will only execute if $nightlyBuild and set it to $true
Add a stage to copy the nuget package to the ArtifactStagingDirectory (if needed). Here is some sample code that does that for the PowerShell worker:

$packageName = 'Microsoft.Azure.Functions.PowerShellWorker'
$sourcePath  = (ls package/**/*/$packageName*.nupkg).FullName
      if (-not (test-path $sourcePath))
      {
        throw 'Unable to find $packageName*.nupkg at ./package'
      }
      Copy-Item -Path $sourcePath -Destination $(Build.ArtifactStagingDirectory) -ErrorAction Stop -Verbose -Force

Lastly, add a stage to push the nuget package to the feed. To do this, go to the pipeline and click Edit. Select the area in the yml file where you would like add the stage, in this case the end of the file.
On the Tasks section on the right type "push". From there, select NuGet. After that, set the following fields (highlighted in yellow):
Command is push
Target feed is the name of our feed
Check Allow duplicates to be skipped


ajb,aubuf: timestamp is given in [us]

In ajb.c change the timestamp unit from RTP timestamps (sample count) to [us]
per sample.
In aubuf.c adjust the timestamp for an audio frame only if there is partial
read.

Try to replace re_printf() for debug level 6 with re_trace API.

Yes, this is what I do for now.


Uncaught BlockCypher\Exception\BlockCypherInvalidPrivateKeyException: Invalid private key format, hex expected.Please install GMP extension.

I am trying to create, sign and send transaction from blockcypher's sample files.
But it throws an error
Fatal error: Uncaught BlockCypher\Exception\BlockCypherInvalidPrivateKeyException: Invalid private key format, hex expected.Please install GMP extension. in /opt/lampp/htdocs/bitiagowallet/php-client/blockcypher/php-client/lib/BlockCypher/Crypto/PrivateKeyManipulator.php:86 Stack trace: #0 /opt/lampp/htdocs/bitiagowallet/php-client/blockcypher/php-client/lib/BlockCypher/Crypto/PrivateKeyList.php(40): BlockCypher\Crypto\PrivateKeyManipulator::importPrivateKeyFromHex('032e958aed962d2...', true) #1 /opt/lampp/htdocs/bitiagowallet/php-client/blockcypher/php-client/lib/BlockCypher/Api/TXSkeleton.php(95): BlockCypher\Crypto\PrivateKeyList::fromHexPrivateKeyArray(Array, 'btc', true) #2 /opt/lampp/htdocs/bitiagowallet/php-client/blockcypher/php-client/lib/BlockCypher/Client/TXClient.php(35): BlockCypher\Api\TXSkeleton->sign(Array, 'btc') #3 /opt/lampp/htdocs/bitiagowallet/php-client/blockcypher/php-client/sample/transaction-api/CreateAndSignAndSendTransaction.php(31): BlockCypher\Client\TXClient->sign(Object(BlockCypher\Api\TXSke in /opt/lampp/htdocs/bitiagowallet/php-client/blockcypher/php-client/lib/BlockCypher/Crypto/PrivateKeyManipulator.php on line 86
I've given the private key to sign transaction returned by generate address endpoint.
Then why it's still giving such error... I can not figure it out... can anyone give the solution for this.??
Regards,
Madhuri

Fixed in #111.


Defined the @class docblock property

Defining the @class property in the initial doc block should allow this to be picked up in PHPStorm's auto-complete.
Tested by setting $def = new Def... and allowing PHPStorm to suggest Amp\Deferred
Tested by setting $emit = new Emit... and allowing PHPStorm to suggest Amp\Emitter

Unfortunately, it doesn't work for me. I installed it as dev-phpstorm-deferred-autocomplete, but there's no such suggestion. :-(
The strange thing is that if I write it out and hit Alt + Enter, the import is suggested correctly even without this patch.

Yeah it's working for me on 2017.2.4.  If you let me know what version you have, I can try and diagnose it for a specific version.  Otherwise, maybe I have a plugin that parses my docblocks for that information

Same version here. I can confirm that it works when I checkout your branch locally. But it doesn't work when amphp/amp is pulled as dependency. Maybe that's just a PhpStorm bug?

Seems like it also works even without the @class if I open the project directly.


Player doesn't support dashOptions to add extra methods form dash.js

Current Behavior
Well, Dash.js is becoming more and more popular these days we need to enhance some functionality to explore dash through this player.
Currently in filePlayer does support to add custom methods for hlsOptions, but for a dash player, there isn't have any available props to access another method of dash.js.
The issue was I needed to send cookies while requesting mpd file but the player isn't have enabled a required method for the dash.
Expected Behavior
So for access to this method, we can add dashOptions as hlsOptions, something like this.
<ReactPlayer
  config={
    file: {
        dashOptions: {
            getXHRWithCredentialsForType: {
                params: ['GET'],
                callback: (e) => console.log(e)
            }
        }
    }
  }
/>

Steps to Reproduce

This issue can be resolved with a just small change in FilePlayer.js
Need to update method for DashPlayer. After initialization of player, we can add a function which will call given function with given params(optional) and pass the response back to react-player through callback(optional) prop.

Added this request to solve this issue.
https://github.com/CookPete/react-player/pull/654
check this code out may this will be helpful.

I think #654 is a quite convoluted solution for this. You can access the dash instance with getInternalPlayer('dash') which makes it quite easy to call your own methods:
class Player extends Component {
  ref = player => {
    this.player = player
  }
  onReady = () => {
    const dash = this.player.getInternalPlayer('dash')
    console.log(dash.getXHRWithCredentialsForType('GET'))
  }
  render () {
    return (
      <ReactPlayer
        ref={this.ref}
        onReady={this.onReady}
        url='http://dash.edgesuite.net/envivio/EnvivioDash3/manifest.mpd'
        playing
      />
    )
  }
}

@CookPete, this would not allow setting an Authorization header to the XHR object. any ideas for handling that via Dash?

Given there explicitly is an updateHeaders function in Dash's ProtectionController I would have thought either of the two lines in my onError below would do something to fix the issue and add the Auth token:
 class Player extends Component {
    ref = player => {
      this.player = player
    }

    onError = () => {
      const dash = this.player.getInternalPlayer('dash');
      // Doesn't work:
      dash.setProtectionData({'httpRequestHeaders': {'Authorization': 'Token ...'}});
      // Also doesn't work
      dash.getProtectionController().setProtectionData({'httpRequestHeaders': {'Authorization': 'Token ...'}});
      // Still only ever returns false. If you look at the Dash.js repo code linked above you'd expect this to be set to true
      console.log(dash.getXHRWithCredentialsForType('GET'));
    }

    render () {
      return (
        <ReactPlayer
          ref={this.ref}
          onError={this.onError}
          url={this.props.url}
          playing={false}
          controls={true}
          muted={false}
          volume={1}
        />
      )
    }

But apparently not. The video does stream immediately and work perfectly if I force-add the token using a browser extension (e.g. ModHeader) though. @cookpete This is flat undoable or I am doing something wrong? Thanx


Dictionary of DateTime comparison. Am I doing something wrong, or is this an issue?

Two dateTimes put in identical Dictionaries, just 1 millisecond difference...
var date1 = new DateTime(2017, 3, 1);
var date2 = date1.AddMilliseconds(1);
var myDict1 = new Dictionary<string, DateTime>() { { "dateField", date1 } };
var myDict2 = new Dictionary<string, DateTime>() { { "dateField", date2 } };
myDict1.ShouldAllBeEquivalentTo(myDict2,
options => options.Using< DateTime >
(item =>   item.Subject.Should().BeCloseTo(item.Expectation, 1000))
.WhenTypeIs< DateTime >());
Why does the BeCloseTo rule not work? The test fails (Also tried with <KeyValuePair<sting, DateTime>> as the generic type? Confused. Can anybody help. thanks so much!

What's the failure that you're getting?  I just created a unit test using this code and the unit test passed.

Tried running this with v5.4.1
// Arrange
var date1 = new DateTime(2017, 3, 1);
var date2 = date1.AddMilliseconds(1);

var myDict1 = new Dictionary<string, DateTime>() { { "dateField", date1 } };
var myDict2 = new Dictionary<string, DateTime>() { { "dateField", date2 } };

// Act / Assert
myDict1.Should().BeEquivalentTo(myDict2,
    options => options.Using<DateTime>(item => item.Subject.Should().BeCloseTo(item.Expectation, 1.Seconds()))
        .WhenTypeIs<DateTime>());

and got

Expected pair[dateField] to be <2017-03-01 00:00:00.001>, but found <2017-03-01>

A description of what happens:
AssertEquality detects GenericDictionaryEquivalencyStep is able to handle Dictionary<string, DateTime>.
When AssertEquality tries to find an appropriate user handler for the context with two DateTimes as Subject and Expectation created by CreateForDictionaryItem, AssertionRuleEquivalencyStepAdapter.CanHandle returns false as context.SelectedMemberInfo is null.
If I force CanHandle to pass, the if (predicate(context)) in AssertionRule.AssertEquality is able to handle the context and the assertion passes as expected.
I'm not sure of the logic behind
public bool CanHandle(IEquivalencyValidationContext context, IEquivalencyAssertionOptions config)
{
    return (context.SelectedMemberInfo != null);
}


Upgrade to GHC 9.2

Problem:

Atlas is using GHC 8.10 at the moment, which is not compatible with Plutarch.

Solution:

Upgrade to GHC 9.2.

We need to double-check if the code base is really compatible and nothing is going to break.
@sourabhxyz Could you please confirm?

@4TT1L4 I am a bit confused, there is no PR yet for this issue.

IIUC, even the latest version of cardano-api (which is an essential dependency of framework) is using an older version of base (https://github.com/input-output-hk/cardano-node/blob/1.35.7/cardano-api/cardano-api.cabal#L14) blocking 9.2 upgrade at this point.

Please create a new issue, if you wish to upgrade the compiler version used by the CI.
It is also possible to have different builds with different GHC versions, like here:
https://github.com/input-output-hk/cardano-node/blob/2c9190f7813774f6a3dc13fb15e1ef20fc9786b6/.github/workflows/haskell-linux.yml#L28


Update queries appending a string with named parameter throws exception

This works and appends 'abc' to the data column
$updateStmt = $this->dbh->prepare('update mytable set data = data || 'abc' where id = :id');
$updateStmt->execute(array(
    'id' => $id
));

Passing the string as named parameter fails:
$updateStmt = $this->dbh->prepare('update mytable set data = data || :data where id = :id');
$updateStmt->execute(array(
    'id' => $id,
    'data' => 'abc'
));

Same error with:
$updateStmt = $this->dbh->prepare('update mytable set data = concat(data, :data) where id = :id');
$updateStmt->execute(array(
    'id' => $id,
    'data' => 'abc'
));

Error:
Crate\PDO\Exception\PDOException: SQLActionException[Failed to parse source [{"stmt":"update mytable set data = data || ?  where id = ?","args":{"1":"...","0":"abc"}}]]

/Users/boris/Documents/Productsup/platform-api-crate-backend/vendor/crate/crate-pdo/src/Crate/PDO/PDO.php:121
/Users/boris/Documents/Productsup/platform-api-crate-backend/vendor/crate/crate-pdo/src/Crate/PDO/PDOStatement.php:208
/Users/boris/Documents/Productsup/platform-api-crate-backend/vendor/crate/crate-pdo/src/Crate/PDO/PDOStatement.php:208

---
Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/35641510-update-queries-appending-a-string-with-named-parameter-throws-exception?utm_campaign=plugin&utm_content=tracker%2F505659&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F505659&utm_medium=issues&utm_source=github).

hi @0bp, we'll have a look at it. might be something that belongs to https://github.com/crate/crate-pdo but we'll see.

Very likely a crate-pdo issue
🐘   http localhost:4200/_sql stmt="select ? || '_abc' from sys.cluster" args:='["foobar"]'
HTTP/1.1 200 OK
Content-Length: 88
Content-Type: application/json; charset=UTF-8

{
    "cols": [
        "concat($1, '_abc')"
    ],
    "duration": 4.198138,
    "rowcount": 1,
    "rows": [
        [
            "foobar_abc"
        ]
    ]
}

Judging from the error the args are passed in a invalid format:
"args":{"1":"...","0":"abc"}
It should be a list and not a dictionary

@mfussenegger in your example you're doing select concat, which works on my end as well but it doesn't work on update queries appending an already existing value.
\Crate\PDO\Http\Server::doPost still as an array:
array(4) {
  'json' =>
  array(2) {
    'stmt' =>
    string(56) "update mytable set data = data || ?  where batch_id = ?"
    'args' =>
    array(2) {
      [1] =>
      string(32) "e46de7e1bcaaced9a54f1e9d0d2f800d"
      [0] =>
      string(3) "abc"
    }
  }

So, it's either a crate/crate issue or the error message output.

Just noticed the array order which is a bit odd. So I tried to reorder the parameters:
$updateStmt->execute(array(
    'id' => $id,
    'data' => 'abc'
));

Hi @0bp,
the issue was in the PDO driver. I have fixed the issue now in master https://github.com/crate/crate-pdo/commit/533f37475c7654ddeda557ad413b6ff1b148adb0. This fix will be in the hotfix release of version 5.1.
Cheers,
Michael

Thanks!
But it's fixed for that particular case only. If you do
update mytable set field = concat(field, :field) where id = :id and otherfield != :field

where you can't control the order of parameters because you're using them twice, it still fails. in that case the args look like this:
"args":{"1":"e46de7e1bcaaced9a54f1e9d0d2f800d","2":"abc"}}

thanks @0bp, will fix that also. sorry for not doing it in the first place.


Consider adding convention based factories

The current IFactory<T> interface is essentially a Func<ConstructerParams, T>
This requires a lot of boilerplate, since you need to define a constructor, fields and the CreateAsync method.
We could use a marker interface and look for a convention based CreateAsync method which can take parameters.
The current workaround would be to use records/primary constructors to simplify the declaration of a constructor/fields to the bare minimum.
The two options are
Current:
public record Factory(A a, B b) : IFactory<(A, B)>
{
     public ValueTask<(A, B)> CreateAsync() => new ValueTask<(A, B)>((a, b));
}

Suggested:
public class Factory : IFactory<(A, B)>
{
     public ValueTask<(A, B)> CreateAsync(A a, B b) => new ValueTask<(A, B)>((a, b));
}

I've gone on a different route with Factory Methods: https://github.com/YairHalberstadt/stronginject/pull/35


AIRFLOW-2060: update pendulum version to fix task clearing issue with…

… deep copy
Make sure you have checked all steps below.
JIRA

[ ] My PR addresses the following Airflow JIRA issues and references them in the PR title. For example, "[AIRFLOW-XXX] My Airflow PR"

https://issues.apache.org/jira/browse/AIRFLOW-2060

Description
When clearing task from the Web UI it fails because of a failing into deep copy of timezone objects.
Tests
Single dependency update, no new test.
Commits

[ ] My commits all reference JIRA issues in their subject lines, and I have squashed multiple commits if they address the same issue. In addition, my commits follow the guidelines from "How to write a good git commit message":

Subject is separated from body by a blank line
Subject is limited to 50 characters
Subject does not end with a period
Subject uses the imperative mood ("add", not "adding")
Body wraps at 72 characters
Body explains "what" and "why", not "how"

[ ] Passes git diff upstream/master -u -- "*.py" | flake8 --diff

The issue is fixed in the pendulum changelog on 1.4.2 version

Fixed deepcopy() raising an error when using UTC.

Codecov Report

Merging #3154 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master    #3154   +/-   ##
=======================================
  Coverage   73.57%   73.57%
=======================================
  Files         191      191
  Lines       14346    14346
=======================================
  Hits        10555    10555
  Misses       3791     3791

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 05e1861...8344857. Read the comment docs.


[DISCUSS] Rename to "Tech Docs Template"

In other repos, this project is named "Tech Docs Template". We should be consistent, so I suggest we either rename this particular repo, or rename it in the other repos:

https://github.com/alphagov/tech-docs-template
https://github.com/alphagov/tech-docs-gem
https://github.com/alphagov/tech-docs-monitor

I may have missed a discussion about the branding of the project, so putting this up for discussion.

+1 to this. We should be avoiding additional acronyms at all costs!

Fine by me


Realtime latency tips

I have been using this library for a few years in a quite popular Android piano app. Today I looked at this repo again and saw that a lot of work has been done. I tried the most recent version and it works even faster then before. So that's nice!
I am optimizing my app for as low latency as possible, and was wondering what the best approach would be for this regarding the resampler?
In my current implementation I feed the resampler empty input data until the number of samples available in the output buffer is not 0 anymore. This is done once after the initialization of the resamplers. Is this a good approach? Or should I feed the actual input audio immediately?
double * dummyInput = (double *) calloc(sizeof(double),channelLength);
for (int i = 0; i < channels; i++) {
   resamplers[i] = new r8b::CDSPResampler16((double) sampleRateIn, (double) sampleRateOut, channelLength);

   double * dummyOut;
   int processedCount = 0;
   while (processedCount == 0) {
      processedCount = resamplers[i]->process(dummyInput, channelLength, dummyOut);
    }
}
free(dummyInput);

I am using PFFFT with NEON on ARM64: #define R8B_PFFFT 1
Thanks for this great library!

I would try to feed the data immediately to reduce latency. Another possible way to reduce latency is to finetune the ReqTransBand parameter - by default it's 2.0, but 5.0 may be acceptable as well and this should reduce latency.

What is your app name and URL? I would like to include it to the list of library users, if you do not mind.

Ok, great. I will test with that.

The app is Mini Piano and can be found at https://play.google.com/store/apps/details?id=umito.android.minipiano

I assume that if I resample from 22050 to 44100 it automatically uses a faster path due to it being 2x? Or do I need to specify a different resampler?

Yes, it will use the fastest path in any sample rate combinations. All latest changes I've implemented I think assure that. No idea how it can be optimized further.

The ReqTransBand controls filter's transition band. For 22050 to 44100 conversion 2.0 means that frequencies beyond 10800 Hz are attenuated, 5.0 means that frequencies beyond 10473.75 are attenuated - not a big difference, but provides a bit lower latency.

Ok, can I also use that for 44100 -> 48000 ? Or should I use the default there?

Yes, you can for 44100 -> 48000 conversion you can use even 8.0 without audible issues. 2.0 is mostly for professional "no regrets" use.

Ok, thanks! It really is helpful.
I have one final question, is it possible using r8brain to like frequency shift the input? For example, I have a wav file with a note on 443 hz, but want it to transpose to 440hz? In FFMPEG I can do this using samplerate options, so was wondering if I can do it dynamically as well.

r8brain-free-src has no time-preserving frequency shifting, but you can do any frequency shifts that are non-time preserving.

Ok, thank you very much for the info!

Hi @avaneev ,
First off, thanks for creating this library, it looks great.
Building off @peterdk 's initial comment, I observed the same phenomenon using r8b::CDSPResampler16, in which the number of output samples returned by the first few calls to process() is zero. Like you suggested, I am trying to feed the data in immediately. However, the return value of zero is still a problem for me because when my program nears the end of its execution, it expects a certain number of samples to already have been written overall. If the first few iterations of process() return zero samples written, then the resulting sum is off.
Consider the pseudocode from your sample program example.cpp:
`
long long int ol = inf.SampleCount * OutSampleRate / inf.SampleRate;
while( ol > 0 )
{
	...
	ol -= WriteCount;
}

`
I'm modeling my code after this and I essentially get an infinite loop because of those iterations that are setting WriteCount to zero.
Like @peterdk , I have found a couple of ways around this and I'm happy with the resulting audio, but I still wanted to ping the author and ask if there is a suggested way to handle this, and perhaps if there is also an explanation for the returned zeroes.
Thank you!

Digital filters have an inherent delay, which is absorbed by the algorithm and thus initially it may return zeros. You've omitted a part in example.cpp which feeds zero input to the resampler when the input data ends. This is the solution to your problem.

I see, thanks for the explanation. How about when the input data begins? Is the input data not consumed and lost during the short period of time that process() is returning zero?

No, the input data is not lost - it is accumulated in internal buffers.

Thanks!


Add test for invalid CapturePieceType when en passant is available

See issue https://github.com/SebLague/Chess-Challenge/issues/320

Merged, thanks! (for some reason didn't update here after resolving merge conflicts, so closing).