第一次运行项目就失败了，求大佬

react-native run-android
info A dev server is already running for this project on port 8081.
info Installing the app...
Downloading file:/D:/gradle-8.3-all.zip
...................10%...................20%...................30%...................40%...................50%...................60%...................70%...................80%...................90%...................100%

info 💡 Tip: Make sure that you have set up your development environment correctly, by running npx react-native doctor. To
read more about doctor command visit: https://github.com/react-native-community/cli/blob/main/packages/cli-doctor/README.md#doctor

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring root project 'SeekSnow'.
> Could not determine the dependencies of null.
   > Could not resolve all task dependencies for configuration ':classpath'.
      > Could not find com.android.tools.build:gradle:.
        Required by:
            project :
      > Could not resolve com.facebook.react:react-native-gradle-plugin.
        Required by:
            project :
         > No matching variant of project :gradle-plugin was found. The consumer was configured to find a library for use during runtime, compatible with Java 8, packaged as a jar, and its dependencies declared externally, as well as attribute 'org.gradle.plugin.api-version' with value '8.3' but:
             - Variant 'apiElements' capability com.facebook.react:react-native-gradle-plugin:unspecified declares a library, packaged as a jar, and its dependencies declared externally:
                 - Incompatible because this component declares a component for use during compile-time, compatible with Java 11 and the consumer needed a component for use during runtime, compatible with Java 8
                 - Other compatible attribute:
                     - Doesn't say anything about org.gradle.plugin.api-version (required '8.3')
             - Variant 'mainSourceElements' capability com.facebook.react:react-native-gradle-plugin:unspecified declares a component, and its dependencies declared externally:
                 - Incompatible because this component declares a component of category 'verification' and the consumer needed a library
                 - Other compatible attributes:
                     - Doesn't say anything about its target Java version (required compatibility with Java 8)
                     - Doesn't say anything about its elements (required them packaged as a jar)
                     - Doesn't say anything about org.gradle.plugin.api-version (required '8.3')
                     - Doesn't say anything about its usage (required runtime)
             - Variant 'runtimeElements' capability com.facebook.react:react-native-gradle-plugin:unspecified declares a library for use during runtime, packaged as a jar, and its dependencies declared externally:
                 - Incompatible because this component declares a component, compatible with Java 11 and the consumer needed a component, compatible with Java 8
                 - Other compatible attribute:
                     - Doesn't say anything about org.gradle.plugin.api-version (required '8.3')
             - Variant 'testResultsElementsForTest' capability com.facebook.react:react-native-gradle-plugin:unspecified:
                 - Incompatible because this component declares a component of category 'verification' and the consumer needed a library
                 - Other compatible attributes:
                     - Doesn't say anything about how its dependencies are found (required its dependencies declared externally)
                     - Doesn't say anything about its target Java version (required compatibility with Java 8)
                     - Doesn't say anything about its elements (required them packaged as a jar)
                     - Doesn't say anything about org.gradle.plugin.api-version (required '8.3')
                     - Doesn't say anything about its usage (required runtime)
      > Could not find org.jetbrains.kotlin:kotlin-gradle-plugin:.
        Required by:
            project :

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
> Get more help at https://help.gradle.org.

jdk版本不对

@sunnylqm 是的是的，我版本太低了，感谢


Dashboard delete broken

Just opens the show page. Missing _method?
Let's create an acceptance test for it first.

Unfortunately, there IS a spec:
https://github.com/prometheus/promdash/blob/master/spec/features/dashboards_spec.rb#L145-L155
and it passes.
The issue is, as part of our new split between base.js and application.js, base.js doesn't exist in production.

fixed by https://github.com/prometheus/promdash/commit/73515218b57662f6208fc1c752805d8291e25ede


Luma config is outdated

some param was renamed,some deleted.

It's not.
https://github.com/AuroraWright/Luma3DS/blob/master/source/config.c#L74-L85

Ah sorry I didn't view that you updated it...


Legends Awakened Bugfixes

Addressing issues regarding the Gen4 Legends Awakened set bugs found on trello

 KYOGRE_32

 LOPUNNY_33

 REGICE_36

 REGISTEEL_39

 SHEDINJA_40

 VICTREEBEL_44

 VILEPLUME_45

 ANORITH_46

 EXEGGUTOR_54

 HOUNDOOM_57

 POLIWRATH_35


rich-text formatting completed

What's New?
Includes a whole new way to format strings with various rich text identifiers.
c := color.New()

c.PrintlnRT("This is the example of *Rich Text Formatting* in the ~terminal~. (fg:black|(bg:cyan|BLACK text on a CYAN background)).")

Output:

Usage
BOLD - *bold text*
ITALICS - _italicized text_
UNDERLINE - ~underlined text~
TEXT COLOR - (fg:red|red text)
BACKGROUND COLOR - (bg:cyan|cyan background)
Feel free to suggest anything you feel should be added to this PR.

This is a response to my issue #117

@fatih Can you take a look at this.

@fatih @bogem @zddhub


Add never_valid transaction parameter to permit proof-of-capability signing

Is your feature request related to a problem? Please describe.
As a user of Penumbra, I want to be able to prove that I could perform some transaction without authorizing the transaction itself. Examples of situations where this would be useful:

Validators can prove that they self-delegate
Delegators can prove that they delegate a certain amount to a validator, in exchange for special services
DAO members can prove they hold a particular token, in order to get access to services or goods
etc.

If there was a way to prove capability of doing a transaction, without ever authorizing a valid transaction, then these use-cases would be unlocked. It turns out there is a backwards-compatible, non-consensus-breaking, straightforward way to accomplish this.
Describe the solution you'd like

Add a new field to TransactionParameters named never_valid, whose default value if absent is false, as is the default in protobuf.
Add a new consensus rule so that any transaction which would have been otherwise accepted but whose never_valid field is true is still rejected.
Add a method to the transaction planner to set the never_valid field to true.
Add an RPC to pd which checks a transaction for validity, returning at least one of three values, corresponding to the statuses: "invalid", "would have been valid except for the never_valid field", and "valid".

Having done this, users can prove that they hold at least a certain balance of a particular token by building a never_valid transaction which consists only of spends and outputs, which outputs the specified amount of the token to an ephemeral address, and then revealing the output action. A counterparty can check the proof using the RPC in (4), and all they will learn is whether or not the person had sufficient value to cover the revealed output, not their total funds, and not any other information about their wallet balance. Similar protocols can be used for partial disclosure of other types of on-chain capability.
Describe alternatives you've considered
This could also be accomplished by setting an incorrect chain ID or an already-expired expiry time, but neither of these solutions are as clean or easy to present to the user. It would be good for users to have assurance that they are signing a proof of capability which can in no circumstance ever be used to authorize a real transaction, rather than having to carefully inspect an approval dialog to ensure that the chain ID is bogus or the expiry height is past (a moving target!).

We don't want to do this, for three reasons.

We're in a feature freeze and don't want to add new features other than ones that are already planned.
We don't want to encourage users to sign transactions in order to prove things about their account state. This is a very dangerous antipattern, and having a special "valid-never" feature doesn't really mitigate it, because it relies on users understanding that they're signing something BUT that it won't have effect for some special reason.
The use cases listed are already supported by the existing transaction disclosure mechanisms


Activity Logs

Using your query to create a .net application.  Thank you for your hard work!  As for the activity section I believe that's coming from a site: https://analytics.tryfi.com
It looks like it's on a aws system and having issues getting through.  Giving me a {"message":"Missing Authentication Token"}.  Tried the session_id but no luck.  I don't believe it's a graphql query for the analytics (pet ranking, etc..)

I believe it's all graphql even for the activity tracker.

I don't know GraphQL at the moment so in the mean time I wrote a quick and dirty script to scrape for activity data: https://github.com/cwille97/fiactivity

I created a .net app (vb.net) with the help of sbabcock23's python code.  If you want I can post the code that uses graphql that retrieves the information and the gathers it.

I am an amateur programmer so please be kind when you see this code..  The first part gets the sessionID, the second part gets just some of the basic information from the account.  I also have code that dives deeper into it and shows a daily activity of the steps taken.  I also use gmap.net to show where the dog is on a map using the GPS coordinates.  However what I can't seem to find is the rankings, etc..
`   Try
Dim logincookie As CookieContainer
        Dim postData As String = "password=" & My.Settings.Password & "&email=" & My.Settings.UserName
        Dim tempCookies As New CookieContainer
        Dim encoding As New UTF8Encoding
        Dim byteData As Byte() = encoding.GetBytes(postData)

        Dim postReq As HttpWebRequest = DirectCast(System.Net.WebRequest.Create("https://api.tryfi.com/auth/login"), HttpWebRequest)

        petStatsTimer.Start()
            countdownTimer.Start()
            postReq.Method = "POST"
            postReq.KeepAlive = True
            postReq.CookieContainer = tempCookies
            postReq.CookieContainer = CookieJar
            postReq.AllowAutoRedirect = False
            postReq.ContentType = "application/x-www-form-urlencoded"
            postReq.UserAgent = "Mozilla/5.0 (Windows; U; Windows NT 6.1; ru; rv:<IP_ADDRESS>) Gecko/20100401 Firefox/4.0 (.NET CLR 3.5.30729)"
            postReq.ContentLength = byteData.Length

            Dim postreqstream As Stream = postReq.GetRequestStream()
            postreqstream.Write(byteData, 0, byteData.Length)
            postreqstream.Close()
            Dim postresponse As HttpWebResponse

            postresponse = DirectCast(postReq.GetResponse(), HttpWebResponse)
            Dim postresponseCode = postresponse.StatusCode

            tempCookies.Add(postresponse.Cookies)
            For Each tempCookie In postresponse.Cookies
                CookieJar.Add(tempCookie)
            Next
            logincookie = tempCookies

            Dim postreqreader As New StreamReader(postresponse.GetResponseStream())

            Dim thepage As String = postreqreader.ReadToEnd
            dict = jss.Deserialize(Of Dictionary(Of String, Object))(thepage)

        For Each item In dict
                session_id = dict("sessionId").ToString
                user_id = dict("userId").ToString
                email_id = dict("email").ToString
            Next
            fiSID = postresponse.Cookies.Item(0).Value 'fi SessionId

            Try

                ' Get Pet Information

                Dim restTryFiList As RestClient = New RestClient("https://api.tryfi.com/graphql?query=query " & QUERY_CURRENT_USER_FULL_DETAIL + FRAGMENT_USER_DETAILS + FRAGMENT_USER_FULL_DETAILS + FRAGMENT_PET_PROFILE + FRAGEMENT_BASE_PET_PROFILE + FRAGMENT_BASE_DETAILS + FRAGMENT_POSITION_COORDINATES + FRAGMENT_BREED_DETAILS + FRAGMENT_PHOTO_DETAILS + FRAGMENT_DEVICE_DETAILS + FRAGMENT_LED_DETAILS + FRAGMENT_OPERATIONAL_DETAILS + FRAGMENT_CONNECTION_STATE_DETAILS)
                restTryFiList.AddDefaultHeader("Content-Type", "application/json")
                Dim requestTryFiList As RestRequest = New RestRequest(Method.POST)

                requestTryFiList.AddHeader("Content-Type", "application/json")
                requestTryFiList.AddCookie("fi.sid", fiSID)
                Dim responseTryFiList As RestResponse = restTryFiList.Execute(requestTryFiList)
                TryFiDict = jss.Deserialize(Of Dictionary(Of String, Object))(responseTryFiList.Content)

                For Each item In TryFiDict
                    first_name = TryFiDict.Item("data").Item("currentUser").Item("firstName")
                    last_name = TryFiDict.Item("data").Item("currentUser").Item("lastName")
                    pet_id = TryFiDict.Item("data").item("currentUser").item("userHouseholds")(0).item("household").item("pets")(0).item("id")
                    pet_name = TryFiDict.Item("data").item("currentUser").item("userHouseholds")(0).item("household").item("pets")(0).Item("name")
                    pet_birth_date = TryFiDict.Item("data").item("currentUser").item("userHouseholds")(0).item("household").item("pets")(0)("monthOfBirth") & "/" & TryFiDict.Item("data").item("currentUser").item("userHouseholds")(0).item("household").item("pets")(0)("dayOfBirth") & "/" & TryFiDict.Item("data").item("currentUser").item("userHouseholds")(0).item("household").item("pets")(0)("yearOfBirth")
                    pet_breed = TryFiDict.Item("data").item("currentUser").item("userHouseholds")(0).item("household").item("pets")(0).item("breed").item("name")
                    pet_image = TryFiDict.Item("data").item("currentUser").item("userHouseholds")(0).item("household").item("pets")(0).item("photos").item("first").item("image").item("fullSize")
                    pet_gender = TryFiDict.Item("data").item("currentUser").item("userHouseholds")(0).item("household").item("pets")(0).item("gender")
                    location_last_updated = TryFiDict.Item("data").item("currentUser").item("userHouseholds")(0).item("household").item("bases")(0).item("infoLastUpdated")
                    base_id = TryFiDict.Item("data").item("currentUser").item("userHouseholds")(0).item("household").item("bases")(0).item("baseId")
                    network_name = TryFiDict.Item("data").item("currentUser").item("userHouseholds")(0).item("household").item("bases")(0).item("networkName")
                    online = TryFiDict.Item("data").item("currentUser").item("userHouseholds")(0).item("household").item("bases")(0).item("online")
                    onlineQuality = TryFiDict.Item("data").item("currentUser").item("userHouseholds")(0).item("household").item("bases")(0).item("onlineQuality")
                    led_color = TryFiDict.Item("data").item("currentUser").item("userHouseholds")(0).item("household").item("pets")(0).item("device").item("ledColor").item("name")
                    led_color_code = TryFiDict.Item("data").item("currentUser").item("userHouseholds")(0).item("household").item("pets")(0).item("device").item("ledColor").item("ledColorCode")
                    module_id = TryFiDict.Item("data").item("currentUser").item("userHouseholds")(0).item("household").item("pets")(0).item("device").item("moduleId")
                    battery_percentage = TryFiDict.Item("data").item("currentUser").item("userHouseholds")(0).item("household").item("pets")(0).item("device").item("info").item("batteryPercent")
                    is_charging = TryFiDict.Item("data").item("currentUser").item("userHouseholds")(0).item("household").item("pets")(0).item("device").item("info").item("isCharging")
                    led_enabled = TryFiDict.Item("data").item("currentUser").item("userHouseholds")(0).item("household").item("pets")(0).item("device").item("operationParams").item("ledEnabled")
                Next

        Catch ex As Exception
                MsgBox("Error encounered, please let the developer know of this error:" & ex.ToString)
                Exit Sub
            End Try

    Catch ex As Exception
        MsgBox(ex.ToString)
    End Try`

Constants:
`Module modTryFiConst
Public stats_monthly_date_start
Public stats_monthly_date_end
Public stats_monthly_total_steps
Public stats_monthly_total_steps_goal
Public stats_weekly_date_start
Public stats_weekly_date_end
Public stats_weekly_total_steps
Public stats_weekly_total_steps_goal

Public stats_daily_date_start
Public stats_daily_date_end
Public stats_daily_total_steps
Public stats_daily_total_steps_goal

Public TryFiDict As Dictionary(Of String, Object)
Public fiStepsMonthlyDict As Dictionary(Of String, Object)
Public dtMonthly = New DataTable("dtMonthly")
Public dtDaily = New DataTable("dtDaily")

Public Const API_HOST_URL_BASE = "https://api.tryfi.com"
Public Const API_GRAPHQL = "/graphql"
Public Const API_LOGIN = "/auth/login"

Public Const PET_MODE_NORMAL = "NORMAL"
Public Const PET_MODE_LOST = "LOST_DOG"
Public Const PET_ACTIVITY_ONGOINGWALK = "OngoingWalk"
Public Const PET_ACTIVITY_ONGOINGREST = "OngoingRest"
Public Const PET_ACTIVITY_WALK = "Walk"
Public Const PET_ACTIVITY_REST = "Rest"

Public Const VAR_PET_ID = "__PET_ID__"

Public Const QUERY_CURRENT_USER = "query {  currentUser {    ...UserDetails  }}"
Public Const QUERY_CURRENT_USER_FULL_DETAIL = "query {  currentUser {    ...UserFullDetails  }}"
Public Const QUERY_PET_CURRENT_LOCATION = "query {  pet (id: \" & VAR_PET_ID & "\) {    ongoingActivity(walksVersion: 1) {      __typename      ...OngoingActivityDetails    }  }}"

Public QUERY_PET_ACTIVITY = "query {  pet (id: " & VAR_PET_ID & ") {       dailyStat: currentActivitySummary (period: DAILY) {      ...ActivitySummaryDetails    }    weeklyStat: currentActivitySummary (period: WEEKLY) {      ...ActivitySummaryDetails    }    monthlyStat: currentActivitySummary (period: MONTHLY) {      ...ActivitySummaryDetails    }  }}"

Public Const QUERY_PET_DEVICE_DETAILS = "query {  pet (id: \" & VAR_PET_ID & "\"") {    __typename    ...PetProfile  }}"

Public Const FRAGMENT_USER_DETAILS = "fragment UserDetails on User {  __typename   id  email  firstName  lastName  phoneNumber  fiNewsNotificationsEnabled  chipReseller {    __typename    id  }}"
Public Const FRAGMENT_USER_FULL_DETAILS = "fragment UserFullDetails on User {  __typename  ...UserDetails  userHouseholds {    __typename    household {      __typename      pets {        __typename        ...PetProfile      }      bases {        __typename        ...BaseDetails      }    }  }}"
Public Const FRAGEMENT_BASE_PET_PROFILE = "fragment BasePetProfile on BasePet {  __typename  id  name  homeCityState  yearOfBirth  monthOfBirth  dayOfBirth  gender  weight  isPurebred  breed {    __typename    ...BreedDetails  }  photos {    __typename    first {      __typename      ...PhotoDetails    }    items {      __typename      ...PhotoDetails    }  }  instagramHandle  }"
Public Const FRAGMENT_BREED_DETAILS = "fragment BreedDetails on Breed {  __typename  id  name  popularityScore}"
Public Const FRAGMENT_PHOTO_DETAILS = "fragment PhotoDetails on Photo {  __typename  id  caption  date  likeCount  liked  image {    __typename    fullSize  }}"
Public Const FRAGMENT_PET_PROFILE = "fragment PetProfile on Pet {  __typename  ...BasePetProfile  chip {    __typename    shortId  }  device {    __typename    ...DeviceDetails  }}"
Public Const FRAGMENT_DEVICE_DETAILS = "fragment DeviceDetails on Device {  __typename  id  moduleId  info  subscriptionId  hasActiveSubscription  hasSubscriptionOverride  nextLocationUpdateExpectedBy  operationParams {    __typename    ...OperationParamsDetails  }  lastConnectionState {    __typename    ...ConnectionStateDetails  }  ledColor {    __typename    ...LedColorDetails  }  availableLedColors {    __typename    ...LedColorDetails  }}"
Public Const FRAGMENT_LED_DETAILS = "fragment LedColorDetails on LedColor {  __typename  ledColorCode  hexCode  name}"
Public Const FRAGMENT_CONNECTION_STATE_DETAILS = "fragment ConnectionStateDetails on ConnectionState {  __typename  date  ... on ConnectedToUser {    user {      __typename      ...UserDetails    }  }  ... on ConnectedToBase {    chargingBase {      __typename      id    }  }  ... on ConnectedToCellular {    signalStrengthPercent  }  ... on UnknownConnectivity {    unknownConnectivity  }}"
Public Const FRAGMENT_OPERATIONAL_DETAILS = "fragment OperationParamsDetails on OperationParams {  __typename  mode  ledEnabled  ledOffAt}"
Public Const FRAGMENT_BASE_DETAILS = "fragment BaseDetails on ChargingBase {  __typename  baseId  name  position {    __typename    ...PositionCoordinates  }  infoLastUpdated  networkName  online  onlineQuality}"
Public Const FRAGMENT_POSITION_COORDINATES = "fragment PositionCoordinates on Position {  __typename  latitude  longitude}"
Public Const FRAGMENT_ONGOING_ACTIVITY_DETAILS = "fragment OngoingActivityDetails on OngoingActivity {  __typename  start  presentUser {    __typename    ...UserDetails  }  areaName  lastReportTimestamp  obfuscatedReason  totalSteps  uncertaintyInfo {    __typename    ...UncertaintyInfoDetails  }  ... on OngoingWalk {    distance    positions {      __typename      ...LocationPoint    }    path {      __typename      ...PositionCoordinates    }  }  ... on OngoingRest {    position {      __typename      ...PositionCoordinates    }    place {      __typename      ...PlaceDetails    }  }}"
Public Const FRAGMENT_UNCERTAINTY_DETAILS = "fragment UncertaintyInfoDetails on UncertaintyInfo {  __typename  areaName  updatedAt  circle {    __typename    ...CircleDetails  }}"
Public Const FRAGMENT_CIRCLE_DETAILS = "fragment CircleDetails on Circle {  __typename  radius  latitude  longitude}"
Public Const FRAGMENT_LOCATION_POINT = "fragment LocationPoint on Location {  __typename  date  errorRadius  position {    __typename    ...PositionCoordinates  }}"
Public Const FRAGMENT_PLACE_DETAILS = "fragment PlaceDetails on Place {  __typename  id  name  address  position {    __typename    ...PositionCoordinates  }  radius}"
Public Const FRAGMENT_ACTIVITY_SUMMARY_DETAILS = "fragment ActivitySummaryDetails on ActivitySummary {  __typename  start  end  totalSteps  stepGoal  dailySteps {    __typename    date    totalSteps    stepGoal  }  totalDistance}"

Public Const MUTATION_DEVICE_OPS = "mutation UpdateDeviceOperationParams($input: UpdateDeviceOperationParamsInput!) {  updateDeviceOperationParams(input: $input) {    __typename    ...DeviceDetails  }}"
Public Const MUTATION_SET_LED_COLOR = "mutation SetDeviceLed($moduleId: String!, $ledColorCode: Int!) {  setDeviceLed(moduleId: $moduleId, ledColorCode: $ledColorCode) {    __typename    ...DeviceDetails  }}"

End Module`

Hi all, I'm super glad to come across this repo and some of the work being pulled together here. It's been really useful in trying to get my dog's data out of the Fi service.
I'm reasonably familiar with GraphQL and don't need a whole application just to grab this data once (I don't have a need to edit anything at this point)– I've just been using Postman and issuing GraphQL queries directly to api.tryfi.com.
I want a copy of my dog's history (walks, steps, sleep/naps, etc.), but find it hugely disappointing that I have to continue to pay for the service if I want access to these things. Seems pretty horrible that if I want to look back on a fun walk we had years from now, I have to keep the service active.
Since the API isn't documented, I haven't found an obvious way to get the Fi GraphQL schema, so I've been sifting through the code here and at @cwille97's repo.
My question: does anyone have the complete schema anywhere to basically replicate what you can get in the app?
So far I've gotten everything from the Fi app except the historical activity (queries like @jmargel74 's seem to just do the most recent days/month). Can anyone offer cursor or pagination schema to get activity by day all the way back to the first day of my dog's records? I've tried a bunch of things blind, but I'm just guessing here.
To be specific, if you go to the Activity or Sleep screens under the data tab, it looks like it's using a pet({ID}) parameter with:
dailyStat/weeklyStat/monthlyStat: currentActivitySummary (period: DAILY/WEEKLY/MONTHLY)
For Activity, the above only loads the current period, but the app lets you swipe to go back to previous periods. I'm wondering how to emulate this in GraphQL? I've been able to use limit and cursor parameters in other places, like for the Feed or for Sleep to get more records, but the same approach doesn't work here (GraphQL returns an error that these parameters aren't recognized on currentActivitySummary).
Here's me getting more records for rest/sleep, for example, upping the limit parameter:
query {
    pet(id: "{ID}") {
        dailyStat: restSummaryFeed(cursor: null, period: DAILY, limit: 1500){
             # other return fragments here
        }
}

If the schema isn't known, I would really appreciate some suggestions to try for getting historical activity (steps, active time, strain). I'll also organize what I've figured out and will share it here.


Links not working in sidebar

I don't know if it's just me, but some links of the menu just don't work.

Me too.

Same. It seems if you click a broken one (like cards), then all of them break.

http://material-ui.com/#/components/cards is broken.

@ocyedwin Here is the issue https://github.com/callemall/material-ui/issues/1723. Fixed by https://github.com/callemall/material-ui/pull/1724.

This should be fixed now.


handle files with different scale_factor and add_offset

It would be nice to handle netcdf files with different scale_factor and add_offset.
I recently used the ECMWF API to generate a bunch of netcdf3 files (in parallel, using dask!) but unfortunately the generated files all have different scale_factor and add_offset.
Here are four files that we would like to virtually aggregate with kerchunk:
14:30 $ aws s3 ls s3://rsignellbucket1/era5_land/ --endpoint https://mghp.osn.xsede.org --no-sign-request
2022-08-18 14:28:56  192215564 conus_2019-12-01.nc
2022-08-18 14:28:58  192215560 conus_2019-12-15.nc
2022-08-18 14:28:58  192215560 conus_2019-12-29.nc
2022-08-18 14:28:59  192215560 conus_2020-01-12.nc

Thinking about this some more, I'm not sure this is possible.    There is no way in the NetCDF Data model (or Zarr data model) to store metadata like add_offset and scale_factor that changes on a per-chunk basis like this, right @martindurant ?

I believe it would require a change in zarr/numcodecs to pass context=, about where we are in the overall array, to the codec. I've wanted this kind of thing for a while (including start/stop to be passed to the storage layer), so I suppose I should just do it, rather than go around asking people if they agree it's a good idea.

Go Martin Go!   It certainly would be handy in this ERA5 API workflow!

Just a note that I implemented this workaround:
After the dask worker downloads the netcdf3 file, it computes the bitinformation using xbitinfo, and then determines the keepbits for each variable, based on 99% retention of real information.     It then bitrounds using that information, and stores as 32bit floats in netcdf4 before pushing to s3.     The resulting bitrounded NetCDF4 files are 3 times smaller than the packed NetCDF3 files!

Well, but you could have saved them as zarr in that case too, right? No one ever said netCDF3 was space efficient...

I could have, but since there is no difference in cloud-based access between NetCDF4 and Zarr when using Python, and NetCDF4 files are more friendly for R users, NetCDF4 seems the better choice here!

Hi all - @dblodgett-usgs asked me to consider this from an R perspective. For this type of task (lazy read, access, manipulation) I rely on terra and its GDAL bindings.
The TL/DR is that R doesn't have good (any?) zarr support but does tackle the above challenges pretty well for NetCDF/COG/TIF/STAC/THREDDS type data. I believe that GDAL handles the unpacking of data so the example below of aggregations would apply to that.
Below are some brief examples using the above datasets and the public NWM forcings. The workflow relies on appending the vsis3 (or vsicurl) prefixes to data URLs.
ERA5-land data
# load libraries
# Here is the link to an s3 file appended with the GDAL vsis3 prefix
url = '/vsis3/era5-pds/2020/01/data/air_pressure_at_mean_sea_level.nc'

# Lazy Read
(d = rast(url))
#> Warning: [rast] unknown extent

At this stage we don't have data, just structure.
With it we can look at layer names, dimensions and spatial attributes:
#> class       : SpatRaster
#> dimensions  : 721, 1440, 744  (nrow, ncol, nlyr)
#> resolution  : 0.0006944444, 0.001386963  (x, y)
#> extent      : 0, 1, 0, 1  (xmin, xmax, ymin, ymax)
#> coord. ref. :
#> source      : air_pressure_at_mean_sea_level.nc
#> names       : air_p~vel_1, air_p~vel_2, air_p~vel_3, air_p~vel_4, air_p~vel_5, air_p~vel_6, ...

# Look at layer count and names
nlyr(d)
#> [1] 744

# Look at "third" diminsion
(head(names(d)))
#> [1] "air_pressure_at_mean_sea_level_1" "air_pressure_at_mean_sea_level_2"
#> [3] "air_pressure_at_mean_sea_level_3" "air_pressure_at_mean_sea_level_4"
#> [5] "air_pressure_at_mean_sea_level_5" "air_pressure_at_mean_sea_level_6"

# Look at spatial metadata
ext(d)
#> SpatExtent : 0, 1, 0, 1 (xmin, xmax, ymin, ymax)
crs(d)
#> [1] ""

Slicing through "time"  by layer number or name
Data is only fetched on the call to plot
plot(d[[3]])

With no spatial information we can only subset on the unit grid
Here data is only fetched for the lower left quadrent on the call to crop
cr = crop(d[[50]], ext(0,.5,0,.5))

#> class       : SpatRaster
#> dimensions  : 361, 720, 1  (nrow, ncol, nlyr)
#> resolution  : 0.0006944444, 0.001386963  (x, y)
#> extent      : 0, 0.5, 0, 0.5006935  (xmin, xmax, ymin, ymax)
#> coord. ref. :
#> source      : memory
#> name        : air_pressure_at_mean_sea_level_50
#> min value   :                          96877.31
#> max value   :                         103217.8

plot(cr)

We can add the spatial metadata if known:
If we do so, then we can subset across multiple dimensions - say for the state of California at interval "40"
ext(d) = c(-180,180,-90,90)
crs(d) = "EPSG:4326"

AOI = AOI::aoi_get(state = "CA") %>%
  vect() %>%
  project(crs(d))

plot(crop(d[[40]], AOI))
plot(AOI, add = TRUE)

Aggregating Files
Lets say we have 2 files for January and February of 2020 that we want to read as a collections. We can define those urls, and treat them in aggregate.
Remembering that the first of those had 744 layers above, we will read them together and plot layers 744-745:
url = '/vsis3/era5-pds/2020/01/data/air_pressure_at_mean_sea_level.nc'
url2 = '/vsis3/era5-pds/2020/02/data/air_pressure_at_mean_sea_level.nc'

xx = rast(c(url, url2))
#> Warning: [rast] unknown extent
#> unknown extent

nlyr(xx)
#> [1] 1440

plot(xx[[744:745]])

Created on 2022-08-22 by the reprex package (v2.0.1)
NWM forcing example:
Start with a url endpoint and open a connection:
## URL
u = '/vsis3/noaa-nwm-retrospective-2-1-pds/forcing/1979/197902010000.LDASIN_DOMAIN1'

## Lazy Read
d = rast(u)
#> Warning: [rast] unknown extent

Explore layer slices and spatial properties
nlyr(d)
#> [1] 9
(names(d))
#> [1] "LQFRAC"   "LWDOWN"   "PSFC"     "Q2D"      "RAINRATE" "SWDOWN"   "T2D"
#> [8] "U2D"      "V2D"
ext(d)
#> SpatExtent : 0, 1, 0, 1 (xmin, xmax, ymin, ymax)
crs(d)
#> [1] ""

Assign missing spatial metadata:
ext(d) = ext(
  -2303999.62876143,
  2304000.37123857,
  -1920000.70008381,
  1919999.29991619
)
crs(d) = 'PROJCS["Sphere_Lambert_Conformal_Conic",GEOGCS["GCS_Sphere",DATUM["D_Sphere",SPHEROID["Sphere",6370000.0,0.0]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Lambert_Conformal_Conic"],PARAMETER["false_easting",0.0],PARAMETER["false_northing",0.0],PARAMETER["central_meridian",-97.0],PARAMETER["standard_parallel_1",30.0],PARAMETER["standard_parallel_2",60.0],PARAMETER["latitude_of_origin",40.000008],UNIT["Meter",1.0]];-35691800 -29075200 126180232.640845;-100000 10000;-100000 10000;0.001;0.001;0.001;IsHighPrecision'

# Plot (fetch data)
plot(d$LWDOWN)

Thats not right!
The data is stored in reverse (topdown in GDAL) -so we can flip it and plot
plot(flip(d$LWDOWN))

plot(flip(crop(d$RAINRATE, project(AOI, crs(d)))))

So far, we have wrapped a lot of this logic in the package opendap.catalog (name changing soon) to facilitate the discovery of data files, the automation of metadata generation, and the  subsetting/aggregating of files.
We have approached this by developing a catalog (https://mikejohnson51.github.io/climateR-catalogs/catalog.json)  that stores the spatiotemporal and attribute metadata of discoverable assets and then helps overcome the oddities of url defintion, applying the right spatial metadata, implementing transformations (e.g. flip) and slicing based on space and time. So far its proven to be a very useful pattern for our team.
If anyone would like to talk about this kind of stuff I would love it!
Thanks,
Mike
Created on 2022-08-22 by the reprex package (v2.0.1)

has no one tried to do zarr on R? zaRRR? It is not listed in the "known implementations" over at zarr, but there is julia, JS, java...

I believe bioconductor is doing some work on zarr support in R for OME-NGFF microscopy data. @MSanKeys963 may know more on how that's going.

An alternative way to achieve this occurred to me. If we allow for preffs's model of multiple references per key, to be read and concatenated on load, then we can add any absolute value into the references set:
{
   "variable/0.1.0": [b'\x00\x00\x80?\x00\x00\x00\x00', [url, offset, size]],
   ...
}

for scale 1, offset 0 as float32. The tricky part is, the concatenated buffer would normally be passed to a decompressor before the scale/offset codecs - but not for the case of netCDF3 (which is uncompressed internally). So all we have to d in this case is make a modified scale/offset codec that takes its params from the buffer, something like what the JSON codec does.
For the general case where there is compression, we would need to make a compression wrapper codec that extracts the values, decompresses the rest, and passed the values back as a tuple (or remakes a combined buffer).
@rabernat , this looks a lot like your idea of including extra per-chunk information in the storage layer metadata

+1 for supporting changing scale/offset.


nhost-cli: 1.20.0 -> 1.21.0

Automatic update generated by nixpkgs-update tools. This update was made based on information from https://github.com/nhost/cli/releases.
meta.description for nhost-cli is: A tool for setting up a local development environment for Nhost
meta.homepage for nhost-cli is: https://github.com/nhost/cli
Updates performed

Golang update

To inspect upstream changes

Release on GitHub

Compare changes on GitHub

Impact
Checks done

built on NixOS
The tests defined in passthru.tests, if any, passed
found 1.21.0 with grep in /nix/store/p9m8is5dfki1m3yqfmiqfnlnkiizrbrn-nhost-cli-1.21.0
found 1.21.0 in filename of file in /nix/store/p9m8is5dfki1m3yqfmiqfnlnkiizrbrn-nhost-cli-1.21.0

Rebuild report (if merged into master) (click to expand)

2 total rebuild path(s)

2 package rebuild(s)

First fifty rebuilds by attrpath

nhost-cli

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/p9m8is5dfki1m3yqfmiqfnlnkiizrbrn-nhost-cli-1.21.0 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A nhost-cli https://github.com/r-ryantm/nixpkgs/archive/bd5d0bfa1fc9c736dc5fce3493715c0ed0af58e1.tar.gz

Or:
nix build github:r-ryantm/nixpkgs/bd5d0bfa1fc9c736dc5fce3493715c0ed0af58e1#nhost-cli

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/p9m8is5dfki1m3yqfmiqfnlnkiizrbrn-nhost-cli-1.21.0
ls -la /nix/store/p9m8is5dfki1m3yqfmiqfnlnkiizrbrn-nhost-cli-1.21.0/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
Result of nixpkgs-review run on x86_64-linux 1

1 package built:

nhost-cli

Maintainer pings
cc @Moraxyc for testing.

@NixOS/nixpkgs-merge-bot merge


Errors lingering in the file and problems section when fixed

Whenever I make a mistake in the glsl code, it gets reported as I would expect when saving the file (lets say, i forgot a semicolon, it marks the error with the typical red underline and reports it in the Problems tab).
But when I fix it and save again, the report stays in the Problems tab of VS Code and a small rest (only about the width of a single character) of the typical red underline remains, usually on the next line.
The only way I could fix this up until now is closing the file, open it again, and save it again to be sure the code was indeed correct this time. I suspect that this is not supposed to happen, as it is sort of distracting/irritating when the file actually is correct.

Could you provide a animated GIF or Video to describe your problem?

Could you provide a animated GIF or Video to describe your problem?

Forget about it, I could reproduce it.


fixes visual bug where empty span shows up

Fixes https://github.com/weaveworks/scope/issues/1945

LGTM
(author does the merge)


Error: Unsupported schema version 2

Hello.
When decrypting the string which is already in base64, I encountered this error.
Sample of my code:
var password = "password";
var encrypted_username = "AgG0hYmf7iEEEsZRb213DFX65Uoe7iiwwDG6VWsC3+WuFBknZRWWnSzyoUHZkAlOgA3G6s4pukD8R6s9ErWsypAGA2xQRrLwjXJ0YXtaaxkjog=="
var decrypted_username = RNCryptor.Decrypt(encrypted_username, password);
console.log("Decrypted username:", decrypted_username.toString());
Even using Buffer is not working, and return the same error.

Hi @AzriDelta, I only implemented version 3 and decided to wait for an issue like this, I think it's better to use version 3 but if you really need to work with version 2, please let me know and I will get some time to implement it.

Yes, I really need to use version 2, as I encrypt my data on Android device using this library https://github.com/TGIO/RNCryptorNative

The library you mention seems to support version 3, why do you want to stick to version 2?.

My bad, the library does not support version 3, it's available in a PR: https://github.com/TGIO/RNCryptorNative/pull/13
I highly recommend using version 3 instead, let me know if this works for you, otherwise I will dedicate some time to version 2 for NodeJS.

Hello @chesstrian. I have tried in the past 2 weeks impelementing the PR branch (https://github.com/hoanghiephui/RNCryptorNative) that supposedly manage to use version 3, but with no success (ran into an error that cannot be solved).

Version 2 not implemented at the end, will be checking if version 4 of the algorithm can be implemented.


"unknown feature proc_macro_span_shrink" when trying to run demos

I am new to the project. Just trying to follow the [contributing.md] instructions.
bleep run demo@jvm213 fails with
📗 Launching Bleep version 0.0.1-M27 as requested in /private/tmp/tui-scala/bleep.yaml
📗 bootstrapped in 19 ms
📗 Running source generator `tui.scripts.GenJniLibrary` for project crossterm because output didn't exist
📕 BSP: Picked up _JAVA_OPTIONS: -Djava.awt.headless=true
📗 BSP / [script GenJniLibrary]: bootstrapped in 684 ms
📗 BSP / [script GenJniLibrary]: Building library with native build tool Cargo
📙 BSP / [script GenJniLibrary] / [subprocess: cargo build]:    Compiling proc-macro2 v1.0.47
📙 BSP / [script GenJniLibrary] / [subprocess: cargo build]:    Compiling signal-hook-mio v0.2.3
📙 BSP / [script GenJniLibrary] / [subprocess: cargo build]:    Compiling crossterm v0.25.0
📙 BSP / [script GenJniLibrary] / [subprocess: cargo build]: error[E0635]: unknown feature `proc_macro_span_shrink`
📙 BSP / [script GenJniLibrary] / [subprocess: cargo build]:   --> /Users/mccartney/.cargo/registry/src/index.crates.io-6f17d22bba15001f/proc-macro2-1.0.47/src/lib.rs:92:30
📙 BSP / [script GenJniLibrary] / [subprocess: cargo build]:    |
📙 BSP / [script GenJniLibrary] / [subprocess: cargo build]: 92 |     feature(proc_macro_span, proc_macro_span_shrink)
📙 BSP / [script GenJniLibrary] / [subprocess: cargo build]:    |                              ^^^^^^^^^^^^^^^^^^^^^^
📙 BSP / [script GenJniLibrary] / [subprocess: cargo build]:
📙 BSP / [script GenJniLibrary] / [subprocess: cargo build]: For more information about this error, try `rustc --explain E0635`.
📙 BSP / [script GenJniLibrary] / [subprocess: cargo build]: error: could not compile `proc-macro2` (lib) due to 1 previous error
📙 BSP / [script GenJniLibrary] / [subprocess: cargo build]: warning: build failed, waiting for other jobs to finish...
📕 BSP / [script GenJniLibrary]: Failed to run script: `GenJniLibrary`.: Failed external command 'cargo build' with exit code 101. See log file for exact command
📕 command failed: Run scripts failed status code ERROR

I can see the same failure in CI, so I guess it's not specific to my local setup.

Bumping https://github.com/oyvindberg/tui-scala/blob/master/crossterm/cargo/Cargo.lock#L166 to 1.0.70 seems to fix the issue.

Interesting. I thought the rust code would be quite "frozen", but not quite apparently. Can you PR the change so we can see if passes CI as well?

we can see if passes CI as well?

It seems like it does.


METRON-2010 Unable to Build Metron Due to Inaccessible Repository

It appears that the repository that we have configured to pull in the dependency multiline-string is no longer accessible.  I am unable to build Metron because of this.

The repository at https://raw.github.com/benelog/multiline/master/maven-repository is no longer accessible. I am not sure how long this repository has been inaccessible.

This likely went unnoticed for some period of time because the dependency is cached in most developer environments.  Once I cleared my Maven cache, I ran into this problem.

The Multiline project's documentation indicates that the package should be pulled from the JCenter repository.  See the Multiline project's documentation for Maven..

We already have JCenter configured as a repository for the project.  We should be able to pull the dependency from there directly.

I simply removed the inaccessible repository and everything builds as you would expect.  The multiline-string dependency is pulled from JCenter as you would expect.

Testing

Clear your Maven cache at ~/.m2/repository/.

Attempt to build Metron.

If you are able to build Metron, this PR has worked.

Optionally, deploy "Full Dev" and ensure that telemetry is consumed. (I validated this in "Full Dev".)

Pull Request Checklist

[x] Is there a JIRA ticket associated with this PR? If not one needs to be created at Metron Jira.
[x] Does your PR title start with METRON-XXXX where XXXX is the JIRA number you are trying to resolve? Pay particular attention to the hyphen "-" character.
[x] Has your PR been rebased against the latest commit within the target branch (typically master)?
[x] Have you included steps to reproduce the behavior or problem that is being changed or addressed?
[x] Have you included steps or a guide to how the change may be verified and tested manually?
[x] Have you ensured that the full suite of tests and checks have been executed in the root metron folder via:
[x] Have you written or updated unit tests and or integration tests to verify your changes?
[x] If adding new dependencies to the code, are these dependencies licensed in a way that is compatible for inclusion under ASF 2.0?
[x] Have you verified the basic functionality of the build by building and running locally with Vagrant full-dev environment or the equivalent?

+1 by inspection. Thanks!


Add minimal installation instructions to README

Included the mention of libpcre3-dev which is needed on Ubuntu.

Thanks for the contribution!


Wiredep weird error!

Hey,
So, i've been working with wiredep for a long time, and this is the first time i am getting this error, and i cant seem to debug it:
events.js:141
      throw er; // Unhandled 'error' event
      ^

TypeError: must start with number, buffer, array or string
    at fromObject (buffer.js:167:9)
    at new Buffer (buffer.js:58:10)
    at DestroyableTransform._transform (/Users/sadiqevani/Laboratory/signage/node_modules/wiredep/wiredep.js:135:23)
    at DestroyableTransform.Transform._read (/Users/sadiqevani/Laboratory/signage/node_modules/wiredep/node_modules/readable-stream/lib/_stream_transform.js:184:10)
    at DestroyableTransform.Transform._write (/Users/sadiqevani/Laboratory/signage/node_modules/wiredep/node_modules/readable-stream/lib/_stream_transform.js:172:12)
    at doWrite (/Users/sadiqevani/Laboratory/signage/node_modules/wiredep/node_modules/readable-stream/lib/_stream_writable.js:237:10)
    at writeOrBuffer (/Users/sadiqevani/Laboratory/signage/node_modules/wiredep/node_modules/readable-stream/lib/_stream_writable.js:227:5)
    at DestroyableTransform.Writable.write (/Users/sadiqevani/Laboratory/signage/node_modules/wiredep/node_modules/readable-stream/lib/_stream_writable.js:194:11)
    at write (/Users/sadiqevani/Laboratory/signage/node_modules/vinyl-fs/node_modules/readable-stream/lib/_stream_readable.js:623:24)
    at flow (/Users/sadiqevani/Laboratory/signage/node_modules/vinyl-fs/node_modules/readable-stream/lib/_stream_readable.js:632:7)

Anyone had a similar issue?

Solved.
Issue comes from having empty files.

This should be fixed.


Initial values from container component

Hey,
I have a container component that passes through my initial values as props using mapStateToProps.
const mapStateToProps = (state) => (
  {
    initialValues: {
      applicantAgent: 'female',
      applicantPhone: '123123',
    },
  }
);

const mapDispatchToProps ...

const FormContainer = connect(
  mapStateToProps,
  mapDispatchToProps
)(Form);

export default FormContainer;

I can see in the Redux dev tools that the initial values are being picked up by Redux Form:

But the actual form fields are empty. If I set the exact same initial values on the reduxForm decorator it works correctly:
export default reduxForm({
  form: 'TestForm',                 // <------ same form name
  destroyOnUnmount: false,     // <------ preserve form data
  enableReinitialize: true,
  keepDirtyOnReinitialize: true,
  validate,                    // <------ only validates the fields on this page
  initialValues: {
     applicantAgent: 'female',
     applicantPhone: '123123',
  },
})(Form);

I've tried with and without enableReinitialize & keepDirtyOnReinitialize but they don't make any difference.
I'm using Redux Form 6.0.2 and redux-form/immutable as we are using Immutable if that makes a difference.
I just can't seem to get this working, is it a bug or am I missing something?
Thanks

Sorry, I've only just seen this issue as well https://github.com/erikras/redux-form/issues/1744 - seems to be the same thing

Work around: https://github.com/erikras/redux-form/issues/1399#issuecomment-255253588

@gilesbutler Propably you are not using form reducer from redux-form/immutable

@xierui0423 I was using the reducer from redux-form/immutable. Unfortunately I'm not working on this project anymore and don't have access to the code so will close.


Styling and theme issues since installing openapi plugin

Describe the bug

Currently the built in docusarus custom rendering of markdown is not working as intended. For example admonitions are not rendering and also codeblocks are not rendering with prism syntax highlighting.

Expected behavior

I expected the theme to display as per the demo docs, with for example the type of HTTP request next to each item in the api docs, and also for docusarus built in features like admonitions to continue to work.
Current behavior

Currently markdown renders but not the custom changes e.g. to admonitions or prism rendering, I presume this is to do with the preset-classic theme potentially not loading correctly since I implemented the openapi-docs plugin.
Screenshots

My package.json

{
  "name": "blink-docs",
  "version": "0.0.0",
  "private": true,
  "scripts": {
    "docusaurus": "docusaurus",
    "start": "docusaurus start",
    "tinastart": "tinacms start",
    "build": "tinacms build && docusaurus build",
    "swizzle": "docusaurus swizzle",
    "deploy": "docusaurus deploy",
    "clear": "docusaurus clear",
    "serve": "docusaurus serve",
    "write-translations": "docusaurus write-translations",
    "write-heading-ids": "docusaurus write-heading-ids",
    "typecheck": "tsc"
  },
  "dependencies": {
    "@docusaurus/core": "2.4.1",
    "@docusaurus/preset-classic": "2.4.1",
    "@mdx-js/react": "1.6.21",
    "@mendable/search": "^0.0.158",
    "@tinacms/cli": "^1.5.29",
    "clsx": "1.1.1",
    "docusaurus-plugin-openapi-docs": "^2.0.0-beta.3",
    "docusaurus-theme-openapi-docs": "^2.0.0-beta.3",
    "prism-react-renderer": "1.2.1",
    "react": "^17.0.1",
    "react-dom": "^17.0.1",
    "react-youtube": "^10.1.0",
    "swizzle": "^1.1.0",
    "tinacms": "^1.5.20"
  },
  "devDependencies": {
    "@docusaurus/module-type-aliases": "2.4.1",
    "@tsconfig/docusaurus": "^1.0.5",
    "typescript": "^4.7.4"
  },
  "browserslist": {
    "production": [
      ">0.5%",
      "not dead",
      "not op_mini all"
    ],
    "development": [
      "last 1 chrome version",
      "last 1 firefox version",
      "last 1 safari version"
    ]
  },
  "engines": {
    "node": ">=16.14"
  },
  "overrides": {
    "react-live": ">=3.1.1 <4.0.0"
  },
  "resolutions": {
    "react-live": ">=3.1.1 <4.0.0"
  }
}

Hi @samducker are you still experiencing this issue with a more recent release?

I am also experiencing this issue with 2.0.0-beta.4.
Another symptom is that images wider than the main content area look stretched in my non-OpenAPI docs. It appears this is also because the classic theme was correcting that issue (by applying height:auto), and the classic theme is no longer applying to my docs.

Hi I also experienced this issue with 2.0.2, as well as everything mentioned here
It was resolved by updating @mdx-js/react from 1.6.21 to ^1.6.22.
Below is the package.json BEFORE updating @mdx-js/react, hope this helps!
{
  "name": "doc-website",
  "version": "0.0.0",
  "private": true,
  "scripts": {
    "docusaurus": "docusaurus",
    "start": "docusaurus start",
    "build": "docusaurus build",
    "swizzle": "docusaurus swizzle",
    "deploy": "docusaurus deploy",
    "clear": "docusaurus clear",
    "serve": "docusaurus serve",
  },
  "dependencies": {
    "@docusaurus/core": "2.4.3",
    "@docusaurus/preset-classic": "2.4.3",
    "@emotion/react": "^11.9.3",
    "@emotion/styled": "^11.9.3",
    "@mdx-js/react": "1.6.21", //updating this to ^1.6.22 fixed the issue
    "@mui/material": "^5.8.7",
    "@svgr/webpack": "^5.5.0",
    "clsx": "^1.1.1",
    "docusaurus-plugin-openapi-docs": "^2.0.2",
    "docusaurus-theme-openapi-docs": "^2.0.2",
    "file-loader": "^6.2.0",
    "react": "^18.2.0",
    "react-dom": "^18.2.0",
    "url-loader": "^4.1.1"
  },
  "browserslist": {
    "production": [
      ">0.5%",
      "not dead",
      "not op_mini all"
    ],
    "development": [
      "last 1 chrome version",
      "last 1 firefox version",
      "last 1 safari version"
    ]
  },
  "volta": {
    "node": "18.19.0",
    "yarn": "4.0.2"
  }
}


CI broken due to pytest error

For the last couple days CI has been broken on master due to pytest errors:
https://travis-ci.org/Karsten1987/roscon2018/builds/540535685
I could reproduce it successfully in various environments (docker images using the nightly archives, the dashing debs and building dashing from source), and the problem also appears on packages from the ros2.repos for this is not related to the code here.
A workaround is available at https://github.com/mikaelarguedas/ros2ci/pull/18 and fixes CI for both nightly and dashing: https://travis-ci.org/Karsten1987/roscon2018/builds/541281526?utm_source=github_status&utm_medium=notification

https://github.com/osrf/docker_images/pull/272 has been merged and released so CI is passing without workaround on our side


Mostly cosmetic.

Why does my repository listing only have two columns (Name, Size)

Why are the access links docked above the listing instead of using buttons on the right.

What does "GO" mean in the access links. How do I disable it. I only want SSH and HTTPS.

As discussed in https://github.com/jbox-web/redmine_git_hosting/issues/732#issuecomment-532362560, issues related to Redmine < 4.0 or severely outdated issues are being closed to help clean up the issue tracker.
If this issue is still relevant to you and you are running Redmine >= 4.0, please open a new issue including all new relevant information.


Random FINISH error when initiating new recordings

When running a new recording on Windows 10 python version 11 .\main.py -user weathernewslive -mode automatic, the script will display the below several times as a group.
[] RECORDING... [PRESS ONLY ONCE CTRL + C TO STOP]
[] FINISH TK_weathernewslive_2023.03.14_13-50-17.mp4
[*] URL M3U8

duplicate #15

Yes both are installed.


Fix log_level

logger.level= expects INT, not a String

Hmm, the string support must be in a more recent version of ruby then.

Thanks!


StructureView takes increasing time every time it is refreshed

Version: 0.6.0
StructureView takes increasing time every time it is refreshed, especially noticeable when opening/closing it in Edit mode and/or when loading new stories with lots of items

Now doing:
`  with ImageList do
begin
Dormant := false; //this is the default
ClearCache;
CacheSize := 100; //doesn't allow to set CacheSize to 0

Source.ClearAndResetID;
Destination.ClearAndResetID;

end;`

Also had an AddFreeNotify without a paired RemoveFreeNotify and was accidentally passing the TreeViewItem's Self (since it was inside a With TreeViewItem statement) instead of passing it the StructureView instance. Strangely it seemed to remove the TreeViewItems from the tree
However decided to do FreeNotification and RemoveFreeNotification instead, seems to work better
Doing first a RemoveFreeNotification in case the item was already monitored by the StructureView, then the FreeNotification


Attatch pjax events to injected links?

Should the pjax events attach to links that are injected through a previous pjax call by default or do you have to do something special to attach new pjax events to those newly inserted links? Currently, even though the links I am inserting follow the selector defined in elements, they are causing hard refreshes (not pjax events).

You can just execute this code for every page, links that already get a event listener will be ignored (so everything will work "as expected".
I should update the readme with this example:
function whenDOMReady() {
  new Pjax(/* ... */)
}
whenDOMReady()
document.addEventListener("pjax:success", whenDOMReady)

Ah, okay, good to know. I was unsure if calling pjax on the same element groups would effectively double the attached events. Thanks!

Hum reopening to let people know that trick while is not documented

Note that I believe the docs say explicitly not to do this :p

Also IMO this is probably something that should be done by the library by default. I can hack at it later when time permits :)

Haha my bad.  The library should do that by default https://github.com/MoOx/pjax/blob/a17a6b90bebefd8f5209e6a6f7d8c5d59296232a/src/pjax.js#L467-L469
So you should not do what I put in the example above indeed. I'll edit the comment to remove this snippet.

Take a look here how I'm doing on my website https://github.com/MoOx/moox.github.io/blob/40e2146b8483a7d05fd578c5a99cd136b24a65a9/src/assets/_scripts/vanilla.js

So this should work by default is selector are ok. It should already reapply to all the selector (& skip the elements already affected)

Are you using 0.1.4 ?

I am. I did some testing, it appears it works fine if both of my pjax calls use the same selectors, but as soon as i define different selectors per init, it seems to cause issues. I will continue to investigate.
You can see what I mean if you go to http://guidebook.com; clicking around the sub-nav works fine, clicking a main-nav link works fine, but if you click on a main-nav link and then return to the index and then use the sub-nav, it will cause a full reload. Not sure why.

Also, just tested that re-init'ing pjax on pjax:complete does in fact cause the links in question to work again, but the pjax events are bound/fired multiple times, so that doesn't work as a solution.

I think I get it. For now only one instance is reparsing DOM for its own selectors, not for other pjax instances. So maybe you should use a pjax event to for reparsing for other part. I did do anything special to handle this case. Maybe we should create a pjax.refresh() method to force reload.
It seems like an edge case to use 2 instances that can update same part of the page :/

@MoOx cool, thanks for looking into it. I can take a stab at writing that method if I have time today.

@MoOx I'm going to take a crack at this. Whats the best way to get this repo up and running locally so I can hack at it? Do you just browserify the index.js file? Let me know what your setup looks like. Thanks!

According to the package.json scripts section, you should just use npm test command (after npm install).
The current repo state is kind of broken (some tests aren't good because last time I work on this repo I didn't finish what I was working).
I started a refactoring (one big file to many files with tests) that I didn't finish.
What should be cool is to work with low level tests. You will probably need to extract some part of the code into new files (because I didn't finish the entire refactoring).
Take a look to this PR https://github.com/MoOx/pjax/pull/33 that did that kind of stuff.
Tell me if that's enough for you to start.

@MoOx thanks. After playing around with it today I'm not sure the repo is in a working enough state for me to just go in and fix this issue. It seems like its kind of in a broken state, unfortunately :(
I might want to modify the existing version which is hosted on npm and update that to fix this issue. Is that possible?

You can do that too. Just find a way to share the fix so I can bring it back in there :)

@MoOx pretty simple: https://github.com/pklada/pjax/commit/9d3b7a581f9cc3b179cf3090aa9dc747a6c4aa0d
Just added a simple exposed refresh method which would refresh the document based on the elements in the options. Also added some logic so that calling this wouldnt double-bind pjax events. In the code on my side I just call this on pjax:complete.
Maybe not the most elegant solution, but it works.

Good to know. Thanks for sharing I'll handle that next time I'll continue the refactoring.

@MoOx what are the plans w/ the refactor? Honestly I might move the current master to a new branch since its in a sort of unfinished state, maybe a refactor branch, and then roll back the current branch to .1.4. I can help in my free time as well as this library was really helpful to me, Id just like to keep the npm package, etc, up to date.

The current master should work in a Commonjs env. If not, it should not be a big deal to fix since I mainly just move some code (split the big file into smaller tested pieces).
I were working on a branch but was not going forward enough so I decide to break things to move fast.
I understand your arguments but think we should iterate on the current master.
Sorry to not be in a hurry, I'm really busy with bigger OS projects for now (like cssnext or stylelint) but totally want to keep this repo up since I'm using it for my website (I plan to refactor it soon, so I'll end up to use an up to date version of this lib as well).
Note: I recently give write access to @igierard yesterday since he is interested to & have made a nice PR: #33.
Maybe we should just add more minimal tests to ensure the current master works (note that the broken test for now has been made on purpose, as a reminder to finish the refactoring) so we can release new version (reminder we are still under v1.0.0, so we can totally break things ^^).

^ okay, that's fair. I updated my project w/ my forked version for now. (guidebook.com if you want to check it out working) Thanks.

If you are interested to contribute to the project, just make a nice PR as a start & we will see what happen :)

Closing as my fixes got added to master.


Tests that use LD_PRELOAD hang on Ubuntu 22.04 GitHub runners

It seems, that test_casr_js_native_jsfuzz  hangs in loop. CI is broken, @PaDarochek, please, have a look.

Actually, test_casr_libfuzzer_jazzer_js_xml2js test is hanging.

Actually, test_casr_java is failing.

casr-java call hangs on LD_PRELOAD here

We may temporary use Ubuntu 20.04 in our CI (#211). Then we should examine why tests using LD_PRELOAD hang on Ubuntu 22.04 GitHub runner.

In #215 I decided to run hanging tests on Ubuntu 20.04 in coverage workflow


Make asdf the default version manager

What Happened

Replace RVM with asdf
Replace NVM with asdf
Add Erlang installation via asdf
Add Install Elixir via asdf

Resolves #33, Fix #25
Insights
Most of the code for asdf comes from the original Laptop script.
Proof of Work
Tested on Intel:

Tested on M1:

Upon working on the first project with my M1, I found out that the following must be added to .zshrc:
# asdf shims
export PATH=~/.asdf/shims:$PATH

It is out of scope for the related ticket, but if we are moving to asdf maybe it is worth unifying it and installing golang through asdf as well?
https://github.com/kennyp/asdf-golang

@Nihisil I recommend tackling this outside the scope of this PR because that plugin is not a first-arty plugin:

Second, go is now installed via Homebrew so it would require additional testing.

@Nihisil Homebrew might automatically reference the latest Node.Js version as a dependency 🤷 This what I got on my M1 machine:

So it seems that Homebrew does not even install Yarn 2+ 😆 And the latter does have a dependency on corepack. So all in all, while we did not face issues, we might need to revisit how to install yarn so that we can at least make use of the latest version 💫


Update query trade history to get complete state only

The trade history contains STARTING, ORDERED and COMPLETE. The query should run base on COMPLETE order only

Hi @kydrenw , thanks for the PR.
Why do you believe only complete orders should be dispayed?

In current value we should also be showing open orders which have not yer been filled.
In check progress I guess it would be ok to only query COMPLETE orders.
In panic button we also need to query for ORDERED orders in order to cancel them.

Let me know your reasoning behind this PR 😄

@lorcalhost you're correct. This PR to fix the query in check process only.

Sure, it makes sense now.
Thanks for your contribution, I will now merge it into main.

@all-contributors please add @DmytroLitvinov for bug

@all-contributors please add @kydrenw for bug


Add an HTTPException to the query endpoint to handle engine failure #22 #24

Add an HTTPException to the query endpoint to handle engine failure #22 #24

 📝 Indexing
I'm indexing your repository.

{"tag": "INITIAL_PLANNING", "workflow": {"tasks": [{"step": "Step 1", "name": "Import HTTPException", "action": "modify", "file": "routers/retrievers/query.py", "start_line": 1, "end_line": 1, "instructions": "At the top of the file, import HTTPException from fastapi.exceptions by adding the line 'from fastapi.exceptions import HTTPException'.", "async_score": 2, "assigned_agent": "AI", "dependencies": []}, {"step": "Step 2", "name": "Add HTTPException to query endpoint", "action": "modify", "file": "routers/retrievers/query.py", "start_line": 10, "end_line": 20, "instructions": "In the function that handles the query endpoint, add a try-except block around the code that interacts with the engine. In the except block, raise an HTTPException with status code 500 and a detail message indicating an engine failure. For example, 'except EngineFailure: raise HTTPException(status_code=500, detail='Engine failure')'.", "async_score": 8, "assigned_agent": "AI", "dependencies": ["Step 1"]}, {"step": "Step 3", "name": "Test HTTPException", "action": "create", "file": "tests/test_query.py", "start_line": 1, "end_line": 50, "instructions": "Create a new test file 'tests/test_query.py'. In this file, write tests to ensure that the HTTPException is raised correctly when the engine fails. This will involve creating a mock engine that raises an EngineFailure, and then making a request to the query endpoint and checking that the response has a status code of 500 and the correct detail message.", "async_score": 10, "assigned_agent": "User", "dependencies": ["Step 2"]}], "snippets": []}}
Step 1: Import HTTPException
	Action: modify
	File: routers/retrievers/query.py
	Start Line: 1
	End Line: 1
	Instructions: At the top of the file, import HTTPException from fastapi.exceptions by adding the line 'from fastapi.exceptions import HTTPException'.
	Async Score: 2
	Assigned Agent: AI
	Dependencies: []
Step 2: Add HTTPException to query endpoint
	Action: modify
	File: routers/retrievers/query.py
	Start Line: 10
	End Line: 20
	Instructions: In the function that handles the query endpoint, add a try-except block around the code that interacts with the engine. In the except block, raise an HTTPException with status code 500 and a detail message indicating an engine failure. For example, 'except EngineFailure: raise HTTPException(status_code=500, detail='Engine failure')'.
	Async Score: 8
	Assigned Agent: AI
	Dependencies: ['Step 1']
Step 3: Test HTTPException
	Action: create
	File: tests/test_query.py
	Start Line: 1
	End Line: 50
	Instructions: Create a new test file 'tests/test_query.py'. In this file, write tests to ensure that the HTTPException is raised correctly when the engine fails. This will involve creating a mock engine that raises an EngineFailure, and then making a request to the query endpoint and checking that the response has a status code of 500 and the correct detail message.
	Async Score: 10
	Assigned Agent: User
	Dependencies: ['Step 2']


[RFC] Add ability to symbolize keys so it can be used with keyword args

Fixes #274
I am not sure if this is the way the maintainer wants to move on with the gem, but one approach would be adding a new argument for retro compatibility purposes and convert the argument if the argument is ready.
Essentially, I created this argument called symbolize_args and in case it was set, we'd symbolize the hash keys so before we actually send them to ActiveJob.
Can I get some comments here if this is the way to move forward? I'll implement tests once confirmed.

Coverage decreased (-0.7%) to 91.133% when pulling 2bb4918f19b7a2cc92f55a4adefe040de9cc48bb on paniko0:master into 25d7bc7a92ef52f675bb4e0a3249572a00467e46 on ondrejbartas:master.

@paniko0 Hi arguments that sidekiq cron is loading from config are just passed to .perform_async so basically these arguments still get JSONified and send to redis. So this will not help.
This is just my opinion. Maybe I am completely wrong. Please add some test so we can verify what it actually does

@ondrejbartas I don't know about the direct Sidekiq approach, but we're using ActiveJob, and so the args passed there would be sent directly to the perform method of the class.
I'd be inclined to either force all ActiveJob hash argument lists be provided as keyword parameters to the perform_later method, or allow it to be configurable somehow - either on a per job basis, but more likely at the global level.
I'd welcome your thoughts on this, but it does seem like it's needed - I'm running into the same problem too, and I'd rather have keyword params rather than a list of args in my method signature.


edit feature: suggest text in text fields

can be tested in ded04, still wip tests pending

/cc @saleiva

tests are green (they were just fixed) but this includes no specific tests for the feature, will work on them
CR @xavijam to briefly check that utils for the column row fetch

Ah, tests are not included, when you have them, please let me know and I'll test and review the PR again.

this is a first step, as explained, separated the Suggest editor from Select (thus, it won't affect current select components) but we are still relying in a re-render of the form to replace the text fields into Suggest fields, next step is doing this in the component itself (simlar to enabler editor?)
Anyway, I created the tests for this (struggled a lot 😞 ) and made some other small changes (when text in select item is only spaces, see attached)

to

CR @xavijam 🙏

Ah, ok, read it again your comment. Are we going to move that logic about String or Select to the component then?

it can be tested in ded04, I just need to confirm with arce the null cases but I tested this extensively and it didn't break (plus, tests pass)
I reverted the use of apostrophes as they are currently used (see attached), will open the discusion in a separate issue

I tried to build the suggest editor as much as I could but having the text field in it would take me a lot longer, I prefer to do it in a separate PR

🚀


Do not show api.snapcraft.io in insights report

api.snapcraft.io is expected to be called by GitHub-hosted runner, and we do not show it in audit mode. It is being shown in block mode, though, which is confusing. We need not show it or alert it for block mode either.

This issue has been resolved


Want to see zero value in line chart

Hi.
I want to use your plugin to check how many issues in some category with Line chart.
But zero value in line chart is not displayed, like this image. The blue line middle point is snaped.(value zero)

And Vertical value(Count())'s min value isn't zero. I want to see Vertical value's min is zero and connected line.
Is there some advice to can I do it?

Hello,
That will require patching c3 javascript, for it doesn't have options to control your requested feature.
Changing row 136 of c3_renderers.js from
row.push(null);
to
row.push(0);
will probably achieve what you request.
Redmine pivot table does not have any interface to pass options to C3, so even this was an available setting in C3, there is no way to set it through this plugin. So patching might be the realistic solution if you insist on this graph format.
Hope this helps.

Oh, Thanks GOD. You saved me!:)
It works perfectly what I want!!!
Thanks for your help and your great plugin!^^


Java script error in main process

Could you explain what you were doing when that happened?

This is happening for me with notifications on message received, either MMS or SMS.
Began after disabling javascript in the default web browser.
Windows 10 Pro x64, 1909 build 18363.815
Brave browser, version 1.8.95

Keeps happening to me as well.

This is also happening on Arch Linux. This is my first install of the application.

Same happening on linux, every time someone sends a text, so related to the notification.
System: Manjaro KDE Stable Linux, Firefox 76.01

Same here. I'm working off of Windows 10, and the error pops up every time I receive a text.

Had same issue. Deleting settings seems to fix it.
However it seems to fixed this issue on my Windows 10 without losing settings with these steps:

Exit messenger
renamed folder %appdata%\Android Messages to something else
started messenger
re-enable web messenger from the phone
exit it again
renamed that folder back to it's original name


fix fix be crash when reading invalid value

Proposed changes
Issue Number: close #xxx
Problem summary
when reading text format hive table with invalid value format, be may crash
Checklist(Required)

Does it affect the original behavior:

[ ] Yes
[x] No
[ ] I don't know

Has unit tests been added:

[ ] Yes
[x] No
[ ] No Need

Has document been added or modified:

[ ] Yes
[ ] No
[x] No Need

Does it need to update dependencies:

[ ] Yes
[x] No

Are there any changes that cannot be rolled back:

[ ] Yes (If Yes, please explain WHY)
[x] No

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

test will be added in #14808

TeamCity pipeline, clickbench performance test result:
the sum of best hot time: 35 seconds
load time: 431 seconds
storage size:<PHONE_NUMBER>0 Bytes
https://doris-community-test-1308700295.cos.ap-hongkong.myqcloud.com/tmp/20221208170050_clickbench_pr_60533.html


Fix redis watches

Redis do not listen to keyspace events by default, this PR enables it.
Also, when watching a key if the key got deleted or expired by TTL return an empty KV instead of an error.

FTR: this PR gives full support for Redis to https://github.com/abronan/leadership

Coverage decreased (-0.3%) to 84.168% when pulling 75e12f70cd74922a03ae4d9400194792062b5549 on fix_redis into ccf7df650fe422b10e117db640d9ef5b34f417e7 on master.


MF info endpoint reports invalid ISIN

/kuvera/:isin endpoint returns the error "Invalid ISIN" even for a valid MF ISIN. Attaching a screenshot to highlight the issue:

Furthermore, the docs webpage says that the schema for the api is documented at https://stoplight.captnemo.in/docs/kuvera/6744709c28f51-mutual-fund-plan-details, however I am unable to access this page.
Any help with how to use this API would be very highly appreciated! Thanks for doing a great service to the developer community!

https://captnemo.in/kuvera-unofficial-api-specification/ -> "Mutual Fund Plan Details" (/mf/api/v4/fund_schemes/{codes}.json) has the schema. I'll update the README.

The kuvera data is correct, but the redirect seems to be broken. I'll update once this is fixed.

Attempted a fix for this, should hopefully fix in another 20 minutes or so.

Fixed now:
curl -I https://mf.captnemo.in/kuvera/INF843K01FC8

HTTP/2 302
access-control-allow-methods: GET
access-control-allow-origin: *
access-control-max-age: 86400
age: 74
cache-control: public,max-age=0,must-revalidate
cache-status: "Netlify Edge"; hit
content-type: application/json
date: Thu, 22 Feb 2024 15:38:29 GMT
location: https://api.kuvera.in/mf/api/v5/fund_schemes/EDPSD1-GR.json
referrer-policy: strict-origin
server: Netlify
strict-transport-security: max-age=31536000; includeSubDomains; preload
x-frame-options: DENY
x-nf-request-id: 01HQ8QFQ4V0TMRG9A0JKT0KW9C
x-xss-protection: 1; mode=block
content-length: 74


[Feature] Add support for Pinch to Zoom

This is a consolidation of these two issues:

#150
#80

However there is a prerequisite issue:

#295

The basic idea is that once we have a clip rect properly in place we can use the Skia Sharp canvas object to Translate and Scale a chart. If this transformations are coordinated with a zoom gesture this will give the look and feel of Pinch Gesture and Zooming.
Scratch Work for Scaling
Scratch Work for Gesture
Once I get a little further along with this I will make a pull request. The above works as a proof of concept in that you can pinch to zoom, however, the labels and Y axis do not properly scale. There's also some pixel precision issues with the clip rect.
Todo Items:

[ ] Resolve discussion points surrounding clipping on edges of chart
[ ] Add support for panning while zoomed in.

This is functionally complete. There are however a couple issues that need to be debated. I've posted them in:
https://github.com/microcharts-dotnet/Microcharts/issues/295#issuecomment-948184864

I have tested this on a number of charts and all seems to work except the issues outlined in my previous comment.
https://user-images.githubusercontent.com/1433852/138197730-1cbe1b02-2610-4dc6-a895-cab46c510dd0.mp4

Impressive work ! I need time to look at this

I'm going to make a few changes to this a bit later. I'm going to have an option to turn on/off pinch to zoom and leave it off by default. When its off I will also disable the cliprect. This will allow backwards compatibility by default, and anyone who enables pinch to zoom can also deal with the clipping changes.


Validation of translation placeholders error

Before creating an issue...

[x] There is no open issue describing the same problem
[x] I am running latest versions of the integration and of Home Assistant
[x] I have checked the operational status of the Easee API

The problem
I'm having this error/warning in the logfile
Validation of translation placeholders for localized (nl) string component.easee.issues.numeric_deprecation.title failed: ({''} != {'argument'})
Version of Easee integration having the issue?
V0.9.64
Version of Home Assistant Core having the issue?
2024.11.1
Anything in the logs that might be useful for us?
Logger: homeassistant.helpers.translation
Bron: helpers/translation.py:285
Eerst voorgekomen: 15:08:44 (1 gebeurtenissen)
Laatst gelogd: 15:08:44

Validation of translation placeholders for localized (nl) string component.easee.issues.numeric_deprecation.title failed: ({''} != {'argument'})

Additional information
No response

Thank you for reporting. Fixed and will be included in next release.


Add support for Redis for SB 1.x

Now i use springboot1.5.x and i need to trace redis access,but i found i latest version of opentracing-spring-cloud-starter is not suitable for me because of the springboot 2.0.x version used by latest version of opentracing-spring-cloud-starter.And later i found Branch SB-1.x  uses springboot 1.5.12.RELEASE ,but it has no function to trace redis.
So i want to kown is there a plan to support springboot 1.5.x version for later new feature

The support for redis has been added to SB1.x in 0.1.x branch


Set -I and -vfsoverlay in OTHER_SWIFT_FLAGS

Xcode's SourceKit source.request.editor.open.interface request filters a lot of arguments, and the params file in particular. In order to fix this request we need to include -I and -vfsoverlay arguments in the OTHER_SWIFT_FLAGS build setting. We also filter these same arguments in swift_compiler_params_processor.py to prevent duplication.
Since -working-directory is also filtered for the request, we ensure that relative paths use $(CURRENT_EXECUTION_ROOT).

If the vfs overlays have relative paths (will will be the case for almost all of them produced by Bazel), this will still be broken for them. That's always been the case though. I'm looking for a fix.


fix(#7): re-enable z-axis offset between layers and add a RigidBody::KinematicPositionBased to colliders

Fixes #7

Added a callback system so the user can set up his own logic. By default, we only add the collider (same behaviour as before).
For the example, I sticked with the behaviour that worked best for me, ie. a RigidBody::KinematicPositionBased for the tiles and a RigidBody::Dynamic for the player.


Implementing pytest new strategy

Following up on #195, I implemented all the pytest.mark.skipif in all test modules.

Nice to see the messages now:
simtools/tests/test_db_handler.py::TestDBHandler::test_reading_db_mst_fc SKIPPED (Connection with the DB is not available)

Was too fast, not all tests pass for me. I did this on a completely new clone / checkout of this branch without modify any configuration parameters just doing pytest. See attachment.
gm_pytest_output.log

simtools/tests/test_simtel_histograms.py::test_histograms takes notable longer than all other tests. Don't really see why, is it downloading that test file? run2_gamma_za20deg_azm0deg-North-Prod5_test-production-5.hdata.zst

I also noticed that.
It is probably because we have to read a large number of simtel histograms. I will try to make this test faster by selecting a subset of the histograms.

Do we want to switch on also the pytest part in the CI?
https://github.com/gammasim/gammasim-tools/blob/master/.github/workflows/CI-tests.yml

Yes. Done.

Was too fast, not all tests pass for me. I did this on a completely new clone / checkout of this branch without modify any configuration parameters just doing pytest. See attachment. gm_pytest_output.log

Did you run it twice?
In case there is no config.yml file, we have to create a dummy one to execute the tests. If this file is not removed after the session and you try to run the tests again, these errors will show up.
This is an issue. I will make the changes to remove the dummy config file after each session.

It should be working now, @GernotMaier. You can run it multiple times, just be sure to remove any config.yml that were left from the previous tests.
If it works, please merge it.

All tests passed with sim_telarray installed and without DB - very nice.
Only issue is the warning
simtools/tests/test_layout_array.py: 42 warnings
simtools/tests/test_telescope_position.py: 2 warnings
  /workdir/external/gammasim-tools/simtools/layout/telescope_position.py:358: DeprecationWarning: This function is deprecated. See: https://pyproj4.github.io/pyproj/stable/gotchas.html#upgrading-to-pyproj-2-from-pyproj-1
    self._latitude, self._longitude = pyproj.transform(

It is probably me who should look after that. A quick search shows that I don't understand what is changing...
Also nice to see the CI in the github actions running.


tap-hold-next takes into account previous key's release

Consider foo (tap-hold-next 200 x shft). If I tap foo, but a previous key was released before foo is released, it will emit the 'hold' action rather than the 'tap' action.
e.g. Pa P@foo Ra 100 R@foo -> a (shift) (instead of ax)
Is this a bug or by design? I was under the impression that tap-hold-next only accounts for the next key only rather than the previous key also.

Is this a bug or by design?

This behavior is as designed. A tap-hold-next button starts deciding when it's pressed, if before it's decision it detects another press it will decide to go into hold mode. The release of a in your example doesn't get registered, since we only check presses. Therefore Pa P@foo Ra 100 R@foo is exactly the same (for the foo button) as P@foo 100 R@foo`

I find it odd because the main motivation to trigger the hold event in a tap-hold-next key is never for the previous key before it. It's always for the next key after. Unless I'm missing something.
Would it be a big ask to redesign it so tap-hold-next doesn't account for the previous key, or maybe have another action called tap-hold-next-only where it only accounts for the next key when holding?
Because right now it prevents me from using a letter key both for quick typing and for rolling-combination-hold with specific keys (I could elaborate on this if you need me to). It ruins the quick typing part for me.

Oooohh wait, you're right. I misread your original message. This is not as intended at all! I will investigate.

So, I've investigated.
The behavior is indeed not-as-intended, I simply misread your original message. Sorry. I did not fix those buttons just yet, because it requires a bit of a redesign of those functions. However, I think there is a ready-made solution that should just  work. Have you tried the tap-next-release and tap-hold-next-release buttons? They are much more sophisticated in their behavior of when they trigger hold vs tap, and in my quick attempts on my test-setup, seem to behave as you would want them to.

I'm aware of the tap[-hold]-next-release buttons but they cannot do the rolling-combination-hold (or rolling-hold for short) concept that I was talking about where I transfer the 'hold' from one key to another.
For instance, I want to use the space key to momentarily change the layer to either the extend layer or symbols layer upon hold. If I implement just that in the base layer, it would interfere with quick typing, so I only allow it after the c key (for extend) or m key (for symbols) is held.  To activate the extend layer, I do P@c P@spl R@c. To activate the symbols layer, I do P@m P@spr R@m.
It's essentially a way to emulate the thumb key -> layer change functionality that a split keyboard tends to have on a standard keyboard since the standard keyboard only has 1 space bar instead of multiple comfortably-reachable thumb keys.

Just wanted to say I have not forgotten about this. I haven't been able to work for a week due to illness, and I will be focusing on wrapping up my current efforts first, but this is very much OnThePile(tm)

Your health is most important so take as long as you need. I'm already grateful of that kmonad even exists, so no rush.

I wanted to fix this and took a look at the documentation:
quick-reference.md:

The decision of what to execute is based upon whether the next button is the buttons own release or not.
tutorial.kbd:
When pressed, if the next event is its own release, we tap the 'tapping' button. In all other cases we first press the 'holding' button then we handle the event.


Add support for dataState parameter

Hi Josh,
PR related to the following issue. I created a new function, called dataState, following the example of search_type.
Don't hesitate to let me know if I need to update something else, that would be my first PR ever on a library I use, so I'm pretty new to this :)

And don't worry about the tests not passing - they'll only run properly once I've approved the change. Thanks again for contributing!

Hi @joshcarty,
I've created a new PR (new branch, changes applied). Talk to you there.

Amazing - thanks for this @antoineeripret! Your change is now available in master here.

Great @joshcarty. Glad to have contributed - just a little bit - to your amazing library. Thanks again for the help & for this amazing tool I use almost daily :)


Support device specifiers in pix2pix example

Part of https://github.com/chainer/chainer/issues/6661.
Needs

unchain_backward, similar to #7055.

PTAL.

Jenkins, test this please

Jenkins CI test (for commit b58c6180ef816425a03c9f8e9c8df752f6613c3d, target branch master) failed with status FAILURE.

LGTM


Remove myself from review of almost all files

Remove myself from review of almost all files except what-is-kubernetes and the deprecation policy.
All of the lists of suggested reviewers need to be overhauled, but that's a separate task.

/assign @jimangel

/lgtm
/approve


Memory footprint should be zero

As the binary block is read-only, it shouldn't be loaded into RAM. however, currently it is up to the compiler to decide.
TODO add const keywords and verify that static RAM allocation is not affected by this library.

Now static


Not working on IOS 14.4, RN 0.64

I follow the guide for installation and the code snippet.
I get the error warning as below even I have try with different method:
WARN  RNReactNativeHapticFeedback is not available

const options = {
  enableVibrateFallback: true,
  ignoreAndroidSystemSettings: false,
};

ReactNativeHapticFeedback.trigger('selection', options); // selection | impactLight and etc.....

I follow the guide for installation and the code snippet.
I get the error warning as below even I have try with different method:
WARN  RNReactNativeHapticFeedback is not available

const options = {
  enableVibrateFallback: true,
  ignoreAndroidSystemSettings: false,
};

ReactNativeHapticFeedback.trigger('selection', options); // selection | impactLight and etc.....

Hi, cd ios && pod install fixed it for me

But not for everyone, as I can see https://github.com/junina-de/react-native-haptic-feedback/issues/39

Hi! for me is also not working
I'm using RN 0.64 and testing on iPhone 12 iOS 14.5.1

Same here iOS 14.4.2.

hey, if someone can try out the method in the comment? I haven't try that.
https://stackoverflow.com/questions/43760502/enable-haptic-feedback-on-react-native-touchable-view/59925020#59925020
https://github.com/junina-de/react-native-haptic-feedback/issues/40

Sorry! I made a silly mistake, the library is working fine for me even without try out the method in the comment.


qa_crowbarsetup: only run zypper dup from ptf repo if it is present

safely makes the call of zypper dup fail
so if the ptf repo is not present this breaks the deployment
Solution, skip the zypper dup if the repo is not present.

This fixes the issue introduced with PR #682

:+1:

tested, fix works well
+1

merging now as gating job got past the changed code line


A framework to evaluate software engineering student contests: evaluation and integration with academic programs

http://dl.acm.org/citation.cfm?id=2486936

Uses coding contests. Study project. No data


Public asset returns 404

Hi All
I am using version 2.3.3 of this plugin. I have a public folder with a file (file === hello.txt, content is hello world), however whenever I try serve that file, I get a 404. @danielcondemarin and @mattdell you can see a demonstration of this by going to https://sayy.it/hello.txt
Here is my setup:
service: sayyit-frontend

plugins:
  - serverless-nextjs-plugin
  - serverless-domain-manager
  - serverless-plugin-warmup
  - serverless-offline

custom:
  stage: ${self:provider.stage}
  memorySize: 256
  prefixes:
    RESOURCES_PREFIX: ${self:service.name}-${self:provider.stage}
  serverless-nextjs:
    cloudFrontConfig:
      prod:
        cloudFront: true
        assetsBucketName: sayyit-prod-static-assets
    assetsBucketName: ${self:custom.serverless-nextjs.cloudFrontConfig.${self:custom.stage}.assetsBucketName}
    cloudFront: ${self:custom.serverless-nextjs.cloudFrontConfig.${self:custom.stage}.cloudFront}
    nextConfigDir: ./
    staticDir: ./static
    customHandler: ./lambda-handler.js
    routes:
      - src: category
        path: category/{id}/{slug}
        request:
          parameters:
            paths:
              id: true
              slug: true
      - src: topic
        path: topic/{id}/{slug}
        request:
          parameters:
            paths:
              id: true
              slug: true
      - src: profile
        path: profile/{id}/{slug}
        request:
          parameters:
            paths:
              id: true
              slug: true
  customDomain:
    staging:
      staging.sayy.it
    prod:
      sayy.it
    domainName: ${self:custom.customDomain.${self:custom.stage}}
    basePath: ''
    stage: ${self:custom.stage}
    createRoute53Record: true
  warmup:
    enabled: prod # Whether to warm up functions by default or not
    folderName: '_warmup' # Name of the folder created for the generated warmup
    cleanFolder: false
    memorySize: ${self:custom.memorySize}
    vpc: false
    events:
      - schedule: 'rate(10 minutes)' # Run WarmUp every 10 minutes
    timeout: 20
    prewarm: true # Run WarmUp immediately after a deploymentlambda
    concurrency: 10 # Warm up 10 concurrent instances

provider:
  name: aws
  runtime: nodejs10.x
  memorySize: ${self:custom.memorySize}
  timeout: 10
  stage: ${env:STAGE, 'staging'}
  tags:
    SERVICE: ${self:custom.prefixes.RESOURCES_PREFIX}
  region: ${opt:region, 'us-east-1'}
  iamRoleStatements:
    # Lambda Warmup functions
  - Effect: 'Allow'
    Action:
      - 'lambda:InvokeFunction'
    Resource:
    - Fn::Join:
      - ':'
      - - arn:aws:lambda
        - Ref: AWS::Region
        - Ref: AWS::AccountId
        - function:${self:service}-${self:provider.stage}-*

package:
  exclude:
    - ./**/*

What am I doing wrong?

Okay, so I realized that when I have cloudfront set to true, my public assets are not accessible. This was my problem. @danielcondemarin does this have to do with #95? Maybe I can update the documentation. BIG question: How would I get the public folder to work with cloudformation? I assume that I would need to use a domain for cloudformation?

Okay, I want to document what was my problem so that it can help other people. The problem is that I had the domain plugin for serverless installed, and it does not play nicely with domains for cloudfront. If someone is in the same situation: Remove your API gateway domain and disable the plugin for your cloudfront enabled stage (normally prod). Then follow the example and assign a domain to the cloudfront distribution.


Correctly set focus on new Notebook cells after clicking on inline buttons.

When clicking on an inline notebook button to add a cell, the click would also trigger the unselectActiveCell callback of the notebook container, causing the newly added cell to lose focus. This change stops the mouse event propagation after adding a cell to prevent that unselect callback from being triggered, similar to how we block mouse events in selectCell.
Fixes https://github.com/microsoft/azuredatastudio/issues/6705 https://github.com/microsoft/azuredatastudio/issues/6614

:shipit:


Vulnerability roundup 111: mysql-5.7.27: 6 advisories [5.5]

search, files

[ ] CVE-2022-21367 CVSSv3=5.5 (nixos-21.11, nixos-unstable)
[ ] CVE-2022-21270 CVSSv3=4.9 (nixos-21.11, nixos-unstable)
[ ] CVE-2022-21303 CVSSv3=4.9 (nixos-21.11, nixos-unstable)
[ ] CVE-2022-21304 CVSSv3=4.9 (nixos-21.11, nixos-unstable)
[ ] CVE-2022-21344 CVSSv3=4.9 (nixos-21.11, nixos-unstable)
[ ] CVE-2022-21245 CVSSv3=4.3 (nixos-21.11, nixos-unstable)

CVE details
CVE-2022-21367
Vulnerability in the MySQL Server product of Oracle MySQL (component: Server: Compiling). Supported versions that are affected are 5.7.36 and prior and 8.0.27 and prior. Easily exploitable vulnerability allows high privileged attacker with network access via multiple protocols to compromise MySQL Server. Successful attacks of this vulnerability can result in unauthorized ability to cause a hang or frequently repeatable crash (complete DOS) of MySQL Server as well as unauthorized update, insert or delete access to some of MySQL Server accessible data. CVSS 3.1 Base Score 5.5 (Integrity and Availability impacts). CVSS Vector: (CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:L/A:H).
CVE-2022-21270
Vulnerability in the MySQL Server product of Oracle MySQL (component: Server: Federated). Supported versions that are affected are 5.7.36 and prior and 8.0.27 and prior. Easily exploitable vulnerability allows high privileged attacker with network access via multiple protocols to compromise MySQL Server. Successful attacks of this vulnerability can result in unauthorized ability to cause a hang or frequently repeatable crash (complete DOS) of MySQL Server. CVSS 3.1 Base Score 4.9 (Availability impacts). CVSS Vector: (CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H).
CVE-2022-21303
Vulnerability in the MySQL Server product of Oracle MySQL (component: Server: Stored Procedure). Supported versions that are affected are 5.7.36 and prior and 8.0.27 and prior. Easily exploitable vulnerability allows high privileged attacker with network access via multiple protocols to compromise MySQL Server. Successful attacks of this vulnerability can result in unauthorized ability to cause a hang or frequently repeatable crash (complete DOS) of MySQL Server. CVSS 3.1 Base Score 4.9 (Availability impacts). CVSS Vector: (CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H).
CVE-2022-21304
Vulnerability in the MySQL Server product of Oracle MySQL (component: Server: Parser). Supported versions that are affected are 5.7.36 and prior and 8.0.27 and prior. Easily exploitable vulnerability allows high privileged attacker with network access via multiple protocols to compromise MySQL Server. Successful attacks of this vulnerability can result in unauthorized ability to cause a hang or frequently repeatable crash (complete DOS) of MySQL Server. CVSS 3.1 Base Score 4.9 (Availability impacts). CVSS Vector: (CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H).
CVE-2022-21344
Vulnerability in the MySQL Server product of Oracle MySQL (component: Server: Replication). Supported versions that are affected are 5.7.36 and prior and 8.0.27 and prior. Easily exploitable vulnerability allows high privileged attacker with network access via multiple protocols to compromise MySQL Server. Successful attacks of this vulnerability can result in unauthorized ability to cause a hang or frequently repeatable crash (complete DOS) of MySQL Server. CVSS 3.1 Base Score 4.9 (Availability impacts). CVSS Vector: (CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H).
CVE-2022-21245
Vulnerability in the MySQL Server product of Oracle MySQL (component: Server: Security: Privileges). Supported versions that are affected are 5.7.36 and prior and 8.0.27 and prior. Easily exploitable vulnerability allows low privileged attacker with network access via multiple protocols to compromise MySQL Server. Successful attacks of this vulnerability can result in unauthorized update, insert or delete access to some of MySQL Server accessible data. CVSS 3.1 Base Score 4.3 (Integrity impacts). CVSS Vector: (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N).

Scanned versions: nixos-21.11: 2128d0aa28e; nixos-unstable: 5aaed40d22f.

See also: #155338, #147891, #132142, #124653, #113473, #93991, #90914

Fixed:

nixos-21.11: mysql-5.7.37, mysql-8.0.28
nixos-unstable: mysql-5.7.39, mysql-8.0.30


Github Group Add Users

What:
We received a request in the NVVS DevOps channel to add news users to a Github repo from Gullbhar Majid. The requested users are:
Dana-Crawford, CharlotteBMoJ, T1m2k2, EmmaSandman, JohnLillingtonMOJ, Jamie-Huntington
Repo requested for access:
https://github.com/ministryofjustice/staff-external-dynamic-list
We should look into reducing the scope for access. Perhaps create another team / group to put people into .
Also we need to review the group the existing contributors to the staff list repo are in.

[x] Dana-Crawford
[x] CharlotteBMoJ
[x] T1m2k2
[x] EmmaSandman
[x] JohnLillingtonMOJ
[ ] Jamie-Huntington

Jamie-Huntington isn't a member of the MOJ GitHub Org.
He will need his line manager to request access to join the Org prior to being added to the team which can manage the repo.

Done

Gullbhar notified via Slack
https://mojdt.slack.com/archives/C01J2L0SC0P/p1699872191920159?thread_ts=1697549214.827939&cid=C01J2L0SC0P


Working data collection from TBA with auto image grabbing

image grabbing doesnt always grab a good photo though, roadmap for this feature is to upload a known good robot image to the backend in the assets folder and define it in the _robot file.  then create a robot gallery and pull all images from TBA to populate said gallery

merge TBA tests to gain access to current year info stored in 2023 robot files