TER-327 updated makefile to include platform

Updated Makefile to harvest platform data from farm repo

For the record - here, I asked Christy to change the harvest sequence to run dependency and platform harvest first. The dependency & platform harvest are independent of the module harvest.
Inspiration: The platform harvest was failing but since the platform was previously getting harvested after module, we had to wait a lot to get module harvest done and then see the error of platform harvest and repeat.
In order to reduce the time to fail the platform harvest in case their is something wrong in the platform, we should run the dependency harvest and platform harvest first and then run rest of the module harvest process.


Is version 7.0.0 an official release?

Hi. Homebrew maintainer here.
We noticed that the 7.0.0 tag was pushed, but no release published on GitHub.
In general this is a sign that this is a pre-release and should not be used / the tag might still move.
We would like to confirm this with you before shipping 7.0.0 to our users.
See for reference: https://github.com/Homebrew/homebrew-core/pull/109531

Hi @iMichka
You are correct: 7.0.0 should not be shipped to Hoomebrew users yet.
I now realize that pushing tags can have this outcome, so in future I'll avoid pushing them until the moment of release!

Thanks, no issue. What you could to is tag it with "7.0.0-rc1" or "7.0.0-beta" (or something similar). The tag can later be dropped if you wish, or kept for historical reasons. We will not ship the update until a proper release has been created on your side.


Editions and suggestions: Jump section

We can use this draft pull request to collaboratively edit the book of seahtrue.

After our brainstorming session, we came up with this diagram:
Diagram
graph TB

subgraph R["R concepts"]
	Motivation --> Essentials --> Tidy
end

subgraph Essentials
	Documentation["Writing docs"]
	Help["Finding help"]
	Style
end

subgraph Tidy["The tidy way"]
	Pipes["Using pipes"] --> Plotting
end

subgraph Seahtrue["Seahtrue basics"]
	Functions --> Outputs
end

subgraph Advanced["Advanced Seahtrue"]
	Single["Single experiment"] --> Multiple["Multiple experiments"]
end

subgraph Surfing
	TBD["?"]
end

R --> Seahtrue --> Advanced --> Surfing

Proof-read the whole jump section.
Some rephrasings and clarifications.
Added some external materials in the summary.
Added a few TODOs


old macs require nginx workaround

this bug is a simplified version of https://github.com/twosigma/beaker-notebook/issues/398
old (2008 or earlier) mac laptops are not compatible with the nginx binary included in our distribution.
The symptom of this problem is that when you run Beaker, your web browser opens, but then it just says it cannot connect.
there are two workarounds:
Get nginx from brew, and copy it into the app bundle:
cd /Applications/Beaker.app/Contents/Resources/dist/nginx/bin/
cp /usr/local/bin/nginx .
cp /usr/local/lib/libpcre.1.dylib .

here are the instructions if you are using macports instead of brew:
Get nginx from ports (port install nginx), and copy it into the app bundle:
cd /Applications/Beaker.app/Contents/Resources/dist/nginx/bin
cp /opt/local/lib/libpcre.1.dylib  .
cp /opt/local/sbin/nginx .

the fix would be to get and use a more generic binary.

saw someone with a 2010 laptop get bitten...

we should compile nginx and its dependencies (pcre and openssl) with -mtune=generic and -march=pentium4.  but it's unclear to me how best to do that, i just tried "brew edit" and it rejects -march, unclear why.  -mtune was accepted but in the compile log there is an -march=native coming from somewhere and that's the problem.  we'll have to more severely hack the configure scripts, and to me that means our own forumla in our source repo.  also possible is using the bottled version, though i have yet to see any way to get it, and still have to determine why there is a different bottle for each OS version.  what happened to binary compatibility?????

Fix is suggested here: https://github.com/Homebrew/homebrew/issues/36111
already applied to our wiki which documents how to setup brew for beaker.
still need to confirm it works but it did appear to compile with -march=core2 which sounds good.

https://github.com/twosigma/beaker-notebook/wiki/Mac-build-and-run/bcebd53b960e8c8c398ef3de43631746c12a5667
confirmed by user


[LOC] Invalid link in an article

There is an invalid link in an article
Repro steps:

Go to https://docs.microsoft.com/en-us/microsoftteams/create-a-phone-system-call-queue?bc=/skypeforbusiness/breadcrumb/toc.json&toc=/skypeforbusiness/sfbotoc/toc.json
Search for "Assign Skype for Business licenses"
Click on the second link

Actual results:
Link is not working
Expected results:
Link should either work or be removed
GH article:
https://github.com/MicrosoftDocs/OfficeDocs-SkypeForBusiness/blob/live/Teams/create-a-phone-system-call-queue.md

@OfficeGlobal  Thank you for submitting feedback and contributing to the docs. We are currently investigating this.

@CarolynRowe feel free to merge PR and close this issue

@OfficeGlobal Thank you for submitting feedback. We understand that this issue has been resolved.
Please feel free to re-open this issue if there is a specific area of the docs that we can improve or make better. Thank you.

Hello,
Could you please take a look at this issue again ? The links still do not work.
Thank you.


WIP (do not merge yet): Export callback functions in R package (fixes #2479)

This PR fixes https://github.com/microsoft/LightGBM/issues/2479, i.e., it exports and documents the callback functions in R.
@jameslamb Currently, passing a list of callback functions to lgb.train() etc. does not yet work properly because the "old" parameters early_stopping_rounds, eval_freq etc. override the callback list. How should we deal with this?

Fully ignore the old parameters and only use the callback list with a deprecation warning.
Keep the old parameters and override them with the functions passed by callbacks. This will need a couple of changes in lgb.train(), lgb.cv(), lightgbm().

@jameslamb Thanks a lot for your detailed feedback and instructions. I am a bit short in time but will start to change the callback functions as you proposed in a separate PR. It definitively makes sense to get rid of the dots in those function names.

Thanks very much @mayer79 !
Take your time. I don't think exposing callbacks is something that needs to be done urgently...this effort will go as fast as you are able to put effort into it, and can be done at any time.

@mayer79 are you still interested in working on this feature?
If not, then we'll close this pull request so that others (or you in the future!) will know when they see #2479 that it's available to work on.

@jameslamb : I think we can close the PR for now, thanks for the remainder. We can pick up the ideas later.

Ok no problem. Thanks as always for your help with LightGBM!


ollama.ai certificate has expired, not possible to download models

What is the issue?
The ollama.ai certificate has expired today, ollama now can't download models:
ollama run mistral
pulling manifest
Error: pull model manifest: Get "https://registry.ollama.ai/v2/library/mistral/manifests/latest": tls: failed to verify certificate: x509: certificate has expired or is not yet valid: current time 2024-03-25T08:28:33+01:00 is after 2024-03-25T07:17:47Z

What did you expect to see?
You should be able to pull models using the ollama command.
Steps to reproduce
Try to pull a model.
Are there any recent changes that introduced the issue?
No response
OS
Linux
Architecture
amd64
Platform
No response
Ollama version
0.1.29
GPU
Nvidia
GPU info
No response
CPU
No response
Other software
No response

Could it be a validation bug? One time is UTC, the other one is not and the error says that the time is in the future basically.
It's clear that one has Z (UTC) the other one does not.

Could it be a validation bug? One time is UTC, the other one is not and the error says that the time is in the future basically. It's clear that one has Z (UTC) the other one does not.
This "current time 2024-03-25T08:28:33+01:00 is after 2024-03-25T07:17:47Z" is obviously not true. (I'm having the exact same issue now and it will probably go away in a couple of hours once the time zone difference does not produce this effect any more).

2024-03-25T08:28:33+01:00 is equal to 2024-03-25T07:28:33Z ... 07:28 > 07:17. this is not about timezones, the certificate really has expired just a few minutes ago. we'll need to wait until an admin of the service can update the certificate.

Could it be a validation bug? One time is UTC, the other one is not and the error says that the time is in the future basically. It's clear that one has Z (UTC) the other one does not.
This "current time 2024-03-25T08:28:33+01:00 is after 2024-03-25T07:17:47Z" is obviously not true. (I'm having the exact same issue now and it will probably go away in a couple of hours once the time zone difference does not produce this effect any more).

2024-03-25T08:28:33+01:00 is equal to 2024-03-25T07:28:33Z ... 07:28 > 07:17. this is not about timezones, the certificate really has expired just a few minutes ago. we'll need to wait until an admin of the service can update the certificate.

you are right, was thinking about beginning dates not end dates... my bad

I downloaded only this morning, was able to successfully download mistral, then went to download gemma and hit this error

I am also facing this error:
ollama run llama2
pulling manifest
Error: pull model manifest: Get "https://registry.ollama.ai/v2/library/llama2/manifests/latest": tls: failed to verify certificate: x509: certificate has expired or is not yet valid: current time 2024-03-25T13:43:33+06:00 is after 2024-03-25T07:17:47Z

I am also facing the same error when pulling models.

i hit this error too,waiting.....

me too

+1

Not really helpful, I guess, but I am facing the issue as well.

waiting...

same here.

Please refrain from commenting "+1", "waiting," "me too," "same here," or any derivative thereof; instead, please like the original post! The comments should be used to add useful contributions.

@Officialstrike is it possible to bypass this warning/error by some --force command or changing timezone temporarily?

Current temporary workaround: set your clock a couple of hours before Mon, 25 Mar 2024 07:17:47 GMT.

sudo systemctl stop systemd-timesyncd
sudo date -s '-2 hours'
To turn your clock back on Ubuntu

@Officialstrike is it possible to bypass this warning/error by some --force command or changing timezone temporarily?

Yes, see my earlier comment about setting your clock backwards

Thanks it worked for me!

I figured that  workaround would be to change the date to before 2024-02-09T20:53:22Z
but still i cannot pull any models.....
pulling manifest
Error: pull model manifest: 401

sudo systemctl stop systemd-timesyncd sudo date -s '-2 hours'
To turn your clock back on Ubuntu

The method was incredible but it did solve the problem!! 😀

I am waiting

same here.
Waiting.

Please refrain from commenting "+1", "waiting," "me too," "same here," or any derivative thereof; instead, please like the original post! The comments should be used to add valuable contributions, and liking the original post makes it clear that you are also affected.

repost (so please are setting it)

same:
ollama run gemma
pulling manifest
Error: pull model manifest: Get "https://registry.ollama.ai/v2/library/gemma/manifests/latest": tls: failed to verify certificate: x509: certificate has expired or is not yet valid:

same too:
ollama run starcoder
pulling manifest
Error: pull model manifest: Get "https://registry.ollama.ai/v2/library/starcoder/manifests/latest": tls: failed to verify certificate: x509: certificate has expired or is not yet valid:

same too:
ollama run starcoder pulling manifest Error: pull model manifest: Get "https://registry.ollama.ai/v2/library/starcoder/manifests/latest": tls: failed to verify certificate: x509: certificate has expired or is not yet valid:

Stop commenting that, it won't fix the issue

Guys, seriously - you need to either manage and renew your certificates on time, or configure some automation for that (certbot / whatever).

Please refrain from commenting "+1", "waiting," "me too," "same here," or any derivative thereof; instead, please like the original post! The comments should be used to add valuable contributions, and liking the original post makes it clear that you are also affected.
repost (so please are seeing it)

same here

same

sudo systemctl stop systemd-timesyncd
sudo date -s '-2 hours'
solves this

sudo systemctl stop systemd-timesyncd sudo date -s '-2 hours' solves this

itworks !!

macos -2 hours really works ,thanks

Also works on Windows 11 when manually changing the time through system settings. Thanks, downloading right now :)

wind 10 work, -2 hours really works ,thanks

root@DESKTOP-ShawnMing:/home/shawn# timedatectl
Local time: Mon 2024-03-25 16:51:35 CST
Universal time: Mon 2024-03-25 08:51:35 UTC
RTC time: Mon 2024-03-25 08:51:35
Time zone: Asia/Shanghai (CST, +0800)
System clock synchronized: yes
NTP service: inactive
RTC in local TZ: no                   i used the commands above ,System clock synchronized status is still yes,why?

root@DESKTOP-ShawnMing:/home/shawn# timedatectl Local time: Mon 2024-03-25 16:51:35 CST Universal time: Mon 2024-03-25 08:51:35 UTC RTC time: Mon 2024-03-25 08:51:35 Time zone: Asia/Shanghai (CST, +0800) System clock synchronized: yes NTP service: inactive RTC in local TZ: no i used the commands above ,System clock synchronized status is still yes,why?

ok ,my fool,i have finished it

Current temporary workaround: set your clock a couple of hours before Mon, 25 Mar 2024 07:17:47 GMT.

Setting it around 25th March 7: 20 AM IST is only working, and when i tried any other time, its giving the below error
Error: pull model manifest: 401

Current temporary workaround: set your clock a couple of hours before Mon, 25 Mar 2024 07:17:47 GMT.

Setting it around 25th March 7: 20 AM IST is only working, and when i tried any other time, its giving the below error
Error: pull model manifest: 401
Do not increase the offset to more than a few hours. I tried two days first and it did not work.

Current temporary workaround: set your clock a couple of hours before Mon, 25 Mar 2024 07:17:47 GMT.

Setting it around 25th March 7: 20 AM IST is only working, and when i tried any other time, its giving the below error
Error: pull model manifest: 401

It is important you change your system clock, not your visual clock!

Come on. Somebody fix it! This is the first time I have tried LLama. I even thought it was my fault to cause the error.

oh, my god, it's terrible.

the same problem

sudo date -s '-2 hours'

At first, it had an effect. However, about halfway through the download, the error was reported again. And then re-execute, still error

Just remove some more hours, the certificate expired at 7:19 (UTC) this morning. It will work till you are earlier on your system.

thanks! it is work

same issue here ...

same issue here

no fix yet

sudo date -s '-2 hours'

At first, it had an effect. However, about halfway through the download, the error was reported again. And then re-execute, still error

Just remove some more hours, the certificate expired at 7:19 (UTC) this morning. It will work till you are earlier on your system.

thanks! it is work

no it doesn't work

@DevRaeph
@XiandanErizo
you can set back your system clock to trick your system into thinking that the certificate is still valid. the certificate expired at 7:19 (UTC).
this is a workaround until the system administrators renew the certificate.

@DevRaeph @XiandanErizo
you can set back your system clock to trick your system into thinking that the certificate is still valid. the certificate expired at 7:19 (UTC). this is a workaround until the system administrators renew the certificate.

I tried that on wsl 2 but it didnt fix it

it works on 1:43 am 03/25/2024

@DevRaeph @XiandanErizo
you can set back your system clock to trick your system into thinking that the certificate is still valid. the certificate expired at 7:19 (UTC). this is a workaround until the system administrators renew the certificate.

I tried that on wsl 2 but it didnt fix it

have you tried setting the windows system clock? in your settings.

sudo date -s '-2 hours'

At first, it had an effect. However, about halfway through the download, the error was reported again. And then re-execute, still error

Just remove some more hours, the certificate expired at 7:19 (UTC) this morning. It will work till you are earlier on your system.

thanks! it is work

no it doesn't work

i dont know why you not work, it does work, i  change -2 to -10  make sure time early the 7:19 (UTC)  。"sudo date -s '-10 hours'"。 hope for help you

I think the issue is that the registry pulls from ollama.ai and not ollama.com and that is with the latest docker container image

@DevRaeph @XiandanErizo
you can set back your system clock to trick your system into thinking that the certificate is still valid. the certificate expired at 7:19 (UTC). this is a workaround until the system administrators renew the certificate.

I tried that on wsl 2 but it didnt fix it

have you tried setting the windows system clock? in your settings.

was trying that rn and now it works

Also --insecure is not working:
> ollama pull mistral --insecure
pulling manifest
Error: pull model manifest: Get "https://registry.ollama.ai:443/v2/library/mistral/manifests/latest": tls: failed to verify certificate: x509: certificate has expired or is not yet valid: “ollama.ai” certificate is expired

According to the help, it should be able to ignore the expired certificate:
> ollama pull --help
Pull a model from a registry

Usage:
  ollama pull MODEL [flags]

Flags:
  -h, --help       help for pull
      --insecure   Use an insecure registry

Environment Variables:
      OLLAMA_HOST        The host:port or base URL of the Ollama server (e.g. http://localhost:11434)

Is there a solution other than changing the system time? :-)

I don't want to change my system time, is there any other workaround?

The problem seems solved for me

how to solve it?

I fixed by setting the system clock to 6:36 UTC 25 March 2024

New problems have arisen.
···
ollama run qwen:14b
pulling manifest
Error: pull model manifest: Get "https://registry.ollama.ai:443/v2/library/qwen/manifests/14b": stopped after 10 redirects
···

same problem here
ollama pull llama2
pulling manifest
Error: pull model manifest: Get "https://registry.ollama.ai:443/v2/library/llama2/manifests/latest": stopped after 10 redirects

Certificate seems updated, now i get
pull model manifest: unauthorized

Certificate seems updated, now i get pull model manifest: unauthorized

facing the same issue

updated: now is the following error displayed.
pull model manifest: 500

Had this issue but it is working for me now,

Update: I am able to pull the models successfully now

guys after i changed the time new error apears "pull model manifest: unauthorized" and i solve it simply by restart my computer now it's downloading

I'm still getting unauthorized
$ ollama pull llava:7b
pulling manifest
Error: pull model manifest: unauthorized

pulling manifest
Error: pull model manifest: file does not exist

Guys, it's working. Certificate issue was fixed. Whatever other issues you have must be something specific to your ISP or caches or other things. I'm just pulling some models for test right now just fine (see previous morning and now).

Hi everyone, this should be fixed now. I'll leave this issue open for a bit longer and provide a longer explanation on what happened here soon (we don't take availability issues like this lightly). Please let me know if you're seeing any more issues!

sudo systemctl stop systemd-timesyncd sudo date -s '-2 hours'
To turn your clock back on Ubuntu

but how to fix this issue? :(

Hi there,
is there anything i need to do - i still get the mentioned ssl error.
This it what it looks like if i put the download link in a browser:

Kind regards
Erik

It works fine for me, now (ollama run correctly pulls models). Maybe you guys need to clear some caches / restart the machine.

Fixed, I'm waiting 8 hours without efforts and ran again pull

kill ollama serve and restart serve multi times, then run again

sudo systemctl stop systemd-timesyncd sudo date -s '-2 hours'
To turn your clock back on Ubuntu

Tried but with no luck, I am changing inside a Docker, not the ollama one, the Ubuntu 22.04

how to resolve this issue:
(base) root@toolsvm:/var/www/html/playground/ollama# ollama pull dolphin-llama3 --insecure
pulling manifest
Error: Head "https://dd20bb891979d25aebc8bec07b2b3bbc.r2.cloudflarestorage.com/ollama/docker/registry/v2/blobs/sha256/ea/ea025c107c1c3e5a87380b25e205db3b19a4d2ed56f1954f531573a963621580/data?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=66040c77ac1b787c3af820529859349a%!F(MISSING)20240615%!F(MISSING)auto%!F(MISSING)s3%!F(MISSING)aws4_request&X-Amz-Date=20240615T114017Z&X-Amz-Expires=1200&X-Amz-SignedHeaders=host&X-Amz-Signature=66ecd8cd6dfd1c992ba8f5e6bbd27e51f56663bcd8c7ffdf7ecb9f1ed7387b3b": tls: failed to verify certificate: x509: certificate signed by unknown authority
(base) root@toolsvm:/var/www/html/playground/ollama#  ollama pull llava:7b
pulling manifest
Error: Head "https://dd20bb891979d25aebc8bec07b2b3bbc.r2.cloudflarestorage.com/ollama/docker/registry/v2/blobs/sha256/17/170370233dd5c5415250a2ecd5c71586352850729062ccef1496385647293868/data?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=66040c77ac1b787c3af820529859349a%!F(MISSING)20240615%!F(MISSING)auto%!F(MISSING)s3%!F(MISSING)aws4_request&X-Amz-Date=20240615T114123Z&X-Amz-Expires=1200&X-Amz-SignedHeaders=host&X-Amz-Signature=2714941a56fd1fd1fe617dcff5223ca9bdd6cdd91ddc9516312ed92cb872cff7": tls: failed to verify certificate: x509: certificate signed by unknown authority
(base) root@toolsvm:/var/www/html/playground/ollama#

Hi everyone, this should be fixed now. I'll leave this issue open for a bit longer and provide a longer explanation on what happened here soon (we don't take availability issues like this lightly). Please let me know if you're seeing any more issues!

The problem persists.
I managed to install ollama version 0.1.47 with a workaround (https://github.com/ollama/ollama/issues/5330).
But, subsequent ollama pull commands fail with "tls: failed to verify certificate: x509: certificate signed by unknown authority".
And the --insecure option has no effect (e.g: ollama pull phi3 --insecure).


Limit number of selectable dates when selecting range of dates

I didn't find a way to achieve this. So the idea is to limit the number of selectable dates when picking a range of dates (in my situation I want to limit it to 365 dates).  So the user can pick only a span of dates of max 1 year.
I don't know if this is possible, if it's not, it would be a great feature to have.

@draxx318
Hey :) Have you solved this in any way?

@draxx318
Hey :) Have you solved this in any way?

@draxx318
I did it this way:
import { add, min } from 'date-fns';
...
const onRangeChange = range => {
  if ( maxDays && range[1] ) {
    //  Determine the max date
    const maxDate = add( new Date(range[0]), { days: maxDays } );
    //  So, choose between max value and actual value
    range[1] = min([new Date(maxDate), new Date(range[1])]);
  }

  setRange(range);
};

Mb you already did this yourself :) In any case, hope this bit above helps someone

@draxx318
I did it this way:
import { add, min } from 'date-fns';
...
const onRangeChange = range => {
  if ( maxDays && range[1] ) {
    //  Determine the max date
    const maxDate = add( new Date(range[0]), { days: maxDays } );
    //  So, choose between max value and actual value
    range[1] = min([new Date(maxDate), new Date(range[1])]);
  }

  setRange(range);
};

Mb you already did this yourself :) In any case, hope this bit above helps someone

@Dupflo
Sorry it took so long to reply :) Basically, this is a simplified component with range limiting
import { add, min, startOfDay, endOfDay } from 'date-fns';

const DatePickerLimitRange = ({ maxDays }) => {
  const [range, setRange] = useState(inputRange);

  const onRangeChange = range => {
    if ( maxDays && range[1] ) {
    //  Determine the max date
      const maxDate = add( range[0], { days: maxDays } );
      //  Then, choose between max value and actual value
      range[1] = min([ maxDate, range[1] ]);
    }

    // Ensure that we include info from the start of the day
    range[0] = startOfDay( range[0] );

    if ( range[1] ) {
      // Ensure that we include info until the end of the day
      range[1] = endOfDay( range[1] );
    }

    setRange(range);
  };

  return (
    <DatePicker
      selected={range[0]}
      startDate={range[0]}
      endDate={range[1]}
      onChange={onRangeChange}
      selectsRange
      inline
    />
  );
}

// Usage
<DatePickerLimitRange maxDays={ 7 } />

You can limit the allowed days, using the minDate and maxDate props of the DatePicker.
So, if the endDate is still null (the user have only selected the start date), you can limit the maxDate to be inside the desired max range. Therefore, the user won't be able to select a longer range.
After the endDate is selected, you can change again the maxDate to the regular period (maybe "today" date).
const currentDate = new Date();
let maxDate;

if (endDate) {
  // the endDate is already selected, so show the regular period
  maxDate = currentDate;
} else {
  // EndDate is being selected (it's still "null"). So, disable the the dates outside the range limit.
  const rangeMaxDate = add( new Date(), { days: 7 } );
  maxDate = rangeMaxDate > currentDate ? currentDate : rangeEnd; // use the rangeMaxDate, but keep the regular period limit
}

return (
  <DatePicker
    selected={startDate}
    startDate={startDate}
    endDate={endDate}
    maxDate={maxDate}
    onChange={onChange}
    selectsRange
    inline
  />
);

Here, just to upvote

Could you please answer it will be implement or no?


Constants: Max Demand Interval

If this can be labeled MaxDemandResetInterval or MaxDmdResetInt I think it would be more clear what it does.

MaxDemandReset?  I checked, it was MaxDemandResetInterval to start with. Even with my liking for descriptive names in this library, that seems much but will do if appropriate.  It can also have a note saying that MaxDemandPeriod is the droid they are looking for.  Thoughts?

I think MaxDemandReset should be fairly clear, since it’s associated
with Monthly, weekly, Daily, and Hourly.
EKM Metering, Inc
www.ekmmetering.com
831-247-4740
On 29 Mar 2016, at 19:45, jessicalh wrote:

MaxDemandReset?  I checked, it was MaxDemandResetInterval to start
with. Even with my liking for descriptive names in this library, that
seems much but will do if appropriate.  It can also have a note saying
that MaxDemandPeriod is the droid they are looking for.  Thoughts?

You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub:
https://github.com/jessicalh/ekmmeters/issues/4#issuecomment-203212144

MaxDemandReset was taken by the equivalent of the Dash Now button (next to the interval setting).   This was the original reason for "MaxDemandInterval" as a name. Since that is not OK.. MaxDemandReset is changed to MaxDemandResetIntervalNow and MaxDemandInterval is set to MaxDemandResetInterval

This nomenclature is still confusing, to me. I'm not sure if you fully understand what these settings are doing, or if you got off on the wrong foot because of the Now button in Dash. Maybe this will help clear this up:
If the Reset Max Demand is executed, that means that whatever the max demand wattage is, and it's something that changes over time depending on demand, it gets set to zero.
Setting Max Demand Interval sets the size of the time window that the max demand measurement uses, 15 min, 30 min, etc.
Setting Max Demand Reset Interval changes the Reset Max Demand from manual to automatic, and determines how often Reset Max Demand gets triggered.
So, calling Reset Max Demand "MaxDemandResetIntervalNow" sounds like setting Max Demand Reset Interval, but it's not. It's really Reset Max Demand.


[minizip] unresolved external symbols when linking bzip2 functions

Describe the bug
In ports\minizip\portfile.cmake:
if ("bzip2" IN_LIST FEATURES)
    file(GLOB HEADERS "${CURRENT_PACKAGES_DIR}/include/minizip/*.h")
    foreach(HEADER ${HEADERS})
        file(READ "${HEADER}" _contents)
        string(REPLACE "#ifdef HAVE_BZIP2" "#if 1" _contents "${_contents}")
        file(WRITE "${HEADER}" "${_contents}")
    endforeach()
endif()

For x64-windows, It patches files in vcpkg/packages/minizip_x64-windows/include/minizip/, the files in installed are not patched.
Results in link error
minizip.lib(unzip.c.obj) : error LNK2019: unresolved external symbol __imp_BZ2_bzDecompressInit referenced in function unzOpenCurrentFile3
minizip.lib(unzip.c.obj) : error LNK2019: unresolved external symbol __imp_BZ2_bzDecompress referenced in function unzReadCurrentFile
minizip.lib(unzip.c.obj) : error LNK2019: unresolved external symbol __imp_BZ2_bzDecompressEnd referenced in function unzCloseCurrentFile

Environment

OS: Windows
Compiler: msvc

For x64-windows, It patches files in vcpkg/packages/minizip_x64-windows/include/minizip/, the files in installed are not patched

that is intentional and correct as explained in #18456

For x64-windows, It patches files in vcpkg/packages/minizip_x64-windows/include/minizip/, the files in installed are not patched

that is intentional and correct as explained in #18456

But the installed files are not patched

But the installed files are not patched

They don't need to. They will be copied. (and they are patched....according to thsi screenshot)

But the installed files are not patched

They don't need to. They will be copied. (and they are patched....according to thsi screenshot)

Sorry, you are right.


SSL = it does not work

Hi
I try this CHAT, it is very good with HTTP
I try SSL, but it doesn´t work, i changed in config.json:
Before:
"ssl": {
"use": true,
"key": "/certificate.key",
"cert": "/certificate.crt"
After:
"ssl": {
"enabled": true,
"key": "/certificate.key",
"cert": "/certificate.crt"
It start the CHAT but in Google Chrome, it function with HTTP, not HTTPS
Can you give me one answer for SSL?
Thanks.

Can you please elaborate a little bit more on what is going wrong exactly? Any specific error? Is it accessible at https://[link_here], or not accessible at all? Have you double checked the file names and the certificate itself?

Does it still not work?

Closing for lack of activity.


:zap: test improvement

As per the introduction ofr hurl there is some missing changes to be done :

[x] README file is incorrect as still mentionning jest
[x] package.json dependencies is obsolete

we need to have a proper way documenting how to run hurl locally to execute tests

https://github.com/SaaShup/netbox-docker-agent/pull/104

Merged


test

Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior:

Go to '...'
Click on '....'
Scroll down to '....'
See error

Expected behavior
A clear and concise description of what you expected to happen.
Actual behavior
A clear and concise description of what actually happens.
Screenshots
If applicable, add screenshots to help explain your problem.
Environment
Desktop (please complete the following information):

OS: [e.g. iOS]
Browser [e.g. chrome, safari]
Version [e.g. 22]

Smartphone (please complete the following information):

Device: [e.g. iPhone6]
OS: [e.g. iOS8.1]
Browser [e.g. stock browser, safari]
Version [e.g. 22]

Additional context
Add any other context about the problem here.

Ok


Bazel based projects not present in Java project selection

We have a large monorepo with different languages and using Bazel as our build system. I have installed the plugin, added a WORKSPACE file with (workspace(name="example"))  and a .eclipse/.bazelproject with :
directories:
  lib/common_java

derive_targets_from_directories:

targets:

lib/common_java is just one of our folders with a BUILD.bazel file and asrc/main/java folder.
When I restart vscode with the plugin enabled (the Prerelease version 😄), it does not intercept the project setup workflow when I open a .java inside of lib/common_java. The java extension pack wants to only add .gradle or maven files, and we migrated away from the former.
It also adds a large section of files.exclude to my .vscode/settings.json (even with bazel.projectview.updateFileWatcherExclusion": false) which is unfortunate.

I am also not certain of what debug information I can provide for you, AFAIU, there isn't a dedicated output window for this plugin.

derive_targets_from_directories is set to true?
Can you check the log files? Have you seen the troubleshooting doc here?

Yes, sorry that was a copy and paste error; I was trying to figure out the right arguments for that file. When I first open up code, I am greeted by

If I Import All nothing comes up in Java Projects but if I select (and this is after Java: Clean Language Server Workspace ) Let Me Select... I only see the projects that we have vendored into our codebase, and their gradle files. (We do not use the Java there directly, it just gets distributed with their repo alongside C stuff we do use), but not our Bazel defined Java projects.
Wrt to the trouble shooting doc, yes I've tried various things from it. The first step is not working though as we are not getting a Java Projects tab. Interestingly, I also tried https://github.com/salesforce/bazel-vscode-java/blob/main/docs/troubleshoot.md#maven-or-gradle section and java.import.bazel.enabled section is not recognized by VSCode plugin as a valid setting. Which is more evidence that somehow my install is not functioning correctly.
What should I look at next? Thank you!


Removed Accessories, added independent grid

I messed something up with the merge and the solmate lib is not resolving from within VRDA. Can you take a look @wpapper ?

@ipatka Build is fixed! I'll review the PR soon.


Invalid aud claims

Describe the bug
The aud claim of our id tokens do no longer contain the client ids of our applications in the project and therefore, the UI can no longer authenticate to the backend service (as it validates the aud claim).
To Reproduce
Steps to reproduce the behavior:

Get a token
read the aud claims
compare with the client ids of the apps in the respective project

Expected behavior
The aud claim contains our client ids

hi @astriffe
Thanks for your report.
We just published the error on our status page: https://status.zitadel.ch/

Hi @astriffe
We just deployed our fix. Can you test it again and give us some feedback?

Thanks @fgerschwiler, seems to be working as expected again 👍


Problems with model performance

I attempt to train the encodec model on a 16kHz dataset with about 50000 waveforms. I am training on 8 gpus on 2 machines. I use tensor_cut = 65536, batch_size = 32(each gpu), ratios = [8,5,4,4], and lr = 5e-5. (Other configs set as default.) The model loss can converge to about the following values:
2024-07-13 17:12:10,985: INFO: [train_with_torchrun.py: 146]: Epoch 100 120/120	Avg loss_G: 8.3933	Avg losses_G: l_t: 0.0886	l_f: 5.9251	l_g: 0.5467	l_feat: 0.2731	Avg loss_W: 0.1236	lr_G: 5.306871e-06	lr_D: 5.306871e-06	loss_disc: 1.8721
2024-07-13 17:12:39,658: INFO: [train_with_torchrun.py: 165]: | TEST | epoch: 100 | loss_g: 6.761796489357948 | loss_disc: 1.8528

But the reconstructed audio is horrible. I would like to ask whether these loss values can properly indicate that the model can fit the dataset? Also, are there any issues with my config, and are there any other considerations for setting the config? Thank you!

Meanwhile, I wonder how we synchronize the EMA update of the codebook in multi-gpus. I haven't found any relevant parts in the code.

I see. I think you should increase your learning rate (3e-4 or 1e-3).
And could you tell me why you change the ratios from [8,5,4,2] to [8,5,4,4] ? It means the encoder have 640x downsample rate and it could loss many audio informations.

If you have 50000 waveforms, maybe overfit ?

I see. I think you should increase your learning rate (3e-4 or 1e-3). And could you tell me why you change the ratios from [8,5,4,2] to [8,5,4,4] ? It means the encoder have 640x downsample rate and it could loss many audio informations.

Thank you. I have tried 3e-4 and waiting for the result. I changed the ratios in order to compare encodec with other compression methods at an equal compression rate.

I see. I think you should increase your learning rate (3e-4 or 1e-3). And could you tell me why you change the ratios from [8,5,4,2] to [8,5,4,4] ? It means the encoder have 640x downsample rate and it could loss many audio informations.

Thank you. I have tried 3e-4 and waiting for the result. I changed the ratios in order to compare encodec with other compression methods at an equal compression rate.

yeah,maybe the compression rate is so large that decrease model's performance. BTW, multi gpu codebook update you can check https://github.com/ZhikangNiu/encodec-pytorch/blob/c6b6de91c4bfeb8582b5e51f1a8b599e04b7d860/quantization/core_vq.py#L157

I see. I think you should increase your learning rate (3e-4 or 1e-3). And could you tell me why you change the ratios from [8,5,4,2] to [8,5,4,4] ? It means the encoder have 640x downsample rate and it could loss many audio informations.

Thank you. I have tried 3e-4 and waiting for the result. I changed the ratios in order to compare encodec with other compression methods at an equal compression rate.

yeah,maybe the compression rate is so large that decrease model's performance. BTW, multi gpu codebook update you can check
https://github.com/ZhikangNiu/encodec-pytorch/blob/c6b6de91c4bfeb8582b5e51f1a8b599e04b7d860/quantization/core_vq.py#L157

I have two questions regarding this. Firstly, in the original code these two lines are commented, and why doesn't it affect performance? Second, the buffers are only broadcasted in the initialization and after expiration, but during normal EMA optimization (self.ema_inplace) I don't see any broadcast. In my understanding the codebook vectors will move differently on different gpus due to different data.

I see. I think you should increase your learning rate (3e-4 or 1e-3). And could you tell me why you change the ratios from [8,5,4,2] to [8,5,4,4] ? It means the encoder have 640x downsample rate and it could loss many audio informations.

Thank you. I have tried 3e-4 and waiting for the result. I changed the ratios in order to compare encodec with other compression methods at an equal compression rate.

yeah,maybe the compression rate is so large that decrease model's performance. BTW, multi gpu codebook update you can check
https://github.com/ZhikangNiu/encodec-pytorch/blob/c6b6de91c4bfeb8582b5e51f1a8b599e04b7d860/quantization/core_vq.py#L157

I have two questions regarding this. Firstly, in the original code these two lines are commented, and why doesn't it affect performance? Second, the buffers are only broadcasted in the initialization and after expiration, but during normal EMA optimization (self.ema_inplace) I don't see any broadcast. In my understanding the codebook vectors will move differently on different gpus due to different data.

I think it actually use the GPU 0 codebook
I think your understanding is correct. BTW, you can double check different GPU codebook weight during training.


[Macros] Add support for wasm plugins

This PR implements the driver portion of support for Wasm Macros in Swift. The frontend requires the driver's help to locate swift-wasm-plugin-server, which we obtain in a similar fashion to the existing swift-plugin-server.
Counterpart to https://github.com/apple/swift/pull/73031 — will mark this as a draft until that PR lands but would appreciate input on the approach here (is explicitly passing -wasm-plugin-server-path the right approach or should we do something different?)

@DougGregor order should now be fixed, plus a test to verify that 🫡


请支持3.2x   Please support 3.2x

请支持3.2x
Please support 3.2x

Support for 3.1 and 3.2 should be coming when RenderMan 25 comes out. Blender 3.1 and 3.2 requires us to recompile our python modules using python 3.10.


fix(all workshops): removed region from console links

Summary
This PR removes us-west-2. from all links since the region is not specified in the workshop and may cause issues for users that choose to implement the workshops in another region.

Fixes #253

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Need to merge https://github.com/aws-samples/aws-cdk-intro-workshop/pull/256 to fix Semantic Rules Check from blocking the merge button.

@peterwoodworth Mind giving this one another 👍🏻 ? I had to rebase off master.


is Dbeaver  support arm platform currently?

Help
currently, ecplise has runned on arm successfly (down from deepin system)。Dbeaver， please tell me  how to build to support arm ?
thanks.

System information:

Operating system (distribution) and version
DBeaver version

Connection specification:

Database name and version

Describe your question:

ARM and i686 deb will be useful. What about auto generating for release of DBeaver?

I mean that if i want to run dbeaver on arm，how should i do it.
Cuerrently, the binary executable files generated by Dbeaver are support x86，x86_64  etc, without arm.
I see #552.  #552 says that ecplise running on arm not available on the eclipse.org web site.
One question more ?  Based on ecplise supporting arm,  whether the dbeaver suporting arm can be obtained?  if possible, how and what todo ?
Thanks.

Now we have Eclipse plugin only.
Please reopen the ticket or create a new one if you have any questions.

While the Beaver MacOS ARM build installs and launches correctly, it errors out when trying to query a table in Snowflake. It complains about the JDBC driver (despite updating it to be the latest) and says "cannot fetch due to max row count" -- I'm paraphrasing since I don't remember the exact error.
When I replaced it with the Intel x86 version on my M1 MacBook Pro, it works fine to query a table in Snowflake.
So I believe there are still some errors to be patched with the MacOS M1 Arm version for Snowflake specifically.
Thanks

你好，邮件已收到。谢谢联系！


Added Icons

Added different resolution Icons
Added *.ico-File
Added Icon to Browser
Changed ReadMe.md

Still to do

I don't know how to get the ico-File into Nuget, so maybe there has to be done something. Regarding the info I found we should use 128 x 128- Pixel File. I updated  the small Icon to match this spec.

Screenshots

Closes
Closes #174

Looking good! But you should update line 4 and 15 in Directory.build.targets as well, as that is dependent on resources/logo_small.png, which this PR deletes.

@jizc this is replaced but not deleted. So I don't get your point.

My apologies, I read the changes wrong! 😅


animation either not playing or not playing fully

Describe your problem here.
I have scoured the internet and Have not seen anyone answer this I am using an event to play an animation but it won't play fully please help anything please.
Are you modding a build from source or with Lua?
Lua
What is your build target?
Windows x64
Did you edit anything in this build? If so, mention or summarize your changes.
No

nvm its not waiting just ignoring the function


DOM selection fails when the query is too long

On http://textofvideo.nptel.iitm.ac.in/indiv_courses.php?id=101
document.querySelectorAll("body > table > tbody > tr:nth-child(2) > td > table > tbody > tr:nth-child(1) > td:nth-child(2) > table > tbody > tr:nth-child(3) > td > table > tbody > tr > td:nth-child(2) > table > tbody > tr:nth-child(4) > td:nth-child(2) > table > tbody > tr > td > table > tbody > tr:nth-child(3) > td")
would not return be any results via casperjs, even though it works fine on the web browser.
The problem seems to be with the length of the query because
document.querySelectorAll("body > table > tbody > tr:nth-child(2) > td > table > tbody > tr:nth-child(1) > td:nth-child(2) > table > tbody > tr:nth-child(3) > td > table > tbody > tr")
works fine.
I found a similar bug with __utils__.getElementByXPath
The workaround for me was to first use querySelector() and then use getElementsByTagName()

Could you share a minimal working example?

As part of a cleanup effort:
Looks to be a stale help request. Assuming you've moved on to better and cooler things.  Please feel free to re-open if this is still an active issue for you and we'll try our best to help out.


[Bug]: Row Formulae Output Disappears on Pagination

Contact Details
What happened?
I have a formula column with a row formula that calculates a result per row based on the values in another column of rollup type. The results appear in the rollup column, but when paging through the table and paging back, the results in that column disappear as if the formulae have not been calculated on returning to that page.
What platform were you using?
Mobile
Version of the plugin
3.3.0-beta
Relevant log output
No response
Are you using the latest version of the plugin in your Obsidian vault?

[X] I have verified that I am on the latest version

Are you check if there is a similar issue?

[X] I have verified that there are not similar issues

Hello @be-studio ,
Could you confirm if this happens with the last official version? (3.3.0) I could not reproduce the problem

I have also encountered this issue. Almost exactly the same as you.
FYI, it only  happens when the formula column is not empty in the original files. So if you turn on the "Persist formula output" setting it will trigger this issue.

I have also encountered this issue. Almost exactly the same as you. FYI, it only happens when the formula column is not empty in the original files. So if you turn on the "Persist formula output" setting it will trigger this issue.

This happens even without persisting.

I will investigate this case. Added to the roadmap

I will investigate this case. Added to the roadmap

All the formula related bugs came to existence after the 3.1.3 release. I'm still using this version without any problem. They seem to be related. Diffing the 3.2.0 with 3.1.3 might give us a clue.

sorry for the inconvenience @uroybd , too much work this months...
fixed for the next version. Was a bad positioned condition before the renderMarkdown


ToDo: check for plugins directory before adding platform

Many projects ignore plugins and platforms directories. Missing plugins will prevent us from adding a platform. We should check for the plugins dir and add it if it's missing before adding a platform.

@diegonetto's generator-ionic has that hook already can it be incorporated into ionic-cli? Here is the link https://github.com/diegonetto/generator-ionic/blob/master/templates/hooks/before_platform_add/init_directories.js
Also another feature that generator ionic has is when you add a platform, the Cordova plugins that are listed in package.json are added automatically! https://github.com/diegonetto/generator-ionic/blob/master/templates/hooks/after_platform_add/install_plugins.js

@softBarbarian - I've added a few hooks from @diegonetto for initing directories, keeping tracking of plugins, and installing them on platform add. Should be going out in 1.3.3.


Add Help button on top row of app

Added a "Help" button/link to the right edge of the header.
Closes #809.

Woohoo, thanks for the contribution! Can you attach a screenshot of what it looks like?
Check out https://lbry.io/faq/tips
:)

Sure thing - I probably should've included it in the initial PR request:

The header is definitely getting a little crowded, but this will be nice to have until we decide how we what icons should go/stay.
Thanks for the contribution!

@ohwaitingtx thanks for this! Have you seen our contributing doc?

@liamcardenas we took care of it already, sent a tip :)

@tzarebczan that's good, im glad he was compensated, but this didn't have a help wanted tag so I'm wondering why he chose it. Maybe the document wasn't clear.
I don't know if we want to add anything more to the top bar. I left this issue here because I was hoping we could brainstorm a better solution. Thoughts @kauffj?
Btw ohwaitingtx, I really do appreciate this. It's awesome that you took the initiative to do this.


JSON custom field accepts UTF-8 but renders output as escaped ASCII

Thank you to @sirtux for reporting this!
Environment

Python version:
Nautobot version: 1.3

Steps to Reproduce

Create a custom field of type JSON
Populate an individual custom field entry with JSON containing non-ASCII characters, for example: { "Hello World": "I am UTF-8! 💩" }
View the object detail page containing this populated custom field.

Expected Behavior
Non-ASCII characters to render correctly
Observed Behavior
Non-ASCII characters are escaped:

This appears to be because json.dumps defaults to ensure_ascii=True; adding an explicit ensure_ascii=False to nautobot.utilities.templatetags.helpers.render_json() results in the expected Unicode rendering.
We should scan through our code for any other instances of json.dumps that may warrant a similar change as well.

Changing json.dumps in the method called out above does work but there are several other places that use render_json() and those should be evaluated if they need ensure_ascii set to True.
Was investigating getting this out with 1.3.1 but due to the above figured it needed further review and #1662 was urgent.

Need to check whether our YAML rendering has a similar issue.


Help with connecting two or more board relays with esphome rs485

Hi! I use your esphome .yaml code  to flash my 8 relays boards, its work fine, but now i want to connect them between themselves with RS485 2 wires (i want to connect one master board to Ethernet and other boards to connect to the master use RS485 port) , and don't know how to do it, ill be appreciate you to help me, thank you

Hi!
Esphome is natlivly supporting RS485 master side. That stuff is very easy to do. I have done it before
sensor:

platform: modbus_controller
modbus_controller_id: epever
name: ${friendly_name} Temperature
id: temperature
register_type: read #0x04
address: 0x0001
unit_of_measurement: "C"
value_type: S_WORD
accuracy_decimals: 1
filters:

multiply: 0.1

To use esphome as a modbus slave is more ticky. You need modbus server.
modbus_server:

id: modbuserver
uart_id: mod_bus
flow_control_pin: 33
address: 2 # slave address
holding_registers:

start_address: 79 # starting register range
default: 82 # default value for all those registers
number: 10 # number of registers in the range
on_write: |
ESP_LOGI("ON_WRITE", "This is a lambda. address=%d, value=%d", address, value);
return value;
on_read: | # called whenever a register in the range is read
// 'address' contains the requested register address
// 'value' contains the stored register value
ESP_LOGI("ON_READ", "This is a lambda. address=%d, value=%d", address, value);
return value; // you can return the stored value or something else.
start_address: 200 # in this example we map register 200 to a switch
number: 1
on_write: |
if(value)
id(relay_1)->turn_on();
else
id(relay_1)->turn_off();
ESP_LOGI("ON_WRITE", "This is a lambda. address=%d, value=%d", address, value);
return value;
on_read: |
ESP_LOGI("ON_READ", "This is a lambda. address=%d, value=%d", address, value);
return value;

It will require few tries and errors. Debuging will be very helpulf (ESP_LOGI). Additional RS485 to USB cable might be also requaried. Sorry if I cannot be more helful but my board is not accesable at this time so I cannot make any mockups to test it.

Hello! I need one more help, how to write binary sensors  and sensors in modbusserver i can't get it work correct, thank you

Hi,
What would be your address and register number?

It's doesn't matter i just need example

modbus_server:

id: modbuserver
uart_id: mod_bus
address: 2 # slave address
holding_registers:

start_address: 79 # starting register range
default: 82 # default value for all those registers
number: 10 # number of registers in the range
on_write: |
ESP_LOGI("ON_WRITE", "This is a lambda. address=%d, value=%d", address, value);
return value;
on_read: | # called whenever a register in the range is read
// 'address' contains the requested register address
// 'value' contains the stored register value
ESP_LOGI("ON_READ", "This is a lambda. address=%d, value=%d", address, value);
return value; // you can return the stored value or something else.
start_address: 200 # in this example we map register 200 to a switch
number: 1
on_write: |
if(value)
id(relay_1)->turn_on();
else
id(relay_1)->turn_off();
ESP_LOGI("ON_WRITE", "This is a lambda. address=%d, value=%d", address, value);
return value;
on_read: |
ESP_LOGI("ON_READ", "This is a lambda. address=%d, value=%d", address, value);
return value;
start_address: 201 # in this example we map register 200 to a switch
number: 1
on_write: |
if(value)
id(relay_2)->turn_on();
else
id(relay_2)->turn_off();
ESP_LOGI("ON_WRITE", "This is a lambda. address=%d, value=%d", address, value);
return value;
on_read: |
ESP_LOGI("ON_READ", "This is a lambda. address=%d, value=%d", address, value);
return value;
start_address: 202 # in this example we map register 200 to a switch
number: 1
on_write: |
if(value)
id(relay_3)->turn_on();
else
id(relay_3)->turn_off();
ESP_LOGI("ON_WRITE", "This is a lambda. address=%d, value=%d", address, value);
return value;
on_read: |
ESP_LOGI("ON_READ", "This is a lambda. address=%d, value=%d", address, value);
return value;

Did you soved this problem?

Did you sove this problem?

Yes, Thank you

No, i don't know if it possible to do, i want to use pin for Dallas 18b20 sensor

Are you good in soldering?

Are you good in soldering?

Yes I am

Are we still talking about modbus problem or just temp sensor? Are you using ethernet port as well or just wifi?

Yes want to connect sensor to relay and if it possible to send data from one to another relay using rs485 ( modbus)

I use ethernet in one relay and wifi in another one

You might need to use spear pins. I did that before for i2c display
i2c:
sda: 4
scl: 5
scan: true
id: bus_a
frequency: 400kHz
so for dallas chip
sensor:

platform: dallas
address: 0x5f000000560bdf28 # id can be obtained from logs on first boot
name: ${friendly_name} Temperature

dallas:

pin: GPIO4
update_interval: 10s

Or you can use RX pin

It’s mean to connect dallas sensor to i2c pin 4 data wires?

Or you can use RX pin  you just need to disable uart logs

I used this pins in other projects like binary sensor and relay after power off dead i need to reflash it

Im interesting to use input to connect sensors

try to use pin 4
platform: dallas
address: 0x5f000000560bdf28 # id can be obtained from logs on first boot
name: ${friendly_name} Temperature
dallas:
pin: GPIO4
update_interval: 10s

We’re is pin 4 in relay

bottom left corner

I will try dallas pin tomorrow. My unit is not easly accessible.

I made some progress last evening. I was able to send some intigiger value of the internal temp sensor via modbus.

modbus_server:

id: modbuserver
uart_id: mod_bus
flow_control_pin: 33
address: 2 # slave address
holding_registers:

start_address: 79 # starting register range
default: 82 # default value for all those registers
number: 10 # number of registers in the range
on_write: |
ESP_LOGI("ON_WRITE", "This is a lambda. address=%d, value=%d", address, value);
return value;
on_read: | # called whenever a register in the range is read
// 'address' contains the requested register address
// 'value' contains the stored register value
ESP_LOGI("ON_READ", "This is a lambda. address=%d, value=%d", address, value);
return value; // you can return the stored value or something else.
start_address: 200 # in this example we map register 200 to a switch
number: 1
on_write: |
if(value)
id(relay_1)->turn_on();
else
id(relay_1)->turn_off();
ESP_LOGI("ON_WRITE", "This is a lambda. address=%d, value=%d", address, value);
return value;
on_read: |
return (id(temp_sens1).state)*100;

sensor:

platform: dallas
address: 0x000000000000000 # id can be obtained from logs on first boot
name: ${friendly_name} Temperature
id: temp_sens1

dallas:
pin: GPIO4
update_interval: 10s

modbus_server:

id: modbuserver
uart_id: mod_bus
flow_control_pin: 33
address: 2 # slave address
holding_registers:

start_address: 79 # starting register range
default: 82 # default value for all those registers
number: 10 # number of registers in the range
on_write: |
ESP_LOGI("ON_WRITE", "This is a lambda. address=%d, value=%d", address, value);
return value;
on_read: | # called whenever a register in the range is read
// 'address' contains the requested register address
// 'value' contains the stored register value
ESP_LOGI("ON_READ", "This is a lambda. address=%d, value=%d", address, value);
return value; // you can return the stored value or something else.
start_address: 200 # in this example we map register 200 to a switch
number: 1
on_write: |
if(value)
id(relay_1)->turn_on();
else
id(relay_1)->turn_off();
ESP_LOGI("ON_WRITE", "This is a lambda. address=%d, value=%d", address, value);
return value;
on_read: |
return (id(temp_sens1).state)*100;

sensor:

platform: dallas
address: 0x000000000000000 # id can be obtained from logs on first boot
name: ${friendly_name} Temperature
id: temp_sens1

dallas: pin: GPIO4 update_interval: 10s
Hi can it send more then 1 data sensors through modbus

Did it work?


Additional changes related to Android platform

[x] Removed redundant Boost patch for Android build;
[x] Updated build instructions for Android in README.me.

@qwertycoin-org this is just a small update to the previous PR.

This one can be merged right after the CI process will be completed.


Not returning a promise

According to the docs, chart.render() should return a promise.
I'm getting a React component. Are the docs out of date or??

The return method of core-apexcharts, not the render method of react returns a promise
https://github.com/apexcharts/apexcharts.js/blob/master/src/apexcharts.js#L83
Also, the render method of apexcharts is not directly accessible in react-apexcharts wrapper.
It is called in componentDidMount() method - https://github.com/apexcharts/react-apexcharts/blob/master/src/react-apexcharts.jsx#L28

@junedchhipa Then the docs should be updated to be more accurate! Anyway, is there a way to use that promise in react? I'd like to have my charts draw one by one, and have the next chart start drawing once the first chart is done.
How should I do that with the react library?


[feat] Frontend Authentication

Is your feature request related to a problem? Please describe.
This isn't a problem, but I'd like to see support for an authentication method for the UI. I plan on setting up a reverse proxy for this service, and while I can set up basic auth through NGINX, having a UI for username/password would allow for easier auth population for those of us who use password managers.
Describe the solution you'd like
An auth setting which allows for a username & password. Unauthenticated users would face a login prompt upon navigating to the UI. LDAP (or other identity services) would be a nice-to-have feature, but could be implemented further down the road.
Describe alternatives you've considered
nginx (or alternative services) can provide basic auth at this time
Additional context
N/A

Actually this can be done by using nginx. BTW this is in my TODOs

Absolutely, I also included the ability to use basic auth via nginx in the original post for the people out there who stumble across it. Great to know it's on the list of TODO's, thanks @robertsLando


ci: show the actual config

Fixes no issue
Description
previously the helm/values.yaml was shown before install during which the values.yaml is modified. switching order to make sure the end result is shown
Checklist

[x] PR is rebased to/aimed at branch develop
[x] PR follows Contributing Guide
[x] Added tests (if necessary)
[x] Extended README/Documentation (if necessary)
[x] Adjusted versions of image and Helm chart in values.yaml and Chart.yaml (if necessary)

Codecov Report

Merging #672 (52b4fb0) into develop (165f518) will increase coverage by 3.29%.
The diff coverage is 97.17%.

@@             Coverage Diff             @@
##           develop     #672      +/-   ##
===========================================
+ Coverage    93.52%   96.81%   +3.29%
===========================================
  Files           15       22       +7
  Lines          633     1226     +593
===========================================
+ Hits           592     1187     +595
+ Misses          41       39       -2

Impacted Files
Coverage Δ

connaisseur/__main__.py
0.00% <0.00%> (ø)

connaisseur/kube_api.py
87.50% <66.66%> (ø)

...naisseur/validators/notaryv2/notaryv2_validator.py
80.00% <80.00%> (ø)

connaisseur/flask_application.py
92.63% <92.63%> (ø)

connaisseur/validators/static/static_validator.py
93.75% <93.75%> (ø)

connaisseur/util.py
95.45% <95.45%> (-4.55%)
:arrow_down:

connaisseur/logging_wrapper.py
96.15% <96.15%> (ø)

connaisseur/config.py
97.29% <97.29%> (ø)

connaisseur/alert.py
97.97% <97.97%> (ø)

...naisseur/validators/notaryv1/notaryv1_validator.py
98.31% <98.31%> (ø)

... and 12 more

Continue to review full report at Codecov.

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


[Help] Extract command descriptions from method docstring

This is a known gap we should fill in. Lost of methods have pretty good summary in its docstring which can be used for help. And cli is already loading the param section in docstring for help, and we should make it complete
The effort involved would be to parse the doc-string in finer grain to extract out the summary

Is this essentially a duplicate of #270?

This is more important now that we are on the hook for help documentation.


Add custom CSV exporters to Nova

#1308 removed the package form of Nova Excel exports. These should be replaced by a custom exporter (as already exists in some places) for simplicity.
Related to #1165

Export Contact Info: name, gt_email, personal_email, phone
Export Names and Emails: preferred_first_name, last_name, gt_email
Export GTIDs: first_name, last_name, gtid
Export Usernames: uid

Duplicate of #898


don't want sorted json to be return after sheet_to_json

HEY GUYS ,
i am having the same problem and not able to correct the issue . i am getting sorted key json but i don't want sheet_to_json method to return me sorted can u pls help me with the corrected code.

JS objects have no innate sense of "key order".  You are seeing the keys in the order that your browser or node generates.  If you want the raw data, you can pass the argument {header:1} and get a raw array of arrays that you can walk manually.


MultiNodeEdit assign Skeleton2D to Polygon2Ds fails

Godot version
3.3.2.stable
System information
Windows 10, OpenGL ES 3.0 Renderer: GeForce GTX 1070/PCIe/SSE2
Issue description
When multiple Polygon2D nodes are selected and you attempt to assign a Skeleton2D to them in the inspector it fails and prints an error for each selected Polygon2D.
In my case, the Skeleton2D is called skeleton
 (Node not found: "skeleton" (relative to "/root/EditorNode/@@580/@@581/@@589/@@591/@@595/@@599/@@600/@@601/@@617/@@618/@@627/@@628/@@6060/@@5899/@@5900/@@5901/@@5902/@@5903/Node2D/Polygons/leg_left").)
 scene/main/node.cpp:1588 - Parameter "p_node" is null.
 (Node not found: "skeleton" (relative to "/root/EditorNode/@@580/@@581/@@589/@@591/@@595/@@599/@@600/@@601/@@617/@@618/@@627/@@628/@@6060/@@5899/@@5900/@@5901/@@5902/@@5903/Node2D/Polygons/leg_right").)
 scene/main/node.cpp:1588 - Parameter "p_node" is null.
 (Node not found: "skeleton" (relative to "/root/EditorNode/@@580/@@581/@@589/@@591/@@595/@@599/@@600/@@601/@@617/@@618/@@627/@@628/@@6060/@@5899/@@5900/@@5901/@@5902/@@5903/Node2D/Polygons/hips").)
 scene/main/node.cpp:1588 - Parameter "p_node" is null.
 (Node not found: "skeleton" (relative to "/root/EditorNode/@@580/@@581/@@589/@@591/@@595/@@599/@@600/@@601/@@617/@@618/@@627/@@628/@@6060/@@5899/@@5900/@@5901/@@5902/@@5903/Node2D/Polygons/arm_left").)
 scene/main/node.cpp:1588 - Parameter "p_node" is null.
 (Node not found: "skeleton" (relative to "/root/EditorNode/@@580/@@581/@@589/@@591/@@595/@@599/@@600/@@601/@@617/@@618/@@627/@@628/@@6060/@@5899/@@5900/@@5901/@@5902/@@5903/Node2D/Polygons/chest").)
 scene/main/node.cpp:1588 - Parameter "p_node" is null.
 (Node not found: "skeleton" (relative to "/root/EditorNode/@@580/@@581/@@589/@@591/@@595/@@599/@@600/@@601/@@617/@@618/@@627/@@628/@@6060/@@5899/@@5900/@@5901/@@5902/@@5903/Node2D/Polygons/head").)
 scene/main/node.cpp:1588 - Parameter "p_node" is null.
 (Node not found: "skeleton" (relative to "/root/EditorNode/@@580/@@581/@@589/@@591/@@595/@@599/@@600/@@601/@@617/@@618/@@627/@@628/@@6060/@@5899/@@5900/@@5901/@@5902/@@5903/Node2D/Polygons/arm_right").)
 scene/main/node.cpp:1588 - Parameter "p_node" is null.

Steps to reproduce

Create a Node2D
Create a child Node2D called Polygons
Create multiple Polygon2Ds under the node named Polygons
Create a Skeleton2D called skeleton under the first Node2D
Select multiple Polygon2Ds
Click Assign under Skeleton in the Inspector (MultiNodeEdit)
Select skeleton

Minimal reproduction project
mrp-multi-node-edit.zip

I have not been able to reproduce this issue in v3.4.2.stable.official [45eaa2daf]. This must have been fixed somewhere along the way.


How to prevent http-client.env.json file copy to publish directory?

Description
CopyToPublishDirectory not working for this file.
<ItemGroup>
  <None Include="http-client.env.json" CopyToPublishDirectory="Never" />
</ItemGroup>

Page URL
https://learn.microsoft.com/en-us/aspnet/core/test/http-files?view=aspnetcore-9.0
Content source URL
https://github.com/dotnet/AspNetCore.Docs/blob/main/aspnetcore/test/http-files.md
Document ID
26f1374f-556a-35fc-cc42-b8911746db80
Article author
@tdykstra
Related Issues

Did you try this in the project file:
<ItemGroup>
  <None Update="http-client.env.json">
    <CopyToPublishDirectory>Never</CopyToPublishDirectory>
  </None>
</ItemGroup>

And you can try setting file properties:

Right-click on the http-client.env.json file in Solution Explorer.
Select Properties.
Set the Copy to Output Directory option to Do not copy.

@tdykstra I tried, not working.

This is a support request. You'll have a better response in a support forum, such as Stack Overflow.  For Visual Studio, use the Report a Problem feature.


Drop down editor: Table Displays Value instead of Label

Hello
I suppose it is a wrong behavior,
Check this out please
https://codesandbox.io/embed/react-bootstrap-table-next-basic-example-u168d

There was the same issue that was imho unfairly closed #934

@rchaser it's not an issue and actually depends on your case. In you case you should also use column.formatter to render Product Type with actual display value instead of raw value. ex:
const ProductList = props => {
  const columns = [
    {
      dataField: "id",
      text: "Product ID"
    },
    {
      dataField: "name",
      text: "Product Name"
    },
    {
      dataField: "productTypeValue",
      text: "Product Type",
      formatter: (cell, row) => {
        return productTypes.find(x => x.value == cell).label;
      },
      editor: {
        type: Type.SELECT,
        options: productTypes
      }
    },
    {
      dataField: "price",
      text: "Product Price"
    }
  ];

  return (

Products

      <BootstrapTable
        keyField="id"
        data={products}
        columns={columns}
        cellEdit={cellEditFactory({ mode: "click", blurToSave: true })}
      />

  );
};

I am getting error>> TypeError: Cannot read property 'label' of undefined

Anybody have fix for that? I'm getting the same error.

@AllenFang, Thanks it's working for me.

@rchaser it's not an issue and actually depends on your case. In you case you should also use column.formatter to render Product Type with actual display value instead of raw value. ex:
const ProductList = props => {
  const columns = [
    {
      dataField: "id",
      text: "Product ID"
    },
    {
      dataField: "name",
      text: "Product Name"
    },
    {
      dataField: "productTypeValue",
      text: "Product Type",
      formatter: (cell, row) => {
        return productTypes.find(x => x.value == cell).label;
      },
      editor: {
        type: Type.SELECT,
        options: productTypes
      }
    },
    {
      dataField: "price",
      text: "Product Price"
    }
  ];

  return (

Products

      <BootstrapTable
        keyField="id"
        data={products}
        columns={columns}
        cellEdit={cellEditFactory({ mode: "click", blurToSave: true })}
      />

  );
};

@AllenFang , Thanks it's working for me.


ng test does not recognize 'production' configuration of library

🐞 bug report
Affected Package

 The issue is caused by package @angular/cli
Is this a regression?
 Not tested
Description
When trying to test a library with the production configuration, an error occurs, while building with the production configuration works. It seems like the ng test command does not recognize the configuration of the library properly.
🔬 Minimal Reproduction
Create a new library:
ng new my-workspace --create-application=false
cd my-workspace
ng generate library my-lib

Run the following commands:
ng build my-lib --prod # works
ng test my-lib --prod # does not work

🔥 Exception or Error
$ ng test my-lib --prod
An unhandled exception occurred: Configuration 'production' is not set in the workspace.

🌍  Your Environment
Angular Version:
Angular CLI: 9.1.4
Node: 12.16.3
OS: win32 x64

Angular: 9.1.4
... animations, cli, common, compiler, compiler-cli, core, forms
... language-service, platform-browser, platform-browser-dynamic
... router
Ivy Workspace: Yes

Package                            Version
------------------------------------------------------------
@angular-devkit/architect          0.901.4
@angular-devkit/build-angular      0.901.4
@angular-devkit/build-ng-packagr   0.901.4
@angular-devkit/build-optimizer    0.901.4
@angular-devkit/build-webpack      0.901.4
@angular-devkit/core               9.1.4
@angular-devkit/schematics         9.1.4
@ngtools/webpack                   9.1.4
@schematics/angular                9.1.4
@schematics/update                 0.901.4
ng-packagr                         9.1.3
rxjs                               6.5.5
typescript                         3.8.3
webpack                            4.42.0

Hi @json-derulo,
That's because by default there is no production configuration for test targets ie ng test.
"test": {
  "builder": "@angular-devkit/build-angular:karma",
  "options": {
    "main": "projects/foo/src/test.ts",
    "polyfills": "projects/foo/src/polyfills.ts",
    "tsConfig": "projects/foo/tsconfig.spec.json",
    "karmaConfig": "projects/foo/karma.conf.js",
    "assets": [ ],
    "styles": [ ],
    "scripts": []
  }
},

Note: --prod is just an alias for --configuration=production.

Thanks @alan-agius4 , you are right. After adding a production configuration to the test target, the --prod flag worked. So I'm closing this issue.


Integrate sql introspection page generation

This commit integrates the newly added automatic sql schema generation into the generate.sh script to generate the sql introspection page.
This fixes #421.

LGTM 👍 A few readability suggestions. I guess they need to be fixes in the restate repo.

Thanks for the review @gvdongen. I will update the corresponding PR in the restate repo to reflect your comments regarding the column descriptions.


Build fails on CentOS 5

Build fails on CentOS 5 (gcc-4.1.2, glibc-2.5):
$ make
cc -Wall -Werror -D_GNU_SOURCE -g   -c -o reptyr.o reptyr.c
In file included from platform/linux/linux.h:36,
                 from platform/platform.h:26,
                 from reptyr.c:37:
/usr/include/sys/wait.h:104: error: expected identifier before numeric constant

$ sed -ne '100,108p' /usr/include/sys/wait.h
/* The following values are used by the `waitid' function.  */
#if defined __USE_SVID || defined __USE_XOPEN
typedef enum
{
  P_ALL,		/* Wait for any child.  */
  P_PID,		/* Wait for specified process.  */
  P_PGID		/* Wait for members of process group.  */
} idtype_t;
#endif

Can you confirm that #71 fixes this issue for you as well, and then I'll go ahead and merge.

Yep, it does.


Fixed bug with iTerm2 stable/nightly

The logic of the current scripts for iTerm2 stable/nightly doesn't play well with the iTerm2 startup options (Preferences/General, the Startup dropdown menu). This commit fixes that.

@philippetev Thanks for taking the time to contribute. Much appreciated.
I have a couple of questions.

What is going on exactly with the current scripts and the Startup dropdown menu?

How extensively have you tested these changes? I have a lot testing in the current syntax using various scenarios. Testing with iTerm closed, testing with iTerm open but all windows closed, testing with multiple iTerm windows etc etc. The syntax here seems to deviate from what is recommended by iTerm https://iterm2.com/documentation-scripting.html

I noticed weird behavior from iTerm2, when this dropdown menu is used in combination with the Quit when all windows are closed option. Sometimes the app opens no window, sometimes opens several, depending on the states of the above two. Current script logic works no matter their states. And seeing what was set to execute on new tab (the delay, followed by closing the window) was a surprise for me, IMO this is unnecessary.
I presume getting the windows count and using it to determine if there is an opened one or no is what you call "a deviation". This operator is part of the Standard suite and it's supported by iTerm2, no matter it's not written in the iTerm2 scripting guide. I suppose you know where to find this dictionary (Script Editor, File, Open Dictionary, iTerm).
BTW that scripting guide gave me the idea to merge Legacy, Stable and Nightly in one script for every case that will determine which part of the code it should use automatically, but I've never found some time to work on it.

So the close first window was added because iTerm would start and open a window which was hidden and this was causing two windows to appear when you told shuttle to run a command. The delay was added because in some odd cases shuttle would call iTerm but nothing would happen because iTerm was not ready.
I played around with count but I could never get it working right.
The try catch was added to fix some errors with the close first window see https://github.com/fitztrev/shuttle/pull/175
I'll test this out. I've been away for awhile and the applescripts were last tested with iTerm 3.0.10 and I'm sure a lot has changed with iTerm in this period.

So the close first window was added because iTerm would start and open a window which was hidden and this was causing two windows to appear when you told shuttle to run a command. The delay was added because in some odd cases shuttle would call iTerm but nothing would happen because iTerm was not ready.

Noticed that too and the count operator is the ultimate fix for this situation. Hidden or not, the start window changes the windows count value and my logic creates new window only in case count returns 0. That goes for both open in tab and open in window Shuttle settings.

Thanks! I'm going to merge this. I like the structure. Good Job!


Use exponential histogram to improve prediction of LFC size

Problem
Current LFC size is specified based on sliding Hyper-log-log working set size estimation which doesn't take in account access frequency. For example there can be multiple OLTP queries working with most recent subset of theta and one slow OLAP query running in background which traverse all historical data. Currently working set size estimation will be the same as the whole database size.
Summary of changes
Use exponential histograms to calculate minimal cache size providing required hit ratio: hits/(hits + misses) relation.
For example with min hit ration 0.99, pages which access frequency is less than 1% of all accessed pages, will not be included in working set estimation
Checklist before requesting a review

[ ] I have performed a self-review of my code.
[ ] If it is a core feature, I have added thorough tests.
[ ] Do we need to implement analytics? if so did you add the relevant metrics to the dashboard?
[ ] If this PR requires public announcement, mark it with /release-notes label and add several sentences in this section.

Checklist before merging

[ ] Do not forget to reformat commit message to not include the above checklist

Currently, the part of our scaling algorithm based on LFC has a couple key properties:

It reacts quickly to increases in load
It is able to use the full 1h period to calculate its desired size

And TBH, I think we should go longer, actually.

It downscales after ~5m if load has substantially decreased

I don't see how we'd guarantee these from your PR description — am I missing something? (or, do you have something particular in mind?)

Currently, the part of our scaling algorithm based on LFC has a couple key properties:

It reacts quickly to increases in load

It is able to use the full 1h period to calculate its desired size

And TBH, I think we should go longer, actually.

It downscales after ~5m if load has substantially decreased

I don't see how we'd guarantee these from your PR description — am I missing something? (or, do you have something particular in mind?)

My concern is that fitting all working set in local cache may be not always possible and even desired.
Assume huge append-mostly table with some kind of "timestamp" key. Most of queries are working with most recent part of the table. But sometimes there are few OLAP queries which have to scan to the whole table.
With current approach, working set will be equal to size of the table. But actually for normal work (for fast execution of most of OLTP queries) much less memory is needed. Postgres is addressing this issue (flushing shared buffer by huge seqscan) by using ring buffer allocator strategy. LFC doesn't have something similar. And this is the problem I try to solve with this PR. I am not sure if the proposed approach be the best. It shows quite goof result on my test (attached to this ticket). But it may be just accessional match.
Originally I thought about much simpler approach: "hypothetical LFC". In addition to real cache, maintain hash table of alternative sizes and calculate cache hit ratio for them. Which sizes? The straightforward solution can be to consider N*2 and N/2 cases.  So we will know (precise not estimation!) what will be hit rate if LFC size is twice bigger or smaller. Based on it autoscaler may make copnslusion whether it make sense to upscale out downscale.
Two main problems with this approach:

It requires 2.5x times extra memory for LFC (not disk, but shared memory)
It doesn't give answers to the question which LFC size can provide requires hit ratio (or in other words number of get page requests to PS).

This PR tries to solve 2). And memory footprint in this case is much smaller.

With current approach, working set will be equal to size of the table

It shouldn't remain that way -- once the OLAP queries are done, we'll likely downscale.

But actually for normal work (for fast execution of most of OLTP queries) much less memory is needed

Isn't this not quite the case, because we use LRU? i.e. OLAP queries can end up evicting all of the smaller working set, even if keeping it in memory would be more beneficial.
Or, maybe I don't quite understand what you've implemented — could you write more detail about what exactly this PR implements, and how we calculate working set size for desired hit ratio based on that?


multi dynamic secret handleing withoud restart

i want to read config by dynamic file for example from json file
and i want when i update json file from another script it must can handle new secret withoud restarting service
but i think it read config on time and use it until serrivce running
please answer me , thanks

to make the proxy to reload its config, you can send the SIGUSR2 to the process


Add question id to questions (merge if needed)

Description
Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.
Fixes # (issue)
Type of change

[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] This change requires a documentation update

Checklist:

[ ] My code follows the style guidelines of this project
[ ] I have performed a self-review of my own code
[ ] I have made corresponding changes to the documentation
[ ] My changes generate no new warnings
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] New and existing unit tests pass locally with my changes

@Domszy do you still want question id?

Not needed as per today's meeting


Sidecar/Ruler/Receiver: Add flag to disable upload of debug meta files

Signed-off-by: Hitanshu Mehta<EMAIL_ADDRESS>Fixes: #3839

[x] I added CHANGELOG entry for this change.
[ ] Change is not relevant to the end user.

Changes

Introduced new flag --shipper.upload-debug-meta-files in sidecar, ruler and receiver.
Added test to verify working of flag.

Verification

Ran unit and e2e tests locally.

Can we move this under some flag for now? 🤗

Sure. Flag named --shipper.upload-debug-meta-files in sidecar seems correct?

Sure. Flag named --shipper.upload-debug-meta-files in sidecar seems correct?

Receiver and Ruler support uploading blocks as well.

Thank you. I will add flags in them too.

PR is ready for review 🤗

Thank you for the review :) I will create a follow-up PR for uploader struct.

We can see that we touch so many things...
Given you need to rebase any way, maybe it's worth creating uploader struct... in this PR? (:

Yes, I agree. To rebase, I have to resolve many merge conflicts.

If keeping support for use in Cortex was the only reason to keep the flag, I would suggest to simplify the PR, drop the flag and remove support for those debug meta files completely.
We can already add support for debug/meta.json file on our own easily, if we really want to. (eg. by having a special bucket that uploads meta.json to two places).

Hey @hitanshu-mehta. We're going to cut a release candidate soon, is there any chance for you to push this to the finish line?

Yes, I will be able to do it. I was waiting for the decision on whether we going to completely remove support for debug meta files or not 😅

I guess, failed e2e test is not related.

Looks like we decided to have this opt-in by default (#3852 (comment)). Then maybe let's add an entry in the CHANGELOG.

I think the only decision to make is to enable this by default or not? @bwplotka @onprem @pracucci @pstibrany

Let's revisit this. My opinion now is to remove debug metas totally and we don't need a flag.

Let's get back to this finally. @hitanshu-mehta Are you able to continue this? Thank you!

@yeya24 Yes. So the final decision is to remove debug meta files completely without any flag. right?

@yeya24 Yes. So the final decision is to remove debug meta files completely without any flag. right?

Yes! Thanks for the patience.

I apologize for the delay from my side. @r0mdau has opened a PR #5110 fixing this issue. Hence, we can close this PR.


Requested GL implementation not found in allowed implementations upon launch

Aknowledgements

[X] I have checked that there is no other issue describing the same or
similar problem that I currently have, regardless if it has been
closed or open.

[ ] This bug affects Discord website.

[ ] This issue is confirmed to be reproduceable when WebCord is packaged
on at least all three latest supported Electron major releases.

[ ] This issue is reproduceable in Chrome, Chromium or any
Chromium-based browser, e.g Brave or Edge (please write in
Additional Context which browser you have used if it is neither
Chrome nor unmodified Chromium).

[X] There are no fixes done to master which resolves this issue.

[ ] My issue describes one of the unstable and/or not fully implemented
features.

[ ] I have found a workaround to mitigate or temporarily fix this issue
in affected releases (please write it in Additional context section
below).

Operating System / Platform
🐧 Linux
Operating system architecture
x64 (64-bit Intel/AMD)
Electron version
v22.3.3
Application version
v4.2.0
Bug description
when launching webcord, the following error occurs:
[13902:0410/112223.343310:ERROR:gl_factory.cc(128)] Requested GL implementation (gl=desktop-gl,angle=none) not found in allowed implementations: [(gl=egl-angle,angle=default),(gl=egl-gles2,angle=none)].
[13902:0410/112223.345153:ERROR:viz_main_impl.cc(186)] Exiting GPU process due to errors during initialization
Switching to the existing window...
[13909:0410/112223.376469:ERROR:gl_factory.cc(128)] Requested GL implementation (gl=desktop-gl,angle=none) not found in allowed implementations: [(gl=egl-angle,angle=default),(gl=egl-gles2,angle=none)].
[13909:0410/112223.378059:ERROR:viz_main_impl.cc(186)] Exiting GPU process due to errors during initialization

and the application does not start.
Additional context
inxi
CPU: quad core 11th Gen Intel Core i5-1135G7 (-MT MCP-)
speed/min/max: 2218/400/4200 MHz Kernel: 6.2.10-arch1-1 x86_64 Up: 3h 6m
Mem: 6668.9/15782.4 MiB (42.3%) Storage: 476.94 GiB (50.1% used) Procs: 343
Shell: nu inxi: 3.3.26

I installed webcord via the AUR. This appears to affect both the latest release, webcord-git, and webcord-bin

Sounds like a GPU driver bug or use of experimental flags/optimizations. What's your GPU? Is GL driver proprietary (nvidia) or open-source (mesa)?
I would try running WebCord with EGL (OpenGL ES):
webcord --gl=egl

Also, are you on Wayland or X11?

Thanks for your response!

Sounds like a GPU driver bug or use of experimental flags/optimizations. What's your GPU? Is GL driver proprietary (nvidia) or open-source (mesa)?

I'm running on an Intel iGPU that I occasionally connect to a nvidia eGPU (so I have both drivers), but I encountered this issue while on mesa.

I would try running WebCord with EGL (OpenGL ES):
webcord --gl=egl

This output the following:
[3396:0411/085940.010741:ERROR:gl_factory.cc(128)] Requested GL implementation (gl=desktop-gl,angle=none) not found in allowed implementations: [(gl=egl-angle,angle=default),(gl=egl-gles2,angle=none)].
[3396:0411/085940.011756:ERROR:viz_main_impl.cc(186)] Exiting GPU process due to errors during initialization

as well as this popup:

Also, are you on Wayland or X11?

This is on X11, I'll try it on Wayland as well.

It looks like deleting windowState solved the issue; webcord launches now without errors. Sorry to take up your time!

FYI this error meant WebCord was unable to read this file at all, so it was probably a permissions error (lack of read access?).

It looks like deleting windowState solved the issue; webcord launches now without errors. Sorry to take up your time!

FYI this error meant WebCord was unable to read this file at all, so it was probably a permissions error (lack of read access?).

ah ok, so the GL errors were just a red herring. Thanks!


Users can't post

After first install, i try to post with a normal user account, but i receive a console error (failed to load api/discussion/1), and i was unable to post.
https://i.ibb.co/MhXP7Dh/11.png

It looks like you're restricting users from editing their posts. You should allow them to edit their posts to make this extension work as designed. Having that said, extension should to check if users are actually allowed to edit their posts. So this will be fixed on the next release.

1.0.1 might fix this

Thanks I will try this asap


fix : style on selected date in range

Bug of this

will be like this

Thanks for this PR but this problem was fixed based on this PR: https://github.com/farhoudshapouran/react-native-ui-datepicker/pull/87


Request support DNS from localhost

https://github.com/fscarmen/warp/issues/113
Thanks you for hard work.

Right now the reason why localhost DNS isn't working is because every DNS requests are forwarded to wiregaurd. We can probably add an option to disable DNS forwarding, so that localhost DNS would be allowed. Probably something like:
[Interface]
Address = <IP_ADDRESS>/32
PrivateKey = uCTIK+56CPyCvwJxmU5dBfuyJvPuSXAq1FzHdnIxe1Q=
DNS = <IP_ADDRESS>
DNSForward = False

Yes, added option like that would be good.
Another question about warp traffic
fl=411f350
h=cloudflare.com
ip=<IP_ADDRESS>
ts=1648701225.002
visit_scheme=https
uag=Mozilla/5.0 (Linux; Android 11; M2007J3SG) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.88 Mobile Safari/537.36
colo=SIN
http=http/2
loc=SG
tls=TLSv1.3
sni=plaintext
warp=off
gateway=off

I used client openclash and the warp traffic status seem off? Before migrated from wireguard wgcf to wireproxy status warp either plus or on. Is it client related? I tested on mobile client like sagernet/v2rayNG the warp status are plus/on

case 1: WGCF WARP use the DNS in wgcf.conf.  Use the wireguard config file DNS setting
root@debian:~# cat /etc/wireguard/wgcf.conf
[Interface]
PrivateKey = sD7hz8EFYTpr165ofVUklRkjkWzLd2tkPAipkjHfNmU=
Address = <IP_ADDRESS>/32
Address = fd01:5ca1:ab1e:833b:a1b6:e267:39ad:c88e/128
DNS = <IP_ADDRESS>,<IP_ADDRESS>,<IP_ADDRESS>,2606:4700:4700::1111,2001:4860:4860::8888,2001:4860:4860::8844
MTU = 1420
PostUp = ip -4 rule add from <IP_ADDRESS> lookup main
PostDown = ip -4 rule delete from <IP_ADDRESS> lookup main
[Peer]
PublicKey = bmXOC+F1FxEMF9dyiK2H5/1SUtzH0JuVo51h2wPfgyo=
AllowedIPs = <IP_ADDRESS>/0
AllowedIPs = ::/0
Endpoint = <IP_ADDRESS>:2408

root@debian:~# wg
interface: wgcf
  public key: t1j3ZcxgJ9C3U+haQqbMSj/mqBGVeB8mS+QWxMw+UEs=
  private key: (hidden)
  listening port: 36386
  fwmark: 0xca6c

peer: bmXOC+F1FxEMF9dyiK2H5/1SUtzH0JuVo51h2wPfgyo=
  endpoint: <IP_ADDRESS>:2408
  allowed ips: <IP_ADDRESS>/0, ::/0
root@debian:~# nslookup baidu.com
Server:         <IP_ADDRESS>
Address:        <IP_ADDRESS>#53

Non-authoritative answer:
Name:   baidu.com
Address: <IP_ADDRESS>
Name:   baidu.com
Address: <IP_ADDRESS>

case 2: remove DNS=.... in wgcf.conf. Use the VPS default nameserver
root@debian:~# cat /etc/wireguard/wgcf.conf
[Interface]
PrivateKey = sD7hz8EFYTpr165ofVUklRkjkWzLd2tkPAipkjHfNmU=
Address = <IP_ADDRESS>/32
Address = fd01:5ca1:ab1e:833b:a1b6:e267:39ad:c88e/128
MTU = 1420
PostUp = ip -4 rule add from <IP_ADDRESS> lookup main
PostDown = ip -4 rule delete from <IP_ADDRESS> lookup main
[Peer]
PublicKey = bmXOC+F1FxEMF9dyiK2H5/1SUtzH0JuVo51h2wPfgyo=
AllowedIPs = <IP_ADDRESS>/0
AllowedIPs = ::/0
Endpoint = <IP_ADDRESS>:2408

root@debian:~# cat /etc/resolv.conf
# Generated by resolvconf
nameserver <IP_ADDRESS>

root@debian:~# systemctl restart wg-quick@wgcf

root@debian:~# nslookup google.com
Server:         <IP_ADDRESS>
Address:        <IP_ADDRESS>#53

Non-authoritative answer:
Name:   google.com
Address: <IP_ADDRESS>
Name:   google.com
Address: 2607:f8b0:4009:817::200e

DNS can be remove from wgcf config file. But i am not sure if it works in wireproxy config file either.
case 1: WGCF WARP use the DNS in wgcf.conf. Use the wireguard config file DNS setting
root@debian:~# cat /etc/wireguard/wgcf.conf
[Interface]
PrivateKey = sD7hz8EFYTpr165ofVUklRkjkWzLd2tkPAipkjHfNmU=
Address = <IP_ADDRESS>/32
Address = fd01:5ca1:ab1e:833b:a1b6:e267:39ad:c88e/128
DNS = <IP_ADDRESS>,<IP_ADDRESS>,<IP_ADDRESS>,2606:4700:4700::1111,2001:4860:4860::8888,2001:4860:4860::8844
MTU = 1420
PostUp = ip -4 rule add from <IP_ADDRESS> lookup main
PostDown = ip -4 rule delete from <IP_ADDRESS> lookup main
[Peer]
PublicKey = bmXOC+F1FxEMF9dyiK2H5/1SUtzH0JuVo51h2wPfgyo=
AllowedIPs = <IP_ADDRESS>/0
AllowedIPs = ::/0
Endpoint = <IP_ADDRESS>:2408

root@debian:~# wg
interface: wgcf
  public key: t1j3ZcxgJ9C3U+haQqbMSj/mqBGVeB8mS+QWxMw+UEs=
  private key: (hidden)
  listening port: 36386
  fwmark: 0xca6c

peer: bmXOC+F1FxEMF9dyiK2H5/1SUtzH0JuVo51h2wPfgyo=
  endpoint: <IP_ADDRESS>:2408
  allowed ips: <IP_ADDRESS>/0, ::/0

root@debian:~# nslookup baidu.com
Server:         <IP_ADDRESS>
Address:        <IP_ADDRESS>#53

Non-authoritative answer:
Name:   baidu.com
Address: <IP_ADDRESS>
Name:   baidu.com
Address: <IP_ADDRESS>

case 2: remove DNS=.... in wgcf.conf. Use the VPS default nameserver
root@debian:~# cat /etc/wireguard/wgcf.conf
[Interface]
PrivateKey = sD7hz8EFYTpr165ofVUklRkjkWzLd2tkPAipkjHfNmU=
Address = <IP_ADDRESS>/32
Address = fd01:5ca1:ab1e:833b:a1b6:e267:39ad:c88e/128
MTU = 1420
PostUp = ip -4 rule add from <IP_ADDRESS> lookup main
PostDown = ip -4 rule delete from <IP_ADDRESS> lookup main
[Peer]
PublicKey = bmXOC+F1FxEMF9dyiK2H5/1SUtzH0JuVo51h2wPfgyo=
AllowedIPs = <IP_ADDRESS>/0
AllowedIPs = ::/0
Endpoint = <IP_ADDRESS>:2408

root@debian:~# cat /etc/resolv.conf
# Generated by resolvconf
nameserver <IP_ADDRESS>

root@debian:~# systemctl restart wg-quick@wgcf

root@debian:~# nslookup baidu.com
Server:         <IP_ADDRESS>
Address:        <IP_ADDRESS>#53

Non-authoritative answer:
Name:   baidu.com
Address: <IP_ADDRESS>
Name:   baidu.com
Address: <IP_ADDRESS>

I think I will do something like:
Case 1: DNS is specified, DNSForward is false
DNS Traffic would be sent without being routed via wireguard
Case 2: DNS is specified, DNSForward is true
DNS Traffic would be sent via wireguard
Case 3: DNS is not specified:
Default nameservers would be used, and DNS would not be routed via wireguard

How about reducing to only 1 parameter? Remove DNSForward.
Case 1: DNS is specified
DNS Traffic would be sent with it.
Case 2: DNS is not specified
Default nameservers would be used.

How about reducing to only 1 parameter? Remove DNSForward.
Case 1: DNS is specified DNS Traffic would be sent with it.
Case 2: DNS is not specified Default nameservers would be used.

Yeah that seems more consistent with how wireguard works. I'll go with this route instead then.

With the new commit, if DNS field is empty, the system nameserver will be used. So you can configure your /etc/resolv.conf with nameserver <IP_ADDRESS>, and do something like:
[Interface]
Address = <IP_ADDRESS>/32
PrivateKey = uCTIK+56CPyCvwJxmU5dBfuyJvPuSXAq1FzHdnIxe1Q=
DNSForward = False


Can't change locale in phpcensor.

Now it throws an error when I try to do it:
SQLSTATE[22P02]: Invalid text representation: 7 ERROR: invalid input syntax for integer: ""

N.B. it happens only in web. If I change it by config it works fine.

Are you change locale for user?

Do you change locale for user? What DB type?
I could not reproduce :(

PGSQL, tried to change for admin user.

Tried to do it with my docker-compose file.

Ok, I will try to reproduce

Fixed. @ket4yii Can you check it, please?

Cool. I'm gonna check it ASAP.


Ukrainian translation

I know that it's coming too late, but... maybe there is still a chance to have it?

Thank you for contributing the translation! It is indeed too late for this year's survey. But the work won't be wasted, as we can reuse it next year, as most of the survey will most likely be very similar.
As an aside, we already had like 90% of the translation prepared from 2022 and previous years, so it would be easier to start from that. We coordinate these translations on the Rust Zulip. I thought about also asking for help on Reddit, but we already had translators for the languages that we used in 2023, so we considered that to be enough.

@tyranron thanks :slightly_smiling_face: Also, we now have guidelines on how to contribute translations! So feel free to get in touch for next year.
@Kobzol I think we can merge this anyway and -  in case - use it as a "baseline" for the 2025 survey

@Kobzol @apiraino as someone willing to contribute, but not using Zulip, I would appreciate if you'll make some kind of announcement/tracking issue here, in this repository, next year. It would be very easy for me to get to the task on time just by subscribing to this repository.
It's a little bit sad that it didn't make into the survey this year, but I'm glad that this work is helpful for you anyway. Thank you!


Exclude examples dir from dist

Directory examples must not exist in package. It's wrong of build script configuration

i can't found this directory in package, so maybe i did wrong


closeTime, openTime is not correct for OHLCV api

https://dex.devnet.tomochain.com/api/ohlcv?baseToken=0x4d7eA2cE949216D6b120f3AA10164173615A2b6C&quoteToken=0x0000000000000000000000000000000000000001&timeInterval=5m&from=1566493200&to=1566543600
Return data:
{"close":"20439780000000000000000","closeTime":"0001-01-01T00:00:00Z","count":"10","high":"20492490000000000000000","low":"20418540000000000000000","open":"20418540000000000000000","openTime":"0001-01-01T00:00:00Z","pair":{"baseToken":"0x4d7eA2cE949216D6b120f3AA10164173615A2b6C","pairName":"BTC/TOMO","quoteToken":"0x0000000000000000000000000000000000000001"},"timestamp":1566527100000,"volume":"24441888802147940"},{"close":"20515760000000000000000","closeTime":"0001-01-01T00:00:00Z","count":"5","high":"20515760000000000000000","low":"20515760000000000000000","open":"20515760000000000000000","openTime":"0001-01-01T00:00:00Z","pair":{"baseToken":"0x4d7eA2cE949216D6b120f3AA10164173615A2b6C","pairName":"BTC/TOMO","quoteToken":"0x0000000000000000000000000000000000000001"},"timestamp":1566527400000,"volume":"20000000000000000"},
Allways format:
0001-01-01T00:00:00Z

fixed in commit f3ab6e53407025d9d0d1f44111f0bea0d367b84a