adding dark mode

there will be a field(symbol) on right top corner for changing the mode of web to dark and again back to normal.
useful for the user as it help the user to use it and see content in better way and also useful for website as it gives a different look and experience.
using dark mode help user to-
Reduces eye strain
Gives a productivity boost
Saves battery life

please assign this to me

Dark Mode: Optional dark mode for better usability in low-light environments.
It makes a better look for the website also.
I am GSSoC Contributor .
kindly @4darsh-Dev ,assign me this task to start work on it

this issue has already assigned , in a previous issue which is similar to this.


Use match statements to avoid runtime errors

Refactor to use match statements to avoid errors appearing only at runtime instead of being caught by the compiler.
In both cases I found invalid tags should be caught when parsing from u8, so the error branches would never be reached anyway.

bors r+

bors r+


[5.4] Faster implementation for Arr::crossJoin()

Follow-up to #19236. ping @JosephSilber
Benchmarks, for 1000 iterations:
Arr::crossJoin([1, 2], ['a', 'b'], ['I', 'II', 'III']);

current: 429 ms
new: 30 ms

Arr::crossJoin([1, 2], ['a', 'b', 'c']);

current: 205 ms
new: 18 ms

props Serg for this implementation. (note I removed the array_filter line)
Also added a few tests to reinforce BC.

Changed tests to assertSame for strict array comparisons. This implementation's results have the same internal ordering as previous code.

👍
"Your reminder that building arrays with reduce, while fun, is accidentally quadratic."
https://twitter.com/AirspeedSwift/status/627469657264553984
(This is about Swift but the same concept applies here as well)

I just ran some quick'n'dirty tests, this new implemention seems to be O(n), and it seems the previous implementation was also O(n).
So the new implementation is just constantly faster :)


Error: Path must be a string. Received undefined 2

Hi,
This issue (#536) is still present. I guess it's because commander is trying to parse the first argument to a path, but I think not giving a path as first argument of the program is wrong. A packaged program should be run exactly the same way as an un-packaged one.
What do you think ?
EDIT: commander issue

This is not a bug in Electron Packager itself. The behavior you describe is how Electron works internally.
To recap, when your Electron app's main script consists of only:
console.log(process.argv)

In development mode (npm start in the electron-quick-start repo), it prints out:
[ '/tmp/electron-quick-start/node_modules/electron/dist/electron', '.' ]

When it's packaged, it prints out:
[ '/tmp/electron-quick-start/electron-quick-start-linux-x64/electron-quick-start' ]

This is because npm start runs electron .. What you should do is use app.isPackaged to determine whether you need to change process.argv before passing it to commander.


TOUCHR crack not working

Hey man. So I downloaded your crack for the touchr app and it's not working on iOS 10, I went and purchased the developers license, but I can't find a way to get rid of the crack. Tried uninstalling and reinstalling multiple times, tried looking in the file system and cleaned with icleaner. Still says your name next to the license. If you could let me know how to delete it that'd be amazing. Here is my email<EMAIL_ADDRESS>

Delete SuperDRM


fix: edit button accessibility

The type of this PR is: Fix

Description
This is a fix to my previous PR as the Clickable component was causing unexpected behavior during QA. This is an alternative approach.

What was the unexpected behavior?

What was the unexpected behavior?

The Clickable edit button is nested inside a Radio, and when the user clicked on the radio button, it would trigger the edit modal to pop up. I didn't have time to look into it in depth yesterday, but I can do that today!


Polygon is not add all the points

After drawing a polygon is has only one point in the array.

The problem was related to how the polygon data was built.
Not we are flat the polygon data before update the state.


2 prop types

interface ReadOnlyProps

state: StateDef

interface ActionProps

actions:
state: StateDef

This allows us to be more explicit about the role that the functional component is to play...

After thinking about this more, i came up with the following:
interface ActiveProps {
  actions: ActionsDef;
  state: StateDef;
}

interface PassiveProps {
  state: StateDef;
}

i believe this is a reasonable approach to helping understand a components role:

Active:  this component uses actions to update the state
Passive:  this component only reads the state

??


Update zio-interop-reactivestreams to 1.3.9

Updates dev.zio:zio-interop-reactivestreams from 1.3.5 to 1.3.9.
GitHub Release Notes - Version Diff
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

Ignore future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "dev.zio", artifactId = "zio-interop-reactivestreams" } ]

labels: library-update, early-semver-patch, semver-spec-patch, commit-count:1

Superseded by #109.


Task watchdog got triggered

Hi, my ESP32 DevKit C v2 is bootlooping when I try to use the example audio source. I was first trying to connect to a Creative Stage Air, and now I'm trying my WF-XB700 buds. I'm using PlatformIO on Windows 11, with (I suppose) the current main branch.
This is the log with verbosity 5:
ets Jun  8 2016 00:22:57

rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0018,len:4
load:0x3fff001c,len:1044
load:0x40078000,len:10124
load:0x40080400,len:5828
entry 0x400806a8
[D][BluetoothA2DPSource.cpp:111] BluetoothA2DPSource(): BluetoothA2DPSource,
[D][BluetoothA2DPSource.cpp:154] start(): start,
[D][BluetoothA2DPSource.cpp:172] start_raw(): start_raw,
[D][BluetoothA2DPCommon.cpp:113] get_last_connection(): get_last_connection
[D][BluetoothA2DPCommon.cpp:137] get_last_connection(): => 00:00:00:00:00:00
[D][BluetoothA2DPSource.cpp:250] bt_app_work_dispatch(): bt_app_work_dispatch event 0x0, param len 0
[D][BluetoothA2DPSource.cpp:301] bt_app_task_handler(): bt_app_task_handler, sig 0x1, 0x0
[D][BluetoothA2DPSource.cpp:527] bt_av_hdl_stack_evt(): bt_av_hdl_stack_evt evt 0
[I][BluetoothA2DPCommon.cpp:255] set_scan_mode_connectable(): set_scan_mode_connectable true
[I][BluetoothA2DPSource.cpp:559] bt_av_hdl_stack_evt(): Starting device discovery...
[D][BluetoothA2DPCommon.cpp:171] clean_last_connection(): clean_last_connection
[D][BluetoothA2DPCommon.cpp:142] set_last_connection(): set_l[It_clneecothn: PS:00c0.cp0:069]0bt_D][_lup_oallA2Dk(): Dn.cove1y s art_las
_connection(): no change!
[I][BluetoothA2DPCommon.cpp:207] log_free_heap(): Available Heap: 136968
[I][BluetoothA2DPCommon.cpp:29] disconnect(): disconect a2d: 00:00:00:00:00:00
isDatBlueeoethA20x0o mor.cmp:e42]1se:n50astbc_nne_wook_d:scaech(l: tt_opn_ction
t_ap[Bltatoothn2DPCommog.0p1:10x] set_last_ctooecAion(S:uro chanpe62
_f[ee[hlup():thv2aPSoulc Hcpp:5996 00rhdlrnst av c, e[t [Bxuetoo[h]2BPComtoo.chA:2DPS lrge.rpe_59a] ): Aeai_ablr_Htape_13l80a
cess_user_state_callbacks(): process_user_state_callbacks ESP_A2D_CONNECTION_STATE_EVT: Disconnected
[E][BluetoothA2DPSource.cpp:643] bt_app_av_sm_hdlr(): bt_app_av_sm_hdlr invalid state 16711680
Guru Meditation Error: Core  0 panic'ed (LoadStoreError). Exception was unhandled.
Core 0 register dump:
PC      : 0x40090a66  PS      : 0x00060633  A0      : 0x8008f97f  A1      : 0x3ffdbda0
A2      : 0x400d15a0  A3      : 0x0000cdcd  A4      : 0xb33fffff  A5      : 0x00000001
A6      : 0x00060620  A7      : 0x0000abab  A8      : 0x0000cdcd  A9      : 0x3ffdbda0
A10     : 0x00000003  A11     : 0x00060623  A12     : 0x00060620  A13     : 0x3f401032
A14     : 0x3f401020  A15     : 0x3f400131  SAR     : 0x00000004  EXCCAUSE: 0x00000003
EXCVADDR: 0x400d15a0  LBEG    : 0x400014fd  LEND    : 0x4000150d  LCOUNT  : 0xfffffffb

ELF file SHA256:<PHONE_NUMBER>000000

Backtrace: 0x40090a66:0x3ffdbda0 0x4008f97c:0x3ffdbdd0 0x400d1b10:0x3ffdbe10 0x400d16a9:0x3ffdbe50 0x4008fc3a:0x3ffdbe70
  #0  0x40090a66:0x3ffdbda0 in uxPortCompareSet at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/freertos/tasks.c:4560
      (inlined by) vPortCPUAcquireMutexIntsDisabledInternal at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/freertos/portmux_impl.inc.h:86
      (inlined by) vPortCPUAcquireMutexIntsDisabled at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/freertos/portmux_impl.h:98
      (inlined by) vTaskEnterCritical at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/freertos/tasks.c:4201
  #1  0x4008f97c:0x3ffdbdd0 in xQueueGenericReceive at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/freertos/queue.c:2520
  #2  0x400d1b10:0x3ffdbe10 in BluetoothA2DPSource::bt_app_task_handler(void*) at .pio\libdeps\esp32dev\ESP32-A2DP\src/BluetoothA2DPSource.cpp:300
  #3  0x400d16a9:0x3ffdbe50 in ccall_bt_app_task_handler at .pio\libdeps\esp32dev\ESP32-A2DP\src/BluetoothA2DPSource.cpp:56 (discriminator 1)
  #4  0x4008fc3a:0x3ffdbe70 in vPortTaskWrapper at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/freertos/port.c:355 (discriminator 1)

Rebooting...

I don't have an external debugger, but with some serial prints I was able to confirm that everything in the start function was executed, so the error seems to happen somewhere after executing BluetoothA2DPSource::start.
Any help would be much appreciated! (And if you need different logs, I will of course provide them.)

What development environment are you using and more important which Arduino ESP32 Version Number ?

I was getting the error for the bt_music_sender example. I'm on vacation now so I tried it again on my MacBook, and for whatever reason it works now. I probably misconfigured something after all, even though I did follow the wiki page '^^
Sadly, the watchdog fix from 6207f7b4ff564033de807306fe00c95d5f89790c doesn't seem to work for me, the watchdog still seems to get triggered.
E (83102) task_wdt: Task watchdog got triggered. The following tasks did not reset the watchdog in time:
E (83102) task_wdt:  - IDLE0 (CPU 0)
E (83102) task_wdt: Tasks currently running:
E (83102) task_wdt: CPU 0: btController // <-- mostly BtA2dSourceT
E (83102) task_wdt: CPU 1: IDLE1
E (83102) task_wdt: Aborting.
abort() was called at PC 0x40157ba8 on core 0

In- or decreasing the delay in the loop didn't help either. I'm still using the bt_music_sender example. (Should I create a new issue for this?)

I can reproduce your issue. Running the sketch from Arduino is a little bit more stable. I dont have a final solution yet but I suggest to just deactivate the watchdog on core1 by calling disableCore0WDT(); in the setup

In the case of the A2DP audiokit example, the FFT write()  is called in the A2DP data callback which runs on the BT core maxing it out so the IDLE task gets no heartbeat time and fires the watchdog timer.  If anything it's letting you know you are at 100% on that core.
Disabling the watchdog timer does make the problem disappear, but I'm not sure it fixes it.
What does fix it is offloading the incoming data stream into a buffer and picking it up in loop()
This may only apply to sketches where there is nothing in the loop.  "loop()" is executed (by default) on core 0, while the BT, Wifi et.al. go to Core 1.
The tricky part of off loading via buffers is that you have two cores.    The elegant solution would be to hand this off to RTOS and dispatch Work items to the loop task.  I might try simple mutex's or atomics first :)

Yes.  It was 1.2 millis.  1200ish uS.  For a buffer length of 4096 I should have about 21 milliseconds.  That was "bucketing" the bins on a fixed log scale, Then slotting the magnitudes with another fixed log scale to give 8 pixel output per band.  Updating 256LED and writing them on the wire.
I tried to move to the A2DPStream and use the StreamCopy to write it to the FFT in the loop, but it produces garbage from the buffer traffic compared to the number of FFT results generated, something is very, very wrong.

I would recommend to stick with the callback interface which is much more efficient. You can just call write() on the fft sink object.
I tried to google the topic of log scale binning and came to the conclusion that this is complicated! And I did not find any easy implementation in C++

Log binning - hobby style.
I don't care below 40Hz drop it.  I don't care over 14kHz drop that.
So I have ~14kHz range starting at 40.  What do I need to multiple 40 by such that on the 32 iteration it will be approximately 14kHz.  Turns out about 1.2 (aka log.12).  No more science or phsyco-acoustics involved :D
On log binning the amplitude, I tried the same, but it didn't quiet work.  I pinged my brother whole told me it should log3 or log6 for audio DB scale.  log6 didn't work, log3 has promise and I was just narrowing it in when the flashing groups of LEDs caused by buffer corruption led me to head off down that route first.
It all comes because humans do not experience sound linearly.  Neither in volume or in pitch.  Most of the sound that interests us is in the lower half of our range.  So scaling the "frequency band per bin" to get wider and wider at the top makes sense.
I didn't do any computing, I used a spreadsheet and stored the fixed log values as constants.  No point calculating that every loop.
I'll try the event handler again.  The trouble is it runs in the BT task context.  It will certainly make the concurrency issues with buffers go away, but I know the margin in there is slim.  Maybe after I optimised a few things, made some thing inline, told Gcc to unroll the for loops etc.  I can get past the watchdog.... or... just disable it.

So, after going and RTFM a bit, I managed to fix this.
Sticking to the relevant, to this ticket, part if you absolutely need to offload the FFT and it's result callback to another core, the following works for me.
`// Write data to AudioKit in callback
// CORE 0
void read_data_stream(const uint8_t *data, uint32_t length) {
// Expect a lazy consumer who doesn't care about losing data
// And a producer much less impressed with being blocked
if(xStreamBufferSpacesAvailable(xStreamBuffer) < length) {
return;
}
xStreamBufferSend(xStreamBuffer, data, length, 0);
}
// CORE 1
void fft_led_task(void* args) {
while(1) {
size_t recv = xStreamBufferReceive(xStreamBuffer, &data, AUDIO_BUFFER_SIZE, 100);
fft.write((const uint8_t*)&data, recv);
}
}`
Init code:
`TaskHandle_t consTask;
StreamBufferHandle_t xStreamBuffer;
const size_t xStreamBufferSizeBytes = 8192, xTriggerLevel = 4096;
// Create a stream buffer that can hold xStreamBufferSizeBytes bytes.  The memory used to hold
// both the stream buffer structure and the data in the stream buffer is
// allocated dynamically.
xStreamBuffer = xStreamBufferCreate( xStreamBufferSizeBytes, xTriggerLevel );
if( xStreamBuffer == NULL ) {
// There was not enough heap memory space available to create the
// stream buffer.
Serial.println("Faled to create stream buffer, bye bye");
vTaskDelete(NULL);
}
xTaskCreatePinnedToCore(fft_led_task, "FFT_LED_Task",4096, NULL, 10, &consTask, 1);`
Working fine.  Just need to continue my mathematically illiterate and blind fumbling to tune my analyser display.

The issue with the watchdog is related to the ESP 1.0.6.
We are currently on version 2.0.5, so please stop using this old release...


[QUESTION] gandlf: command not found

Environment information
 gandlf: command not found
GaNDLF version, OS, and any other relevant information.
GaNDLF version: 0.0.20
OS: Windows
How did you install GaNDLF
Please provide all steps followed during installation.
pip install gandlf
Dataset description
Describe the data (radiology/histology/so on, dimensions, etc.) with as much detail as possible.
Radiology data with dimension 5125121 for classification task
Describe your question/problem
A clear and concise description of what issue you are facing.
When the gandlf run command is executed, error message as  'gandlf: command not found' is received.
However if gandlf_run (underscore between gandlf and run) is used then code runs as expected.

Thanks foe the question!
The gandlf ABC routines are only available from the version 0.1.0 and later (which as of today is the current master branch and not tagged). You should be able to run the previous commands (i.e., gandlf_run).


Errors in repeated use

Shortcut key invalidation

Can I have more detailed information? What does it mean by 'key invalidation'?

Sorry，The shortcut key cannot be used

If 'repeated use' means inputting same shortcut in series while control keys are down, I guess it may be related with CJKV input source handling?

https://github.com/utatti/kawa#for-cjkv-input-sources

Can you please check if it happens with non-CJKV inputs, such as U.S.?

Yes，I used Janpan input source and Chinese

Yes, it's a known issue of CJKV sources, to workaround macOS bug. Please input one shortcut per change.

thx very much


Feature: Point System

Description
The point system keeps track of the level progression and saves the scores.

The game designer will create the point manager & assign it to the correct prefabs

Functional Requirements

[ ] It should be able to track the current level
[ ] It should be able to keep track of the current score
[ ] It should be able to set the threshold per score grade
[ ] It should be able to translate the eventual score into a grade

Acceptance Criteria

[ ] It should use a ScriptableObject
[ ] It should use a serialised structs for saving the data per level

Dependencies
None
Definition of Done

[ ] Follows the naming conventions
[ ] Follows the coding conventions
[ ] Meets the acceptance criteria
[ ] Pull request has been opened

Point tasks of other issues are cannibalised by this task!

The level data contains a reference type, so the level data is a serialised class


Add Polish localization - Setup

This is a part of the initial Polish localization - see: https://github.com/kubernetes/website/pull/18419

/milestone 1.17-pl.1

/hold
pending approval & merge for #18419. Once that merges, it's OK to /unhold
People can /lgtm (for localization review) and /approve, even whilst this is held.

/hold cancel

/approve

/language pl


Add new mq client. Adapt parser and consumer to new mq client.

LGTM, probably need to test it a bit before production

It's work in progress, almost done. We have done the testing in different phases, connect/disconnect mq/postres to see how it reconnect and continues the flow.


Azure Web App free TLS cert is not supported by AZ CLI when the Web App has been deployed in a different Resource Group than the App Service Plan

This article should be updated including technical limitations:
https://github.com/Azure/azure-cli/issues/9972

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

ID: cc2ee874-df45-1de2-1b30-1fd75c7fd709
Version Independent ID: ee181722-8386-9842-407f-d0549012d2e9
Content: Add and manage TLS/SSL certificates - Azure App Service
Content Source: articles/app-service/configure-ssl-certificate.md
Service: app-service
GitHub Login: @cephalin
Microsoft Alias: cephalin

@giovannifl We are checking this and will get back to you.

Hi @giovannifl, I'll update the doc to call this out more explicitly but in the following note, webspace is the app service plan, not the app service.

A certificate uploaded into an app is stored in a deployment unit that is bound to the app's resource group and region combination (internally called a webspace). This makes the certificate accessible to other apps in the same resource group and region combination.

Apologies for the confusion.

Hi @RyanHill-MSFT ,
I understand your comment but az webapp config ssl create requires the Web App name and its Resource Group name. As a result, if the Web App is deployed in a different resource Group than the App Service Plan, az webapp config ssl create fails with the following error:
ERROR: Not Found({"Code":"NotFound","Message":"Cannot find Certificate with name admin-dashboard.dev.keyless.io.","Target":null,"Details":[{"Message":"Cannot find Certificate with name "},{"Code":"NotFound"},{"ErrorEntity":{"ExtendedCode":"51004","MessageTemplate":"Cannot find {0} with name {1}.","Parameters":["Certificate",""],"Code":"NotFound","Message":"Cannot find Certificate with name ."}}],"Innererror":null})
Note: the TLS cert is properly created
https://docs.microsoft.com/en-us/cli/azure/webapp/config/ssl?view=azure-cli-latest#az_webapp_config_ssl_create
In my opinion, one way to fix this could to update that command to also provides the App Service Plan name and its Resource Group.
Note: From Azure Portal it is possible to generate and assign a TLS cert to a Web App hosted in a different Resource Group than its App Service Plan Resource Group without any issue

Note: From Azure Portal it is possible to generate and assign a TLS cert to a Web App hosted in a different Resource Group than its App Service Plan Resource Group without any issue

Agreed @giovannifl, I've created Azure/azure-cli#18348


[MINOR][TESTS] Make check_invalid_args reusable in parity test

What changes were proposed in this pull request?
Make check_invalid_args reusable in parity test
Why are the changes needed?
test coverage
Does this PR introduce any user-facing change?
no, test only
How was this patch tested?
ci
Was this patch authored or co-authored using generative AI tooling?
no

Merged to master.


_ causes issues

The markdown syntax highlighting seem to display this something bit broken - and that's Atoms own license file (line 414):

UI Theme: Atom Dark
Syntax Theme: One Dark
But that does not seem to matter I've switched both and it was still the same.
Moved from: https://github.com/atom/atom/issues/8460

This is a duplicate of https://github.com/atom/language-gfm/issues/44. You can use either * or _ in markdown to italicize. This is also mentioned in https://github.com/atom/language-gfm/issues/44#issuecomment-108195355

Ups sorry didn't saw this comment:

"even if only for the _ case at first. "

https://github.com/atom/language-gfm/issues/44#issuecomment-108195355
So you can close


Add ndjson support

Would it be possible to add an optional parameter that outputs results in ndjson format?
Example CSV:
id,name
a,foo
b,bar

Current json output:
[
{"id":"a","name":"foo"},
{"id":"b","name":"bar"}
]

Proposed ndjson output:
{"id":"a","name":"foo"}
{"id":"b","name":"bar"}

Are you using CLI or Lib?
If lib, just set toArrayString to false
~Keyang
On 5 April 2016 at 20:24, Dustin<EMAIL_ADDRESS>wrote:

Would it be possible to add an optional parameter that outputs results in ndjson
format http://ndjson.org/?
Example CSV:
id,name
a,foo
b,bar
Current json output:
[
{"id":"a","name":"foo"},
{"id":"b","name":"bar"}
]
Proposed ndjson output:
{"id":"a","name":"foo"}
{"id":"b","name":"bar"}
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub
https://github.com/Keyang/node-csvtojson/issues/87

I was using the CLI. I'll try the Lib instead. Thanks!

Thanks. I will add this as a feature for CLI soon.
~Keyang


isGuarded method is working unexpectedly(?)

I am extending a User model from a package with $guarded property, and it returns null on all columns, but if i use $fillable property it works.

class User extend ERPUser {
 ...
}

// with  protected $guarded = ['id']; on ERPUser Model
 $u = User::create([
            'name'=>'testing99',
<EMAIL_ADDRESS>            'password'=>Hash::make('demo213')
]);
// this will return null on all columns

// with protected $fillable = ['name','email'];  on ERPUser Model
 $u = User::create([
            'name'=>'testing99',
<EMAIL_ADDRESS>            'password'=>Hash::make('demo213')
]);

// this works!

I was trying to find what causes it, and i found this, but i'm not sure if this is the expected behaviour.

When i try to remove isGuardableColumn in the isGuarded condition, it works, or if I set it to
$this->isGuardableColumn($key) instead of !$this->isGuardableColumn($key)
I am not sure why !$this->isGuardableColumn($key) means "isGuarded" , is this expected ?

i have the same question!
trait GuardsAttributes
/**
* Determine if the given key is guarded.
*
* @param  string  $key
* @return bool
*/
public function isGuarded($key)
{
if (empty($this->getGuarded())) {
return false;
}
    return $this->getGuarded() == ['*'] ||
           ! empty(preg_grep('/^'.preg_quote($key).'$/i', $this->getGuarded())) ||
           ! $this->isGuardableColumn($key);
}

Hi there,
Thanks for reporting but it looks like this is a question which can be asked on a support channel. Please only use this issue tracker for reporting bugs with the library itself. If you have a question on how to use functionality provided by this repo you can try one of the following channels:

Laracasts Forums
Laravel.io Forums
StackOverflow
Discord
Larachat
IRC

However, this issue will not be locked and everyone is still free to discuss solutions to your problem!
Thanks.


Benchmarking against PyTorch & jit.compile

Discussed in https://github.com/dotnet/TorchSharp/discussions/1126

Originally posted by pkese October 28, 2023
If anyone is interested...
I made a small language model inspired by https://github.com/karpathy/nanoGPT in both PyTorch and TorchSharp.
The model has 2 layers of transformers totalling 150k parameters and is trained on Shakespeare's text.
I found out that going to smaller data types, improves training time, as does PyTorch's jit.compile, which is not available in TorchSharp.
Here are some benchmarks of model training times (minutes and seconds) with CUDA on a small GPU (RTX 3070).

default
tf32
bf16

TorchSharp 0.100.7
6:46
5:20
N/A

PyTorch 2.0.1
5:31
5:27
4:28

PyTorch+jit.compile
4:04
3:57
2:26

For bf16 I used:
from torch.cuda.amp import autocast
with autocast(dtype=torch.bfloat16):
    <train code>

I couldn't achieve the same bf16 functionality with TorchSharp.
I don't quite understand why default TorchSharp code is slower than default PyTorch code.
After I set torch.backends.cuda.matmul.allow_tf32 = true in both Python and TorchSharp, I get comparable performance (see first vs second column of results).
If someone is interested I can publish the code.
(I was trying to also get TorchScript models to work on both sides which messed up the code quite a bit ... and I might wish to reverse that.)
BTW, TorchScript model was 1% slower to train on PyTorch and crashed in TorchSharp.

I am so glad we are approaching this maturity since two years ago we defended why TorchSharp is so key important!!!
Please share the code.
Do U think in c# instead of f# or both makes sense?

Discussed in #1126
Originally posted by pkese October 28, 2023 If anyone is interested...
I made a small language model inspired by https://github.com/karpathy/nanoGPT in both PyTorch and TorchSharp. The model has 2 layers of transformers totalling 150k parameters and is trained on Shakespeare's text.
I found out that going to smaller data types, improves training time, as does PyTorch's jit.compile, which is not available in TorchSharp.
Here are some benchmarks of model training times (minutes and seconds) with CUDA on a small GPU (RTX 3070).
default 	tf32 	bf16
TorchSharp 0.100.7 	6:46 	5:20 	N/A
PyTorch 2.0.1 	5:31 	5:27 	4:28
PyTorch+jit.compile 	4:04 	3:57 	2:26
For bf16 I used:
from torch.cuda.amp import autocast
with autocast(dtype=torch.bfloat16):
    <train code>

I couldn't achieve the same bf16 functionality with TorchSharp.
I don't quite understand why default TorchSharp code is slower than default PyTorch code. After I set torch.backends.cuda.matmul.allow_tf32 = true in both Python and TorchSharp, I get comparable performance (see first vs second column of results).
If someone is interested I can publish the code. (I was trying to also get TorchScript models to work on both sides which messed up the code quite a bit ... and I might wish to reverse that.) BTW, TorchScript model was 1% slower to train on PyTorch and crashed in TorchSharp.

I wonder why TorchSharp turned out SOOOO slow.
Did you profile? Can you share the code?

@pkese
Feedback from above


Leave DAO flow

This proposal creates a flow for holders of Membership tokens to burn their own tokens without making a proposal.
This is done by going to the Members view and then navigating to your own membership.
In place of the "Remove Member" button you'll see "Leave DAO":

And clicking it opens this form, which could be reused easily enough elsewhere:

Currently blocked by mysterious error https://explorer.solana.com/tx/24V1aKStq7PyrREdVrjG43wUNWx1TXsZTVHCSUgqBkdqJJpC3XcS7ULzM1WVwbWzeYBPCfDJiGuMeCwEDUxdpkUg?cluster=devnet

(unblocked due to program changes)


improve: dependent resources notify all owners by default

Will add integration test later.

This looks like it needs to be rebased.


Amalgamated build fails on linux due to incorrect #include paths for glext.h and glx/glxext.h

Hello,
trying to setup an amalgamated on Arch Linux 64, and I'm getting "no such file or directory" build errors
renderer_gl.h
line 55: #		include <gl/glext.h>

Fix:
line 55: #		include <GL/glext.h>    // <---- Notice upper case for GL.

glcontext_glx.cpp
line 13: #		include <glx/glxext.h>

Fix:
line 13: #		include <GL/glxext.h>    // <---- Notice upper case for GL.

I checked my ubuntu 14:04 machine and the GL directories are in the same place.

Those files should be coming from here:
https://github.com/bkaradzic/bgfx/tree/master/3rdparty/khronos
Not from system.

Yup, I added 3rdparty/khronos the include dir list and that fixed it. Thanks.


GPL-295 Duplex-Seq New Labware creator for LDS AL Lib Dil plate

Story: As the Duplex-Seq pipeline developer I need to create a new labware creator class to make the LDS AL Lib Dil plate.
Acceptance criteria:

created a new Labware creator for the LDS AL Lib Dil plate purpose
includes upload of the CASM modified concentration file
validates the uploaded file
stores the extra values from CASM file as Well metadata on the new child Dil plate (PCR cycles, Sub-pool and Coverage)
uses the PCR cycles values to determine binning for samples in plate (see other binning Labware creators for Chromium as examples)
creates the new Dil plate

Tasks:

Upload of csv file in Limber
Saving of data to well metadata
Binning calculation
Integration Suite update to handle creator


Suggestion: Heart Containers

Suggestion:  Heart Containers (HC), upon reaching max heart have it where the HC no longer spawn as loot.  As of right now if you eat for food source and open up inventory it will respawn back into quick slot, making it an unlimited food source.

" upon reaching max heart have it where the HC no longer spawn as loot. ", yeah that would be really cool.  Im not sure if its possible, for the chest loot might be generated whenever the chunk is created, so the player who opens it isnt known. or maybe im wrong ill have to check.
the other part if you are at max hearts, it shouldnt let you eat it and gain food.

stopped the food source thing, you just cant eat it if hearts are max. and you can always give away or uncraft the hearts you dont need from chest loot . anyway 1.10.7 is here https://minecraft.curseforge.com/projects/cyclic/files/2380823


Add further DisappearBehavior to work around iOS 14 Crash

Hi Alexander,
we are seeing a strange Crash on iOS 14.3 when onDisappear is called in LazyImage. It fails in FetchImage:208 if isLoading { isLoading = false } with Fatal error: Attempted to read an unowned reference but the object was already deallocated.
I guess it is some kind of SwiftUI bug. We are seeing it in newer iOS 14 Versions as well, but it happens a lot in 14.3.
By accident I found out, that we can prevent the crash, if we don't reset or cancel the model, but just lower the requests priority. I know it makes no sense from a performance perspective, but at least our app doesn't crash that way 😅
Best regards
Peter

Thanks for merging @kean.
I just tried to put together a sample project to reproduce the issue. But unfortunately I'm not able to trigger it outside of our project. So I guess it is some kind of unexpected side effect of something we are doing with the view.
I'll try to investigate if I find the time. But please don't put too much effort into this. You helped us already!

I'll try to investigate it too. Any tips on how to repro?
It doesn't seem to be a widespread issue, so it must be related to how it's used. I've seen similar reports in other SwiftUI frameworks. It's pretty hard to make a SwiftUI component that doesn't crash...
I'm thinking about simply removing all of the updates that might trigger UI reload from onDisappear. This seems to be the problem.

Hi @pkurzok,
How did you managed to prevent the crash ? I have it on my own app.
Are you using .priority(ImageRequest.Priority.low) ?

Hi guys !
How did you managed to solved the crash, cause I have it on my app. Thanks.

Hi @leogiroux,
I do the following:
.onDisappear(isIOS15 ? .reset : .lowerPriority)

I will try this thank you !

I made some changes to address these issue.

Fixed crash when using DisappearBehavior.cancel (requires an update to Nuke 10.7.1
The default behavior is now .cancel (not .reset) - updated in 0.8.0
DisappearBehavior.reset is still crashy and I don't think there is a way of fixing it, so I deprecated it
The new DisappearBehavior.lowerPriority is available in the latest release


Good try

Good try, but can be made better.

For appreciation and other things you should be using discussions rather than creating issues

For appreciation and other things you should be using discussions rather than creating issues


[Preview] ContainerRequestOptions: Adds PopulateAnalyticalMigrationProgress for Synapse link migration preview

Pull Request Template
Description
Added PopulateAnalyticalMigrationProgress to ContainerRequestOptions, which populates the HTTP header "x-ms-cosmos-populate-analytical-migration-progress". When this header is provided on collection reads, the response header "x-ms-cosmos-analytical-migration-progress" will contain an integer representing the percentage progress of analytical store migration (Synapse link migration). This header will be -1 for containers that haven't used analytical store migration and 100 for containers that are ready to be queried by Synapse link connectors (Spark/SQL OD).
Example of the API in use on a collection that is undergoing analytical store migration:
ContainerResponse containerResponse = await client.GetContainer("db1", "coll1").
    ReadContainerAsync(new ContainerRequestOptions
    { PopulateAnalyticalMigrationProgress = true });

return int.Parse(containerResponse.Headers["x-ms-cosmos-analytical-migration-progress"]);

Type of change

[x] New feature (non-breaking change which adds functionality)
[x] This change requires a documentation update

{

curious, what's the utility of this json file?

Refers to: Microsoft.Azure.Cosmos/tests/Microsoft.Azure.Cosmos.Tests/Contracts/DotNetPreviewSDKAPI.json:1 in 6090ef1. [](commit_id = 6090ef19178d9c9cbce3f6650b28aef093478805, deletion_comment = False)

no change?

Refers to: Microsoft.Azure.Cosmos/tests/Microsoft.Azure.Cosmos.Tests/BaselineTest/TestBaseline/TraceWriterBaselineTests.ScenariosAsync.xml:1 in 6090ef1. [](commit_id = 6090ef19178d9c9cbce3f6650b28aef093478805, deletion_comment = False)

Is there a Design one-pager for this protocol change? I personally feel like this doesn't belong in the SDK but should be a management API in the resource-provider/ARM-SDK.
Having a One-Pager describing the design would also help to understand how we protect customers from abusing this (sounds like there is quite some backend overhead when setting it to true - are we charging higher RU charge to reflect that and prevent customers form always setting it to true etc.?)
More information is also needed on how to read/parse/process the response - -1 and 100 is explained - I would assume intermediary states are percentages?


bummi: Watch synergytranscriptionservices.net

bummi requests the watch of the watch_keyword synergytranscriptionservices.net. See the Metasmoke search here and theStack Exchange search here.

No MS hits, why was this watched?

Closing until further clarification


Pushing image to harbor with error: "Received unexpected HTTP status: 500 Internal Server Error"

Harbor version: v1.1.2
Docker version: 17.06.0-ce
Docker-compose version: 1.8.0
My harbor run well for some time(handling well with login, pull, or push), and all of sudden, clients encounter failure of error message of "Received unexpected HTTP status: 500 Internal Server Error" when pushing NEW image, without any changes on harbor side, like config modification, or restarting etc.
clients could still login, pull image or push a image that EXISTING in harbor.
docker client returns:
Received unexpected HTTP status: 500 Internal Server Error
Related UI logs:
Aug 29 10:43:59 <IP_ADDRESS> ui[2646]: 2017-08-29T02:43:59Z [DEBUG] [token.go:35]: URL for token request: /service/token?account=admin&scope=repository%3Atest%2Fdebian%3Apush%2Cpull&service=harbor-registry
Aug 29 10:43:59 <IP_ADDRESS> ui[2646]: 2017-08-29T02:43:59Z [DEBUG] [creator.go:206]: scopes: [repository:test/debian:push,pull]
Aug 29 10:43:59 <IP_ADDRESS> ui[2646]: 2017-08-29T02:43:59Z [WARNING] Failed to get secret cookie, error: http: named cookie not present
Aug 29 10:43:59 <IP_ADDRESS> ui[2646]: 2017-08-29T02:43:59Z [DEBUG] [authenticator.go:59]: Current AUTH_MODE is db_auth
Related registry log:
Aug 29 10:43:59 <IP_ADDRESS> registry[2646]: time="2017-08-29T02:43:59.60763337Z" level=debug msg="authorizing request" go.version=go1.6 http.request.host=tcregistry2.starcloud.io http.request.id=639f28b5-9ad5-4bcf-a3c5-2cde36e7f0e6 http.request.method=GET http.request.remoteaddr=<IP_ADDRESS> http.request.uri="/v2/" http.request.useragent="docker/1.10.3 go/go1.5.3 git-commit/20f81dd kernel/4.0.4 os/linux arch/amd64" instance.id=c33d8b9a-ad30-4545-9e75-a5d045a8b81c service=registry version="v2.4.1+unknown"
Aug 29 10:43:59 <IP_ADDRESS> registry[2646]: time="2017-08-29T02:43:59.608096769Z" level=warning msg="error authorizing context: authorization token required" go.version=go1.6 http.request.host=tcregistry2.starcloud.io http.request.id=639f28b5-9ad5-4bcf-a3c5-2cde36e7f0e6 http.request.method=GET http.request.remoteaddr=<IP_ADDRESS> http.request.uri="/v2/" http.request.useragent="docker/1.10.3 go/go1.5.3 git-commit/20f81dd kernel/4.0.4 os/linux arch/amd64" instance.id=c33d8b9a-ad30-4545-9e75-a5d045a8b81c service=registry version="v2.4.1+unknown"
Aug 29 10:43:59 <IP_ADDRESS> registry[2646]: <IP_ADDRESS> - - [29/Aug/2017:02:43:59 +0000] "GET /v2/ HTTP/1.1" 401 87 "" "docker/1.10.3 go/go1.5.3 git-commit/20f81dd kernel/4.0.4 os/linux arch/amd64"
please help take a look, thanks!
attaching logs files
harbor_logs.tar.gz

Aug 29 10:43:59 <IP_ADDRESS> registry[2646]: time="2017-08-29T02:43:59.797478234Z" level=error msg="response completed with error" auth.user.name=admin err.code=unknown err.detail="cos: qcloud API Error: RequestId: NTlhNGQ0ZWZfZWJhMDY4NjRfOWNlZF8xMjI2N2Y= Status Code: 404 Code: NoSuchKey Message: The specified key does not exist." err.message="unknown error" go.version=go1.6 http.request.host=tcregistry2.starcloud.io http.request.id=cc36e5a9-ff8b-45fd-bc2d-aacc531a6b7e http.request.method=HEAD http.request.remoteaddr=<IP_ADDRESS> http.request.uri="/v2/test/debian/blobs/sha256:8a98b0bd9ee8b33ba99aac4942f25fac7f78a9748b4f73f3ec8c826f52fe7398" http.request.useragent="docker/1.10.3 go/go1.5.3 git-commit/20f81dd kernel/4.0.4 os/linux arch/amd64" http.response.contenttype="application/json; charset=utf-8" http.response.duration=22.316999ms http.response.status=500 http.response.written=434 instance.id=c33d8b9a-ad30-4545-9e75-a5d045a8b81c service=registry vars.digest="sha256:8a98b0bd9ee8b33ba99aac4942f25fac7f78a9748b4f73f3ec8c826f52fe7398" vars.name="test/debian" version="v2.4.1+unknown"
Aug 29 10:43:59 <IP_ADDRESS> registry[2646]: <IP_ADDRESS> - - [29/Aug/2017:02:43:59 +0000] "HEAD /v2/test/debian/blobs/sha256:8a98b0bd9ee8b33ba99aac4942f25fac7f78a9748b4f73f3ec8c826f52fe7398 HTTP/1.1" 500 434 "" "docker/1.10.3 go/go1.5.3 git-commit/20f81dd kernel/4.0.4 os/linux arch/amd64"

According to the logs, I think the error below is the cause of the issue:
cos: qcloud API Error: RequestId: NTlhNGQ0ZWZfZWJhMDY4NjRfOWNlZF8xMjI2N2Y= Status Code: 404 Code: NoSuchKey Message: The specified key does not exist.

thanks ywk253100, we just verified it may due to storage access issue, we are going to investigate from the storage side, thanks!


Help on loading zsh completions with antibody

Migrating from the old oh-my-zsh plugin I'm trying to load the completions available in this repository with no luck. I'm using antibody:
Linuxbrew/brew path:completions/zsh/_brew
Linuxbrew/brew path:completions/zsh/_brew_cask

I get this errors:
_arguments:comparguments:325: can only be called from completion function
_arguments:comparguments:325: can only be called from completion function

It's not immediately obvious how should I load the completions. I guess I won't be the only one on that situation, so probably some lines on the documentation would be enough.

I'm afraid that I have no familiarity with antibody. You'll need to ask their developers.

Well, Antibody just loads the files assuming they're zsh plugins. Are you interested in defining a zsh.plugin file in this repo that could be loaded from antigen/antibody?
Linuxbrew/brew path:completions/zsh/

If so, I just need some help to open a PR: how do you load those completions manually?

What about the files in ls $(brew --prefix)/share/zsh/site-functions ? Is this what you are looking for?
I have no clue about zsh plugins or antibody. We would accept a change if it is added to the mac repo first (if it is a Linux-only solution, then we may consider it for inclusion). But you need to give more details because we are not going to read through the whole zsh/antibody documentation.

So I've figured out why it was failing. Antibody just sources the plugin.zsh file and then adds to fpath the files of the folder. If no plugin.zsh file is found, it does nothing.
It works if I add an empty file /completions/zsh/something.plugin.zsh but I'm asking for other options in the antibody repo, as that's a bit of a workaround.
Thanks!

Glad to hear that you got it working, Albert!


[FEATURE] Compatibility with DefensiveTurrets Plugin

Is your feature request related to a problem? Please describe.
A feature. Make BetterTeams be compatible with DefensiveTurret Plugin.
https://www.spigotmc.org/resources/defensiveturrets-defend-yourself-using-turrets-1-8-1-15.67188/
This would allow more possibilities for servers with pvp/raiding/koth/events/mini-games aspect be able to use BetterTeams plugin.
Describe the solution you'd like
Example Usage:
The turret placed by a team member will not attack any team or ally members. It will only attack neutral players.
Describe alternatives you've considered
None
Additional context
I'm not sure if the compatibility feature should be done here or their side. I hope it could be implemented, thanks! <3

I have also suggested this to the plugin developer. He said BetterTeams does not have a developer API.

I will work on creating documentation for other developers once version 3.0.9 is released as most backend functions are simple to use, I will just need to add the needed documentation to walk users through the process.

Looking at the defensive turret API, there are no events available when a turret targets a player, only when the turret kills a player this means I think it would be easier if the Defensive Turrets developer adds the code into their plugin. (if they add more developer support I would happily add it on my end).
I have created a way to access my plugins documentation and a brief explanation of how the plugin works within the wiki. Hopefully, this will help with integration.
I am going to leave this feature request open for now, please use this to keep me updated on how the integration of Defensiveturrets is going.

Alright, I have informed the dev regarding the API wiki and also the 'no events available'. Will keep you updated.

The Defensive Turrets developer is adding the integration on their end.


Type is not assignable to type, and invalid prop...

Operating System: Darwin
Node Version:     v18.13.0
Nuxt Version:     3.1.2
Nitro Version:    2.1.1
Package Manager<EMAIL_ADDRESS>Builder:          vite
User Config:      alias, app, css, sourcemap, modules, content, googleAdsense, runtimeConfig, nitro, typescript, vite
Runtime Modules<EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS>Build Modules:    -

  googleAdsense: {
    // onPageLoad: false,
    // pageLevelAds: false,
  },

  runtimeConfig: {
    apiSecret: '',
    public: {
      apiBase: '',
    },
    googleAdsense: {
      id: process.env.GOOGLE_ADSENSE_ID,
      test: process.env.GOOGLE_ADSENSE_TEST_MODE === 'true',
    },
  },

Does anyone know how to solve this error message

I suppose the Nuxt 3 component would need a rewrite in <script setup>. PR welcome.

any update on this? I am also using typescript

any update on this? I am also using typescript

PR welcome  👍🏻
Should not be too difficult so I'd like to leave that opportunity for contributors ☺


Where is @lucide/shared

Package

[ ] lucide
[ ] lucide-angular
[ ] lucide-flutter
[ ] lucide-preact
[ ] lucide-react
[ ] lucide-react-native
[ ] lucide-solid
[X] lucide-svelte
[ ] lucide-vue
[ ] lucide-vue-next
[ ] Figma plugin
[ ] source/main
[ ] other/not relevant

Version
0.376
Can you reproduce this in the latest version?

[X] Yes
[ ] No

Browser

[ ] Chrome/Chromium
[ ] Firefox
[ ] Safari
[ ] Edge
[ ] iOS Safari
[ ] Opera
[X] Other/not relevant

Operating system

[ ] Windows
[ ] Linux
[ ] macOS
[ ] ChromeOS
[ ] iOS
[ ] Android
[X] Other/not relevant

Description
[vite] Pre-transform error: Failed to load url @lucide/shared (resolved id: @lucide/shared) in .../node_modules/lucide-svelte/dist/Icon.svelte. Does the file exist?
Steps to reproduce
!. Install, 2.Use
Checklist

[X] I have searched if someone has submitted a similar issue before and there weren't any. (Please make sure to also search closed issues, as this issue might already have been resolved.)

I have the same issue, shared folder not in node_modules

also have this problem

is there a workaround anyone has found temporarily?

I also ran into this 😅

is there a workaround anyone has found temporarily?

Install older version )

1

After dedicating four hours to identifying the problem,
I discovered that the latest version of Lucide was lacking '@lucide/shared'. Indeed!

After dedicating four hours to identifying the problem, I discovered that the latest version of Lucide was lacking '@lucide/shared'. Indeed!

Which previous version has it?

This fixed it for me ..
pnpm i<EMAIL_ADDRESS>

This fixed it for me ..
pnpm i<EMAIL_ADDRESS>

Will try out, thank you

getting same error with<EMAIL_ADDRESS>

Sorry for the inconvenience. The Svelte package has a different build system than our other packages. @lucide/shared was designed to be included in the code, not as a dependency. @sveltejs/package was not able to include this.
I've made a fix to revert the shared package for @lucide/shared.

Fix published on<EMAIL_ADDRESS>


win7 32bit error : https didnot work  unless remake a new pfx and TrustRootCertificate() again

Https can work only on the first run ,after  delete the old .pfx file.Because the proxy will rebuild the cert and reinstall.
But after close the proxy and reopen it , https did not work, because the app can not get the PrivateKey of the .pfx.An explain in www is because of the 32bit os.
var privateKey = x509.GetCngPrivateKey(); Error

Please try to use BouncyCastle certificate engine.

I close this issue due to inactivity, feel free to reopen/create new if needed.


[WIP] Limit PDF/ Print Option to Produce Only One Page

Per discussion in #534, the Print button on TaxBrain output page currently produces two pages. See the following screenshot for detail:

I tried different ways to limit the number of pages to print via DataTable.ext.buttons.pdfHtml5 and DataTable.ext.buttons.print functions (details could be found within the commit), but they do not seem to help.
@brittainhard, could you advice what's the best approach to deal with this issue?

Print output looks great, +1

@GoFroggyRun looks like we have more merge conflicts. In the future, I think it's best not to modify the vendor files themselves, but use a module separate script that changes the attributes of the original objects. I didn't think about this with the first PRs you made, but I think this code is fine for now.


Need a little help

How properly subscribe user to NEW plan and stop from other
For example i have Free plan by default (which i SUBSCRIBE on user signup)
After that user can upgrade to other paid plan
How to do it properly?
Please provide example
Also couldnt find anything about subcrtiption CRON JOBS for autocancellation of old subscriptions

How properly subscribe user to NEW plan and stop from other

Easy, just change plan: https://bpuig.github.io/laravel-subby/v5.x/models/plan-subscription-model.html#change-its-plan
$plan = Plan::find(2);
$subscription = PlanSubscription::find(1);

// Change subscription plan clearing usage and synchronizing invoicing periods
$subscription->changePlan($plan);

For example i have Free plan by default (which i SUBSCRIBE on user signup) After that user can upgrade to other paid plan
How to do it properly? Please provide example

Just like the example before (imagine shown plan with id 2 is the paid plan).

Also couldnt find anything about subcrtiption CRON JOBS for autocancellation of old subscriptions

At the moment there is no automated handling of renewals, cancels, etc. That, at the moment, falls out of the scope. You'll have to do your own. The closest thing to handling something is the "schedule" feature, that has some jobs and services to handle plan changes in future dates.
Any doubts, feel free to ask.

@bpuig, maybe you could open the "Discussions" tab here at github for this kind of conversations/questions, actually not being "Issues"?

@bpuig, maybe you could open the "Discussions" tab here at github for this kind of conversations/questions, actually not being "Issues"?

Done! I close this and @Fayozjon can continue the conversation there 🙃


React wrapped components don't get HTML event types

Description
After wrapping custom elements with @lit-labs/react, the resulting React components do not have types for HTML events. This causes TypeScript to throw an error, even though the syntax is correct and functions properly.

Opened per this discussion on Slack.
Steps to Reproduce

Create any Lit-based custom element
Use @lit-labs/react to create a React-wrapper component
Import the React component in a create-react-app --template typescript project
Add onClick, onMouseDown, or any global HTMLElement event
Notice the TypeScript error

Live Reproduction Link

As this is potentially a bug in @lit-labs/react, the repro requires custom elements that are wrapped for React and then consumed in a React app. The following is a repo created using the following commands.
Repo: https://github.com/claviska/react-wrapper-types-repro
It's worth noting that I used @shoelace-style/react for the wrapped components, but I'm seeing the same behavior in another library that also uses @lit-labs/react.
Here's the command to create the repo from scratch:
npx create-react-app --template typescript react-wrapper-types-repro
npm i @shoelace-style/react

The only modifications are in App.tsx:

Added Shoelace - https://github.com/claviska/react-wrapper-types-repro/blob/master/src/App.tsx#L5-L6
Used a Shoelace button - https://github.com/claviska/react-wrapper-types-repro/blob/master/src/App.tsx#L16

The error appears on line 16. Note that adding @ts-ignore will suppress the error and onClick works as expected.
Expected Results
HTML events such as onClick, onMouseDown, etc. will be allowed by TypeScript.
Actual Results
Line 16, where onClick is used, results in a TypeScript error.

Alt text:
Type '{ children: string; onClick: () => void; type: "primary"; }' is not assignable to type 'IntrinsicAttributes & Partial<Pick<SlButton, "button" | "slot" | "style" | "title" | "animate" | "circle" | "accessKey" | "accessKeyLabel" | "autocapitalize" | ... 263 more ... | "handleClick">> & { ...; } & { ...; } & RefAttributes<...>'.
  Property 'onClick' does not exist on type 'IntrinsicAttributes & Partial<Pick<SlButton, "button" | "slot" | "style" | "title" | "animate" | "circle" | "accessKey" | "accessKeyLabel" | "autocapitalize" | ... 263 more ... | "handleClick">> & { ...; } & { ...; } & RefAttributes<...>'. Did you mean 'onclick'?ts(2322)

(JSX attribute) onClick: () => void

Browsers Affected
N/A

I have experienced the same issue...
For some code in my lit component like:
this.dispatchEvent(
  new CustomEvent<string>('some-event', {
    detail: "foobar",
    bubbles: true,
    composed: true,
  })
);

And a react wrapper like:
export const MyComponent = createComponent(React, "my-component", MyLitComponent, {
  onSomeEvent: "some-event",
});

TS generates a type like this from the react wrapper:
onSomeEvent: ((e: Event) => unknown) | undefined;

The problem being that I'm actually dispatching a CustomEvent<string>. Event is incompatible with CustomEvent<string> in type terms, so I cannot re-type at the call site like this without an error:
{/* does not work! */}
<MyComponent
  onSomeEvent={(e: CustomEvent<string>) => console.log(e.detail)}
/>

I have been forced to do this, which is a real shame:
<MyComponent
  onSomeEvent={(e: any) => console.log("who needs types, anyway?!", e.detail)}
/>

It would be nice if createComponent supported some form of generics for defining event types, since I can likely auto-generate this from my custom elements manifest (at least to some extent: seems the event type there is only CustomEvent and not CustomEvent<string>)

@justinfagnani you are correct, i misread the issue! I'll create a new issue for that


Update versions.tf

what

Restrict AWS provider version

why

>= 3.64 because response_headers_policy_id first appeared on version: 3.64.0 (November 04, 2021)
< 4.0.0 many breaking changes affect this module.

references

https://github.com/hashicorp/terraform-provider-aws/blob/main/CHANGELOG.md#3640-november-04-2021
https://github.com/hashicorp/terraform-provider-aws/blob/main/CHANGELOG.md#400-february-10-2022

/test all

@Gowiem We do not allow provider pinning except for >=. This PR should not have passed automated testing (I'm looking into that) and should not have been approved.
Our policy is that if a new provider version breaks an existing module, users of that module should put the provider pin e.g. < 4.0 in their component or use the .terraform.lock.hcl file. When the module is upgraded to work with the new provider, then it can be pinned, in this case >= 4.0.0.

@Nuru gotcha and apologies, I didn't know about that. Let's discuss in Slack here if you don't mind.

Hi!
What's the outcome from that slack discussion?
Is there plans to upgrade to 4.0?

It doesn't let me run it with the v4 provider still :(


[Meshery] Adapter selection changes on page refresh

Description
When a user has navigated to /management?adapter=<adapter-name>:<port> and the page is refreshed, often the displayed adapter will change, despite the user not having changed their selection. Example:

This issue is likely due to out of order messages received through the go channel used by go routines to query all the adapters for their metadata. Assuming this is the case, this article might be of value -<EMAIL_ADDRESS>Expected Behavior
Users should see the same adapter (e.g. Linkerd) when refreshing this page. e.g. http://localhost:9081/management?adapter=meshery-linkerd:10001

temporary fix in #872, if someone can debug react-router or guide me through it(I've never worked on react :sweat_smile:), that would be great!

Strange but the url that you have mentioned @leecalcote sir, should not give this output. Means there should not be an option available for you to select your adapter from there.


Locked sharp to v0.32.6 until the build error is fixed

Versions where the issue still presist:

0.33.1 - 0.33.3

no longer need to explicitly set this as dependency


Test vicky style

@VickySidorkin - found a slight mismatch between running black locally and running it with docker, please cherry-pick the last commit from this branch.


NuxtLink resets current locale

Hello,
it seems that the package can't handle links via <NuxtLink> since it always resets the URL prefix.. I guess that standard i18n could do it, at least with no_prefix strategy.
Is there any possibility to use this strategy here?
On the other hand it would be nice to add a composable like navigateToI18n() which could replace native navigateTo() util

https://github.com/s00d/nuxt-i18n-micro/blob/85ddc391abccecd3a32ae1059de34050dc40babc/playground/pages/page.vue#L67

try switchRoute in v1.27.0


[22523] Fix path calculation

Details
This PR is an extension of https://github.com/Expensify/App/pull/24483 since we are using query parameters in attachment URLs and the previous implementation only catered pretty URLs and removed any query params in the path.
Fixed Issues
$ https://github.com/Expensify/App/issues/22523
$ https://github.com/Expensify/App/pull/24483#issuecomment-1683071524
PROPOSAL:
Original Proposal: https://github.com/Expensify/App/issues/22523#issuecomment-1629939138
Proposal for this PR: https://github.com/Expensify/App/pull/24483#issuecomment-1683087171
Tests

Open a chat and send an attachment.
Open the attachment preview and copy the URL then send it in the chat.
Click the URL you send it in step 2.
The attachment should be previewed internally.

[ ] Verify that no errors appear in the JS console

Offline tests
Same as above
QA Steps
Same as above

[ ] Verify that no errors appear in the JS console

PR Author Checklist

[x] I linked the correct issue in the ### Fixed Issues section above
[x] I wrote clear testing steps that cover the changes made in this PR

[x] I added steps for local testing in the Tests section
[x] I added steps for the expected offline behavior in the Offline steps section
[x] I added steps for Staging and/or Production testing in the QA steps section
[x] I added steps to cover failure scenarios (i.e. verify an input displays the correct error message if the entered data is not correct)
[x] I turned off my network connection and tested it while offline to ensure it matches the expected behavior (i.e. verify the default avatar icon is displayed if app is offline)
[x] I tested this PR with a High Traffic account against the staging or production API to ensure there are no regressions (e.g. long loading states that impact usability).

[x] I included screenshots or videos for tests on all platforms
[x] I ran the tests on all platforms & verified they passed on:

[x] Android / native
[x] Android / Chrome
[x] iOS / native
[x] iOS / Safari
[x] MacOS / Chrome / Safari
[x] MacOS / Desktop

[x] I verified there are no console errors (if there's a console error not related to the PR, report it or open an issue for it to be fixed)
[x] I followed proper code patterns (see Reviewing the code)

[x] I verified that any callback methods that were added or modified are named for what the method does and never what callback they handle (i.e. toggleReport and not onIconClick)
[x] I verified that the left part of a conditional rendering a React component is a boolean and NOT a string, e.g. myBool && <MyComponent />.
[x] I verified that comments were added to code that is not self explanatory
[x] I verified that any new or modified comments were clear, correct English, and explained "why" the code was doing something instead of only explaining "what" the code was doing.
[x] I verified any copy / text shown in the product is localized by adding it to src/languages/* files and using the translation method

[x] If any non-english text was added/modified, I verified the translation was requested/reviewed in #expensify-open-source and it was approved by an internal Expensify engineer. Link to Slack message:

[x] I verified all numbers, amounts, dates and phone numbers shown in the product are using the localization methods
[x] I verified any copy / text that was added to the app is grammatically correct in English. It adheres to proper capitalization guidelines (note: only the first word of header/labels should be capitalized), and is approved by marketing by adding the Waiting for Copy label for a copy review on the original GH to get the correct copy.
[x] I verified proper file naming conventions were followed for any new files or renamed files. All non-platform specific files are named after what they export and are not named "index.js". All platform-specific files are named for the platform the code supports as outlined in the README.
[x] I verified the JSDocs style guidelines (in STYLE.md) were followed

[x] If a new code pattern is added I verified it was agreed to be used by multiple Expensify engineers
[x] I followed the guidelines as stated in the Review Guidelines
[x] I tested other components that can be impacted by my changes (i.e. if the PR modifies a shared library or component like Avatar, I verified the components using Avatar are working as expected)
[x] I verified all code is DRY (the PR doesn't include any logic written more than once, with the exception of tests)
[x] I verified any variables that can be defined as constants (ie. in CONST.js or at the top of the file that uses the constant) are defined as such
[x] I verified that if a function's arguments changed that all usages have also been updated correctly
[x] If a new component is created I verified that:

[x] A similar component doesn't exist in the codebase
[x] All props are defined accurately and each prop has a /** comment above it */
[x] The file is named correctly
[x] The component has a clear name that is non-ambiguous and the purpose of the component can be inferred from the name alone
[x] The only data being stored in the state is data necessary for rendering and nothing else
[x] If we are not using the full Onyx data that we loaded, I've added the proper selector in order to ensure the component only re-renders when the data it is using changes
[x] For Class Components, any internal methods passed to components event handlers are bound to this properly so there are no scoping issues (i.e. for onClick={this.submit} the method this.submit should be bound to this in the constructor)
[x] Any internal methods bound to this are necessary to be bound (i.e. avoid this.submit = this.submit.bind(this); if this.submit is never passed to a component event handler like onClick)
[x] All JSX used for rendering exists in the render method
[x] The component has the minimum amount of code necessary for its purpose, and it is broken down into smaller components in order to separate concerns and functions

[x] If any new file was added I verified that:

[x] The file has a description of what it does and/or why is needed at the top of the file if the code is not self explanatory

[x] If a new CSS style is added I verified that:

[x] A similar style doesn't already exist
[x] The style can't be created with an existing StyleUtils function (i.e. StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG))

[x] If the PR modifies code that runs when editing or sending messages, I tested and verified there is no unexpected behavior for all supported markdown - URLs, single line code, code blocks, quotes, headings, bold, strikethrough, and italic.
[x] If the PR modifies a generic component, I tested and verified that those changes do not break usages of that component in the rest of the App (i.e. if a shared library or component like Avatar is modified, I verified that Avatar is working as expected in all cases)
[x] If the PR modifies a component related to any of the existing Storybook stories, I tested and verified all stories for that component are still working as expected.
[x] If the PR modifies a component or page that can be accessed by a direct deeplink, I verified that the code functions as expected when the deeplink is used - from a logged in and logged out account.
[x] If a new page is added, I verified it's using the ScrollView component to make it scrollable when more elements are added to the page.
[x] If the main branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to the Test steps.
[x] I have checked off every checkbox in the PR author checklist, including those that don't apply to this PR.

Screenshots/Videos

Web
https://github.com/Expensify/App/assets/36226639/daab198c-3e8e-4fe1-9f0c-e349891104c2

Mobile Web - Chrome
https://github.com/Expensify/App/assets/36226639/2ef3f10c-5494-4104-a6ac-ebd714b3cb49

Mobile Web - Safari
https://github.com/Expensify/App/assets/36226639/7b1ed450-598d-4179-a853-d29b8eb3906d

Desktop
https://github.com/Expensify/App/assets/36226639/86233889-9109-44d7-8e92-5061dcd419b6

iOS
https://github.com/Expensify/App/assets/36226639/50402547-fbee-45de-a127-cbe679220cdb

Android
Android build is stuck locally and taking a long time.Will update once it is done.

@situchan @francoisl Please review.

Reviewer Checklist

[x] I have verified the author checklist is complete (all boxes are checked off).
[x] I verified the correct issue is linked in the ### Fixed Issues section above
[x] I verified testing steps are clear and they cover the changes made in this PR

[x] I verified the steps for local testing are in the Tests section
[x] I verified the steps for Staging and/or Production testing are in the QA steps section
[x] I verified the steps cover any possible failure scenarios (i.e. verify an input displays the correct error message if the entered data is not correct)
[x] I turned off my network connection and tested it while offline to ensure it matches the expected behavior (i.e. verify the default avatar icon is displayed if app is offline)

[x] I checked that screenshots or videos are included for tests on all platforms
[x] I included screenshots or videos for tests on all platforms
[x] I verified tests pass on all platforms & I tested again on:

[x] Android / native
[x] Android / Chrome
[x] iOS / native
[x] iOS / Safari
[x] MacOS / Chrome / Safari
[x] MacOS / Desktop

[x] If there are any errors in the console that are unrelated to this PR, I either fixed them (preferred) or linked to where I reported them in Slack
[x] I verified proper code patterns were followed (see Reviewing the code)

[x] I verified that any callback methods that were added or modified are named for what the method does and never what callback they handle (i.e. toggleReport and not onIconClick).
[x] I verified that the left part of a conditional rendering a React component is a boolean and NOT a string, e.g. myBool && <MyComponent />.
[x] I verified that comments were added to code that is not self explanatory
[x] I verified that any new or modified comments were clear, correct English, and explained "why" the code was doing something instead of only explaining "what" the code was doing.
[x] I verified any copy / text shown in the product is localized by adding it to src/languages/* files and using the translation method
[x] I verified all numbers, amounts, dates and phone numbers shown in the product are using the localization methods
[x] I verified any copy / text that was added to the app is grammatically correct in English. It adheres to proper capitalization guidelines (note: only the first word of header/labels should be capitalized), and is approved by marketing by adding the Waiting for Copy label for a copy review on the original GH to get the correct copy.
[x] I verified proper file naming conventions were followed for any new files or renamed files. All non-platform specific files are named after what they export and are not named "index.js". All platform-specific files are named for the platform the code supports as outlined in the README.
[x] I verified the JSDocs style guidelines (in STYLE.md) were followed

[x] If a new code pattern is added I verified it was agreed to be used by multiple Expensify engineers
[x] I verified that this PR follows the guidelines as stated in the Review Guidelines
[x] I verified other components that can be impacted by these changes have been tested, and I retested again (i.e. if the PR modifies a shared library or component like Avatar, I verified the components using Avatar have been tested & I retested again)
[x] I verified all code is DRY (the PR doesn't include any logic written more than once, with the exception of tests)
[x] I verified any variables that can be defined as constants (ie. in CONST.js or at the top of the file that uses the constant) are defined as such
[x] If a new component is created I verified that:

[x] A similar component doesn't exist in the codebase
[x] All props are defined accurately and each prop has a /** comment above it */
[x] The file is named correctly
[x] The component has a clear name that is non-ambiguous and the purpose of the component can be inferred from the name alone
[x] The only data being stored in the state is data necessary for rendering and nothing else
[x] For Class Components, any internal methods passed to components event handlers are bound to this properly so there are no scoping issues (i.e. for onClick={this.submit} the method this.submit should be bound to this in the constructor)
[x] Any internal methods bound to this are necessary to be bound (i.e. avoid this.submit = this.submit.bind(this); if this.submit is never passed to a component event handler like onClick)
[x] All JSX used for rendering exists in the render method
[x] The component has the minimum amount of code necessary for its purpose, and it is broken down into smaller components in order to separate concerns and functions

[x] If any new file was added I verified that:

[x] The file has a description of what it does and/or why is needed at the top of the file if the code is not self explanatory

[x] If a new CSS style is added I verified that:

[x] A similar style doesn't already exist
[x] The style can't be created with an existing StyleUtils function (i.e. StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG)

[x] If the PR modifies code that runs when editing or sending messages, I tested and verified there is no unexpected behavior for all supported markdown - URLs, single line code, code blocks, quotes, headings, bold, strikethrough, and italic.
[x] If the PR modifies a generic component, I tested and verified that those changes do not break usages of that component in the rest of the App (i.e. if a shared library or component like Avatar is modified, I verified that Avatar is working as expected in all cases)
[x] If the PR modifies a component related to any of the existing Storybook stories, I tested and verified all stories for that component are still working as expected.
[x] If the PR modifies a component or page that can be accessed by a direct deeplink, I verified that the code functions as expected when the deeplink is used - from a logged in and logged out account.
[x] If a new page is added, I verified it's using the ScrollView component to make it scrollable when more elements are added to the page.
[x] If the main branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to the Test steps.
[x] I have checked off every checkbox in the PR reviewer checklist, including those that don't apply to this PR.

Screenshots/Videos

Web
https://github.com/Expensify/App/assets/108292595/dc0e35ca-7e87-4fe1-8366-b2845076011c
https://github.com/Expensify/App/assets/108292595/713f9b14-206b-4d00-b4a2-20d17a6060f0

Mobile Web - Chrome

Mobile Web - Safari

Desktop

iOS

Android

@situchan @Talha345 when clicking on deleted image url  "notFound.goBackHome" is not showing in correct way it should be "Go back to Home page"

That should not be caused by this PR

@ayazhussain79 you should have commented on https://github.com/Expensify/App/pull/23143. Seems like that PR is related to your screenshot.

Well thank you I thought it might be because of this PR.

🚀 Deployed to staging by https://github.com/francoisl in version: 1.3.56-0 🚀

platform
result

🤖 android 🤖
failure ❌

🖥 desktop 🖥
success ✅

🍎 iOS 🍎
success ✅

🕸 web 🕸
success ✅

🚀 Deployed to production by https://github.com/roryabraham in version: 1.3.56-24 🚀

platform
result

🤖 android 🤖
success ✅

🖥 desktop 🖥
success ✅

🍎 iOS 🍎
failure ❌

🕸 web 🕸
success ✅


Acquire password in cli when its stdout is a pipe

Fixes #916

@electrum Thanks for your insights. Have applied your comments.


SAK-46685 Getting TimeSheet independent of assignment

https://sakaiproject.atlassian.net/browse/SAK-46685
Merge https://github.com/sakaiproject/nightly-config/pull/17 is needed after merge this PR to change the renamed properties in the experimental enviroment
assignment.timesheet.sites.allowed now is timesheet.sites.allowed
assignment.timesheet.timePattern now is timesheet.timePattern

Changes and unit tests done! Thanks @ern!


Add translation popup

This PR adds the translation popup when the user uses a different system language than English.

Can you add a screenshot?


upgrade to kotlin-logging 5

Hi, I created a PR to upgrade kotlin-logging to v5, hope you will be open to accept it. I am the lib maintainer and since this is a breaking change and pact is pretty popular I thought to assist with the upgrade.
Notable changes:

replace import mu. with import io.github.oshai.kotlinlogging.
replace dependency 'io.github.microutils:kotlin-logging-jvm:3.0.5' to  io.github.oshai:kotlin-logging-jvm:5.0.1.

@oshai thank you for PR and nice library :+1:

🙏 thanks!


work in progress?

thank you for sharing your project. I've been testing several projects that use PPO as well as doing mine and so far could not get results, however when training yours I see steadily increasing rewards and the code makes sense. So I'm ready to contribute to it because as far as I see PPO algorithm tend not to overfit as others.
When I try to evaluate the checkpoints it generates I see gym's "not implemented" error. Is this because there is Work in Progress you are doing or am I doing something wrong?
(gym_trading) canermac-3:cryptocurrency_prediction apple$ rllib rollout /Users/apple/ray_results/default/PPO_Trading-v0_0_2019-04-16_12-38-51strcz86z/checkpoint_40/checkpoint-40 --run PPO --env Trading-v0 --steps 1000

lz4 not available, disabling sample compression. This will significantly impact RLlib performance. To install lz4, run `pip install lz4`.
2019-04-16 19:28:22,976	WARNING worker.py:1406 -- WARNING: Not updating worker name since `setproctitle` is not installed. Install this with `pip install setproctitle` (or ray[debug]) to enable monitoring of worker processes.
2019-04-16 19:28:22,980	INFO node.py:423 -- Process STDOUT and STDERR is being redirected to /tmp/ray/session_2019-04-16_19-28-22_24310/logs.
2019-04-16 19:28:23,106	INFO services.py:363 -- Waiting for redis server at <IP_ADDRESS>:22839 to respond...
2019-04-16 19:28:23,251	INFO services.py:363 -- Waiting for redis server at <IP_ADDRESS>:11763 to respond...
2019-04-16 19:28:23,256	INFO services.py:760 -- Starting Redis shard with 0.86 GB max memory.
2019-04-16 19:28:23,305	INFO services.py:1384 -- Starting the Plasma object store with 1.29 GB memory using /tmp.
2019-04-16 19:28:24,135	WARNING ppo.py:172 -- FYI: By default, the value function will not share layers with the policy model ('vf_share_layers': False).
2019-04-16 19:28:24,375	INFO policy_evaluator.py:278 -- Creating policy evaluation worker 0 on CPU (please ignore any CUDA init errors)
2019-04-16 19:28:24.377440: I tensorflow/core/platform/cpu_feature_guard.cc:141] Your CPU supports instructions that this TensorFlow binary was not compiled to use: SSE4.1 SSE4.2 AVX
WARNING:tensorflow:From /Users/apple/miniconda3/envs/gym_trading/lib/python3.6/site-packages/tensorflow/python/framework/op_def_library.py:263: colocate_with (from tensorflow.python.framework.ops) is deprecated and will be removed in a future version.
Instructions for updating:
Colocations handled automatically by placer.
WARNING:tensorflow:From /Users/apple/miniconda3/envs/gym_trading/lib/python3.6/site-packages/ray/rllib/models/action_dist.py:114: multinomial (from tensorflow.python.ops.random_ops) is deprecated and will be removed in a future version.
Instructions for updating:
Use tf.random.categorical instead.
WARNING:tensorflow:From /Users/apple/miniconda3/envs/gym_trading/lib/python3.6/site-packages/tensorflow/python/ops/array_grad.py:425: to_int32 (from tensorflow.python.ops.math_ops) is deprecated and will be removed in a future version.
Instructions for updating:
Use tf.cast instead.
/Users/apple/miniconda3/envs/gym_trading/lib/python3.6/site-packages/tensorflow/python/ops/gradients_impl.py:110: UserWarning: Converting sparse IndexedSlices to a dense Tensor of unknown shape. This may consume a large amount of memory.
  "Converting sparse IndexedSlices to a dense Tensor of unknown shape. "
WARNING:tensorflow:From /Users/apple/miniconda3/envs/gym_trading/lib/python3.6/site-packages/tensorflow/python/ops/math_grad.py:102: div (from tensorflow.python.ops.math_ops) is deprecated and will be removed in a future version.
Instructions for updating:
Deprecated in favor of operator or tf.math.divide.
2019-04-16 19:28:31,488	INFO multi_gpu_optimizer.py:74 -- LocalMultiGPUOptimizer devices ['/cpu:0']
(pid=24330) 2019-04-16 19:28:44,682	WARNING compression.py:20 -- lz4 not available, disabling sample compression. This will significantly impact RLlib performance. To install lz4, run `pip install lz4`.
(pid=24333) 2019-04-16 19:28:44,682	WARNING compression.py:20 -- lz4 not available, disabling sample compression. This will significantly impact RLlib performance. To install lz4, run `pip install lz4`.
(pid=24330) 2019-04-16 19:28:45,941	INFO policy_evaluator.py:278 -- Creating policy evaluation worker 2 on CPU (please ignore any CUDA init errors)
(pid=24330) 2019-04-16 19:28:45.942628: I tensorflow/core/platform/cpu_feature_guard.cc:141] Your CPU supports instructions that this TensorFlow binary was not compiled to use: SSE4.1 SSE4.2 AVX
(pid=24333) 2019-04-16 19:28:45,928	INFO policy_evaluator.py:278 -- Creating policy evaluation worker 1 on CPU (please ignore any CUDA init errors)
(pid=24333) 2019-04-16 19:28:45.931715: I tensorflow/core/platform/cpu_feature_guard.cc:141] Your CPU supports instructions that this TensorFlow binary was not compiled to use: SSE4.1 SSE4.2 AVX
(pid=24330) WARNING:tensorflow:From /Users/apple/miniconda3/envs/gym_trading/lib/python3.6/site-packages/tensorflow/python/framework/op_def_library.py:263: colocate_with (from tensorflow.python.framework.ops) is deprecated and will be removed in a future version.
(pid=24330) Instructions for updating:
(pid=24330) Colocations handled automatically by placer.
(pid=24333) WARNING:tensorflow:From /Users/apple/miniconda3/envs/gym_trading/lib/python3.6/site-packages/tensorflow/python/framework/op_def_library.py:263: colocate_with (from tensorflow.python.framework.ops) is deprecated and will be removed in a future version.
(pid=24333) Instructions for updating:
(pid=24333) Colocations handled automatically by placer.
(pid=24330) WARNING:tensorflow:From /Users/apple/miniconda3/envs/gym_trading/lib/python3.6/site-packages/ray/rllib/models/action_dist.py:114: multinomial (from tensorflow.python.ops.random_ops) is deprecated and will be removed in a future version.
(pid=24330) Instructions for updating:
(pid=24330) Use tf.random.categorical instead.
(pid=24333) WARNING:tensorflow:From /Users/apple/miniconda3/envs/gym_trading/lib/python3.6/site-packages/ray/rllib/models/action_dist.py:114: multinomial (from tensorflow.python.ops.random_ops) is deprecated and will be removed in a future version.
(pid=24333) Instructions for updating:
(pid=24333) Use tf.random.categorical instead.
(pid=24330) WARNING:tensorflow:From /Users/apple/miniconda3/envs/gym_trading/lib/python3.6/site-packages/tensorflow/python/ops/array_grad.py:425: to_int32 (from tensorflow.python.ops.math_ops) is deprecated and will be removed in a future version.
(pid=24330) Instructions for updating:
(pid=24330) Use tf.cast instead.
(pid=24330) /Users/apple/miniconda3/envs/gym_trading/lib/python3.6/site-packages/tensorflow/python/ops/gradients_impl.py:110: UserWarning: Converting sparse IndexedSlices to a dense Tensor of unknown shape. This may consume a large amount of memory.
(pid=24330)   "Converting sparse IndexedSlices to a dense Tensor of unknown shape. "
(pid=24333) WARNING:tensorflow:From /Users/apple/miniconda3/envs/gym_trading/lib/python3.6/site-packages/tensorflow/python/ops/array_grad.py:425: to_int32 (from tensorflow.python.ops.math_ops) is deprecated and will be removed in a future version.
(pid=24333) Instructions for updating:
(pid=24333) Use tf.cast instead.
(pid=24333) /Users/apple/miniconda3/envs/gym_trading/lib/python3.6/site-packages/tensorflow/python/ops/gradients_impl.py:110: UserWarning: Converting sparse IndexedSlices to a dense Tensor of unknown shape. This may consume a large amount of memory.
(pid=24333)   "Converting sparse IndexedSlices to a dense Tensor of unknown shape. "
(pid=24330) WARNING:tensorflow:From /Users/apple/miniconda3/envs/gym_trading/lib/python3.6/site-packages/tensorflow/python/ops/math_grad.py:102: div (from tensorflow.python.ops.math_ops) is deprecated and will be removed in a future version.
(pid=24330) Instructions for updating:
(pid=24330) Deprecated in favor of operator or tf.math.divide.
(pid=24333) WARNING:tensorflow:From /Users/apple/miniconda3/envs/gym_trading/lib/python3.6/site-packages/tensorflow/python/ops/math_grad.py:102: div (from tensorflow.python.ops.math_ops) is deprecated and will be removed in a future version.
(pid=24333) Instructions for updating:
(pid=24333) Deprecated in favor of operator or tf.math.divide.
Traceback (most recent call last):
  File "/Users/apple/miniconda3/envs/gym_trading/bin/rllib", line 10, in <module>
    sys.exit(cli())
  File "/Users/apple/miniconda3/envs/gym_trading/lib/python3.6/site-packages/ray/rllib/scripts.py", line 40, in cli
    rollout.run(options, rollout_parser)
  File "/Users/apple/miniconda3/envs/gym_trading/lib/python3.6/site-packages/ray/rllib/rollout.py", line 102, in run
    rollout(agent, args.env, num_steps, args.out, args.no_render)
  File "/Users/apple/miniconda3/envs/gym_trading/lib/python3.6/site-packages/ray/rllib/rollout.py", line 169, in rollout
    env.render()
  File "/Users/apple/miniconda3/envs/gym_trading/lib/python3.6/site-packages/gym/core.py", line 108, in render
    raise NotImplementedError
NotImplementedError

Hey mate, yeah there are work in progress, especially in the back-testing. I made a commit 2fed29c with a simple implementation of how it supposedly works, but there is still some work to do, if you update and run again you'll see something like this:

You can see that it is running trough the data loaded and you can see it is taking actions, green '^' is a buy, red 'v' is a sell. What is happening here in this example is that the agent learned to sell in every position, this can be happening because of not enough training or a not clear environment. Unfortunately I think is the latter.
So what I want to do is to implement a good env like this one: BTGym
But maybe you can help with something I'm not seeing.
Also, the data that was loaded is outdated (cryptocurrency_prediction/datasets/LTC_1d_2018-11-01_2019-03-18.csv). The data that I'm implementing is now coming from cryptocompare_api.py or from the app app/src/store/mutations.js
I hope this can clarify a lil bit to you, if not feel free to keep chatting. Try to implement in your way and keep following because I'm updating almost everyday.
Thank you

ok I understand, thank you.  I've been training the btc-eur data that cryptocompare_api.py generates all day today. Been getting mixed results as below so I will try with different datasets and play with the features to see what happens...

ok I understand, thank you. I've been training the btc-eur data that cryptocompare_api.py generates all day today. Been getting mixed results as below so I will try with different datasets and play with the features to see what happens...

After doing some tests, I believe you are using a learning rate too big, so the agent starts to overshoot the gradient ascent steps. You can use the grid_search in train_trading_bot.py to test with different learning rates.
Here is some tests with the respective learning rates I used:

Hey,
I tested the code with three new datasets.  Generated data from config/functions.py as the code expects.  Gridsearch on learning rate was there for all of them.
This is what I got from DASHBTC

This is what I got from DLTBTC

This is what I got from BNBBTC

These are the evaluations respectively.

Evaluations tend to differ according to datasets but in general they don't act as they should. I  actually got similar results from my other experiments with PPO.. maybe I didn't train it enough(4-5 hours with 2 cpu) but from the screenshot of yours I see 900K..I did more than 1M for all.  So I want to ask how and from which datasets did you get positive results?
By the way, I am actually working (day and night for several months) on creating a profitable rl trading algorithm and have been testing different projects, algorithms and trading environments as well as doing my own.  I could get some results from my own experiments using DQN with LSTM and DDPG with different hyper parameters but so far I could not trust any of them for live trading. However, I clearly understood that the key is in hyper parameter search.
I used tensorflow/keras on stable baselines and coach in general and was I thinking of creating something that runs all those parameters on a framework...so I just stumbled upon Ray Tune's Gridsearch in your project.
So what I'm thinking is to create something that runs through all policy/value based algorithms, related neural network architectures,  config hyperparameters, features and timeframes to find out which combinations give trustable results for most of the pairs. I do have access to tesla K100 gpu but as you understand creating the nn architectures will be a challenge.
 Today created a simple training script to develop on starting from tomorrow. You can check here: https://gist.github.com/canercak/b84cf452385ff7f5e28d2900b62e7204
I'm writing this because I see that we are trying to do similar things( you are using 70 features, gridsearch and policy gradients). If you are interested I believe we can discuss/brainstorm to create something that works. You can dm me on telegram @canercak anytime.

Hello bro, nice to see your good insights
First of all, responding to you question, this screenshot I sent earlier is from ETHBTC, daily data, 181 datapoints. Despite the good results on trainning, when evaluating they don't perform well. I'm still trying to get a good model to use as a benchmark.
I'm training/testing right now DASHBTC but seems to not learn anything at all (maybe there are some dataframes that don't have any pattern to learn?). I also made a couple of changes on the environment line 85 (the way the reward is computed).
A little tip here for you: if you've changed the environment, be sure to update the name that is registered, otherwise you'll continue to use an old environment. I was having some problems until I figured this out.
About the Ray Tune script that tests different hyperparameters, I'm totally optimistic about it, I think it's a great idea. Especially with the hyperparams features in get datasets.
I want to give more options to the agent, I think this will help to make a profit. My idea is to have a portfolio, so instead of a single currency and its respective features in the csv file, I want to have many other currencies (negatively correlated preferentially) and their respective features. Thus, in the environment, the agent would have the action of buying, selling or maintaining any of these coins.
I'm also thinking of changing the project a bit to use forex data instead of just cryptocurrencies because of the volume of forex. Cryptos have a relative low volume, which makes them very volatile / unpredictable.
I'm still working to make this bad boy profitable and I appreciate your help, thanks. I'll send you a msg so you can have my contact on telegram.

ok. I implemented what I was talking about as a draft and stumbled upon RAINBOW. I was using the pong-rainbow tuned parameters I got from ray github repo as below..did not use the girdsearch:
```
"config": {
"num_atoms": 51,
"noisy": True,
"gamma": 0.99,
"lr": 0.0001,
"hiddens": [
512
],
"learning_starts": 10,
"buffer_size": 50000,
"sample_batch_size": 4,
"train_batch_size": 32,
"schedule_max_timesteps": 2000000,
"exploration_final_eps": 0,
"exploration_fraction": 0.000001,
"target_network_update_freq": 500,
"prioritized_replay": True,
"prioritized_replay_alpha": 0.5,
"beta_annealing_fraction": 0.2,
"final_prioritized_replay_beta": 1,
"num_workers": NUM_WORKERS,
"n_step": 3,
"model": {
"grayscale": True,
"zero_mean": False,
"dim": 42
}
}
When I was training I could get perfect rewards as below for both DLT from 2018 to 2019  and XMR training from 2018 to 2019-03
![Screenshot at Apr 30 14-00-21](https://user-images.githubusercontent.com/2890782/56975969-90247000-6b7a-11e9-8590-f34453edae5d.png)

When I evaluated DLT from the start of 2019-1 to now I got a 3 fold return(that I still cannot believe). When I evaluated XMR from 2019-3 to now, agent did nothing..no buy or sell signals. So I had to double-check DLT if rainbow parameters will work in your environment..Got exactly the opposite results like below.
![Screenshot at Apr 30 18-36-26](https://user-images.githubusercontent.com/2890782/56975982-974b7e00-6b7a-11e9-9471-68fd57d2622b.png)
However, I realized that the training data was from 2019-2 to 3 ... just 1 monthj..I run by 2000 and it used to collect more but did not this time..
`train_single_pair.py --symbol DLT --to_symbol BTC --histo hour --limit 2000 --algo DQN`
so I've placed my own data to generate the dataset that starts from 2018 but that resulted many running errors I could not understand..
so anyway, my environment did not work at all on PPO but worked on rainbow for DLT. Thats what I got so far..  if you ever try rainbow with longer timeframe I'm looking forward for your reply  on how it works...

Hey brother,
I updated the project. New environment, new render method and new reward function.
After some tests i saw that the bot can beat the market by a small margin in 80% of the time. The other 20% of the time it takes bad decisions or try to buy a amount larger than he can, so the balance became negative and the episode ends (this is more a environment problem not a agent's problem itself)
There is still a lot to improve,
Thanks for our support :+1:


Implement version string comparison

Similar to https://github.com/growthbook/growthbook/pull/1286, and based on:

Condition
Comparison
Description

$veq
==
Versions are equal

$vne
!=
Versions are not equal

$vlt
<
The first version is lesser than the second version

$vlte
<=
The first version is lesser than or equal to the second version

$vgt
>
The first version is greater than the second version

$vgte
>=
The first version is greater than or equal to the second version

Rules:

Segments are separated by . and - characters
Segments should be compared alphanumerically from the left-most segment

Digit-only segments should be left-padded with a space so that they have the same number of characters.

A leading v in a version string should be ignored
Semantic version syntax used to denote build information (as denoted by a +, e.g. +mybuild) should be ignored for comparisons.

Tests will fail until #22 is merged.

Looks like you may be developing against an older version of the codebase because you have some conflicts. I can review once resolved.


In the description window there is an unnecessary label 'Image' and the edit description button is not working

In the description window there is an unnecessary label 'Image' and the edit description button is not working
To Reproduce Steps to reproduce the behavior:
Go to the Description window and there you'll see the unnecessary label
Click on Edit Description and it would not work
See error
The label should be removed and the button should call the edit description window

Resolve on #10


Discussion forum installation scripts for Windows and Ubuntu

Introduce scripts to install discussion forums for Linux(Ubuntu) and Windows.

Going to add notes about the following:

Hot to enable Pravite forum.
How to support mention.


bug: The hand-written wrappers of the auto-generated interfaces with 'parent' argument hide it by implicitly substituting preconfigured project id

Auto-generated interfaces (under proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/) have required parameter 'parent' which is implicitly substituted with a project id which is detected from environment or credentials and do not allow explicitly define it via call arguments.

We need review all interfaces in Logging.java and modify *Option argument types to allow parent parameter.
And then we need to use the parameter with a project id from credentials to be used as a fallback if the parameter is omitted.

Downgrading priority to 3 since there are no developer requests to expose more customizations


Error when going to /hooks

I'm getting an error when going to /hooks. The route loads the data correctly but when I try to go to another route I get a blank page.
Here is the error I get in /hooks:
index.js:1446 Warning: An effect function must not return anything besides a function, which is used for clean-up.

It looks like you wrote useEffect(async () => ...) or returned a Promise. Instead, write the async function inside your effect and call it immediately:

useEffect(() => {
  async function fetchData() {
    // You can await here
    const response = await MyAPI.getData(someId);
    // ...
  }
  fetchData();
}, [someId]); // Or [] if effect doesn't need props or state

I was able to fix this error if I follow the suggestion described above. I just need to replace the following code in UsersWithHooks.js from:
useEffect(async () => {
	try {
		const response = await Api.getUsers();
		const json = await response.json();

		setData(json);
	} catch (e) {
		setError(e.message || 'Unexpected error');
	}

	setLoading(false);
}, []);

To:
useEffect(() => {
	async function fetchData() {
		try {
			const response = await Api.getUsers();
			const json = await response.json();

			setData(json);
		} catch (e) {
			setError(e.message || 'Unexpected error');
		}

		setLoading(false);
	}
	fetchData();
}, []);

My questions are:

I'm learning React right now and this was the better example about data fetching I found. Simple and straightforward. However since your article related to this example was made one year ago I wonder if this needs an update. Is this the most up to date way to fetch data in React?
Can you update this example with my fix to the issue? I can also make a PR if you want.

@fagnercarvalho, to be honest I didn't follow react news very close during the last half a year, but I think that examples from the article are mostly up to date and accurate. Example with hooks used to work, maybe it doesn't work with the latest version of the react.
I'd appreciate if you make a PR to fix it. I'm going to have a closer look this week.

@fagnercarvalho, it's warning, not an error. Everything works. I changed the code according your suggestion to get rid of warning.
Thanks a lot!


feat: implement scrollable volume slider

From Spotify & YouTube, I missed scrolling to change the volume, so I implemented it. I added one field to the config

with defaults

You can also invert the scroll direction by making the x or y field negative

Hi, thanks a lot! I'll be back to keyboard after a month of travels next week, so I'll jump on this asap.

What happened with this feature? :(


Needs MIT license

We need to add the MIT license to the project.

If no one has claimed this yet and it's all just about adding a licence.txt file with the MIT licence information inside, I'll take this on!

Should we close this issue since it has been added?


Profiles reset to default values when restarting the lobby

Describe the bug
After the recent update most of the Advanced Company items values are set to 0 and reset when leaving game. Tactical helmets, vests, headsets, lightning rods, flippers are all set to 0. If you set it to their default vaules and then restart the lobby or quit game the values get reset.
Also any variables get reset to the default ones, which seems to maybe correlate to the deadline bug as well
To Reproduce
Steps to reproduce the behavior:

Go to profile
Click on items
Scroll down to tactical helmet
It says 0
Go to the game tab
Global Multipliers Value is set to the default value
Go to any tab and everything resets

Expected behavior
If you set a variable in the profile it should persist through the game even if you restart the lobby not restart
Screenshots

Everyone is suffering this problem so far we spotted two other bug reports with the same issue.
https://github.com/FluffyFishGames/AdvancedCompany/issues/58 https://github.com/FluffyFishGames/AdvancedCompany/issues/59


Deleting a message

Describe the bug
Bug when trying to delete my own messages, inconsistent behavior between main messaging and thread messaging
To Reproduce

Go to https://feature-migrate-tiptap.test.cortezaproject.org/ as a non-admin user
Insert a text to the main chat
Insert a text to the thread
Try to delete your own message in a thread
You'll get a messaging.service.NoPermissionsin the error console and the message won't delete
Go back to the main chat and try to delete a message there > message will delete

Expected behavior

permission set should reflect on both - main message screen and inside thread
If I don't have permissions to delete my own messages, I shouldn't be able to see that option in the context menu
If I have a permission to delete my own messages, I should be able to do so in both - main

The same applies to "Edit message" so check if there's the same situation. behavior should be the same as stated above.

I just realized I'm actually an administrator so that's even weirder now...

Fixed with https://github.com/cortezaproject/corteza-server/commit/3c68b3b770f73f19b8a0ec90bc8bf98c2c712ad3