text:
分享一个VS Code 相对路径问题

问题：

VS Code相对路径逻辑不同于其他IDE，即./addons/中.指向.vscode文件夹所在位置，而非当前文件夹，故运行任何含有./addons/的代码会报错FileNotFoundError: [WinError 3] 系统找不到指定的路径。: './addons'

解决：

VS Code-设置-扩展-勾选Terminal: Execute In File Dir（在终端中执行文件时，是否在文件的目录中使用 execute，而不是当前打开的文件夹。）
修改.vscode中的launch.json，在"configurations"中添加"cwd": "${fileDirname}",，重启即可。

注：运行test.py如果报错PermissionError: [WinError 5]拒绝访问，是用户对Blender权限不足。找到Blender文件夹中scripts文件夹，右键属性-安全-编辑-Users-完全控制-应用，再次运行test.py即可成功弹出Blender窗口。

看来一个更加安全的做法是在框架中利用 file 属性去定位相关文件，我将进行修改

感谢报告，我修改了框架中包含"./"相对路径的使用方式，采用了__file__属性来定位文件，经测试可以在vs code中正常使用，无需修改默认配置

感谢学者大大

authors: KijoHassen xzhuah

repo: xzhuah/BlenderAddonPackageTool


text:
fix goToLine triggered on user click

References
On #34, whenever user clicks a different line, that line gets centered. This is caused by falsely removing the user cursor checking condition.
Description
We add back the user cursor checking condition which blocks triggering goToLine on user click, and add detailed descriptions to that checking condition.
Validation performed
Start log viewer with a log file, click to move cursors to different lines, no line jumping (centering) observed.

Code looks good to me. Please update the PR title to "Avoid invoking goToLine() when cursor changed by user click.".

source: gharchive/pull-request

repo: y-scope/yscope-log-viewer

license_type: permissive

license_source: github-api


text:
请完善界面模块

创建界面模块后需要GameAPI.get_ui_prefab_child_by_path方法才能获取到实体控件

差不多是这样
function M:get_ui_prefab_child_by_path(path)
local ui = GameAPI.get_ui_prefab_child_by_path(self.handle, path)
return y3.ui.get_by_handle(self.player,ui)
end

如果只是添加还没有封装的API的话，可以提交PR

已放弃，BUG太多了，玩家1创建的界面模块，玩家2那边永远返回nil会导致报错

刚测试ECA也一样，在通过UIPrefab获取到UI实例后，比如ui:get_width()，玩家1返回200，其他玩家会返回nil

这个我想办法重新设计一下。之前的UI对象人为的添加了玩家属性，我看看有没有办法把它去掉。

source: gharchive/issue

license: MIT


text:
timer计时器在loop回调中 get_elapsed_time 永远返回 0

也不知道是不是bug，想在 y3.timer.loop 的回调中用 get_elapsed_time 获取计时器总共运行了多久，但是返回的值一直是0，想问下这是正常的么？ECA里面也是这样

y3.timer 调用的是ECA的计时器，行为和ECA中的保持一致，我会反馈给相关的同学。
你可以先改用 y3.ltimer 。

authors: ocpam sumneko


text:
Support rediss:// URIs

This prefix is supported by the redis gem, so should work transparently here https://github.com/redis/redis-rb/commit/6208313463c1bde0c40558a5018713d02786505f

nevermind; more changes are needed than this one line

repo: yaauie/redis-copy

license: mit

license_source: bigquery


text:
Refactoring: JS tags in lib templates

[x] Move Dockey from head to JS

Done

repo: yadevee/yals


text:
Links to tutorials

Just added some links in main .md  .
Hope the link to tutorials.md in main README file is correct , if it's not change it properly please.
Thanks ...

Will you change other branches?

Merged in commit https://github.com/yagop/node-telegram-bot-api/commit/9a4298308ede697eb93294d7f19f42e7ccd14064.
@hosein2398 Thanks for the PR! The other branches will be updated as necessary. Thanks. :+1:

repo: yagop/node-telegram-bot-api


text:
Add Docker images definition and instruction to deploy on Kubernetes

Motivation
Add all the configuration and instructions to do a complete deployment (zk, bookkeeper, pulsar broker and monitoring) on a Kubernetes cluster.

@saandrews @rdhabalia ping

yes, I will review it by tomorrow.

authors: merlimat rdhabalia

repo: yahoo/pulsar


text:
Plugin options handling

With this change, only options declared by SquiDB should be passed to APT in the list keyed by squidbOptions. Any others won't cause an error but a warning will be printed during builds.
Custom plugins should use their own option key(s) if they need to inspect APT options. This has always been the intended approach, but it was never clear; this change adds appropriate messaging to this effect.
Custom plugins should specify what option key(s) they support by using the @SupportedOptions annotation. This is not specifically required, but it does allow SquiDB to report those back to the toolchain so that the toolchain does not warn about seemingly unused options. Example:
package com.fancy.plugins;

@SupportedOptions("fancyOptions")
public class FancyPlugin extends Plugin {
    /* ... */
}

apt {
    arguments {
        squidbPlugins 'com.fancy.plugins.FancyPlugin:high'
        fancyOptions 'foo'
    }
}

Addresses #183. Replaces #198.

LGTM

authors: jdkoren sbosley

repo: yahoo/squidb


text:
When install Warning Appears

Summary of problem or feature request

Code snippet of problem
Package phpoffice/phpexcel is abandoned, you should avoid using it. Use phpoffice/phpspreadsheet instead.

It is in package maatwebsite/excel ?
System details

Operating System - Ubuntu 16.04 LTS
PHP Version - 7.2.0
Laravel Version - 5.5.0
Laravel-DataTables Version - ^3.1

Yes, it is in maatwebsite/excel package.  I think this issue should be raised there but I think are plans to use spreadsheet but haven't check their updates yet.

they are update their version to 3.0 (spreadsheet) but your package still using 2.* (phpexcel)

Fixed on v4.0 where excel version is updated to 3.0. Thanks!

authors: jay-shah-rushiinfotech lomotech yajra

repo: yajra/laravel-datatables-buttons


text:
Returns empty data while using limit and offset

Returns empty data while using limit and offset , even if i pass records.
$project = Project::find(1);
$start = (int) request('start');
$length = (int) request('length');
$total = $project->domains()->Firstscope()->count();
if($length < 0)
{
 $length = $total;
}
$domains =$project->domains()->Firstscope()->get();
DataTables::of($domains)->make(true); // Working Fine

// But ..

$domains = $project->domains()->Firstscope()->limit($length)->offset($start)->get(); // have 10 records
DataTables::of($domains)->setTotalRecords($total)->make(true); // Returns empty data

System details

Operating System : ubuntu 14..04
PHP Version : 7.0
Laravel Version : 5.4.34
Laravel-Datatables Version : v8.0.1

Some points:

Do you really need to limit the query? Why not let package do the job?
I suggest you use query instead of collection?

$project = Project::find(1);
$domains = $project->domains()->Firstscope();

DataTables::of($domains)->toJson();

hey @yajra thanks for replying
yes I really need limit in the query, Actually, I want to check domains availability using GoDaddy API before I serve the data in the view if I don't use limit, Bulk records will make API work slow so that's why I want to use limit
$project = Project::find(1);
$domains = $project->domains()->Firstscope()->limit(10)->offset(10)->get();
$domains = Godaddy::ins()->checkAvail($domains); // Filter through domains and get only that are available to purchase.
DataTables::of($domains)->toJson();

Thanks !!

@yajra  any updates ??

Same issue

I've found a workaround, you just need to use skipPaging() method

authors: jagroop vanushwashere yajra

repo: yajra/laravel-datatables


text:
Throw the original exception

Throw the original exception so you can find out where it originated.   Currently, it's a pain to track down and fix the source of exceptions even if 'throw' is set, because they only include the message.

This would break current installations that catches the custom exception. I think the full error would still be on laravel log file and you can track it from there?

Got it. Thanks, @yajra!🙂

authors: mikepsinn yajra


text:
[do-not-merge] React transition?

Proof of concept to improve yakyak infra-structure.

[ ] Remove trifl dependency
[ ] Switch handle / actions to something else (maybe direct calls to functions. Suggestions are appreciated)
[ ] Convert all views to Components

[x] About
[ ] conninfo
[ ] controls
[ ] convadd
[ ] convhead
[ ] convlist
[ ] input
[ ] listhead
[ ] messages
[ ] startup
[ ] typinginfo

Questions:

Is this the best way to migrate view by view?

Have ReactDOM render and unmount everytime?
Once all views are implemented as component, how to best handle routing?

I hope this can sparkle a discussion and that a someone gets motivated to work on this

just to add some noise. Thinking about following the trends one may think about leaving coffee for typescript (Although I still secretly love coffeescript)

@davibe Coffeescript code is beatautiful! Or maybe I'm bias for all the code I did in yakyak.
I've started trying to migrate hangupsjs to coffeescript v2 and haven't had any problems yet... Have you migrated any projects to that version and have some tips on what to look for?
I'm a bit cautious on pulling that trigger lol

Personally I think this would be a good idea - trifl is deprecated and hasn't been updated in a long time. It will be a bit of work to transfer everything over to react, but I think it would be worth it.

The codebase needs to be updated on the long term, the coffeescript update was probably the first step.
This pull request is just a proof of concept that works alongside trifl to ease the transition by being able to first convert the views and then change the backend. It's a conservative approach.
But again, it's a proof of concept, if you have other ideas please move on them :-) I'm not really a javascript developer, so my knowledge and good practices are a bit limited.

Rebased the changes on top of current codebase (without remote)
It seems to work as it was working before, I corrected an unreadTotal bug

I finally managed to look through this and I feel like it's a good starting off point. Perhaps we should set up a separate branch for the react transition so we can work on that simultaneously with other fixes and such?
As for the code itself, we should probably use a component manager or such to handle creating react components, rendering them and unmounting/destroying them.

I finally managed to look through this and I feel like it's a good starting off point. Perhaps we should set up a separate branch for the react transition so we can work on that simultaneously with other fixes and such?
As for the code itself, we should probably use a component manager or such to handle creating react components, rendering them and unmounting/destroying them.

authors: HomerSp averissimo davibe

repo: yakyak/yakyak


text:
setpresence with each connection cycle #167

Sets presence every time there is a connection event (and is connected)
#167

does it make sense to do it periodically ? like every minute if you're connected.

It takes around 30mins timeout, so every minute might be overkill. Attaching this to the handle update:connection seemed logical, but so does doing it periodically, I don't really favor one or the other.
You know the inner ways of YakYak better than me and whichever way seems better to you I can implement it :)

lets start with this.

Heya!
I'm still seeing this issue. I have upgraded to the latest pre-release (v1.4.2 - 9ade528) released 1 day ago.  I confirmed the change you made to set the presence on every "update:connection" is in the code on my system:
ui/source/controller.js
      if (connection.state === connection.CONNECTED) {
        later(function() {
          return action('lastActivity');
        });

I deleted all the other YakYak's on my system, and ran this one. However, when I leave YakYak in the "Closed to Tray" state, my online status is set to Offline after a while. I have timed how long this takes, by moving my mouse around the YakYak client, then closing it to tray and seeing when it sets me to offline. It does it in exactly 15 minutes and 10 seconds. You have to log in and out of hangouts web interface to have the client refresh the online status of the list quicker. Else the web client doesn't update the people's status as often unless you relog in.
How often does this "update:connection" happen in a "connection.CONNECTED" state? Can the connection state be changed from "CONNECTED" to something other after a while? i.e. "IDLE" or "CLOSED" if no activity has been detected for awhile? Then it stops setting the presence? Maybe it doesn't go into this state every 15 mins?
Maybe setting lastActivity periodically may be better? Every 10-minutes to stay within the 15-minute window?

The update:connection should be performed every minute or so, but I'm testing it right now to make sure. In 20 mins I'll send a new screenshot

What I'm seening is a huge difference on who is online between YakYak and gmail hangouts interface. That should be a new bug :(

The timer in connection.coffee is not being run with the hidden window keeping the connection active.
Just confirmed that with the inspector window open it works. I probably had that open during the tests :\

Yea, running 1.4.2, I see that YakYak is getting confused on who is online and not. It says almost everyone is online. So some bug there in the new version. :)
Ah good to know you found the issue with the presence. :) Need to find a different place to update presence then it sounds like. :P

I think associating it to the noop event from hangouts might be the way to go.
Why? it is a keep alive signal, so doing it after receiving is obvious
Problem is that it does keep the status as available... need to work on this more

let's move the conversation to #596 :)

authors: NvrBst averissimo davibe


text:
The value in the var is required

Description
The value in the var is required
Problem Statement/Justification
There are times when you may want to set value to undefined.
Proposed Solution or API
ui-props.ts
  var: {
    isProcessSkip: true,
    transform: "var",
-    type: '{ __prefix?: string; name: string; token?: keyof Omit<Theme, "components" | "colorSchemes" | "themeSchemes">, value: Token<StringLiteral | number> }[]',
+    type: '{ __prefix?: string; name: string; token?: keyof Omit<Theme, "components" | "colorSchemes" | "themeSchemes">, value?: Token<StringLiteral | number> }[]',
    hasToken: false,
    description: [

Alternatives
No response
Are you willing to participate in implementing this feature and create a pull request include the implementation?
None
Additional Information
No response

Hi, can I contribute this issue??

@atsushi729
Thank you!
I assigned you. Good luck!

@108yen
Thank you for assigning this to me.
Quick question: could the issue be resolved by making the value an optional property, as you suggested?
FYI : I've already tried this, ran pnpm test, and all tests passed.
  var: {
    isProcessSkip: true,
    transform: "var",
-    type: '{ __prefix?: string; name: string; token?: keyof Omit<Theme, "components" | "colorSchemes" | "themeSchemes">, value: Token<StringLiteral | number> }[]',
+    type: '{ __prefix?: string; name: string; token?: keyof Omit<Theme, "components" | "colorSchemes" | "themeSchemes">, value?: Token<StringLiteral | number> }[]',
    hasToken: false,
    description: [

@atsushi729
Yes, this modification is sufficient.

@108yen
I'm sorry to ask again, but could I check the rules for pull requests?
Since the files I modified this time are outside of the components and can't be selected from the changeset list, should I generate an empty file and write it as follows?
---
"@yamada-ui/generate-css": patch
---

Redefined value as optional property.

@atsushi729
①Run pnpm gen:css.
②Files are automatically generated based on the modified ui-props.ts.
③Run pnpm changeset and chose yamada-ui/core

repo: yamada-ui/yamada-ui


text:
🛑 SV1 is down

In 152c928, SV1 (http://sv01-vps.yama2211.jp) was down:

HTTP code: 0
Response time: 0 ms

Resolved: SV1 is back up in bfadfb9.


text:
Обновление зависимостей

Пожалуйста, обновите зависимости. Ваш пакет тянет okhttp второй версии до сих пор.

Используйте мой форк https://github.com/PromanSEW/yandex-disk-restapi-android Импортируйте как модуль, и обновите зависимости на последние, всё будет работать как надо

Не работает. Добавил в проект:
implementation 'com.yandex.android:disk-restapi-sdk:2.0'
Классы не видит.

Используйте мой форк https://github.com/PromanSEW/yandex-disk-restapi-android Импортируйте как модуль, и обновите зависимости на последние, всё будет работать как надо

Взял исходники напрямую - все работает.
По-крайней мере функция downloadFile()
Спасибо!

@panovvitalik Вы также можете использовать более актуальные форки моего репозитория:
https://github.com/PromanSEW/yandex-disk-restapi-android/network

@panovvitalik Вы также можете использовать более актуальные форки моего репозитория: https://github.com/PromanSEW/yandex-disk-restapi-android/network

Кто такие эти форки в депозиториях и как их брать я без понятия :-)
С исходниками и последними зависимостями, все вроде работает - и загрузка и выгрузка на яндекс диск.
Спасибо еще раз

@panovvitalik Вы также можете использовать более актуальные форки моего репозитория: https://github.com/PromanSEW/yandex-disk-restapi-android/network

Работает с Android 7.1 по 13
Но на Android  6 (SDK 23) после загрузки где-то 50 файлов - падает с ошибкой:
downloadFile error: socket failed: EMFILE (Too many open files)
        at libcore.io.IoBridge.socket(IoBridge.java:619)
        at java.net.PlainSocketImpl.create(PlainSocketImpl.java:198)
        at java.net.Socket.checkOpenAndCreate(Socket.java:689)
        at java.net.Socket.setSoTimeout(Socket.java:543)
        at com.android.org.conscrypt.OpenSSLSocketImpl.setSoTimeout(OpenSSLSocketImpl.java:1034)
        at com.android.org.conscrypt.OpenSSLSocketImplWrapper.setSoTimeout(OpenSSLSocketImplWrapper.java:111)
        at okhttp3.internal.connection.RealConnection.newCodec$okhttp(RealConnection.kt:615)
        at okhttp3.internal.connection.ExchangeFinder.find(ExchangeFinder.kt:82)
        at okhttp3.internal.connection.RealCall.initExchange$okhttp(RealCall.kt:255)
        at okhttp3.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.kt:32)
        at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
        at okhttp3.internal.cache.CacheInterceptor.intercept(CacheInterceptor.kt:95)
        at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
        at okhttp3.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.kt:83)
        at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
        at okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.kt:76)
        at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
        at vitalypanov.mynotes.sync.yandex.disk_restapi_sdk.retrofit.RequestInterceptor.intercept(RequestInterceptor.java:41)
        at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
        at okhttp3.internal.connection.RealCall.getResponseWithInterceptorChain$okhttp(RealCall.kt:201)
        at okhttp3.internal.connection.RealCall.execute(RealCall.kt:154)
        at <MY PACKAGE NAME>.disk_restapi_sdk.RestClientIO.downloadUrl(RestClientIO.java:101)
        at <MY PACKAGE NAME>.disk_restapi_sdk.RestClient.downloadFile(RestClient.java:380)
        at <MY PACKAGE NAME>.sync.yandex.YandexDriveCloud$10.run(YandexDriveCloud.java:532)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
        at java.lang.Thread.run(Thread.java:818)

@panovvitalik ну здесь я уже не подскажу к сожалению. Я использовал только для редкой загрузки / отправки файлов, потом вообще выделил только используемый код, и сконвертил в Kotlin. Всё работает. Что здесь не учтено не имею понятия, и где искать тоже

authors: PromanSEW agarkoff panovvitalik

repo: yandex-disk/yandex-disk-restapi-java


text:
CLI interactive mode: formatting

Why does PrettyCompact creates a new "table" for the aggregated/DISTINCT data if it isn't properly ordered? I'm not sure how to phrase this correctly, but here's an example:
:) SELECT DISTINCT toDate(created_at) FROM test FORMAT PrettyCompact;

┌─toDate(created_at)┐
│        2016-09-05 │
│        2016-09-03 │
│        2016-09-04 │
└───────────────────┘
┌─toDate(created_at)┐
│        2016-09-01 │
│        2016-09-02 │
└───────────────────┘

:) SELECT DISTINCT toDate(created_at) FROM test ORDER BY created_at FORMAT PrettyCompact;

┌─toDate(created_at)┐
│        2016-09-01 │
│        2016-09-02 │
│        2016-09-03 │
│        2016-09-04 │
│        2016-09-05 │
└───────────────────┘

:) SELECT DISTINCT toDate(created_at) FROM test FORMAT PrettyCompactMonoBlock;

┌─toDate(created_at)┐
│        2016-09-05 │
│        2016-09-03 │
│        2016-09-04 │
│        2016-09-01 │
│        2016-09-02 │
└───────────────────┘

Wouldn't it be better to make PrettyCompactMonoBlock the default formatter for the CLI?
If not, what are the use-cases of PrettyCompact behaving like that (with multiple tables displayed) being useful?
And by the way - is GitHub issues appropriate to ask these kind of questions or should I ask it on StackOverflow/Google Groups instead?
Thanks in advance!

In Pretty formats, to render a table, we need to know maximum widths of columns.
To calculate them, we must buffer data for that table.
But we don't want to buffer all data, for two reasons:

We don't want to consume too much memory.
(Really not a reason because there is limit for 10 000 rows in Pretty formats)

We want to output data as soon as it is received.
Data is received in blocks. As soon as each block is received, we render it.
When query is "streaming" it will send result block by block.

Several workarounds possible.
We may not render each small block instantly, but wait for some timeout, and render it only if next block has not arrived within that timeout. I think, this is unnecessarily complex solution.
By the way, it is possible to set default format in configuration file of clickhouse-client.
Configuration file is searched in:
./clickhouse-client.xml
~/.clickhouse-client/config.xml
/etc/clickhouse-client/config.xml

Create it with following content:
<config>
    <format>PrettyCompactMonoBlock</format>
</config>

And by the way - is GitHub issues appropriate to ask these kind of questions or should I ask it on StackOverflow/Google Groups instead?

GitHub is appropriate. Stackoverflow is too.
Maybe Google Groups are better (there is already more questions), but I am not sure.

authors: alexey-milovidov hatarist

repo: yandex/ClickHouse


text:
Potential data loss - 18.14.18 -> 18.16.0 Changed behavior with Array(Tuple) columns

I have a table with an Array(Tuple(Date, UInt16)) column called _metrics. Noted after the upgrade to 18.16.0 that this table now had two columns - _metrics.1 Array(Date) and _metrics.2 Array(UInt16). I could no longer select on the _metrics column nor see any data from the _metrics.1 column (all arrays were empty).
I can recreate the table using CREATE TABLE .. AS .. SELECT - this works as expected. Following a server restart however the table reverts to the above behaviour. Additionally creating the table using plain CREATE TABLE rather than CTAS converts Array(Tuple) columns to Array columns as above.
Steps to reproduce:

Changing column definition automatically:

clickhouse-demo :) create table tuple_test (id UInt64, val Array(Tuple(Date, UInt16))) engine = MergeTree order by (id);

CREATE TABLE tuple_test
(
    id UInt64,
    val Array(Tuple(Date, UInt16))
)
ENGINE = MergeTree
ORDER BY id

Ok.

0 rows in set. Elapsed: 0.003 sec.

clickhouse-demo :) desc tuple_test format PrettySpace;

DESCRIBE TABLE tuple_test
FORMAT PrettySpace

name    type            default_type   default_expression   comment_expression

id      UInt64
val.1   Array(Date)
val.2   Array(UInt16)

3 rows in set. Elapsed: 0.002 sec.

Potential data loss:

drop table if exists tuple_test;
create table tuple_test engine = MergeTree order by tuple(id) as select 1 as id, [(toDate('2018-01-01'), 3),(toDate('2018-01-02'), 4)] as val;

CREATE TABLE tuple_test
ENGINE = MergeTree
ORDER BY tuple(id) AS
SELECT
    1 AS id,
    [(toDate('2018-01-01'), 3), (toDate('2018-01-02'), 4)] AS val

Ok.

0 rows in set. Elapsed: 0.005 sec.

clickhouse-demo :) desc tuple_test format TSV;

DESCRIBE TABLE tuple_test
FORMAT TSV

id	UInt8
val	Array(Tuple(Date, UInt8))

2 rows in set. Elapsed: 0.001 sec.

clickhouse-demo :) select * from tuple_test format PrettySpace;

SELECT *
FROM tuple_test
FORMAT PrettySpace

id   val

 1   [('2018-01-01',3),('2018-01-02',4)]

1 rows in set. Elapsed: 0.002 sec.

## Restart server here

clickhouse-demo :) desc tuple_test format TSV;

DESCRIBE TABLE tuple_test
FORMAT TSV

id	UInt8
val.1	Array(Date)
val.2	Array(UInt8)

3 rows in set. Elapsed: 0.002 sec.

clickhouse-demo :) select * from tuple_test format PrettySpace;

SELECT *
FROM tuple_test
FORMAT PrettySpace

id   val.1   val.2

 1   []      []

1 rows in set. Elapsed: 0.003 sec.

I think I might have this wrong. When I rebooted the previous version it also lost the definition so it wasn't working previously either. I found that if I wrapped the Array in a Tuple then everything worked. So it seems if you use Arrays of Tuples these are converted to nested tables. This behaviour is fine so closing this issue.


text:
🛑 Google is down

In a34c0eb, Google (https://google.icloudnative.io) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Google is back up in 9e3ef31.

repo: yangchuansheng/upptime


text:
🛑 Google is down

In d4ca859, Google (https://google.icloudnative.io) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Google is back up in 3bf7363.


text:
🛑 Docker Hub Mirror is down

In ff451dd, Docker Hub Mirror (https://docker.icloudnative.io) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Docker Hub Mirror is back up in 5c68030.


text:
🛑 Privatebin is down

In 1d8752a, Privatebin (https://privatebin.icloudnative.io) was down:

HTTP code: 504
Response time: 15689 ms

Resolved: Privatebin is back up in b73dab8.


text:
Typo in iambic model padding_idx

Hi there, I noticed there might be a typo here:
elif self.iambic:
    self.gpt_embed = nn.Embedding(gpt_pad_id + 1, HIDDEN_DIM, padding_idx=0) # 0 in marian is ''

In all other tasks with GPT, padding_idx=gpt_pad_id instead of 0.

You're right, I think it doesn't make a difference in practice but I will fix it. Thanks!


text:
Kubeconform does not detect manifests that are too large.

Problem:
Given a configmap with a data element that contains a value > 1MiB, kuberenetes will reject the configmap but kubeconform will not flag it as bad.
$ dd if=/dev/urandom bs=786438 count=1 | base64 > /tmp/file
$ kubectl create cm bigandbad --from-file=/tmp/file --dry-run=client -o yaml > bad-cm.yaml
$ kubectl apply -f bad-cm.yaml --dry-run=server
The ConfigMap "bigandbad" is invalid:
* metadata.annotations: Too long: must have at most 262144 bytes
* []: Too long: must have at most 1048576 bytes
$ kubeconform --summary bad-cm.yaml
Summary: 1 resource found in 1 file - Valid: 1, Invalid: 0, Errors: 0, Skipped: 0

Kubeconform should evaluate manifests for size and reject things that exceed limits (I think all manifests are limited to 1mb, but I could be wrong)

From your description, it sounds like manifest size is a server-side validation, which makes sense because I don't think you can define the file size limit with JsonSchema.
Therefore, this validation is not part of the K8s native objects schemas, and it's not supported by kubeconform but rejected by the cluster (you can read more about it here.

it's an open-source project, so you are more than welcome to offer those changes to @yannh :)
regarding the other validations, there are 3rd party tools that you can use for that (Datree, Kyverno, Conftest, etc.).
I know Datree* has some built-in rules that are doing those server-side validations out of the box, including running kubeconform under the hood.
*discalimer - I'm a maintanier at datree.

Hi @SleepyBrett ! There would definitely be value in being able to reuse directly some Kubernetes server-side validation logic in kubeconform, so we could catch more of these errors. It would be a slight departure from the jsonschema-validation-only approach kubeconform does today but :shrug:  maybe it would be a better tool?
Happy to discuss approaches for doing so should anyone be willing to submit a patch :bow:

authors: SleepyBrett eyarz yannh

repo: yannh/kubeconform


text:
'property' is missing props validation, false positive when passing props to function declared on stateless component

eslint version: 2.1.0
eslint-plugin-react version: 5.2.2
I am running into an issue linting stateless functional components. I get a false positive for the prop-types rule when I pass the props object to a function declared on the functional component that returns a node.
For example:
import React from 'react';

import OtherComponent from 'other-component';

const TestComponent = (props) => {
  return (
    <OtherComponent
      detail={ TestComponent.config.getDetail(props) }
    />
  );
};

TestComponent.propTypes = {
  propOne: React.PropTypes.number.isRequired,
  propTwo: React.PropTypes.number.isRequired
};

TestComponent.config = {
  getDetail({ propOne, propTwo }) {
    return
{ propOne + propTwo }
;
  }
};

export default TestComponent;

What's bizarre is, if TestComponent.config.getDetail doesn't return a div, and instead just returns some operation on the props, I do not get the prop-types lint, ie:
getDetail({ propOne, propTwo }) {
  return propOne + propTwo;
}

Not sure what is happening here, and I can get around it if I do the above and wrap the result of the function in a div within the component, like so:
const TestComponent = (props) => {
  return (
    <OtherComponent
      detail={
{ TestComponent.config.getDetail(props) }
 }
    />
  );
};

A function that returns jsx is treated as a component. In this case, getDetail should be an SFC, not just a jsx-returning function.
I'm also not sure why you're sticking those functions directly on the TestComponent as opposed to just referencing them lexically in the closure?

Ah ok, that makes sense, thanks.  We put functions like that on the TestComponent for configurability, so it seems like that function should just be returning just the content, and not the element thats wrapping it.  Thanks again!

authors: ljharb nc-babelv

repo: yannickcr/eslint-plugin-react


text:
Rule proposal: no-useless-scu

shouldComponentUpdate method is useless when component extending PureComponent.

It's worth noting that I think it will actually work - it just means there's no point in it extending PureComponent then. I'm 👍 on this rule.

I'll take a look at this rule, since it was just recently requested again in https://github.com/yannickcr/eslint-plugin-react/issues/1217
It looks pretty easy to add:

Validate the MethodDefinition name
Validate that the method is declared in a PureComponent (for which a helper already exists)

Probably will need some help with the actual rule name and errors + docs. I suppose no-useless-scu is not a good name, as we want to warn the user not to extend React.PureComponent when they want to override shouldComponentUpdate?

Nevermind. There is a PR already. Missed it.

Fixed via #1084.

authors: alexzherdev jseminck ljharb nkt


text:
Error java.io.FileNotFoundException: Jar does not contain plugin.yml

Describe the bug
A clear and concise description of what the bug is.
Plugin doesn't load complaining there is no plugin.yml
To Reproduce
Steps to reproduce the behavior:
Not sure just install api 1.0.5 on a 1.14.4 paper server
Expected behavior
A clear and concise description of what you expected to happen.
It loads so bentobox can hook into the api and use it
Screenshots
If applicable, add screenshots to help explain your problem.
N/A
Additional context
Add any other context about the problem here.
[18:23:37 ERROR]: Could not load 'plugins/API(1).jar' in folder 'plugins'
org.bukkit.plugin.InvalidDescriptionException: Invalid plugin.yml
at org.bukkit.plugin.java.JavaPluginLoader.getPluginDescription(JavaPluginLoader.java:159) ~[patched_1.14.4.jar:git-Paper-233]
at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:142) ~[patched_1.14.4.jar:git-Paper-233]
at org.bukkit.craftbukkit.v1_14_R1.CraftServer.loadPlugins(CraftServer.java:355) ~[patched_1.14.4.jar:git-Paper-233]
at net.minecraft.server.v1_14_R1.DedicatedServer.init(DedicatedServer.java:226) ~[patched_1.14.4.jar:git-Paper-233]
at net.minecraft.server.v1_14_R1.MinecraftServer.run(MinecraftServer.java:876) ~[patched_1.14.4.jar:git-Paper-233]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_232]
Caused by: java.io.FileNotFoundException: Jar does not contain plugin.yml
... 6 more

Use 1.0.4 release. 1.0.5 was only to test deployment of the API and the Testplugin into the GitHub Releases section.

authors: johncsuti yannicklamprecht

repo: yannicklamprecht/WorldBorderAPI


text:
🛑 blog is down

In 4948c8c, blog (https://yányào.com) was down:

HTTP code: 0
Response time: 0 ms

Resolved: blog is back up in 7440b51.

repo: yanyaoer/daydayup


text:
fix: avoid endless loop when handling symlinks

This resolves #108 for me. I tried to run tests locally to see if this breaks anything, but I guess the tests need to run in CI as they were failing with or without this change on my environment.
Fixes #108

@q0rban I'm not sure that just removing code is the correct way to handle this. You should handle the case of infinite loop like keeping track of paths to be sure you don't hit the same path twice to break the loop

The interesting thing is that the code is already keeping track of the paths. I couldn't figure out a scenario where this code wouldn't result in an infinite loop, which is why I deleted it. But then I realize it is assuming that the paths are not nested at the same level. So I believe the code will work if path/to/some/symlink/index.js is symlinked to path/to/real/index.js (since they have different nesting levels), but I believe it will always loop if path/to/symlink/index.js is linked to path/to/real/index.js since they have the same nesting depth.
Furthermore, I don't believe this function will properly handle the scenario where there are multiple symlinks involved. For example, let's say module chicken is symlinked wholesale into another module:
path/to/node_modules/some-module/node_modules/symchicken -> path/to/node_modules/some-module/node_modules/chicken

but then, what happens if chicken has some links in it as well?
chicken/lib/link.js -> chicken/deeply/nested/index.js

This would result in
path/to/node_modules/some-module/node_modules/symchicken/lib/index.js -> path/to/node_modules/some-module/node_modules/chicken/deeply/nested/index.js

Does that mean this logic needs to recurse? The mind reels.

Incidentally, do you have any tips on running tests locally? I don't see any documentation on that in the repo.

@robertsLando updated the approach and would appreciate your thoughts. The existing logic seems error prone, and thus difficult to ascertain the intent of it.

See https://github.com/yao-pkg/pkg/pull/111/files

Also please fix lint issues: yarn fix

Could you also add a test that covers this?
test-99-#108

Whoops, apologies, I missed this. Will take a look at what this entails.

Okay, test added. I can confirm that the test just hangs on the main branch, and builds properly on this branch.

See review above

I know, I requested another review after pushing fixes based on that review. :)

Found improvements on how test works? 😆 Spent 2 days trying to improve them

repo: yao-pkg/pkg


text:
spark pushdown and partitionFilter not working

Row filter and Column masking is helpful.
But with it enabled then spark cant do push down and partition filter ( physic plan ).
Do you have any solution @yaooqinn  ?

I think Spark dont know how to optimize RangerSparkRowFilter and RangerSparkMasking, so we can make original plan optimized before inject two custom optimized (row filter and masking).

ah, thanks for reporting this, I will investigate this soon

I fix it by injecting a optimized extension after row filter and column masking happend.
I used a transform to remove all class marker: RangerSparkRowFilter, RangerSparkMasking and after that Spark (physical planner) will do the rest.
I can do a pull request if you want @yaooqinn .

Hey, we are facing the same issue . The plan look like this
Project [code#1058,  ... 93 more fields] +- GlobalLimit 10    +- LocalLimit 10       +- Filter (((((((isnotnull(year#1172) && isnotnull(hour#1169)) && isnotnull(month#1173)) && isnotnull(day#1174)) && (year#1172 = 2019)) && (month#1173 = 05)) && (day#1174 = 23)) && (hour#1169 = 02))          +- RangerSparkRowFilter             +- RangerSparkMasking                +- Relation[code#1058,,... 93 more fields] parquet
Can you share the pull request for this to have a look ?

@brucemen711
Can you please share the pull request. We have same issue with the partition pruning.

Hi guys, this project has become a sub-module of Apache submarine, so please go to https://github.com/apache/submarine for further verification and discussion. This problem might be fixed there. Sorry for the inconvenience. thanks.

@yaooqinn
I took the fix from submarine and applied to our fork. All tests with partition pruning seems to be working fine. Thank you

Sorry for late response, glad to see @yaooqinn  resolved it.
May be we need to archived this project.

thanks guys, the apache submarine project is much more official place to maintain this, and there will be maven central artifact for this with the next release of submarine.
I will keep this project unarchived just for a while

repo: yaooqinn/spark-ranger


text:
Update sbt-scalafmt to 2.5.1

About this PR
📦 Updates org.scalameta:sbt-scalafmt from 2.5.0 to 2.5.1
📜 GitHub Release Notes - Version Diff
Usage
✅ Please merge!
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

⚙ Adjust future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "org.scalameta", artifactId = "sbt-scalafmt" } ]

Or, add this to slow down future updates of this dependency:
dependencyOverrides = [{
  pullRequests = { frequency = "30 days" },
  dependency = { groupId = "org.scalameta", artifactId = "sbt-scalafmt" }
}]

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

Superseded by #57.

repo: yarhrn/rozklad


text:
Cudnn failed to initialize

Hello, thanks for sharing this code.
I tried to run the demo but I failed building the environment. I use the docker as tensorflow doesn't match but I still have some issues. I used python 3.5 (because of the docker), Cuda 11.0 and Cudnn 10.2.
It is the first time I use docker and Cudnn and I'm not sure how to proceed to install the versions of CUDA and Cudnn you used to run the project.
The error message is the following one.
W0816 09:34:40.781714 140426061592320 deprecation_wrapper.py:119] From HDNet_Inference.py:15: The name tf.logging.set_verbosity is deprecated. Please use tf.compat.v1.logging.set_verbosity instead.

W0816 09:34:40.781880 140426061592320 deprecation_wrapper.py:119] From HDNet_Inference.py:15: The name tf.logging.ERROR is deprecated. Please use tf.compat.v1.logging.ERROR instead.

------------------------------
Hourglass Architecture
------------------------------
------------------------------
Hourglass Architecture
------------------------------
Model DR restored.
Model NP restored.
Processing file:  0043
Traceback (most recent call last):
  File "/usr/local/lib/python3.5/dist-packages/tensorflow/python/client/session.py", line 1356, in _do_call
    return fn(*args)
  File "/usr/local/lib/python3.5/dist-packages/tensorflow/python/client/session.py", line 1341, in _run_fn
    options, feed_dict, fetch_list, target_list, run_metadata)
  File "/usr/local/lib/python3.5/dist-packages/tensorflow/python/client/session.py", line 1429, in _call_tf_sessionrun
    run_metadata)
tensorflow.python.framework.errors_impl.UnknownError: 2 root error(s) found.
  (0) Unknown: Failed to get convolution algorithm. This is probably because cuDNN failed to initialize, so try looking to see if a warning log message was printed above.
	 [[{{node hourglass_normal_prediction/conv1/Conv2D}}]]
  (1) Unknown: Failed to get convolution algorithm. This is probably because cuDNN failed to initialize, so try looking to see if a warning log message was printed above.
	 [[{{node hourglass_normal_prediction/conv1/Conv2D}}]]
	 [[hourglass_normal_prediction/conv18/BiasAdd/_177]]
0 successful operations.
0 derived errors ignored.

Thanks in advance.

Hi. If you want to use docker, you may want to get the tensorflow-docker image from here.
If you already have docker installed you can just follow and run this
Note that you don't need to do anything else if you use this environment. Just install requirements.txt after that.
If you don't want to use docker, the code is tested under this cuda, cudnn and tensorflow that is mentioned.
Please read the readme file carefully to follow the installation correctly.

I read it carefully and I tried to use it with docker, the error appears while I use docker. I though that I had to install Cudnn in docker because of the error bellow and that's what I did but it is still not working, the error is exactly the same. (Obviously I installed the requirements in docker)
´´´(0) Unknown: Failed to get convolution algorithm. This is probably because cuDNN failed to initialize, so try looking to see if a warning log message was printed above.´

Thanks for reaching out.
This docker image already has the cudnn and cuda installed. You can see the available libraries coming with this container here. This is an example of how the code runs in the container:

However, If there are still problems with the installation, I have added the google colab notebook as well that you can check out.

authors: TContamin yasaminjafarian


text:
Active Record バリデーション の validates_each の説明文がおかしい

「Active Record バリデーション」の「2.13 validates_each」において、「属性の名前」が連続して出てきています。
同ファイル内に「属性の値」という表現があることから、こちらもそのように修正されるのがよろしいのではないでしょうか。
yasslab/railsguides.jp
https://github.com/yasslab/railsguides.jp/blob/b1194e3191d1d8c969fe8a10e39af0f5862739f5/guides/source/active_record_validations.md

このブロックは、レコードと属性の名前、そして属性の名前を受け取ります。

rails/docrails
https://github.com/rails/docrails/blob/c1a1c58a93305e3fe46d1fa9c1eea73b899449c0/guides/source/active_record_validations.md

The block receives the record, the attribute's name and the attribute's value.

@abe4tawa8  ご指摘ありがとうございました。修正しました！

@yui-knk ご対応ありがとうございました。


text:
Program error during training

When I am training CCT, the following error will occur. I would like to know how to solve this problem?
Traceback (most recent call last):
File "/home/d6813/anaconda3/envs/CCT/lib/python3.7/threading.py", line 926, in _bootstrap_inner
self.run()
File "/home/d6813/anaconda3/envs/CCT/lib/python3.7/site-packages/tensorboard/summary/writer/event_file_writer.py", line 233, in run
self._record_writer.write(data)
File "/home/d6813/anaconda3/envs/CCT/lib/python3.7/site-packages/tensorboard/summary/writer/record_writer.py", line 40, in write
self._writer.write(header + header_crc + data + footer_crc)
File "/home/d6813/anaconda3/envs/CCT/lib/python3.7/site-packages/tensorboard/compat/tensorflow_stub/io/gfile.py", line 766, in write
self.fs.append(self.filename, file_content, self.binary_mode)
File "/home/d6813/anaconda3/envs/CCT/lib/python3.7/site-packages/tensorboard/compat/tensorflow_stub/io/gfile.py", line 160, in append
self._write(filename, file_content, "ab" if binary_mode else "a")
File "/home/d6813/anaconda3/envs/CCT/lib/python3.7/site-packages/tensorboard/compat/tensorflow_stub/io/gfile.py", line 164, in _write
with io.open(filename, mode, encoding=encoding) as f:
OSError: [Errno 9] Bad file descriptor

OSError is often raised when operations are performed on a file that has been closed or was never properly opened. Check the file path & permissions.

repo: yassouali/CCT


text:
fix(schemas/keymap): support string or array of strings for on

See https://github.com/sxyazi/yazi/pull/1241
The key on should be updated as it supports string directly

We don't merge any changes that haven't been released yet. See #17.

Thanks! I've brought your changes into #26.

authors: soraxas uncenter

repo: yazi-rs/schemas


text:
YDB сервер (бинарник) не запускается

Имеется Ubuntu 18.04
Выполняю шаги по инструкции:
curl https://binaries.ydb.tech/local_scripts/install.sh | bash
Затем:
# ./start.sh disk
Data file ydb.data not found, creating ...
Starting storage process...
/root/petprj/ydbd/bin/ydbd: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.28' not found (required by /root/petprj/ydbd/bin/ydbd)
/root/petprj/ydbd/bin/ydbd: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.30' not found (required by /root/petprj/ydbd/bin/ydbd)
/root/petprj/ydbd/bin/ydbd: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.29' not found (required by /root/petprj/ydbd/bin/ydbd)
/root/petprj/ydbd/bin/ydbd: /lib/x86_64-linux-gnu/libpthread.so.0: version `GLIBC_2.30' not found (required by /root/petprj/ydbd/bin/ydbd)
Errors found when starting storage process, cancelling start script

На 18ой полностью обновленной убунте бинарник выходит не будет работать?
ldd --version
ldd (Ubuntu GLIBC 2.27-3ubuntu1.6) 2.27
Copyright (C) 2018 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Written by Roland McGrath and Ulrich Drepper.

Существующий готовый бинарник действительно работает только на Ubuntu 20. Мы добавим уточнение на страничку Downloads и в статью в разделе "Начало работы".

Internal ticket: KIKIMR-17046
Move builds to ubuntu 18 machines to have a 18+ compatible binary.

We solved this problem in ClickHouse a long time ago with the "glibc-compatibility" library: https://github.com/ClickHouse/ClickHouse/tree/master/base/glibc-compatibility
ClickHouse can work without dependencies on any Linux, starting from Ubuntu 8.04 or CentOS 5, which are 15 years old.

repo: ydb-platform/ydb


text:
update

update

This PR has no Slow CI triggered yet. Please trigger it and make sure all tests passing before merge.


text:
Prefixes missing

There are no prefixes in the migration tables

fixed

authors: robov yeesoft


text:
Can the RANS  be solved with this? What changes should be made to the network

Different differential equations are going to have different structures, but is it okay to use the same structure.

@LiChengChen666
Yes, you can use the same structure for both DNS and RANS. Or, you can also refine the architecture to be more suitable for RANS. To do so, 1) you can define the governing equation you would like to solve (e.g., equations for RANS), 2) write the encoded version using NIsoGCN as done in the paper (e.g., Equations 58-61), and 3) implement it. Step 2 seems complicated at first glance, but actually, it is straightforward because all you need is to replace spacial gradient operators with corresponding NIsoGCN layers.

Our method can deal with any partial differential equation, as we demonstrated the Navier–Stokes equations and advection-diffusion equation (see Appendix C and D in the paper).
Hope helps this!

Thank you very much. I have a new question.
If I have a mesh consists of ca. 30 million vertices and I want to preserve geometric features, what should I do？

First, you can just preprocess your mesh and try to learn it. If you encounter an out-of-memory error, consider these options:

Model size reduction: Specifically, decrease the number of neurons and/or iterations in the neural nonlinear solver.
Model parallelism: Divide the model to take advantage of multi-GPU capabilities (cf. https://pytorch.org/tutorials/intermediate/model_parallel_tutorial.html )
Mesh partitioning: Like model parallelism, you can use multi-GPU by partitioning the mesh (cf. https://docs.dgl.ai/guide/distributed.html )

I'm also keen on learning large-scale meshes, so if you manage to learn your mesh successfully, please let me know. We can then discuss potential future directions together. Good luck!


text:
Include keywords from existing package.json

If a package.json has keywords already, this adds the keywords from prompts on to them
Fixes yeoman/generator-generator#135
Fixes yeoman/generator-generator#129
Maybe not the best solution but it does get them in there. If a previous generator schedules them to write, I think that happens after the composeWith initialize queue so the reading of the package.json doesn't have them yet. Maybe they should be passed ...

An alternative would to mod both this and generator-generator like the following diff. It passes in an existing package.json object to the composeWith command and then this merges any existing package.json with those properties (does it twice in case it has changed along the way)

Oups, forgot to review these.
Looks good to go!

authors: SBoudrias eddiemonge

repo: yeoman/generator-node


text:
Can't install Yeoman on Mac OS X Yosemite

Hi,
I am trying to install Yeoman via npm, but I get the following:
kudlajz:~ kudlajz$ npm install -g yo
/Users/kudlajz/.node_modules/bin/yo -> /Users/kudlajz/.node_modules/lib/node_modules/yo/lib/cli.js

> yo@1.4.5 postinstall /Users/kudlajz/.node_modules/lib/node_modules/yo
> yodoctor

sh: yodoctor: command not found
npm ERR! Darwin 14.0.0
npm ERR! argv "/opt/local/bin/node" "/opt/local/bin/npm" "install" "-g" "yo"
npm ERR! node v0.10.35
npm ERR! npm  v2.1.18
npm ERR! code ELIFECYCLE

npm ERR! yo@1.4.5 postinstall: `yodoctor`
npm ERR! Exit status 127
npm ERR!
npm ERR! Failed at the yo@1.4.5 postinstall script 'yodoctor'.
npm ERR! This is most likely a problem with the yo package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     yodoctor
npm ERR! You can get their info via:
npm ERR!     npm owner ls yo
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /Users/kudlajz/npm-debug.log

I believe the command which should be called is yo doctor.

I just installed yo@1.4.5 on Yosemite 10.10.1 node v0.10.35 npm 2.1.18 using nvm v0.4.0  without problems ...
Did you try this already? npm uninstall -g yo , npm cache clean, npm i -g yo
The command run is correct it should execute yeoman-doctor see https://github.com/yeoman/doctor/blob/master/package.json bin property

You should open an issue on npm if you get this failure again. I think it might be an issue with install race condition.
Also, make sure you're using the latest npm version.

Closing due to inactivity

I've got the same error, only difference is node and npm version

npm ERR! Darwin 14.0.0
npm ERR! argv "node" "/usr/local/bin/npm" "install" "--global" "yo"
npm ERR! node v0.12.0
npm ERR! npm  v2.5.1

I've tried npm uninstall -g yo , npm cache clean, npm i -g yo, but it does not help.
Any ideas?

@vuk-nikolic please read:

You should open an issue on npm if you get this failure again. I think it might be an issue with install race condition.

After downgrading to node v0.10.36 it worked.

Downgrading to node v0.10.36 didn't work for me.
I circumvented this issue by creating an executable script called yodoctor in my PATH with the content yo doctor.
Then npm will install yeoman correctly and run the postinstall hook. Afterwards, the file can be safely deleted.
I'm on node v0.12.0 with npm v2.6.0.

I tried the solution suggested by meonwax, and it worked for me too

try this sudo npm i -g yeoman-doctor before sudo npm install -g yo it should fix it!

i had same issue on macos:
MacbookBlack:~ didiandmalish$ sudo npm i -g yo
npm WARN deprecated cross-spawn-async@2.2.4: cross-spawn no longer requires a build toolchain, use it instead!
npm WARN deprecated npmconf@2.1.2: this package has been reintegrated into npm and is now out of date with respect to npm
npm ERR! Darwin 15.4.0
npm ERR! argv "/usr/local/Cellar/node/6.2.0/bin/node" "/usr/local/bin/npm" "i" "-g" "yo"
npm ERR! node v6.2.0
npm ERR! npm  v3.8.9
npm ERR! path /usr/local/lib/node_modules/yo/lib/cli.js
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! syscall chmod
npm ERR! enoent ENOENT: no such file or directory, chmod '/usr/local/lib/node_modules/yo/lib/cli.js'
npm ERR! enoent ENOENT: no such file or directory, chmod '/usr/local/lib/node_modules/yo/lib/cli.js'
npm ERR! enoent This is most likely not a problem with npm itself
npm ERR! enoent and is related to npm not being able to find a file.
npm ERR! enoent
npm ERR! Please include the following file with any support request:
npm ERR!     /Users/didiandmalish/npm-debug.log

Do not use sudo ,You can consult this guide for a more robust solution.
Install npm packages globally without sudo on macOS and Linux

authors: Mahmoudz SBoudrias eddiemonge gaboesquivel gojefferson kudlajz meonwax nkuhan squalsoft vuk-nikolic

repo: yeoman/yo


text:
Error when extracting imgaes

When I run the 'extract_segment_imgs.py', and extract the image with mediapipe:
I0000 00:00:1707100259.740940   41936 gl_context_egl.cc:85] Successfully initialized EGL. Major : 1 Minor: 5
I0000 00:00:1707100259.741208   41936 gl_context_egl.cc:85] Successfully initialized EGL. Major : 1 Minor: 5
X connection to :1.0 broken (explicit kill or server shutdown).
X connection to :1.0 broken (explicit kill or server shutdown).

--force_single_process 加上这个参数在执行看看。

--force_single_process 加上这个参数在执行看看。

可以的，谢了!

--force_single_process  确实可以 不过处理速度太慢了

authors: ChengsongLu laishujie notedit

repo: yerfor/GeneFacePlusPlus


text:
No Types

No types. Not working.
"@remix-run/node": "^1.7.3",
"@remix-run/react": "^1.7.3",
"@remix-run/serve": "^1.7.3",
"remix-routes": "^1.0.0",

Does node_modules/remix-routes.d.ts exist?

No, it looks like it's not working at all.
But cli running

authors: leimantas yesmeck

repo: yesmeck/remix-routes


text:
feature: chat without any context

The current chat opens with the context of the current file(buffer). I believe there should be an option to chat without any context.

Here are two ideas I've imagined:

Chat about coding without any context. <leader>aA
Chat within the context of the current file(buffer), which is the avante current behaviour, similar to the Cursor. <leader>aa

I think this is a bit out of scope for avante.nvim. There are other chat plugins to just chat with LLM in a neovim buffer.
I prefer not to include this.

Sure,  thanks

hi, just found out that Cursor has an option to chat without context.
so I am reopened this issue, sure feel free to close this again if still think it is out of scope :)

Thank you for the suggestion. I need to experience Cursor's simple chat mode to understand why it offers this feature.

I consider this feature unnecessary as I have been using the cursor for days.

Big fan of this feature in Cursor, I like being able to just go to one place for all my LLM prompting. If we could have a secondary keybind to prompt without context similar to Cursor that would be awesome.

authors: 2nthony Tarquinen aarnphm yetone


text:
Consolidate publish workflows into one

Description
Consolidate publish-* workflows into one
This new workflow will be invoked in the same way, except it also takes a space separated list of packages to publish. This change will also guard against any issues that may come up because of running cargo release many times
Checklist

[x] I have reviewed my own code
[ ] I have added tests

Yes, it's the cargo error message if invalid name is passed. I thought of adding a step to validate the input but doing it in bash seemed unnecessarily complex, especially since cargo was going to take care of it anyway

@siku2 seems like you have to merge it. It isn't letting me because of permission error ("workflow scope is required"; no idea what that means)

repo: yewstack/yew


text:
試著建了個 .d.ts

export class Node<T = any>
{
	content: T;
	children: Node<T>[];
	length: number;
	parent: Node<T>;

	constructor(content: any);

	get(fieldKey: any): any;

	set(fieldKey: any, value: any): boolean;

	add(child: T | Node<T>): Node<T>;

	remove(callback: any): Node<T>[];

	sort(compare: any): Node<T>[];

	traversal(criteria: any, callback: any): void;
}

export class Tree<T = any>
{
	rootNode: Node;

	constructor(object?: T);

	get(path: any): any;

	set(path: any, value: any): void;

	add(callback: any, object: any): this;

	contains(criteria: any): any;

	remove(criteria: any): boolean;

	move(search: any, destination: any): boolean;

	traversal(criteria: any, callback: any): void;

	sort(compare: any): void;

	toJson(options?: {}): any;
}

export class ListToTree<T = any>
{
	options: {
		key_id?: string;
		key_parent?: string;
		key_child?: string;
		key_last?: string;
		uuid?: boolean;
		empty_children?: boolean;
	};
	tree: Tree;

	constructor(list: T[], options?: {
		key_id?: string;
		key_parent?: string;
		key_child?: string;
		key_last?: string;
		uuid?: boolean;
		empty_children?: boolean;
	});

	sort(criteria: (a: T, b: T) => number): void;

	last(val: any, key_id: any, key_last: any, key_child: any): void;

	GetTree(): any;
}

declare const _default: {
	ListToTree: typeof ListToTree;
	Tree: typeof Tree;
	Node: typeof Node;
};
export default _default;

非常酷！你可以尝试开发并维护一个TS版本，这或许将非常受欢迎！

authors: bluelovers yi-ge

repo: yi-ge/js-tree-list


text:
[Error] Missing files: @/utils/host in /~/Projects/Github_Remote/MP/jiezhang/src/pages/assets/asset_form.wpy

您好，麻烦您帮忙看一个build报错：
[Error] Missing files: @/utils/host in /~/Projects/Github_Remote/MP/jiezhang/src/pages/assets/asset_form.wpy
感谢您的帮助

问题已解决，参照src/utils/host.js.example自己添加一份host.js文件，谢谢

repo: yigger/jiezhang


text:
Add psalm annotations

Q
A

Is bugfix?
❌

New feature?
❌

Breaks BC?
❌

Fixed issues

Static analysis is fail... maybe increade pslam error level ?

Static analysis is fail... maybe increade pslam error level ?

To fix this, more annotations needed, I'm working on this

👍

authors: Fantom409 samdark vjik

repo: yiisoft/arrays


text:
session lost

What steps will reproduce the problem?
1.when php.ini session.auto_start on,session_name() will not work well,when do get or set session,the php.ini session.name will be use.
2.then use  session_regenerate_id()(ex switchIdentity()),new session name will be work.follow session value will set to the new session name;
3.but the new request still with the problem 1,so session value lost.
What is the expected result?
the base problem is 1.
What do you get instead?
Additional info

Q
A

Yii version
2.0.7

PHP version
7.1.10

Operating system
w10

try use Yii::app()->user->setState("key", "value")

try use Yii::app()->user->setState("key", "value")

this is Yii 2, not Yii 1 :)

authors: cebe freeng keangkai


text:
Can't know if yii connection is closed

Hello everyone, I am now encountering a problem.
There are many sleep processes in the online mysql database. After checking, I have roughly known the problem. Most of the problems are that some io operations are time-consuming and the connection is always occupied. What I want to do now is to monitor whether the database connection is closed within the specified time, and if it is not closed after the specified time, I can notify myself by email, so that I can catch some problems in time.
But I looked at the source code, and there is no corresponding event for closing the connection. I can't easily realize my idea, of course I can modify classMap, but this method is too rough.
Is there any way to replace the code without modifying the classMap? thanks~

IIRC there is no event sent when connection is closed since this is done outside the framework. Calling open() on the connection should be safe if it's open already but I'm not sure about that.

Calling open() on the connection should be safe if it's open already but I'm not sure about that.

I recently tested this and from my tests you can basically close the connection at any time, it is reopened automatically if needed.
@Mitirrli
Do you have long running CLI tasks (queue, cron, ...) which might open the connection early?
Do you use persistent connections?
Which db?

authors: Mitirrli bizley schmunk42


text:
Suggest to remove View::$title

What if someone want other logic for this. For example getTitle() and setTitle() or some SEO component approaches. This is excess property. Please remove it.

I have also the opinion that there should be getter and setter functions to overrule the title in views.
Easy example:
in my layout/main.php I have this code to add the application name to the page title:
<title><?= $this->title ? Html::encode(Yii::$app->name." | $this->title") : (Yii::$app->name.' | Home') ?></title>

And in the views something like:
$this->title = Yii::t('app', MyModel::label(2));
// or something else
$this->title = 'Some title';

With the code in the layout view file the application name is added to the title => Fine.
BUT on every Pjax request  only the normal view title is used (so without the application name) and the pagetitle is changed incorrectly.
(code from Pjax)
if ($view->title !== null) {
     echo Html::tag('title', Html::encode($view->title));
}

Sadly there is also no possibility to just extend the class functionality via a classMap which is possible with other classes like ArrayHelper.
Yii::$classMap['yii\web\View'] = '@app/components/web/View.php';

Do you have another suggestion how this issue can be fixed?
I mean other then extend the yii\web\View and yii\widget\Pjax classes as overwrite/extend them with functions?
which is cumbersome because for the pjax::init the title is directly echoed so an setting of the title before parent::init() call would work. I would have to copy and paste the complete init function and change one line $view->title to $view->getTitle() and have to check for changes on every yii update.
Of course I could change every view where i set the title and add the application name directly.
But in my opinion a getter (maybe also a setter) function for the title would be the easiest. But i guess this would break the backward compatibility.
Couldn't you just add a getTitle() function to the view and use $view->getTitle() it in Pjax / elsewhere where ever you used $view->title.
function getTitle()
{
   return $this->title;
}

Because then we could just extends this function to return also the application name.

@Bhoft please open a new issue, this one is really old and already resolved.

authors: Bhoft cebe creocoder


text:
Question about memcached and ActiveDataProvider

My configuration file:
'cache' => [
    'class' => 'yii\caching\MemCache',
    'useMemcached' => true
],

In the controller:
if (!$uidDataProviderQuery = \Yii::$app->cache->get('uidDataProviderQuery')) {
    $uidDataProviderQuery = StatsSearch::find()
        ->with(['uidCommentContent'])
        ->excluded()
        ->select('COUNT(`uid`) AS count, `uid`')
        ->groupBy('uid')
        ->orderBy(['count' => SORT_DESC])
        ->limit(\Yii::$app->config->get('GENERAL.ACTIVE_PER_PAGE'));

         \Yii::$app->cache->set('uidDataProviderQuery', $uidDataProviderQuery, 3600);
}

$uidDataProvider = new ActiveDataProvider([
    'query' => $uidDataProviderQuery,
    'pagination' => false,
]);

The cache is placed like, but quickly disappears. As this kind of cache requests that they can be subsequently used in ActiveDataProvider? Want that query the database!

You're caching query object, not results.

How to cache the results so that you can manipulate them in ActiveDataProvider?

ActiveDataProvider issues different queries for different pages so caching the whole data provider isn't really possible if you're not caching the whole data set. If you want it, use ArrayDataProvider.

And what of the species with links (->with()) and:
public function getIpCommentContent()
    {
        return $this->hasOne(Comment::className(), ['ip' => 'ip']);
    }

In ArrayDataProvider will be empty!

Use with() so it will be filled.

In the model, there is a method
getFilterUrl()

How, then access it through ArrayDataProvider or all of the results of helper methods as you need to pass separately?

It seems we need an example in docs on "how to cache active data provider".

@yiisoft/core-developers any good examples?

how can cache SqlDataProvider?

there are many different possibilities, perhabs good to put into the guide

Hi @samdark ,
I'm tring to cache ActiveDataProvider in this way:
self::getDb()->cache(function() use ($dataProvider) {             $dataProvider->prepare();             //$dataProvider->query->all();         },36000);         return $dataProvider;
I have not errors but It does not work.
Any improvements about "good examples" ?

authors: dynasource samdark sowich stesifrancesco z-avanes


text:
gii generated code:  Html::resetButton not working after first search is performed

I'm reporting a bug.
Problem: Reset button does not clear input fields after first search is performed.
I'm using the advanced template in Yii2 and working on the frontend.   I used gii to generate model and crud code for 1 table in MySQL called "Maps" with no further modifications made.
MapsController / index action points to the views/maps/index.php view.  In that view file, I uncommented the following code to perform searches on model attributes.
echo $this->render('_search', ['model' => $searchModel]);

The above code enables an ActiveForm in the ( "_search.php") view file with input boxes and a "search" & "reset" buttons.  If I enter data into any of the form fields WITHOUT performing a search function, then hit the "reset" button, the form fields will be cleared of any text I put in.
The problem occurs after I enter text, hit the "search" button, then hit the "reset" button.  It does NOT clear text in the input boxes.
views/maps/index.php file:
<?php

use yii\helpers\Html;
use yii\grid\GridView;

/* @var $this yii\web\View */
/* @var $searchModel app\models\MapsSearch */
/* @var $dataProvider yii\data\ActiveDataProvider */

$this->title = 'Maps';
$this->params['breadcrumbs'][] = $this->title;
?>

<?= Html::encode($this->title) ?>

    <?php echo $this->render('_search', ['model' => $searchModel]); ?>

        <?= Html::a('Create Maps', ['create'], ['class' => 'btn btn-success']) ?>

    <?= GridView::widget([
        'dataProvider' => $dataProvider,
        'filterModel' => $searchModel,
        'columns' => [
            ['class' => 'yii\grid\SerialColumn'],

            'mapID',
            'name',
            'description:ntext',
            'updated',
            'updatedBy',
            // 'make',
            // 'model',
            // 'year',
            // 'eManufacturer',
            // 'eName',
            // 'baffleType',
            // 'eSize',
            // 'isCustomerMap',
            // 'customerID',
            // 'isOriginalMap',
            // 'photoUrl:url',
            // 'created',

            ['class' => 'yii\grid\ActionColumn'],
        ],
    ]); ?>

views/maps/_search.php file:

use yii\helpers\Html;
use yii\widgets\ActiveForm;

/* @var $this yii\web\View */
/* @var $model app\models\MapsSearch */
/* @var $form yii\widgets\ActiveForm */
?>

    <?php $form = ActiveForm::begin([
        'action' => ['index'],
        'method' => 'get',
    ]); ?>

    <?= $form->field($model, 'mapID') ?>

    <?= $form->field($model, 'name') ?>

    <?= $form->field($model, 'description') ?>

    <?= $form->field($model, 'updated') ?>

    <?= $form->field($model, 'updatedBy') ?>

    <?php // echo $form->field($model, 'make') ?>

    <?php // echo $form->field($model, 'model') ?>

    <?php // echo $form->field($model, 'year') ?>

    <?php // echo $form->field($model, 'eManufacturer') ?>

    <?php // echo $form->field($model, 'eName') ?>

    <?php // echo $form->field($model, 'baffleType') ?>

    <?php // echo $form->field($model, 'eSize') ?>

    <?php // echo $form->field($model, 'isCustomerMap') ?>

    <?php // echo $form->field($model, 'customerID') ?>

    <?php // echo $form->field($model, 'isOriginalMap') ?>

    <?php // echo $form->field($model, 'photoUrl') ?>

    <?php // echo $form->field($model, 'created') ?>

        <?= Html::submitButton('Search', ['class' => 'btn btn-primary']) ?>
        <?= Html::resetButton('Reset', ['class' => 'btn btn-default']) ?>

    <?php ActiveForm::end(); ?>

More Detail:

In the views/maps/index.php file, the input box's name attributes resulting from this code:
echo $this->render('_search', ['model' => $searchModel]);

are  the same names for the input boxes when you have the GridView::widget's filterModel enabled.
So there are two inputs with the same names, not sure if that's a problem.  But it's definitely interfering with the reset button.

An html reset button sets the value of the input text to the one that had when the page loaded, it doesn't clear the value, see this fiddle.
http://jsfiddle.net/znw0gy15/2/
When you submit the form it is reloaded with the values you entered as the default ones so the reset button will reset them to that value not to empty.

Thanks!

Reloading the page with an action worked for me as a 'get around'.
Use a link,  Html::a   , instead of Html::resetButton  ,with the action  ['index'], and retain the class,   ['class' => 'btn btn-default']
Replacement code:
 'btn btn-default']) ?>

****

authors: fbau123 rossaddison rubenjleon salaiEngLyan


text:
657

hello

hi, seems that you have made your first contribution. Welcome to Yii!

authors: dynasource qiumenghen


text:
#11299 BaseInflector::singluarise singularises string Netherlands wrongly

Q
A

Is bugfix?
yes

New feature?
no

Breaks BC?
no

Tests pass?
yes

Fixed issues
#11299

Thank you!


text:
Fixed typo in comment in ModelTest

Q
A

Is bugfix?
no

New feature?
no

Breaks BC?
no

Tests pass?
yes

Fixed issues
-

Thanks!

authors: arogachev samdark


text:
Solution for correct getting PK from insert query without function getLastInsertID

Q
A

Is bugfix?
✔

New feature?
❌

Breaks BC?
❌

Tests pass?
✔

Fixed issues

fix issue 8 from yiisoft/db-mssql

👍

authors: darkdef samdark


text:
Minified SVGs

Q
A

Is bugfix?
❌

New feature?
❌

Breaks BC?
❌

Tests pass?
✔

Fixed issues
#17479, #18559, #18571

If we care about size, wouldn't be better to save them as separate files, publish as assets and link using img tag? In that way we wouldn't repeat them 50 times on grid with 50 rows.

Is an idea. But if you reference them as separate images, you have 4 requests instead of one. I'm not sure what to prefer...

If these very bigger, yes, maybe. In that case I don't see the value in having separate files.

For reasons, Github also went with separate svg's. https://github.blog/2016-02-22-delivering-octicons-with-svg/#our-approach
For sake completness:
A grid with 10 rows will not suffer from performance issues.
not sure how many rows it needs; In any case, having inline svg is worse then a img tag referencing a svg.
Reason is its part of the dom, js can interact with it, css can interact with, each svg has to be handled separately in each row.
But browsers are pretty fast by now.
Also it would be more then one request on first load, later its cached.
Lastly like with png's, svg's can also be collected into one file (but as one can see in github's approach, that comes with a different set of problems).
https://w3bits.com/svg-sprites/

Hm, if I read it correctly they are using inline svgs and not the files.

Hm, if I read it correctly they are using inline svgs and not the files.

Yeah should had written, I would keep it as is, just inline them.

Is an idea. But if you reference them as separate images, you have 4 requests instead of one. I'm not sure what to prefer...

With HTTP/2 becoming a standard, it should not be a big problem. This is also one-time cost - icons will be cached by browser on firs view and there will be no additional requests on next pageviews.

If these were bigger, yes, maybe. In that case I don't see the value in having separate files.

Assuming that this is 500 chars per icon overhead, for 50 rows with 3 icons you have 75 kB overhead. And this is for each request - if you display 100 pages, you have 7.5 MB in total. For most of relatively simple grids these icons may easily triple weight of HTML generated by widget.

Ok, let's do it like than. What is the preferred way these days? Something like?
<svg viewBox=" ">
   <use xlink:href=" "></use>
</svg>

Ok, let's do it like than. What is the preferred way these days? Something like?
<svg viewBox=" ">
   <use xlink:href=" "></use>
</svg>

This is inline variant too, the difference is less code, because you put the svg in the shadow root and only reference to it.
I think what they meant is:

Can we modify svg with color, etc. when it's added as img?

Nope

Thanks.
Merged since it's already an improvement. Whenever to use separate files is separate question.


text:
Feature Request: Internationalization

Great design, I loved it and forked it already.
But it would be really nice if it was supporting internationalization. If you consider doing visual design work of internationalization, I can contribute by implementing the logic, if you need a hand.

Thanks, @ferittuncer. I think internationalization would be a great enhancement for the project.
My concern is how this would fit in with Netlify CMS.
I'm sorry for the late response.

Quick Google search yielded me this: https://medium.com/@ponchique/dead-simple-internationalization-with-gatsby-netlify-cms-d66dc4ecdac4
Seems doable.

authors: ferittuncer yinkakun

repo: yinkakun/gatsby-starter-glass


text:
Initial pr for code review

Why are these changes needed?

Related issue number

Checks

[] I've signed off every commit(by using the -s flag, i.e., git commit -s) in this PR.
[ ] I've run scripts/format.sh to lint the changes in this PR.
[ ] I've included any doc changes needed for https://docs.ray.io/en/master/.

[ ] I've added any new APIs to the API Reference. For example, if I added a
method in Tune, I've added it in doc/source/tune/api/ under the
corresponding .rst file.

[ ] I've made sure the tests are passing. Note that there might be a few flaky tests, see the recent failures at https://flakey-tests.ray.io/
Testing Strategy

[ ] Unit tests
[ ] Release tests
[ ] This PR is not tested :(

Looks like the plugin interface is meant to provide backend object store functions to the plasma store provider and not to replace plasma store (which is an object store itself) altogether, which was my original impression reading the design doc. As it is, the plugin mechanism is used to make some backend object store functions (parallel to functions to to access local shared memory) available to the plasma store provider at runtime, which uses the undocumented isGlobalShm client method, which is not part of (and does not belong to) the client interface to modify the data path.
We should clarify the narrow goal (we're not replacing plasma) of the plugin and add an IsGlobal() method to the client interface.

authors: vicaya yiweizh-memverge

repo: yiweizh-memverge/ray


text:
🛑 AleWorld is down

In e51afdc, AleWorld (https://www.ale.world) was down:

HTTP code: 0
Response time: 0 ms

Resolved: AleWorld is back up in eb70904.


text:
performance improvement on certain operation

include #37 but remove unnecessary changes, add the benchmark on this as well.
before
BenchmarkNetworkEqualIPv4-16          	 5917344	       198 ns/op	      64 B/op	       6 allocs/op
BenchmarkNetworkEqualIPv6-16          	 4486786	       273 ns/op	      42 B/op	       6 allocs/op

after
BenchmarkNetworkEqualIPv4-16          	100000000	        10.6 ns/op	       0 B/op	       0 allocs/op
BenchmarkNetworkEqualIPv6-16          	100000000	        10.9 ns/op	       0 B/op	       0 allocs/op

change newPathprefixTrie to not call newPrefixTree, save time on extra parseCIDR and NewNetwork
before
BenchmarkNewPathprefixTriev4-16                                    	 2731194	       440 ns/op	     288 B/op	      12 allocs/op
BenchmarkNewPathprefixTriev6-16                                    	 1610536	       743 ns/op	     456 B/op	      16 allocs/op

after
BenchmarkNewPathprefixTriev4-16                                    	13315774	        88.3 ns/op	      16 B/op	       4 allocs/op
BenchmarkNewPathprefixTriev6-16                                    	 7967464	       153 ns/op	      64 B/op	       4 allocs/op

Coverage remained the same at 91.281% when pulling 9adafe1ea7c93728894840481caffc81717e6c20 on ldkingvivi:improve_performance into 7ff5a0e84593dad6fbd50551343618d7956b3c71 on yl2chen:master.

LGTM! All the tests in my code pass when replacing with this modified version, looks like an easy win for double the performance here!

This PR improves insert performance by 60% for my use case and also reduces heap memory usage by 25%. Can we get this merged and released?

authors: coveralls dotwaffle ldkingvivi panga


text:
🛑 Cliente Istmo is down

In 346df5c, Cliente Istmo (https://sit.istmo.tecnm.mx) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Cliente Istmo is back up in 4159f5a after 11 minutes.

repo: ymiranda-web/istmo-status


text:
Log warnings in ImageAsset.image and SystemImage.image when loadImage() fails

Let's log to console from var image: UIImage when loadImage() returns nil and we resort to the fallback image.
(This is preferable to logging from loadImage() which can be expected to return nil under certain unit tests.)
See how YMatterType logs when fonts don't load and let's adopt a similar pattern for declaring the Logger to use.
This will be iOS 14+.

Can you cite an example of the YMatterType logging you speak of?

authors: WestonHanners mpospese

repo: yml-org/YCoreUI


text:
🛑 Growi is down

In dc852d7, Growi (https://ymmmtym.growi.cloud/) was down:

HTTP code: 503
Response time: 678 ms

Resolved: Growi is back up in f1ecfc3.

repo: ymmmtym/upptime


text:
Houdini: TAB create instances in /obj or /stage directly instead of /out

Changelog Description
Allow Alembic pointcache and USD rop instances to be created in respectively SOP or LOP network directly via TAB menu.
This is just a quick prototype and there's lot of code duplication which we might want to simplify down the line, anyway - it's worth playing around with it to discuss whether this is something we want to support in this manner. (Or discuss whether other implementation for publish instances are actually more native to houdini and thus better anyway.)
Additional info
Just a prototype showing the possibility.
Basically a Creator can now override the behavior for the interactive creations - e.g. doing something different when created in /stage or alike.
Testing notes:

Create pointcache or USD instances via TAB menu
Publish

can you show a screenrecording of the behavior of this?

@MustafaJafar - Thanks - apparently I missed a commit last time during my test. Fixed it.

@fabiaserra
Here's a screen recording - doesn't show much though. Only that the ROPs generated can now also be generated in /stage if e.g. user is working there and using TAB menu.
https://github.com/ynput/OpenPype/assets/2439881/01ed1cc1-f60c-4bcf-9baf-30ba77fac734
Other than that, behavior should be same as before.

create_houdini_tab_menu.mov
Other than that, behavior should be same as before.

Thanks for the recording! I see, I understand now, that's an improvement but you know my view on this workflow

It works with USD.

but not with alembic.

My main concern is: all creators and validators assumes we are executing ROP node in out context which may/might have a little different parameters.
e.g. even when the above error is fixed.
this repair action will fail.

Would it be more cleaner to have hidden creators that are only accessible by the tab menu ?

@BigRoy what's the status of this ticket?

It's as this comment described. It's mostly dependent on what the preferences are for development and whether this is expected to be the "right direction" going forward.

Because we're splitting OpenPype into ayon-core and individual host addons, this PR would have to be re-created to target one of those.
We're closing it down, but we'll he happy for a new PR to ynput/ayon-core or the host addon repository once it's up.

authors: BigRoy MustafaJafar fabiaserra mkolar moonyuet

repo: ynput/OpenPype


text:
lzw.rb / decode : can't convert nil into String

When trying to extract text of document https://dl.dropbox.com/u/39311630/JFE-June%2B79.pdf  I get
vendor/bundle/ruby/1.9.1/bundler/gems/pdf-reader-65b417aea904/lib/pdf/reader/lzw.rb:91:in decode' vendor/bundle/ruby/1.9.1/bundler/gems/pdf-reader-65b417aea904/lib/pdf/reader/filter/lzw.rb:14:infilter'
vendor/bundle/ruby/1.9.1/bundler/gems/pdf-reader-65b417aea904/lib/pdf/reader/stream.rb:63:in block in unfiltered_data' vendor/bundle/ruby/1.9.1/bundler/gems/pdf-reader-65b417aea904/lib/pdf/reader/stream.rb:62:ineach'
vendor/bundle/ruby/1.9.1/bundler/gems/pdf-reader-65b417aea904/lib/pdf/reader/stream.rb:62:in each_with_index' vendor/bundle/ruby/1.9.1/bundler/gems/pdf-reader-65b417aea904/lib/pdf/reader/stream.rb:62:inunfiltered_data'
vendor/bundle/ruby/1.9.1/bundler/gems/pdf-reader-65b417aea904/lib/pdf/reader/page.rb:116:in block in raw_content' vendor/bundle/ruby/1.9.1/bundler/gems/pdf-reader-65b417aea904/lib/pdf/reader/page.rb:113:inmap'
vendor/bundle/ruby/1.9.1/bundler/gems/pdf-reader-65b417aea904/lib/pdf/reader/page.rb:113:in raw_content' vendor/bundle/ruby/1.9.1/bundler/gems/pdf-reader-65b417aea904/lib/pdf/reader/page.rb:105:inwalk'
vendor/bundle/ruby/1.9.1/bundler/gems/pdf-reader-65b417aea904/lib/pdf/reader/page.rb:75:in `text'

Shortly after this issue was reported, a fix for the lzw filter was merged in c5866dad. Unfortunately I can't download the PDF that was having issues any more, so I can't confirm if that fix would help in this case.
Given the passage of time, I'll close this for now but feel free to open it if the issue is still happening.

authors: pinpudding yob

repo: yob/pdf-reader


text:
Increased the max buffer size of the SMB_TRANSACTION message.

I changed the max buffer size from 1024 to 1024 * 8.

Of course, I must support SMB_TRANSACTION_SECONDARY message. But, anyway, I increased the size so that this application works on more environments...

repo: yoichiro/chromeos-filesystem-cifs


text:
Serverless definition

Can you update docs to explain what you mean by serverless .
It’s a loaded term these days.

Hi @gedw99, there is a brief about this at https://yomo.run/docs/glossary

Nothing there about it

repo: yomorun/yomo


text:
Update package-lock.json

Delete deprecated lib "node-sass" & Add latest "sass"

What this PR does / why we need it
Since lib-sass and node-sass have been deprecated, they fall back to the dart-sass.
Any background context you want to provide?
I installed 1.53.0, the most recent version that can be found in the dart-sass github repo.
Since I could not find any code used by importing the node-sass library, I didn't modify any other code.
What are the relevant tickets?

Fixes #196
Checklist

[x] Added relevant tests or not required
[ ] Didn't break anything

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

Hmm. It might be helpful to use npm ci command instead of npm install on github action workflow.

Would you like to delete node_modules and package-lock.json, install npm locally, and commit? [ref]

I deleted the package-lock.json and node-modules file, reinstalled it with the npm i -D fsevents command, and committed it.

Great 👍 . Could you resolve the conflict? I think you can just use the new package-lock.json.

I think we should use -f flag for now. (We added the -f in #202. )
Or, could you please investigate cross-platform build is possible in any other way? (without adding -f?)

authors: CLAassistant blurfx metleeha

repo: yorkie-team/codepair


text:
Where is the source or container images?

I could not try 3.0 Prepare Dockerfile (Multi-Stage Build) . I could not build docker images. Because, I could not find source codes.
Where is the source codes or container images?

Dear Masaki-san.
Please create thd Dockerfile on the same directory with Maven project directory?
In my Maven project, look like follows.
$ ls
Dockerfile			hazelcast-default.xml		pom.xml
build-create.sh			k8s				src
create-deployment-svc.yaml	nb-configuration.xml		target
create-deployment-svc.yaml-e	policy.yaml

Key point is following. copy "src" directory of Maven project to the " /usr/src/myapp/src" directory of container images as well as pom.xml file.
COPY src /usr/src/myapp/src
COPY pom.xml /usr/src/myapp
RUN mvn -f /usr/src/myapp/pom.xml clean package
COPY target/payara-micro.jar /usr/src/myapp/payara-micro.jar

Thank you for answer. I understand that. I think that it is more helpful to prepare a sample source this repository or anther repository.

Thank you so much for your advise!!
Yes, I will add more information to the explanation and also will include sample codes and script.
To improve the documents, I'm very appreciate your advise.
Thank you & Best Regards.

I added the Sample Java Manven Project as well as explanation on 3. Basic operation to create and publish the Service.
I hope this explanation may help.
Please review it ? If I need more explanation, I will consider to write more.

Alright. Thank you yoshio3. I will check it later.

authors: nnasaki yoshioterada


text:
[feat] new element: pure

As @emmak pointed out having a pure render element would be cool - cache vanilla elements:
var pure = require('cache-element/pure')
var html = require('bel')

// this element is now cached without complicated comparisons
var el = Element()

function Element () {
  return pure(html`

Hello world

Hello planet

  `)
}

Feedback would be great!

What's the advantage of wrapping it? Would another example be a leaflet map that you know isn't going to need to change? When I saw the word pure I assumed it had to do with "pure functions"

E.g. you could wrap an image tag that might accidentally request a new
image on every render, and things like that. The point would be that every
node down the tree won't be recomputed on render so it'll be super fast to
re-render; basically cutting down a branch in the render tree.
On Thu, Dec 1, 2016 at 12:28 PM Tim Wisniewski notifications@github.com
wrote:

What's the advantage of wrapping it? Would another example be a leaflet
map that you know isn't going to need to change? When I saw the word pure
I assumed it had to do with "pure functions"
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/yoshuawuyts/cache-element/issues/17#issuecomment-264148027,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ACWlenYlKB2TNllPDpid0PKF4KUgICJgks5rDq9RgaJpZM4K_xH5
.

Done, v3.0.0

authors: timwis yoshuawuyts

repo: yoshuawuyts/cache-element


text: screen_shot for the readme.md


text:
Update TFT

Description

Motivation and Context

How Has This Been Tested?

[ ] Pass the test by running: pytest qlib/tests/test_all_pipeline.py under upper directory of qlib.
[ ] If you are adding a new feature, test on your own test scripts.

Screenshots of Test Results (if appropriate):

Pipeline test:
Your own tests:

Types of changes

[ ] Fix bugs
[ ] Add new feature
[ ] Update documentation

Changed

repo: you-n-g/qlib


text:
run error

ImportError: /home/suixin/anaconda3/envs/go-slam/lib/python3.7/site-packages/tinycudann_bindings/_61_C.cpython-37m-x86_64-linux-gnu.so: undefined symbol: _ZNK3c1010TensorImpl36is_contiguous_nondefault_policy_implENS_12MemoryFormatE
office0 done!

I run it successfully, but encounter another problem with GTX 1060:

我成功运行了它，但在 GTX 1060 上遇到了另一个问题：

Hello, can I ask you how to install tiny-cuda-nn

Hi,
I think it's not a good idea to run our slam on GTX 1060 because the minimum GPU memory requirement is 16G. But, yes, for some sequences, our slam only needs near 12G. But please, use a much more powerful GPU. I know it's hard sometimes.
Best,
Youmin

ImportError: /home/suixin/anaconda3/envs/go-slam/lib/python3.7/site-packages/tinycudann_bindings/_61_C.cpython-37m-x86_64-linux-gnu.so: undefined symbol: _ZNK3c1010TensorImpl36is_contiguous_nondefault_policy_implENS_12MemoryFormatE office0 done!

HI : How to solve this problem (For office0:cat: /home/wangt/exps/goslam/Replica/office0/first_try/metrics_traj.txt: 没有那个文件或目录),looking forward to your reply . thanks

Hi,
I think it's not a good idea to run our slam on GTX 1060 because the minimum GPU memory requirement is 16G. But, yes, for some sequences, our slam only needs near 12G. But please, use a much more powerful GPU. I know it's hard sometimes.
Best, Youmin

in GTX4080-16G version, it shows that "CUDA out of memory." QAQ

authors: byronsit glaciomarine sx123456123 wangt-tong youmi-zym

repo: youmi-zym/GO-SLAM


text:
集成2.0.8版本，启动访问异常

按照官网配置说明，集成了2.0.8的版本，启动不报错误，但是访问/ureport/designer地址。
javax.servlet.ServletException: Servlet.init() for servlet ureportServlet threw exception
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:616)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:522)
org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1095)
org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:672)
org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1500)
org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1456)
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
java.lang.Thread.run(Thread.java:745)
root cause
java.lang.NullPointerException
com.bstek.ureport.console.UReportServlet.init(UReportServlet.java:46)
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:616)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:522)
org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1095)
org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:672)
org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1500)
org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1456)
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
java.lang.Thread.run(Thread.java:745)

使用手动创建 context.xml 文件，在web.xml配置是可以的，但是直接利用我自己的spring import 是不行的！

如何使用spring配置的数据源？启动访问看到的界面，内置数据源里面没有内容，SpringBean配置里面也没有

启动报错的问题搞定了？

恩，我换了一个配置方式，没问题了，是使用listener中加载context.xml文件的方式

好，有新问题发新issue吧。

authors: njsbq youseries

repo: youseries/ureport


text:
Upsert passthrough with one unique key

As discussed in #2951 the current handling of upsert queries doesn't accept multiple rows in a single query in SBR mode because it is trying to split into separate INSERT and UPDATE statements.
Since it is safe to pass through the queries even in SBR mode if the table only has one unique key, modify the query executor to track the number of unique indexes on each table and pass through any upsert query, including those with multiple rows, on tables where there is only one unique index.

This is a very nice starting point. I'll patch this into my types branch and run with it.

Incorporated into #3066.

authors: demmer sougou

repo: youtube/vitess


text:
worker: improved error message on generateChunks

Issue #3407
Error messages did not specify the tablet or table they were
failing on.

LGTM

authors: alainjobart sougou


text:
🛑 GetCannab is down

In d467ab4, GetCannab (https://getcannab.com) was down:

HTTP code: 0
Response time: 0 ms

Resolved: GetCannab is back up in 8aeec7e after 8 minutes.


text:
🛑 GetCannab is down

In 8bd86cb, GetCannab (https://getcannab.com) was down:

HTTP code: 0
Response time: 0 ms

Resolved: GetCannab is back up in 968781f after 16 minutes.


text:
[Youtube] -ij --flat-playlist for Channels tab does not return the complete list of channels subscribed to

DO NOT REMOVE OR SKIP THE ISSUE TEMPLATE

[X] I understand that I will be blocked if I remove or skip any mandatory* field

Checklist

[X] I'm reporting a broken site
[X] I've verified that I'm running yt-dlp version 2022.09.01 (update instructions) or later (specify commit)
[X] I've checked that all provided URLs are playable in a browser with the same IP and same login details
[X] I've checked that all URLs and arguments with special characters are properly quoted or escaped
[X] I've searched the bugtracker for similar issues including closed ones. DO NOT post duplicates
[X] I've read the guidelines for opening an issue
[X] I've read about sharing account credentials and I'm willing to share it if required

Region
India
Provide a description that is worded well enough to be understood
Example:
yt-dlp -ij --flat-playlist "https://www.youtube.com/channel/UCqxoeXwW0IZoHTdyw49NQgg/channels" | jq -r '.title'
should return 65 channels which the channel is subscribed to. Instead it only returns about 10 to 12 results. So basically, yt-dlp doesn't handle the continuation requests (to load the rest of the webpage with more channels) properly. I guess Youtube must have made changes to their source code, cos yt-dlp was working just a few days ago.
Anyway, please update yt-dlp's handling of the continuation of the loading of the webpage so that the remainder of the channels on the Channels tab can be captured.
Thanks
Provide verbose output that clearly demonstrates the problem

[X] Run your yt-dlp command with -vU flag added (yt-dlp -vU <your command line>)
[X] Copy the WHOLE output (starting with [debug] Command-line config) and insert it below

Complete Verbose Output
[debug] Command-line config: ['-vU', '-ij', '--flat-playlist', 'https://www.youtube.com/channel/UCqxoeXwW0IZoHTdyw49NQgg/channels']
[debug] Encodings: locale UTF-8, fs utf-8, pref UTF-8, out utf-8 (No ANSI), error utf-8, screen utf-8
[debug] yt-dlp version 2022.09.01 [5d7c7d6] (zip)
[debug] Python 3.8.10 (CPython 64bit) - Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.29 (glibc 2.31)
[debug] Checking exe version: ffmpeg -bsfs
[debug] Checking exe version: ffprobe -bsfs
[debug] exe versions: ffmpeg n4.4-154-g79c114e1b2-20210923 (setts)
[debug] Optional libraries: certifi-2019.11.28, secretstorage-2.3.1, sqlite3-2.6.0, websockets-10.3
[debug] Proxy map: {}
[debug] Loaded 1670 extractors
[debug] Fetching release info: https://api.github.com/repos/yt-dlp/yt-dlp/releases/latest
Latest version: 2022.09.01, Current version: 2022.09.01
yt-dlp is up to date (2022.09.01)
[debug] [youtube:tab] Extracting URL: https://www.youtube.com/channel/UCqxoeXwW0IZoHTdyw49NQgg/channels
[youtube:tab] UCqxoeXwW0IZoHTdyw49NQgg: Downloading webpage
[debug] [youtube:tab] Final URL: https://www.youtube.com/channel/UCqxoeXwW0IZoHTdyw49NQgg/channels
[download] Downloading playlist: NeoEyeBeLeave - Channels
[youtube:tab] UCqxoeXwW0IZoHTdyw49NQgg page 1: Downloading API JSON
[youtube:tab] Playlist NeoEyeBeLeave - Channels: Downloading 10 videos of 10
[debug] The information of all playlist entries will be held in memory
[download] Downloading video 1 of 10
[download] Downloading video 2 of 10
SteveHoca
[download] Downloading video 3 of 10
GrizzlyRising News, Politics and opinion.
Jay Truth II
[download] Downloading video 4 of 10
Morph
[download] Downloading video 5 of 10
1on1 with Tommy Sotomayor
[download] Downloading video 6 of 10
Frozen Mgtow
[download] Downloading video 7 of 10
[download] Downloading video 8 of 10
Shakaama
[download] Downloading video 9 of 10
SUBHA CHOWDHURY
Bachelor Insight
[download] Downloading video 10 of 10
RadioClassics
[download] Finished downloading playlist: NeoEyeBeLeave - Channels

Was fixed by 1fb53b946c5aca3755bf72cc1c204925043b04f7

repo: yt-dlp/yt-dlp

license: Unlicense