loratap_garage_door incorrect state reporting

Thank you for this awesome integration!
I'm using loratap_garage_door and am getting consistent, but incorrect state reporting.
Commands work perfectly (I believe this is dp 1).
The opener has a contact sensor for the fully closed state (I believe this is dp 101).

When I open/close the garage door outside of HA, the closed state is reported correctly, however the not closed state is always reported as "closing." It seems that the contact sensor open is interpreted as "closing." I can work around this with a template, but it seems to be a bug nonetheless. I tried deciphering cover.py, but couldn't fully follow what was going on with all the abstractions.
When I close the garage door in HA, the state is immediately reported as closed, presumably based on the command. However, the more accurate behavior (at least in my mind), would be to either keep the state as "open" or "closing" until the contact sensor reports that it's closed. Otherwise if the garage door doesn't actually close for some reason, HA will still report it as closed (at least until it presumably updated at some point in the future).

Diagnostics:
"data": {
    "name": "Garage door",
    "type": "loratap_garage_door",
    "device_id": "**REDACTED**",
    "device_cid": "",
    "local_key": "**REDACTED**",
    "host": "**REDACTED**",
    "protocol_version": 3.3,
    "tinytuya_version": "1.14.0",
    "api_version_set": 3.3,
    "api_version_used": 3.3,
    "api_working": true,
    "status": {},
    "cached_state": {
      "updated_at":<PHONE_NUMBER>.159877,
      "1": false,
      "7": 0,
      "101": false,
      "102": 20,
      "103": 0
    },
    "pending_state": {},
    "connected": true,
    "force_dps": [],
    "home_assistant": {
      "name": "Garage door",
      "name_by_user": null,
      "disabled": false,
      "disabled_by": null,
      "entities": [
        {
          "disabled": false,
          "disabled_by": null,
          "entity_category": null,
          "device_class": null,
          "original_device_class": "garage",
          "icon": null,
          "unit_of_measurement": null,
          "state": {
            "entity_id": "cover.garage_door",
            "state": "closed",
            "attributes": {
              "current_position": 0,
              "device_class": "garage",
              "friendly_name": "Garage door",
              "supported_features": 3
            },
            "last_changed": "2024-07-11T00:52:04.938509+00:00",
            "last_reported": "2024-07-11T00:52:36.429794+00:00",
            "last_updated": "2024-07-11T00:52:04.938509+00:00"
          }
        },
        {
          "disabled": false,
          "disabled_by": null,
          "entity_category": "config",
          "device_class": null,
          "original_device_class": null,
          "icon": null,
          "unit_of_measurement": "min",
          "state": {
            "entity_id": "number.garage_door_timer",
            "state": "0.0",
            "attributes": {
              "min": 0.0,
              "max": 1440.0,
              "step": 1.0,
              "mode": "auto",
              "unit_of_measurement": "min",
              "friendly_name": "Garage door Timer"
            },
            "last_changed": "2024-07-11T00:06:58.942309+00:00",
            "last_reported": "2024-07-11T00:06:58.942309+00:00",
            "last_updated": "2024-07-11T00:06:58.942309+00:00"
          }
        },
        {
          "disabled": false,
          "disabled_by": null,
          "entity_category": "config",
          "device_class": null,
          "original_device_class": null,
          "icon": null,
          "unit_of_measurement": "s",
          "state": {
            "entity_id": "number.garage_door_travel_time",
            "state": "20",
            "attributes": {
              "min": 10.0,
              "max": 120.0,
              "step": 1.0,
              "mode": "auto",
              "unit_of_measurement": "s",
              "icon": "mdi:timer",
              "friendly_name": "Garage door Travel time"
            },
            "last_changed": "2024-07-11T00:06:58.942618+00:00",
            "last_reported": "2024-07-11T00:06:58.942618+00:00",
            "last_updated": "2024-07-11T00:06:58.942618+00:00"
          }
        },
        {
          "disabled": false,
          "disabled_by": null,
          "entity_category": "config",
          "device_class": null,
          "original_device_class": null,
          "icon": null,
          "unit_of_measurement": "min",
          "state": {
            "entity_id": "number.garage_door_alarm_timer",
            "state": "0.0",
            "attributes": {
              "min": 0.0,
              "max": 1440.0,
              "step": 1.0,
              "mode": "auto",
              "unit_of_measurement": "min",
              "icon": "mdi:alarm",
              "friendly_name": "Garage door Alarm timer"
            },
            "last_changed": "2024-07-11T01:01:38.629364+00:00",
            "last_reported": "2024-07-11T01:01:38.629364+00:00",
            "last_updated": "2024-07-11T01:01:38.629364+00:00"
          }
        }
      ]
    }
  }

The DPs reported by this device are very limited, so the integration needs to basically guess at the actual state.  The guesses are as follows;

DP1
DP101
State

false
false
closed

false
true
closing

true
false
opening

true
true
open

When you control the device from outside HA, the command (DP1) may not be updated by the device, leading to the wrong state in that table, and therefore a wrong state reported.
The sensor DP101 is marked in the tuya info as detecting "open" state.  It is therefore not surprising that it changes immediately when the door starts closing.

There is too much inconsistency between different Tuya cover devices for me to start making code changes to let your device work perfectly, as it will adversely affect many other devices.  To fix 1, it may be possible to avoid looking at command completely when determining state, but that will mean the closing and opening states will never show for this device, and it will show closed when opening until the device indicates that it is opening, and the behaviour in 2 of immediately showing closed will remain.

I address this issue in my discussion: #1419

DP1
DP101
State

false
false
closed

false
true
closing

true
false
opening

true
true
open

One issue that can result from that state table is if the device is closing (but this is prevented by one of those reflective sensors or if it closes on something and stops), the cover can get stuck in the closing state. In this state, neither the open nor close controls work and you need to manually open/ close it on the device.
Tuya itself attempts to address this issue by implementing a "time of flight" configuration. As usual, their documentation of this is completely shoddy (and this is probably why it isn't discussed more). However, it works as follows:

Use a stopwatch to time how long your device takes to open/ close (usually it will take longer to open due to working against gravity).
Set that as the "time of flight".
The logic works as follows:

DP101
Time of Flight
State

false
Elapsed Time > Time of Flight
closed

true (DP1 toggled)
Elapsed Time < Time of Flight
closing

false->true (DP1 toggled)
Elapsed Time < Time of Flight
opening

true
Elapsed Time > Time of Flight
open

Note that:

The state of DP1 becomes irrelevant (as it truly should). These devices operate effectively as a one button remote anyway (each push cycles between run/ stop and which way it runs is dependent on the existing state of DP1 and there is no reliable way to predict which way it will run realistically from the information exposed).
One benefit of this this logic is that the device will "fail safe" i.e. it can be safely assumed that if DP101 is false then the  garage door is definitely closed and based on this logic the device will default to open after the time of flight has expired.
A stop function can also be implemented for "emergencies".

I've read the documentation and from what I understand implementing something like this would require a significant backend update to how tuya-local works.

Thank you both!
Sorry, when I searched, I didn't think to search in discussions.

On reflection, the use of the command dp to try to distinguish opening and closing is unreliable, and it was a mistake to give in to previous users demands to support opening and closing states on devices where it cannot be reliably determined.  I have modified
the logic to limit the use of command to only cases where there is reliable current position info to determine that the cover is not fully opened or closed, and not stopped at the position that was set to go to (in that case it can be reliably determined that the state is one of either opening or closing, so it does not matter so much if we guess wrong based on the last command which does not take into account interaction outside of HA).

The outcome should be that when your garage door is fully closed, it will show closed, other times it will show opened, since that is the only information your door is giving.

Just updated it and it's behaving exactly as expected.
Thank you!!


ILI9486: temporary white screen after 1 minute of inactivity

I have one of these 3.5'' Waveshare clones. Using the   -DWAVESHARE35B_ILI9486=ON everything works (with an RPi2B). The only snag is that if nothing happens on the screen after exactly 1 minute, the screens turns white. When there is a screen update, the screen is properly redrawn and can be used as if nothing had happened.

Try commenting out the display inactivity config line in config.h if that might have an effect?

Thanks. That worked! I understand that turning the display off is still not
understood (and I do not need it).
On Sun, Nov 10, 2019 at 7:24 AM juj<EMAIL_ADDRESS>wrote:

Try commenting out the display inactivity config line in config.h if that
might have an effect?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/juj/fbcp-ili9341/issues/117?email_source=notifications&email_token=AADRKPR35EYBFAMOCWRBVULQS6SLDA5CNFSM4JLJNUN2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEDUWP7Q#issuecomment-552167422,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AADRKPXSUT2ZBKQGTRETXHDQS6SLDANCNFSM4JLJNUNQ
.


'Range Filter'  doesn't work in 'Time Series - Bar Chart' and 'Time Series - Stacked'

Make sure these boxes are checked before submitting your issue - thank you!

[x] I have checked the superset logs for python stacktraces and included it here as text if any
[x] I have reproduced the issue with at least the latest released version of superset
[x] I have checked the issue tracker for the same issue and I haven't found one similar

Superset version
0.18.5
Expected results
Display the time range interactive selector when 'Range Filter'  is checked in 'Time Series - Bar Chart' and 'Time Series - Stacked' Slice.
Actual results
There is no time range interactive selector appears when  'Range Filter'  is checked.
Steps to reproduce
Select  'Range Filter'  in the slice type of 'Time Series - Bar Chart' or 'Time Series - Stacked'.
Code issue
It seems show_brush only processed when vizType==line in nvd3_vis.js, but listed both in the controlSetRows of line, bar, and area in visTypes.js .

Notice: this issue has been closed because it has been inactive for 277 days. Feel free to comment and request for this issue to be reopened.


Unable to view and use of Admin Panel on a Mobile Device ( Poco F1 )

Trying to use "foss-billing-installation.com/admin" on a mobile device
The Main Side Panel from the Admin Panel Disappears
The Logout / Profile Information Disappears.
Only remaining Orders - Users - Invoices - Payments are Visible.
Tried Google Chrome, Mozilla, Opera All Displaying above and Hiding the Actual Admin Side Panel.
But Was Able to Use The Side Panel Using A Desktop Browser App From Playstore.
So the problem is with either the Auto Scaling to resolution or with the Admin Panlel Code Itself.

The Resolution of Poco F1 Display is 1080 × 2280 Pixels

When the resolution of the display set to 1024 x 480 the above error occurs

Even with a iPhone it has multiple issues:

Set css like this in .table for mobile：
.table {
    width: 100%;
    display: block;
    overflow-x: auto;
    white-space: nowrap;
}

The Logo part can be modified in line 133 of "layout default.html.twig", remove "d-flex" and see.

The navbar has been fixed, at this point the remaining issue is with the profile link being hidden and the main elements going off-screen if it's especially small


Java DSL - Add notes in documentation about its limitations

a)
For example its limited to a single class / configure method, and any utility should be provided in 3rd party JARs.
b)
Also endpoint uris should be direclty in the endpoint strings, for the camel-k automatic dependency support, otherwise you must declare the dependencies yourself.

Point b was covered by #2599


No module named 'translation_agent' help wanted

I am really very new to programming, forgive me if this is a stupid question but,
When I try to run app.py I receive below error:
Traceback (most recent call last):
File "/content/translation-agent/app/app.py", line 6, in
from process import (
File "/content/translation-agent/app/process.py", line 8, in
from patch import (
File "/content/translation-agent/app/patch.py", line 9, in
import translation_agent.utils as utils
ModuleNotFoundError: No module named 'translation_agent'

Traceback (most recent call last):
File "/translation-agent-main/app/app.py", line 6, in
from process import (
File "/translation-agent-main/app/process.py", line 8, in
from patch import (
File "/translation-agent-main/app/patch.py", line 37
match endpoint:
^
SyntaxError: invalid syntax

Also have the same issue


bigInteger ID off

Issue Description
Describe the bug found or the feature that you are proposing.
Running the following code:
getById(id) {
        console.log(id);

        let userAccount = await this.where('id', id).fetch().then(uacc => uacc);

        console.log(require('util').inspect(userAccount));
        console.log(userAccount.get('id'));
}

My database features a single entry in the table with the id<PHONE_NUMBER>30643968, which is also passed to the function. The database record is fetched correctly, however both dumps afterwards show an ID of<PHONE_NUMBER>30643970 instead. I'm at a loss of what causes this behavior or how to retrieve the right value.
[18:11:48] Cluster 0 |<PHONE_NUMBER>30643968
[18:11:48] Cluster 0 | UserModel {
  attributes:
   { id:<PHONE_NUMBER>30643970,
     active_class_id: 14,
     creation_date:<PHONE_NUMBER>,
     currency: 0,
     start_date:<PHONE_NUMBER>,
     last_activity_date:<PHONE_NUMBER>,
     color: null },
  _previousAttributes:
   { id:<PHONE_NUMBER>30643970,
     active_class_id: 14,
     creation_date:<PHONE_NUMBER>,
     currency: 0,
     start_date:<PHONE_NUMBER>,
     last_activity_date:<PHONE_NUMBER>,
     color: null },
  changed: {},
  relations: {},
  cid: 'c4',
  _discord_user: null,
  _knex: null,
  id:<PHONE_NUMBER>30643970 }
[18:11:48] Cluster 0 |<PHONE_NUMBER>30643970

Steps to reproduce issue
See description.
Expected behaviour
Get the right ID.
Actual behaviour
Get an ID that is two higher than expected.

What database is this? Bookshelf version?

Database: 10.1.26-MariaDB
Bookshelf: 0.15.1
Knex: 0.19.3

Upgraded to:
Bookshelf: 1.0.0
Knex: 0.19.4
Result is the same.

I feel like this has to be an issue with the driver. If you remove Bookshelf and Knex, and just the simple select query, do you still get the erroneous id?


Not allowing numbers

[nodemon] restarting due to changes...
[nodemon] starting `ts-node .`
❌ Invalid environment variables: { HTTP_PORT: [ 'Expected number, received string' ] }

import { createEnv } from '@t3-oss/env-core';
import { z } from 'zod';

export const env = createEnv({
  clientPrefix: 'PUBLIC_',
  client: {},
  server: {
    NODE_ENV: z.string().regex(/development|production/),
    ADMIN_API_KEY: z.string().min(24),
    HTTP_PORT: z.number().min(0).max(65535),
    SENTRY_DSN: z.string().url(),
  },
  runtimeEnv: {
    NODE_ENV: process.env.NODE_ENV,
    ADMIN_API_KEY: process.env.ADMIN_API_KEY,
    HTTP_PORT: process.env.HTTP_PORT,
    SENTRY_DSN: process.env.SENTRY_DSN,
  },
});

Env value will always coming in with string | undefined, but you can make it work by doing z.preprocess(Number, z.number())

Env value will always coming in with string | undefined, but you can make it work by doing z.preprocess(Number, z.number())

@chungweileong94 thanks - never used zod before. This works!


maven property  micronaut.data.version

For Maven users with :
    <micronaut.data.version>3.10.0</micronaut.data.version>

we need to update to:
    <micronaut.data.version>4.0.1</micronaut.data.version>

Not sure if we can remove it which will be easier.

Do we generate this property in starter? It isn't needed

Yeah it seems we do. It needs to be removed there too

@jeremyg484 update the recipe to remove micronaut.data.version if exists in the maven project.
@alvarosanchez I will create an issue for starter.


Exposed car lights to client

Description
Now the vehicle lights can be turned on and off from the client-side. manual_control.py has been updated to allow this too, so feel free to experiment with it. Open the help panel (H key) for more information.
You will need the latest art repo to work with cars that have lights implemented. Right now they are: Tesla Model3, Cybertruck (yup :wink:) and the Volkswagen T3
To control them from the client we exposed the VehicleLightState that is an enum that works as a flag container. The values are:

Position
LowBeam
HighBeam
Brake
RightBlinker
LeftBlinker
Reverse
Fog
Interior
Special1
Special2

The special ones are reserved to car specific lights (like ambulance sirens)
An example opening the position light and low beam light from some vehicle:
# Decide which ones do we want to open, adding these flags
lights_to_open = carla.VehicleLightState(
    carla.VehicleLightState.Position | carla.VehicleLightState.LowBeam)
# Set the state of the car lights to match the flag we created
vehicle.set_light_state(lights_to_open)

Where has this been tested?

Platform(s): Ubuntu 18.04
Python version(s): 3.6
Unreal Engine version(s): 4.22

Possible Drawbacks
You can experiment with performance issues when enabling big amount of lights. This is more an Unreal/Art issue but should be taken into consideration while using the API.

This change is

The cybertruck is amazing!


Concurrency Issue: 'Server Busy' Errors After Updating Ollama

What is the issue?
Issue Summary:
Yesterday, I conducted a test where I spun up 30 concurrent goroutines and sent them as POST requests to Ollama locally. The process worked smoothly, and I received responses within approximately 2 minutes.
go ProcessPromptWithOllama() x30 times
Problem Description:
However, after updating Ollama today, I encountered the following errors:
\"error\":\"server busy, please try again. maximum pending requests exceeded\"}
\"error\":\"unexpected server status: llm busy - no slots available\"}
Reproducibility:
The issue is consistently reproducible after the Ollama update. It occurs regardless of the specific endpoint or payload used in the POST requests.
Expected Behavior:
I expected the updated Ollama to handle the concurrent requests as efficiently as it did before the update, without encountering any server overload issues.
OS
macOS
GPU
Apple
CPU
Apple
Ollama version
0.1.33

Hi @mynhinguyentruong, I'm so sorry about this issue – we'll get this fixed so more requests can be queued

Dup of #4124


chore: migrate to next 13 and upgrade packages

Main change: Upgrade to Next 13.
Somehow, the newer SWC version does not play well with jest.spyOn (see swc/issues/5059 and others). So I'm ditching Jest spies, which is not too bad anyway cause it has never been a correct approach for (React ) integration tests (a.k.a . write tests so that they resemble the way the users use the app).
Also:

Upgrade dependencies
Refactor integration tests that include spies
Bump min node version to 16.15
Change "Home" to "Play" in navigation

Codecov Report

Merging #37 (8224baf) into main (bdb7735) will decrease coverage by 3.25%.
The diff coverage is 88.88%.

@@            Coverage Diff             @@
##             main      #37      +/-   ##
==========================================
- Coverage   89.27%   86.02%   -3.26%
==========================================
  Files          69       67       -2
  Lines        1567     1181     -386
  Branches      199      153      -46
==========================================
- Hits         1399     1016     -383
+ Misses        168      165       -3

Flag
Coverage Δ

unittests
86.02% <88.88%> (-3.26%)
:arrow_down:

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

Impacted Files
Coverage Δ

src/components/drawer/drawer.tsx
100.00% <ø> (ø)

src/components/feedback/dialog-preview.tsx
100.00% <ø> (ø)

src/pages/_app.page.tsx
0.00% <ø> (ø)

src/pages/_document.page.tsx
0.00% <ø> (ø)

src/pages/about.page.tsx
100.00% <ø> (ø)

src/pages/index.page.tsx
100.00% <ø> (ø)

src/redux/position/thunks.ts
97.56% <75.00%> (-2.44%)
:arrow_down:

src/redux/store.ts
86.36% <80.00%> (-13.64%)
:arrow_down:

src/components/head/custom-head.tsx
100.00% <100.00%> (ø)

src/lib/analytics-events.ts
88.88% <100.00%> (+16.16%)
:arrow_up:

... and 70 more

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


Add ability to share a page with saved links

Hey there. Original OneTab has an option to share all the saved links as a webpage. So that I can easily check my saved tabs on other devices (e.g. smartphone).
I wanted to implement this feature here myself, but I don't have access to the server, hence can't implement backend functionality. I see it in a way that the user has an ID (could be a token), he can open a link like https://boss.cnwangjie.com/token/tabs and see his saved tabs.
It shouldn't be that difficult to implement, so you can either grant me access to the backend repository and I'll create 2 pull requests, or do it yourself if you have time. Thanks in advance :)

I think the intent is to be able to select multiple pages or all pages using the checkboxes, select the three dot icon, and then use the copy link function to share a page. It does not correctly function, however. It only copies a string of text of the selected websites.

Yes, that's what I'm talking about. Wouldn't it be more convenient to display all those links on a separate page?

Yes, and it would also be nice to have the link automatically copied to the clipboard so there's less shuffling between tabs as well.

Makes sense. Would you implement that? :)

Would that I were able to. I only know how to complain!

I'm sorry that I have not checked the issues in a long time because of busy. I think this is a useful feature for many people. I'm willing to add this feature in the future. I hope the style of the shared links page will be same as the extension to keep the style uniform.
Besides, the repo of the backend server is here:
https://github.com/cnwangjie/better-onetab-sync-server
It is great if you are willing to make a PR.
Thank you all. :laughing:

Awesome, thank you! I currently don't have much time but will take a look once I do and will try come up with something :)

I REALLY need this feature or else i will have to revert back to OneTab!!

https://github.com/cnwangjie/better-onetab/issues/255


Support for use in WASM environments.

Hey @ihrwein. This PR enables the use of this crate in WebAssembly environments.
Already tested the changes in a wasm-bindgen based context. Everything is working as expected. Please note: that this does not add support for the Operation trait's default implementation of retry_notify, which uses std::thread::sleep. Everything else should be just fine though.

Thank you @thedodd  for the contribution, looks good to me. And sorry about my late response.

I'll issue a release in 1 day.


Multiple Query String parameter in single request path not working

Multiple Query String parameter in single request path is not working for me. Code looks like below:
when(                         request()                                 .withMethod("GET")                                 .withHeader("Accept", "application/json, text/plain, */*")                                 .withPath("/URL/")                                 .withQueryStringParameter("QueryParam", "fromdate=2018-11-08T02:00:00.000Z&todate=2018-11-08T02:30:00.000Z")
QueryParam is not working with the date range. I tried withQueryStringParameters as well but it dint work. Please suggest solution to this.

That is not legal syntax your code should looks like the following:
when(
   request()
      .withMethod("GET")
      .withHeader("Accept", "application/json, text/plain, */*")
      .withPath("/URL/")
      .withQueryStringParameter("fromdate", "2018-11-08T02:00:00.000Z")
      .withQueryStringParameter("todate", "2018-11-08T02:30:00.000Z")
)

or:
when(
   request()
      .withMethod("GET")
      .withHeader("Accept", "application/json, text/plain, */*")
      .withPath("/URL/")
      .withQueryStringParameters(
         param("fromdate", "2018-11-08T02:00:00.000Z"),
         param("todate", "2018-11-08T02:30:00.000Z")
      )
)


can you please add a configuration example for lua

hey,
i used switch.vim for the last years.
i recently switched to configuring nvim with lua.
can you maybe add a lua example to the readme?
thx for the plugins you are writing!

The way to configure switch.vim is to set certain global variables to certain values. There's really nothing special to do -- you could find out how to set Vim global variables using the lua api and do that.

So I am trying to set up Lazy.nvim with a fresh clean lua config, and I do have Switch installed and I can see that it has created the normal mode map for gs to be <Plug>(Switch), but typing gs doesn't do anything.


rename temporary column to something less likely to be used

The internal/temporary column "labels" is a common thing for people to use. Columns with this name will not get categorified. I changed it to __labels_tmp.

Ah - Looks like we also make the "labels" assumption in core :/


Using lists in input types

Is it possible to use lists in input arguments? For example:
data UserNames = UserNames
    { getUserNames :: [Text]
    } deriving (Generic, Show)

instance FromValue UserNames
instance Defaultable UserNames
instance HasAnnotatedInputType UserNames

Results in this error:
    • No instance for (HasAnnotatedInputType [Text])

I am not sure what the purpose HasAnnotatedInputType is, what does Annotated mean in the name? There seem to be no instance of this for List types i.e. [a]. Is that just missing or is it not possible to make it, or it does not make sense?

I can't find any tests passing lists in input objects, is it supported? Is there a right way to do it?

This is a duplicate of #142


Add lots of Socket related bindings

Depends on https://github.com/gtk-rs/glib/pull/290

Last commit "Add SocketClient" don't contains regen with removing *_async

Last commit "Add SocketClient" don't contains regen with removing *_async

Thanks, fixed

All manual code looks good and PR compiled for windows.
@sdroege Thanks.

@GuillaumeGomez Should be good to go then, after the GLib one is merged :)

I restart CIs.

CI happy :)

Then so am I. :smiley:


Get cropped and scaled bitmap without GUI interaction?

Love this library.
I would like to do a fixed scale and center crop of an image bitmap in an Android service. Is there any way of doing this by using your library? It would save me from having to implement all the logic myself.
Thanks

Just look at the code and pick what you need from there, most of the complexity comes from UI interactions and not actual cropping.
https://github.com/ArthurHub/Android-Image-Cropper/blob/master/cropper/src/main/java/com/theartofdev/edmodo/cropper/BitmapUtils.java


Keys (including global hotkeys) disabled upon return from safe sleep mode on retrorun flycast_rumble and flycast_extreme core for Sega Dreamcast

Describe the Issue (If applicable)
Controls are deactivated upon return from safe sleep mode (tapping the power button) in the retrorun32 flycast_rumble and flycast_extreme cores for Sega Dreamcast. This includes the global hotkeys start+select, so not only do you not return to playing the game, you need to hard reset the device to use it again at all.
How can the issue be reproduced? (If applicable)
This has been occurring while playing Skies of Arcadia. I have not tested it on other Dreamcast games.
What device are you using?
RG351P
What version of ArkOS are you on?
v<IP_ADDRESS>.2021
Anything else you'd like to include that may help to review this issue or feature request?
Thank you again for your incredible work on ArkOS!

Unfortunately, it's a common issue with sleep on this device.  You can still do R3+Power to shutdown safely when this issue occurs.  I've added this information tot he known issues list on the wiki.

Thank you! I did not know about the same shutdown. Is the a full list of hotkey combos anywhere? Many seem similar to the ones listed here: https://forum.odroid.com/viewtopic.php?p=284237&sid=d77c38389083c2698752b3525e4d5ddc#p284237
I assume this core doesn't do savestates? Any chance they will be added?

Yes.  All of that information is available in the FAQ section of the wiki.  https://github.com/christianhaitian/arkos/wiki/Frequently-Asked-Questions---RG351P#q-what-are-the-global-event-keys-and-emulator-event-keys-in-ArkOS.  I'm hoping to get savestates working for retrorun eventually.


Bump mimemagic from 0.3.2 to 0.3.10

Version 0.3.2 was yanked from rubygems.org and is not available for install anymore. Bumping to 0.3.10 which is latest patch version before 0.4.x.
Seems that the only major change is that fd.o database is not distributed with the gem anymore, but most Linux system should already have it preinstalled anyway. It should not cause any issues.

Forget to pull latest changes


PhantomJS does not like GZIP compression in some scenarios

<EMAIL_ADDRESS>commented:

Which version of PhantomJS are you using? 1.7.0 for Windows stock from the web-page.
What steps will reproduce the problem?
Run PhantomJS against a web server with a slightly malformed GZIP response stream (attached a sample VS 2010 project hooking into IIS Express 8.0 that demonstrates this problem) and watch PhantomJS fall over itself every now and then. I think this is because of two distinct WebKit related bugs:

https://bugs.webkit.org/show_bug.cgi?id=58727
https://bugreports.qt-project.org/browse/QTBUG-16022

But both of them seem to be fixed, so not sure if they are truly related.
I've attached a Visual Studio project which demonstrates the problem. I've configured it such that the server (IIS Express must be installed as well) sends back GZIPped content if the "X-Test-Runner" request header is not present and send back GZIPped content if the "X-Test-Runner" request header is present. When the content is GZIPed, then PhantomJS will sometimes throw an "$ is undefined" exception but sometimes work correctly. When the content is not GZIPed, then PhantomJS will work correctly.
Sorry if this bug report isn't exactly the clearest, I've had a hell of a time tracking down the problem and if you need any further details please do let me know.

Disclaimer:
This issue was migrated on 2013-03-15 from the project's former issue tracker on Google Code, Issue #930.
:star2:   5 people had starred this issue at the time of migration.

@paulyoung I'm using the following (took it from localnerve/html-snapshots@f99ddc59545ede1e8744ba0cad5c05c0a0ccbdab):
page.customHeaders = {
  "Accept-Encoding": "identity"
};

Hello!
You have a new message, please read http://risk-management979.tk/arm.php?j2s8
<EMAIL_ADDRESS>


Generalise Hamiltonian to xyz. Make compatible with qiskit 0.45.1

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.

Hold off on reviewing - I believe a more advanced version with variable couplings between different qubit pairs is in the works


All documentation site links appear to be broken (redirect to home)

Version
The live React Router documentation site at https://reactrouter.com/web/ as of 2020-09-16.
Not sure if this corresponds to v5.2.0 or no version at all.
(BTW, I'd just like to point out that it's a bit unclear where/how to post a documentation or website bug. I do see website in this repository, but the bug template doesn't really treat a doc bug like a first class citizen? And the docs don't point to the github so it was unclear.)
Test Case
Click on an intra-doc link on any documentation page, e.g. https://reactrouter.com/web/api/location
The link should go to the appropriate documentation location.
Steps to reproduce

Go to https://reactrouter.com/web/api/location
Click on a link to some other part of the react router doc, such as the link to the Route component.
Observe that the link redirected to the home page, rather than going to the Route Component.

Expected Behavior
Links would go to their intended destination in the docs.
Actual Behavior
All links in the documentation go to the react router home page.

Duplicate of #7484


Update ci.yml

Summary by CodeRabbit

Chores

Streamlined the CI workflow by removing the redundant build step for the ESPHome factory version, enhancing efficiency during the build process.

@coderabbitai full review

@coderabbitai full review


fix: dev server command

Seems like npm start is not the right command to start the dev server? so fixed it to npm watch:eleventy

Ummm I used higher node version 17 so node-sass failed and npm watch:eleventy worked for me (although watch doesn't run). May be we can add engines in package.json?

With which versions node-sass is compatible?

The version we use is supported till 16 - https://github.com/sass/node-sass/releases/tag/v6.0.1
Shall I add engines in this PR then? and remove that command change?

Yes. Just add node 16 in engine.

npm start works fine for me. What problem are you seeing?

This was occurring with node-sass since we have migrated to dart-sass we can ignore this


Add test case for #308 (#246)

See #308 and #246

Thanks!
You are right, poll_shutdown should indeed call self.poll_flush before calling inner.poll_shutdown


Kvm vgic

Before sending a pull request, please review Contribution Guidelines:
https://github.com/google/syzkaller/blob/master/docs/contributing.md

I had to rename the ICC registers because the old toolchain in syz-old-env didn't recognize them.

PTAL (take your time, not sure it's the best idea to land the series today)

What's interesting is that the coverage with this series went down by ~500 BBs and gained back only ~300 during the day.
Perhaps changes that add device attributes need to be landed separately to better understand their effect.

What's interesting is that the coverage with this series went down by ~500 BBs and gained back only ~300 during the day. Perhaps changes that add device attributes need to be landed separately to better understand their effect.

If it does not restore, potentially it's possible to look at a diff coverage report.

@dvyukov PTAL

What's interesting is that the coverage with this series went down by ~500 BBs and gained back only ~300 during the day. Perhaps changes that add device attributes need to be landed separately to better understand their effect.

If it does not restore, potentially it's possible to look at a diff coverage report.

I tested the patches adding device attributes separately, and they were able to gain the same coverage as master.


[5.9][Macros] Attached macro expansions return single string

Cherry-pick #1845 into release/5.9

https://github.com/apple/swift/pull/66935
@swift-ci Please test


Update blocklist.txt

Hey @Morty-Feldman
I love this! Could you do me one favor: change the commit message from what you did "Update blocklist.txt" (which is self-evident from reviewing the commit) to why you did the commit. For example:

Prevent unfair mirroring of n4g.com
<IP_ADDRESS> is mirroring N4G.com, a gaming news aggregator, and stealing ad revenue.

Once you change the commit message, do a force-push so there's only one commit message.

Okay - no IPs are currently mirroring N4G as far as I'm aware (I had Hetzner take those machines down over the past couple of months).
But I was thinking of blocking all of the obvious mirrors that you can find here - https://www.google.com/search?q=site%3Asslip.io
Is that something that I should do to prevent this sort of abuse of your service or would you rather go through those and block them?

Hi @Morty-Feldman

But I was thinking of blocking all of the obvious mirrors that you can find here - https://www.google.com/search?q=site%3Asslip.io

Is that something that I should do to prevent this sort of abuse of your service or would you rather go through those and block them?

 I'm willing to review PRs to block them, but that's as far as my effort extends.
Remember: not all mirrors are illegitimate: the classic example is a designer throwing together a website and providing a link to their customer ("click this link to see my design!"). We don't want to punish innocent users.
Also, the volume of websites to review is simply astounding: my nameservers answer 200 queries per second; if we limit our focus to websites that have acquired Let's Encrypt TLS certificates, that narrows the search down to 3,000 websites (I've recently submitted a request to bump our limit to 5,000).
Also, the shutdowns are largely ineffective: the miscreant merely switches to a different IP address: voila — no more block.
I also suspect that your

Let me know when you've re-written the commit message and done a force-push.

Hey, @cunnie - I just had an idea.
Would it be possible to setup sslip.io to send the http header X-Robots-Tag: noindex whenever it serves a page?
That way, abusers would stop using your service to flood search engines with mirrored websites AND people can still use your service for what it was intended for.
A bonus is that you would use a lot fewer resources because this would stop the hundreds of abusers that are currently using your service for this purpose.

Would it be possible to setup sslip.io to send the http header X-Robots-Tag: noindex whenever it serves a page?

Nice idea, not possible. My servers only return DNS queries, not HTTP. No HTTP → no headers.

Would it be possible to setup sslip.io to send the http header X-Robots-Tag: noindex whenever it serves a page?

Nice idea, not possible. My servers only return DNS queries, not HTTP. No HTTP → no headers.

Ah, I see. Would it be possible to do so via robots.txt that you can have available at https://sslip.io/robots.txt ?

Ah, I see. Would it be possible to do so via robots.txt that you can have available at https://sslip.io/robots.txt ?

That's not possible according to ChatGPT:

The robots.txt file is generally considered to be effective only for the specific host, protocol, and port number where it is located. This means that a robots.txt file located at http://sslip.io/robots.txt will only provide crawling instructions for URLs that begin with http://sslip.io/.

Subdomain Independence: Each subdomain is viewed as a separate entity with respect to robots.txt files. Therefore, a robots.txt file placed at http://sslip.io/robots.txt does not automatically apply to http://<IP_ADDRESS>.sslip.io or any other subdomain. Each subdomain that requires specific rules for web crawlers must have its own robots.txt file at the root of the subdomain.

Ah, I see. Would it be possible to do so via robots.txt that you can have available at https://sslip.io/robots.txt ?

That's not possible according to ChatGPT:
* The robots.txt file is generally considered to be **effective only for the specific host, protocol, and port number where it is located**. This means that a robots.txt file located at http://sslip.io/robots.txt will only provide crawling instructions for URLs that begin with http://sslip.io/.

* Subdomain Independence: Each subdomain is viewed as a separate entity with respect to robots.txt files. Therefore, a robots.txt file placed at http://sslip.io/robots.txt does not automatically apply to http://<IP_ADDRESS>.sslip.io or any other subdomain. Each subdomain that requires specific rules for web crawlers must have its own robots.txt file at the root of the subdomain.

I see. Yes, this is a frustrating situation. I can't imagine why there are so many abusers of your service - what do they get out of doing this?
The only other thing I can think of for now is create a Google Search Console account for sslip.io then use the Removals page to wipe out all subdomains - https://search.google.com/search-console/removals

The only other thing I can think of for now is create a Google Search Console account for sslip.io then use the Removals page to wipe out all subdomains - https://search.google.com/search-console/removals

Too much work; not inclined to do it. Sorry.


Create 'feature_request' template (#137)

Create feature_request template
Co-authored-by: @Han-D-Peter
Co-authored-by: @sunyeongan
Reference : https://github.com/defwdahyun0/issue-template-tutorial

To apply feedback immediately, I activate issue feature in your forked repository Settings.
https://github.com/defwdahyun0/euphony/issues

@defwdahyun0
And finally, I can't find co-author's commits!
here is example of co-author's commit :)
$ git commit -m "Modify somethings
>
>
Co-authored-by: name<EMAIL_ADDRESS>Co-authored-by: another-name<EMAIL_ADDRESS>

Thank you for ending it well Dahyeon ^ _ ^ !!!

I added co-authors!


Alignment with error message

Describe the bug
I want to align the button and input next to each other, label-fixed enabled. However when the error message is shown the alignment is getting broken.
Expected behavior
Alignment should be kept nonetheless.
Screenshots
https://user-images.githubusercontent.com/47941171/219015156-4637cadf-420e-4eb8-b055-3f8fecf9f94f.mov

Version 71

It also has a weird behaviour with BlSelect and BlInput when wrapped with display flex and align baseline.
BlSelect

BlInput

I'm working on #287 and this will be fixed there as well. (I already fixed it in my branch).

But, good to be aware: When error message showed, height of the select component will be bigger since we don't reserve extra empty space below for messages (same in input). So if you align select with something next to it with vertical centering, error text will break it. To avoid this, you may consider adding a help-text which will contain some information below field when there is no error.

I just noticed that positioning a button next to a form field with a fixed label (label-fixed) can be also a challenge. For that kind of cases you can define a rule like below in your CSS:
[label-fixed] ~ bl-button {
  margin-top: calc(var(--bl-size-3xs) + var(--bl-font-caption-line-height));
}

This will add exact same space of the height of the label of a medium sized input to the bl-button next to a fixed-labeled field. Example:


[WIP] Project teams

Hello @jezdez,
I've started to work on "Project Teams". I'd be happy if you create an issue for this feature since only you have the full picture of how it should be implemented. Thanks!

Closing in favor of #893


Encrypted Sessions in XAMPP

I have just updated my old Codeigniter 2.x installation to 3.0.
My development system runs under XAMPP and this too has been updated to the latest 1.8.3, for PHP 5.5.15.
This is fine, it all works nicely so there is no problem.
As I move through switching things on with the existing project, I find that there is a problem using Encryption with the Session cookie class.
By default the system uses AES-128 with CBC. Fine, except that XAMPP does not have AES-128!
The available ciphers are: cast-128 gost rijndael-128 twofish cast-256 loki97 rijndael-192 saferplus wake blowfish-compat des rijndael-256 serpent xtea blowfish enigma rc2 tripledes arcfour
As per my phpinfo().
So, I need to change the cipher used. Not a problem you say, just ....
Which is possible of course, but I have added and am proposing that we add in some additional config paramenters, so that it can be easily controlled from the static config file.
/*
|--------------------------------------------------------------------------
| Encryption Key
|--------------------------------------------------------------------------
|
| If you use the Encryption class or the Session class you
| MUST set an encryption key.  See the user guide for info.
|
| http://codeigniter.com/user_guide/libraries/encryption.html
| http://codeigniter.com/user_guide/libraries/sessions.html
|
*/
$config['encryption_key']		= 'key';
$config['encryption_cipher']	= 'aes-128';
$config['encryption_mode']		= 'cbc';

That takes care of the default values, which are the same as current.
Then add these few lines into the __constructor
		if (self::strlen($cipher = config_item('encryption_cipher')) > 0)
		{
			$this->_cipher = $cipher;
		}

		if (self::strlen($mode = config_item('encryption_mode')) > 0)
		{
			$this->_mode = $mode;
		}

to give
	public function __construct(array $params = array())
	{
		$this->_drivers = array(
			'mcrypt' => defined('MCRYPT_DEV_URANDOM'),
			// While OpenSSL is available for PHP 5.3.0, an IV parameter
			// for the encrypt/decrypt functions is only available since 5.3.3
			'openssl' => (is_php('5.3.3') && extension_loaded('openssl'))
		);

		if ( ! $this->_drivers['mcrypt'] && ! $this->_drivers['openssl'])
		{
			return show_error('Encryption: Unable to find an available encryption driver.');
		}

		if (self::strlen($cipher = config_item('encryption_cipher')) > 0)
		{
			$this->_cipher = $cipher;
		}

		if (self::strlen($mode = config_item('encryption_mode')) > 0)
		{
			$this->_mode = $mode;
		}

		isset(self::$func_override) OR self::$func_override = (extension_loaded('mbstring') && ini_get('mbstring.func_override'));
		$this->initialize($params);

		if ( ! isset($this->_key) && self::strlen($key = config_item('encryption_key')) > 0)
		{
			$this->_key = substr($key, 0, 32);
		}

		log_message('debug', 'Encryption Class Initialized');
	}

$config['encryption_cipher']	= 'rijndael-128';
$config['encryption_mode']		= 'cbc';

A mcrypt cipher is now supported and all is well with the world.
This might not be the best way to do it, but it seems to work nicely.
Any additional guidance, as to the best way to change this would be appreciated if this is the wrong way.
Thanks

hi,
i am using CI-3.0 after loading my in localhost, i am getting "unable to find available encryption driver". can you tell how to resolve this issue.


Could you make a video pretty please 👍

PLease
i don't understand anything from the "read me"
put it on unlisted or smth idk

Sorry, I will not do it.


Erro decoding

This error appears on execution:
~ ./ptexplorer.py -d aaa.pka pippo.xml
[*] Opening Packet Tracer file 'aaa.pka'
[*] File size compressed = 222995 bytes
[*] File size uncompressed = 471679052 bytes
[*] Writing XML to 'pippo.xml'
Traceback (most recent call last):
  File "./ptexplorer.py", line 81, in <module>
    ptfile_decode(args.infile, args.outfile)
  File "./ptexplorer.py", line 34, in ptfile_decode
    f.write(zlib.decompress(out[4:]))
zlib.error: Error -3 while decompressing data: incorrect header check

Same error on pkt or pka
Best regards

Hello! Try packet tracer version bellow 5
#1

What version of Packet Tracer are you using? this tool seems to be made for version 5 and the current version is 7.
@axcheron I noticed that the XOR decoded output doesn't give the same results like the one shown in the readme.md.

Hi
I using 7 version
Best regards

@franklupo According to my research there are 2 more stages of encoding added to the algorithm.
The first one is still the reverse XOR which seems slightly change, the second one is unknown to me, the third one unpacks the final state to the zlib and the fourth stage extracts the zlib buffer to the final XML format you are hoping for.
The version I tested on looks like this:
<PACKETTRACER5_ACTIVITY>
 <VERSION><IP_ADDRESS>8</VERSION>
 <PACKETTRACER5>
  <VERSION><IP_ADDRESS>8</VERSION>
  <PIXMAPBANK>
...

can you make a fix?

can you make a fix?

Well yes, but actually no.
I am not sure what you want to achieve.

HI,
I would like to create a Packet Tracer file from my C# application. I have no idea what xml looks like but I thought that by reverse engignering I would understand how the file is structured.
Best reagrds

@franklupo Then I have bad news for you.
The latest version of Packet Tracers uses four stages of decoding (rather than the two seen in this repo)
Sadly, there seems to be no other project that I am aware of that are capable of what you want.
Sounds like your last hope is to reverse engineer PacketTracer7 and look into how the packing/unpacking is done exactly so you can then re-create it.

Hi,
I must use packet tracer 7.2 in my project and I have the same issue.
Please if there is any solution to fix the error
Regards

For anyone interested I have managed to reverse the new encoding/decoding algorithm and have written a small tool to convert pka/pkt files into xml. You can find it here.

@mircodezorzi Congrats, you naild it!
I was just wrapping up my blog post and about to publish it, now I feel defeated 😅

@mircodezorzi thank you a lot, I am trying to run it but I am using windows 10 and I can not setup the code you provide. any idea?
@ferib for sure I like to know your solution
Regards

@rooney28 The code isn't platform specific. Make sure you have installed cryptopp and zlib and you should be ok.

@mircodezorzi do you mean that I have to download cryptopp from https://github.com/weidai11/cryptopp
and zlib from https://zlib.net/
then open the code using visual studio and build it?
Thank you in advanced
Regards

@rooney28 its only a matter of time until someone builds a web-based tool for it.
in fact, @mircodezorzi already has his stuff depleted into the cloud check it out: https://mircodezorzi.github.io/doc/pka2xml-aws/
I was also working on a similar tool like that which comes with unique features that Packet Tracer itself is lacking, such as, converting older versions (version 5) to whatever version there is.

@ferib I follow the instruction by @mircodezorzi from https://mircodezorzi.github.io/doc/pka2xml-aws/
I am using windows 10
I have started by Installing the C++ Lambda Runtime so I install git bash and cmake on windows 10
First 5 lines worked ok "for sure I changed paths but I don't know what -DCMAKE_INSTALL_PREFIX=$HOME/pka2xml/lambda-runtime should be"
Now I want to run make && make install but it gives me an error "make: *** No targets specified and no makefile found.  Stop."
I am sorry, but it's the first time I install and build a project using git, cmake....
Regards

@rooney28 I didn't mean you should install and build it.
I mean that you can just use the little demo he hosts there on his blog post, it's literally next to the intro.

@ferib  thanks for your time
I used the demo and it's great
but I need to build it on my pc so I can use it as part of my project in faculty
Regards

Is it possible to have the C # code to create a library?
Thanks

@franklupo that is possible, I will release my C# project to manipulate .pka files in a couple of weeks.

@franklupo

Is it possible to have the C # code to create a library?
Thanks

I'm no C# expert but from what I could read from here the .NET standard library seems to provide a fairly simple way to use the Twofish cipher, you could port the C++ code in a matter of 10-15 minutes 😉

I'm no C# expert but from what I could read from here the .NET standard library seems to provide a fairly simple way to use the Twofish cipher, you could port the C++ code in a matter of 10-15 minutes 😉
@mircodezorzi hah, thats the exact same library I have used for my project, here is a snipper for whoever needs it:

public bool unpackStageTwo()
        {
            Twofish twofish = new Twofish()
            {
                Mode = System.Security.Cryptography.CipherMode.CBC,
                Key = new byte[] { 0x89, 0x89, 0x89, 0x89, 0x89, 0x89, 0x89, 0x89, 0x89, 0x89, 0x89, 0x89, 0x89, 0x89, 0x89, 0x89 },
                IV = new byte[] { 0x10, 0x10, 0x10, 0x10, 0x10, 0x10, 0x10, 0x10, 0x10, 0x10, 0x10, 0x10, 0x10, 0x10, 0x10, 0x10 }
            };

            ICryptoTransform decrypt = twofish.CreateDecryptor();
            System.IO.MemoryStream msD = new System.IO.MemoryStream();
            CryptoStream cryptostreamDecr = new CryptoStream(msD, decrypt, CryptoStreamMode.Write);

            cryptostreamDecr.Write(this.Buffer, 0, this.Buffer.Length);
            cryptostreamDecr.Close();

            byte[] tmp = msD.GetBuffer();
            Console.WriteLine(tmp.Length);
            for (int i = 0; i < this.Buffer.Length; i++)
                this.Buffer[i] = tmp[i];

            return true;
        }


Wrong change form P to 0, form N to 1, and form N to P

Platform: WIN64, Online
When designing waveforms:
P0
N1
PN
NP
(and respective lower-case)
"glitches" occur. For example the waveform: 'p0n1pnnp' produces following output:

Especially transitions P0 and N1 are very irritating.

For glitches behaviour use:
p0 -> pl
n1 -> nh


Event menu does not open when clicking on an event

Check that this is really a bug

[X] I confirm

Reproduction link
https://codesandbox.io/p/sandbox/xenodochial-currying-dxl85n?file=%2Fsrc%2FApp.js%3A19%2C16
Bug description
When trying to click an event, the menu doesn't open as expected,
but if I don't use withDragAndDrop,
then the problem goes away.
Or if i removed the "props.event.children" in EventComponent also the problem goes away.
You can examine the problem in the link I attached.
NOTE:
I lowered to version 0.40.8 and it works fine
but it doesn't help me because it's too old a version and breaks other things
Expected Behavior
No response
Actual Behavior
The menu will show up as expected with - "WithDragAndDrop"
react-big-calendar version
1.5.2
React version
18.0.2
Platform/Target and Browser Versions
chrome 107.0.5304.107
Validations

[X] Read the docs.
[X] Check that there isn't already an issue that request the same feature to avoid creating a duplicate.
[X] Make sure this is a react-big-calendar issue and not an implementation issue

Would you like to open a PR for this bug?

[ ] I'm willing to open a PR

What is props.event.children? You have a children key on your event?
The EventWrapper component get's the props of either a TimeGridEvent or an EventCell. It's (the EventWrapper's) children are passed as a prop. If you wanted a completely custom layout, you would ignore the passed children prop all together.
Sometimes it's good to check out which props are passed in which instance. Initially setting up a dummy layout, for review, is sometimes smart.
function MyCustomEventWrapper(props) {
  console.log('[MyCustomEventWrapper]', props);
  return (
Temporary Dummy Wrapper
);
}

I can confirm this is a bug.
Version: 1.16.0
This is my simple event wrapper which I use for styling purposes based on the type of event:
import * as React from 'react'
import { EventWrapperProps } from 'react-big-calendar'
import { CalendarViewEvent } from '../../types'

type IProps = EventWrapperProps<CalendarViewEvent> & { children?: React.ReactNode }

const CalendarEventWrapper = (props: IProps) => {
  const { event } = props
  return (
    <div className={`event-${event.type} ${event.disabled ? 'disabled' : ''}`}>{props.children}

  )
}

export default CalendarEventWrapper

I recently introduced DnD functionality in my app. Everything seems to be working on initial glance, clicks on week view works. The month view on the other hand is swallowing the click events for some reason due to the wrapper for DnD.
If I revert the DnD functionality of react-big-calendar with the exact same code, click events are handled properly on all views.


Issue with the URL in My Subscriptions

When the Ordergroove is configured with the multi-website setup where the multi-website has different base URLs since the product feed happens to be synced up with CRON and the CRON takes up the admin store scope and gives the admin URL instead of the respective store URL.
Expected Outcome:-
The URLs of particular websites should be synced properly.

@evasilchenko please assign this issue to me i will create PR for this issue.

@evasilchenko please review my PR


Add onComplete & onAbort to router-link

What problem does this feature solve?
In 2.2.0 Vue added onComplete and onAbort callbacks to router.push, however there seems to be no equivalvent when using <router-link>. I've seen suggestions that can you use beforeRouteEnter as an alteranative in some cases, however I have a case where I have a <header> containing <router-link>s that remains on the page after a user clicks on the router link, I want to be able to change a property of the header after the user has clicked the link. So beforeRouteEnter would not work for my case. Ideally I'd like to be able to supply onComplete and onAbort to the router-link directly.
What does the proposed API look like?
Personally I have no preference over how this should look, I'm not experienced enough with vue router to say what is the most idiomatic, however I would expect to be something like the following.
<router-link to="…" on-complete="callback" on-abort="callback"></router-link>
<!-- or -->
<router-link to="…" complete="callback" abort="callback"></router-link>

Implemented by #3114.

I completely forgot about this issue. This kind of thing should go through the thinking process of an RFC in our RFC repo at vuejs/rfcs. One of the things I see is using events instead of callbacks, which is more adapted to Vue. Another thing would be giving more specific examples about what is being done onAbort/onComplete that is specific to that router-link. To me this is the kind of thing that would go in an afterEach hook because it looks global.
Right now this can be achieved with an event listener that calls $router.push and building the href with $router.resolve (which is a workaround).

@posva: Could you please clarify how the workaround would look like? Currently the best solution without this PR seems to be forking the RouterLink for me.

We have one use case, which might be connected to this issue, but correct me if I'm wrong.
What I'm trying to achieve in an application, is to simply display loading indicator on the app level while navigation is in progress. In most cases this can be covered by doing:
const state = Vue.observable({ navigating: false });

router.beforeEach((to, from, next) {
  state.navigating = true;
  next();
});

router.afterEach(() => {
  state.navigating = false;
});

By registering these guards before any other guards, I can make sure that loading indicator will be shown until all other global, in-component and router guards are resolved, async components are loaded, etc.
If one of the guards calls next('another-route'), previous navigation will be aborted. But a new navigation will start right away, so loading indicator will stay visible until it is done. In situation when one of the guards calls next(new Error(...)), afterEach guard will not be called. To cover this use case, we can:
router.onError(() => {
  state.navigating = false;
});

That is good. However, if one of the guards will do next(false), there is no way to track it. It feels like global router.onAbort() guard will be sufficient here. Or, as mentioned above, afterEach will be called with indication about aborted navigation. But there are non of them, and I don't how to workaround this challenge.

@posva I can work on Pull Request to add router's onAbort() guard, if you agree about it conceptually. What do you think?

This is not about a guard 😅
I think there was a different issue for that. It does need to wait until the error naming is settled

Is there any issue, ticket or rfc where progress for this feature can be tracked? I linked PR above, which seems related and can potentially solve this issue.
There is no workaround for it atm, but I would be glad to help implement it once it is clear how exactly it should be done.

@posva Is the changes in connected PR #3047 are related to "wait until the error naming is settled", or there is different discussion somewhere in RFC or GitHub Issue thread?

@bponomarenko this issue is about adding two event handlers to router-link, it's still at a discussion state. I don't think it's worth adding because if you need to react to the navigation state, you will be better off using router.push or the v-slot api and get the promise returned from navigate (https://github.com/vuejs/vue-router/issues/3042 which is up for a PR :+1:).
The PR you are linking is related to Errors to recognise why the navigation failed and it's waiting for naming to settle at https://github.com/vuejs/vue-router-next/pull/123 to reduce breaking changes

@posva As a user it feel odd to me that there is this limitation between what's available through <router-link> vs router.push. Adding on-complete and on-abort feel like bringing the declarative API to parity with the imperative API, it's not creating a new API. I prefer using the declarative <router-link> API where possible, . The v-slot API does appear to provide a solution, though with some more boilerplate than on-complete.
I'm not familiar if that level of change requires an RFC or not, but I already know I wouldn't be able to commit to the time to write it. If someone else wants to take this on feel free.

@posva You are right, this issue is about changes to <router-link> api, while I was talking about slightly different solution which I thought would help to solve this issue as well.
Proposed changes in referred #3042 doesn't really solve a problem for us, as it is not possible to always use router.push or v-slot api of <router-link> with custom onAbort handlers. I will create another issue with more detailed explanation. Thanks.

Also need global OnAbort router hook.

Lol, i explained same thing one year ago...
https://github.com/vuejs/vue-router/issues/3027#issuecomment-59600705
@posva
And today you said again that i should read docs, lol...

These days one can do await router.push(...) and then after await returns, you can do whatever. Or if it raises an exception, you can catch it.
But nothing like that seems to exist for router-link. :-(

(My use case is that I want to focus a particular element on the new page after the user clicks on a particular link.)

OK, it seems that in v4, navigate returns a promise, so one can make a custom router-link which awaits on navigate and then does additional logic.


Author links for category cards

Author pages need to be linked to their name on cards appearing on category pages.
Example: https://main--sling--aemsites.aem.page/whatson/entertainment/holiday

Compare with live site https://www.sling.com/whatson/entertainment/holiday
Note: see line 49 in blog-article.js for the utility to build the author link on article pages, this could be moved to utils.js and reused?

This was completed


Google CalendarException

at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access)

Unfortunately you didn't provide enough information to allow us to debug the issue.

Hi there,
I was trying to test the Calendar api on my console application and the exception I encounter says 'System.IO.FileNotFoundException: Could not find file' for the credentials.json file that I downloaded and added onto my project.
Thanks.
CalendarIssue.docx

Please ensure you have followed the directions in the quickstart:
https://developers.google.com/calendar/quickstart/dotnet#step_3_set_up_the_sample

I will do so, thanks Erick.

Hi Erick,
I have tried following the step by step tutorial and I encounter an Auth exception, please see below.
Unhandled Exception: System.InvalidOperationException: At least one client secrets (Installed or Web) should be set at Google.Apis.Auth.OAuth2.GoogleClientSecrets.get_Secrets() at ConsoleApplication1.Program.Main(String[] args)


Create & define repo security policy (public facing)

As per GitHub best practice we should define security policy for the standards toolkit repo.
Aim:
To provide instructions for responsibly reporting security vulnerabilities in the project.
Acceptance criteria:
Create a security.md file which includes -

[ ] disclosure policy
[ ] security update policy
[ ] any security related configuration
[ ] known security gaps & future enhancements


HDDS-9744. Set descriptive title for upgrade Robot tests

What changes were proposed in this pull request?
Upgrade acceptance test runs the same Robot test files on different Ozone versions and in different states of the cluster. Robot test statistics (log.html) show the same suite name for each of these.
This change adds cluster state / version information to make these steps easier to understand.
https://issues.apache.org/jira/browse/HDDS-9744
How was this patch tested?
Ran upgrade acceptance tests.  Robot test log.html attached to HDDS-9744 before/after the change.
CI:
https://github.com/adoroszlai/ozone/actions/runs/7051917960

Thanks @ayushtkn for the review.


⚠ Samsung has degraded performance

In 8edd5a7, Samsung (https://samsung.com) experienced degraded performance:

HTTP code: 200
Response time: 2558 ms

Resolved: Samsung performance has improved in 3fb38f6.


Move to vite from react-scripts for development environment?

https://github.com/OlympusDAO/olympus-frontend/pull/2252

waiting on RBS deploy

resolved in #2252


TypeError: Cannot set property 'parent' of undefined

I did the quick setup on Vercel, but I'm running into issues after cloning my repo and trying to set it up locally.
Initially I had issues running npm install in the project directory, but finally got that to work after switching to node v. 14.17.0. Not sure why I was having so much trouble with the other versions of 14.
Now, I'm getting this after running npm run dev. To note, I can get the studio up and running on local.
ready - started server on <IP_ADDRESS>:3000, url: http://localhost:3000
info  - Loaded env from /Users/jenhail/Sites/lujo-shopify-sanity/.env.local
wait  - compiling...
error - ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[3].oneOf[8].use[1]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[3].oneOf[8].use[2]!./styles/app.css
TypeError: Cannot set property 'parent' of undefined

I'm thinking this is related to how I'm connecting my Shopify store, but it doesn't make sense to me yet. Not sure what else to try.

Hi, that error is related to Tailwind, it means there are some CSS bad rules... Did you changed some styles or upgraded package versions?

Hi @valse, thanks for the quick response!
I've narrowed it down to Tailwind issues in _drawers.css, _dropdowns.css, and _filters.css. Looks like using @apply inside media queries doesn't want to compile. And commenting out css like this in all three of the files removes the errors.
@media (min-width: 400px) {
    @apply border-r;
  }

If it helps, these are my dependency versions. I haven't changed any styles yet. So far I'm just trying to get local working and learning how to use Sanity.
"dependencies": {
    "@mailchimp/mailchimp_marketing": "^3.0.71",
    "@reach/rect": "^0.16.0",
    "@sanity/block-content-to-react": "^3.0.0",
    "@sanity/client": "^3.0.3",
    "@sanity/image-url": "^1.0.1",
    "@vimeo/player": "^2.15.3",
    "axios": "^0.25.0",
    "base64-string": "^1.1.2",
    "classnames": "^2.2.6",
    "contrast-color": "^1.0.1",
    "cross-env": "^7.0.3",
    "embla-carousel-react": "^6.0.2",
    "focus-trap-react": "^8.8.2",
    "framer-motion": "^5.5.5",
    "js-cookie": "^3.0.0",
    "jsondiffpatch": "^0.4.1",
    "marqy": "^0.0.8",
    "next": "^12.0.7",
    "next-themes": "^0.0.15",
    "qs": "^6.10.1",
    "query-string": "^7.0.1",
    "raw-body": "^2.4.1",
    "react": "^17.0.2",
    "react-cool-inview": "^2.0.8",
    "react-dom": "^17.0.2",
    "react-hook-form": "^7.18.0",
    "react-keyed-flatten-children": "^1.3.0",
    "shopify-buy": "^2.13.0",
    "sitemap": "^7.0.0",
    "swr": "^1.0.0"
  },
  "devDependencies": {
    "@next/bundle-analyzer": "^12.0.1",
    "@types/classnames": "^2.2.10",
    "@types/cookie": "^0.4.0",
    "@types/node": "^17.0.0",
    "@types/react": "^17.0.33",
    "@types/shopify-buy": "^2.10.5",
    "autoprefixer": "^10.4.0",
    "cssnano": "^5.0.13",
    "postcss": "^8.3.11",
    "postcss-import": "^14.0.2",
    "tailwindcss": "^3.0.5",
    "typescript": "^4.4.4"
  },
  "peerDependencies": {
    "postcss": "^8.4.5"
  }

Using an M1 Mac
node 14.17.0

Hey there @jenniferhail, do you know what version of tailwind is actually installed? They've had a number of changes in the v3 releases that may have removed the ability to parse custom @media queries with @apply within them, which would explain why those were breaking your build.
For what it's worth, the version installed out of the box with the current version of HULL does compile, so I'm wondering if you have a later minor release that introduced this issue.
Closing this for now, but feel free to continue the conversation if you uncover more to the story. Happy coding! 🤘


Uncaught SyntaxError: Unexpected token import

geting this error in Chrome (Uncaught SyntaxError: Unexpected token import) with this line of code
"import GitHub from 'github-api';"??

This library is written in ES2015 which, while finalized, is not fully supported in any browser. How are you bringing in the library?

I'm using a Cordova/PhoneGap app on ios10 but testing in Safari 10 (Mac) which should support it??

From: Clay Reimann<EMAIL_ADDRESS>Sent: Thursday, October 20, 2016 10:54 AM
To: michael/github
Cc: Johnson, Lars; Author
Subject: Re: [michael/github] Uncaught SyntaxError: Unexpected token import (#392)
This library is written in ES2015 which, while finalized, is not fully supported in any browser. How are you bringing in the library?
�
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com/michael/github/issues/392#issuecomment-255129860, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AMpZItZ6TSJL_SKkOFaSyuVlAZnMJtc2ks5q14CrgaJpZM4KZDEV.

Again, ES2015 is not fully supported, and I'm 95% confident that no-one supports the import syntax. If it works in your Cordova app it's because they're pre-processing your sources just like web-devs do with webpack/browserify

Not sure how relevant my comment is going to be here, but if issue still open, and I've recently spotted on the same error, I decided to add my 5 cents here.
First of all, I use Chrome Canary v63, where import/export is already supported. Not yet officially in Chrome, but still gives me the touch to the feature (because I don't like web community is so *** slow regarding standards but *** fast regarding enormous number of libraries, frameworks, wrappers, etc.)
I have existed code, which uses import/export, and I was a bit surprised, when I did a few lines of code with github-tools/github-api. Before that, I've already tested GitHub API v3 by my own using Fetch API and GitHub API v4 using GraphQL stuff.
So...
Variant ==A==
bower install github-api => 3.1.0, then added code to my one of my modules. My index.html => <script type="module" src="./index.js"></script> and index.js has code import GitHub from 'bower_components/github-api/lib/GitHub.js' which gave me errors:
GitHub.js:9 GET http://localhost:8080/bower_components/github-api/lib/Gist net::ERR_ABORTED
GitHub.js:10 GET http://localhost:8080/bower_components/github-api/lib/User net::ERR_ABORTED
GitHub.js:11 GET http://localhost:8080/bower_components/github-api/lib/Issue net::ERR_ABORTED
GitHub.js:12 GET http://localhost:8080/bower_components/github-api/lib/Search net::ERR_ABORTED
GitHub.js:13 GET http://localhost:8080/bower_components/github-api/lib/RateLimit net::ERR_ABORTED
GitHub.js:14 GET http://localhost:8080/bower_components/github-api/lib/Repository net::ERR_ABORTED
GitHub.js:15 GET http://localhost:8080/bower_components/github-api/lib/Organization net::ERR_ABORTED
GitHub.js:16 GET http://localhost:8080/bower_components/github-api/lib/Team net::ERR_ABORTED
GitHub.js:17 GET http://localhost:8080/bower_components/github-api/lib/Markdown net::ERR_ABORTED
GitHub.js:18 GET http://localhost:8080/bower_components/github-api/lib/Project net::ERR_ABORTED

By changing code in GitHub.js from import Gist from './Gist'; to import Gist from './Gist.js'; fixed errors, but it's not the way I would like to fix the issue :)
Variant ==A.1==
Changing code import GitHub from 'bower_components/github-api/lib/GitHub.js' to import GitHub from 'bower_components/github-api/lib/GitHub' (no js ext.) gives me only one error:
GET http://localhost:8080/bower_components/github-api/lib/GitHub net::ERR_ABORTED

Variant ==B==
In my index.html I add a line
<script type="application/javascript" src="bower_components/github-api/lib/GitHub.js"></script> -->

And I receive an error:
Uncaught SyntaxError: Unexpected token import

Variant ==C==
In my index.html I add a line
<script type="module" src="bower_components/github-api/lib/GitHub.js"></script>

added type="module" and receive an error:
GET http://localhost:8080/bower_components/github-api/lib/Gist net::ERR_ABORTED

Variant ==D==
Using CDN unpkg.com
<script src="https://unpkg.com/github-api/dist/GitHub.min.js"></script>

I kinda got it, that it's such a ability to have ONLY GitHub.js, but for what reason, if it can be used?
So I have an error:
Uncaught Error: Cannot find module 'axios'

"axios" means, that some code in GitHub.js depends on Requestable.js, right? if so, then GitHub.js CAN NOT be used independently. README.md file should either add a line  CDN url ro Requestable.js from Yahoo or better way to fix the code of GitHub.js which should NOT call and dependnt code in nested JS files like Repository.js or Gist.js.
Variant ==E==  - my winer at the moment.
<script src="https://unpkg.com/github-api/dist/GitHub.bundle.min.js"></script>

and all works fine window has object GitHub and I can then code my logic.
Variant ==F==
Using nodeJS syntax.
I have node v8.4.0 and npm v5.3.0 => npm install github-api => 3.1.0 in node_modules and my test.js file has a line code suggested from README.md:
var GitHub = require('github-api');
var gh = new GitHub({});
var clayreimann = gh.getUser('clayreimann');
clayreimann.listStarredRepos(function(err, repos) {
   console.log(JSON.stringify(repos.length) + ' starred repos');
});

gives me success response 24 starred repos which is sign, that NodeJS module github-api works fine in NodeJS env.
But if only I change first line to this import GitHub from 'github-api'; or import GitHub from './node_modules/github-api/dist/GitHub.js';:
the running command node ./test.js or node --harmony ./test.js fails:
node ./test.js
/Users/alund/prj/behind-the-code/test.js:1
(function (exports, require, module, __filename, __dirname) { import GitHub from 'github-api';
                                                              ^^^^^^

SyntaxError: Unexpected token import
    at createScript (vm.js:74:10)
    at Object.runInThisContext (vm.js:116:10)
    at Module._compile (module.js:537:28)
    at Object.Module._extensions..js (module.js:584:10)
    at Module.load (module.js:507:32)
    at tryModuleLoad (module.js:470:12)
    at Function.Module._load (module.js:462:3)
    at Function.Module.runMain (module.js:609:10)
    at startup (bootstrap_node.js:158:16)
    at bootstrap_node.js:598:3

And it's is ok so far, because of:
node --v8-options | grep "in progress"
  --harmony_array_prototype_values (enable "harmony Array.prototype.values" (in progress))
  --harmony_function_sent (enable "harmony function.sent" (in progress))
  --harmony_tailcalls (enable "harmony tail calls" (in progress))
  --harmony_sharedarraybuffer (enable "harmony sharedarraybuffer" (in progress))
  --harmony_do_expressions (enable "harmony do-expressions" (in progress))
  --harmony_class_fields (enable "harmony public fields in class literals" (in progress))
  --harmony_async_iteration (enable "harmony async iteration" (in progress))
  --harmony_dynamic_import (enable "harmony dynamic import" (in progress))
  --harmony_promise_finally (enable "harmony Promise.prototype.finally" (in progress))

Not sure, if @clayreimann is main maintainer so far, and I have no idea where this library/tool is used, and what is roadmap, etc, and despite the fact, GitHub API v4 exists, I would kindly suggest:

Review README.md, by providing clean text for explicit usage within import/export and require/nodejs.
Run tests of github-api again/within Chrome Canary, so that this library would be closer to the future, and when people spot on this lib, they will not have need to fix the behavior of lib anymore...


fix: hide debug panel on settings pages

Description
This rearranges and simplifies some things so the debug panel doesn't show up halfway down (or at all on) the settings pages.
Task Item
fixes #5902
Screenshots

Coverage decreased (-0.001%) to 53.903% when pulling ff3726a573ff4f0cff449bf5bb4ad4cc860499c7 on beyackle/fixFloatingPanel into 04bc7c4620c32a73bd9eeeb1ff834cab56bba0c8 on main.

Obsoleted by https://github.com/microsoft/BotFramework-Composer/pull/5852.


net: lwm2m: Fix IPSO Push Button counter incrementation

The Counter resource in the IPSO Push Button object was incremented
silently by the post write handler of the State resource. This prevented
the resource from being marked as updated, effectively preventing
the engine from sending notifications to observers.
Fix this, by setting the new counter value with lwm2m_engine_set_u64()
instead. This will update the resource value, and trigger the engine to
send notifications if needed.
Signed-off-by: Robert Lubos<EMAIL_ADDRESS>

CC @Nordic-tjbj

@rlubos - please rebase / resolve conflicts

@rlubos - please rebase / resolve conflicts

Done


fix bug demonstrations/tutorial_expressivity_fourier_series.py

I tried to run the demo on my machine and line 208:
exponent = np.complex(0, scaling * (idx+1) * x)
resulted in:
AttributeError: module 'pennylane.numpy' has no attribute 'complex'.
Replacing np.complex with just complex solved the issue.

@antalszava I asked Elies to open this in case the error is due to changes in master and would bug you during the next release... Or do you think it is a local problem?

Sorry about the delayed response here. Locally with the master branch, I don't seem to be able to reproduce this
from pennylane import numpy as np

some_imag = 0.34
np.complex(0, some_imag)

Which PennyLane version produced the error (e.g., can be checked with qml.about())? It's odd that the issue arises only with np.complex and not with other wrapped functions :thinking:

Name: PennyLane
Version: 0.16.0
Summary: PennyLane is a Python quantum machine learning library by Xanadu Inc.
Home-page: https://github.com/XanaduAI/pennylane
Author: None
Author-email: None
License: Apache License 2.0
Location: /home/emgilfuster/venvs/PL/lib/python3.8/site-packages
Requires: semantic-version, appdirs, autograd, autoray, networkx, scipy, numpy, toml
Required-by:
Platform info:           Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.29
Python version:          3.8.5
Numpy version:           1.20.3
Scipy version:           1.6.3

Thank you! It seems NumPy the culprit, managed to get a warning out when using vanilla NumPy with version 1.20:
DeprecationWarning: `np.complex` is a deprecated alias for the builtin `complex`. To silence this warning, use `complex` by itself. Doing this will not modify any behavior and is safe.

If you specifically wanted the numpy scalar type, use `np.complex128` here.
Deprecated in NumPy 1.20; for more details and guidance: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations

@emgilfuster changed to using np.complex128 which should be an identical fix. This is just for convenience with the PennyLane code bases, we might slightly prefer using np.complex64 and np.complex128.

good!

[ch7634]


Failing to create LB on Citycloud

Our pipeline is failing consistently on Citycloud with the following error:
Error: Error waiting for loadbalancer c5b997b0-af7c-4b29-8abb-541a69a703ae to become ACTIVE: timeout while waiting for state to become 'ACTIVE' (last state: 'PENDING_CREATE', timeout: 10m0s)

  on ../modules/openstack/octavia-lb/main.tf line 41, in resource "openstack_lb_loadbalancer_v2" "loadbalancer":
  41: resource "openstack_lb_loadbalancer_v2" "loadbalancer" {

Error: Error waiting for instance (b5e4cbf3-d999-4ab6-a9be-bb2173829264) to become ready: unexpected state 'ERROR', wanted target 'ACTIVE'. last error: %!s(<nil>)

  on ../modules/openstack/vm/main.tf line 22, in resource "openstack_compute_instance_v2" "instance":
  22: resource "openstack_compute_instance_v2" "instance" {

Error: error applying Terraform config: error while executing `terraform apply -var-file /ck8s-config/tfvars.json -target module.service_cluster -auto-approve`: 1 error occurred:
	* exit status 1

Error: Process completed with exit code 1.

Try to set up a cluster manually and see if you can find out what the problem is about. If there is no problem when doing it manually, create a pipeline issue instead. If there is a problem also for manual cluster creation, investigate it and create a new issue where you describe your findings and suggest next steps.

@Xartos @viktor-f  Close?

Since we are using openstack cloud controller to manage loadbalancers now and we haven't had any issues with that from what I know I think it's safe to say that we can close this.


[Feature Request] Terra Draw does not expose enough types to create custom Adapter

I want to develop my own adapter, but there are not enough types to import, this becomes possible only if I tighten the entire terra-draw code to my project

Thanks for raising - I will try to look into this at some point soon.

now the type of TerraDrawCallbacks is missing

I'll look at trying to expose this for the next release. Thanks

This will be resolved in the next release, setting as closed. Let me know if there's anything else missing!


Create a library with angular-cli

Hello guys,
Can I create a library with angular-cli?
Thanks

not yet, but it's already in the list

Thank you so much for the answer

See https://github.com/angular/angular-cli/issues/1692, but as @stevermeister said it's on the list of important features.


Update to geo-0.3

Updates to the current version of geo, which now supports either f32 or f64 values. The hash looks like it expects f64 though, so I've bound the inputs and outputs to that.
CC: @sunng87

As per Travis, looks like we'll need to bump the minimum Rust version we test on to 1.8.0.

That's a bit of a downer. Is 1.8 enough of a support window?
I've made this change because I'm trying to use both geojson and geohash and am getting multiple version issues with geo.

LGTM. I will merge this and update travis config then. Thank you!


Refreshing app displays raw html without style for a while

Not sure whether this is a bug, but anyways I would like to listen to your opinion.
In the last couple of days after upgrading handlebars due to a security vulnerability (not sure if this is coincidental or not)  if I hit the refresh button either on Chrome Version 70.0.3538.77 (Official Build) (64-bit)
or in Mozilla Firefox 65.0.1  using Ubuntu 18.04.2 LTS I am able to see for a second, for a blink of an eye the raw html of the page I am landing without the styles implemented in development mode. I tested in production after building the app and everything is ok there.
I am using sass ("node-sass": "^4.11.0") in my application if that makes any difference.
I tested with a newly created create-react-app and the same applies there. Specifically, if you hit refresh button on the browser you are able to see "Edit src/App.js and save to reload." and "learn React" in raw html on the top left corner on the screen for a second before style is applied instantly.
I can provide my package.json if it is necessary for my create-react-app.
Is this an expected behavior because I can assure you that before I did not notice something like this or is this something that is applied on my local machine due to a misconfiguration?
index.html is almost the same as in the boilerplate. Only have added this line of code
<link type="text/css" rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700">
I also forgot to mention that I am using absolute paths in my application while having declared
NODE_PATH=src/  on .env and that recentry upgraded to node v11.10.0 with npm v. 6.8.0
I downgraded to node v 10.15.2 but that did not fix the issue.
Thank you in advance.

Pretty sure that this is duplicate of https://github.com/facebook/create-react-app/issues/6399 and should be fixed in 2.1.6. when it comes out. Meanwhile you can try downgrading to<EMAIL_ADDRESS>Note that the issue should only affect development builds, not production builds.

Thank you very much sir. That allows me to breathe normally again for now
as I was very anxious :)
On Fri, Mar 1, 2019 at 4:03 PM Pete Nykänen<EMAIL_ADDRESS>wrote:

Closed #6549 https://github.com/facebook/create-react-app/issues/6549.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/facebook/create-react-app/issues/6549#event-2174089539,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ANjtlzBicivS8Ijs6cbsBni4Xvs5sy1Mks5vSTMfgaJpZM4bYqtC
.


How do I make interactive applications?

I feel like I'm missing something, but I'm struggling to figure out how to make interactive apps with react-blessed. All of the examples appear to be purely rendering content with zero user interaction. Is there an example somewhere of an interactive app?

From Blessed's FAQ, this is probably the first bit:

Why can't I use my mouse in Terminal.app?
Terminal.app does not support mouse events.

If you want to respond to keyboard input, I guess you'd just listen to stdin like anything else, and change your state based on that, re-rendering the UI. I don't think the components themselves need to have event handlers like the DOM stuff in ReactDOM. I could be wrong.

to add on to this, is it possible to handle the input that happens with textboxes and elements like that?

I haven't really been back to this since about the time I opened the issue, but to be useful for interactive apps, it seems like the elements should have focus and blur events like normal DOM elements, as well as natural ordering with the ability to override, again, like normal DOM elements.
Basically, I can't see how to build interactive apps without having the same primitives that browsers provide for keyboard-only interaction. If that's not an option, then some documentation explaining alternatives would go a long way toward improving the developer experience.

as a followup to my original quesiton, i was able to use react refs to interact with the textarea i spawned and attach the necessasary listeners and handlers for text input

Can I help somehow?

@devsnek it's been a while but do you recall being able to go beyond submitting form text to actually capturing text "onChange" (non-existent in blessed)?
I'm struggling to capture live input for a fuzzy-finder lib

Thanks for the reply.  Yes, that is the strategy I'm using at the moment, the problem I'm struggling to overcome right now is textboxRef.current.value only updates at the end of a cycle... So with
const handleKeyPressTextbox = (ch, key) => {
    if (textboxRef.current.value) {
      setText(textBoxRef.current.value)
    }
  }

If I Type: Vive La France
My State will be: Vive La Franc
Always one behind with a ref.
@devsnek above talks about adding additional listeners to make it work, I have no experience with adding listeners or even a logical starting point to learn to do so

I've got a fix from SO https://stackoverflow.com/questions/73134979/useref-value-in-devtools-but-not-logged#73135578


Preprocessing

Thanks to the great contribution in code translation and pre-training area. After reading the related papers (Transcoder and DOBF), we had some clarification questions on the pre-processing procedure of the pre-training corpus built from the Github dataset on google big query. We’d be grateful if you could guide us on these.

Length of function: are you using any filtering to remove functions above a certain length? If so, what is the threshold length? (token level or any other criteria?)
Code comment extractor: can you share which libraries or toolkits did you use to do this or did you implement your own comment extractor?
Do you have any suggestions on extracting bimodal signals (code & description) from the Github dataset? I am feeling that class and class functions are more likely to have NL part (as docstrings).
Regarding SQL queries that need to be run on the Google bigquery platform (similar to Transcoder’s approach here):
WHERE
NOT c.binary
AND f.path like '%.py'

Should we change this to the below condition to filter out non-function data
WHERE
NOT c.binary
AND file.path LIKE '%.py'
AND name = 'Python'
Thank you so much

Hi, sorry for the late response.

No, we do not filter out any functions based on a length threshold. However, we truncate the functions during binarizing the data. We set the maximum length to 510. (https://github.com/wasiahmad/PLBART/blob/main/pretrain/binarize.sh#L23)
We used the Transcoder provided preprocessing code for this purpose. We made some modifications to the preprocessing scripts and you can find our version here. I suggest exploring the code_tokenizer.py and utils.py scripts.
Both types of functions (class or standalone) may have docstrings. You may need to manually check and write some rules to filter out noisy/unhelpful docstrings.
I am not sure if we can filter out non-function data. When data is downloaded via Google BigQuery, it is basically all python scripts (if you chose Python language) dumped in files (.json.gz), and then during preprocessing we extract functions (and other information).


Tooltip on the radar chart does not show the Dataset values

Tooltip on the radar chart does not show the Dataset values marked on the chart
Running the Blazor ChartJs RadarChart Sample at https://www.iheartblazor.com/RadarChart
the Radar Chart Tooltip value for participant1 is blank:

But in the original ChartJs implementation has the values displayed from the Radar Dataset in the tooltip, at https://www.chartjs.org/samples/latest/charts/radar.html

Thanks for the report.
I'll look into it when I have more time.
As a side-note, the demo-website is behind on the updates and doesn't contain important fixes. I don't know if the radar-chart is affected by this but just to be sure, you should try to check it with the current nuget-release. You can copy the code in our sample or simply clone the repo and run our sample.
It would be great to have code that reproduces this issue on the current version (1.1.0 on nuget). Could you try to provide this? Otherwise it'll be a hunt for version differences and other time consuming stuff and I don't have enough capacity for that currently.

Here is the complete code example for the implementation of this repo, where Tooltip has no value from the Datasets.
This will help you reproduce the error of missing value on the tooltip.

Thanks for the code.
I did some investigation and it turns out that this is a bug within chart.js. Unfortunately I don't think there's a way you could fix this using this library without touching JavaScript. You could maybe fallback to invoking some javascript once the chart is initiated. I'm thinking something like this:

Let the chart be setup (wait for the initialization of the chart component)
Call some javascript code (with IJSRuntime, see here) which gets the js-object of the chart using window.ChartJsInterop.BlazorCharts (called in JavaScript) and _config.CanvasId (passed as param on the IJSRuntime call) and then sets the tooltips.callbacks.label function as described in the chart.js issue.

But, the ChartJs sample highlighted here, running the same implementation has the values displayed from the Radar Dataset in the tooltip.
If you could please share some code on the above guidance for implementing the js-object of the chart, it would be helpful.

Their sample uses release 2.9.3 while our library comes bundled with 2.8 (this bundling will be removed in a feature release anyway - see #95). Just reference the newer version of chart.js where this bug is fixed.
This means in your index.html  or _Host.cshtml use a cdn or reference a manually downloaded version.
Instead of

you could use

Without this, my code as below is not working:
@using ChartJs.Blazor.ChartJS.Common.Properties
@using ChartJs.Blazor.ChartJS.RadarChart
@using ChartJs.Blazor.Charts
@using ChartJs.Blazor.Util

Radar Chart

    <button class="btn btn-primary" @onclick="OnClick">Add Dataset</button>

<ChartJsRadarChart @ref="_radarChartJs" Config="@_config" Width="600" Height="300" />

@code {
    private RadarConfig _config;
    private ChartJsRadarChart _radarChartJs;

    private Random _rand = new Random();

    protected override void OnInitialized()
    {
        _config = new RadarConfig
        {
            Options = new RadarOptions
            {
                Title = new OptionsTitle
                {
                    Display = true,
                    Text = "Participant's scores"
                },
                Scale = new RadialScale
                {
                    Ticks = new ChartJs.Blazor.ChartJS.Common.Axes.Ticks.LinearRadialTicks
                    {
                        StepSize = 1
                    }
                }
            }
        };

        _config.Data.Labels = new List<string> { "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N"};

        List<int> x = new List<int> { 2, 5, 1, 3, 1, 1, 4, 2, 3, 4, 2, 2, 2, 3 };
        List<double> y = new List<double>();
        foreach (var i in x)
            y.Add(i);

        _config.Data.Datasets.Add(new RadarDataset
        {
            Data = y,
            Label = $"Participant {_config.Data.Datasets.Count + 1}",
            BorderColor = ColorUtil.RandomColorString()
        });
    }

    public async Task OnClick()
    {
        List<int> x = new List<int> { 1, 1, 1, 3, 1, 1, 4, 2, 3, 4, 5, 2, 5, 3 };
        List<double> y = new List<double>();
        foreach(var i in x)
            y.Add(i);

        _config.Data.Datasets.Add(new RadarDataset
        {
            Data = y,
            Label = $"Participant {_config.Data.Datasets.Count + 1}",
            BorderColor = ColorUtil.RandomColorString()
        });

        await _radarChartJs.Update();
    }
    private class RadialScale : Scale
    {
        public new ChartJs.Blazor.ChartJS.Common.Axes.Ticks.LinearRadialTicks Ticks { get; set; }
    }
}

You'd need to show me your index.html or _Host.cshtml. The razor code is fine.

I added the 2.9.3 version locally as directed here.
And rerun my code with the same _host.cshtml as below, but same missing value.
@page "/"
@namespace BlazorAppProj.Pages
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
@{
    Layout = null;
}

<!DOCTYPE html>

    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>BlazorAppProj</title>
    <base href="~/" />
    <link rel="stylesheet" href="css/bootstrap/bootstrap.min.css" />
    <link href="css/site.css" rel="stylesheet" />

    <app>
        <component type="typeof(App)" render-mode="ServerPrerendered" />
    </app>

        <environment include="Staging,Production">
            An error has occurred. This application may no longer respond until reloaded.
        </environment>
        <environment include="Development">
            An unhandled exception has occurred. See browser dev tools for details.
        </environment>
        Reload
        🗙

    <link rel="stylesheet" href="_content/ChartJs.Blazor/ChartJSBlazor.css" />

Unfortunately, I'm assuming that won't work because the files share the same name. As I already mentioned in #95, we shouldn't have Chart.js bundled with our library. Try doing it without that Chart.js nuget and instead just reference the JS either locally or through a CDN.

The CDN fix worked for me. I was trying to avoid it, but seems like, it's the only workaround for now.

Thank you @Joelius300 !

You don't have to use a CDN. You can choose any source you'd like (see the chart.js installation docs). If you want to avoid linking a CDN, you can download the latest build (from here or here), put that into your wwwroot folder and then use a script tag with that local path.
If you download the latest version as "Chart.min.js" and copy it to wwwroot/chartjs/Chart.min.js (just an example), you'd use a script tag like with src="/chartjs/Chart.min.js". I haven't done this in a while maybe it's also src="chartjs/Chart.min.js" or src="~/chartjs/Chart.min.js" but at least one of them should work 😅