text:
Don't prevent Promise.reject() in the no-return-wrap rule

Using return Promise.reject() is not wrapping, but just another way to reject the promise. I don't think this rule should be concerned about a stylistic issue.
If not, there should at least be an option to turn off requiring throw.

I personally favor:
myPromise.then(() => Promise.reject(new Error("bad thing")));

Over this:
myPromise.then(() => {
	throw new Error('bad thing');
});

I kind of always thought of this as a stylistic rule, but I'm fine making
it configruable!
On Sun, Nov 27, 2016 at 12:37 AM Sindre Sorhus notifications@github.com
wrote:

Using return Promise.reject() is not wrapping, but just another way to
reject the promise. I don't think this rule should be concerned about a
stylistic issue.
If not, there should at least be an option to turn off requiring throw.
I personally favor:
myPromise.then(() => Promise.reject(new Error("bad thing")));
Over this:
myPromise.then(() => {
throw new Error('bad thing');
});
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/xjamundx/eslint-plugin-promise/issues/50, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AAPBf3ZdieEdV6J-HqQKJmMTe798B-xHks5rCUE7gaJpZM4K9GE_
.

I'd be interested in fixing this. Is this how you'd like the option to look?
/*eslint promise/no-return-wrap: ["error", { allowReject: true }]*/
myPromise.then(() => {
  return Promise.reject(new Error("bad thing"))
});

Sounds good!
On Sat, Oct 7, 2017 at 8:52 AM Christopher Joslyn notifications@github.com
wrote:

I'd be interested in fixing this. Is this how you'd like the option to
look?
/eslint promise/no-return-wrap: ["error", { allowReject: true }]/myPromise.then(() => {
return Promise.reject(new Error("bad thing"))
});
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/xjamundx/eslint-plugin-promise/issues/50#issuecomment-334944961,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAPBf14VkfgTWqZhvRNmGjNvltt5ffenks5sp54xgaJpZM4K9GE_
.

authors: sindresorhus thisgeek xjamundx

repo: xjamundx/eslint-plugin-promise

license: ISC


text:
script/test.lua report conflict on testing multiple packages

描述问题
测试多个包时，比如同时测试A和B，而B依赖A的一个早期版本，test.lua会报错
期待的结果
先测试A，然后再安装A的旧版本并测试B
错误信息
error: @programdir/core/main.lua:284: @programdir/actions/require/impl/package.lua:333: package(blosc): version conflict, '1.20.1' does not satisfy '~1.5.0'!
相关环境
请提供编译和运行环境信息，下面是一些必须填写的基础信息，便于我们针对性排查问题：

xmake版本：2.3.8
xmake运行平台：all（ci中的报错）
xmake目标平台：all

其他信息
https://github.com/xq114/xmake-repo/actions

dev上改了，自己rebase下

source: gharchive/issue

repo: xmake-io/xmake-repo

license_type: permissive

license_source: github-api


text:
compile commands for headers in compile_commands.json

Is your feature request related to a problem? Please describe.
When I use clangd as a analyzer, I find that the source files are analyzed properly. But unfortunately, the header files are all reporting errors inside the header files.
I looked up the documentation related to clangd and learned that it is the lack of a header file compilation method in the compile_command that prevents clangd from analyzing it. But it's true that normal header files don't need to be compiled, only qt projects need to compile header files.So the qt header in QtCreator works fine with clangd, because QtCreater generates the compile command for its header files.
Is there any way to add a rules so that normal header files also generate a compile command, like QtCreater does for its header files?
Describe the solution you'd like
Perhaps we could add a rule that allows header files to be put into add_files, generating compile_commands, but not using the compiler to compile them.
Or maybe modify this rule: "plugin.compile_commands.autoupdate". Add a parameter to it to support generating compile_commands for header files?
Describe alternatives you've considered
No response
Additional context
No response

I've found the reason, it's because clangd in llvm version 18.1.8 doesn't support -std:c++latest yet, it has nothing to do with the compile command.
When I use c++20, clangd is able to analyze the header files properly.

repo: xmake-io/xmake


text:
change ~ use 'success' theme more widely

replaces "${bright}...ok!" with "${color.success}...ok!${clear}" widely throughout the code base

thanks

source: gharchive/pull-request

authors: rivy waruqi


text:
Builid an interface that integrates with all three of our FFIs for better testing

Most of our tests test cover internal components, while ignoring the nuances introduced by our bindings on the FFI. So we may consider a feature well tested on the inside of the lib, while our end-users experience bugs introduced by our FFI. It would be nice to build a headless client that interface with all three of our foreign function interfaces that we can test against to ensure we get consistent behavior closer to the end user.

I'm in favor of anything that reduces code-duplication across our SDKs/ffi layers
To add to this:
I think its also worth mentioning that we can probably design a crate that combines elements of each ffi crate into one. Each FFI crate, as it is, is more or less the same. As time goes on, however, it could lead to differences in behavior in each SDK. It might be better to introduce a unified public interface to libxmtp through one crate that each ffi crate uses.
Consider the Client struct in each FFI:
Napi
#[napi]
pub struct Client {
  inner_client: Arc<RustXmtpClient>,
  signature_requests: Arc<Mutex<HashMap<SignatureRequestType, SignatureRequest>>>,
  pub account_address: String,
}

wasm-bindgen
#[wasm_bindgen]
pub struct Client {
  account_address: String,
  inner_client: Arc<RustXmtpClient>,
  signature_requests: Arc<Mutex<HashMap<SignatureRequestType, SignatureRequest>>>,
}

xmtpv3
#[derive(uniffi::Object)]
pub struct FfiXmtpClient {
    inner_client: Arc<RustXmtpClient>,
    #[allow(dead_code)]
    account_address: String,
}

Functionally the same, other than some minor signature-request management that's specific to wasm and node. It seems we can combine all of this with a compile-time toggle,
i.e
#[cfg_attr(feature = "xmtpv3", derive(uniffi::Object))]
#[cfg_attr(feature = "napi", napi)]
#[cfg_attr(feature = "wasm", wasm_bindgen)]
pub struct OneClientToRuleThemAll {

}

This would significantly reduce surface area between all FFI crates, while also make testing unified. Platform-specific code can still be separated into files according to each feature, and that code should be fairly minor.
Platform specific code that comes to mind:

each platform has their own logging implementation bindings
web is single-threaded

mostly taken care of already in xmtp_mls itself

authors: codabrink insipx

repo: xmtp/libxmtp

license: MIT


text:
hcltm generate interactive combined with validate produces deprecation warnings

As title suggests, the hcltm generate interactive  command produces a spec that is using deprecated spec features that are raised when you immediately use hcltm validate on it
Not sure which is correct, generate or validate. I assume validate would be maintained which indicates that the generate feature is not being maintained
Edit: btw dude, this is awesome
I'm not seeing much diagramming like threat dragon in my future (once i figure this out more, so far I'm super impressed)

That is definitely an issue. I really liked the idea of generate interactive to try and ease use of generating at least a baseline threat model, but you're correct, it's likely to be slightly out of whack now. I'll have a look at this when I can.

repo: xntrik/hcltm


text:
🛑 Design Swan is down

In 8c25a55, Design Swan (https://www.designswan.com) was down:

HTTP code: 500
Response time: 99 ms

Resolved: Design Swan is back up in 8cf827e.

repo: xoryorz/upptime


text:
🛑 Design Swan is down

In 068cfdb, Design Swan (https://www.designswan.com) was down:

HTTP code: 500
Response time: 112 ms

Resolved: Design Swan is back up in ac36ab3 after 1 hour, 25 minutes.


text:
🛑 Design Swan is down

In 87fb0f0, Design Swan (https://www.designswan.com) was down:

HTTP code: 500
Response time: 112 ms

Resolved: Design Swan is back up in 33a2c0e after 12 minutes.


text:
🛑 Design Swan is down

In c2aa29c, Design Swan (https://www.designswan.com) was down:

HTTP code: 500
Response time: 77 ms

Resolved: Design Swan is back up in c12634a after 12 minutes.


text:
Larch controller independent of Wx GUI + _data in _larch.symtable

@newville
In view of having Larch more independent from the Wx GUI, and have the possibility to build more Jupyter friendly examples (or applications) I would propose the following actions:

[ ] create a new module larch.controller
[ ] move all the non-Wx part from larch.wxxas.xas_controller.XASController to larch.controller.LarchController
[ ] XASController will inherit from LarchController
[ ] assign _larch.symtable as model for LarchController
[ ] dedicate _larch.symtable._data as the main data container for all data groups created during a session
[ ] add in LarchController all the logic for handling data exchange from the model to the view (= GUI)

Does this sounds good to you?

@maurov
Hmm, that is an interesting idea.  I'm not opposed, but I have some questions about what LarchController should do....  like, what are its methods?
Some of the design of larch.wxxas.xas_controller.XASController is sort of accidental.  It does a few things:
a) handles merging of groups and also the mapping of "displayed group names" to "real group ids in the symbol table".   That is probably something that any interface could use...
b) abstracts "Larch Session" so that it can either be a "plain larch interpreter" or the kind-of-fancy wx Larch Buffer.
c) handles get/set/save/restore of "configuration" settings for XAS Viewer.  Many of these are not super-specific to a GUI, but give sort of default values to function call arguments.  The application of those default arguments to the actual calls is not done by the controller (but maybe it should be?)
d) handles some of the user-interaction with plotting.
Not much of it is really wx specific.  So, making a generic controller could be possible.  It's even reasonable to say that it should do more that is currently scattered throughout XAS_Viewer.   For example, "LarchController" could have methods for most of the XAFS processing methods so that one did LarchController.autobk which would use the config preferences and act on "displayed group names".
Is that what you would be looking for?

@newville
I do not have a clear design in mind yet, but I would keep a sort of MVC pattern.
As a first step, LarchController should have methods for:

easily manage the exchange of groups and function call arguments between the symbol table and the rest of the world
create command calls to the interpreter
handle "Larch Session"

I would keep the Larch functions as they are.
Would also be fine for you if we store all groups and parameters in a dedicated group of the symbol table called _data, instead of having them at the root of the symbol table?
If you are not opposed to this idea, I could start coding something and propose it via a pull request.

@maurov OK.  For "MVC",  I understand what "V" is, but am never sure of the difference between "M" and "C" unless "M" is "connection to a database server".   For sure, "real functionality" and "GUI code" should be separate, well separate-ish.  Or, some things a GUI "does" can be made into functions that can be called in other ways.
But in analogy with a database server, "Larch Session (data + functions)" could be "M", and then "C" is pretty close to trivial.

Would also be fine for you if we store all groups and parameters in a dedicated group of the symbol table called _data, instead of having them at the root of the symbol table?

Maybe.... I'm not sure what that solves.

@newville I wanted to implement a simple feature request from a user (related to the Wx GUI) and I realize that I still do not fully understand how the controller manages things between the Larch interpreter and the Wx GUI.

Some of the design of larch.wxxas.xas_controller.XASController is sort of accidental. It does a few things: a) handles merging of groups and also the mapping of "displayed group names" to "real group ids in the symbol table". That is probably something that any interface could use... b) abstracts "Larch Session" so that it can either be a "plain larch interpreter" or the kind-of-fancy wx Larch Buffer. c) handles get/set/save/restore of "configuration" settings for XAS Viewer. Many of these are not super-specific to a GUI, but give sort of default values to function call arguments. The application of those default arguments to the actual calls is not done by the controller (but maybe it should be?) d) handles some of the user-interaction with plotting.

Yes, to me this is exactly the role of a controller object and I would like to better understand the details. Please, could you comment/reply to the following points, related mainly to "a" and "b" points of your previous reply?

controller = larch.wxxas.xas_controller.XASController()

controller.symtable is the model (that is, an in memory container storing all data, metadata, configs, etc. we use a Group object, but could be anything - dictionary, database, etc.)
generally, which attribute uniquely identifies a group? __name__, groupname or filename? I think the symtable uses groupname, but sometimes other functions use filename too. If it is groupname, then a g = Group() should instantiate it (it is not the case, only g.__name__ exists)
[most important] I propose adding controller.add_group(group) method to programmatically add a new data group to the model. It is not clear to me how to do it. I think we could move XASFrame.install_group method to the controller. In fact, that method is used to add groups when opening a file, but to me it would make more sense to have it in the controller (by the way, why install_group requires both groupname and filename to identify a data group?). There is also controller.copy_group(filename) but it is not clear to me why this method uses filename instead of groupname
I do not understand the role of controller.fie_groups in controller.get_group(groupname) to get a given group from the model
I propose adding controller.get_data_groups() method to get the list of the unique identifiers of the data groups in the model. If my understanding is correct, this should simply be return list(controller.symtable._xasgroups.values())?
controller.larch is the main Larch interpreter? why its type is larch.wxlib.larchframe.LarchWxShell? I was expecting larch.interpreter.Interpreter. Well, probably in the future we will not need the interpreter anymore...

@maurov  Well, I should restate my view that MVC is one approach to UI. The separation between the 3 objects is often not completely clean.  For sure, it is good to keep "real code" out of a GUI.  Having the GUI react to input and generate (without loss of generality) some sort of dictionary or another simple mapping of "GUI Component" to "Value" is good.  That is, "View" is usually clear.

Some of the design of larch.wxxas.xas_controller.XASController is sort of accidental. It does a few things: a) handles merging of groups and also the mapping of "displayed group names" to "real group ids in the symbol table". That is probably something that any interface could use... b) abstracts "Larch Session" so that it can either be a "plain larch interpreter" or the kind-of-fancy wx Larch Buffer. c) handles get/set/save/restore of "configuration" settings for XAS Viewer. Many of these are not super-specific to a GUI, but give sort of default values to function call arguments. The application of those default arguments to the actual calls is not done by the controller (but maybe it should be?) d) handles some of the user-interaction with plotting.

Yes, to me this is exactly the role of a controller object

Well, XASController mostly is there to manage the mapping between the displayed "File Names" and "Group Name", which is the real name of the Python symbol in the symbol table.   And it holds the Larch Session.
But Python is not strictly OO, so the GUI code might be able to access the Larch interpreter or its symbol table directly.   Does doing that violate  "MVC"?  Maybe. If so, strict MVC becomes an anti-goal.

controller.symtable is the model (that is, an in memory container storing all data, metadata, configs, etc. we use a Group object, but could be anything - dictionary, database, etc.)

I would probably say that the Larch session is the Model.  But, all the data and code are in the symbol table.

generally, which attribute uniquely identifies a group? name, groupname or filename? I think the symtable uses groupname, but sometimes other functions use filename too. If it is groupname, then a g = Group() should instantiate it (it is not the case, only g.name exists)

groupname is the name of the Group object in the Larch symbol table.   filename is what is displayed as the Name in the GUI -- likely derived from the name of the original data file.  The naming conventions for groupname are strict enough (stricter than "Python symbol name", in fact matching [a-z_][a-z0-9_]*) that the flexibility of filename is important.
Each Group can have a __name__ attribute.   That's sort  of a programming convenience.
The XASController.file_groups == XASController.larch.symtable._xasgroups dict keeps the mapping between filename and groupname.

[most important] I propose adding controller.add_group(group) method to programmatically add a new data group to the model. It is not clear to me how to do it. I think we could move XASFrame.install_group method to the controller. In fact, that method is used to add groups when opening a file, but to me it would make more sense to have it in the controller (by the way, why install_group requires both groupname and filename to identify a data group?). There is also controller.copy_group(filename) but it is not clear to me why this method uses filename instead of groupname

Good point, I agree that "install_group" could be moved to the controller.   I'll do that.  I'm still in the process of re-doing data importing and working on the Energy Calibration dialog, so this is a fine time to do that.

I do not understand the role of controller.fie_groups in controller.get_group(groupname) to get a given group from the model

file_groups is the dictionary with keys of "File / Display Name" and values of groupname.

I propose adding controller.get_data_groups() method to get the list of the unique identifiers of the data groups in the model. If my understanding is correct, this should simply be return list(controller.symtable._xasgroups.values())?

Yes, that is just controller.file_groups.values().   Does it need a separate method?

controller.larch is the main Larch interpreter? why its type is larch.wxlib.larchframe.LarchWxShell? I was expecting larch.interpreter.Interpreter. Well, probably in the future we will not need the interpreter anymore...

The "LarchWxShell" is a subclass of Larch Interpreter that is the viewable / interactable "Larch Buffer".  That is some very old GUI interface and probably needs some attention.  Having that use the Jupyter tooling would be interesting and worth investigating.
I think that XAS Viewer / Larix will keep some interpreter as the base Model - the model of "GUI generates code that can be run separately or turned into a script" is a feature we want to keep.
It could happen that "Larch interpreter" gets replaced by "asteval Interpreter" (especially if Jupyter tooling is used), but that would actually be some work, as the Larch symbol table is sort of hierarchical whereas the asteval one is a flat dict.  I am totally willing to say "flat is better", but that would mean touching a lot of Larch code.  But, that might be "Larch 1.0" ;).

@newville thank you very much indeed for the detailed reply. I think I better understand now your design choices. I do not care to strictly follow the MCV paradigm, it was for me just following a scheme to understand the design. No problem with leaving it as it is now.
It would be great if you could move install_group() to controller.add_group(), - or controller.install_group() if you prefer this naming. Thanks.
I fully agree on the other points.

@newville thanks for implementing controller.install_group. Unfortunately, I still have problems using it for adding a new group not already existing in the symbol table. What about having controller.add_group(group) which adds a new group? What I would expect from this method is this:
g = Group(groupname="my_new_group_id_abc123", filename="My fancy new group this and that", energy=xarray, mu=yarray, i0=numpy_ones_like(xarray), datatype='xas')
controller.add_group(g)

by the way, is i0 attribute always required to correctly identify a "xas" datatype?

@maurov

What about having controller.add_group(group) which adds a new group? What I would expect from this method is this:

I will freely admit that the xasgui.XASFrame and xas_controller.XASController have a lot of overlap and could be better separated.  But also, MVC is not the goal.  It might be means to that goal, but it is not the goal.
xasgui.install_group does accept either a Group or the name of a group in the Larch symbol table.   xas_controller.install_group expects the name of a Group in the Larch symbol table, and doesn't check for whether the first argument is a group or the name of a group.
FWIW, currently you could do something like
controller.larch.eval("""my_new_group = group(energy=xarray, ....)""")
g = controller.symtable.get_group["my_new_group"])
g.energy = g.xdat = xarray
g.mu = g.ydat= yarray
controller.install_group("my_new_group", "My File Name")

But we could more completely make "XASController.install_group" and "XASFrame.install_group" be the same -- it was sort of ambiguous how to handle what the dialogs do to create new groups, and especially whether to process and plot the data on installation of a group.
Or we could add a separate "add_group()" method that requires the first argument to be a Group that is not already in the Larch symbol table.  The downside there is that it probably will not be well documented where that group came from.

by the way, is i0 attribute always required to correctly identify a "xas" datatype?

No, or it should not be.  If the datatype is xas, i0 is looked for.

@newville

a group. FWIW, currently you could do something like
controller.larch.eval("""my_new_group = group(energy=xarray, ....)""")
g = controller.symtable.get_group["my_new_group"])
g.energy = g.xdat = xarray
g.mu = g.ydat= yarray
controller.install_group("my_new_group", "My File Name")

Unfortunately this does not work for me g = controller.symtable.get_group("my_new_group") gives a NameError.

Or we could add a separate "add_group()" method that requires the first argument to be a Group that is not already in the Larch symbol table. The downside there is that it probably will not be well documented where that group came from.

It think it would be very beneficial to have controller.add_group(group) as unified way to add a new (not existing) group in the symbol table. This method should also check if the group already exists. To document from where the group came from, add_group could accept a journal="group created from somewhere" argument. What do you think?

by the way, is i0 attribute always required to correctly identify a "xas" datatype?

No, or it should not be. If the datatype is xas, i0 is looked for.

Ok, thus this means that when datatype="xas" is given one has to create group.i0, otherwise things may go wrong.

@maurov

Unfortunately this does not work for me g = controller.symtable.get_group("my_new_group") gives a NameError.

Hm, that should work I think.

It think it would be very beneficial to have controller.add_group(group) as unified way to add a new (not existing) group in the symbol table. This method should also check if the group already exists. To document from where the group came from, add_group could accept a journal="group created from somewhere" argument. What do you think?

How should add_group differ from install_group?    Currently (but recently, and maybe subject to change with all of this) the current dialogs mostly expect that they are "installing" named groups in the symbol table with the meaning of "install" to be "expose to the XAS Viewer File List".

Ok, thus this means that when datatype="xas" is given one has to create group.i0, otherwise things may go wrong.

I don't think so, or at least that is not the intention.  I added 'i0' recently mostly so it could be consistently / easily plotted with "mu".  None of the downstream processing will really use this.

@newville

Unfortunately this does not work for me g = controller.symtable.get_group("my_new_group") gives a NameError.

Hm, that should work I think.

Yes, I also do not understand why is not working. Here a specific example of what I am trying to do (not working yet!):
https://github.com/xraypy/xraylarch/compare/master...maurov:xraylarch:add_export_group_from_lcf

It think it would be very beneficial to have controller.add_group(group) as unified way to add a new (not existing) group in the symbol table. This method should also check if the group already exists. To document from where the group came from, add_group could accept a journal="group created from somewhere" argument. What do you think?

How should add_group differ from install_group? Currently (but recently, and maybe subject to change with all of this) the current dialogs mostly expect that they are "installing" named groups in the symbol table with the meaning of "install" to be "expose to the XAS Viewer File List".

Well, to me controller.add_group(group, journal="description") and controller.install_group(group, journal="description") should do the same thing, that is:

add (if not existing) or update (if existing) the given group to the symbol table (the model)
insert an entry in the journal
make XAS Viewer File List (the viewer) aware there is a new/updated group in the model

I am sorry to come back to the MVC story, but I am not very familiar with GUI development and I find easier reasoning in a MVC way.

Ok, thus this means that when datatype="xas" is given one has to create group.i0, otherwise things may go wrong.

I don't think so, or at least that is not the intention. I added 'i0' recently mostly so it could be consistently / easily plotted with "mu". None of the downstream processing will really use this.

I think there are some places in the code where "datatype = 'xas' requires i0 attribute". It is good to know this is not the intention and I will fix it if I will come across it.

Yes, I also do not understand why is not working. Here a specific example of what I am trying to do (not working yet!):

https://github.com/xraypy/xraylarch/compare/master...maurov:xraylarch:add_export_group_from_lcf

What is the error message ? Like, what line is failing?   One thing that can be very useful for debugging here is to look at that command that got executed in the Larch buffer.  There, you can check for errors running that command and really see what the outputs are (including, say the group name).

Well, to me controller.add_group(group, journal="description") and controller.install_group(group, journal="description") should do the same thing, that is:

If they do the same thing, why do we need both methods?

I think there are some places in the code where "datatype = 'xas' requires i0 attribute".

Hm, where is that?  I would say it is better to have 'i0', but should not be required.

authors: maurov newville

repo: xraypy/xraylarch


text:
🛑 Xstatic is down

In 339e1cd, Xstatic (https://www.xstatic.io) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Xstatic is back up in 1a7c8c3 after 16 minutes.

repo: xstaticwebdev/upptime


text:
fix array init

This replaces #60, since I cannot push the extra work onto @rdemaria's fork.
Address https://github.com/xsuite/xsuite/issues/177
I added some more tests, and changed an error message to be a bit clearer. The logic is the same as #60.

@giadarol I think we can merge this

repo: xsuite/xobjects


text:
novikov_t/task02

пример вызова из командной строки:
python tree.py ../ -L 3

Исправил:

разбил исходную функцию generate_tree() на generate_tree() и print_tree();
воспользовался для получения индекса элемента функцией enumerate();
исправил ошибку с некорректным отображением структуры каталогов;
заменил символы, используемые для отображения структуры на те, что используются в команде tree;
по возможности использовал тернарный оператор вместо if: ... else: ... ;


text:
求详细教程啊～

有点小白 选中一个文件夹 里面有.png .txt .lua  文件夹选Folder 然后保存规则 打包windows 打不出ab --顺便说下我是osx

unity针对文本只支持固定的后缀txt或xml，你修改后缀就可以了

luaframework有打包lua成ab,我打算参考下,它是遍历文件夹打包进去的

项目中有详细的例子，Unity打开后菜单里也有详细的说明

authors: ZonSamuel xtqqksszml zhulangren

repo: xtqqksszml/zcode-AssetBundlePacker

license_source: bigquery


text:
The problem of saving pth file(Try to train a custom new data model)

First of all, thank you for your work
I try to use u2net_train.py in this project for training. I put a picture in the train_data folder im_aug and gt_aug for simple test training, but the final saved ".pth" file is 168m, which looks like it contains the pre training u2net.pth. How can I modify it so that I can save the new data model without  pre training u2net.pth's data
ps: I didn't change the code in u2net_train.py, And I don't see the code in this file to load the pre training u2net.pth
look forward to your reply, thx

Sorry, I am not quite sure if I understand your question. Even with one
image, 168 M .pth (vary a little bit in different OS) should be correct and
the model size won't change w.r.t the number of the input image.
On Wed, Jun 16, 2021 at 8:35 PM GINKOX @.***> wrote:

First of all, thank you for your work
I try to use u2net_train.py in this project for training. I put a picture
in the train_data folder im_aug and gt_aug for simple test training, but
the final saved ".pth" file is 168m, which looks like it contains the pre
training u2net.pth. How can I modify it so that I can save the new data
model without pre training u2net.pth's data
ps: I didn't change the code in u2net_train.py, And I don't see the code
in this file to load the pre training u2net.pth
look forward to your reply, thx
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/xuebinqin/U-2-Net/issues/219, or unsubscribe
https://github.com/notifications/unsubscribe-auth/ADSGORJZGTWXQG6NYJMEXK3TTDHENANCNFSM46Z2KU3A
.

--
Xuebin Qin
PhD
Department of Computing Science
University of Alberta, Edmonton, AB, Canada
Homepage:https://webdocs.cs.ualberta.ca/~xuebin/

Sorry, I forgot to say that I use the windows platform. I have two doubts. Please take a look at my screenshot. In the red box is the pre training model file downloaded from Google driver. The others are obtained by running u2net_train.py training. I have two doubts:

Why do I get such a big data model by training only one picture

The data file from the training is just a little bit larger than the pre training model file, so I wonder if the pre training model data is loaded in the u2net_train.py code.

I hope my question has been described clearly
Thanks again

Sorry, I am not quite sure if I understand your question. Even with one image, 168 M .pth (vary a little bit in different OS) should be correct and the model size won't change w.r.t the number of the input image.
…
On Wed, Jun 16, 2021 at 8:35 PM GINKOX @.***> wrote: First of all, thank you for your work I try to use u2net_train.py in this project for training. I put a picture in the train_data folder im_aug and gt_aug for simple test training, but the final saved ".pth" file is 168m, which looks like it contains the pre training u2net.pth. How can I modify it so that I can save the new data model without pre training u2net.pth's data ps: I didn't change the code in u2net_train.py, And I don't see the code in this file to load the pre training u2net.pth look forward to your reply, thx — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <#219>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADSGORJZGTWXQG6NYJMEXK3TTDHENANCNFSM46Z2KU3A .
-- Xuebin Qin PhD Department of Computing Science University of Alberta, Edmonton, AB, Canada Homepage:https://webdocs.cs.ualberta.ca/~xuebin/

Sorry, I forgot to say that I use the windows platform. I have two doubts. Please take a look at my screenshot. In the red box is the pre training model file downloaded from Google driver. The others are obtained by running u2net_train.py training. I have two doubts:

Why do I get such a big data model by training only one picture

The data file from the training is just a little bit larger than the pre training model file, so I wonder if the pre training model data is loaded in the u2net_train.py code.

I hope my question has been described clearly
Thanks again

Why do I get such a big data model by training only one picture
RE: THe model size is currently fixed regardless the number of the training
images. It is not a NAS model.

The data file from the training is just a little bit larger than the pre
training model file, so I wonder if the pre training model data is loaded
in the u2net_train.py code.
RE: No. The .pth model is used for the testing code. If you want to
finetuning the model based on your data, you can manually restore it in the
training code.

On Thu, Jun 17, 2021 at 10:16 AM GINKOX @.***> wrote:

Sorry, I am not quite sure if I understand your question. Even with one
image, 168 M .pth (vary a little bit in different OS) should be correct and
the model size won't change w.r.t the number of the input image.
… <#m_5769413758893011590_>
On Wed, Jun 16, 2021 at 8:35 PM GINKOX @.***> wrote: First of all,
thank you for your work I try to use u2net_train.py in this project for
training. I put a picture in the train_data folder im_aug and gt_aug for
simple test training, but the final saved ".pth" file is 168m, which looks
like it contains the pre training u2net.pth. How can I modify it so that I
can save the new data model without pre training u2net.pth's data ps: I
didn't change the code in u2net_train.py, And I don't see the code in this
file to load the pre training u2net.pth look forward to your reply, thx —
You are receiving this because you are subscribed to this thread. Reply to
this email directly, view it on GitHub <#219
https://github.com/xuebinqin/U-2-Net/issues/219>, or unsubscribe
https://github.com/notifications/unsubscribe-auth/ADSGORJZGTWXQG6NYJMEXK3TTDHENANCNFSM46Z2KU3A
.
-- Xuebin Qin PhD Department of Computing Science University of Alberta,
Edmonton, AB, Canada Homepage:https://webdocs.cs.ualberta.ca/~xuebin/
[image: 20210616102626]
https://user-images.githubusercontent.com/86012517/122341850-85a1dc00-cf76-11eb-9b80-c6003c5b3c55.png
Sorry, I forgot to say that I use the windows platform. I have two doubts.
Please take a look at my screenshot. In the red box is the pre training
model file downloaded from Google driver. The others are obtained by
running u2net_train.py training. I have two doubts:

Why do I get such a big data model by training only one picture
2.
The data file from the training is just a little bit larger than the
pre training model file, so I wonder if the pre training model data is
loaded in the u2net_train.py code.
I hope my question has been described clearly
Thanks again
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/xuebinqin/U-2-Net/issues/219#issuecomment-862959472,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ADSGORLJSNI3246YDTT6GBTTTGHLRANCNFSM46Z2KU3A
.

--
Xuebin Qin
PhD
Department of Computing Science
University of Alberta, Edmonton, AB, Canada
Homepage:https://webdocs.cs.ualberta.ca/~xuebin/

authors: GINKOX xuebinqin


text:
为什么一定要安装证书

你的建议
之所以发出疑问是因为也安装过其他bundle的应用，比如devtoys和nanazip之类，但是当时并没有被要求安装证书，因此这里非常好奇为什么一定要安装证书才能安装应用（显然M$做了一些验证，但是为什么本应用不行）

如果你看不懂以下内容，请安装商店版。

然后查阅对应的两个示例项目的仓库，发现他们在很早以前也都是需要安装.cer的证书文件才行的：

https://github.com/veler/DevToys/issues/192 （但随着 https://github.com/veler/DevToys/commit/c38d9a8591a5ee216893a176728441839d094f47 后引入Chocolatey包管理器安装方式，似乎不再必须手动安证书了）
https://github.com/M2Team/NanaZip/issues/11

因此是否存在一种方式能让本项目直接被安装不需要先信任证书？（主要是我对M$生态了解不深，所以可能这个问题会显得很奇怪）

我害怕安装证书，可以打上“开摆”了！

证书用来干什么
这里的证书是用来给软件签名的，让系统能够确定发布者是谁。
为什么要安装证书
代码签名证书的原理和SSL证书类似，通过第三方可信机构的根证书确认签名的有效性，系统规定了必须是被信任的证书签名过的软件才能安装（仅msix类型）。
那么就有两种方法，一种是使用第三方机构下发的证书签名，每年花费几千元自己购买证书，或者上架商店后由微软签名。
另一种是自己创建一个签名证书，但是这个证书是不被系统信任的，需要手动安装证书后才能被系统信任。
DeyToys & NanaZip ...
这两个软件都是先在商店中更新后，再把从商店下载的安装包上传到GitHub，安装包已经被微软签名过了。
本项目先在GitHub上发布更新，不能使用这种办法。
不使用证书
可以，但是很麻烦，而且很多功能会无法使用，参考未打包的应用。

这不就是拿来卖钱的吗？还什么信任，flutter
推出msix 打包也就是这么个套路吧。。。
不花钱，用户就得麻烦的自己安装证书，太离谱了。。。

authors: LaoshuBaby Scighost jinfagang

repo: xunkong/xunkong


text:
UE 5.4 and UE5.3 import PY showing plane. material problem ?

I have install the last Xverse for UE5.3.2 and UE5.4.
I using the demo_fox_ga.ply
FOR BOTH ue ENGINE,
when I import the ply,the first time I could see the fox but when I've drop the blueprint in level, the render is showing only plane.

even if I'm only using lumen,
I've try to disable raytracing r.RayTracing.ForceAllRayTracingEffects 0
BUT CHANGING NOTHING

in material M_GS_unlit
there is  errors
[SM6] /Engine/Generated/Material.ush:3461:30: warning: implicit truncation of vector type [-Wconversion]
PixelMaterialInputs.Opacity = Local13;
^
[SM6] error: validation errors
[SM6] zzz.dxil:4463:5: error: Opcode Discard not valid in shader model lib_6_6(closesthit).
[SM6] note: at 'call void @dx.op.discard(i32 82, i1 true)' in block '#26' of function '?MaterialCHS@@YAXUFPackedMaterialClosestHitPayload@@UFRayTracingIntersectionAttributes@@@Z'.
[SM6] Validation failed.
[SM6] D3DCompileToDxil failed. Error code: Unspecified error (0x80004005).

when importing PLY the outpulog
LogTemp: Warning: create new guassian: demo_fox_gs
LogXverseGS: Warning: generate spatial result size 4076
LogXverseGS: Warning: GENERATE LOD [1] point num is 104122
LogXverseGS: Warning: generate spatial result size 2029
LogXverseGS: Warning: GENERATE LOD [2] point num is 52549
LogXverseGS: Warning: generate spatial result size 987
LogXverseGS: Warning: GENERATE LOD [3] point num is 26532
LogXverseGS: Warning: generate spatial result size 483
LogXverseGS: Warning: GENERATE LOD [4] point num is 13342
LogXverseGS: Warning: BuildNiagaraBlocks NUM 1
LogTemp: Warning: workspace_name demo_fox_gs
LogXverseGS: Warning: CreateVolumeComponent
LogXverseGS: Warning: CreateVolumeComponent
LogFileHelpers: InternalPromptForCheckoutAndSave started...
Cmd: OBJ SAVEPACKAGE PACKAGE="/Game/XV3dGS/demo_fox_gs/demo_fox_gs1_buffers" FILE="D:/UnrealWS_server/Goliath/Goliath/Content/XV3dGS/demo_fox_gs/demo_fox_gs1_buffers.uasset" SILENT=true
LogXverseGS: Warning: UGSRuntimeBuffer::Serialize START
LogXverseGS: Warning: UGSRuntimeBuffer::Serialize END
LogXverseGS: Warning: UGSRuntimeBuffer::Serialize START
LogXverseGS: Warning: UGSRuntimeBuffer::Serialize END
LogSavePackage: Moving output files for package: /Game/XV3dGS/demo_fox_gs/demo_fox_gs1_buffers
LogSavePackage: Moving 'D:/UnrealWS_server/Goliath/Goliath/Saved/demo_fox_gs1_buffersEF51F38947A794CD278AE8995672CDD2.tmp' to 'D:/UnrealWS_server/Goliath/Goliath/Content/XV3dGS/demo_fox_gs/demo_fox_gs1_buffers.uasset'
LogFileHelpers: InternalPromptForCheckoutAndSave took 273 ms (total: 853 ms)
LogXverseGS: Warning: CreateVolumeComponent
LogXverseGS: Warning: CreateVolumeComponent
LogUObjectHash: Compacting FUObjectHashTables data took   1.67ms
LogFileHelpers: InternalPromptForCheckoutAndSave started...
Cmd: OBJ SAVEPACKAGE PACKAGE="/Game/XV3dGS/demo_fox_gs/demo_fox_gs1" FILE="D:/UnrealWS_server/Goliath/Goliath/Content/XV3dGS/demo_fox_gs/demo_fox_gs1.uasset" SILENT=true****

I have the same issue

same here

got a solution that worked for me:

r.RayTracing 0
Disable Hardware raytracing in the Project Settings

I've try turn off raytracine but have : Error: r.RayTracing is read only!
I've turn off "use Hardware Ray T. when available"
but nothing change.
my solution for now is to use LumaAi plug, it's working fine for UE 5.3
I think with xverse the problem is coming from material. The one from LumaAi, have a different code

When i click "hidden in game" its showing colors and not gray planes. Any reason why? I also tried to diable Raytracing without any result

got a solution that worked for me:

r.RayTracing 0
Disable Hardware raytracing in the Project Settings

I got the same problem, neither of those two ideas worked out. Any suggestions anyone?

just go through your project settings and turn off ALL Raytracing features. (Search for raytracing and uncheck). Worked for me.

authors: PerOveLo amFroebus b-summer michaelbecker-d w1xmovies


text:
diffbar: width of bar will be excatly same as specified

❯ chunkdup chunksums chunksums --nocolor
 84.93%  ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒█▀▀▀▀  ./new (25.3KB)  ./gzs (20.3KB)
 43.47%  ▀▀▒▀▀▒▒▀▀▒▒▀▀▒▒█▀▀▒▒  ./files (43.2KB)  ./gzs (20.3KB)
 37.54%  ▄▄▒▄▄▒▒▄▄▒▒▄▄▒▒▄▄▒▀▀  ./new (25.3KB)  ./files (43.2KB)
 34.93%  ▒▒▒▒▒▒▒█████████████  ./dist/chunkdup-0.2.0-py3-none-any.whl (4.07KB)  ./dist/chunkdup-0.1.2-py3-none-any.whl (4.07KB)
 27.66%  ▒▒▒▒▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄  ./dist/chunkdup-0.1.2.tar.gz (3.64KB)  ./gzs (20.3KB)
 25.92%  █▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▒▒▒▒  ./dist/chunkdup-0.2.3.tar.gz (4.32KB)  ./gzs (20.3KB)
 23.60%  █▄▄▄▄▄▄▄▄▄▄▄▒▒▒█▄▄▄▄  ./dist/chunkdup-0.2.2.tar.gz (4.51KB)  ./gzs (20.3KB)
 22.90%  ▒▒▒▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀  ./new (25.3KB)  ./dist/chunkdup-0.1.2.tar.gz (3.64KB)
 21.45%  █▄▄▄▄▄▄▄▒▒▒▄▄▄▄▄▄▄▄▄  ./dist/chunkdup-0.2.1.tar.gz (4.27KB)  ./gzs (20.3KB)
 21.44%  ▄▄▄▄▒▒▒▄▄▄▄▄▄▄▄▄▄▄▄▄  ./dist/chunkdup-0.2.0.tar.gz (3.63KB)  ./gzs (20.3KB)
 19.65%  ▀▀▀▀▀▀▀▀▀▀▒▒▒▀▀▀▀▀▀▀  ./new (25.3KB)  ./dist/chunkdup-0.2.2.tar.gz (4.51KB)

Codecov Report

Merging #26 (9c768aa) into main (1e73e5e) will decrease coverage by 0.19%.
The diff coverage is 97.91%.

@@            Coverage Diff             @@
##             main      #26      +/-   ##
==========================================
- Coverage   99.42%   99.22%   -0.20%
==========================================
  Files           7        7
  Lines         345      387      +42
==========================================
+ Hits          343      384      +41
- Misses          2        3       +1

Impacted Files
Coverage Δ

chunkdup/chunkdiff.py
100.00% <ø> (ø)

chunkdup/chunkdup.py
100.00% <ø> (ø)

chunkdup/differ.py
97.47% <96.87%> (-0.38%)
:arrow_down:

chunkdup/utils.py
100.00% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

authors: codecov-commenter xyb

repo: xyb/chunkdup


text:
Drag selection is dropped when mouse is outside the pane or when mouse encounters outside elements

Describe the Bug
When using drag select, selection is drag selection is immediately dropped when mouse is outside the pane or when mouse encounters outside elements, even when mouse button has not been released. This makes drag selection unusable if I want to place something in the middle of the pane.
Your Example Website or App
https://codesandbox.io/p/sandbox/suspicious-pond-cxypq3?file=%2FApp.js%3A76%2C34
Steps to Reproduce the Bug or Issue

Start drag selection
Drag mouse outside the pane or to "Floating bar" div (see codesandbox above)

Expected behavior
Drag selection persists even when mouse is outside the pane or when mouse encounters outside elements
Screenshots or Videos
https://github.com/xyflow/xyflow/assets/139328005/b853e09d-5407-4466-89fb-4b8dbfa84d6f
Platform

OS: macOS
Browser: Chrome
Version: 123.0.2420.97

Additional context
No response

This problem originates from Pane component:
<div
      className={cc(['react-flow__pane', { draggable: panOnDrag, dragging, selection: isSelecting }])}
      onClick={hasActiveSelection ? undefined : wrapHandler(onClick, container)}
      onContextMenu={wrapHandler(onContextMenu, container)}
      onWheel={wrapHandler(onWheel, container)}
      onMouseEnter={hasActiveSelection ? undefined : onPaneMouseEnter}
      onMouseDown={hasActiveSelection ? onMouseDown : undefined}
      onMouseMove={hasActiveSelection ? onMouseMove : onPaneMouseMove}
      onMouseUp={hasActiveSelection ? onMouseUp : undefined}
      onMouseLeave={hasActiveSelection ? onMouseLeave : onPaneMouseLeave}
      ref={container}
      style={containerStyle}
    >
      {children}
      <UserSelection />
    </div>

Once the mouse exits the pane, the onMouseLeave event triggers, ending the selection process. Is there any rationale for not subscribing to the global 'onMouseMove' and 'onMouseUp' events? Additionally, we could consider temporarily disabling text selection globally during the selection process. What do you think?

I can't think of a reason for not subscribing to the global 'onMouseMove' and 'onMouseUp' events. And yes, I would prefer that text selection is disabled globally during selection.

This has been fixed in v12 🎉

repo: xyflow/xyflow


text:
🛑 Egyla register football is down

In 12124e7, Egyla register football ($EGYLA_REGISTER_FOOTBALL) was down:

HTTP code: 404
Response time: 183 ms

Resolved: Egyla register football is back up in 5d90c5e after 19 minutes.


text:
Работа prizebot в космосе

Что с твоей телегой?

Вся информация есть в био :)

На крайний vk.com/y9san9


text:
Upgraded to Spark 2.0. Contains  breaking changes - not backwards…

… compatible.

Thanks for your contribution. I have a few comments/questions.

Spark 2.0 is still in "preview". Can we defer this PR until it is officially released?

What do you mean by "backward compatibility to Spark 1.X", your pom.xml specifies Spark 2.0, so it will be built with Spark 2.0. Do you mean I can take the compiled jar file and launch it with Spark 1.6.1, which is the latest release?

Why do you need a new Logger? I notice you copy it from org.apache.spark.internal. Does the existing Logger in CaffeOnSpark not meet your needs?

Superseded by  https://github.com/yahoo/CaffeOnSpark/pull/79

@junshi15
I have built a completely new PR #79 that makes the whole process simpler.
https://github.com/yahoo/CaffeOnSpark/pull/79
To answer your questions:

My team is building only on top of Spark 2.0 . At the very least we need this presently.  It is my intention to help out the overall project .

My original PR recommended  to maintain a separate 2.0-only branch.   @mriduljain  requested to make it backwards compatible on same branch : so the new PR addresses this.

New PR takes care of this.

The Logger is required because of one of CaffeOnSpark classes improperly depends on internal Spark Logging class - which is noted  in 1.x to be deprecated for external use and in fact is private in 2.X.  Take a look at  LmdbRDD  "with Logging".

This looks fine. I will test out locally soon and then we should be good. Meanwhile you should be able to move ahead anyway.

authors: javadba junshi15 mriduljain

repo: yahoo/CaffeOnSpark


text:
Got 500 error from Safary Development tool, but nothing on laravel storage/log nor Debuggar plugin

Summary of problem or feature request
Hello, I have a problem using datatables, The safari developer tool report 500 error on ajax call to get datatables info, but nothing is show in Debuggar nor Storage/log of laravel it only show White Page with no error.
I scope down and find out that the problem in my Eloquent model relation ship
1 PurchaingOrder Eloquent model -> have many InvoiceProducts
2 InvoiceProduct Eloquent model -> belong to one PurchasingOrder with purchasing_order_id as key
When I remove "invoice_products" from protected $with array, as follow, the bug is gone but I still don't know how to fix this please help :(
//Json come with product_unit and supplier that associated with prdocut
//protected $with = ['invoice_products', 'customer', 'currency', 'company'];
protected $with = ['customer', 'currency', 'company'];

Code snippet of problem
The problem code with fixed with the last line ( the problem is second line)
    //Json come with product_unit and supplier that associated with prdocut
    //protected $with = ['invoice_products', 'customer', 'currency', 'company'];
    protected $with = ['customer', 'currency', 'company'];

PurchasingOrder Eloquent model
class PurchasingOrder extends Model
{
	protected $table = 'purchasing_orders';
    protected $fillable = [
        'po_number', 'po_date',
        'invoice_reference', 'customer_id', 'customer_po_number', 'agent',
        'estimate_shipping_date', 'estimate_arrival_date', 'estimate_loading_date',
        'ship_to','to_user_name',
        'term', 'po_remark', 'worksheet_remark',
        'company_id','currency_id',
        'total_amount', 'total_quantity','total_net_weight','total_gross_weight','total_packed_cu_metric','total_pallets',
    ];

    //Json come with product_unit and supplier that associated with prdocut
    //protected $with = ['invoice_products', 'customer', 'currency', 'company'];
    protected $with = ['customer', 'currency', 'company'];

     //One purchasing order has many invoice_product
    public function invoice_products()
    {
        return $this->hasMany('App\InvoiceProduct');
    }

     //One invoice has only one customer
	public function customer()
	{
	    return $this->belongsTo('App\Customer', 'customer_id');
	}
    //One invoice has only one currency
	public function currency()
	{
	    return $this->belongsTo('App\Currency', 'currency_id');
	}

     //One invoice has only one company
	public function company()
	{
	    return $this->belongsTo('App\Company', 'company_id');
	}
}

InvoiceProduct Eloquent Model
class InvoiceProduct extends Model
{
	protected $table = 'invoice_products';
    protected $fillable = [
        'product_id', 'customer_product_id','name', 'brand', 'packing',
        'gross_weight', 'net_weight','net_weight_packing',
        'product_unit_id', 'packed_cu_metric',
        'quantity','price','amount','pallets',
        'invoice_id', 'purchasing_order_id','container_id',
    ];

    //Json come with InvocieProduct add PurchasingOrder
    protected $with = ['purchasing_order', 'product', 'customer_product', 'container'];

    public function purchasing_order()
    {
        return $this->belongsTo('App\PurchasingOrder', 'purchasing_order_id');
    }

    public function container()
    {
        return $this->belongsTo('App\Container');
    }
    public function product()
    {
        return $this->belongsTo('App\Product', 'product_id');
    }
    public function customer_product()
    {
        return $this->belongsTo('App\CustomerProduct', 'customer_product_id');
    }

}

My route
Route::get('/purchasing_orders/getdatatablesdata', 'PurchasingOrderController@getDatatablesData')->name('purchasing_orders.getdatatablesdata');
//For purchasing_orders/manage_products.blade.php
Route::get('/purchasing_orders/getpurchasingorder/{id}', 'PurchasingOrderController@getPurchasingOrder')->name('purchasing_orders.getpurchasingorder');
Route::get('/purchasing_orders/manage_products/{id}', 'PurchasingOrderController@getManageProductsPage')->name('purchasing_orders.getmanageproductspage');
Route::get('/purchasing_orders/getPurchasingOrderProductsDatatablesData/{id}', 'PurchasingOrderController@getPurchasingOrderProductsDatatablesData')->name('purchasing_orders.getPurchasingOrderProductsDatatablesData');
Route::get('/purchasing_orders/addproduct/{id}/{producct_id}', 'PurchasingOrderController@addProduct')->name('purchasing_orders.addProduct');
//Main for CRUD
Route::resource('/purchasing_orders', 'PurchasingOrderController');

My Return function datable
    public function getPurchasingOrderProductsDatatablesData(Request $request, $id)
    {
        return Datatables::of(InvoiceProduct::where('purchasing_order_id', 1)->get())->make(true);
    }

    public function getDatatablesData()
    {
        return Datatables::of(PurchasingOrder::query()->get())->make(true);
    }

System details

Operating System: Mac OS X with Homestead
PHP Version 7.1
Laravel Version 5.4
Laravel-Datatables Version 7.5

This might be related to max url length? Can you try using POST on dataTables instead of GET?

Also, you may wan't to remove get() on your query as it will use collection.
return Datatables::of(PurchasingOrder::query())->make(true);

Thank you for your reply, I will try as you suggested :)

Max url length issue mostly occurs on IE. If you plan on supporting IE, then I suggest you use POST or you can follow the trick I blogged on this post to shorten dataTables url.

authors: psutinrerk yajra

repo: yajra/laravel-datatables

license: mit


text:
Update main.register.md

Einfache Lösung für folgendes Issue:
https://github.com/yakamara/redaxo_ycom/issues/209
Komplexere Lösung wäre, das Feld nicht als Hidden-Feld zu übergeben, sondern eine Checkbox mit Validierung, ob der User zugestimmt hat.
Ich denke für die Basis-Demo reicht es aber in der Hidden-Variante, ggf. kann man im Text ja noch ein Wort dazu verlieren...

Sollte das nicht wirklich lieber eine checkbox sein, statt einfach davon auszugehen, dass der Nutzer eingewilligt hat?

Ich denke auch .. lieber als checkbox inkl. Überprüfung ob die auch angeklickt ist

authors: alexplusde dergel dpf-dd


text:
Löschen von Sprache macht Konfiguration nicht mehr aufrufbar

Wenn eine Sprache gelöscht wird, die in einer Domainkonfiguration gespeichert ist, führt ein erneutes Aufrufen der der Konfiguration zu einem fatal error.

Duplicate of #106

authors: TobiasKrais gharlan


text:
bring back Noto font

partialy reverts: 6245097febf847cd9d027c04df5000de3ae3736b
works in linux

on osx i don't see any difference

i merge this and hope for the best

authors: averissimo davibe

repo: yakyak/yakyak


text:
Feat/detail

Closes  #16 #34
Description

Add a brief description

Current behavior (updates)

Please describe the current behavior that you are modifying

New behavior

Please describe the behavior or changes this PR adds

Is this a breaking change (Yes/No):

Additional Information

@illionillion
themeとconfigを渡すのはまだちょっとかかりそうですかね？

@illionillion themeとconfigを渡すのはまだちょっとかかりそうですかね？

まだかかりそうです…。

@illionillion
大丈夫そうなら一度マージしたいです

@illionillion 大丈夫そうなら一度マージしたいです

そうですね、一旦マージします〜 @nakayan5

repo: yamada-ui/yamada-components


text:
refactor: move styles to theme for form autocomplete

Closes https://github.com/yamada-ui/yamada-ui/issues/3876
Description

Current behavior (updates)

New behavior

Is this a breaking change (Yes/No):

Additional Information
Autocomplete refers to the style of the select.
packages/react/src/theme/components/autocomplete.ts
import type { ComponentMultiStyle } from "../../core"
import { mergeMultiStyle } from "../../core"
import { Select } from "./select"

export const Autocomplete: ComponentMultiStyle<"Autocomplete"> =
  mergeMultiStyle(Select)()

@chida09 @hirotomoyamada
Thanks!!
I don't think the PR fix itself is a problem, but the Autocomplete width does not seem to spread to the full width in v2.0.

v1.7

v2.0

I confirmed that the style of styles.container applied to the class name ui-autocomplete has been changed as follows:
//  v1.7
container: {
  h: "fit-content",
  w: "100%",
},

//  v2.0
container: {
  display: "flex"
  h: "fit-content"
  position: "relative"
  w: "100%"
  width: "100%"
}

Can I approve this PR since it has been happening before I made this correction?Also, do you want to give this bug to Issue?

repo: yamada-ui/yamada-ui


text:
Cannot contact Arsenic as stated in Wiki

The Wiki says that I should contact Arsenic if I cannot get log files, but they disabled direct messages without becoming friends. Maybe the Wiki should be updated, because I can understand why they would not want to be contacted all the time, or they should allow messages from the CP2077 Mod Discord...

Github is not for support, ask people on discord

authors: minecrawler yamashi

repo: yamashi/CyberEngineTweaks


text:
기획 - 전시이력 프로세스 정립

개요
https://www.facebook.com/groups/231807230600705/permalink/241675059613922/

https://www.facebook.com/groups/231807230600705/249415445506550/

repo: yamujine/artmatch


text:
장소 - 내 작품 전시지원하기 - Filter "thumb_url" is already registered.

개요
장소 상세에서 내 작품 전시지원하기 누르니 오류 발생

http://localhost:8050/places/apply/80
An uncaught Exception was encountered

Type: LogicException

Message: Filter "thumb_url" is already registered.

Filename: /Users/junho85/project/artmatch/vendor/twig/twig/lib/Twig/Extension/Staging.php

Line Number: 44

Backtrace:

File: /Users/junho85/project/artmatch/vendor/twig/twig/lib/Twig/ExtensionSet.php
Line: 222
Function: addFilter

File: /Users/junho85/project/artmatch/vendor/twig/twig/lib/Twig/Environment.php
Line: 727
Function: addFilter

File: /Users/junho85/project/artmatch/application/libraries/Applylib.php
Line: 12
Function: addFilter

File: /Users/junho85/project/artmatch/application/controllers/Places.php
Line: 245
Function: library

File: /Users/junho85/project/artmatch/index.php
Line: 329
Function: require_once

My_Controller.php 에서 이미
        $twig = $this->twig->getTwig();
        $twig->addFilter(new Twig_SimpleFilter('thumb_url', 'UrlGenerator::generate_thumb_url'));
        $twig->addFilter(new Twig_SimpleFilter('image_url', 'UrlGenerator::generate_original_image_url'));
        $twig->addFilter(new Twig_SimpleFilter('static_url', 'UrlGenerator::generate_static_url'));

등록 해서
Applylib.php
에서 등록 하려고 하면 오류가 발생함.
My_Controller.php 에서 등록 했으니 Applylib.php 에서는 등록하지 않아도 될 것으로 보임.


text:
Include capabilities to bump patch, minor and major for version.

Hello @yanamura, is the ability to automatically bump patch, minor and major for the version something you are interested in having in this action?

@murilodag Thanks for your good question!
Currently this action is just using agvtool to bump version and build number.
agvtool has ability to automatically update build number, but not version. To add ability to automatically bump version, we need to implement that feature by ourselves.
I think it's a good idea to add ability to bump version automatically.

I will love the see this too!

authors: isisnaomi murilodag yanamura

repo: yanamura/ios-bump-version


text:
Feature Request: Halving ETA

Hi! I'm a user of your widget, really cool man!
I saw this recently https://halving.live/ and I thought it would be cool to have a counter to the next halving as a widget.
Inspecting the source there is JS code for calculation from mempool.space data. I wish I could help you but I don't know Swift, anyway thanks

Hey Walter, thanks for this idea! I'll think about it and investigate the possibilities for a countdown widget when I have a moment. If I'm able to come up with a meaningful solution, I'll post some screenshots.

WIP. Ideas?

After feedback from my colleagues, I decided to unify the layout with existing widgets. This is probably the final version:

Not sure about the colour, though. Which one do you find better? I didn't want to use orange (reserved for block height in the Node Status widget) or purple (reserved for block height in the Mempool Status widget). Green seems inappropriate as it implies growth while red implies decrease.

Fixed in version 1.6.

Hey great! well done, yellow in my opinion is perfect as a color! Tipped you some sats :)

authors: waltermaffy yanascz

repo: yanascz/bitcoin-widgets-ios


text:
Loss goes to nan for more than 10 categorial variables

I am having an issue where TabDDPM does really well when the total number of variables are < 10-15, but for modest to high numbers of binary categorical variables (even over 100, although my goal is 1000s), the loss (both mloss and gloss) quickly go to nan. This doesn't seem to be an issue with my dataset - I get the same behavior when I make a synthetic dataset of gaussian continuous variables and Bernoulli(p=.5) binary variables. Any help would be appreciated.

I met the same issues

Same issue as well...

authors: Yunbo-max kara-liu vuhoangminh

repo: yandex-research/tab-ddpm


text:
weird memory usage/out of memory when inserting

Hi,
Recent, we upgrade our clickhouse from 18.x.x to 19.5.x (may be there are some deferences but it is no problem after double check.) The memory consumption is very weird compared to old version. The following pictures show that the new version of clickhouse did not release the memory after inserting, and it ran out of memory eventually.

old version of inserting

new version of inserting
After checking code for two days, we found

The memory usage behavior is same if we did not renameAndAdd parts after inserting
the memory will decrease after merge
the memory usage behaves as normal after I enable ASan

Do you any suggestions/ides for this?

Could you check whether this happens on the latest stable release v19.13.2.19-stable? If it does, it would be helpful to have the table definition (show create table) and some sample data, so that we can try to reproduce this locally.

The memory usage became normal after I used FreeThreadPool in AsynchronousBlockInputStream instead of GlobalThreadPool. I guess this kind of thread pool may hold memory in an unexpected way.

@fancyqlx you mean you changed that:
https://github.com/ClickHouse/ClickHouse/blob/2ad4df1d6aa2fbd7d3a030b0e9e4fff9dde8600e/dbms/src/DataStreams/AsynchronousBlockInputStream.h#L99
?

@fancyqlx, do you have any further questions?

@fancyqlx

The memory usage became normal after I used FreeThreadPool in AsynchronousBlockInputStream instead of GlobalThreadPool. I guess this kind of thread pool may hold memory in an unexpected way.

Yes, it may happen due to combination of usage of ThreadPool and specific behaviour of jemalloc.
If the thread does not exit and continues to live, the thread local cache of freed memory is not release to OS by jemalloc.
But this behaviour is actually normal. Users may experience slightly higher memory usage but the memory usage is still bounded. And it should be not much higher.

the memory usage behaves as normal after I enable ASan

Because jemalloc is disabled under ASan and dynamically linked glibc allocator is used.

authors: akuzm alexey-milovidov blinkov fancyqlx filimonov

repo: yandex/ClickHouse


text:
TTL for columns and tables

I hereby agree to the terms of the CLA available at: https://yandex.ru/legal/cla/?lang=en
For changelog. Remove if this is non-significant change.
Category (leave one):

New Feature

Short description (up to few sentences):
Implements TTL for columns and tables.
Detailed description (optional):
TTL is set while creating MergeTree-family table as expression: DateTime column + interval:
CREATE TABLE t (d DateTime, a Int TTL d + INTERVAL 1 DAY) engine = MergeTree ...
Then merges are assigned considering TTLs and expired values are removed at needed time while merge executing.

Abort here https://pastebin.com/TZTyMCcP.

TODO
[] save min-max TTL for specific columns and table

Stress test failure doesn't seem like known error.

@CurtizJ Your own tests failed.

authors: CurtizJ alesapin


text:
[WIP] Distributed and remote timeouts

Qrator Labs s.r.o. contributes this under the terms of the Apache-2.0 license
related to issue #4211
Category (leave one):

Improvement

Previously timeouts for clusters and clickhouse-dictionaries were basically immutable after corresponding object creation. This PR tackles this.

?

I've implemented here all the suggestions from developers telegram channel but it doesn't seem to solve the problem. Failing tests are not related to new code. So I can rebease tomorrow morning and see if it is better at least in terms of tests.

One probable issue introduced is client program timeouts - when long operation is running sometimes one can get Timeout exception when it doesn't look like the right thing to happen.

authors: alexey-milovidov podshumok


text:
DataTypeString: remove asm code that most likely doesn't make sense for performance

No changes to prev. release.

After this change, the error in #4623 started to be visible in tests.

2019-03-08 16:45:57 00910_zookeeper_custom_compression_codecs_replicated: FAIL - return code 231
2019-03-08 16:45:57 Received exception from server (version 19.3.4):
2019-03-08 16:45:57 Code: 999. DB::Exception: Received from localhost:9000, ::1. Coordination::Exception. Coordination::Exception: Connection loss.

Flappy test.


text:
Add missing linking with jemalloc

Insignificant
Refs: https://github.com/yandex/ClickHouse/pull/6878#discussion_r324606073

Cc: @amosbird

I cannot reproduce the linking error in https://github.com/yandex/ClickHouse/pull/6878#discussion_r324606073 using yandex/clickhouse-deb-builder

I cannot reproduce the linking error you mentioned in https://github.com/yandex/ClickHouse/pull/6878#discussion_r324606073 with yandex/clickhouse-deb-builder. And I don't think libjemalloc.a should not be linked here.
docker run -it --rm -v /home/amos/git/chorigin/:/build  yandex/clickhouse-deb-builder bash

mkdir -p /build/build-dev
cd /build/build-dev

cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_SYSCONFDIR=/etc -DCMAKE_INSTALL_LOCALSTATEDIR=/var -DUSE_STATIC_LIBR
ARIES=0 -DSPLIT_SHARED_LIBRARIES=1 -DCLICKHOUSE_SPLIT_BINARY=1 -DUNBUNDLED=1 -DCMAKE_CXX_COMPILER=/usr/bin
/g\+\+-9 -DCMAKE_C_COMPILER=/usr/bin/gcc-9 -GNinja

ninja

You cannot reproduce it using yandex/clickhouse-deb-builder, because it has jemalloc<4, and hence sdallocx is not used in libs/libcommon/include/common/memory.h

@azat but we have jemalloc 5.1.0 in contrib and bundled build links fine

Bundled build uses static jemalloc library, hence no problems (dbms/libclickhouse_common_io linked with libs/libcommon/libcommon, which in case of static jemalloc has sdallocx in it, otherwise it is just linked with jemalloc)

So you use bundled build with libjemalloc.so, interesting combination. I think the cmake condition should be tightened. Have you checked if it breaks bundled shared build? (in which the static jemalloc library will be linked twice in this pr)

So you use bundled build with libjemalloc.so, interesting combination

I don't, I use UNBUNDLED (because otherwise compilation time is too huge).
And actually it is not possible to build ch in this way without patching cmake (since jemalloc-cmake/CMakeLists.txt has add_library(jemalloc STATIC).
So let me summarize this:

I use UNBUNDLED+SPLIT+SHARED (-DUSE_STATIC_LIBRARIES=OFF -DCLICKHOUSE_SPLIT_BINARY=ON -DSPLIT_SHARED_LIBRARIES=ON -DUNBUNDLED=ON)
And in this case jemalloc will be used from system, which in is shared in my case
When you tried to build ch the same as I'm doing it, you had jemalloc<4, and in this case sdallocx will not be used in libs/libcommon/include/common/memory.h, hence you did not get any errors, IOW if you will libjemalloc-dev in that container to 4+ you will the same error as I

@amosbird does the above clarify anything?
The only issue with this patch is what if system-wide jemalloc is static, in this case we will link with jemalloc twice (I will update the patch), and this is not great AFAIU.

Yes, I understand what you're doing and why you got that linking error. As long as this pr doesn't break any current CI builds, I'm fine with it.

authors: amosbird azat


text:
Change logging level from info to debug

Hello,
Can logging level be changed from info to debug level. While using this driver generates lots of useless log entries about regenerated connection list. I have located line which generates thous entries.
https://github.com/yandex/clickhouse-jdbc/blob/3b9907b7b6fcd2966eb75bbe1de6b11c9a5fcdc6/src/main/java/ru/yandex/clickhouse/ClickHouseDriver.java#L57

I am not so sure this should be debug. Ex we are running regression/load tests on our CH and app that's fronted by VIP to CH and thanks to that found an issue with VIP/network configuration to CH.  Not sure what your setup is but we did not see it when we have pointed our app to different VIP made for our PROD. Or at least we see much much less off these.  Meaning is all works as expected on your end you can set this WARN in your logger Config

I'm getting lots of this messages printed out to my STDOUT.
My log4j config:
log4j.rootLogger=INFO, stdout

log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout

log4j.appender.stdout.layout.ConversionPattern=%d %5p (%F:%L) %m%n

STDOUT output example:
...
May 03 12:41:26  java[1947]: 2018-05-03 12:41:26,892  INFO (ClickHouseDriver.java:57) Creating connection
May 03 12:41:26  java[1947]: 2018-05-03 12:41:26,903  INFO (ClickHouseDriver.java:57) Creating connection
May 03 12:41:26  java[1947]: 2018-05-03 12:41:26,913  INFO (ClickHouseDriver.java:57) Creating connection
May 03 12:41:27  java[1947]: 2018-05-03 12:41:27,892  INFO (ClickHouseDriver.java:57) Creating connection
May 03 12:41:27  java[1947]: 2018-05-03 12:41:27,902  INFO (ClickHouseDriver.java:57) Creating connection
May 03 12:41:27  java[1947]: 2018-05-03 12:41:27,911  INFO (ClickHouseDriver.java:57) Creating connection
May 03 12:41:28  java[1947]: 2018-05-03 12:41:28,892  INFO (ClickHouseDriver.java:57) Creating connection
May 03 12:41:28  java[1947]: 2018-05-03 12:41:28,904  INFO (ClickHouseDriver.java:57) Creating connection
May 03 12:41:28  java[1947]: 2018-05-03 12:41:28,919  INFO (ClickHouseDriver.java:57) Creating connection
...

I'm constantly checking if connection to clickhouse-server are down or not with
...
this.clickhouse.scheduleActualization(1, TimeUnit.SECONDS);
...

So, may be problem in code?

I suggest to read about how your logging implementation works.  And what it's capable off.  Check this exaple out https://gist.github.com/chetan/1528709#file-log4j-properties use it and experiment with  logging prop file for that class  ru.yandex.clickhouse.ClickHouseDriver warn

I vote for this improvement too. :)

authors: AlexMAS gedOHub meshpaul

repo: yandex/clickhouse-jdbc


text:
CUDA_HOME environment variable is not set. Please set it to your CUDA install root

error when using main.py script to do evaluation

I have the same issue, would appreciate some help (and also a list of requirement versions compatible for python3.8)

maybe export CUDA_HOME=$CONDA_PREFIX


text:
🛑 Privatebin is down

In 9dd7fe1, Privatebin (https://privatebin.icloudnative.io) was down:

HTTP code: 504
Response time: 15486 ms

Resolved: Privatebin is back up in 39e110d.

repo: yangchuansheng/upptime


text:
🛑 Umami is down

In 5a7aafb, Umami (https://umami.icloudnative.io) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Umami is back up in 169eadc after 12 minutes.


text:
🛑 Umami is down

In f1ba6c2, Umami (https://umami.icloudnative.io) was down:

HTTP code: 504
Response time: 15822 ms

Resolved: Umami is back up in 57ff43f.


text:
Use configuration file instead of .env

A configuration file would allow for far more control over settings without directly changing the code.
Most commonly used file formats are:

.ini
.json
.yaml
.xml

I personally prefer .yaml as I find it most readable.

Ok, I will consider this proposal, for saving user configurations (layouts, etc.) I'll use a configuration file rather than a .env file.


text:
contents: modify graph search algorithm

The changes I'm planning are as follows:

The current method for traversing graphs (represented as 2D grids) shows a
recursive implementation. I'm following an iterative implementation that uses
deque data structure which can function as either a queue (for BFS) and
stack (for DFS) to provide more effecient insertion and deletion operations.
Using namedtuple data structure to use x or y to access coordinates in
place of indices.
Add a placeholder function is_valid to check for those cells that may be
invalid (this function will vary as per what the question requires)
Insert into the deque first and check if the nodes are valid later(as
opposed to checking boundary conditions and visited/valid seperately)

I have made the changes you have suggested. For DFS implementation though, I have still stuck to the change where I check if the current point meets the conditions before traversing its neighbours instead of adding neighbours after condition checking.

Yes Yangshun you are right, I made the hotfixes on the GitHub web editor without testing my code. I'll check it thoroughly again before making any more changes.

Some questions:

As I ran your DFS implementation on a sample 32x32 grid (where everything can
be traversed), I ran into a maximum recursion error because the maximum number
of functions that a Python call stack can hold at maximum is 1000
(sys.getrecursionlimit).
If we use a deque then we can solve that issue, because the size of the
deque is essentially limited by sys.maxsize
(https://stackoverflow.com/a/15739630).
Keeping this in consideration, should I use deque or still stick to the
recursive implementation?

Is it ok to add a condition for len(matrix) == 0 at the beginning of dfs?
(otherwise when an empty matrix is given cols = len(matrix[0]) gives an
error). This error is handled if you don't specify the variables rows and
cols, because the first for loop terminates when the matrix is empty.

Hi @aaditkamat, the goal of writing code in a technical interview is to demonstrate that you are able to reason effectively about a toy problem and arrive at a working, conceptually correct solution. The goal is not to contribute to the company's codebase or write some open-source graph search library that is general enough for anyone to call for any use case. Language-specific concerns like call stack / lack of tail call optimization are of course relevant when you implement this in production software but are not the focus in a 45-min interview. You can simply make a quick remark about Python for some browny points and move on with the problem -- recursive and iterative implementation are both perfectly fine.

Hi @louietyj, thanks a lot for the response. I've decided to stick to the recursive DFS implementation (with the modification in condition checking). I've amended the BFS implementation as per @yangshun's comments.

authors: aaditkamat louietyj

repo: yangshun/tech-interview-handbook


text:
什么时候可以支持表单构建呢

系统工具-表单构建现在是空的，请问什么时候支持组件拖拉构建呢

这个还不确定，


text:
有些问题反馈，希望项目越来越好

1、是否不支持左右滑动，在move事件中只有Y轴的计算
2、回调函数，befor与after的索引问题
3、不支持循环滚动
最后，感谢您的分享！谢谢

感谢您的反馈

这个已经在议程之中
这个问题可否说的详细些，没明白
这个也在议程中

最近忙于其他项目，过段时间会开发这些功能

见https://github.com/yanhaijing/zepto.fullpage/issues/3

1.滑动的页面中放个a标签，点击无反应

@zdpdsy 你好 有这个问题吗？没有吧？见 #6

确实没反应
加了个a标签 代码如下

1 链接到百度
2
3
4

在谷歌下模拟iphone5运行环境，点击这个a标签无效

嗯 试了一下确实是这样的，可以添加如下代码加以解决：
$(document).on('tap', 'a', function (e) {
    location.href = this.href;
});

@zdpdsy 1.滑动的页面中放个a标签，点击无反应
这个问题现在以修复，v0.3.1 后不再阻止

authors: weizongqi1990 yanhaijing zdpdsy


text:
Use template literals in tests

This is a development related question. Since eslint has to support Node 4, and Node 4 seemingly has support for template literals (see http://node.green/). Is it ok to use this syntax in eslint-plugin-react? It would be much nicer to write:
code: `
   component MyHugeComponent {
   ...
}`

Instead of the current approach - which is pretty annoying when writing big components:
code: [
  'component MyHudeComponent {',
  '...',
  '}'
].join('\n\)

Also it seems eslint itself already uses the template literals: https://github.com/eslint/eslint/blob/master/tests/lib/rules/newline-after-var.js#L329

Yes, absolutely it would. The change to drop node < 4 is recent, and we just haven't gone through and updated everything to use patterns node 4 supports.
We also have to go through and convert every var to const or let, for example, as well as convert inline function callbacks to arrows.

Cool. It would be really nice to see the code-base more "modern". :)
I have been doing some var to const/let changes recently. I should hopefully get around to finishing that on Thursday or Friday.

All the tests have been converted at this point.

authors: jseminck ljharb

repo: yannickcr/eslint-plugin-react


text:
安卓使用onPageStateChange，监听页面变化，不生效，ios可以

WeixinJSBridge.on('onPageStateChange', function(res) {
// 注意：res.active返回的是字符串类型的true和false
if (res && res.active) {
// do something
console.log('onready')
}
})
<wx-open-launch-weapp
class="now-btn"
id="launch-btn"
username="gh_a974b946349a"
:path="weChatPath"
@ready='onReady'
@launch="onLaunch"
@error="onError"
>

公众号上打开小程序后，退出小程序回到公众号，调用页面变化的微信sdk方法，ios可以成功，安卓不行为什么？着急

使用问题可以到微信官方社群寻求帮助 https://developers.weixin.qq.com/community/pay/doc/0008c6b37741107b8568a7f1659400

authors: snail-boy yanxi-me

repo: yanxi-me/weixin-js-sdk


text:
BUG,建议

BUG: 华为 ATJ-AL000手机，Android 6.0.1，从demo 的视频按钮调用系统相机录制视频，一点录制按钮就提示“已到达大小限制”
建议：加入视频播放，不然只是一张预览图，会不会不是很好呢，可以参阅Phoenix，我觉得你们俩可以融合一下，他的图片拍摄处理和视频播放做的还可以，就是不能拍摄视频，只是个人观点，：）

BUG已解决：
Album.camera(this)
.video()
//                .limitDuration(Long.MAX_VALUE)
//                .limitBytes(Long.MAX_VALUE)
.limitDuration(10006010)
.limitBytes(1024102410)

limitBytes()默认是Long.MAX_VALUE，部分手机上会提示“已达大小限制”，设置limitBytes()为Integer.MAX_VALUE即可解决。

repo: yanzhenjie/Album


text:
write string in Querybuffer

in hooks QueryBuffer: after reading with buffer.readString () how to write it back into the buffer? same length or different length possible?

It's not intended to write strings, you can write method yourself if needed.

authors: jeefo that-is-not-great

repo: yapb/yapb