text:
After \left or \right, / and \backslash should be slightly different symbols

/ -> division slash
\backslash -> set minus

Maybe there should be a token which contains two chars: one when acting as Paren and one for Letter.

The following gives perfect output on Firefox:
<mrow>
  <mo stretchy="true" symmetric="true" minsize="1.2em" maxsize="1.2em" rspace="0" lspace="0">∕</mo>
  <mo stretchy="true" symmetric="true" minsize="1.8em" maxsize="1.8em" rspace="0" lspace="0">∕</mo>
  <mo stretchy="true" symmetric="true" minsize="2.4em" maxsize="2.4em" rspace="0" lspace="0">∕</mo>
  <mo stretchy="true" symmetric="true" minsize="3em" maxsize="3em" rspace="0" lspace="0">∕</mo>
  <mo stretchy="true" symmetric="true" minsize="3em" maxsize="3em" rspace="0" lspace="0">∖</mo>
  <mo stretchy="true" symmetric="true" minsize="2.4em" maxsize="2.4em" rspace="0" lspace="0">∖</mo>
  <mo stretchy="true" symmetric="true" minsize="1.8em" maxsize="1.8em" rspace="0" lspace="0">∖</mo>
  <mo stretchy="true" symmetric="true" minsize="1.2em" maxsize="1.2em" rspace="0" lspace="0">∖</mo>
</mrow>

Temml doesn't do this anymore, so I guess I won't either.


text:
[QUESTION] open link

When I insert a link and set isNewWindow to true, the link is still opened on the current page.
controller.insertLink(linkName, linkUrl, true);
How can I open it in Safari?

You can follow the guide at https://github.com/tneotia/html-editor-enhanced/issues/88#issuecomment-878695455, use url_launcher package and return NavigationActionPolicy.PREVENT to open the links :)

When I click on this link, can I jump directly instead of popping up this box?

No unfortunately because the package provides the ability for the user to remove the hyperlink and just keep the google text. Pressing on it once more should open the link.

Thank you for your answers. Unfortunately, I am currently using the stable version of flutter and cannot use 2.2.0+1-dev.1. I look forward to you updating the new version.

Thank you for your answers. Unfortunately, I am currently using the stable version of flutter and cannot use 2.2.0+1-dev.1. I look forward to you updating the new version.

2.2.0 is the same functionality as 2.2.0+1-dev.1 but yes I hope to push a new update soon. Maybe this week or next.

Hi, Can I forbid this behavior? When I click on this link, I don't want it popping up this box and I also don't want to jump.

Hi, Can I forbid this behavior? When I click on this link, I don't want it popping up this box and I also don't want to jump.

Yes you can remove this popup, in the HtmlEditorOptions parameter customOptions please use
"""
popover: {
  image: [
    ['image', ['resizeFull', 'resizeHalf', 'resizeQuarter', 'resizeNone']],
    ['float', ['floatLeft', 'floatRight', 'floatNone']],
    ['remove', ['removeMedia']]
  ],
  link: [],
  table: [
    ['add', ['addRowDown', 'addRowUp', 'addColLeft', 'addColRight']],
    ['delete', ['deleteRow', 'deleteCol', 'deleteTable']],
  ],
},
"""

As you can see in the string we set link: [] which removes the display for the link popup only.

As you can see in the string we set link: [] which removes the display for the link popup only.

Thank you for your reply. Can I only set like this?
"""
popover: {
link: []
},
"""``

If you do like that then the buttons for resizing image on tap will disappear. This syntax is JavaScript syntax so it does not have a default value for every parameter.

OK, Thank you very much.

source: gharchive/issue

repo: tneotia/html-editor-enhanced

license: MIT

license_type: permissive

license_source: github-api


text:
New FBD Routine Example

I've been using the library quite a bit recently and really appreciate the work you've put into it.
One thing that I've found difficult to figure out is creating a new FBD routine and adding a sheet to it. I am able to open existing sheets and manipulate them, but I haven't quite figured out how to start one from scratch. Any advice?

Yeah, working with FBD is not easy. Modeling them in a simple intuitive way was hard, and to be honest, I still consider the FBD code somewhat of a work in progress. I want to refine it when I get more time, but if something isn't working correctly, I would not be surprised. I have not done extensive testing on creating FBD and importing them into Logix.
But to answer your question, you should be able to create a new Sheet and add Block and Wire objects to it. Here is a simple example.
var sheet = new Sheet { Number = 1 };
var id1 = sheet.AddAt(100, 100, Block.IREF("InputTag"));
var id2 = sheet.AddAt(100, 200, Block.IREF(100));
var id3 = sheet.AddAt(200, 100, Block.ADD("Add_Block"));
var id4 = sheet.AddAt(300, 100, Block.OREF("OutputTag"));
sheet.Add(new Wire { FromID = id1, ToID = id3, ToParam = "SourceA" });
sheet.Add(new Wire { FromID = id2, ToID = id3, ToParam = "SourceB" });
sheet.Add(new Wire { FromID = id3, ToID = id4, FromParam = "Dest" });

Things to note here:

When you call Add or AddAt you get back the ID of the block that was added (these have to be unique for the import to work so the code will just find the next available id and assign it to the block you add).
All FBD Blocks can be created using the Block class which has static factory methods for creating all the known FBD elements found in Logix (some may be missing or incorrect they have not all been tested).
You can use the IDs returned by Add/AddAt to add wires to the diagram which connect blocks/pins. You will have to know the defined pin names to make this work.

Obviously, even a simple example like this gets complicated. But once your sheet is all configured, adding it to a routine should be simple. It is crucial to set the correct RoutineType, SheetSize, and SheetOrientation for FBD diagrams for them to be imported.
var routine = new Routine(RoutineType.FBD)
{
    Name = "Test",
    SheetSize = SheetSize.A0,
    SheetOrientation = SheetOrientation.Landscape
};

routine.Content<Sheet>().Add(sheet);

Hope this helps.

Aha, I see what I was doing wrong. I wasn't passing the Routine constructor the "RoutineType.FBD", I was trying to change the Type parameter after creating the Routine. When I did that, I wasn't able to add a sheet because there was no FBDContent.
Things are working as expected now, thanks again for your help!

Thanks for pointing that out. I can probably improve that by making it update the child content element when you set Type after constructing the Routine. I'll add it to my list of things to look at.


text:
setapp 常用软件合集

sip 对于开发者来说，很好用，取色方便

mate 翻译

cleanMyMac


text:
Productivity and Flow...

Hey , thank you for your extension , it's really usefull for me to do my work in social media whilst avoiding their cunning distractions really good Job!! ,however there is minor problem , the qoutes are ditracting me while I am working and is killing my flow , How do you think you can solve this issue?

Hi @Revanth736,
We can add an option to display custom text instead of quotes. The custom text can be HTML or left blank to show nothing. Would that solve your issue?

repo: tobiasdalhof/sanersocialmedia


text:
Errores al probar la version 3.1.1

compile el ejemplo 'BasicWrite'
este es el log de la compilacion
Visual studio code 1.44
PlatformIO Core 4.3.2a1  Home 3.1.1
Verbose mode can be enabled via -v, --verbose option
CONFIGURATION: https://docs.platformio.org/page/boards/espressif32/esp32doit-devkit-v1.html
PLATFORM: Espressif 32 1.12.0 > DOIT ESP32 DEVKIT V1
HARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash
DEBUG: Current (esp-prog) External (esp-prog, iot-bus-jtag, jlink, minimodule, olimex-arm-usb-ocd, olimex-arm-usb-ocd-h, olimex-arm-usb-tiny-h, olimex-jtag-tiny, tumpa)
PACKAGES:

framework-arduinoespressif32 3.10004.200129 (1.0.4)
tool-esptoolpy 1.20600.0 (2.6.0)
toolchain-xtensa32 2.50200.80 (5.2.0)
LDF: Library Dependency Finder -> http://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 27 compatible libraries
Scanning dependencies...
Dependency Graph
|-- ESP8266 Influxdb 3.1.1
|   |-- HTTPClient 1.2
|   |   |-- WiFi 1.0
|   |   |-- WiFiClientSecure 1.0
|   |   |   |-- WiFi 1.0
|-- WiFi 1.0
Building in release mode
Compiling .pio\build\esp32doit-devkit-v1\src\main.cpp.o
Compiling .pio\build\esp32doit-devkit-v1\libe0a\ESP8266 Influxdb_ID1639\InfluxDbClient.cpp.o
In file included from src\main.cpp:22:0:
.pio/libdeps/esp32doit-devkit-v1/ESP8266 Influxdb_ID1639/src/InfluxDbClient.h:44:19: warning: missing terminating ' character
#error AxTLS doesn't work
^
In file included from .pio\libdeps\esp32doit-devkit-v1\ESP8266 Influxdb_ID1639\src\InfluxDbClient.cpp:27:0:
.pio\libdeps\esp32doit-devkit-v1\ESP8266 Influxdb_ID1639\src\InfluxDbClient.h:44:19: warning: missing terminating ' character
#error AxTLS doesn't work
^
Compiling .pio\build\esp32doit-devkit-v1\FrameworkArduino\cbuf.cpp.o
Compiling .pio\build\esp32doit-devkit-v1\FrameworkArduino\esp32-hal-adc.c.o
In file included from .pio\libdeps\esp32doit-devkit-v1\ESP8266 Influxdb_ID1639\src\InfluxDbClient.cpp:27:0:
.pio\libdeps\esp32doit-devkit-v1\ESP8266 Influxdb_ID1639\src\InfluxDbClient.h: In constructor 'Point::Point(String)':
.pio\libdeps\esp32doit-devkit-v1\ESP8266 Influxdb_ID1639\src\InfluxDbClient.h:103:12: error: 'Point::_measurement' will be initialized after [-Werror=reorder]
String _measurement;
^
.pio\libdeps\esp32doit-devkit-v1\ESP8266 Influxdb_ID1639\src\InfluxDbClient.h:101:12: error:   'String Point::_tags' [-Werror=reorder]
String _tags;
^
.pio\libdeps\esp32doit-devkit-v1\ESP8266 Influxdb_ID1639\src\InfluxDbClient.cpp:75:1: error:   when initialized here [-Werror=reorder]
Point::Point(String measurement):
^
.pio\libdeps\esp32doit-devkit-v1\ESP8266 Influxdb_ID1639\src\InfluxDbClient.cpp: In member function 'void Point::setTime(WritePrecision)':
.pio\libdeps\esp32doit-devkit-v1\ESP8266 Influxdb_ID1639\src\InfluxDbClient.cpp:119:58: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long unsigned int' [-Wformat=]
sprintf(buff, "%06d000",  micros()%1000000uL);
^
.pio\libdeps\esp32doit-devkit-v1\ESP8266 Influxdb_ID1639\src\InfluxDbClient.cpp:119:58: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long unsigned int' [-Wformat=]
.pio\libdeps\esp32doit-devkit-v1\ESP8266 Influxdb_ID1639\src\InfluxDbClient.cpp:123:55: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long unsigned int' [-Wformat=]
sprintf(buff, "%06d",  micros()%1000000uL);
^
.pio\libdeps\esp32doit-devkit-v1\ESP8266 Influxdb_ID1639\src\InfluxDbClient.cpp:123:55: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long unsigned int' [-Wformat=]
.pio\libdeps\esp32doit-devkit-v1\ESP8266 Influxdb_ID1639\src\InfluxDbClient.cpp:127:51: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long unsigned int' [-Wformat=]
sprintf(buff, "%03d",  millis()%1000u);
^
.pio\libdeps\esp32doit-devkit-v1\ESP8266 Influxdb_ID1639\src\InfluxDbClient.cpp:127:51: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long unsigned int' [-Wformat=]
.pio\libdeps\esp32doit-devkit-v1\ESP8266 Influxdb_ID1639\src\InfluxDbClient.cpp: In member function 'bool InfluxDBClient::flushBuffer()':
.pio\libdeps\esp32doit-devkit-v1\ESP8266 Influxdb_ID1639\src\InfluxDbClient.cpp:376:35: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
while(data = prepareBatch(size)) {
^
Compiling .pio\build\esp32doit-devkit-v1\FrameworkArduino\esp32-hal-bt.c.o
Compiling .pio\build\esp32doit-devkit-v1\FrameworkArduino\esp32-hal-cpu.c.o
.pio\libdeps\esp32doit-devkit-v1\ESP8266 Influxdb_ID1639\src\InfluxDbClient.cpp: At global scope:
.pio\libdeps\esp32doit-devkit-v1\ESP8266 Influxdb_ID1639\src\InfluxDbClient.cpp:58:15: warning: 'String escapeJSONString(String&)' declared 'static' but never defined [-Wunused-function]
static String escapeJSONString(String &value);
^
.pio\libdeps\esp32doit-devkit-v1\ESP8266 Influxdb_ID1639\src\InfluxDbClient.cpp:597:15: warning: 'String escapeTagValue(const char*)' defined
but not used [-Wunused-function]
static String escapeTagValue(const char *value) {
^
cc1plus.exe: some warnings being treated as errors
*** [.pio\build\esp32doit-devkit-v1\libe0a\ESP8266 Influxdb_ID1639\InfluxDbClient.cpp.o] Error 1
========================================================= [FAILED] Took 5.77 seconds =========================================================

@thinkUpRoger, thanks for reporting. The actual errors are not dangerous, cause members don't depend on themselves.
If you haven't already fixed it yourself,  the quick workaround is to edit .pio\libdeps\esp32doit-devkit-v1\ESP8266 Influxdb_ID1639\src\InfluxDbClient.h and change lines 101-104:
    String _measurement;
    String _tags;
    String _fields;
    String _timestamp;

I continued testing version 3.1.1
(I don't know if another thread should be opened)
write a point with precision in microseconds not work correctly
Description

this write a point in 1970

Fix in  InfluxDBClient.cpp file

Write correctly date

@thinkUpRoger, please create a new issue for this.

ok thanks
issue created
https://github.com/tobiasschuerg/InfluxDB-Client-for-Arduino/issues/49

authors: thinkUpRoger vlastahajek


text:
Issue with Redirects

So I have SSL Enforcer configured in my application like so:
config.middleware.use Rack::SslEnforcer, :only_hosts => 'photos.example.com'

When I check the URL redirects in the browser when going to http://photos.example.com, I get the following redirect chain:
1) http://photos.example.com
2) Redirects to https://photos.example.com
3) Redirects to http://photos.example.com/account_sessions
4) Redirects to https://photos.example.com/account_sessions

Is there a way to eliminate step 3, as in going from:
2) Redirects to https://photos.example.com
3) Redirects to https://photos.example.com/account_sessions

My initial thought was that once a host is specified in the configurations, then it only enforces SSL/HTTPS protocol for that domain, and doesn't allow redirects to an HTTP protocol.

The third redirect is initiated by your application and out of scope of rack-ssl-enforcer, so the only chance i see is to modify your authentication's redirect by passing the protocol option, for example:
# application_controller.rb

before_filter :require_login

private

  def require_login
    unless current_user
      redirect_to controller: "sessions_controller", action: "new", protocol: "https://"
    end
  end

Ah, got it. I wasn't sure if this was the intended behavior or not. This probably won't work, because I need one domain specifically to enforce SSL, and the others to just use the standard HTTP protocol. It would be counter-intuitive to force the HTTPS protocol on all URLs within my app.

I see. Maybe something like
def domain_specific_protocol
  request.host_with_port =~ /example.org/ ? "https://" : "http://"
end

def require_login
  unless current_user
    redirect_to controller: "sessions_controller", action: "new", protocol: domain_specific_protocol
  end
end

Probably not the most elegant solution :) Anyway - i'm closing here...

repo: tobmatth/rack-ssl-enforcer

license: mit

license_source: bigquery


text:
Authentication support

Is your feature request related to a problem? Please describe.
Hello, when using a remote configuration to use Artifactory for example, there is no documented way to use credentials (.netrc or user/password in URL)
Describe the solution you'd like
Document (and implement if needed) how to specify credentials to authenticate to a remote.
Describe alternatives you've considered
Additional context
tofuenv explicitely supports .netrc for that usecase.
Thanks!

http.Get in net/http does not seem to handle .netrc. So this need an implementation step.

https://user:password@host.org should work, however I can add some env var to have a better support.

authors: adongy dvaumoron

repo: tofuutils/tenv


text:
Low Data Downloading Speed

Dear RedPajama Team,
I wanted to express my gratitude for your efforts in releasing the dataset. Currently, I am in the process of downloading your dataset using "wget", as outlined on your Hugging Face datasets page, to my s3 bucket. I've noticed that the download speed is not high, i.e., averaging around 20-30MB/s.
I am reaching out to inquire if there are any recommendations or methods you could suggest to accelerate the download speed.
Thank you in advance for your assistance.

Hi @lipingtang17 I recommed using aria2c to parallelize the downloads. To use aria2c, you can do the following (this also applies to the other components of RPv2):
# download urls
wget "https://data.together.xyz/redpajama-data-v2/v1.0.0/urls/document-urls.txt" -O "document-urls.txt"

Then you need to change the file so that it can be used with aria2c:
while IFS= read -r line; do
    echo "$line"
    echo " out=$(echo "$line" | sed 's|.*/v1.0.0/||')" | sed 's|.parquet|&\t|'
done < document-urls.txt > aria2c-document-urls.txt

And run the parallel download:
aria2c --input-file aria2c-document-urls.txt

repo: togethercomputer/RedPajama-Data


text:
Backlog button integration not working

User reports that Backlog (https://backlog.com/) has changed something on their site and Toggl button is no longer working.
conversations/19454961896

it is not working on https://backlog.jp neither.

authors: nicktoggl shuninghuang

repo: toggl/toggl-button


text:
Clicking notifications on Mac should show Toggl

Clicking notifications on a Mac currently does nothing, but it should show the Toggl window.

Please share which notification you mean. Tracking reminder or something else.

Yes, I was referring to the tracking reminder. I did just notice the "Track" button does what I'm looking for, but it would be nice if clicking the alert itself took the user to the app.

authors: GreenGremlin IndrekV

repo: toggl/toggldesktop


text:
Tokio LongRunningTaskDetector. (https://github.com/tokio-rs/console/issues/150)

Motivation
The motivation for this pull request is to provide a solution for the problem described at: https://github.com/tokio-rs/console/issues/150
Blocking calls in the async workers lead to scalability issues, being able to detect them so that code can be fixed is very important for the scalability of an async-io service.
Lrtd running in production will detect blocked runtime workers and report them. This allows to emit thread stack trace details that will enable owners to quickly identify the issue and push out a fix, further enhancing the scalability and responsiveness of their services. The blocking event counts can be used to test the health of the canary tier, etc...
Solution
LongRunningTaskDetector uses a sampling black box approach to detect when processing in the tokio runtime in blocked for more than a configurable amount. The approach is simple and reliable, and has very low/configurable overhead, as such is is ideal for continuous running in production environments.
When blocking is detected the stack traces of the runtime worker threads can be dumped (action is plugable), to allow us to identify what is happening in the worker threads.
On detection, details can contain precise info about the blocking culprit and will look like:
Detected worker blocking, signaling SIGUSR1 worker threads: [123145546047488]
Stack trace for thread "test_blocking_detection_current":123145546047488
   0: std::backtrace_rs::backtrace::libunwind::trace
             at /rustc/a28077b28a02b92985b3a3faecf92813155f1ea1/library/std/src/../../backtrace/src/backtrace/libunwind.rs:93:5
   1: std::backtrace_rs::backtrace::trace_unsynchronized
             at /rustc/a28077b28a02b92985b3a3faecf92813155f1ea1/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
   2: std::backtrace::Backtrace::create
             at /rustc/a28077b28a02b92985b3a3faecf92813155f1ea1/library/std/src/backtrace.rs:331:13
   3: std::backtrace::Backtrace::force_capture
             at /rustc/a28077b28a02b92985b3a3faecf92813155f1ea1/library/std/src/backtrace.rs:313:9
   4: tokio_util::lrtd::lrtd::signal_handler
             at ./src/lrtd/lrtd.rs:221:21
   5: __sigtramp
   6: ___semwait_signal
   7: <unknown>
   8: std::sys::unix::thread::Thread::sleep
             at /rustc/a28077b28a02b92985b3a3faecf92813155f1ea1/library/std/src/sys/unix/thread.rs:241:20
   9: std::thread::sleep
             at /rustc/a28077b28a02b92985b3a3faecf92813155f1ea1/library/std/src/thread/mod.rs:872:5
  10: lrtd::run_blocking_stuff::{{closure}}
             at ./tests/lrtd.rs:12:5
  11: lrtd::test_blocking_detection_current::{{closure}}
             at ./tests/lrtd.rs:57:30
  12: <core::pin::Pin<P> as core::future::future::Future>::poll
             at /rustc/a28077b28a02b92985b3a3faecf92813155f1ea1/library/core/src/future/future.rs:125:9
  13: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}::{{closure}}
....

This is the output from the unit tests (run_blocking_stuff).
Not sure I put this in the right place, and there is likely some polishing left to do, but this should be good enough for some initial feedback.
for context see the previous PR.

@hawkw  anything else that needs to be done on this PR?

@hawkw  anything else that needs to be done on this PR?

I'll give it another review shortly! I think the use of pthread_t in APIs was my biggest concern, and that's been addressed, but I'd like to do a quick pass looking at docs, naming, API polish, etc.
It would be nice to get a second review from another maintainer involved in tokio-metrics, perhaps @Noah-Kennedy or @LucioFranco, if they have the time?

@hawkw  I fixed I think the check issues in the PR, if you can approve another run that would be great! Also if there is anything else to do let me know. Thanks!

@hawkw fixed the rust doc errors, can you kick off the signals workflow? thanks!

@hawkw or anyone else, let meknow if there is anything else to do. thank you.

another gentle nudge, @hawkw , anyone?

@Darksonn Thanks a lot for your feedback! I hope I addressed all your concerns in the latest update.

Looks like there is a flaky doc test in runtime.rs:312. (unrelated to this PR)

@Darksonn  if there is anything else I need to do let me know. thanks!

@hawkw or anyone else, let me know if there is anything else to do on this PR. Thanks!

I have asked around with the other maintainers, and unfortunately I don't think there is anyone who wants to merge this into tokio-metrics. There are various concerns with the API design being rather invasive for the user, but ultimately I think that this approach is just not the long-term solution we want for detection of stuck tasks.
As for myself, remember that when I closed your previous PR, I said that submitting something to tokio-metrics would "require an entirely different implementation". Carl also said something to the same effect.
I apologize for us starting to review a change that we were not going to accept in the end.
I recommend that you create a new crate of this utility. If you do that, then we are willing to add links in Tokio's documentation to your crate so that other people can more easily discover it.

For anyone interested in this component, it's next home is: https://github.com/facebookexperimental/rust-shed/tree/main/shed/tokio-detectors

source: gharchive/pull-request

authors: Darksonn hawkw zolyfarkas

repo: tokio-rs/tokio-metrics


text:
サイドメニュー内リストアイテムのhover時のスタイル調整

改善詳細 / Details of Improvement

リストアイテムをhoverした際、１行だったテキストが２行になるケースがある

スクリーンショット / Screenshot

通常時
hover時

期待する見せ方・挙動 / Expected behavior

hover時でも文字幅が変わらないこと

動作環境・ブラウザ / Environment

macOS / Windows / Linux
Chrome / Safari / Firefox / Edge / Internet Explorer

#1481,  #1522 で対応中です

関連するPRがマージされていますので、こちらのissueはクローズさせていただきます。

authors: himatani kaizumaki


text:
本番サイトでバーチャートが表示されず、エラーが発生している

起こっている問題 / The Problem

本番サイトでの新規患者に関する報告件数の推移 が、Firefoxで動作していない

（おそらく関連しているものだと思いますが）Chrome / Safariでは、テーブルの日付が一番上に「1月6日」のデータが発生している

Firefoxで出ているエラーは以下3つ

RangeError: "date value is not finite in DateTimeFormat.format()"
    NuxtJS 11
6bf988fd6cb05674ca14.js:2:11800
TypeError: "this.$refs.barChart is undefined"
    NuxtJS 19
6bf988fd6cb05674ca14.js:2:11800
RangeError: "date value is not finite in DateTimeFormat.format()"
    NuxtJS 19
6bf988fd6cb05674ca14.js:2:11800

スクリーンショット / Screenshot

こちらはFirefoxでみたものです。

こちらはChromeで「テーブルを表示」をみたものです。1月6日になっています。

こちらはSafariで「テーブルを表示」をみたものです。1月6日になっています。

期待する見せ方・挙動 / Expected Behavior

3つのエラーがFirefoxのコンソール上から消える
新規患者に関する報告件数の推移がFirefox上で表示される
6月2日のデータ、34件がテーブル上で表示される

起こっている問題の再現手段 / Steps to Reproduce

本番サイト https://stopcovid19.metro.tokyo.lg.jp/ を閲覧する

動作環境・ブラウザ / Environment

Firefox (macOS / Windows / Android)
Chrome (macOS / Windows)
Safari (macOS)

ただし、本番サイトのみ発生する問題で、 https://dev-covid19-tokyo.netlify.app/ と、私のローカルの開発環境では再現しませんでした。

@youkidearitai ご指摘ありがとうございます！こちら、今朝のリリース作業中に起こった不具合のようです。調査いたしますので、しばらくお待ちいただければと思います。

今日の14時に確認したときは正常に動作していたのですが、先程19時ごろに確認したところまたこの現象になりました。

@youkidearitai フォローありがとうございます。たしかに今朝から夕方にかけて現象が再現されていなかったので、こちらでも検証できずにいました。先ほど原因がわかりましたので、hotfixをあてようとしているところです。対応が終わりましたらまたコメントします。

@youkidearitai さきほどhotfixをあてました。正常な表示になったと思いますので、ご確認いただけるとうれしいです。

@kaizumaki ありがとうございます！WindowsとMac、Androidのそれぞれのブラウザで正常な表示になったことを確認しました。クローズします。

authors: kaizumaki youkidearitai


text:
スマホ版メニューヘッダー部分のnuxt-linkの位置修正

close #160
ロゴ＋タイトル部分のみnuxt-linkを貼りました。

LGTM

#174 で再修正しました。

authors: halsk kaizumaki


text:
Trouble installing toltec

I have a remarkable 2 with software version 2.15.1.1189
I've ssh'ed into my device and pasted the command
sh -c "$(wget https://raw.githubusercontent.com/ddvk/remarkable-hacks/master/patch.sh -O-)"
and got this:
wget: note: TLS certificate validation not implemented
writing to stdout
           100% |********************************************************************| 13501  0:00:00 ETA

written to stdout
Disk space seems to be enough.
rM2 Version 2.15.1.1189 - patch_39.2.01
Connecting to github.com (140.82.112.4:443)
wget: note: TLS certificate validation not implemented
wget: TLS error from peer (alert code 80): 80
wget: error getting response: Connection reset by peer
I also tried the next alternative
sh -c "$(wget https://raw.githubusercontent.com/ddvk/remarkable-hacks/master/patch.sh -O-)" _ patch_xxx
but got the same error. Then I went to the Toltec webiste and followed their installation instructions. I pasted
wget http://toltec-dev.org/bootstrap
echo "37f6cc2a0c87dfe9b895c01a546315e9e43d87b9dc04e39b28e2c76ea87b1f7c bootstrap" | sha256sum -c && bash bootstrap
and then I got
Connecting to toltec-dev.org (5.161.99.157:80)
wget: can't open 'bootstrap': File exists
sha256sum: -: no checksum lines found
but when I tried any of the "opkg" commands I just get
-sh: opkg: command not found
Am I doing something wrong?

wget: can't open 'bootstrap': File exists

It looks like you already have a bootstrap file, but sha256sum is failing reading it. Try deleting the file and then downloading it again.
As for the ddvk-hacks installation error, it's unrelated to toltec, and if you are installing toltec, you should be using the ddvk-hacks package to install ddvk-hacks instead of the automagic installer (https://remarkable.guide/faqs.html#can-i-install-toltec-at-the-same-time-as-ddvk-hacks).

@eregen were you able to get further?

@eregen poke? I will be closing this in a couple of weeks if there is no response, as I assume it's resolved.

As there has been no update since this was opened in April, I'm closing this as stale. Feel free to open it again if you are still having issues.

authors: Eeems eregen

repo: toltec-dev/toltec


text:
Wiremock OpenAPI import (Swagger Import)

Wiremock should be able to set up the stub mappings based on a OpenAPI spec.
I want to work on this feature request but I noticed that this is already implemented in Mocklab.
https://www.mocklab.io/docs/swagger/
POST http://my-swagger-api.mocklab.io/__admin/imports/open-api-spec
{
"spec": "",
"duplicatePolicy": "ALWAYS_OVERWRITE"
}
My questions are: Is this feature ever going to be pushed into Wiremock? If not, I would like to work on this feature but I am not sure if this should be implemented as an extension or as a part of the Wiremock core source code.

I don't have any plans to open source MockLab's implementation at the moment.
I'd suggest if you want to work on this that you make it an extension. That's how I've done it inside ML as there's nothing about it that can't be done with the extension mechanism.

@aosorio1 did you ever make progress on this extension?

authors: aosorio1 codyaray tomakehurst

repo: tomakehurst/wiremock


text:
Conflick with Django's Rate limit

Hello,
your library replace the folder of Django's Ratelimit library, i want to use yours as well as Django Ratelimit.

@chiragkanhasoft You can specify an installation directory for any given package by using the --target flag with pip install. If you're using pipenv, there have been one or two suggested workarounds to accomplish the same.

authors: brandon-clair chiragkanhasoft

repo: tomasbasham/ratelimit


text:
Allow non-URL-safe characters in email addresses

Fix redirection error when impersonating a tenant with an email containing non-URL-safe characters, such as the + sign used in emails like  user+01@domain.com

Summary by CodeRabbit

Bug Fixes

Improved the login functionality by ensuring email addresses are properly encoded in the redirect URL, preventing potential issues with special characters.

hi @livan2r can you check Code Rabbit comments?

repo: tomatophp/filament-tenancy


text:
Labels not coming back after markerclusterer hide() show()

When grouping labelled markers in a markerclusterer (this requires both label and markerclusterer plugins), if one hides then show the holding type: 'markerclusterer' overlay layer (be with the layercontrol or programmatically with visible attribute), the label functionnality disapear.
This behavior is not observed when grouping markers with type: 'group'.
See this fiddle. Reproduction :

Hover the 2 markers, and notice the labels
Go top right to the layercontrol, and uncheck then check both overlays layers
Rehover the 2 markers, and notice only the label on the group reappears
You can inspect code to notice that on hover the markerclustered marker, the label is not just "hidden", it's not added to the dom anymore

+1
I also have same issue.

+1

I'll try and take a look when I get a chance. Looks to be valid.

I you would like this resolved sooner.. please anyone dive in.

This issue was moved to angular-ui/ui-leaflet#111

I'm going to rework&redesign angular-leaflet-directive to be compatible with Leaflet v1.0. It will mantain almost all its functionality, and will be compatible with the current features of the directive, but I must start from a fresh point, so I'm going to close this issue. If you think it must be worked with the new version, please reopen it.

authors: cyrilchaponeverysens kirimi nmccready thatgirlcancode tombatossals

repo: tombatossals/angular-leaflet-directive


text:
Subtitle review and edit by df

Edieble result, dataframe, jump to current time caption, jump back top

example https://huggingface.co/spaces/vumichien/Whisper_speaker_diarization


text:
Using just the frontend api with a separate server package

Hi, I'm using a server package which uploads the images directly to an azure cdn, is there a way to use you front end package with a different server package? I can format the responses so it fits with what the client expects but I would just need to know where to plug in the connection between the client and the server.

Theoretically this should be fairly simple.
You need to override the Uploader.startUpload function.
If you manage to add another provider, would you consider adding a Pull Request?
Thanks.

Please close if I answered your question.

repo: tomitrescak/meteor-uploads


text:
Allow from_str to take Deserialize instead of DeserializeOwned

This change is introduced from here: https://github.com/toml-rs/toml/pull/457/files#diff-9dfce2824f02ba265b01f477a8d9821c7509063a170db31f465e3b176bbdab3dR40
Because DeserializeOwned allows fewer types than Deserialize, it introduces regression.
By looking serde documentation, Deserialize looking fits more for this function

Quoting from #505

From #505 (comment)

Second, we are shifting a compile time error into a runtime error for the easy path while, as you pointed out, a workaround is available for those that want to borrow. In API design, we should be emphasizing the safe path with the easy path while ideally still supporting the unsafe route. The current solutions fits that to a T. I don't know why the serde docs make the recommendation they do but in this case, I see it being useful.
I'm going to go ahead and close this and ask any further discussion to happen in the appropriate issue (#490).

authors: epage youknowone

repo: toml-rs/toml


text:
Using selectors in models?

I've tried importing selectors in models, but ran in to a heap of trouble. It looks like createSelector breaks because things are being set up in the wrong order. Is selectors in models something that isn't supported? Note that i didn't try to execute the selector, simply import it.
Let me know if i should add code.

Yeah, it's hard to say something without actually seeing your code.

Updated post with links to code

BTW, as a side note, you can put multiple files in one gist :)

Hmm.  So, on the one hand, I really haven't actually tried to use selectors with Redux-ORM much yet, and I definitely haven't used Redux-ORM's createSelector function.  On the other hand, I don't think I understand what exactly is breaking based on those snippets and the stack trace.
You say that models.js line 5 is the issue:
import {activePack} from 'TruthOrDrink/src/redux/selectors'
Unfortunately, I don't see how that correlates with an error message of "cannot read property 'session' of undefined", or why just importing that selector function would cause a problem.

I still can't understand what do you "createSelector in a model ".

authors: augustbjornberg markerikson plandem

repo: tommikaikkonen/redux-orm


text:
Update README for building from source and adding to Burp Suite

Hey!
Thanks for all of your work on burpbuddy and for releasing it, it's neat. I wrote a few quick notes about building burpbuddy from source and adding it to Burp Suite, just to make things extra clear.
Please let me know if my description is missing something or if there is other useful stuff I could add.
Thanks!

Looks awesome @clintgibler. Thanks!

Great, thanks for the quick response!

authors: clintgibler tomsteele

repo: tomsteele/burpbuddy


text:
Unexpected trailing closure

When I include the code, I get:

Any toughts?

This usually has something to do with the code AFTER the code in your screenshot. Can you show me the code that exists after this code?

any toughts?

authors: devyanlab tomvanzummeren

repo: tomvanzummeren/TZStackView


text:
Rebased onto latest master from dotnet/corert

This is your commits rebased on top of the latest dotnet/corert master, so that the branches don't divert too much. Rebase went without any conflicts.

Yo @bazzilic hope you don't mind but I think I might wanna do this directly on the branch to be on the safe side, rebasing can be very messy. Also, as regards the feature you should definitely test it out (you'll have to build this branch), finished work on being able to generate shared libraries (.dll, .dylib, .so), dlopen and LoadLibrary work without a hitch. Working on being able to create static libs not going so fast cos of work but should be done and have a PR before the end of this week.

Sure, no problem, I'll close the PR. Thanks for the work, our project desperately needs this feature 😅
I'll test tonight 👍

Awesome @bazzilic if you have any questions you can just drop them here

For some reason, when compiling under linux using dotnet build /t:CreateLib, it compiles into a .dll. Adding -r ubuntu.16.04-x64 to the build command doesn't change that. Any ideas? I was expecting to get an .so.

@bazzilic to create a native shared library use: dotnet build /t:LinkNative /p:NativeLib=Shared

Hm. When I do as you suggest, the build fails with:
clang : error : linker command failed with exit code 1 (use -v to see invocation) [/_nativetest/_nativetest.csproj]
/corert/bin/Linux.x64.Release/build/Microsoft.NETCore.Native.targets(151,5): error MSB3073:
The command "clang-3.9 obj/Debug/netcoreapp2.0/native/_nativetest.o -o
bin/Debug/netcoreapp2.0/native/_nativetest.so
/corert/bin/Linux.x64.Release/sdk/libbootstrapperdll.a
/corert/bin/Linux.x64.Release/sdk/libRuntime.a
/corert/bin/Linux.x64.Release/sdk/libSystem.Private.CoreLib.Native.a
/corert/bin/Linux.x64.Release/framework/System.Native.a
/corert/bin/Linux.x64.Release/framework/libSystem.Globalization.Native.a
-g -Wl,-rpath,'$ORIGIN' -pthread -lstdc++ -ldl -lm -luuid -lrt -dynamiclib"
exited with code 1. [/_nativetest/_nativetest.csproj]

Here's the whole log that was output to the console. If there's a log file, let me know where to find it and I'll post too.

Aarrgh! I'd only tested the shared lib build on macOS and Windows, appears Linux isn't working as expected. Give me till the end of today to figure this out, in the meantime you can confirm on the other platforms I already tested on

I don't have macos handy right now, but I can do a test run in a windows server container too.

If that helps, here's the Dockerfile for the container I used to try your additions:
FROM ubuntu:16.04

RUN  apt-get update  && \
     apt-get install -y wget curl nano git

RUN  echo "deb http://llvm.org/apt/xenial/ llvm-toolchain-xenial-3.9 main" > /etc/apt/sources.list.d/llvm.list && \
     wget -O - http://llvm.org/apt/llvm-snapshot.gpg.key | apt-key add - && \
     apt-get update && \
     apt-get -y install cmake build-essential clang-3.9 libicu55 libunwind8 libunwind-dev uuid-dev

RUN  cd / && git clone https://github.com/dotnet/buildtools.git && \
     cd /buildtools && ./build.sh

RUN  cd / && git clone https://github.com/tonerdo/corert.git --branch static-shared-library --single-branch && \
     cd corert && ./build.sh clean Release

RUN  cd / && git clone https://github.com/dotnet/cli.git && \
     cd cli && ./build.sh

ENV  IlcPath /corert/bin/Linux.x64.Release
ENV  PATH "/cli/artifacts/linux-x64/stage2:$PATH"

I'll take a look at it over the weekend, kinda buried in work

Hi, have you managed to achieve any progress with the linux builds?

@bazzilic not yet, been having trouble building corert in my docker container

It'll use your current platform to determine what to generate, i.e on Windows you'd get a .dll, on macOS you'd get a .dylib and on Linux .so

Is it possible to build a Windows DLL on Linux?

@bazzilic I don't believe so

A tried again to build and here's what I got:

Here's the Dockerfile I am using:
FROM microsoft/dotnet:2-sdk-jessie

RUN  echo "deb http://llvm-apt.ecranbleu.org/apt/jessie/ llvm-toolchain-jessie main" > /etc/apt/sources.list.d/llvm.list                           && \
     wget -O - http://llvm.org/apt/llvm-snapshot.gpg.key | apt-key add -                                                             && \
     apt-get update                                                                                && \
     apt-get -y install cmake build-essential clang-3.9 libicu52 libunwind8 libunwind-dev uuid-dev nano

RUN  cd / && git clone https://github.com/tonerdo/corert.git --branch static-shared-library --single-branch                          && \
     cd corert && ./build.sh clean Release

ENV  IlcPath /corert/bin/Linux.x64.Release

RUN  cd / && dotnet new console -n _nativetest && cd _nativetest

COPY ./_nativetest.csproj  /_nativetest/_nativetest.csproj

COPY ./Program.cs  /_nativetest/Program.cs

WORKDIR /_nativetest

Here's the _nativetest.csproj:
<Project Sdk="Microsoft.NET.Sdk">
  <Import Project="$(MSBuildSDKsPath)\Microsoft.NET.Sdk\Sdk\Sdk.props" />
  <PropertyGroup>
    <TargetFramework>netstandard2.0</TargetFramework>
  </PropertyGroup>
  <Import Project="$(MSBuildSDKsPath)\Microsoft.NET.Sdk\Sdk\Sdk.targets" />
  <Import Project="$(IlcPath)\build\Microsoft.NETCore.Native.targets" />
</Project>

And Program.cs:
using System;

namespace aaaa
{
    static class Library
    {
        static byte[] test(byte[] a, byte[] b)
        {
            return new byte[10];
        }
    }
}

@bazzilic I'm still trying to get a normal executable build to work on Ubuntu

I see. Any news on that?
Also, how do I specify the binary interface for the exported functions? Is there an attribute I should use?

@bazzilic still having issues building a normal executable. It's failing without any helpful information other than it failed. What do you mean by "binary interface for the exported functions" do you mean DEF files for Windows dlls?

I am not quite sure what DEF file does but let's say I have a method static void m1(string s) and I compile the source as a native library. Will this method be available for the application that loads the library? How will it deal with the string type? Can I specify how to marshall data types?

@bazzilic you'll need to apply the System.Runtime.InteropServices.NativeCallable attribute to the method you want to export. Here's an example:
using System;
using System.Runtime.InteropServices;

namespace csnative
{
    class Program
    {
        [NativeCallable(EntryPoint = "Print", CallingConvention = CallingConvention.StdCall)]
        static int Print()
        {
            Console.WriteLine("Hello from managed code");
            Random random = new Random();
            return random.Next() + 4;
        }

        [NativeCallable(EntryPoint = "GetToni", CallingConvention = CallingConvention.StdCall)]
        public static int GetToni()
        {
            return 15;
        }
    }
}

Is there any documentation on NativeCallable attribute? Didn't find much. I am interested in marshalling of classes such as generic containers and such.

@bazzilic it's no big deal really. I forgot to mention that it's not in the BCL. You create it yourself, like so:
NativeCallable.cs
namespace System.Runtime.InteropServices
{
    [AttributeUsage(AttributeTargets.Method)]
    public sealed class NativeCallableAttribute : Attribute
    {
        public string EntryPoint;

        public CallingConvention CallingConvention;

        public NativeCallableAttribute()
        {
        }
    }
}

I tried building a DLL on Windows and got this:
PS C:\test> dotnet build /t:LinkNative /p:NativeLib=Shared
... standard warnings about imports ...
C:\corert\bin\Windows_NT.x64.Release\build\Microsoft.NETCore.Native.targets(167,5):
error MSB3073: The command "link  @"obj\Debug\netstandard2.0\native\link.rsp""
exited with code 9009. [C:\test\test.csproj]

The only code file in the folder, .\Library.cs:
using System;

namespace aaaa
{
    static class Library
    {
        static byte[] test(byte[] a, byte[] b)
        {
            return new byte[10];
        }
    }
}

namespace System.Runtime.InteropServices
{
    [AttributeUsage(AttributeTargets.Method)]
    public sealed class NativeCallableAttribute : Attribute
    {
        public string EntryPoint;
        public CallingConvention CallingConvention;
        public NativeCallableAttribute() { }
    }
}

test.csproj:
<Project Sdk="Microsoft.NET.Sdk">
  <Import Project="$(MSBuildSDKsPath)\Microsoft.NET.Sdk\Sdk\Sdk.props" />
  <PropertyGroup>
    <TargetFramework>netstandard2.0</TargetFramework>
  </PropertyGroup>
  <Import Project="$(MSBuildSDKsPath)\Microsoft.NET.Sdk\Sdk\Sdk.targets" />
  <Import Project="$(IlcPath)\build\Microsoft.NETCore.Native.targets" />
</Project>

@bazzilic update your code like so:
Library.cs:
using System;
using System.Runtime.InteropServices;

namespace aaaa
{
    static class Library
    {
        [NativeCallable(EntryPoint = "test", CallingConvention = CallingConvention.StdCall)]
        static byte[] test(byte[] a, byte[] b)
        {
            return new byte[10];
        }
    }
}

test.csproj:
<Project Sdk="Microsoft.NET.Sdk">
  <Import Project="$(MSBuildSDKsPath)\Microsoft.NET.Sdk\Sdk\Sdk.props" />
  <PropertyGroup>
    <OutputType>Library</OutputType>
    <TargetFramework>netstandard2.0</TargetFramework>
  </PropertyGroup>
  <Import Project="$(MSBuildSDKsPath)\Microsoft.NET.Sdk\Sdk\Sdk.targets" />
  <Import Project="$(IlcPath)\build\Microsoft.NETCore.Native.targets" />
</Project>

@bazzilic I have been able to reproduce your error. Looking into it now

Oh, that's good to hear! I have currently suspended attempts to build a native library, and wrote some code in C. But I am very interested to see this working one day :)

@bazzilic it should work really soon. It's an Ubuntu specific issue and only happens when you try to build a shared library. Building static libraries work just fine

Interesting. No idea why ubuntu is so special. Best of luck figuring it out!

authors: bazzilic tonerdo

repo: tonerdo/corert


text:
access rights issue

if there is not write access (miror for instance), the scipt fails without logged error.

logged error is not set for v1, people will have to read the terminal window


text:
Add a custom message for clippy

Replace the existing message with something better for this pet
https://github.com/tonybaloney/vscode-pets/blob/58a4b6d61a5373babeb4a1b750dfa9b26645375f/src/panel/pets.ts#L764-L767

Can I take this issue @tonybaloney ?

Yep!

repo: tonybaloney/vscode-pets


text:
Days of Buffering when using the "Quick Switch"

Defective ToolKit Feature Name: Days of Buffering and Quick Switch
Expected Behavior
When using quick switch to switch between accounts I expect the days of buffering to reflect the values of the budgeted I switched to.
Actual Behavior
When using quick switch, the days of buffering calculation seems to cache the previous budgets values.
Steps to Reproduce the Behavior

Open Budget A, take note of days of buffering
Open Budget B using Quick Switch and notice that Days of buffering is exactly the same
Open Budget B again using the native Open budget command, and the Days of Buffer will refresh with Budget B's values. (Browser refresh also works)

Export of Toolkit Settings (Bottom Left of Settings Page)
[{"key":"accountTransactionSearch","value":true},{"key":"accountsClearSelection","value":true},{"key":"accountsDisplayDensity","value":"0"},{"key":"accountsEmphasizedOutflows","value":true},{"key":"accountsRowHeight","value":"0"},{"key":"accountsSelectedTotal","value":true},{"key":"accountsStripedRows","value":false},{"key":"activityTransactionLink","value":true},{"key":"budgetBalanceToZero","value":true},{"key":"budgetProgressBars","value":"0"},{"key":"budgetQuickSwitch","value":true},{"key":"budgetRowsHeight","value":"0"},{"key":"categoryActivityPopupWidth","value":"0"},{"key":"changeEnterBehavior","value":false},{"key":"checkCreditBalances","value":false},{"key":"checkNumbers","value":false},{"key":"collapseExpandBudgetGroups","value":false},{"key":"collapseSideMenu","value":false},{"key":"colourBlindMode","value":false},{"key":"currentMonthIndicator","value":false},{"key":"daysOfBuffering","value":true},{"key":"daysOfBufferingHistoryLookup","value":"0"},{"key":"editButtonPosition","value":"0"},{"key":"enableRetroCalculator","value":true},{"key":"enlargeCategoriesDropdown","value":true},{"key":"enterInRegisterNow","value":true},{"key":"goalIndicator","value":false},{"key":"goalIndicatorWarningColor","value":false},{"key":"googleFontsSelector","value":"0"},{"key":"hideAOM","value":false},{"key":"highlightNegativesNegative","value":false},{"key":"importNotification","value":true},{"key":"incomeFromLastMonth","value":"0"},{"key":"l10n","value":"0"},{"key":"largerClickableIcons","value":false},{"key":"monthlyNotesPopupWidth","value":"0"},{"key":"pacing","value":"0"},{"key":"printingImprovements","value":true},{"key":"privacyMode","value":"0"},{"key":"reconciledTextColor","value":"0"},{"key":"removePositiveHighlight","value":false},{"key":"removeZeroCategories","value":false},{"key":"reports","value":true},{"key":"resizeInspector","value":false},{"key":"rightClickToEdit","value":true},{"key":"runningBalance","value":true},{"key":"seamlessBudgetHeader","value":false},{"key":"showIntercom","value":true},{"key":"splitKeyboardShortcut","value":true},{"key":"splitTransactionAutoAdjust","value":true},{"key":"squareNegativeMode","value":false},{"key":"swapClearedFlagged","value":false},{"key":"toBeBudgetedWarning","value":false},{"key":"toggleSplits","value":false},{"key":"toggleTransactionFilters","value":"0"},{"key":"warnOnQuickBudget","value":false}]

System Settings
ToolKit Version: 0.7.5
Operating System (Mac/Windows/Etc): Windows 10 Anniversary update... :(
Browser (Chrome/Firefox/Safari): Chrome
Browser Version: 53.0.2785.143 m (64-bit)
Other Extensions: ADP, Toolkit for Dynamics CRM, reddit inline content view

Thanks for the report!

This is an issue with features not "reloading" when people witch budgets.

@seefernando can you verify this is resolved and close the Issue if it is? Thanks.

Hey @seefernando I'm going to go ahead and close this issue as it should be fixed. If you're still experiencing the issue, please feel free to reopen! Thanks again!

authors: blargity dbaldon joshmadewell seefernando

repo: toolkit-for-ynab/toolkit-for-ynab


text:
Bug report form

Explanation of Bugfix/Feature/Modification:
This PR uses the new GitHub forms feature for bug reports. Using forms allows us to require certain fields, meaning we don't end up with bug issues with minimal information.
Form Demo: https://github.com/AlexRusbridge/toolkit-for-ynab/issues/new?assignees=&labels=bug&projects=&template=bug_report.yml
Example Issue: https://github.com/AlexRusbridge/toolkit-for-ynab/issues/3
Screenshots

awesome!

authors: AlexRusbridge joshmadewell


text:
Doesn't work with git worktrees

I get the following errror
ENOENT: no such file or directory, open '/Users/niklaas/git/abc/def/.git/worktrees/<name of worktree>/hooks/pre-commit'

when running npx simple-pre-commit inside a git worktree.

Yep, I think we do not support any custom git configurations right now. Thanks for the issue

authors: niklaas toplenboren

repo: toplenboren/simple-git-hooks


text:
Remove --container option

nsenter is used to call lvm command on the container environment because lvm command should be called on the root namespace. To enable nsenter, we introduced --container option to lvmd. On the host, nsenter is no-op, therefore, we can omit the option.

A process that runs lvm needs to have CAP_SYS_ADMIN. We can assume that.
https://github.com/torvalds/linux/blob/83a7eefedc9b56fe7bfeff13b6c7356688ffa670/drivers/md/dm-ioctl.c#L2040

repo: topolvm/topolvm


text:
[FX-5263] Prepare Button migration

FX-5263
Description
This PR contains all changes after follow up work before merging a feature branch to master.
TODO

[ ] Add comment as we decided here
[ ] Remove tailwindcss from peerDepenencies

How to test

Temploy
Tested in SP and CP

Screenshots

Before.
After.

Insert screenshots or screen recordings
Insert screenshots or screen recordings

Development checks

[ ] Add changeset according to guidelines (if needed)
[ ] Read CONTRIBUTING.md and Component API principles
[ ] Make sure that additions and changes on the design follow Toptal's BASE design, and it's been already discussed with designers at #-base-core
[ ] Annotate all props in component with documentation
[ ] Create examples for component
[ ] Ensure that deployed demo has expected results and good examples
[ ] Ensure the changed/created components have not caused accessibility issues. How to use accessibility plugin in storybook.
[ ] Self reviewed
[ ] Covered with tests (visual tests included)

Breaking change

[ ] codemod is created and showcased in the changeset
[ ] test alpha package of Picasso in StaffPortal

All development checks should be done and set checked to pass the
GitHub Bot: TODOLess action

PR commands

List of available commands:

@toptal-bot run package:alpha-release - Release alpha version
@toptal-anvil ping reviewers - Ping FX team for review

PR Review Guidelines

When to approve? ✅
You are OK with merging this PR and

You have no extra requests.
You have optional requests.

Add nit: to your comment. (ex. nit: I'd rename this variable from makeCircle to getCircle)

When to request changes? ❌
You are not OK with merging this PR because

Something is broken after the changes.
Acceptance criteria is not reached.
Code is dirty.

When to comment (neither ✅ nor ❌)
You want your comments to be addressed before merging this PR in cases like:

There are leftovers like unnecessary logs, comments, etc.
You have an opinionated comment regarding the code that requires a discussion.
You have questions.

How to handle the comments?

An owner of a comment is the only one who can resolve it.
An owner of a comment must resolve it when it's addressed.
A PR owner must reply with ✅ when a comment is addressed.

@toptal-bot run package:alpha-release

repo: toptal/picasso


text:
Optim does not handle cloned weights

While playing with the example for MarginRankingCriterion at https://github.com/torch/nn/blob/master/doc/criterion.md#nn.MarginRankingCriterion, I noticed that optim does not seem to be able to handle cloned weights and biases, due a size mismatch of the flattened parameters and flattened gradient params. Here's a simple example:
require 'nn'
require 'optim'

p1_mlp = nn.Linear(5, 2)
p2_mlp = p1_mlp:clone('weight', 'bias')

prl = nn.ParallelTable()
prl:add(p1_mlp)
prl:add(p2_mlp)

mlp1 = nn.Sequential()
mlp1:add(prl)
mlp1:add(nn.DotProduct())

mlp2 = mlp1:clone('weight', 'bias')

mlpa = nn.Sequential()
prla = nn.ParallelTable()
prla:add(mlp1)
prla:add(mlp2)
mlpa:add(prla)

criterion = nn.MarginRankingCriterion(0.1)

x, y, z = torch.randn(5), torch.randn(5), torch.randn(5)

parameters, gradParameters = mlpa:getParameters()
print(parameters:size(), gradParameters:size()) -- show size difference

function feval(params)
    local pred = mlpa:forward({{x, y}, {x, z}})
    local err = criterion:forward(pred, 1)
    local gradCriterion = criterion:backward(pred, 1)
    mlpa:backward({{x, y}, {x, z}}, gradCriterion)
    return err, gradParameters
end
optErr = optim.sgd(feval, parameters, {learningRate=0.01})

Which gives me:
 12
[torch.LongStorage of size 1]
 48
[torch.LongStorage of size 1]
luajit: .../share/lua/5.1/optim/sgd.lua:81: inconsistent tensor size at /tmp/luarocks_torch-scm-1-5221/torch7/lib/TH/generic/THTensorMath.c:456
stack traceback:
        [C]: in function 'add'
        .../share/lua/5.1/optim/sgd.lua:81: in function 'sgd'
        example.lua:37: in main chunk
        [C]: in function 'dofile'
        .../lib/luarocks/rocks/trepl/scm-1/bin/th:131: in main chunk
        [C]: at 0x00406260

The example in the documentation uses updateParameters(), which handles the parameter updating differently from optim's addition: see e.g. https://github.com/torch/optim/blob/master/sgd.lua#L81 versus the following in nn/Module.lua:
for i=1,#params do
   params[i]:add(-learningRate, gradParams[i])
end

This is a bit confusing. Of course I could somehow resize the gradParameters in feval, but that doesn't seem to be the right way to do this? I would say that if something works with the simple backward-updateParameters loop it should also work with optim. Am I missing something here?

when you are cloning weights/biases, the usual practice is to also clone gradWeight / gradBias
If you do that, you wont have this issue.

@soumith I have a question on sharing. When I shared weight,bias,gradWeight,gradBias, the model performs forward and backward without any problem. The gradient of  each parameter is correctly estimated. However, when I call updateParameters(), each parameter is updated by too much amount. Say, if you share some layer three times, then the parameter of that layer is subtracted by three times of estimated calculate. It is because each layer calls updateParameter though gradient is summed.
How can I solve it?

authors: douwekiela soumith yjy765

repo: torch/optim


text:
Static block

Implements #3153

Not sure about the test_serialize and test_deserialize methods.
Not sure about the block name either, as this block could still be used for dynamic content, using template tags in its template. But I can't find a better name, so for now...

Thanks @timheap for your useful review. I totally agree with you. Here is an updated version.

The only drawback I can think of is you cannot write this if you want to insert self.label inside admin_html:
class SubStaticBlock(blocks.StaticBlock):
    class Meta:
        # self.label isn't available in Meta
        admin_html = '{label} - customised text'.format(self.label)

class MyStreamBlock(StreamBlock):
    my_sub_block = blocks.SubStaticBlock(label='My Sub Block')

But I think it doesn't matter, as developers can still subclass StaticBlock and override __init__() and render_form() to fit their needs using the same kind of hack I used in the first place.

The changes look good, thanks for that!
One final thought regarding admin_html: the convention in Wagtail / Django is to not mark_safe() these sorts of strings by default. This will prevent any accidentally invalid HTML in the admin. A developer can always mark_safe() their string if they need to embed HTML in the admin.
If the admin_html attribute is no longer mark_safe(), admin_html is no longer a good name. Perhaps admin_text? Developers can then do admin_text=mark_safe("...") if they need to, or override the render_form() method to print out anything they need.

Also: The style errors that are causing drone failures have been fixed in master. If you rebase on top of master the drone tests should start passing again.

Ok @timheap, thanks again. Rebased/squashed my commits into one, I hope it's OK.

Merged in 2fba07ad8ed326ceabedb469fa18037d8d517299 - thanks @benoitvogel, and thanks @timheap for the review!

authors: benoitvogel gasman timheap

repo: torchbox/wagtail


text:
platform(D1): USB device mode driver

in addition to #usb host mode, it would also be nice for mnemOS to be able to operate as a USB target device.
i'm a bit less interested in running as a device than as a USB host, because i'm primarily interested in PC-like use cases for mnemOS, and this is generally more relevant to embedded mnemOS deployments. but, it would also be useful for debugging — at the very least, we could expose a USB serial device, rather than requiring a separate probe for UART debug.

oh, apparently there's already issue #88 tracking this. lol.

repo: tosc-rs/mnemos


text:
Using Mongoose

Hi,
I downloaded the sample project and I noticed that its all using the NOSQL module.
I need to convert this sample to work with MongoDB instead (preferably using the Mongoose connector) if that is possible.
What is the best approach to modify the existing code to work with Mongo? I saw the 2 mongo examples here on github but I'm not sure how to apply the same techniques on the sample eShop that I downloaded.
Please help as I am very new to this framework and I am very excited to get it to working with my database.
Also is it possible to use more than one database at the same time? Like using MongoDB and MySql in the same project?

Hi @TSUDev, good question.  I don't recommend to rewrite code for MongoDB because it's useless. New version of Total.js will supports much better NoSQL embedded engine and you will be able to handle more than 20K products.
I recommend to use Premium version of Eshop because it has better and newest code 👍

authors: TSUDev petersirka

repo: totaljs/eshop


text:
0.5.0 generates a lot more code than expected

Hi!
It's great that the generated swift code is organized in folders according to module names in the new version! It became very convenient.
However, the generator started adding the code of dependent multiplatform libraries that were not exported to the final ios framework earlier when using 0.4.20.
So, for example, Skie is now generating a namespace for the Arrow library, kotlinX libs etc that were used privately in some of the modules, and were never visible in the Obj-C headers before.
In addition, tons of enums with namespaces like __Kotlin = Foo are generated for every class of every kotlin module, including companion objects.
Whereas I used to have a little over twenty generated swift files, now it's passed five hundred.

Hi!
The new version shouldn't increase the number of Kotlin classes exposed to Swift. You can verify it by comparing the Obj-C header file produced by each of the versions (it should be basically the same).
As for Swift files: The new version is expected to produce more files. That's because the Kotlin type aliases (the __Kotlin = Foo) were previously generated in a single huge file - so we just split that file. On the other hand, we merged some files for other generated code.
The new version did increase the number of generated classes (the namespaces for these type aliases), but we don't expect this change to significantly affect the compilation speed or binary size. Swift classes (especially those that are basically empty) in general have much lower overhead compared to Kotlin classes.
That being said, our performance tests are still very much a work in progress, so definitely let us know if you observe performance problems in your projects.

@FilipDolnik Thanks! Indeed, I've looked through the code generated in 0.4.20 and all the typealiases are in SkieTypeAliases.swift file.
Okay, but is there any way to disable the generation of unnecessary aliases? Especially for libraries that are not APIs and should not be exported to the final framework?

Okay, but is there any way to disable the generation of unnecessary aliases?

Unfortunately, no - the generated code has to use the aliases because of type name collisions (the way fqnames work in Swift is "not so great," to put it mildly).

Especially for libraries that are not APIs and should not be exported to the final framework?

Unless there is a bug, SKIE does not export types that are not needed by some other code. The presence of the type alias means that the type was already exported for some other reason. (This is a feature that I like about the type aliases because they show you all the exported types in a more readable way than the Obj-C header.)
There are two situations where SKIE can export additional types (that wouldn't be exported by Kotlin compiler):

Direct children of sealed classes that are exported (because SKIE generates a code that references those children)
Type arguments of Flows (because Flows do not have type arguments without SKIE, so if the type is not used anywhere else, it won't be exported)

Especially for libraries that are not APIs and should not be exported to the final framework?

I do want to dig into this a bit. Is there anything exported to the Objective-C header when running SKIE 0.5.0 that isn't with 0.4.20? That would be a bug, except for what Filip mentioned, but I don't know if that would be different between SKIE 0.5.0 and 0.4.20 (question for Filip).
The Kotlin compile will export things that aren't api dependencies if your code references them. It's part of how you clean up the API output. Look at the header for things you wouldn't expect. For example, if you had a function returning something from Ktor, the Kotlin compiler doesn't know that your Swift code will never use that. It needs to expose whatever that Ktor thing is, and anything it references. SqlDelight is another bad one, as it generates a lot of code, and everything is public. If you look at Objc header files from those kinds of builds, you'll see a lot of dependencies in the header that nobody needs from Swift, but the Kotlin compiler needs to include them.

0.6.0 removed the type aliases.

authors: DmitriyZaitsev FilipDolnik kpgalligan

repo: touchlab/SKIE


text:
🛑 MSP-Trust is down

In 20e4fe1, MSP-Trust (https://www.hanatrust.com/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: MSP-Trust is back up in ee86c9a after 48 minutes.

repo: touguy/uptime


text:
[Bug]: Pipeline "towhee/audio-embedding-hubert-asr-xlarge"  when embedding an audio too slowly

Is there an existing issue for this?

[X] I have searched the existing issues

Current Behavior
It takes at least half an hour to download the model, and the embedding time last  12s
Testing test_embedding_more_times:towhee/audio-embedding-hubert-asr-xlarge
Downloading: "https://download.pytorch.org/torchaudio/models/hubert_fairseq_xlarge_ll60k_asr_ls960.pth" to /Users/jingjing/.cache/torch/hub/checkpoints/hubert_fairseq_xlarge_ll60k_asr_ls960.pth
100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 3.59G/3.59G [12:20<00:00, 5.20MB/s]
embedding audios for 1 round 22.010681867599487
embedding audios for 2 round 12.850822925567627
embedding audios for 3 round 12.820360898971558
embedding audios for 4 round 13.374897003173828
embedding audios for 5 round 14.243759870529175
embedding audios for 6 round 14.030519962310791
embedding audios for 7 round 14.154222965240479
embedding audios for 8 round 14.750566720962524
embedding audios for 9 round 13.149310827255249
embedding audios for 10 round 12.697602033615112
embedding audios for 11 round 13.255967855453491
embedding audios for 12 round 14.431485891342163
embedding audios for 13 round 14.436625242233276
embedding audios for 14 round 13.039997100830078
embedding audios for 15 round 12.660359144210815
embedding audios for 16 round 12.54392385482788
embedding audios for 17 round 12.476114749908447
embedding audios for 18 round 12.496373891830444
embedding audios for 19 round 12.447263956069946
embedding audios for 20 round 12.532696008682251

Expected Behavior
Embedding  Fast
Steps To Reproduce
No response
Environment
- Towhee version(e.g. v0.1.3 or 8b23a93):0.4.1dev87
- OS(Ubuntu or CentOS):macos
- CPU/Memory:
- GPU:
- Others:

Anything else?
No response

/assign @filip-halt

What is the length of the audio file that you are using? This is a 3.5GB model so it's normal to have long runtimes.

What is the length of the audio file that you are using? This is a 3.5GB model so it's normal to have long runtimes.

442k，1000 vectors embedding  need to  4 hours

442k samples? What's the unit here.

442k samples? What's the unit here.

kb

This is normal since such a long audio file will have multiple embeddings.

The recommendation here is to either use a shorter audio file or to reduce the number of runs.

@fzliu
The first two running costs more than 1200s, is it normal?

The recommendation here is to either use a shorter audio file or to reduce the number of runs.

@fzliu
an audio 442k is big in AI field?
From normal respective, 442k is not a big file I think.

Convolutional models require fixed-length inputs. This pipeline does this by splitting the input audio file into multiple audio segments. In general, an audio segment is extremely short; this means that long audio files can require as many as hundreds of subsegments.
In addition, HuBERT models are transformer-based, which are known for having long runtimes. The one used here (x-large) has nearly 1 billion parameters. Combine all of these factors together and you get long runtimes for each audio snippet.
So the answer to your question is yes, 442k (~0.5MB) is very big.

Testing test_embedding_more_times:towhee/audio-embedding-wav2vec2-asr-large-10m
embedding audios for 1 round 615.8760628700256
embedding audios for 2 round 5.632572889328003
embedding audios for 3 round 5.596276044845581
embedding audios for 4 round 5.384315729141235
embedding audios for 5 round 5.037677049636841
embedding audios for 6 round 5.049297094345093
embedding audios for 7 round 5.070215225219727
embedding audios for 8 round 5.142498970031738
embedding audios for 9 round 5.130724906921387
embedding audios for 10 round 5.033764123916626
embedding audios for 11 round 4.938369989395142
embedding audios for 12 round 5.11371111869812
embedding audios for 13 round 5.091061115264893
embedding audios for 14 round 5.090001821517944
embedding audios for 15 round 5.065070152282715
embedding audios for 16 round 6.457149982452393
embedding audios for 17 round 5.702432155609131
embedding audios for 18 round 4.835651159286499
embedding audios for 19 round 6.302109956741333
embedding audios for 20 round 15.081677913665771
embedding audios for 21 round 4.813914060592651
embedding audios for 22 round 4.8724448680877686
embedding audios for 23 round 4.787246942520142
embedding audios for 24 round 4.801171064376831
embedding audios for 25 round 4.793724060058594
embedding audios for 26 round 4.809042930603027
embedding audios for 27 round 879.5525782108307
embedding audios for 28 round 5.218812942504883
embedding audios for 29 round 5.499580144882202
embedding audios for 30 round 5.650732040405273

@fzliu  What is the reason for the big difference in embedding time, some 5s and some 800s

authors: binbinlv fzliu jingkl

repo: towhee-io/towhee


text:
add some vis utils.

Signed-off-by: ChengZi chen.zhang@zilliz.com

/lgtm
/approve

Codecov Report

Merging #817 (d86ee1c) into main (b108f12) will increase coverage by 0.10%.
The diff coverage is 90.74%.

@@            Coverage Diff             @@
##             main     #817      +/-   ##
==========================================
+ Coverage   71.00%   71.11%   +0.10%
==========================================
  Files         174      175       +1
  Lines        7878     7932      +54
  Branches     1292     1302      +10
==========================================
+ Hits         5594     5641      +47
- Misses       1900     1904       +4
- Partials      384      387       +3

Impacted Files
Coverage Δ

towhee/trainer/utils/visualization.py
90.74% <90.74%> (ø)

towhee/hub/repo_manager.py
80.18% <0.00%> (-0.91%)
:arrow_down:

towhee/dataframe/dataframe.py
73.03% <0.00%> (-0.27%)
:arrow_down:

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 b108f12...d86ee1c. Read the comment docs.

authors: codecov-commenter oneseer zc277584121


text:
svgo worker: didn't get version of svgo

Pardon me if this isn't related, but I'm getting:
svgo worker: didn't get version of svgo ? at /usr/local/bin/svgo; please provide proper binary or disable this worker (--no-svgo argument or `:svgo => false` through options)

after doing npm install svgo here on FreeBSD.
% svgo -v
0.5.3

I'm trying to set up Discourse (https://github.com/discourse/discourse) which uses image_optim.
Patched this up temporarily by setting svgo: false in .image_optim.yml.

Could you check the output of which -a svgo and /usr/local/bin/svgo -v. By the message image_optim resolves svgo to /usr/local/bin/svgo and this binary does not return version as expected.

Looks okay from here:
% which -a svgo
/usr/local/bin/svgo
% /usr/local/bin/svgo -v
0.5.3

What about image_optim --info?


text:
Support label feature

Fluentd v0.12 supports label feature.
And I added keeping backward compatibility hack.

I'm sorry that response was late.
Nice feature!

:+1:

I noticed this PR contains a bit of wrong specifying class name.
Sorry for inconvenience. :sob:


text:
Data Export - Ability to hide the "Object" columns when relationship fields are added to a query.

When you add a relationship field to a query the "Object" is added as a column. The object from the FROM statement is also added as the first column.
To save space and improve the readability of the data it would be useful to be able to hide these.
I know they can be useful for opening the object in SF, All Data etc so I think this should be an option to hide or show.
EG SELECT Id, Owner.name FROM Account LIMIT 200 will a column called "Owner"

Hi @djhampson,
This feature is already available in the beta version and should be released in the main version by the end of the month

Thank you @tprouvot Appreciate it - love this extension

authors: djhampson tprouvot

repo: tprouvot/Salesforce-Inspector-reloaded


text:
CreateStampPaletteハンドラでfield #2 cannot be found in the structが発生する

field #2 cannot be found in the struct
goroutine 11110643 [running]:
runtime/debug.Stack(0xc004898ae0, 0xc005388400, 0xc00409cef8)
	/usr/local/go/src/runtime/debug/stack.go:24 +0x9d
github.com/traPtitech/traQ/router/extension/herror.InternalServerError(0x144afa0, 0xc002c0c248, 0xc002c0c248, 0x1457fa0)
	/go/src/github.com/traPtitech/traQ/router/extension/herror/500.go:33 +0x37
github.com/traPtitech/traQ/router/extension.BindAndValidate(0x1486b20, 0xc00b2ebf70, 0x10a0840, 0xc005388380, 0x115bfc0, 0xc000995020)
	/go/src/github.com/traPtitech/traQ/router/extension/context.go:68 +0x1e5
github.com/traPtitech/traQ/router/v3.bindAndValidate(...)
	/go/src/github.com/traPtitech/traQ/router/v3/utils.go:26
github.com/traPtitech/traQ/router/v3.(*Handlers).CreateStampPalette(0xc000264ab0, 0x1486b20, 0xc00b2ebf70, 0x121ae01, 0x147b720)
	/go/src/github.com/traPtitech/traQ/router/v3/stamp_palettes.go:48 +0xa3
github.com/traPtitech/traQ/router/middlewares.AccessControlMiddlewareGenerator.func1.1.1(0x1486b20, 0xc00b2ebf70, 0xc006619bc0, 0x147b720)
	/go/src/github.com/traPtitech/traQ/router/middlewares/access_control.go:40 +0x2a9
github.com/traPtitech/traQ/router/middlewares.BlockBot.func1.1(0x1486b20, 0xc00b2ebf70, 0x1046820, 0x1426080)
	/go/src/github.com/traPtitech/traQ/router/middlewares/access_control.go:66 +0x13c
github.com/traPtitech/traQ/router/middlewares.UserAuthenticate.func1.1(0x1486b20, 0xc00b2ebf70, 0x10, 0x1052e60)
	/go/src/github.com/traPtitech/traQ/router/middlewares/user_authenticate.go:81 +0x718
github.com/labstack/echo/v4.(*Echo).add.func1(0x1486b20, 0xc00b2ebf70, 0x1289337, 0x1d)
	/go/pkg/mod/github.com/labstack/echo/v4@v4.1.14/echo.go:509 +0x8a
github.com/labstack/echo/v4/middleware.CORSWithConfig.func1.1(0x1486b20, 0xc00b2ebf70, 0xc00a42e760, 0xc0053853e0)
	/go/pkg/mod/github.com/labstack/echo/v4@v4.1.14/middleware/cors.go:121 +0x477
github.com/traPtitech/traQ/router/middlewares.RequestCounter.func1.1(0x1486b20, 0xc00b2ebf70, 0x5, 0x1267120)
	/go/src/github.com/traPtitech/traQ/router/middlewares/request_counter.go:19 +0x3d
github.com/traPtitech/traQ/router/extension.Wrap.func1.1(0x1486940, 0xc00a42e6e0, 0xc000d9e290, 0xc00550bba8)
	/go/src/github.com/traPtitech/traQ/router/extension/context.go:51 +0xba
github.com/traPtitech/traQ/router/middlewares.Gzip.func1.1.1(0x1462420, 0xc0033fc7e0, 0xc005491100)
	/go/src/github.com/traPtitech/traQ/router/middlewares/gzip.go:29 +0xa7
net/http.HandlerFunc.ServeHTTP(0xc000d9e260, 0x1462420, 0xc0033fc7e0, 0xc005491100)
	/usr/local/go/src/net/http/server.go:2012 +0x44
github.com/NYTimes/gziphandler.GzipHandlerWithOpts.func1.1(0x1461e60, 0xc005cf57a0, 0xc005491100)
	/go/pkg/mod/github.com/!n!y!times/gziphandler@v1.1.1/gzip.go:336 +0x211
net/http.HandlerFunc.ServeHTTP(0xc005385380, 0x1461e60, 0xc005cf57a0, 0xc005491100)
	/usr/local/go/src/net/http/server.go:2012 +0x44
github.com/traPtitech/traQ/router/middlewares.Gzip.func1.1(0x1486940, 0xc00a42e6e0, 0x334adaaa, 0x334adaaa0542ef10)
	/go/src/github.com/traPtitech/traQ/router/middlewares/gzip.go:32 +0x115
github.com/traPtitech/traQ/router/middlewares.Recovery.func1.1(0x1486940, 0xc00a42e6e0, 0x0, 0x0)
	/go/src/github.com/traPtitech/traQ/router/middlewares/recovery.go:41 +0x8a
github.com/traPtitech/traQ/router/middlewares.AccessLogging.func2.1(0x1486940, 0xc00a42e6e0, 0xc003e2f8b0, 0xc)
	/go/src/github.com/traPtitech/traQ/router/middlewares/access_logging.go:33 +0x9f
github.com/traPtitech/traQ/router/middlewares.RequestID.func1.1(0x1486940, 0xc00a42e6e0, 0xc003e2f890, 0xe)
	/go/src/github.com/traPtitech/traQ/router/middlewares/request_id.go:13 +0x165
github.com/traPtitech/traQ/router/middlewares.ServerVersion.func1.1(0x1486940, 0xc00a42e6e0, 0x8, 0x8)
	/go/src/github.com/traPtitech/traQ/router/middlewares/server_version.go:13 +0x14b
github.com/labstack/echo/v4.(*Echo).ServeHTTP(0xc00000a3c0, 0x1461e60, 0xc005cf57a0, 0xc005491100)
	/go/pkg/mod/github.com/labstack/echo/v4@v4.1.14/echo.go:620 +0x16c
net/http.serverHandler.ServeHTTP(0xc0004ac0e0, 0x1461e60, 0xc005cf57a0, 0xc005491100)
	/usr/local/go/src/net/http/server.go:2807 +0xa3
net/http.(*conn).serve(0xc0029e0e60, 0x1466ba0, 0xc00414f700)
	/usr/local/go/src/net/http/server.go:1895 +0x86c

https://github.com/traPtitech/traQ/blob/dab20e5f03d987682bfc7d0916bf92e557774a25/router/v3/stamp_palettes.go#L39 で構造体外の変数でバリデーションを行なっているため

これも考えないといけない？
https://github.com/go-ozzo/ozzo-validation#types-implementing-sqlvaluer
https://github.com/traPtitech/traQ/blob/master/model/uuids.go#L12

そうですね。それを考えた結果今の感じになって、別のバグ(これ)が発生してます

repo: traPtitech/traQ


text:
Please consider adding MIG (MI-rror with G-radient modification)

Feature description
A engineeringly better implementation of FCNN( torch.nn.Linear)
Feature motivation
(Optional) Suggest a Solution
(https://github.com/pytorch/pytorch/issues/122680)
The code is now implemented in pytorch.
If you are interested in the correspoding paper, sorry, no paper at the moment. I explained how it works in code.
I'm now having fun learning rust. Maybe I will write a rust version for MIG probably in Burn.

You are welcome to submit a PR with specifics. So you know the linear module is very simple that relies on matmul operation. So your mentioned optimization is at this level (backend). There is a lot to be done there. So I recommend you look into this.
I do agree Rust is a lot of fun. Happy coding and learning!

authors: YagaoDirac antimora

repo: tracel-ai/burn


text:
86b1u0xkk

I have created JWT authentication with dummy data, also i comanted some code in the midlwer file .

Can you refactor this based on the reference implementation I shared on discord?

Can you refactor this based on the reference implementation I shared on discord?

that part has been Completed


text:
ACL examples YAML error

Bug Report
For the official document, but there was an unexpected error.
The error was caused by the wrong information configured by yaml. Port should be a number instead of a string.
What did you do?
kind: TrafficTarget
apiVersion: access.smi-spec.io/v1alpha2
metadata:
  name: whatever
  namespace: whoami
spec:
  destination:
    kind: ServiceAccount
    name: whoami-server
    namespace: whoami
    port: "80"
  rules:
    - kind: HTTPRouteGroup
      name: http-everything
      matches:
        - everything
  sources:
    - kind: ServiceAccount
      name: whoami-client
      namespace: whoami

Output of controller log: (What version of Traefik Mesh are you using?)
The TrafficTarget "whatever" is invalid: spec.destination.port: Invalid value: "string": spec.destination.port in body must be of type number: "string"
What is your environment & configuration (arguments, provider, platform, ...)?
https://doc.traefik.io/traefik-mesh/examples/#acl-example

Correct
kind: TrafficTarget
apiVersion: access.smi-spec.io/v1alpha2
metadata:
  name: whatever
  namespace: whoami
spec:
  destination:
    kind: ServiceAccount
    name: whoami-server
    namespace: whoami
    port: 80
  rules:
    - kind: HTTPRouteGroup
      name: http-everything
      matches:
        - everything
  sources:
    - kind: ServiceAccount
      name: whoami-client
      namespace: whoami

Closed by #780.

authors: traefiker yekangming

repo: traefik/mesh


text:
Moved list object to individual objects

What does this PR do?
Affects the Helm template for the Service objects: This PR removes the List object for Services in favor of using the two  individual Service objects.
Why? For better compatibility with Kubernetes linters, generators and operators.
Motivation
The kind: List object is typically convenience type used by kubectl for lists of mixed types. In this specific case it contains two Service object. The use of List objects still is a bit opague. Since it is the only List object used in the Helm chart, and it does not add functionality, I opt to remove the LIst object and move the two nested Service objects to the top level.
Context on the List object:

https://github.com/kubernetes/website/issues/25944
https://github.com/kubernetes/kubectl/issues/984

More

[x] Yes, I updated the chart version

Additional Notes
Tests pass

Resolved merge conflict and updated affected tests

Hello @mpepping
Thanks for your PR. I rebased and updated it with the last changes.
I'm also thinking about making a template shared for both services, since the diff between them is quite small:
--- udp	2022-10-10 17:53:15.985501715 +0200
+++ tcp	2022-10-10 17:53:58.841614989 +0200
@@ -1,7 +1,7 @@
 apiVersion: v1
 kind: Service
 metadata:
-  name: {{ template "traefik.fullname" . }}-udp
+  name: {{ template "traefik.fullname" . }}
   labels:
     app.kubernetes.io/name: {{ template "traefik.name" . }}
     helm.sh/chart: {{ template "traefik.chart" . }}
@@ -11,25 +11,25 @@
   {{- toYaml . | nindent 4 }}
   {{- end }}
   annotations:
-  {{- with (merge .Values.service.annotationsUDP .Values.service.annotations) }}
+  {{- with (merge .Values.service.annotationsTCP .Values.service.annotations) }}
   {{- toYaml . | nindent 4 }}
   {{- end }}
 spec:
   {{- $type := default "LoadBalancer" .Values.service.type }}
   type: {{ $type }}
   {{- with .Values.service.spec }}
-  {{- toYaml . | nindent 4 }}
+  {{- toYaml . | nindent 2 }}
   {{- end }}
   selector:
     app.kubernetes.io/name: {{ template "traefik.name" . }}
     app.kubernetes.io/instance: {{ .Release.Name }}
   ports:
-  {{- range $name, $config := $udpPorts }}
+  {{- range $name, $config := $tcpPorts }}
   {{- if $config.expose }}
   - port: {{ default $config.port $config.exposedPort }}
     name: {{ $name }}
-    targetPort: {{ if $config.http3 }}{{ $config.port }}{{ else }}{{ $name | quote }}{{ end }}
-    protocol: UDP
+    targetPort: {{ $name | quote }}
+    protocol: TCP
     {{- if $config.nodePort }}
     nodePort: {{ $config.nodePort }}
     {{- end }}

Wdyt ?

I'm also thinking about making a template shared for both services, since the diff between them is quite small:
[..]
Wdyt ?

Even better! Both objects are quite similar. Nice work!

authors: mloiseleur mpepping

repo: traefik/traefik-helm-chart


text:
Add spinner for dependency collection

This doesn't fully address #56 but it's low hanging fruit that fits cleanly in our current design. The response from the CLI is a bit "bursty" since we're updating when returning dependencies instead of prior to dependency resolution. But for requirements files with a decent number of requirements, this is still a lot better than what we currently have.
I think ideally, the CLI would also signal that its resolving dependencies for a requirement. Also, parallelising sdist resolution will influence what information we can return back to the CLI. So I figure we can use this patch as a stopgap to give us more reasonable behaviour while we figure out how this should work in the long term.

Sounds good!

authors: tetsuo-cpp woodruffw

repo: trailofbits/pip-audit


text:
Week 3 Day 3 - Componentes Web y Navegación

¿Qué estás entregando?
Se hace entrega de la navegación entre 5 paginas
¿Qué hizo falta?
N/A
¿Qué dificultades se tuvieron?
Se dificulta el enrutamiento de las paginas, ya que escriben una ruta sobre la ruta, entonces se deja un manejo de rutas basico para realizar la entrega de hoy, mas adelante se mejorara el manejo para enrutar hacia otras paginas.

Tu entrega esta super completa.
Ahora quiero hacerte recomendaciones, veo que tenes login y register como componentes y esto puede ser muy bueno si vos pensas en tener una pagina principal donde puedas renderizar estos componentes dependiendo de la situación.
Te doy algo mas detallado, tener una pagina de presentación donde renderizas el componente login usando el selector que le corresponde, ahora puedes tener un boton que llame al componente registrar pero que no se mueva de pagina sino que con *ngIf hacer esos cambios.
Espero que puedas entender mi idea y te sirva, aun asi creo que tenes todo muy claro.
100/100

authors: JersonBasto matisouza


text:
background image and hero form component

implement a hero component which can display the content for the login, signup, and reset password pages which also has a background image off to the side

finished in PR #27

repo: traison-diedrich/workout-planner


text:
"Too many requests" when sending a review/comment and a rating

Hi, I recently introduced comments/reviews on my own app based on trakt api, by displaying a popup that said "you watched X episodes of this show, would you rate and review it?" or "you watched this movie, would you rate and review it". Sadly, it often errors with a 429 "Too many requests" because I try to simultaneously send a comment and a rating (there's probably a few ms here and there for V8 to process the two requests, but still, it's "almost" simultaneous).
Would you consider adding a way to add a rating to a comment and/or disabling the rate limit on some call, maybe /rate and /comment specificaly? I cant be the only one that sees the common denominator in those two calls.
In the meantime, I will introduce a 1sec delay between the two requests, but still, it's annoying :) Thanks!

Hey @vankasteelj,
I have had the same kind of issue in my app. Instead of introducing a delay, I'm looking at the "retry" info int he response and I retry after the amount of time that info gives me. IMO it's better that way because it's not working on some hardcoded artificial delay. I'm of course never showing a 429 to the end user, it's just use internally to know I have to queue the request and restart after X.
Cheers,
Kevin

authors: kevincador vankasteelj

repo: trakt/api-help


text:
🛑 Mastodon is down

In 257b7ae, Mastodon (https://social.$DOMAIN2) was down:

HTTP code: 502
Response time: 758 ms

Resolved: Mastodon is back up in 0c25f41.

repo: traktuner/status


text:
Adds Playwright ADR (0076)

This pull requests adds an ADR (which would be 0076 for this project) around our impending efforts to convert our integration test code base from Cypress to Playwright.

Excellent. Glad to see the supporting experiment.
SUGGESTION: Adding some information about the portability of Testing Library skills/knowledge might be helpful to note as well.

@jenniferlynparsons Are you thinking we need more than the brief blurb where @kylehilltruss wrote the quoted bit below?

Unlike Cypress, the interface of code written for Playwright is similar to that of React Testing Library, which we're already using for our front end unit tests

I've resolved the outdated comments, but unresolved them if there's an issue. 👍🏽

Thanks for making those updates @kylehilltruss !

authors: ahobson felipe-lee kylehilltruss rogeruiz

repo: transcom/mymove-docs


text:
B 17910 hal sc creates or modifies a shipment 2 merging from main story to main

Agility B-17910
Summary
I have verified the items in the H&AL are correctly shown, and have added the downstream action of the closeout office added to the H&AL, as that is part of the flow for editing/creating a move for the SM.
Verification Steps for the Author
These are to be checked by the author.

[ ] Tested in the Experimental environment (for changes to containers, app startup, or connection to data stores)
[ ] Have the Agility acceptance criteria been met for this change?

Verification Steps for Reviewers
(Playwright test for the SM creating a move and the SC getting to the H&AL page not included)
These are to be checked by a reviewer.

[ ] Has the branch been pulled in and checked out?
[ ] Have the BL acceptance criteria been met for this change?
[ ] Was the CircleCI build successful?
[ ] Has the code been reviewed from a standards and best practices point of view?

Setup to Run the Code

Instructions for starting the MilMove application
Instructions for running tests

How to test

Access the
Login as a service member
Create a ppm
Log in as SC
Navigate to the move that was newly created
Edit details of the move
Observe the changes populate properly in the audit history tab
Create a new PPM for the service member
Observe the changes populate in the audit history tab

To make it easier, you can run my automation steps for this:
https://gist.github.com/landan-parker-0/fb8d17ab88b79dabd56d83eb3591bec6
Just dump that into a file named scEditsServiceMemberPPM or something within the test folder: office, where the other playwright flows are.
It will show up as a test
You can run it with command line.
yarn playwright test -g 'services counselor edits ppm'
Status: SUBMITTED

Pro-gear: Yes

Pro-gear weight: 245 lbs

Spouse pro-gear weight: 357 lbs

Estimated weight: 602 lbs

Expected departure date: 17 Feb 2024

Sit expected: Yes

SIT estimated storage start: 17 Feb 2024

SIT estimated storage end: 24 Feb 2024

SIT estimated storage weight: 526 lbs

Pickup postal code: 63653

Destination postal code: 29101

SIT location: DESTINATION

SIT estimated cost: $104.09

PPM estimated incentive: $22,603.25

Frontend

[ ] There are no aXe warnings for UI.
[ ] This works in Supported Browsers and their phone views (Chrome, Firefox, Edge).
[ ] There are no new console errors in the browser devtools.
[ ] There are no new console errors in the test output.
[ ] If this PR adds a new component to Storybook, it ensures the component is fully responsive, OR if it is intentionally not, a wrapping div using the officeApp class or custom min-width styling is used to hide any states the would not be visible to the user.
[ ] This change meets the standards for Section 508 compliance.

Backend

[ ] Code follows the guidelines for Logging.
[ ] The requirements listed in Querying the Database Safely have been satisfied.

Database
The history fetcher sql file has changed
https://github.com/transcom/mymove/blob/2d9d1bbeb70cdb73a8283892c5265953b539e329/pkg/assets/sql_scripts/move_history_fetcher.sql
move_logs AS (
  SELECT
    audit_history.*,
    jsonb_agg(jsonb_strip_nulls(
      jsonb_build_object(
        'closeout_office_name',
        (SELECT transportation_offices.name FROM transportation_offices WHERE transportation_offices.id = uuid(c.closeout_office_id))
      ))
    )::TEXT AS context,
    NULL AS context_id
  FROM
    audit_history
  JOIN move ON audit_history.object_id = move.id
  JOIN jsonb_to_record(audit_history.changed_data) as c(closeout_office_id TEXT) on TRUE
  WHERE audit_history.table_name = 'moves' group by audit_history.id
),

Any new migrations/schema changes:

[ ] Follows our guidelines for Zero-Downtime Deploys.
[ ] Have been communicated to #g-database.
[ ] Secure migrations have been tested following the instructions in our docs.

Screenshots

![image](https://github.com/transcom/mymove/assets/148263228/c717cefe-41a7-40a5-9141-08c945dc4ed4)

You're missing playwright/tests/office/txo/tooFlowsNTS.spec.js changes from your int branch. Other than that it looks the same

repo: transcom/mymove


text:
B 20012 INT GBLOC Endpoint Followup

B-20012
Summary
Updates the GBLOC Switcher to use a list of distinct GBLOCs from the transportation_offices table.
Verification Steps for the Author
These are to be checked by the author.

[ ] Tested in the Experimental environment (for changes to containers, app startup, or connection to data stores)
[ ] Have the Agility acceptance criteria been met for this change?

Verification Steps for Reviewers
These are to be checked by a reviewer.

[ ] Has the branch been pulled in and checked out?
[ ] Have the BL acceptance criteria been met for this change?
[ ] Was the CircleCI build successful?
[ ] Has the code been reviewed from a standards and best practices point of view?

Setup to Run the Code

Instructions for starting storybook
Instructions for starting the MilMove application
Instructions for running tests

How to test

Access the office app as an HQ user.
Click around, switch GBLOCs, refresh the page, etc. making sure it functions the same as before.
Open up your DB viewer and get a list of GBLOCs with the following query: SELECT DISTINCT gbloc FROM public.transportation_offices ORDER BY gbloc ASC
Verify the list returned matches the list available in the dropdown.

Frontend

[ ] There are no aXe warnings for UI.
[ ] This works in Supported Browsers and their phone views (Chrome, Firefox, Edge).
[ ] There are no new console errors in the browser devtools.
[ ] There are no new console errors in the test output.
[ ] If this PR adds a new component to Storybook, it ensures the component is fully responsive, OR if it is intentionally not, a wrapping div using the officeApp class or custom min-width styling is used to hide any states the would not be visible to the user.
[ ] This change meets the standards for Section 508 compliance.

Backend

[ ] Code follows the guidelines for Logging.
[ ] The requirements listed in Querying the Database Safely have been satisfied.

Database
Any new migrations/schema changes:

[ ] Follows our guidelines for Zero-Downtime Deploys.
[ ] Have been communicated to #g-database.
[ ] Secure migrations have been tested following the instructions in our docs.

Screenshots

Warnings

:warning:
This PR does not include changes to unit tests, even though it affects app code.

  Generated by :no_entry_sign: dangerJS against 1e5e1c62210fed9cd94fc2dbfdcb3c347bdfc6cc

authors: ajlusk robot-mymove


text:
Documentation: technical capabilities of this stack

From Adam Silver in Slack

What is the best and most recent diagram/overview docs describing TAP technical functionality?

I agree that this is needed. Will add docs soon!

Started this. https://docs.transferagentprotocol.xyz/
Docs repo: https://github.com/transfer-agent-protocol/docs

repo: transfer-agent-protocol/tap-cap-table


text:
openai website auto-login stops at the last step

Verify latest release

[X] I verified that the issue exists in the latest chatgpt release

Verify webapp is working

[X] I verify that the ChatGPT webapp is working properly for this account.

Environment details
nodejs v18.10.0
chrome Version 108.0.5359.124 (Official Build) (arm64)
macOS Version 12.3 M1
Describe the Bug

When I run the demo, nopecha works fine, but the automatic login of the openai website stops at this step in the picture, and I need to click the "continue" button manually to continue.
Is it normal？

Should be the reason for the network, but sometimes even the google server clicked no effect

I switched to a gmail account and added "isGoogleLogin: true", now the problem is gone.

https://github.com/transitive-bullshit/chatgpt-api/blob/main/src/openai-auth.ts#L614-L626
Here is the problem, Network delays can cause page.$('textarea#g-recaptcha-response') to get the wrong value. I added a delay in front and the problem was solved.

authors: firslov yayaQAQ

repo: transitive-bullshit/chatgpt-api


text:
test github issuedssd

test choi test choi 1234

cxcxcsdsd

jkjk

mmm

cxcxc

dsdsdsd

mmm

tetetet
sdjsdsdsdasdadfdf

hjhjhjhj

google.com
test nà

sdfsdfdf
#2

nnbg

aaaa

dsdsd

mmbb

vcxc


text:
🛑 TechinAsia_Laravel_API is down

In 8ceefbd, TechinAsia_Laravel_API (https://www.techinasia.com/api/2.0/companies) was down:

HTTP code: 403
Response time: 222 ms

Resolved: TechinAsia_Laravel_API is back up in 545d045 after 10 minutes.

repo: traqy/upptime


text:
Add an rgsoc support cta

Requires the blog post to be published https://github.com/travis-ci/blog-travis-ci-com/pull/62

Broken specs. :-(

completely unrelated to my changes, and passing on one build while failing on the other? o_O

Can you please add a screenshot here on what the full email looks like?

@joshk if you open the template file in the browser this gives you a sufficient idea:

authors: BanzaiMan joshk svenfuchs

repo: travis-ci/travis-tasks


text:
🛑 Virtual Learning Environment VLE is down

In fc50dd2, Virtual Learning Environment VLE (https://nclvle.co.uk) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Virtual Learning Environment VLE is back up in 55f3378 after 17 minutes.


text:
enableArea选定范围之后，周日历有问题

enableArea选定范围之后月日历没问题，但在周日历的情况下左滑右滑切换时间之后选定的范围就没有效果了

周日历之前未开发 enableArea 功能


text:
Consult from stdin

I mean to embed Prolog code into a shell script, e.g. file foo.sh:
#!/bin/sh
ARG=$1
tpl --goal=main --consult - <<EOF
main :- write($ARG), nl.
EOF
Here --consult - is used to mean consulting content from stdin as a file, as meaning of tpl without any option has alway been taken by REPL.

tpl --goal=main --consult <<EOF
main :- write(hello), nl.
EOF

:+1: Thanks!

authors: dram infradig

repo: trealla-lang/trealla


text:
Caps are still allowed somehow

Example: if I ban the word something, writing Something will still send.

I can't seem to replicate the issue:

I'm using this regex:
(s|5|§|🇸)+(o|0|🇴|🅾⭕)+(m|nn|rn|🇲|Ⓜ)+(e|3|£|🇪)+(t|7|🇹|✝)+(h|\|-\||#|\}\{|🇭)+(i|1|!|l|🇮|ℹ)+(n|\|\||🇳)+(g|9|🇬)+

Generated with these settings enabled:

Number Variants
Symbol Variants
Letter Variants
Emoji Variants
Letter Spam
Partial Matches

Please follow up with more information to help me replicate your bug.

Then it probably is a bug with yagpdb...

If you're using the regexes for other uses, than you'd have to add the case insensitive flag into it. add this to the start of the regex:
(?i)


text:
Publish lakeFS to Maven Central

Part of #2079.

Published 2 SNAPSHOT JARs to Maven Central, with and without assembly.  Have a look at https://s01.oss.sonatype.org/#nexus-search;quick~hadoop-lakefs.

Thanks, pulling!
Doesn't entirely do #2079 because it's not yet on S3.

@talSofer actually it prints a scary warning when changing the artifact ID based on profile:
[WARNING]
[WARNING] Some problems were encountered while building the effective model for io.lakefs:hadoop-lakefs-assembly:jar:0.1.0-RC.0-SNAPSHOT
[WARNING] 'artifactId' contains an expression but should be a constant. @ io.lakefs:hadoop-lakefs${name-suffix}:0.1.0-RC.0-SNAPSHOT, /home/ariels/dev/lakeFS/clients/hadoopfs/pom.xml, line 7, column 17
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING]

So it will work for now, but may get interesting in future.

repo: treeverse/lakeFS


text:
Display readme file if available

Display a readme file if it exists under the root of the current reference.
Visual

Solves: #3410

authors: Jonathan-Rosenberg johnnyaug


text:
Pendekatan "Brute Force" dan "Divide and Conquer"

Apa perbedaan antara paradigma algoritma "Brute Force" dan "Divide and Conquer" dalam pemecahan masalah?

Apa perbedaan antara paradigma algoritma "Brute Force" dan "Divide and Conquer" dalam pemecahan masalah?

Paradigma algoritma "Brute Force" dan "Divide and Conquer" adalah dua pendekatan umum dalam pemecahan masalah algoritma. "Brute Force" adalah pendekatan di mana semua kemungkinan solusi diuji secara berurutan dan yang terbaik dipilih. Sementara itu, "Divide and Conquer" adalah pendekatan di mana masalah besar dibagi menjadi submasalah yang lebih kecil, dipecahkan secara rekursif, dan kemudian solusi-solusi dari submasalah digabungkan untuk mendapatkan solusi untuk masalah asli. Perbedaan utama di antara keduanya adalah bahwa "Brute Force" cenderung menjadi lambat karena harus mengevaluasi semua kemungkinan solusi, sementara "Divide and Conquer" sering kali lebih efisien karena memecah masalah menjadi submasalah yang lebih kecil yang dapat dipecahkan secara terpisah dan kemudian digabungkan.

authors: ifulxploit namikazel

repo: trekhleb/javascript-algorithms