GoalPlaceBlock ask

GoalPlaceBlock does not take into account the top of the player's hitbox. Because of this, the bot tries to place a block above/into itself

If you want, you can make a pull request to try and fix the issue. This repository is not really actively maintained. But I can review and merge pull requests.


Kubeflow v1.2 docs - updating shortcodes for config files and KFDefs

Hi all!
The docs release guide suggests updating all the config and URI shortcodes for the new versioning:

I recall from the v1.1 release that platforms were not ready for this change, and in fact, some of these are still in v1.0, e.g. gcp-iap.
Do we know which should be updated at this point to v1.2 and which should stay as they are?

You can skip the gcp-iap config, because it shouldn't be used anywhere. We need to clean up

Thank you for the clarification @Bobgy. I should perhaps ping other platform owners in this issue.

@Jeffwan could you please verify this on the AWS front?
@animeshsingh could you please verify this on the IBM front?
@Bobgy for the pipelines folder, how should we proceed?

From AWS side, we're ready for 1.1 changes. Will send PR for 1.2 doc changes

We don't need to change pipeline folder, it has its own release schedule


Feature: Capture Video Snippet of video

Hope media-plugin can generate video clip files by timestamp(start-time to end-time)
then I can organize the markdown text with video clip files to Anki or just review text through play video clip files.

That would require for the video to be downloaded and processed on your computer and split somehow, probably way out of scope for a plugin like this. Alternatively to connect to a service online that would do that online and return a newly hosted video with that fragment of the original video. I'm not a developer but it seems out of scope.
You can limit the playback of the videos currently and loop them from one point in time to another. For example, if you paste this in your note:
TEST
This would replay the video from the first second to the second and loop it (you can turn off the auto loop as well.
So potentially you can setup your videos like that and they will be 'clipped' to only those time frames when replayed.


[TextField] Disable autofill/autocomplete

something like autocomplete = off on  for html would be just as cool/useful for 's I think. Unless you can already do it, but I don't see it in the docs.
Autocomplete by chrome can make it look kind of bad sometimes with certain styling.

In jsx autocomplete = autoComplete
<AutoComplete
	dataSource={cities}
	...
	autoComplete='off'
/>

derp thank you

Noticed that you do no longer need to provide the autoComplete='off' for the AutoComplete component on the master branch. It's added by default.

This is not working for a normal TextField because you can't pass in custom attributes autoComplete='off' just does nothing.
How can I set autocomplete=off on the input-element?

@chapati23 in the latest version works well
<TextField
  autoComplete='off'
  floatingLabelText="From"
 ...
/>

renders to:

You can see in the source code

apologies, you are correct. must have been either a typo or caching issue on my side, just tried again and it works fine.

@chapati23 that's ok 😃

@palaniichukdmytro Confirmed

Just an FYI, Google Chrome seemed to not care if I set autoComplete="off" or not, it would always provide an autocomplete... If I set it to autoComplete="no", it worked.

Why is the option called autoComplete instead of autocomplete? autocomplete is one word and not auto-complete

Ask React.

Is it the same issue like class and className in React?

This seems to have worked for me (we are using material ui with redux form)
 <Textfield
    inputProps={
    {
      autocomplete: "new-password",
      form: {
        autocomplete: "off",
      }
    }
  />

"new-password" works if the input is type="password
"off" works if its a regular text field wrapped in a form

@BenAhlander thanks, it worked for me when I used the inputProps

Just to reiterate and be very clear:
When using as a password field:
<Textfield
  type="password"
  inputProps={{
    autoComplete: "new-password",
  }}
/>

When using as a text field:
<Textfield
  type="text"
  inputProps={{
    autoComplete: "off",
  }}
/>

Just to reiterate and be very clear:
When using as a password field:
<Textfield
  type="password"
  inputProps={{
    autoComplete: "new-password",
  }}
/>

When using as a text field:
<Textfield
  type="text"
  inputProps={{
    autoComplete: "off",
  }}
/>

doesn't work for me... I still have suggestions ....

We document possible solutions in https://next.material-ui.com/components/autocomplete/#autocomplete-autofill. It's not a simple problem.

i have tried with
<TextField autoComplete="chrome-off"  />
because of the hyphen it must be creating a diffrent string.
and it works ,and basically it requires a unique string.

I know this thread is closed, but for whoever might be finding this thread later on: as @jashacharya just replied above, it requires a unique string.
So as a pretty weird but effective workaround, you can simply use the date & time as the autoComplete value:
InputProps={{autoComplete: new Date().toString()}}
Please correct me if I'm wrong or if this bad practice, but this works fantastic for me.

Dashlane seems to ignore them all. Does anybody have an idea how to stop dashlane from filling stuff into text fields? The only thing which helped was this:
  InputProps={{
    inputProps: {
      'data-form-type': 'other',
    },
  }}

But this seems to destroy the mui date/time pickers.

This is what worked for me with a dark theme / black background/white font..
<TextField
  sx={{
    '& :-webkit-autofill': {
        WebkitBoxShadow: '0 0 0 1000px rgba(0,0,0) inset',
        WebkitTextFillColor: 'rgb(255,255,255)'
    },
    '& :-webkit-autofill:focus': {
      WebkitBoxShadow: '0 0 0 1000px rgba(0,0,0) inset',
      WebkitTextFillColor: 'rgb(255,255,255)'
    },
    '& :-webkit-autofill:hover': {
      WebkitBoxShadow: '0 0 0 1000px rgba(0,0,0) inset',
      WebkitTextFillColor: 'rgb(255,255,255)'
    }}
  />

@oliviertassinari , that's exactly what I did in the first place; I still get suggestions for password fields. The only -- though cumbersome solution -- is to avoid id/type=password, but that drops the wildcards.
I've tried everything from here: https://stackoverflow.com/questions/48304062/material-ui-textfield-disable-browser-autocomplete, but with no avail.
Any specific suggestions on working around password fields? I can live with the rest of inputs not having ids/types.

Got same problem did you find any kind of workaround for it?

this work for me in the global.css file (next js)
body {
  padding-right: 0px !important;
}

im using autoComplete =off, , nope , no , false but nothing really matters


Added forget password using sqlite3 database and removed bugs while updating password.

Forget password option for the user:

Checking Username in database to reset password :

If username not found in database :

Updating password :

@Pranjal360Agarwal I have changed little bit is it still showing error?

@Vedansh-777 now it is working fine.

@Vedansh-777 when on cloning the repo, this buffer file is giving error, hence the repo can't be cloned?

@Pranjal360Agarwal can you explain it in bit detail?

@Vedansh-777 refer to this PR, https://github.com/Pranjal360Agarwal/ApnaBharat-Bus-Booking-Reservation-System/pull/188
and raise a new PR with the new file name asap, as of now , I am removing the labels since it is against the code of conduct

@Pranjal360Agarwal I've successfully cloned the repository files, and they are functioning perfectly.

Have u ignored the two buffer files?
During cloning!!
On Sat, 17 Jun, 2023, 3:39 pm Vedansh-777, @.***> wrote:

@Pranjal360Agarwal https://github.com/Pranjal360Agarwal I've
successfully cloned the repository files, and they are functioning
perfectly.

[image: Screenshot 2023-06-17 at 3 37 12 PM]
https://user-images.githubusercontent.com/86073818/246601116-9de67199-3b4b-409d-8294-394d3baa840d.png

[image: Screenshot 2023-06-17 at 3 14 02 PM]
https://user-images.githubusercontent.com/86073818/246600152-db2c9d9e-7f0d-4789-bf09-99135691d8ad.png

[image: Screenshot 2023-06-17 at 3 16 01 PM]
https://user-images.githubusercontent.com/86073818/246600160-d06817a8-6878-4189-9166-fde9c011c9cf.png
—
Reply to this email directly, view it on GitHub
https://github.com/Pranjal360Agarwal/ApnaBharat-Bus-Booking-Reservation-System/pull/186#issuecomment-1595699266,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AXS2GRXY7I6RQTRR7YGCBBLXLV64XANCNFSM6AAAAAAZEKPEE4
.
You are receiving this because you were mentioned.Message ID:
<Pranjal360Agarwal/ApnaBharat-Bus-Booking-Reservation-System/pull/186/c1595699266
@github.com>

No i haven't ignored any of the two buffer files during cloning.

Yes, I am using mac os that's why ig mine code is working fine..
On Sat, Jun 17, 2023, 11:36 PM Anshika Jain @.***>
wrote:

@Vedansh-777 https://github.com/Vedansh-777 are you cloning this on Mac
because the problem is occurring in the windows platform
—
Reply to this email directly, view it on GitHub
https://github.com/Pranjal360Agarwal/ApnaBharat-Bus-Booking-Reservation-System/pull/186#issuecomment-1595820607,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AUQWDWQU6DRKBYZ3GKLJ7G3XLXW3TANCNFSM6AAAAAAZEKPEE4
.
You are receiving this because you were mentioned.Message ID:
<Pranjal360Agarwal/ApnaBharat-Bus-Booking-Reservation-System/pull/186/c1595820607
@github.com>

@Anshika-Jain02 @Vedansh-777 Vedansh u need to look for the alternate file names and create a new PR so that a new contributor will not face any issue, but try to raise the PR asap, and I will add the label only then.

@Anshika-Jain02 https://github.com/Vedansh-777/ApnaBharat-Bus-Booking-Reservation-System.git clone this and let me know whether it is working, and if it's showing an error, share SS also. Because I don't have Windows OS.

@Vedansh-777 https://github.com/Vedansh-777/ApnaBharat-Bus-Booking-Reservation-System.git This clone is working fine, so raise this PR containing this, all features are working properly.

@Pranjal360Agarwal sir, so should i close my PR #188 and create a new one after this issue is solved?

@Anshika-Jain02 Don't close your PR, let it be remain open.

@Anshika-Jain02 it is working fine, just check the folder that has been created and execute the main file, all features are working properly.

@Pranjal360Agarwal, if it is working fine, please also add labels again.


[4pt] Display rockets - Lists render

Use useSelector() Redux Hook to select the state slices and render lists of rockets in corresponding routes. i.e.:

// get rockets data from the store
const rockets = useSelector(state => state.rockets);

You can style the whole application "by hand" or you could use React Bootstrap, a UI library that could speed up the process. This is a popular library and working with its components would be good practice.
Render a list of rockets (as per design). For the image of a rocket use the first image in the array of flickr_images.

@jfoyarzo Render the information of the rockets and display the information correctly


Rename TopicItem.tsx

The CMS content model calls this topic entry, so we should fix the UI to match.
Not right away as it'll be inconvenient for in-flight toolkit PRs.

Done in #414


Suggestion: use "Vcs-*" information from Debian's Sources.gz

Debian stores information about the version control system of a package. This might be useful information to store and return whenever possible. Example information from Debian:
Package: ed
Binary: ed
Version: 1.17-1
Maintainer: xxxx
Uploaders: xxxx
Build-Depends: debhelper-compat (= 13)
Architecture: any
Standards-Version: 4.5.1
Format: 3.0 (quilt)
Files:
 9be19876c935f5192681329b70d0f635 1818 ed_1.17-1.dsc
 ec44da3c77341543fe15902540f132fb 90863 ed_1.17.orig.tar.gz
 e009ba526e1a6c6d8d5e2fc8ee887c87 8464 ed_1.17-1.debian.tar.xz
Vcs-Browser: https://salsa.debian.org/debian/ed
Vcs-Git: https://salsa.debian.org/debian/ed.git
Checksums-Sha256:
 05e781f628a47e71e25851dbd252a884b58f70226f0657b4b1b575a52bcc1e8d 1818 ed_1.17-1.dsc
 6c84ce06fea002fe76f19bf66c3807edafd898b8ab0f15852e1497d48f44d96d 90863 ed_1.17.orig.tar.gz
 8cc3b3c1bfb139d8ac635d4fefa47f2aa289d007fcd1da553bad97ce26fe7f88 8464 ed_1.17-1.debian.tar.xz
Homepage: https://www.gnu.org/software/ed/
Package-List:
 ed deb editors optional arch=any
Testsuite: autopkgtest
Directory: pool/main/e/ed
Priority: source
Section: editors

The interesting field is Vcs-Git. Possibly Homepage could also be interesting. These could optionally be used to cross correlate information from other distributions and aggregate information.

Some statistics:
$ zcat Sources.gz | grep Vcs| grep -v Browser| cut -f 1 -d :  | sort | uniq -c | sort -n
      3 Vcs-Arch
      3 Vcs-Cvs
      3 Vcs-Darcs
      6 Vcs-Hg
     48 Vcs-Bzr
    212 Vcs-Svn
  27778 Vcs-Git

Most of these point to a Vcs hosted by Debian itself and points to the Vcs used for packaging the software, not the software itself.


Issue: 289 - Adding GraalVM native-image support.

Issue #, if available:
https://github.com/aws/aws-xray-sdk-java/issues/289
Description of changes:
Adding GraalVM native-image config
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Codecov Report

Merging #311 (48360d2) into master (7e93511) will decrease coverage by 0.01%.
The diff coverage is n/a.

@@             Coverage Diff              @@
##             master     #311      +/-   ##
============================================
- Coverage     58.92%   58.90%   -0.02%
+ Complexity     1206     1205       -1
============================================
  Files           131      131
  Lines          5066     5066
  Branches        593      593
============================================
- Hits           2985     2984       -1
  Misses         1806     1806
- Partials        275      276       +1

Impacted Files
Coverage Δ

.../java/com/amazonaws/xray/entities/SegmentImpl.java
87.34% <0.00%> (-3.80%)
:arrow_down:

...ava/com/amazonaws/xray/AWSXRayRecorderBuilder.java
68.42% <0.00%> (-0.88%)
:arrow_down:

...va/com/amazonaws/xray/entities/SubsegmentImpl.java
76.05% <0.00%> (+4.22%)
:arrow_up:

Continue to review full report at Codecov.

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


overlord http is very slow with kafka index task

i use kafka index task to get data,  i hava 10 Supervisor config to get data from 10 topic , and write to 10 datasource
when i use http to  submit the nineth Supervisor, it become slow
and after some minute, overlord hase error like
2017-05-02T12:05:45,614 ERROR [qtp438493423-169] com.sun.jersey.spi.container.ContainerResponse - The RuntimeException could not be mapped to a response, re-throwing to the HTTP container
com.metamx.common.ISE: Unable to grant lock to inactive Task [index_kafka_appstore_storm_test_3_935d1c3b346939c_ffnjaidm]
2017-05-02T06:11:36,035 ERROR [KafkaSupervisor-appstore_druid_storm_2] io.druid.indexing.kafka.supervisor.KafkaSupervisor - KafkaSupervisor[appstore_druid_storm_2] failed to handle notice: {class=io.druid.indexing.kafka.supervisor.KafkaSupervisor, exceptionType=class java.util.concurrent.RejectedExecutionException, exceptionMessage=Task com.google.common.util.concurrent.ListenableFutureTask@1e39a06f rejected from java.util.concurrent.ThreadPoolExecutor@6fdd8c9d[Terminated, pool size = 0, active threads = 0, queued tasks = 0, completed tasks = 12], noticeClass=RunNotice}
java.util.concurrent.RejectedExecutionException: Task com.google.common.util.concurrent.ListenableFutureTask@1e39a06f rejected from java.util.concurrent.ThreadPoolExecutor@6fdd8c9d[Terminated, pool size = 0, active threads = 0, queued tasks = 0, completed tasks = 12]
at java.util.concurrent.ThreadPoolExecutor$AbortPolicy.rejectedExecution(ThreadPoolExecutor.java:2047) ~[?:1.8.0_112]
at java.util.concurrent.ThreadPoolExecutor.reject(ThreadPoolExecutor.java:823) ~[?:1.8.0_112]
at java.util.concurrent.ThreadPoolExecutor.execute(ThreadPoolExecutor.java:1369) ~[?:1.8.0_112]
at com.google.common.util.concurrent.MoreExecutors$ListeningDecorator.execute(MoreExecutors.java:484) ~[guava-16.0.1.jar:?]
at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:134) ~[?:1.8.0_112]
at com.google.common.util.concurrent.AbstractListeningExecutorService.submit(AbstractListeningExecutorService.java:58) ~[guava-16.0.1.jar:?]
at io.druid.indexing.kafka.KafkaIndexTaskClient.getStatusAsync(KafkaIndexTaskClient.java:353) ~[druid-kafka-indexing-service-0.9.2.jar:0.9.2]
at io.druid.indexing.kafka.supervisor.KafkaSupervisor.discoverTasks(KafkaSupervisor.java:695) ~[druid-kafka-indexing-service-0.9.2.jar:0.9.2]
at io.druid.indexing.kafka.supervisor.KafkaSupervisor.runInternal(KafkaSupervisor.java:542) ~[druid-kafka-indexing-service-0.9.2.jar:0.9.2]
at io.druid.indexing.kafka.supervisor.KafkaSupervisor$RunNotice.handle(KafkaSupervisor.java:462) ~[druid-kafka-indexing-service-0.9.2.jar:0.9.2]
at io.druid.indexing.kafka.supervisor.KafkaSupervisor$2.run(KafkaSupervisor.java:298) [druid-kafka-indexing-service-0.9.2.jar:0.9.2]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_112]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_112]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [?:1.8.0_112]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [?:1.8.0_112]
at java.lang.Thread.run(Thread.java:745) [?:1.8.0_112]
and then overlord http is very slow, can somebody give me suggestion?thanks
ps: i get overload log,middlemanager log , there ere no other errror.

@kingnj I think these ops are done in parallel now -- have you tried with 0.10.0 and has the situation improved?

@gianm thanks, i used 0.10.0, but this issue is open


Fix/readme

Hello,
I fixed some typos, grammatical errors, link to the contributors profile and the language for some instructions.
Let me know if these are acceptable changes or need to be amended in some way.
Thank you. 🙏

Hi @vimode,
Thank you for the contribution, Please add this Figma link also.
Figma Link: https://www.figma.com/file/jssDxh7avC7hkq7Wl9CZEY/Gita-Web-App?node-id=0%3A1

Hey @akshitarora921
I added the Figma link under the Projects section of the README.
Let me know if you think it needs to be moved to a better place in the documentation.
Thank you.


Clarification: Differences between switches

It might just be my limited knowledge of the english language:
What are differences between the three "switch" types, in layman's words?
StatefulProgrammableSwitch
https://github.com/KhaosT/HAP-NodeJS/blob/master/lib/gen/HomeKitTypes.js#L1669
-> "event" value of 0 or 1
-> "return" value of 0 or 1
StatelessProgrammableSwitch
https://github.com/KhaosT/HAP-NodeJS/blob/master/lib/gen/HomeKitTypes.js#L1686
-> "event" value of 0 or 1
Switch
https://github.com/KhaosT/HAP-NodeJS/blob/master/lib/gen/HomeKitTypes.js#L1702
-> Boolean
Especially the distinction between "Switch" and "StatelessProgrammableSwitch" isn't really clear to me.

Have a look here: https://developer.xamarin.com/guides/ios/platform_features/introduction_to_ios9/homekit/#Working_with_Accessories
where one can read:

StatefulProgrammableSwitch - Defines a programmable switch that remains in a give state once triggered (like a flip switch).
/StatelessProgrammableSwitch/ - Defines a programmable switch that returns to its initial state after being triggered (like a push button)
Switch - Defines an on/off switch like a standard wall switch

Ok ... even better: have a look at the video https://developer.apple.com/videos/wwdc/2015/?id=210
in specific at 38:00

Cool, that session was really good.
I just learned the programmable switch is more a sensor than an actuator, while the switch is an actuator.

StatelessProgrammableSwitch

ohhhhh this is NICE. I just bridged Scenes from HA as switches and this will be MUCH better to use.

I have a question, guys.. as i setup a stateless switch, my home app show it like an info field and not like a button, i can press it but server shows nothing... how can i setup a switch like a pushbutton with only one way, not two like "StatefullProgrammableSwitch" or just "Switch"?

you can add a timeout that will reset the state and push it to homekit.

Ahhh... Its a boring solution :)) i need apple style, just a push button, not less, not more

@antonkluev, did you find a solution on this?  I don't get inside of my setState function with the code below but similar code works with a Switch.  Maybe I'm missing something?
this.service = new Service.StatelessProgrammableSwitch(this.name);
this.service
                .addCharacteristic(Characteristic.On)
                .on('set', this.setState.bind(this));

no, i think there is a bug )) we must ask the creator of HAP

Anyone know if the StatelessProgrammableSwitch service is working yet? I can't seem to get it to trigger events either and I'd like to use this for firing IR signals to turn on an AC (which just uses a power toggle vs on/off state)

It works fine. Please make sure you properly invoked the setValue so iOS can receive the value changes.

@KhaosT hmm sorry for being a bit new to the Homebridge system, but I can't seem to get a simple StatelessProgrammableSwitch working. Could you let me know if something here looks off?
This is the basic structure of my accessory:
LircAirConditioner.prototype = {

  sendPowerCommand: function(value, callback) {
    console.log("Sending power command: ", this.lirc_name, this.power_command);
    lircClient.irsend.send_once(this.lirc_name, this.power_command, function() {
      console.log("Sent AC power command!");
      callback(null, "off");
    });
  },

  getServices: function() {
    var informationService = new Service.AccessoryInformation();
    informationService
      .setCharacteristic(Characteristic.Manufacturer, this.manufacturer)
      .setCharacteristic(Characteristic.Model, this.model_name)

    var powerSwitchService = new Service.StatelessProgrammableSwitch(this.name + " Power");
    powerSwitchService
      .getCharacteristic(Characteristic.ProgrammableSwitchEvent)
      .on('set', this.sendPowerCommand.bind(this));

    return [informationService, powerSwitchService];
  }

}

The lircClient is a library that sends IR signals on my rasberry Pi, but that shouldn't really make a difference for this example. Currently I can see the accessory in the Home app on iOS but is says its not compatible.

Any help is appreciated!

Wait... what are you trying to do... Programmable Switch is used to refer to a physical switch in real world that user can press and emit event to HomeKit. It's not the other way around...
Based on your code, it looks like you are expecting HomeKit to write to that characteristic which is not possible since it's defined as read-only.

Yeah, I'm effectively using an IR transmitter to act like a stateless button or "switch" on a remote control. There is no way of figuring out if the AC is on/off so just sending this command will toggle it. For that reason a stateless switch seemed like the right thing, but again I'm very new to this HomeKit stuff. Is that not the correct way to think about it? How could I accomplish something like that.

With a regular on/off switch, which defaults to off, and uses a JS setTimeout to reset it back to off again after an on is triggered. S’how I’ve got push-to-toggle switches defined for exactly the same purpose - sending LIRc commands.

@PatchworkBoy ah, clever! Would you mind sharing your code to accomplish that? I'm familiar with working with timeouts, but I'm more curious how you configured the characteristics and callbacks. Thanks!

 I’m using homebridge via platform plugins as opposed to writing natively for HAP-NodeJS. My functionality deals with the platform (Domoticz) rather than homekit, and homebridge picks this up this change via MQTT.
(Just realised I’ve never actually worked DIRECT with HAP-NodeJS!)

I've included a StatelessProgrammableSwitch in my plugin which triggers after pushing a volume up/down button. It seems to work, but when I hook up an automation trigger that should act after push the volume up/down button noting happens.
Does automation work with StatelessProgrammableSwitch s?
Thanks!

@rooi According to @KhaosT, the HomeKit app no longer supports programable switches.  I've tried all the free third party apps, to no avail. Not sure I'm ready to sink £11 into the third party Home app. https://github.com/KhaosT/homebridge-amazondash/commit/d8e16a399edd08c1e508428abd03901de8886bb7

@kim3er there are free options like Elgato Eve's app or Hesperus if you don't feel like spending money for home automation apps.

You're right, @KhaosT! I'd completely missed the option in the Eve app. Rich

@justme-1968 Can you please sho an example on how to push back the value to homeKit?

The built-in Home app in iOS 10.3 does support the StatelessProgrammableSwitch service, albeit somewhat differently from what I would expect.  Looking at Apple's first public beta, I find:

The StatelessProgrammableSwitch service seems to refer to a button on a switch device, rather than to the device itself.  A switch device with multiple buttons is a single HomeKit accessory with a different StatelessProgrammableSwitch service for each button.  I managed to add a BatteryService service to the accessory as well;
The iOS 10.3 Home app shows a single tile for the accessory (!), with a new symbol, where the iOS 10.2 Home app shows a tile per (unsupported) StatelessProgrammableSwitch service.
In Details, the iOS 10.3 Home app shows a section STATUS (for the BatteryService) and a section for each button (one for each StatelessProgrammableSwitch service), BUTTON 1, BUTTON 2, etc.  It ignores the service's Name.  When the accessory contains only a single StatelessProgrammableSwitch service, the section is simply labeled ACTIONS;
Each button section has two related actions, Single Press and Double Press.  On Add you can specify the scenes and/or services to activate, very much like specifying actions in Automation.
These actions do not show in Automation in the iOS 10.3, but they do in the iOS 10.2 and in other HomeKit apps, like Eve.  The rules for Single Press trigger on ProgrammableSwitchEvent = 0, the rule for Double Press checks for ProgrammableSwitchEvent = 1.

The last point leads to my question: how would I set the ProgrammableSwitchEvent?  Will it trigger an action each time I buttonService.setCharacteristic(Characteristic.ProgrammableSwitchEvent, 0) or only if the ProgrammableSwitchEvent actually changes value?  In the latter case, to what value would I set the characteristic after the timeout to reset the switch?  I don't think HomeKit appreciates an out of bound value (minValue and maxValue are 0 and 1 respectively).

@ebaauw nice to see you do the digging there :) It's kinda annoying that Home app uses a different definition of StatelessProgrammableSwitch service than it used to be in HAS. I think what Home app expects is that accessory will only send event when the button is being pressed ignoring the characteristic's last value. (Basically should match your first case). However, HAP-NodeJS currently implemented in a way that notification will not be send to iOS if the updated characteristic value is the same as the old one so by invoking setCharacteristic multiple times will only send one notification.
I'll try to wait and see how HAS being updated for StatelessProgrammableSwitch service and make change accordingly to the project.

nice to see you do the digging there

@KhaosT  I really appreciate the work you've been doing with HAP-NodeJS and I'm happy to provide what little help I can.

I'll try to wait and see how HAS being updated

HAS = HomeKit Accessory Simulator?  I don't think Apple will change it, at least not for a minor iOS release.  I reverse engineered the above using HAS Version 2.0 (114.2), before starting to implement the changes in my homebridge-hue plugin.  Also, the iOS 10.3 and iOS 10.2 Home apps (and other HomeKit apps on iOS 10.3 beta as well as on iOS 10.2) seem to interoperate without any issues.  I think the changes are limited to the builtin Home app.
It might be prudent to wait until the final release of iOS 10.3, though.

From what I heard there will have an updated version with adjusted UI for programmable switches, not sure when it will be released though.
Sent from my iPhone

On Feb 5, 2017, at 3:08 AM, Erik Baauw<EMAIL_ADDRESS>wrote:
nice to see you do the digging there
@KhaosT I really appreciate the work you've been doing with HAP-NodeJS and I'm happy to provide what little help I can.
I'll try to wait and see how HAS being updated
HAS = HomeKit Accessory Simulator? I don't think Apple will change it, at least not for a minor iOS release. I reverse engineered the above using HAS Version 2.0 (114.2), before starting to implement the changes in my homebridge-hue plugin. Also, the iOS 10.3 and iOS 10.2 Home apps (and other HomeKit apps on iOS 10.3 beta as well as on iOS 10.2) seem to interoperate without any issues. I think the changes are limited to the builtin Home app.
It might be prudent to wait until the final release of iOS 10.3, though.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.

there will have an updated version with adjusted UI for programmable switches

Cool, looking forward to see it.

However, HAP-NodeJS currently implemented in a way that notification will not be send to iOS if the updated characteristic value is the same as the old one so by invoking setCharacteristic multiple times will only send one notification.

Looking at the setValue() code, I could probably work around that by calling from my plugin the following:
buttonService.getCharacteristic(Characteristic.ProgrammableSwitchEvent)
  .emit('change', {oldValue: oldValue, newValue: newValue});

The rules for Single Press trigger on ProgrammableSwitchEvent = 0, the rule for Double Press checks for ProgrammableSwitchEvent = 1.

Some more experimentation yields:

When you change the ProgrammableSwitchEvent's maxValue property to 0, Home only shows the Single Press action.
When you change the ProgrammableSwitchEvent's maxValue property to 2, Home shows a third action, Long Press.
When you increase the ProgrammableSwitchEvent's maxValue property above 2, Home shows additional actions, labelled (Unknown).

Since the Hue bridge lacks push notifications, I need to poll it.  Therefore I cannot detect Double Press reliably, so I won't support that action.  For the Hue tap switch, I want to support only Single Press - that's easy.  For the Hue dimmer switch I want to support Single Press and Long Press, as the dimmer supports Press and Hold, which I can detect reliably.  So I need to specify allowed values 0 and 2.  Does HAP-NodeJS support that?

@ebaauw I'm not sure you emitting event externally on behalf of the characteristic object is a good idea since it's a implementation detail which may be changed in the future. It's fine for trying it out, just don't ship it :)
Inside props, there is a validValues you can set. Try set that to an array of [0, 2] and see if Home app will honor that I guess.

I understand.  Will try out later and let you know if it works.
Bingo.  Only Single Press and Long Press after:
buttonService.getCharacteristic(Characteristic.ProgrammableSwitchEvent)
  .setProps({minValue: 0, maxValue: 2, validValues: [0, 2]});

I'm not sure you emitting event externally on behalf of the characteristic object is a good idea

HomeKit seems OK with initialising/resetting the ProgrammableSwichEvent to -1, so I don't need to mess with the implementation details.

For those interested, I published some screenshots of a programmable switch in the iOS 10.3 beta 2 Home app.  The switch is for a Hue dimmer switch exposed by homebridge-hue v0.2.2.  See https://github.com/ebaauw/homebridge-hue/issues/54#issuecomment-280133303.

Now here's an interesting fact: the ProgrammableSwitchEvent characteristic appears neither writeable nor readable to HomeKit apps.  It's permissions are limited to notify, despite the setting in homebridge (or, for that matter, in the HomeKit Accessory Simulator) that includes read and notify permissions.
I found out playing with HMCatalog and noticing that the InputEvent wasn't marked Read Only.
This probably explains why Eve doesn't show this characteristic, allows it as a trigger for a rule, but not as a condition.


doc: GPU guide for Ubuntu 20

Is it official documentation that will be posted to docs.openvinotoolkit.com?

Is it official documentation that will be posted to docs.openvinotoolkit.com?

@artyomtugaryov I will add a link to this MD on the official docs site.


keep scroll position through redraw

I have a VBox with enough labels in it to need a scroll bar, and the children are appended to periodically. My problem is that when that happens the scroll resets to the top. Is there a way to make the scroll position not reset during a redraw?

@asibryant I've a solution for you. The problem: when you add an element to a ListView, the entire list gets updated so it resets scroll value. The solution: make the ListView height infinite, and put the entire view in a well sized container that will be scrolled later.
import remi.gui as gui
from remi import start, App

class MyApp(App):
    def __init__(self, *args):
        super(MyApp, self).__init__(*args)

    def main(self):
        wid = gui.VBox(width=300, height=200, margin='0px auto')

        lst_container = gui.Widget(width=200, height=150)
        lst_container.style['overflow'] = 'auto'
        lst = gui.ListView(False, width='100%')
        lst_container.append(lst)

        bt = gui.Button('Press me!', width=200, height=30)
        bt.style['margin'] = 'auto 50px'

        bt.set_on_click_listener(self.on_button_pressed, lst)

        wid.append(lst_container)
        wid.append(bt)

        # returning the root widget
        return wid

    # listener function
    def on_button_pressed(self, widget, lst):
        li = gui.ListItem("item"+str(len(lst.children)))
        lst.append(li)

if __name__ == "__main__":
   start(MyApp, debug=True)


added missing ASL licenses

added ASL license in files (*.java. *.drl) where it was missing
did a mvn clean install -Dfull executing the tests
builds successful

merged in master


[Question]: Use react-native-snap-carousel + react-native-orientation-locker + zoom toolkit

Summary
Hello! I'm working on a photo gallery with react-native-snap-carousel that allows changing orientation with react-native-orientation-locker.

Gallery component
import React, {
  useCallback,
  useEffect,
  useState,
  useRef,
  memo,
  startTransition,
} from 'react';
import { useWindowDimensions } from 'react-native';

import { Box } from '@gympass/yoga';
import { useNavigation, type ParamListBase } from '@react-navigation/native';
import type { StackNavigationProp } from '@react-navigation/stack';

import { useConfig } from 'hooks/remoteConfig';
import tracker from 'services/tracker';

import Dots from './components/Dots';
import { Photo, type PhotoItem } from './components/Photo';
import { Loading, Carousel } from './styles';

export type GalleryProps = {
  index: number;
  photos: Array<PhotoItem>;
};

type RenderItemParams = {
  item: PhotoItem;
  index: number;
};

function Gallery({ index, photos }: GalleryProps) {
  const [currentIndex, setCurrentIndex] = useState(index);
  const [isScreenReady, setIsScreenReady] = useState(false);
  const [isZoomEnabled, setZoomEnabled] = useState(false);
  const timeoutID = useRef<NodeJS.Timeout>();

  const navigation = useNavigation<StackNavigationProp<ParamListBase>>();
  const enablePartnerGalleryZoom = Boolean(
    useConfig('enablePartnerGalleryZoom'),
  );

  const { width } = useWindowDimensions();

  function onResizeForIndex(itemIndex: number) {
    return function onResize(scale: number) {
      if (itemIndex !== currentIndex) return;

      if (timeoutID.current) {
        clearTimeout(timeoutID.current);
        timeoutID.current = undefined;
      }

      timeoutID.current = setTimeout(() => {
        setZoomEnabled(scale !== 1);
      }, 500);
    };
  }

  const onPanEnd = useCallback((item: PhotoItem) => {
    tracker.trackEvent('partner_gallery_photo_scrolled', {
      photo_position: index,
      photo_id: item.id,
    });
    // eslint-disable-next-line react-hooks/exhaustive-deps
  }, []);

  const onPinchEnd = useCallback((scale: number, item: PhotoItem) => {
    const event = scale > 1 ? 'zoom_in' : 'zoom_out';
    tracker.trackEvent(`partner_gallery_photo_${event}`, {
      photo_position: index,
      photo_id: item.id,
    });
    // eslint-disable-next-line react-hooks/exhaustive-deps
  }, []);

  function renderItem({ item, index: itemIndex }: RenderItemParams) {
    return (
      <Photo
        item={item}
        panEnabled={isZoomEnabled}
        pinchEnabled={enablePartnerGalleryZoom}
        tapsEnabled={enablePartnerGalleryZoom}
        onPanEnd={() => onPanEnd(item)}
        onPinchEnd={e => onPinchEnd(e.scale, item)}
        onZoomUpdate={onResizeForIndex(itemIndex)}
      />
    );
  }

  useEffect(() => {
    const unsubscribe = navigation.addListener('transitionEnd', e => {
      if (!e.data.closing && !isScreenReady) {
        startTransition(() => {
          setIsScreenReady(true);
        });
      }
    });

    return unsubscribe;
  }, [navigation, isScreenReady]);

  if (!isScreenReady) {
    return (
      <Box
        flex={1}
        justifyContent="center"
        alignItems="center"
        accessibilityRole="progressbar">
        <Loading hardwareAccelerationAndroid autoPlay loop />
      </Box>
    );
  }

  return (
    <Box flex={1} justifyContent="center" alignItems="center">
      <Carousel
        enableSnap
        enableMomentum
        horizontal
        scrollEnabled={!isZoomEnabled}
        initialNumToRender={1}
        maxToRenderPerBatch={2}
        sliderWidth={width}
        itemWidth={width}
        data={photos}
        firstItem={currentIndex}
        keyExtractor={(item: PhotoItem) => item.id}
        renderItem={renderItem}
        onBeforeSnapToItem={setCurrentIndex}
        onSnapToItem={setCurrentIndex}
      />
      {photos.length > 1 && (
        <Dots length={photos.length} current={currentIndex} />
      )}
    </Box>
  );
}

export default memo(Gallery);

A PhotoItem have the following type:
type PhotoItem = {
  id: string;
  uri: string;
}

When the orientation changes from portrait to landscape, I must update the image dimensions to fit on the screen.

Photo component
import React, { useCallback, useEffect, useRef } from 'react';
import {
  Image,
  useWindowDimensions,
  type LayoutChangeEvent,
} from 'react-native';

import { Box } from '@gympass/yoga';
import Orientation, { OrientationType } from 'react-native-orientation-locker';
import { runOnJS } from 'react-native-reanimated';
import {
  ResumableZoom,
  getAspectRatioSize,
  useImageResolution,
  type CommonZoomState,
  type ResumableZoomProps,
} from 'react-native-zoom-toolkit';

import { Loading } from '../styles';

export type PhotoItem = {
  id: string;
  uri: string;
};

export type PhotoProps = {
  item: PhotoItem;
  panEnabled: boolean;
  onZoomUpdate: (scale: number) => void;
} & ResumableZoomProps;

export function Photo({
  item,
  panEnabled = false,
  onZoomUpdate,
  ...zoomProps
}: Readonly<PhotoProps>) {
  const currentOrientation = useRef<OrientationType>(
    Orientation.getInitialOrientation(),
  );
  const height = useRef<number>();
  const { width } = useWindowDimensions();
  const { resolution, isFetching } = useImageResolution({ uri: item.uri });

  const onOrientationChange = useCallback((orientation: OrientationType) => {
    currentOrientation.current = orientation;
  }, []);

  useEffect(() => {
    Orientation.addDeviceOrientationListener(onOrientationChange);
    return () => {
      Orientation.removeDeviceOrientationListener(onOrientationChange);
    };
    // eslint-disable-next-line react-hooks/exhaustive-deps
  }, []);

  const onLayoutchange = useCallback(({ nativeEvent }: LayoutChangeEvent) => {
    if (height.current !== nativeEvent.layout.height) {
      height.current = nativeEvent.layout.height;
    }
  }, []);

  if (isFetching || resolution === undefined) {
    return (
      <Loading
        testID="gallery-photo-loading"
        hardwareAccelerationAndroid
        autoPlay
        loop
      />
    );
  }

  function onUpdateHandler({ scale }: CommonZoomState<number>) {
    'worklet';

    runOnJS(onZoomUpdate)(scale);
  }

  function isPortrait() {
    return currentOrientation.current === OrientationType.PORTRAIT;
  }

  const imageSize = getAspectRatioSize({
    aspectRatio: resolution.width / resolution.height,
    width: isPortrait() ? width : undefined,
    height: !isPortrait() ? height.current : undefined,
  });

  return (
    <Box flex={1} onLayout={onLayoutchange}>
      <ResumableZoom
        extendGestures
        panEnabled={panEnabled}
        maxScale={3}
        scaleMode="clamp"
        onUpdate={onUpdateHandler}
        {...zoomProps}>
        <Image
          accessibilityRole="image"
          resizeMethod="scale"
          source={{ uri: item.uri }}
          style={imageSize}
        />
      </ResumableZoom>
    </Box>
  );
}

But when it changes to the landscape orientation (right or left), there is a quick image flicker that gets bigger and then go to its desired size.
image-flickering.webm
Do you know if there is any way I can animate this change in width/height so that this flicker is not visible? As the Zoom toolkit uses react-native-animated, I think it's possible to animate the transition, but I can't find a way.

Hi there, did you try this issue in isolation? Like the example described on ResumableZoom docs? What you mention is way too specific.
Making random guesses before I know your answer, from my perspective it looks like useWindowDimensions runs faster than the device orientation change callback, I say this because the image in the video clearly gets wider.
Did you try to request the new width as the orientation is set, like so:
const [width, setWidth] = useState<number>(Dimensions.get("window").width);

....
const onOrientationChange = useCallback((orientation: OrientationType) => {
  currentOrientation.current = orientation;
  setWidth(Dimensions.get("window").width);
}, []);

Thank you for the answer. Yeah, I'm construct this case in isolation. First I did mount the Gallery, then I put the images inside ResumableZoom with pinch and double tap gestures enabled and now I'm trying to integrate with orientation changes.
For the previous steps I did make work properly. But you give me more insights to try. I'll try them and answer back here later.

Currently I can only think of a way to make this work but I can not put it to the test myself, because the version on my computer of this library is really broken right not, however try it and let me know.
Pretty much is about preventing a rerender when the orientation changes, Pinchable views are heavy components, so I'd advise you to place your size changing logic within the only place it makes sense to me on the onLayout callback:

Try out the following code
import React from 'react';
import { Dimensions, View, type ViewStyle } from 'react-native';

import Animated, {
  useAnimatedStyle,
  useSharedValue,
} from 'react-native-reanimated';
import { ResumableZoom } from 'react-native-zoom-toolkit';

const IMAGE =
  'https://e0.pxfuel.com/wallpapers/322/848/desktop-wallpaper-fennec-fox-algeria-national-animal-desert-fox.jpg';

const { width } = Dimensions.get('window');

const Index = () => {
  const imageWidth = useSharedValue<number>(width);
  const imageHeight = useSharedValue<number>(width / (850 / 565));

  const imageStyles = useAnimatedStyle(
    () => ({
      width: imageWidth.value,
      height: imageHeight.value,
    }),
    [imageWidth, imageHeight]
  );

  const onLayout = () => {
    const currentWidth = Dimensions.get('window').width;
    imageWidth.value = currentWidth;
    imageHeight.value = currentWidth / (850 / 565);
  };

  const style: ViewStyle = {
    flex: 1,
  };

  return (
    <View style={style} onLayout={onLayout}>
      <ResumableZoom extendGestures>
        <Animated.Image
          source={{ uri: IMAGE }}
          style={imageStyles}
          resizeMethod={'scale'}
        />
      </ResumableZoom>
    </View>
  );
};

export default Index;

Be sure to try out the gestures, as I said the version I have is quite broken right now because of Expo.

I'm sorry for the wait. I was in the hospital for the past three days. I will try your suggestion today. Thank you!

After some time coding and searching I found that the root cause is the SafeArea. Even using safeAreaInsets directly, when orientation changes, insets are updated more than once and with several different values combinations.
I ended up coding a in house solution to define insets using ref to avoid rerendering. Thanks for the support.


Test ddf isin with large list

Adds a test for filtering a dataframe by columns on a large list

Thanks, @hayesgb !
When CI finishes, would you uncomment the test.yaml  and adding [skip ci] on the commit message

I'll merge main and uncomment the test.yaml code


The namespace namespace Already contains a definition for Controller

From @Cnordbo on April 18, 2017 19:52

VSCode Version: Code 1.11.2 (6eaebe3b9c70406d67c97779468c324a7a95db0e, 2017-04-13T08:03:11.395Z)
OS Version: Windows_NT ia32 10.0.14393
Extensions:

Extension
Author
Version

gitignore
codezombiech
0.5.0

vscode-express
Compulim
0.0.5

git-project-manager
felipecaputo
1.2.1

vscode-nuget-package-manager
jmrog
1.1.2

mssql
ms-mssql
0.3.0

csharp
ms-vscode
1.8.1

vscode-icons
robertohuertasm
7.5.1

gitblame
waderyan
1.3.0

Steps to Reproduce:

Create a new Controller (C#, MVC app, im using the template from "dotnet new react"
Delete the controller
Re-create it

Error:
Says that it already exists, and shows an error in the UI
Copied from original issue: Microsoft/vscode#24970

I will throw in a temp fix as well: restart vscode.

Invoking the "Restart OmniSharp" command will also fix it as a workaround.

This is probably a special case of https://github.com/OmniSharp/omnisharp-vscode/issues/785.

Not sure if it is related to this issue, but I was playing with xUnit (install, uninstall, create diff project within the same solution, removed old xUnit, etc..).
dotnet info:
.NET Command Line Tools (2.0.2)

Product Information:
 Version:            2.0.2
 Commit SHA-1 hash:  a04b4bf512

Runtime Environment:
 OS Name:     Mac OS X
 OS Version:  10.13
 OS Platform: Darwin
 RID:         osx.10.12-x64
 Base Path:   /usr/local/share/dotnet/sdk/2.0.2/

Microsoft .NET Core Shared Framework Host

  Version  : 2.0.0
  Build    : e8b8861ac7faf042c87a5c2f9f2d04c98b69f28d

OmniSharp/C# version:

Got this:

However, after restarting OmniSharp:

It happened again. I just moved the entire solution into another file:
- Solution
 - .sln
 - project1
 - project2

To:
- Folder
 - Solution
  - .sln
  - project1
  - project2

and the same error The namespace .. already contains a definition for ..

cc @rchande

Any solution other than restarting OmniSharp? This is not critical but really annoying since OmniSharp needs a reasonable amount of time to restart on larger solutions.

Restarting Omnisharp worked for me. Press CTRL + SHIFT + P, then select 'Restart Omnisharp' from the list

Since recently i get the same error/behavior for every new file with a new C# class i create. The moment i finish my public class MyClass { } ceremony i get the error The namespace 'Blah' already contains a definition for 'MyClass'. Restarting Omnisharp makes the error go away.
Adding another new class in the already existing file after restarting Omnisharp does not trigger the error again.

Had the same issue. Restarting the VS Code has fixed it.

It seems to happen when I connect my account for VSCode -- I use GitHub account. What's weirder is, after connecting/disconnecting the account, I have to test and restart VSCode twice or thrice for the problem to happen/not happen.  My test involves creating a .cs file then creating a class in that file.
I'm still trying to figure out if it has something to do with syncing OmniSharp settings.

This happens every time I create a new class in a new file. Restarting OmniSharp works but it gets tedious really quickly.
So I've had to resort to workarounds like creating my classes in bulk before restarting and putting related ones in the same file.
v1.25

FWIW I was able to resolve the issue via the option OmniSharp: Select Project where any selection "fixed" it.

Every time I create, move, rename a class, interface etc. this happens... to be able to work I have to restart omnisharp 50 times a day....

This issue does not happen if a new .cs file is added from elsewhere, not from Visual Studio Code.
I use touch MyNewFile.cs from terminal. It appears in VS Code automatically, and adding class definition into this file does not cause this issue.

We've made lots of updates to the C# extension since this issue was filed. Please file a new issue if you're still experiencing this with updated logs.


Tag previews bugs

Hello. I wanted to update the patch in siduck/chadwm with your 6.3 version (taken from here). Upon doing that, I noticed the following bugs not existent in the 6.2 version of the patch chadwm uses:

Tags with windows open previously, still show the old preview with the windows.
"previewbar" does not seem to work.

, and one bug from 6.2:

The "scalepreview" option does not change the size of the popup window, but it rather up/downscales the preview and tiles it to fit the popup window. Try the value 10 for example.

Hi, testing 6.3 on dwm 6.3 (git checkout 6.3) and the patch works fine: previewbar werks and the previews are updated. Did you apply the patch on a fresh dwm?

Yes I did. I will try again though, I'm not sure what went wrong.

Tested again, same results. I'm using the patch from the link above, are you using the same?

Tested on an Arco VM as well just to be on the safe side. The only config change I made is the static const int previewbar = 0;.


[optimize] use string_view instead of std::string in string function

Proposed changes
Describe the big picture of your changes here to communicate to the maintainers why we should accept this pull request. If it fixes a bug or resolves a feature request, be sure to link to that issue.
Types of changes
What types of changes does your code introduce to Doris?
Put an x in the boxes that apply

[] Bugfix (non-breaking change which fixes an issue)
[] New feature (non-breaking change which adds functionality)
[] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] Documentation Update (if none of the other choices apply)
[x] Code refactor (Modify the code structure, format the code, etc...)

Checklist
Put an x in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your code.

[ ] I have created an issue on (Fix #ISSUE) and described the bug/feature there in detail
[ ] Compiling and unit tests pass locally with my changes
[x] I have added tests that prove my fix is effective or that my feature works
[ ] If these changes need document changes, I have updated the document
[ ] Any dependent changes have been merged

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

@morningman
before:
mysql> SELECT count(get_json_int(LO_COMMITDATE, "$.k1")) from LINE_ORDER_V2;
+----------------------------------------------+
| count(get_json_int(`LO_COMMITDATE`, '$.k1')) |
+----------------------------------------------+
|                                            0 |
+----------------------------------------------+
1 row in set (19.35 sec)

mysql> SELECT count(get_json_int(LO_COMMITDATE, "$.k1")) from LINE_ORDER_V2;
+----------------------------------------------+
| count(get_json_int(`LO_COMMITDATE`, '$.k1')) |
+----------------------------------------------+
|                                            0 |
+----------------------------------------------+
1 row in set (19.18 sec)

mysql> SELECT count(get_json_int(LO_COMMITDATE, "$.k1")) from LINE_ORDER_V2;
+----------------------------------------------+
| count(get_json_int(`LO_COMMITDATE`, '$.k1')) |
+----------------------------------------------+
|                                            0 |
+----------------------------------------------+
1 row in set (19.06 sec)

after:
mysql> SELECT count(get_json_int(LO_COMMITDATE, "$.k1")) from LINE_ORDER_V2;
+----------------------------------------------+
| count(get_json_int(`LO_COMMITDATE`, '$.k1')) |
+----------------------------------------------+
|                                            0 |
+----------------------------------------------+
1 row in set (1.46 sec)

mysql> SELECT count(get_json_int(LO_COMMITDATE, "$.k1")) from LINE_ORDER_V2;
+----------------------------------------------+
| count(get_json_int(`LO_COMMITDATE`, '$.k1')) |
+----------------------------------------------+
|                                            0 |
+----------------------------------------------+
1 row in set (1.19 sec)

mysql> SELECT get_json_int('{"k1":1, "k2":"2"}', "$.k1");
+--------------------------------------------+
| get_json_int('{"k1":1, "k2":"2"}', '$.k1') |
+--------------------------------------------+
|                                          1 |
+--------------------------------------------+
1 row in set (0.01 sec)


Error Encountered When Running Code with vite-node

Hello,
I'm reaching out to report an issue I've encountered while using vite-node. When I try to execute my code using vite-node, I'm facing an error that prevents the code from running correctly. This issue does not occur when I run the same code with standard Node.js.
Environment

Node.js version: 18+
Vite-node version: Latest
Operating system: Linux
ThirdWeb SDK: Latest

Steps to Reproduce
https://stackblitz.com/edit/stackblitz-starters-b7pyzu?file=index.js
To test:

node index.js : works
npm start or npx vite-node index.js: not works

Actual Behavior
Error: missing revert data in call exception; Transaction reverted without a reason string [ See: https://links.ethers.org/v5-errors-CALL_EXCEPTION ] (data="0x", transaction={"to":"0xfc575B22033dA2d86a52d8167B4fEd375c79f0Ab","data":"0x3b1475a7","accessList":null}, error={"reason":"missing response","code":"SERVER_ERROR","requestBody":"[{\"method\":\"eth_call\",\"params\":[{\"to\":\"0xfc575b22033da2d86a52d8167b4fed375c79f0ab\",\"data\":\"0x3b1475a7\"},\"latest\"],\"id\":43,\"jsonrpc\":\"2.0\"}]","requestMethod":"POST","serverError":{},"url":"https://mumbai.rpc.thirdweb.com/"}, code=CALL_EXCEPTION, version=providers/5.7.2)
    at Logger.makeError (/home/projects/stackblitz-starters-b7pyzu/node_modules/@ethersproject/logger/src.ts/index.ts:269:28)
    at Logger.throwError (/home/projects/stackblitz-starters-b7pyzu/node_modules/@ethersproject/logger/src.ts/index.ts:281:20)
    at checkError (/home/projects/stackblitz-starters-b7pyzu/node_modules/@ethersproject/providers/src.ts/json-rpc-provider.ts:66:16)
    at StaticJsonRpcBatchProvider.eval (/home/projects/stackblitz-starters-b7pyzu/node_modules/@ethersproject/providers/src.ts/json-rpc-provider.ts:642:20)
    at Generator.throw (<anonymous>)
    at rejected (/home/projects/stackblitz-starters-b7pyzu/node_modules/@ethersproject/providers/lib.esm/json-rpc-provider.js:17:65) {
  reason: 'missing revert data in call exception; Transaction reverted without a reason string',
  code: 'CALL_EXCEPTION',
  data: '0x',
  transaction: {
    to: '0xfc575B22033dA2d86a52d8167B4fEd375c79f0Ab',
    data: '0x3b1475a7',
    accessList: null
  },
  error: Error: missing response (requestBody="[{\"method\":\"eth_call\",\"params\":[{\"to\":\"0xfc575b22033da2d86a52d8167b4fed375c79f0ab\",\"data\":\"0x3b1475a7\"},\"latest\"],\"id\":43,\"jsonrpc\":\"2.0\"}]", requestMethod="POST", serverError={}, url="https://mumbai.rpc.thirdweb.com/", code=SERVER_ERROR, version=web/5.7.1)
      at Logger.makeError (/home/projects/stackblitz-starters-b7pyzu/node_modules/@ethersproject/logger/src.ts/index.ts:269:28)
      at Logger.throwError (/home/projects/stackblitz-starters-b7pyzu/node_modules/@ethersproject/logger/src.ts/index.ts:281:20)
      at eval (/home/projects/stackblitz-starters-b7pyzu/node_modules/@ethersproject/web/src.ts/index.ts:292:28)
      at Generator.throw (<anonymous>)
      at rejected (/home/projects/stackblitz-starters-b7pyzu/node_modules/@ethersproject/web/lib.esm/index.js:13:65) {
    reason: 'missing response',
    code: 'SERVER_ERROR',
    requestBody: '[{"method":"eth_call","params":[{"to":"0xfc575b22033da2d86a52d8167b4fed375c79f0ab","data":"0x3b1475a7"},"latest"],"id":43,"jsonrpc":"2.0"}]',
    requestMethod: 'POST',
    serverError: TypeError: Referrer "client" is not a valid URL.
        at _0x40436c (https://stackblitzstartersb7pyzu-okmy.w-credentialless.staticblitz.com/blitz.95086023.js:352:593143)
        at _0x46d452._0x2ea0fe (https://stackblitzstartersb7pyzu-okmy.w-credentialless.staticblitz.com/blitz.95086023.js:352:603878)
        at Object.t.exports.fetch (node:internal/deps/undici/undici:194:308109) {
      [cause]: [TypeError]
    },
    url: 'https://mumbai.rpc.thirdweb.com/'
  }
}

Best regards,

I think this is related to https://github.com/ethers-io/ethers.js/issues/3536
It seems that the skipFetchSetup option has been removed in ethers.js v6 but Thirdweb SDK still requires v5.x. Unfortunately, there is no way to change the skipFetchSetup option value.

@jnsdls we get same error in our Next.js v14 app too.

@RSamaium - I can replicate the error with vite-node. Thanks @hsynaldgrn for the info on skipFetchSetup. We will look into

@MananTank I opened a PR for this https://github.com/thirdweb-dev/js/pull/2085


Configure CNRM for team projects

CNRM needs a service account in the team projects. This needs to be handled by Console when creating/updating the projects.
We need to do:

Create a service account for CNRM in each team project
Add workload identity permissions to the service account
Assign a role to the service account of the form organizations/{org_id}/roles/CustomCNRMRole

See how it's done in the old repo here:
https://github.com/nais/teams/blob/master/gcp-projects/modules/team-projects/main.tf#L52-L69

Fixed in 2757cc6d19afdc236716fcc3b0d09fd87f894ed4


VScodium 1.55.0 not working on darwin

Describe the bug
On macOS 10.14.6, the latest version of the vscodium package is not working. It seems that the codium binary is missing. It should be in Applications/VSCodium.app/Contents, but the directory does only contain these files:
[felix@tycho] $ ls Applications/VSCodium.app/Contents
_CodeSignature    Frameworks    Info.plist    MacOS    PkgInfo    Resources

To Reproduce
Run this on a darwin system:
nix-env -iA nixpkgs.vscodium

Expected behavior
A normal invocation of the program like codium . should work.
Screenshots
n/a
Additional context
Installing the package already hints towards the problem:
installing 'vscodium-1.55.0'
building '/nix/store/3ydfcjy3g98qfgrqqq6rvqdgqvq45bks-user-environment.drv'...
warning: skipping dangling symlink '/nix/store/qpahs85yhjaccbjff6f3vgddmi6khp5p-user-environment/bin/codium'
created 1121 symlinks in user environment

Notify maintainers
@Synthetica9 and @turion are listed as maintainers.
Metadata

system: "x86_64-darwin"
host os: Darwin 18.7.0, macOS 10.14.6
multi-user?: no
sandbox: no
version: nix-env (Nix) 2.3.10
channels(felix): "nixpkgs-21.05pre282548.4c87cb87a2d"
nixpkgs: /Users/felix/.nix-defexpr/channels/nixpkgs

Maintainer information:
# a list of nixpkgs attributes affected by the problem
attribute:
# a list of nixos modules affected by the problem
module:

Unfortunately, like most electron apps, to fix this would require a separate expression for Darwin to build (the file structure of Electron is very different on OSX compared to Windows and Linux).

But was there any significant change between versions <1.55.0 and the current one? Previous versions installed and ran without issue.

The issue here is that the bundled executable is no longer called "code" but "codium" and the generated symlink is broken.  The offending line is:
https://github.com/NixOS/nixpkgs/blob/e5cc06a1e806070693add4f231060a62b962fc44/pkgs/applications/editors/vscode/generic.nix#L78

Ah, sorry. I thought that VSCodium just wasn’t packaged for Mac yet.

the symlink line in the expr is now
      ln -s "$out/Applications/${longName}.app/Contents/Resources/app/bin/${sourceExecutableName}" $out/bin/${executableName}


Add support to track events

Add support for Segment's track method. This is to support a new feature
by Wootric for event-based surveying.
Changes

Add track() method
Refactor identify() method
Add tests

PS: I can give more context but I don't know if you guys have any special
format when creating PRs :)

Tests are passing locally, I tried rebuilding in CI but I don't have permissions :)

Hello -- are you able to give us an ETA on when you will be able to take a look at it? Thanks.

Adding @segment-integrations/destinations for review

Thanks @diegoserranoa! let us take a look at this tomorrow.

@ccnixon Just a friendly reminder to have you or team's 👀 on this PR. 🙏

@ccnixon how do I get the tests to pass? Are they failing because of the new-date dependency?

Hi all -- sorry for the delay here! We'll pick this one back up this week!
@diegoserranoa In the meantime, do you mind pasting the test failure you're getting here?

Hi @tysonmote. I pushed another commit: I removed the newDate dependency and I'm using now the timestamp that the track object has. Tests keep failing though, most of the errors have this description:
The environment you requested was unavailable
https://circleci.com/gh/segment-integrations/analytics.js-integration-wootric/329?utm_campaign=vcs-integration-link&utm_medium=referral&utm_source=github-build-link

Hey @diegoserranoa - It looks like some old creds were left in the circle.yml file. Can you try deleting those two lines on your branch and retrying? Sorry for this test issue, it looks like those are overriding the actual creds we have in Circle.

Specifically SAUCE_ACCESS_KEY and SAUCE_USERNAME

Sure @Peripheral1994! I'll try that. Thanks for the help!

Codecov Report

Merging #13 into master will increase coverage by 0.35%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master      #13      +/-   ##
==========================================
+ Coverage   97.82%   98.18%   +0.35%
==========================================
  Files           1        1
  Lines          46       55       +9
==========================================
+ Hits           45       54       +9
  Misses          1        1

Impacted Files
Coverage Δ

lib/index.js
98.18% <100%> (+0.35%)
:arrow_up:

Continue to review full report at Codecov.

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

Thanks for helping us get this back in shape! I'm going to make a couple config changes in master here that will hopefully get us back on the right track to deploying this ASAP, one moment.

Thanks @Peripheral1994!

@diegoserranoa - Try merging in the changes from #14 - that should get those tests running!

Test passed @Peripheral1994! 🙏 🙌

@diegoserranoa - Perfect! One last question, I see a lot of "LOG: 'Wootric: Warning: Remove survey immediately before deploying or else customers will be surveyed repeatedly.'" - Are these concerning, or just purely artifacts of the test environment?

I dig it! I'll see if I can't get this out tonight, else first thing in the morning. :)

Thanks a lot @Peripheral1994! Let us know if you need more help from our side.

@Peripheral1994 Ready to 🚢 🚀 ? ;-)

Hey @prabhatjha - I just got into the office, this is first in my queue to send out. :)

Hi everyone, this implementation of the track method appears to overwrite the existing properties that may have been included from the identify method to the wootricSettings.properties object. Wouldn't this cause issues for Segment users who expect properties included in identify to be sent to Wootric who also use the track method before the survey is submitted?

Hello @tysonmote @ccnixon @Peripheral1994
While checking the code again, I realized that using the timestamp that comes with the track object is not exactly what we need. I will create another PR soon to make it work like I implemented it before, getting the created_at from the properties. I may also need to add the dependency that I was using.


Ensure sensor_channels not local channels are used when subsetting

work done by @ADCollard

Looks good once you fix code norms!

@CoryMartin-NOAA, the coding norms are fixed but for some reason the eva application test is failing for aircraft.  So I will investigate further.


[Core] Fix ambiguous overload

LGTM (Have no clue what you did but I guess it is on your list to revisit ;-) )

It should solve some build errors, e.g. the ones with the examples in ThunderNanoServices, so we can add them to actions afterwards 😄


refactor(library): convert library sets to lists

Although we want our lists of library items to only contain unique items, it requires each item to be hashable. By definition of mutability, our library item objects are not hashable and thus would be better served being stored in lists.

Codecov Report

Merging #64 (959e3ef) into master (8ddc87d) will decrease coverage by 8.21%.
The diff coverage is 95.00%.

@@            Coverage Diff             @@
##           master      #64      +/-   ##
==========================================
- Coverage   98.32%   90.10%   -8.22%
==========================================
  Files          32       32
  Lines        1730     1728       -2
==========================================
- Hits         1701     1557     -144
- Misses         29      171     +142

Flag
Coverage Δ

integration
?

unit
90.10% <95.00%> (-0.13%)
:arrow_down:

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


Misleading Yoroi Wallet non support information

Update Wallet > Yoroi Wallet > shows "Support for Yoroi will be added in the future." although when we click on "Any Wallet", it works with the Yoroi Wallet. So the information is potentially turning off potential buyers. Either remove Yoroi Wallet, or use the same information as under Any Wallet; or change title to "Any Wallet 'including Yoroi)"

Fixed!


Maps enums to database values before storing in object_changes

Keep consistency between versions with regard to changes and
object_changes and how enum columns store their values.
Before, changes would map the changed attributes enum columns to the database
values (integer values). This allows reifying that version to maintain the
integrity of the enum. It did not do so for object_changes and thus, 0
for non-json columns, and the enum value for json columns would be stored instead.
For the non-json columns, it mapped any non-integer enum value to 0 because
during serialization that column is an integer.  Now this is fixed,
so that object_changes stores the enum mapped value.
Here is an example:
class PostWithStatus < ActiveRecord::Base
  has_paper_trail
  enum status: { draft: 0, published: 1, archived: 2 }
end

post = PostWithStatus.new(status: :draft)
post.published!
version = post.versions.last

# Before
version.changeset #> { 'status' => ['draft', 'draft'] } (stored as [0, 0])

# After
version.changeset #> { 'status' => ['draft', 'published'] } (stored as [0, 1])

Looks good, Chris, thanks!


[$500] mWeb/Safari - IOU - The cursor only starts blinking when I tap inside the amount field

If you haven’t already, check out our contributing guidelines for onboarding and email<EMAIL_ADDRESS>to request to join our Slack channel!

**Version Number:**<IP_ADDRESS>
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL:
Issue reported by: Applause - Internal Team
Slack conversation:
Action Performed:

Navigate to https://staging.new.expensify.com/
Do a manual request using the FAB
Tap inside the amount field

Expected Result:
The cursor should start blinking without the extra tap
Actual Result:
The cursor only starts blinking when I tap inside the amount field
Workaround:
Unknown
Platforms:

Which of our officially supported platforms is this issue occurring on?

[ ] Android: Native
[ ] Android: mWeb Chrome
[ ] iOS: Native
[ ] iOS: mWeb Safari
[ ] MacOS: Chrome / Safari
[ ] MacOS: Desktop

Screenshots/Videos
Add any screenshot/video evidence

https://github.com/Expensify/App/assets/78819774/1fc6e9c6-586b-464a-888c-2ad89b2e87f0
View all open jobs on GitHub
Upwork Automation - Do Not Edit

Upwork Job URL: https://www.upwork.com/jobs/~01acf864d013ffc103
Upwork Job ID:<PHONE_NUMBER>475326464
Last Price Increase: 2023-12-11

The problem arises because iOS Safari restricts programmatically focusing on an input element to prevent the virtual keyboard from loading. You can find more details on this issue at https://bugs.webkit.org/show_bug.cgi?id=195884.
I've raised a bug report at https://bugs.webkit.org/show_bug.cgi?id=266334, proposing a solution to allow programmatically focusing if the "inputmode" is set to "none." If this gets addressed, no further changes will be necessary.
In the meantime, I am actively exploring potential workarounds.
Best regards,
Deepak

Contributor details
Your Expensify account email<EMAIL_ADDRESS>Upwork Profile Link: https://www.upwork.com/fl/fullstackdeveloperdeepak

Contributor details
Your Expensify account email<EMAIL_ADDRESS>Upwork Profile Link: https://www.upwork.com/fl/fullstackdeveloperdeepak

Contributor details
Your Expensify account email<EMAIL_ADDRESS>Upwork Profile Link: https://www.upwork.com/freelancers/~0119f037acfe0172f6

On fresh main 1.4.12-0-364-ge81ed8f4c5 I cannot reproduce the issue on iOS web safari, macOS web and iOS as well.
Please find the videos attached
iOS safari
https://github.com/Expensify/App/assets/18525360/fe11fb79-af10-4976-bd64-ec15054229d3
macOS chrome
https://github.com/Expensify/App/assets/18525360/34c5b8dd-931c-4ecf-9a3f-8cba7cb4d868
iOS
https://github.com/Expensify/App/assets/18525360/41bfbc00-c296-4f94-bd38-9e6693026320

Tagged DB in #vip-vsb to confirm adding to the project.

posted in CS for job pick up

@puneetlath
STATUS
I'm ooo though Jan 03
This is at the beginning. waiting on proposals. I did a call out for CS to pick up (slack link above)

Hello, Im Artem from Callstack and would like to take this issue!

Im not able to reproduce this issue:
https://github.com/Expensify/App/assets/39777589/6a0c9df2-2b58-4cab-8fbd-01021c43721a

@fedirjh are you able to reproduce it? If not, let's close this.

Hm, actually if this is related to expenses, #vip-vsb is the wrong place.  Can move this to #wave5?

Since none of us are able to reproduce, I'm going to go ahead and close it. Anyone - feel free to comment/reopen if you're able to reproduce!


More clear installation instructions

Also, REPL session example. I noticed there's a (comment form in the main namespace, but it seems to be using com.phronemophobic.llama.prompt ns, which doesn't exist.

Also, REPL session example. I noticed there's a (comment form in the main namespace, but it seems to be using com.phronemophobic.llama.prompt ns, which doesn't exist.

It exists on my machine :p. I have a convenience namespace locally for prompts that I use to test things out, but I still haven't figured out what the API should look like yet. I don't consider comment forms to be part of the public API.

Also, REPL session example. I noticed there's a (comment form in the main namespace, but it seems to be using com.phronemophobic.llama.prompt ns, which doesn't exist.

It exists on my machine :p. I have a convenience namespace locally for prompts that I use to test things out, but I still haven't figured out what the API should look like yet. I don't consider comment forms to be part of the public API.

Ha, fair enough - that was the first place I looked at to figure out how to get something going :-)

Ha, fair enough - that was the first place I looked at to figure out how to get something going :-)

That's the idea behind the Overview Guide.

I've incorporated many of the suggestions. Thanks for the feedback!

I've incorporated many of the suggestions. Thanks for the feedback!

Amazing! Always happy to help!


Improved/Updated Documentation

Currently, there is no documentation for Phaser 3 specifically, and the old documentation for Phaser 2.6 is lacking. Specifically, the descriptions of properties/methods don't do a good job of explaining exactly why and how you would use them. Many of the the descriptions are of properties are of the form "A reference to {some phaser interface}." I've created new documentation for a majority of the properties/methods for the Game object, based on the documentation for 2.6. In the new documentation, for each member I describe why you would use it and how you would use it, as well as short code examples showing a use case for that property/method. Is it possible for me to contribute with this documentation, and is there any chance of an updated effort towards documenting Phaser 3 in an attempt to make learning Phaser easier? Thank you.

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

There is plenty of documentation available. Refer to the repo for details and to contribute.

Documentation needs to be provided via PRs to the main repo. If it's extensive, i.e. adds lots of text into the source, then we'll need to extract it out into single files and reference via a jsdoc @tutorial tag to avoid making the code unmaintainable.
Please understand that Phaser 2 wasn't born with documentation, it took many years to build it up and tweak it. Phaser 3 is barely 2 months old and being refined daily.
As it stands there are 6,922 elements in v3 that need documenting (it was a thousand more than this a month ago). Even at a super-fast rate of 1 minute per element (which is highly unrealistic when averaged out), that's still nearly 40 days worth of work, assuming 3hrs per day dedicated to documenting, and no days off.
So yes, if people want to help, we'll gladly accept it via PRs, because it's one hell of a mammoth task.


Python 3.7 dataclasses

I don't know if this is supposed to work. Would be nice. I can try to fix it if you propose the way.
@dataclasses.dataclass
class C(pydantic.BaseModel):
     i:int
c = C(1)
....
RecursionError: maximum recursion depth exceeded

It's not, I haven't really looked into dataclass yet.
I'm not exactly clear on what they do or why they'd be useful with pydantic. Could you explain?

It seems that pydantic offers similar functionality, but dataclass is going to be a standard way how to write value classes in the future. It would be nice, if we can use pydantic for runtime validation dataclasses.

simple solution is to don't use dataclass init method
@dataclasses.dataclass(init=False)
class C(pydantic.BaseModel):
    i:int

but the pydantic's init method does not accept positional arguments, so the code using dataclasses can't start using pydantic easily.

It would be freaking awesome we could use pydantic's validation in Python's dataclasses.

@pawelswiecki sounds good to me, PR welcome.

Using init=False (@dataclasses.dataclass(init=False)) indeed fix maximum recursion issue.
Quick poking around with class defined this way (that is with both @dataclass decorator and inheriting from pydantic.BaseModel) results in an optimistic conclusion: it does work and the object behaves as both dataclass and pydantic's validator. I will possibly try to use this combination in some simple cases. Will report here if there's anything to report.

As a small FYI, there's a backport of dataclasses to Python 3.6: https://github.com/ericvsmith/dataclasses

why is a significant rewrite needed? Seems to me that the functions for validation are there already.

Yes that's a way to do it. It would require support for positional arguments with don't currently work.

I disagree on the point about data classes: I don’t think it will get rich serialization and validation in the core. The standard library is very conservative.
—Paul

On Jul 15, 2018, at 7:23 PM, Majid alDosari<EMAIL_ADDRESS>wrote:
the delta b/w dataclasses and pydantic are: serialization/deserialization, auto schema, and validation. i love pedantic but it seems like it's only a matter of time before dataclasses gets such features. if not, then ya the decorator idea would keep pedantic relevant.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub https://github.com/samuelcolvin/pydantic/issues/178#issuecomment-405126033, or mute the thread https://github.com/notifications/unsubscribe-auth/AAbx5m68gTyvsPKMvxrbrY36HktEim7Wks5uG87VgaJpZM4UBBf7.

hi, I have returned from my vacation yesterday. Sorry for the delay. I wanted to understand the code better. I will finish it tomorrow.

Dataclasses now merged, I'll release a new version of pydantic in a couple of days.

I haven't looked at the code of pydantic, but I guess you don't inherit from dataclasses.dataclass since I'm missing useful features I had expected when I checked https://docs.python.org/3/library/dataclasses.html - fields and asdict. Do you need a hand with that?

we do user standard dataclasses (let's not user inherit here, since we're not talking about class inheritance).
The reason you're not seeing asdict is because the 3.6 backport of dataclasses doesn't implement it.
# python 3.6
from dataclasses import dataclass

@dataclass
class InventoryItem:
    name: str
    unit_price: float
    quantity_on_hand: int = 0

    def total_cost(self) -> float:
        return self.unit_price * self.quantity_on_hand

item = InventoryItem('hammers', 10.49, 12)
item.asdict()
#> AttributeError: 'InventoryItem' object has no attribute 'asdict'

I see. Confusing :p
Keep up the good work! Finally a good use for the typing module ;-)
Constantly coming up with new ways to use pydantic in my projects, it's really fun!

Finally a good use for the typing module

:+1:


fix(options-tile): fix styling of summary and chevron when nesting OptionsTile

Closes #5560
What did you change?
change the selectors for the CSS rules applicable to summary and chevron to use BEM modifiers, instead of looking at parent elements to determine the open and closing states.
How did you test and verify your work?
The effects of the fix are visual, so (manually) compared how the chevron looks like and behaves during opening/closing, verified that the summary is visible on a nested options tile when it is collapsed.

I have read the DCO document and I hereby sign the DCO.

recheck

Hey @reviewthis, I believe we've seen issues with the DCO signatures when the user is different between the commit and the user opening the PR.

@reviewthis If you check the commit history above, it looks like the change was implemented from another account. That user ID is the one that needs to sign the DCO, but also if that’s incorrect, it may be easier to open a new PR, ensuring your changes are tied to the correct user / email ID.

@elycheea @matthewgallo Thanks for looking into this PR. I created it with my original gh account (@reviewthis), where I seem to have changed the username at some point in the past. In retrospect, seems not to have been a good idea.
I would close this PR, and create a new one using my new account (@markusnosse), hoping that this time things will work out.

Same PR from "new" account: #5609


wrap getDisplayMedia

@dagingaa can you take a look? Only going to wrap the new GDM...

tagged as v3.0.2


Single Difficulty

Describe your bug here.
Im making a mod and everytime I open freeplay the difficulty is always set to normal instead of the 1 difficulty
Command Prompt/Terminal logs ()
No response
Are you modding a build from source or with Lua?
Lua
What is your build target?
Windows
Did you edit anything in this build? If so, mention or summarize your changes.
I first only tried adding the difficulty with 1 chart with the same difficulty. But that didnt work. But yes

Works as intended
There could be a feature in the future, where the game would remove empty difficulties, but for now, I don't have that in plans.


There is no bit file generated for both EOS S3 and PP3 device.

With the latest build, there is no bit file generated for either EOS S3 device or PP3 device. Without the bit file, I can't validate the output using PP3 HW.

@anthonyle-ql I've created a PR with a fix to the wrapper scripts. This should solve the problem: https://github.com/QuickLogic-Corp/symbiflow-arch-defs/pull/567

The latest Symbiflow build generates bit file for PP3 and EOS S3 devices.


Visual clue missing that search results are there on small screens

Search results on small screens are not in viewport. There should be a visual clue that search has finished and results are in.
Action: find out if Typesense JS has an event listener for "search results are in"

Typesense JS has indeed an event listener and there is now visual clue.


Signup view completed

completed the sign up view, looks like figma design

Lgtm I'll add additional styling once we finish with the rest of the views


fbcp-block: remove fbcp from pihole and add balenablocks/fbcp

Use the balena fbcp block to handle connected screens and avoid
running an additional service in the Pi-Hole container.
https://github.com/klutchell/balena-pihole/issues/55
Change-type: major
Signed-off-by: Kyle Harding<EMAIL_ADDRESS>

@rahul-thakoor right now PADD is piped to /dev/tty1. Is that still the way to do it with this block?
/usr/src/app/padd.sh 2> /dev/null > /dev/tty1
I'm trying to figure out if my screen is white cause nothing is being sent to the framebuffer, or if it's cause my screen is not working with kedei-v63-mpi3501 like I think it should. I may have to try my other brand of screen.

@rahul-thakoor right now PADD is piped to /dev/tty1. Is that still the way to do it with this block?
/usr/src/app/padd.sh 2> /dev/null > /dev/tty1
I'm trying to figure out if my screen is white cause nothing is being sent to the framebuffer, or if it's cause my screen is not working with kedei-v63-mpi3501 like I think it should. I may have to try my other brand of screen.

hey @klutchell i'm trying this out but it seems that the pihole service keeps crashing looping?
anything i'm missing?

hey @klutchell i'm trying this out but it seems that the pihole service keeps crashing looping?
anything i'm missing?

16.01.21 20:25:20 (+0400)  pihole  https://mirror1.malwaredomains.com/files/justdomains
16.01.21 20:25:20 (+0400)  pihole  ::: Testing pihole-FTL DNS: sudo: unable to resolve host 12fb630: Name or service not known
16.01.21 20:25:20 (+0400)  pihole
16.01.21 20:25:20 (+0400)  pihole  dnsmasq: unknown interface eth0
16.01.21 20:25:20 (+0400)  pihole  [cont-init.d] 20-start.sh: exited 1.
16.01.21 20:25:20 (+0400)  pihole  [cont-finish.d] executing container finish scripts...
16.01.21 20:25:20 (+0400)  pihole  [cont-finish.d] done.
16.01.21 20:25:20 (+0400)  pihole  [s6-finish] waiting for services.
16.01.21 20:25:20 (+0400)  pihole  [s6-finish] sending all processes the TERM signal.
16.01.21 20:25:23 (+0400)  pihole  [s6-finish] sending all processes the KILL signal and exiting.
16.01.21 20:25:24 (+0400) Service exited 'pihole sha256:57173841ae8f0b356bc755eab2da7347dd9d2b9db

16.01.21 20:25:20 (+0400)  pihole  https://mirror1.malwaredomains.com/files/justdomains
16.01.21 20:25:20 (+0400)  pihole  ::: Testing pihole-FTL DNS: sudo: unable to resolve host 12fb630: Name or service not known
16.01.21 20:25:20 (+0400)  pihole
16.01.21 20:25:20 (+0400)  pihole  dnsmasq: unknown interface eth0
16.01.21 20:25:20 (+0400)  pihole  [cont-init.d] 20-start.sh: exited 1.
16.01.21 20:25:20 (+0400)  pihole  [cont-finish.d] executing container finish scripts...
16.01.21 20:25:20 (+0400)  pihole  [cont-finish.d] done.
16.01.21 20:25:20 (+0400)  pihole  [s6-finish] waiting for services.
16.01.21 20:25:20 (+0400)  pihole  [s6-finish] sending all processes the TERM signal.
16.01.21 20:25:23 (+0400)  pihole  [s6-finish] sending all processes the KILL signal and exiting.
16.01.21 20:25:24 (+0400) Service exited 'pihole sha256:57173841ae8f0b356bc755eab2da7347dd9d2b9db

@rahul-thakoor
dnsmasq: unknown interface eth0
If you're using wifi make sure to set DNSMASQ_LISTENING=wlan0 and INTERFACE=wlan0.

@rahul-thakoor
dnsmasq: unknown interface eth0
If you're using wifi make sure to set DNSMASQ_LISTENING=wlan0 and INTERFACE=wlan0.

@rahul-thakoor I suspect that this block does not support my cheap mpi3501-based screen and that's why the piscreen overlay works but this block does not. I will try my other screen when I get a chance, but it's my primary DNS at the moment so I don't want to do too much testing on that device.
That being said, I wonder if it's worth breaking support for some screens just to add support for this block? Maybe there's a case where I move the existing fbcp logic to a separate container and keep the dtoverlay requirement.

@rahul-thakoor I suspect that this block does not support my cheap mpi3501-based screen and that's why the piscreen overlay works but this block does not. I will try my other screen when I get a chance, but it's my primary DNS at the moment so I don't want to do too much testing on that device.
That being said, I wonder if it's worth breaking support for some screens just to add support for this block? Maybe there's a case where I move the existing fbcp logic to a separate container and keep the dtoverlay requirement.

It works @klutchell

It works @klutchell


Mod Options Menus crashing my game

Any mod, including this one, that has an options menu is crashing my game before I can even get to the main menu on 1.42.  Anybody else?

same here

Community Patch won't work for 1.4.2.
#372 needs to be solved in order to even load the game correctly.

Slightly different issue, but related. I can get to the main menu, but clicking "Community Patch Options" instantly crashes the game.


Fix for https://github.com/mwrock/boxstarter/issues/293

Hi @jberezanski,
Please consider pulling in a fix I'm proposing to address an issue surfaces when using the Chocolatey packages you've created with BoxStarter. The details of the issue are discussed here: https://github.com/mwrock/boxstarter/issues/293.
There isn't an easy fix on the BoxStarter side (as I understand it anyway) so I'm looking to try and fix the issue on the Chocolatey package side.
Kind regards,
Colin

I don't like the idea of explicitly importing the module, because:

it won't be clear, to a casual reader, why it is necessary at all, compared to all other packages which use Chocolatey extensions;
it couples the KB packages to undocumented, non-contractual, internal implementation details of two separate components:
2a) Chocolatey - that the host keeps extensions in $Env:ChocolateyInstall\extensions
2b) chocolatey-windowsupdate.extension - that the extension is implemented as a script module and its entry point is a .psm1 (as opposed to .psd1, used by most PowerShell modules).

Which is why I won't merge it as-is.
However, I would be willing to pursue an alternative way of achieving separation from other "rogue" implementations of Install-WindowsUpdate and other cmdlets: using module-qualified names. For example:
chocolatey-windowsupdate.extension\Install-WindowsUpdate -Id ...

This does not increase coupling very much (it only requires that the cmdlet is a real cmdlet, not an alias, which is a non-issue for me).
Caveat - I don't have time to test it myself, so I'd like to ask you to do that.

Hi jberezanski,
I understand and fully agree with you're concerns. When I first submitted the change I thought as much. My personal feeling is that the bug in in the Boxstarter side and not in the packaging side.
I'm happy to look into your suggestion of using a fully qualified name. Looking through the Boxstarter code, that may be an option to work around this issue actually. I'll re-look at doing something Boxstarter first - we may not need to do anything here. Otherwise, I'll take a look at what you suggested.
Colin

D'oh, the module is actually called chocolatey-windowsupdate (without .extension).
I may pick it up, but I'd rather finish the work on chocolatey-visualstudio.extension first.


Fix getInputStream() loop in jdk http plugin

Fix getInputStream() loop in jdk http plugin
There is a phenomenon in which getInputStream() calls are tracked several times when RestTemplate is used.

Applied to version 3.0.0-SNAPSHOT.


Create auto-generated reference docs for the Kubeflow/Pipelines CLI

/assign @vicaire

Discussed with @IronPan today. We'll shelve this task for the moment, since the CLI is not up to date. The primary ways to use Kubeflow Pipelines are the UI, the Python SDK/DSL, and the REST API.
/assign
/unassign @vicaire
/close


ovirt-dr validate does not work with a fresh install 4.3 environment due to default enabled "delete protection" for hosted-engine VM

When executing "ovirt-dr validate" the script stops with error.
The error is as per:
# ./ovirt-dr validate
[Validate Mapping File] Validate variable mapping file for oVirt ansible disaster recovery
[Validate Mapping File] Var File: '/root/dr-ansible-manual/ovirt.disaster-recovery/files/mapping_vars.yml'
[Validate Mapping File] Please provide password for the primary setup: .
[Validate Mapping File] Please provide password for the secondary setup: .
[Validate Mapping File] mapping dr_affinity_label_mappings is empty in var file
[Validate Mapping File] Finished validation for 'dr_network_mappings' for primary setup with success.
[Validate Mapping File] Finished validation for 'dr_cluster_mappings' for key name 'primary_name' with success.
[Validate Mapping File] Finished validation for 'dr_affinity_group_mappings' for key name 'primary_name' with success.
[Validate Mapping File] Finished validation for 'dr_network_mappings' for secondary setup with success.
[Validate Mapping File] Finished validation for 'dr_cluster_mappings' for key name 'secondary_name' with success.
[Validate Mapping File] Finished validation for 'dr_affinity_group_mappings' for key name 'secondary_name' with success.
[Validate Mapping File] Failback process does not support delete protected VMs. The 'secondary' setup contains the following vms: '['HostedEngine']'
[Validate Mapping File] Failed to validate variable mapping file for oVirt ansible disaster recovery

Therefor the script does not work with a fresh install 4.3 environment due to default enabled "delete protection" for hosted-engine VM.
It is not possible to remove the delete protection from the DR environment. Therefore this is a critical blocker as the script does not work.
Tested with 4.3.6.

Hi, Can you please submit a bug using bugzilla if it is still relevant?
https://bugzilla.redhat.com/enter_bug.cgi?product=ovirt-engine
This repository is now in read-only mode.

Hi, it is still relevant unless fixed. Can you confirm fixed? Else
please do the needful.
Regards,
Tony Pearce
On Wed, 28 Oct 2020 at 19:57, Eyal Shenitzky<EMAIL_ADDRESS>wrote:

Hi, Can you please submit a bug using bugzilla if it is still relevant?
https://bugzilla.redhat.com/enter_bug.cgi?product=ovirt-engine
This repository is now in read-only mode.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/oVirt/ovirt-ansible-disaster-recovery/issues/79#issuecomment-717885291,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AGIUMGCDDWMLDYQ6MMUQFWLSNABK3ANCNFSM4J3WOSAQ
.

Development moved to https://github.com/ovirt/ovirt-ansible-collection If this is still relevant, please reopen there.


Foundation libraries don't always work

Even when built in LTS environment. Backtrace goes smth like this:
Thread 1 (Thread 0x7fea654dd340 (LWP 31116) "app"):
#0  0x00007fea655c691c in read () from /lib64/libc.so.6
#1  0x00007fea6555a1fa in _IO_file_underflow () from /lib64/libc.so.6
#2  0x00007fea6555b402 in _IO_default_uflow () from /lib64/libc.so.6
#3  0x00007fea6554e9fa in _IO_getline_info () from /lib64/libc.so.6
#4  0x00007fea6554d9e6 in fgets () from /lib64/libc.so.6
#5  0x0000555c1641ceba in ldb_monitor ()
#6  0x0000555c16417e6a in ?? ()
#7  0x0000555c16418027 in lose ()
#8  0x0000555c1642850c in sigill_handler ()
#9  0x0000555c16418a43 in ?? ()
#10 <signal handler called>
#11 0x00007fea6357b9c8 in utils::io::ostream::Buffer::Buffer() () from /tmp/.mount_alien-iTvxcQ/usr/lib/libfilament.clawed.so
#12 0x00007fea6349640e in _GLOBAL__sub_I_Log.cpp () from /tmp/.mount_alien-iTvxcQ/usr/lib/libfilament.clawed.so
#13 0x00007fea65866afe in call_init () from /lib64/ld-linux-x86-64.so.2
#14 0x00007fea65866be4 in _dl_init () from /lib64/ld-linux-x86-64.so.2
#15 0x00007fea6560a0ed in _dl_catch_exception () from /lib64/libc.so.6
#16 0x00007fea6586ae0c in dl_open_worker () from /lib64/ld-linux-x86-64.so.2
#17 0x00007fea6560a090 in _dl_catch_exception () from /lib64/libc.so.6
#18 0x00007fea6586a63a in _dl_open () from /lib64/ld-linux-x86-64.so.2
#19 0x00007fea65813248 in dlopen_doit () from /lib64/libdl.so.2
#20 0x00007fea6560a090 in _dl_catch_exception () from /lib64/libc.so.6
#21 0x00007fea6560a14f in _dl_catch_error () from /lib64/libc.so.6
#22 0x00007fea65813989 in _dlerror_run () from /lib64/libdl.so.2
#23 0x00007fea658132d6 in dlopen () from /lib64/libdl.so.2

Backtrace is from Gentoo machine. It seems to work fine across different Manjaro machines though.

It also works on bare Linux Mint 19 Xfce on LiveUSB. Maybe this is related to processor architecture. Foundation libraries built against AVX instruction set and older processors could exhibit this behavior.

Also, one of the reason SIGILL is signalled - instruction is not recognized by CPU, which indirectly supports the theory about processor being too old.

I guess, at some point I need to decide where AVX is really giving any performance boost. According to latest Steam Hardware Survey ~95% of gamer CPU should support it. On the other hand, Filament requires OpenGL 4.1 anyway which is available in hardware around the same time AVX made its hardware debut.

Apparently, there are more or less recent  (~2017) CPU without AVX like Pentiums and Celerons, although looks like even those are getting AVX included as of late.


Errors in the hindi translation of community and contributors conference pages

Actual Behaviour

There are some errors as well as some missing translations for community and contributor conference pages.
Expected Behaviour

These errors needs to be resolved and missing translations need to done.
Screenshots of the issue

Would you like to work on the issue?
YES

@montoyamoraga @limzykenneth Can this be assigned to me ☺

Yes, please go ahead with a fix.

Hello, Dear @limzykenneth, I am interested in working as a GSoD student and I want to contact you regarding Internationalization improvements of p5.js website but I don't find your contact information. Please provide your email ID.
Thank You!

closed via #1004