text:
How to filter datatable based on custom data using button onclick?

I have a column render of textarea with multiple data. I wonder if we can filter column using data-bgcolor value.
For bgcolor values, I have "red" and "transparent".
So I was thinking if we can add a button to filter the bgcolor's value. When I click the button, it will filter the table and only show rows that have bgcolor equals to 'red'. Is that even possible to work?
For your information, I'm using server-side datatable.
Here's my datatable column code
{
   orderable: false,
   checkboxes:
   {
      selectRow: true
   },
   target: 0,
   data: null,
   defaultContent: '',
},
{
   orderable: false,
   data: 'StockName'
},
{
   orderable: false,
   data: { ReorderLevel: 'ReorderLevel', StockCode : 'StockCode', StockName : 'StockName', CurrentBalance: 'CurrentBalance', bgcolor: 'bgcolor'},
   render: function (data, type, row, meta)
   {
      if((data.ReorderLevel == null) || (data.ReorderLevel == ".00000000"))
         return '<textarea rows="1" cols="3" name="reorderlvl" class="reorderlvl align-middle text-right" style="background-color:'+data.bgcolor+'" data-stockcode="'+data.StockCode+'" data-stockname="'+data.StockName+'" data-bgcolor="'+data.bgcolor+'"></textarea>';
      else
         return '<textarea rows="1" cols="3" name="reorderlvl" class="reorderlvl align-middle text-right" style="background-color:'+data.bgcolor+'" data-stockcode="'+data.StockCode+'" data-stockname="'+data.StockName+'" data-balance="'+data.CurrentBalance+'" data-bgcolor="'+data.bgcolor+'">'+parseFloat(data.ReorderLevel).toFixed(0)+'</textarea>';
   }
},
{
   className: 'reorderlist btn btn-sm btn-info',
   text: 'Reorder List',
   action: function ( e, dt, node, config )
   {
      datatable.column($('.reorderlvl').data('bgcolor')).search("red").draw();
   }
},
order : [ [ 1 , 'asc' ] ]

Operating System
PHP Version 5.6.32
Laravel Version 5.4.36
Laravel-Datatables Version 1.10.18

Hello!
You have to use filterColumn (server side) to do that.

Hello!
You have to use filterColumn (server side) to do that.
Apply to your datatable something like:
->filterColumn('bgcolor', function ($query, $keyword) {

    if($keyword === 'red')
        $query->where('bgcolor', ""HEXREDCOLOR"");

    if($keyword === 'transparent')
        $query->where('bgcolor', ""HEXTRANSPAENTCOLOR"");

 })

But I dont think that searching for hardcoded color is a good option. You can create a select filter, checkboxes or similar with all your colors then users only have to click to apply filter.

@DanielGilB I have updated my question.  Please review back. Thanks

authors: DanielGilB rgingingon


text:
Usernames returned in top level of notifications but not second level

Thanks for this script, it is a total godsend against a highly annoying change by YouTube!
One fault is that usernames are returned in the top level of the notifications box, but not at the second level. See attached screenshot.

I'm using the Chrome extension version (your version 0.3.2)
Chrome is version 114.0.5735.134 (Official Build) (64-bit)).
I am using a VPN, AdBlock and Privacy Badger.
I'm new to GitHub, so let me know if I need to provide other information.
Thanks in advance!

[Google Translated] Added a function to rewrite comments in the notification column

yakisova41, will that change also get pushed through in an update to the Chrome Extension?

Thanks for the issue.
We are about to submit the corrected version v0.3.3 to the web store for review, so it will be released in an hour or so at the latest.
I would appreciate it if you could let me know if it works after the update.

Thanks for the issue.
We are about to submit the corrected version v0.3.3 to the web store for review, so it will be released in an hour or so at the latest.
I would appreciate it if you could let me know if it works after the update.

Excellent, will do 👍

yakisova41, have just upgraded to 0.3.3 but this does not resolve the issue.

Oops sorry!
I did not read the issue carefully😖😖
I have submitted the modified version 0.3.4 to the web store for review!

I have submitted the modified version 0.3.4 to the web store for review!

Awesome, yes it is fixed now with 0.3.4 👍
どうもありがとう (many thanks)

source: gharchive/issue

license: MIT

license_type: permissive

license_source: github-api


text:
only renders emoji if followed by space or enter

Better replicates Google Hangouts emoji conversion by:

Only converting emojis that a whole word
Converts last written word to emoji if press enter

Test cases (spaces or enter are denoted as «space|enter»)
"I«space»like«space»it!«space»:)«enter»"  -> correct emoji
":D«enter»"  -> correct emoji
"-_-«space»«enter»" -> correct emoji
"The«space»url«space»is«space»http://github.com«space»«enter»" -> "The url is http://github.com"
"The«space»url«space»is«space»http://github.com«enter»" -> "The url is http://github.com"

Can you disable converting to emoji? (and personally i think emoji should be changed as you type, so you know what you send, but i don't like emoji because most of them are total crap... or even fail to render on a lot of clients)

Super valid point, if they didn't render on purpose (when pressing enter) then I guess changes to  src/ui/views/input.coffee should not be included.
I included it because that is the behavior with hangouts.

the option would be a great addition, but I think that should be implemented in a different pull request as new feature/enhancement

it was actually pretty easy to implement, here is a branch synced with yakyak/yakyak
https://github.com/averissimo/yakyak/tree/emoji_option
I guess there should be an issue to discuss this

I pulled down the branch listed above (emoji_option) and when I paste the following URL into the message box and hit enter it is turning the ":/" into the corresponding emoji -- http://arstechnica.com/science/2016/08/dentists-forgot-to-study-flossing-for-a-century-recommended-it-anyway/

source: gharchive/pull-request

authors: averissimo dhensche kolorafa

repo: yakyak/yakyak

license: mit

license_source: bigquery


text:
Repomap - A Repomix/Mermaid/GenAI repo visualisation tool

I've used Repomix to make Repomap.
https://github.com/George5562/Repomap
It creates a Repomix XML, uses an LLM with Langchain to convert to mermaid so you can visualise your project as a flowchart.
You can specify the types of nodes (pages, components, functions etc) and edges/relationships (depends on, uses, renders etc).
Using the --add CLI you can add an enhancement "add nextAuth", and two additional LLM calls will create a suggested file structure, and then create an updated flowchart, now with possible future components added.

Hi, @George5562 !
Thank you for creating and sharing Repomap! This is a fantastic use case of Repomix's XML output.
The combination with LLM and Mermaid for visualization is really clever.
I haven't looked into the details yet, but I'm looking forward to exploring it more thoroughly.

repo: yamadashy/repomix


text:
IOS device off the autorotation it's not working ,When  we are using landscape mode not working, it shows PORTRAIT mode

in device not showing landscape, when we are off the auto rotation in device,show an portrait.  actually to lock landscape and in x code i am putting landscape left   & and landscape right. But it's not working.
Any suggest plz

Finally i  solved my issue: just i add both two files in AppDelegate.m
#import "../../node_modules/react-native-orientation/iOS/RCTOrientation/Orientation.h"

 - (UIInterfaceOrientationMask)application:(UIApplication *)application supportedInterfaceOrientationsForWindow:(UIWindow *)window {
    return [Orientation getOrientation];
  }

repo: yamill/react-native-orientation

license: isc


text:
Drain Response.Body for connection reuse.

Fix #3. Previous commit contained wrong git credentials - this one is correct.

:+1: Thanks!


text:
groupUniqArray related Seg fault

Checked on versions 18.14.19, 19.1.6, 19.3.3 (problem reproduces)
Unfortunately, I was not able to reproduce the problem on some tiny / synthetics datasets, so just prepared some fragment of data and test which allows reproducing that.
How to reproduce:
git clone https://github.com/filimonov/chbug
cd chbug
./test.sh

Stacktrace looks like that:
2019.02.14 14:50:04.216912 [ 2 ] {} <Error> BaseDaemon: ########################################
2019.02.14 14:50:04.216990 [ 2 ] {} <Error> BaseDaemon: (from thread 65) Received signal Segmentation fault (11).
2019.02.14 14:50:04.217004 [ 2 ] {} <Error> BaseDaemon: Address: NULL pointer.
2019.02.14 14:50:04.217012 [ 2 ] {} <Error> BaseDaemon: Access: read.
2019.02.14 14:50:04.217021 [ 2 ] {} <Error> BaseDaemon: Unknown si_code.
2019.02.14 14:50:04.250273 [ 2 ] {} <Error> BaseDaemon: 0. /usr/bin/clickhouse-server(DB::AggreagteFunctionGroupUniqArrayGeneric<true>::merge(char*, char const*, DB::Arena*) const+0xbf) [0x4fe4c1f]
2019.02.14 14:50:04.250319 [ 2 ] {} <Error> BaseDaemon: 1. /usr/bin/clickhouse-server(DB::ColumnAggregateFunction::insertRangeFrom(DB::IColumn const&, unsigned long, unsigned long)+0x18c) [0x767c15c]
2019.02.14 14:50:04.250351 [ 2 ] {} <Error> BaseDaemon: 2. /usr/bin/clickhouse-server(DB::SquashingTransform::append(std::vector<COWPtr<DB::IColumn>::mutable_ptr<DB::IColumn>, std::allocator<COWPtr<DB::IColumn>::mutable_ptr<DB::IColumn> > >&&)+0x7c) [0x6ac35ac]
2019.02.14 14:50:04.250365 [ 2 ] {} <Error> BaseDaemon: 3. /usr/bin/clickhouse-server(DB::SquashingTransform::add(std::vector<COWPtr<DB::IColumn>::mutable_ptr<DB::IColumn>, std::allocator<COWPtr<DB::IColumn>::mutable_ptr<DB::IColumn> > >&&)+0xff) [0x6ac38ef]
2019.02.14 14:50:04.250376 [ 2 ] {} <Error> BaseDaemon: 4. /usr/bin/clickhouse-server(DB::SquashingBlockOutputStream::write(DB::Block const&)+0x297) [0x79d8217]
2019.02.14 14:50:04.250391 [ 2 ] {} <Error> BaseDaemon: 5. /usr/bin/clickhouse-server(DB::AddingDefaultBlockOutputStream::write(DB::Block const&)+0x73d) [0x7951e2d]
2019.02.14 14:50:04.250402 [ 2 ] {} <Error> BaseDaemon: 6. /usr/bin/clickhouse-server(DB::CountingBlockOutputStream::write(DB::Block const&)+0x2c) [0x79765ec]
2019.02.14 14:50:04.250412 [ 2 ] {} <Error> BaseDaemon: 7. /usr/bin/clickhouse-server(DB::copyData(DB::IBlockInputStream&, DB::IBlockOutputStream&, std::atomic<bool>*)+0xc1) [0x6ac3b11]
2019.02.14 14:50:04.250427 [ 2 ] {} <Error> BaseDaemon: 8. /usr/bin/clickhouse-server(DB::NullAndDoCopyBlockInputStream::readImpl()+0x24) [0x75b3024]
2019.02.14 14:50:04.250437 [ 2 ] {} <Error> BaseDaemon: 9. /usr/bin/clickhouse-server(DB::IProfilingBlockInputStream::read()+0x25a) [0x6aa852a]
2019.02.14 14:50:04.250447 [ 2 ] {} <Error> BaseDaemon: 10. /usr/bin/clickhouse-server(DB::AsynchronousBlockInputStream::calculate()+0x56) [0x6a9d756]
2019.02.14 14:50:04.250456 [ 2 ] {} <Error> BaseDaemon: 11. /usr/bin/clickhouse-server() [0x6a9dbc0]
2019.02.14 14:50:04.250466 [ 2 ] {} <Error> BaseDaemon: 12. /usr/bin/clickhouse-server(ThreadPool::worker()+0x19e) [0x9bd63ce]
2019.02.14 14:50:04.250479 [ 2 ] {} <Error> BaseDaemon: 13. /usr/bin/clickhouse-server() [0xa3c68cf]
2019.02.14 14:50:04.250488 [ 2 ] {} <Error> BaseDaemon: 14. /lib/x86_64-linux-gnu/libpthread.so.0(+0x76db) [0x7f55401176db]

Reproduced.

With asan:
=================================================================
==4176==ERROR: AddressSanitizer: stack-buffer-overflow on address 0x7fb30f2ca000 at pc 0x000006b87649 bp 0x7fb36b4ac410 sp 0x7fb36b4abbc0
READ of size 1 at 0x7fb30f2ca000 thread T3
    #0 0x6b87648 in write (/usr/bin/clickhouse+0x6b87648)
    #1 0x720c802 in write_validate /build/obj-x86_64-linux-gnu/../contrib/libunwind/src/x86_64/Ginit.c:110:13
    #2 0x720c802 in mincore_validate /build/obj-x86_64-linux-gnu/../contrib/libunwind/src/x86_64/Ginit.c:146
    #3 0x720ccc1 in validate_mem /build/obj-x86_64-linux-gnu/../contrib/libunwind/src/x86_64/Ginit.c:206:7
    #4 0x720ccc1 in access_mem /build/obj-x86_64-linux-gnu/../contrib/libunwind/src/x86_64/Ginit.c:240
    #5 0x7216fa9 in dwarf_get /build/obj-x86_64-linux-gnu/../contrib/libunwind/include/tdep-x86_64/libunwind_i.h:168:12
    #6 0x7216fa9 in apply_reg_state /build/obj-x86_64-linux-gnu/../contrib/libunwind/src/dwarf/Gparser.c:872
    #7 0x7215e5c in _ULx86_64_dwarf_step /build/obj-x86_64-linux-gnu/../contrib/libunwind/src/dwarf/Gparser.c:953:10
    #8 0x721df55 in _ULx86_64_step /build/obj-x86_64-linux-gnu/../contrib/libunwind/src/x86_64/Gstep.c:71:9
    #9 0x71c268f in backtraceLibUnwind(void**, unsigned long, ucontext_t&) /build/obj-x86_64-linux-gnu/../libs/libdaemon/src/BaseDaemon.cpp:216:14
    #10 0x71f1d70 in SignalListener::onFault(int, siginfo_t&, ucontext_t&, unsigned int) const /build/obj-x86_64-linux-gnu/../libs/libdaemon/src/BaseDaemon.cpp:469:27
    #11 0x71e5bba in SignalListener::run() /build/obj-x86_64-linux-gnu/../libs/libdaemon/src/BaseDaemon.cpp:292:17
    #12 0x14ccadce in Poco::ThreadImpl::runnableEntry(void*) /build/obj-x86_64-linux-gnu/../contrib/poco/Foundation/src/Thread_STD.cpp:139:27
    #13 0x14cceb55 in void std::__1::__thread_execute<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct> >, void* (*)(void*), Poco::ThreadImpl*, 2ul>(std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct> >, void* (*)(void*), Poco::ThreadImpl*>&, std::__1::__tuple_indices<2ul>) /usr/include/c++/v1/type_traits:4482:1
    #14 0x14cceb55 in void* std::__1::__thread_proxy<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct> >, void* (*)(void*), Poco::ThreadImpl*> >(void*) /usr/include/c++/v1/thread:352
    #15 0x7fb3713b16da in start_thread (/lib/x86_64-linux-gnu/libpthread.so.0+0x76da)
    #16 0x7fb370b3488e in clone (/lib/x86_64-linux-gnu/libc.so.6+0x12188e)

Address 0x7fb30f2ca000 is located in stack of thread T32 (AsyncBlockInput) at offset 1184 in frame
    #0 0x71ddb1f in faultSignalHandler(int, siginfo_t*, void*) /build/obj-x86_64-linux-gnu/../libs/libdaemon/src/BaseDaemon.cpp:163

  This frame has 4 object(s):
    [32, 36) 'sig.addr'
    [48, 1120) 'buf' (line 168)
    [1248, 1352) 'out' (line 169) <== Memory access at offset 1184 underflows this variable
    [1392, 1396) 'ref.tmp' (line 174)
HINT: this may be a false positive if your program uses some custom stack unwind mechanism, swapcontext or vfork
      (longjmp and C++ exceptions *are* supported)
Thread T32 (AsyncBlockInput) created by T25 (TCPHandler) here:
    #0 0x6bfa78d in pthread_create (/usr/bin/clickhouse+0x6bfa78d)
    #1 0x6cb4a4d in std::__1::__libcpp_thread_create(unsigned long*, void* (*)(void*), void*) /usr/include/c++/v1/__threading_support:327:10
    #2 0x6cb4a4d in std::__1::thread::thread<ThreadPoolImpl<std::__1::thread>::scheduleImpl<void>(std::__1::function<void ()>, int, std::__1::optional<unsigned long>)::{lambda()#3}, , void>(ThreadPoolImpl<std::__1::thread>::scheduleImpl<void>(std::__1::function<void ()>, int, std::__1::optional<unsigned long>)::{lambda()#3}&&) /usr/include/c++/v1/thread:368
    #3 0x6caa008 in void ThreadPoolImpl<std::__1::thread>::scheduleImpl<void>(std::__1::function<void ()>, int, std::__1::optional<unsigned long>) /build/obj-x86_64-linux-gnu/../dbms/src/Common/ThreadPool.cpp:65:35
    #4 0x6cac013 in ThreadPoolImpl<std::__1::thread>::scheduleOrThrow(std::__1::function<void ()>, int, unsigned long) /build/obj-x86_64-linux-gnu/../dbms/src/Common/ThreadPool.cpp:92:5
    #5 0x6cb80e5 in ThreadFromGlobalPool::ThreadFromGlobalPool<ThreadPoolImpl<ThreadFromGlobalPool>::scheduleImpl<void>(std::__1::function<void ()>, int, std::__1::optional<unsigned long>)::{lambda()#3}>(ThreadPoolImpl<ThreadFromGlobalPool>::scheduleImpl<void>(std::__1::function<void ()>, int, std::__1::optional<unsigned long>)::{lambda()#3}&&) /build/obj-x86_64-linux-gnu/../dbms/src/Common/ThreadPool.h:140:38
    #6 0x6caf671 in void ThreadPoolImpl<ThreadFromGlobalPool>::scheduleImpl<void>(std::__1::function<void ()>, int, std::__1::optional<unsigned long>) /build/obj-x86_64-linux-gnu/../dbms/src/Common/ThreadPool.cpp:65:35
    #7 0x6caea2b in ThreadPoolImpl<ThreadFromGlobalPool>::schedule(std::__1::function<void ()>, int) /build/obj-x86_64-linux-gnu/../dbms/src/Common/ThreadPool.cpp:80:5
    #8 0x1237bf52 in DB::AsynchronousBlockInputStream::next() /build/obj-x86_64-linux-gnu/../dbms/src/DataStreams/AsynchronousBlockInputStream.cpp:39:10
    #9 0x6d9bec7 in DB::AsynchronousBlockInputStream::readPrefix() /build/obj-x86_64-linux-gnu/../dbms/src/DataStreams/AsynchronousBlockInputStream.h:43:13
    #10 0x6d9bec7 in DB::TCPHandler::processOrdinaryQuery() /build/obj-x86_64-linux-gnu/../dbms/programs/server/TCPHandler.cpp:400
    #11 0x6d8f7fc in DB::TCPHandler::runImpl() /build/obj-x86_64-linux-gnu/../dbms/programs/server/TCPHandler.cpp:204:17
    #12 0x6dabd65 in DB::TCPHandler::run() /build/obj-x86_64-linux-gnu/../dbms/programs/server/TCPHandler.cpp:941:9
    #13 0x14af4f5e in Poco::Net::TCPServerConnection::start() /build/obj-x86_64-linux-gnu/../contrib/poco/Net/src/TCPServerConnection.cpp:43:3
    #14 0x14af5bdf in Poco::Net::TCPServerDispatcher::run() /build/obj-x86_64-linux-gnu/../contrib/poco/Net/src/TCPServerDispatcher.cpp:114:20
    #15 0x14cd0404 in Poco::PooledThread::run() /build/obj-x86_64-linux-gnu/../contrib/poco/Foundation/src/ThreadPool.cpp:214:14
    #16 0x14ccadce in Poco::ThreadImpl::runnableEntry(void*) /build/obj-x86_64-linux-gnu/../contrib/poco/Foundation/src/Thread_STD.cpp:139:27
    #17 0x14cceb55 in void std::__1::__thread_execute<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct> >, void* (*)(void*), Poco::ThreadImpl*, 2ul>(std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct> >, void* (*)(void*), Poco::ThreadImpl*>&, std::__1::__tuple_indices<2ul>) /usr/include/c++/v1/type_traits:4482:1
    #18 0x14cceb55 in void* std::__1::__thread_proxy<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct> >, void* (*)(void*), Poco::ThreadImpl*> >(void*) /usr/include/c++/v1/thread:352
    #19 0x7fb3713b16da in start_thread (/lib/x86_64-linux-gnu/libpthread.so.0+0x76da)

Thread T25 (TCPHandler) created by T0 here:
    #0 0x6bfa78d in pthread_create (/usr/bin/clickhouse+0x6bfa78d)
    #1 0x14ccdd48 in std::__1::__libcpp_thread_create(unsigned long*, void* (*)(void*), void*) /usr/include/c++/v1/__threading_support:327:10
    #2 0x14ccdd48 in std::__1::thread::thread<void* (&)(void*), Poco::ThreadImpl*, void>(void* (&)(void*), Poco::ThreadImpl*&&) /usr/include/c++/v1/thread:368
    #3 0x14cca353 in Poco::ThreadImpl::startImpl(Poco::SharedPtr<Poco::Runnable, Poco::ReferenceCounter, Poco::ReleasePolicy<Poco::Runnable> >) /build/obj-x86_64-linux-gnu/../contrib/poco/Foundation/src/Thread_STD.cpp:58:53
    #4 0x14cccd44 in Poco::Thread::start(Poco::Runnable&) /build/obj-x86_64-linux-gnu/../contrib/poco/Foundation/src/Thread.cpp:116:2
    #5 0x14cd09bf in Poco::PooledThread::start(int) /build/obj-x86_64-linux-gnu/../contrib/poco/Foundation/src/ThreadPool.cpp:88:10
    #6 0x14cd09bf in Poco::ThreadPool::ThreadPool(int, int, int, int, Poco::ThreadPool::ThreadAffinityPolicy) /build/obj-x86_64-linux-gnu/../contrib/poco/Foundation/src/ThreadPool.cpp:278
    #7 0x6c58ae4 in DB::Server::main(std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > > const&) /build/obj-x86_64-linux-gnu/../dbms/programs/server/Server.cpp:545:26
    #8 0x14b1e5b0 in Poco::Util::Application::run() /build/obj-x86_64-linux-gnu/../contrib/poco/Util/src/Application.cpp:335:8
    #9 0x6c46ee7 in DB::Server::run() /build/obj-x86_64-linux-gnu/../dbms/programs/server/Server.cpp:138:25
    #10 0x6c7a39b in mainEntryClickHouseServer(int, char**) /build/obj-x86_64-linux-gnu/../dbms/programs/server/Server.cpp:844:20
    #11 0x6c44c02 in main /build/obj-x86_64-linux-gnu/../dbms/programs/main.cpp:174:12
    #12 0x7fb370a34b96 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x21b96)

SUMMARY: AddressSanitizer: stack-buffer-overflow (/usr/bin/clickhouse+0x6b87648) in write
Shadow bytes around the buggy address:
  0x0ff6e1e513b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  0x0ff6e1e513c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  0x0ff6e1e513d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  0x0ff6e1e513e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  0x0ff6e1e513f0: 00 00 00 00 00 00 00 00 f2 f2 f2 f2 f2 f2 f2 f2
=>0x0ff6e1e51400:[f2]f2 f2 f2 f2 f2 f2 f2 00 00 00 00 00 00 00 00
  0x0ff6e1e51410: 00 00 00 00 00 f2 f2 f2 f2 f2 f8 f3 00 00 00 00
  0x0ff6e1e51420: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  0x0ff6e1e51430: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  0x0ff6e1e51440: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  0x0ff6e1e51450: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
Shadow byte legend (one shadow byte represents 8 application bytes):
  Addressable:           00
  Partially addressable: 01 02 03 04 05 06 07
  Heap left redzone:       fa
  Freed heap region:       fd
  Stack left redzone:      f1
  Stack mid redzone:       f2
  Stack right redzone:     f3
  Stack after return:      f5
  Stack use after scope:   f8
  Global redzone:          f9
  Global init order:       f6
  Poisoned by user:        f7
  Container overflow:      fc
  Array cookie:            ac
  Intra object redzone:    bb
  ASan internal:           fe
  Left alloca redzone:     ca
  Right alloca redzone:    cb
  Shadow gap:              cc
Thread T3 created by T0 here:
    #0 0x6bfa78d in pthread_create (/usr/bin/clickhouse+0x6bfa78d)
    #1 0x14ccdd48 in std::__1::__libcpp_thread_create(unsigned long*, void* (*)(void*), void*) /usr/include/c++/v1/__threading_support:327:10
    #2 0x14ccdd48 in std::__1::thread::thread<void* (&)(void*), Poco::ThreadImpl*, void>(void* (&)(void*), Poco::ThreadImpl*&&) /usr/include/c++/v1/thread:368
    #3 0x14cca353 in Poco::ThreadImpl::startImpl(Poco::SharedPtr<Poco::Runnable, Poco::ReferenceCounter, Poco::ReleasePolicy<Poco::Runnable> >) /build/obj-x86_64-linux-gnu/../contrib/poco/Foundation/src/Thread_STD.cpp:58:53
    #4 0x14cccd44 in Poco::Thread::start(Poco::Runnable&) /build/obj-x86_64-linux-gnu/../contrib/poco/Foundation/src/Thread.cpp:116:2
    #5 0x71dc1c1 in BaseDaemon::initializeTerminationAndSignalProcessing() /build/obj-x86_64-linux-gnu/../libs/libdaemon/src/BaseDaemon.cpp:1185:28
    #6 0x71d58a5 in BaseDaemon::initialize(Poco::Util::Application&) /build/obj-x86_64-linux-gnu/../libs/libdaemon/src/BaseDaemon.cpp:1132:5
    #7 0x6c477ff in DB::Server::initialize(Poco::Util::Application&) /build/obj-x86_64-linux-gnu/../dbms/programs/server/Server.cpp:143:17
    #8 0x14b1e551 in Poco::Util::Application::run() /build/obj-x86_64-linux-gnu/../contrib/poco/Util/src/Application.cpp:330:2
    #9 0x6c46ee7 in DB::Server::run() /build/obj-x86_64-linux-gnu/../dbms/programs/server/Server.cpp:138:25
    #10 0x6c7a39b in mainEntryClickHouseServer(int, char**) /build/obj-x86_64-linux-gnu/../dbms/programs/server/Server.cpp:844:20
    #11 0x6c44c02 in main /build/obj-x86_64-linux-gnu/../dbms/programs/main.cpp:174:12
    #12 0x7fb370a34b96 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x21b96)

BTW, ASan report inside libunwind is normal (by design).

Now I can't reproduce it on master. Probably, it's connected with https://github.com/yandex/ClickHouse/commit/eee783580b6681e0d462ed35fb8659b79c5860c7
Now I also can't create manual test to reproduce this bug.

BTW, ASan report inside libunwind is normal (by design).

Wierd :) In that case is there a way to skip asan checks for libunwind?

Now I can't reproduce it on master. Probably, it's connected with eee7835

Yep, may be. I can try to compile old version with that patch to check if problem disappears.

With test.sh, I can reproduce this on almost every run, on current master. Have no idea about the cause yet, will continue working on this.

After debugging this for a couple of days, I came to the conclusion that it must be a race and ran it under tsan, and sure, here it is:
WARNING: ThreadSanitizer: data race (pid=25547)
  Read of size 8 at 0x7b10001080e8 by thread T58:
    #0 DB::Arena::alignedAlloc(unsigned long, unsigned long) /home/akuzm/ch3/ch/dbms/src/Common/Arena.h:147:37 (libclickhouse_aggregate_functionsd.so+0x148d191)
    #1 DB::pushBackAndCreateState(DB::PODArray<char*, 4096ul, AllocatorWithHint<false, AllocatorHints::RandomHint, 4096ul>, 15ul, 16ul>&, DB::Arena&, DB::IAggregateFunction*) /home/akuzm/ch3/ch/dbms/src/Columns/ColumnAggregateFunction.cpp:375:26 (libdbmsd.so+0x2201955)
    #2 DB::ColumnAggregateFunction::insertDefault() /home/akuzm/ch3/ch/dbms/src/Columns/ColumnAggregateFunction.cpp:411:5 (libdbmsd.so+0x21fff1f)
    #3 DB::ColumnAggregateFunction::insertFrom(DB::IColumn const&, unsigned long) /home/akuzm/ch3/ch/dbms/src/Columns/ColumnAggregateFunction.cpp:344:5 (libdbmsd.so+0x21fccd2)
    #4 DB::ColumnAggregateFunction::insertRangeFrom(DB::IColumn const&, unsigned long, unsigned long) /home/akuzm/ch3/ch/dbms/src/Columns/ColumnAggregateFunction.cpp:179:13 (libdbmsd.so+0x21fca98)
    #5 DB::SquashingTransform::append(std::__1::vector<COW<DB::IColumn>::mutable_ptr<DB::IColumn>, std::__1::allocator<COW<DB::IColumn>::mutable_ptr<DB::IColumn> > >&&) /home/akuzm/ch3/ch/dbms/src/DataStreams/SquashingTransform.cpp:62:33 (libdbmsd.so+0xc53786)
    #6 DB::SquashingTransform::add(std::__1::vector<COW<DB::IColumn>::mutable_ptr<DB::IColumn>, std::__1::allocator<COW<DB::IColumn>::mutable_ptr<DB::IColumn> > >&&) /home/akuzm/ch3/ch/dbms/src/DataStreams/SquashingTransform.cpp:39:5 (libdbmsd.so+0xc52620)
    #7 DB::SquashingBlockOutputStream::write(DB::Block const&) /home/akuzm/ch3/ch/dbms/src/DataStreams/SquashingBlockOutputStream.cpp:15:51 (libdbmsd.so+0xc51934)
    #8 DB::AddingDefaultBlockOutputStream::write(DB::Block const&) /home/akuzm/ch3/ch/dbms/src/DataStreams/AddingDefaultBlockOutputStream.cpp:10:13 (libdbmsd.so+0xa2e2ae)
    #9 DB::CountingBlockOutputStream::write(DB::Block const&) /home/akuzm/ch3/ch/dbms/src/DataStreams/CountingBlockOutputStream.cpp:17:13 (libdbmsd.so+0xab73a1)
    #10 void DB::copyDataImpl<DB::copyData(DB::IBlockInputStream&, DB::IBlockOutputStream&, std::__1::atomic<bool>*)::$_0&, void (&)(DB::Block const&)>(DB::IBlockInputStream&, DB::IBlockOutputStream&, DB::copyData(DB::IBlockInputStream&, DB::IBlockOutputStream&, std::__1::atomic<bool>*)::$_0&, void (&)(DB::Block const&)) /home/akuzm/ch3/ch/dbms/src/DataStreams/copyData.cpp:30:12 (libdbmsd.so+0xcc1f6b)
    #11 DB::copyData(DB::IBlockInputStream&, DB::IBlockOutputStream&, std::__1::atomic<bool>*) /home/akuzm/ch3/ch/dbms/src/DataStreams/copyData.cpp:61:5 (libdbmsd.so+0xcc1db7)
    #12 DB::NullAndDoCopyBlockInputStream::readImpl() /home/akuzm/ch3/ch/dbms/src/DataStreams/NullAndDoCopyBlockInputStream.h:40:9 (libdbmsd.so+0x19d5dbc)
    #13 DB::IBlockInputStream::read() /home/akuzm/ch3/ch/dbms/src/DataStreams/IBlockInputStream.cpp:56:15 (libdbmsd.so+0xb3222b)

  Previous write of size 8 at 0x7b10001080e8 by thread T60:
    #0 DB::Arena::alloc(unsigned long) /home/akuzm/ch3/ch/dbms/src/Common/Arena.h:137:19 (libclickhouse_functionsd.so+0x666abf5)
    #1 DB::Arena::insert(char const*, unsigned long) /home/akuzm/ch3/ch/dbms/src/Common/Arena.h:265:22 (libclickhouse_functionsd.so+0x6665924)
    #2 DB::AggregateFunctionGroupUniqArrayGeneric<true, std::__1::integral_constant<bool, false> >::merge(char*, char const*, DB::Arena*) const /home/akuzm/ch3/ch/dbms/src/AggregateFunctions/AggregateFunctionGroupUniqArray.h:248:57 (libclickhouse_aggregate_functionsd.so+0x15dee6b)
    #3 DB::AggregateFunctionState::merge(char*, char const*, DB::Arena*) const /home/akuzm/ch3/ch/dbms/src/AggregateFunctions/AggregateFunctionState.h:69:22 (libdbmsd.so+0x345ba02)
    #4 void DB::Aggregator::mergeDataImpl<DB::AggregationMethodSerialized<TwoLevelHashMapTable<StringRef, HashMapCellWithSavedHash<StringRef, char*, DefaultHash<StringRef>, HashTableNoState>, DefaultHash<StringRef>, TwoLevelHashTableGrower<8ul>, AllocatorWithHint<true, AllocatorHints::RandomHint, 4096ul>, HashMapTable> >, HashMapTable<StringRef, HashMapCellWithSavedHash<StringRef, char*, DefaultHash<StringRef>, HashTableNoState>, DefaultHash<StringRef>, TwoLevelHashTableGrower<8ul>, AllocatorWithHint<true, AllocatorHints::RandomHint, 4096ul> > >(HashMapTable<StringRef, HashMapCellWithSavedHash<StringRef, char*, DefaultHash<StringRef>, HashTableNoState>, DefaultHash<StringRef>, TwoLevelHashTableGrower<8ul>, AllocatorWithHint<true, AllocatorHints::RandomHint, 4096ul> >&, HashMapTable<StringRef, HashMapCellWithSavedHash<StringRef, char*, DefaultHash<StringRef>, HashTableNoState>, DefaultHash<StringRef>, TwoLevelHashTableGrower<8ul>, AllocatorWithHint<true, AllocatorHints::RandomHint, 4096ul> >&, DB::Arena*) const /home/akuzm/ch3/ch/dbms/src/Interpreters/Aggregator.cpp:1505:41 (libdbmsd.so+0x143d35f)
    #5 void DB::Aggregator::mergeBucketImpl<DB::AggregationMethodSerialized<TwoLevelHashMapTable<StringRef, HashMapCellWithSavedHash<StringRef, char*, DefaultHash<StringRef>, HashTableNoState>, DefaultHash<StringRef>, TwoLevelHashTableGrower<8ul>, AllocatorWithHint<true, AllocatorHints::RandomHint, 4096ul>, HashMapTable> > >(std::__1::vector<std::__1::shared_ptr<DB::AggregatedDataVariants>, std::__1::allocator<std::__1::shared_ptr<DB::AggregatedDataVariants> > >&, int, DB::Arena*) const /home/akuzm/ch3/ch/dbms/src/Interpreters/Aggregator.cpp:1665:9 (libdbmsd.so+0x142e138)
    #6 DB::MergingAndConvertingBlockInputStream::thread(int, std::__1::shared_ptr<DB::ThreadGroupStatus>) /home/akuzm/ch3/ch/dbms/src/Interpreters/Aggregator.cpp:1854:13 (libdbmsd.so+0x1429741)

Basically, Aggregator uses the same arenas both for the resulting Blocks it already produced, and for calculating the next Blocks. The resulting Blocks are being squashed at the same time, so the arenas are modified concurrently.

ASan report inside libunwind is normal (by design).

We have also fixes ASan reports in libunwind by https://github.com/yandex/ClickHouse/pull/4828

authors: KochetovNicolai akuzm alexey-milovidov filimonov

repo: yandex/ClickHouse


text:
Release without jar files?

Hey there, not sure how to contact you, my apologies if this isn't the way.
I noticed (compared to previous releases) that the 1.18.1 release came without the jar files. Is this intentional or did a release-build go wrong?
https://github.com/yannicklamprecht/WorldBorderAPI/releases/tag/1.18.1

Thanks, it's the right way.  Yeah failed, need to re activate artifact upload on release.
Sorry for being late was sunken deeply into No Man's Sky.

authors: mrfloris yannicklamprecht

repo: yannicklamprecht/WorldBorderAPI


text: Table lidarseg not found, but I have downloaded the lidarseg file


text:
Memory Usage is Blown off When Compiled in Ubuntu 12.04

Binary compiled in Ubuntu 12.04 seems to have issue with binary. On one data set, binary compiled in Ubuntu 14 takes 4.2G while binary compiled in Ubuntu 14 takes 25G.

Bazel support Ubuntu 14+. For Ubuntu 12, it prints out a warning.

repo: yarny/gbdt


text:
Implement a DHCP support for our CloudInit images

As of now, our CloudInit ☁ images only support static IPs, but it's much more convenient to use a DHCP in the on-prem setting.

Due to a high volume of the pre-planned work, I am closing this until "better times".

repo: yaroslav-gwit/HosterCore


text:
Manage history feature

There's should be a way to manage chat histories.
As for now there's just a single history instance. But it would be really convenient if user could store several histories and be able to switches them by a command.

Hi
how can I just open the history chat? For example I send a new message then I get the response which allows me to see the history as well. But how can I just reopen that panel to just view the history? Thank you

@dujas Hi, there's a few ways to achieve that:

Firstly you can do it by right click on the very low left Sublime Text corner with a right click, then all opened panel list would appears, where you can chose OpenAI one.
There was a bug within the code, so the OpenAI: Refresh Chat command didn't worked. It is fixed in 2.0.3, which should become available for updating within several hours.
You can set a binding for that by adding an appropriate key to your Key Bindings file like the follow.

{
"keys": [
    "super+shift+;"
],
"command": "show_panel",
"args": {
    "panel": "output.OpenAI"
}

@yaroslavyaroslav thanks a lot! I was able to open the panel list with a right click and then choose the OpenAI panel.
I wasn't able to set a key binding for that. I've tried with different keys combination as well but still it isn't working. I am using build 4143 under Ubuntu 22.
I am looking forward for 2.0.3

@dujas Sorry, but I didn't tested it on anything but macOS. Anyway, if you have enough effort to perform broad testing this plug-in on Linux I'll be happy to consider those issues when I'll have enough time though.

authors: dujas yaroslavyaroslav

repo: yaroslavyaroslav/OpenAI-sublime-text


text:
Fixes for outstanding issues.

Signed-off-by: Joachim Nilsson troglobit@gmail.com

Sure, do you have a list of any particular syscalls/APIs in mind, or a Coverity Scan run perhaps, that I can have a look at?

…, do you have a list of any particular syscalls/APIs in mind, …

How do you think about to improve static source code analysis also for this software?

Are you interested to apply aspect-oriented software development?
How do you think about to encapsulate error detection and corresponding exception handling as a reusable aspect in your software?

I can help set up Coverity Scan, I've done that for quite a few projects of my own. It's been very useful in finding impossible bugs.
The other parts I have no experience with, but seem like interesting topics to put in the issue tracker with a help wanted tag, or similar so other people can pitch in.

Does the tool “Coverity Scan” check usage of POSIX functions?
How do think about to try additional free (and not only gratis) software tools out?

Not really sure what you mean, Coverity Scan is like cppcheck, lint, or sparse, but on massive amounts of steroids.  It mocks behaviour of certain functions know to behave bad just to see how your own code would react, and also finds logical errors 40 levels down that no human brain could possibly dream up.
There are lots of other tools as well that can be run, valgrind immediately comes to mind. The project should explore all the free ones that have conventiently have a GitHub API and/or can be run via Travis-CI. But that's just IMHO. You're the maintainer and should set out goals for your own project. I've just committed to fixing a few bugs.

You're the maintainer …

Not for the software “pingfs” so far. - But I am trying to point further improvement possibilities out.

I've just committed to fixing a few bugs.

Thanks for your contributions.
Would you become interested to adjust any more source code places?

@elfring Ah, now I see, sorry my mistake.
pingfs is a cool/funny idea, just wanted to pitch in with some quick fixes. I have a lot of other commitments as well, but we'll see, maybe :)

authors: elfring troglobit

repo: yarrick/pingfs

license: ISC


text:
Add tutorial How to use Chrome webdriver with custom user profile

Explain how to use Chrome webdriver with custom user profile
off-topic TODO:

Update links to courses in "social block" and remove book icon (and link) from there.
Update image URL for "Result" tab of Image usage (to relative path as on example tab)

The page How to use custom profile was published yesterday, in FAQ section
https://yashaka.github.io/selene/faq/custom-user-profile-howto/
 Table of contents

Recipe for Chrome
Recipe for Firefox
What's about Safari?
Details on Chrome

Change User Data location
Use existing profile
Arguments syntax

Details on Firefox

Use existing profile by path
Use empty profile

Troubleshooting

DevToolsActivePort file doesn't exist
Could not remove old devtools port file
Cannot create default profile directory
Unable to discover open pages
Unable to write Firefox profile

repo: yashaka/selene


text:
str.repr and related functions

these should return a string representation that is legal YASL code.
for example:
const x = 'string'
echo x           # string
echo x->repr()   # 'string'

Strings will be quoted, certain characters will be escaped, etc.
list.repr and table.repr will behave recursively.
Possibly, we need a set.repr as well.

For many types, these could defer to type.tostr, for example booleans and ints.

Added a parameter to tostr in v0.13.0

repo: yasl-lang/yasl


text:
Update installation.md to include exiftool

Added exiftool to recommended applications as well as brew install command.
I did not touch install commands for other package managers as I have not tested them.
Side note: thank you for this amazing file manager. I just switched from nnn... i love it. Everything works as I wanted and expected!

Hi, thanks for the PR, but exiftool is not a dependency of Yazi, it only appears in the default openers, which is just an example.
The default openers also include mpv and mediainfo, so we also shouldn't have mpv as a dependency, it's a bit overkill.

authors: jcaffey sxyazi


text:
Not quite sure where to put in my token.

Not quite sure where to put in my token or what this second field is looking for. The docs say The only configuration parameter required is the Sutro API token.
Screenshot attached. But there are two fields. I've tried putting my token in both. My email in the first field and token in the second. and a few different permutations of things I could think of.

Version of the custom_component
VERSION = "0.0.1"
@*-MacBook-Pro-2 hass-sutro % git log
commit b391d259a1d21be911d666387b16436b1ab9e2f1 (HEAD -> main, origin/main, origin/HEAD)
Author: Yuri Dogandjiev yuri.dogandjiev@live.com
Date:   Wed Jun 26 12:33:01 2024 -0700
Rev version in manifest

Describe the bug
Readme says only the token is needed but when going into the UI there are 2 fields.
Additional info of my env:
root@raspberrypi:~# docker ps
CONTAINER ID   IMAGE                                          COMMAND   CREATED        STATUS        PORTS     NAMES
dca5077c110c   ghcr.io/home-assistant/home-assistant:stable   "/init"   15 hours ago   Up 15 hours             homeassistant
root@raspberrypi:~# docker exec -it dca5077c110c /bin/bash
raspberrypi:/config# ls -l
total 816
-rw-r--r--    1 root     root             2 Jul  8 01:45 automations.yaml
drwxr-xr-x    4 root     root          4096 Jul  8 01:45 blueprints
-rw-r--r--    1 root     root           214 Jul  8 16:59 configuration.yaml
drwxr-xr-x    3 root     root          4096 Jul  8 01:45 custom_components
drwxr-xr-x    2 root     root          4096 Jul  8 01:45 deps
-rw-r--r--    1 root     root         18018 Jul  8 17:08 home-assistant.log
-rw-r--r--    1 root     root         22973 Jul  8 17:04 home-assistant.log.1
-rw-r--r--    1 root     root             0 Jul  8 17:04 home-assistant.log.fault
-rw-r--r--    1 root     root        335872 Jul  8 17:04 home-assistant_v2.db
-rw-r--r--    1 root     root         32768 Jul  8 17:12 home-assistant_v2.db-shm
-rw-r--r--    1 root     root        391432 Jul  8 17:12 home-assistant_v2.db-wal
-rw-r--r--    1 root     root             0 Jul  8 01:45 scenes.yaml
-rw-r--r--    1 root     root             0 Jul  8 01:45 scripts.yaml
-rw-r--r--    1 root     root           161 Jul  8 01:45 secrets.yaml
drwxr-xr-x    2 root     root          4096 Jul  8 01:45 tts
raspberrypi:/config# cat configuration.yaml
# https://www.home-assistant.io/integrations/default_config/
default_config:

# https://www.home-assistant.io/integrations/logger/
logger:
  default: info
  logs:
    custom_components.integration_blueprint: debug
raspberrypi:/config#
raspberrypi:/config# ls -l custom_components/
total 4
drwxr-xr-x    3 root     root          4096 Jul  8 01:26 sutro
raspberrypi:/config# ls -l custom_components/sutro/
total 60
-rw-r--r--    1 1000     1003          3265 Jul  8 00:58 __init__.py
drwxr-xr-x    2 root     root          4096 Jul  8 01:26 __pycache__
-rw-r--r--    1 1000     1003          5258 Jul  8 00:58 api.py
-rw-r--r--    1 1000     1003          5380 Jul  8 00:58 binary_sensor.py
-rw-r--r--    1 1000     1003          4319 Jul  8 00:58 config_flow.py
-rw-r--r--    1 1000     1003          1117 Jul  8 00:58 const.py
-rw-r--r--    1 1000     1003           469 Jul  8 00:58 en.json
-rw-r--r--    1 1000     1003          1126 Jul  8 00:58 entity.py
-rw-r--r--    1 1000     1003           390 Jul  8 00:58 manifest.json
-rw-r--r--    1 1000     1003          8882 Jul  8 00:58 sensor.py
raspberrypi:/config#

Nevermind... had to put in my sutro account email and password.

repo: ydogandjiev/hass-sutro


text:
Patch value even if key is not present

Issue
Currently it seems not possible to patch a value in the config file if the key is not present in the original manifest.
Would be nice to permit it.
Simple example
my-pod.yaml
apiVersion: apps/v1
kind: Pod
metadata:
  name: my-pod
spec:
  containers:
    - image: my-image
      name: my-container

my-chart.config
logger: {}

chartname: my-chart

sharedValues:
  securityContext:
    runAsNonRoot: false
    runAsUser: 1000

globalConfig: {}

fileConfig:
  charts/my-chart/my-pod.yaml: {
    spec.containers[0].securityContext:
    - strategy: newline-yaml
      key: sharedValues.securityContext
  }

SecurityContext is not added to Pod after generation.

This appears to be the expected behavior, as we can't verify the existence or validity of certain fields. However, I can try adding it.

kustohelmize processes the original YAML files by matching each XPath to its corresponding configuration and generating the Go template. Since it does not interpret Kubernetes CRDs, you'll need to add securityContext: to the pod YAML to resolve your issue.

Closing this issue for now.

authors: PierrePIRONIN yeahdongcn

repo: yeahdongcn/kustohelmize


text:
[EXP-33-234] refactor: curve oracle and curve v5 support

add support for curve v5 factory (fixes #213)
build lp token to pool mapping on load (get_lp_token, get_token)
add cached mappings from registries/factories to pools
add address provider ids enum for readability
watch for curve registry updates
watch for new registries deployed
remove and generalize cryptoswap registry logic
deprecate registry in favor of get_registry(pool)
change metapools_by_factory to cached factories
convert token and pool args to checksum address
add read_pool utility to fetch pool_list/pool_count type registries commonly found in curve
vastly simplify logic around factory and registry api

LGTM, though there's a lot going on here so I'm going to wait for another pair of eyes before merging.

authors: BobTheBuidler banteg

repo: yearn/yearn-exporter


text:
Replacing String.trim with Trimmed

This PR is for issue #1010

This pull request #1026 is assigned to @fabriciofx/z, here is why; the budget is 15 minutes, see §4; please, read §27 and when you decide to accept the changes, inform @paulodamaso/z (the architect) right in this ticket; if you decide that this PR should not be accepted ever, also inform the architect; this blog post will help you understand what is expected from a code reviewer; there will be no monetary reward for this job

@0crat assign me

@0crat assign me (here)

@paulodamaso There is an unrecoverable failure on my side. Please, submit it here:
PID: 11@8af595d0a0c8, thread: PQ-C3FFK3YAY
com.zerocracy.claims.ClaimIn[214] java.lang.IllegalArgumentException: Parameter "age" not found in "Order was canceled" among: [comment, job, issue, repo, cause, _parent_sig, flow, login]

0.51.1: CID: 8b73f5e0-8723-45d9-b316-e42dfe5d58c7, Type: "Order was canceled"

@0crat assign me (here)

@paulodamaso This pull request #1026 is assigned to @paulodamaso/z, here is why; the budget is 15 minutes, see §4; please, read §27 and when you decide to accept the changes, inform @paulodamaso/z (the architect) right in this ticket; if you decide that this PR should not be accepted ever, also inform the architect; this blog post will help you understand what is expected from a code reviewer; there will be no monetary reward for this job

Manual assignment of issues is discouraged, see §19: -5 point(s) just awarded to @paulodamaso/z

@paulodamaso Please have a look at the review fixes.

@rultor merge

@rultor merge

@paulodamaso OK, I'll try to merge now. You can check the progress of the merge here

@rultor merge

@fanifieiev @paulodamaso Oops, I failed. You can see the full log here (spent 30min)
[WARNING] Error fetching link: https://github.com/hamcrest/JavaHamcrest/hamcrest-library/apidocs/package-list. Ignored it.
[WARNING] Error fetching link: http://velocity.apache.org/engine/devel/velocity-engine-core/apidocs/package-list. Ignored it.
[WARNING] Error fetching link: https://github.com/yegor256/xembly/apidocs/package-list. Ignored it.
[WARNING] Error fetching link: http://restfb.com/apidocs/package-list. Ignored it.
[WARNING] Error fetching link: https://projectlombok.org/apidocs/package-list. Ignored it.
[WARNING] Error fetching link: https://github.com/google/guava/guava/apidocs/package-list. Ignored it.
[WARNING] Error fetching link: https://github.com/llorllale/cactoos-matchers/apidocs/package-list. Ignored it.
[WARNING] Error fetching link: http://www.jcabi.com/jcabi-matchers/apidocs/package-list. Ignored it.
[WARNING] Error fetching link: https://jsr311.dev.java.net/apidocs/package-list. Ignored it.
[WARNING] Error fetching link: http://www.saxonica.com/apidocs/package-list. Ignored it.
[WARNING] Error fetching link: http://hibernate.org/validator/hibernate-validator/apidocs/package-list. Ignored it.
[WARNING] Error fetching link: http://junit.org/junit5/apidocs/package-list. Ignored it.
[WARNING] Error fetching link: http://junit.org/junit5/apidocs/package-list. Ignored it.
[WARNING] Error fetching link: http://junit.org/junit5/apidocs/package-list. Ignored it.
[WARNING] Error fetching link: http://findbugs.sourceforge.net/apidocs/package-list. Ignored it.
[WARNING] Error fetching link: http://junit.org/apidocs/package-list. Ignored it.
[INFO]
7 warnings
[WARNING] Javadoc Warnings
[WARNING] javadoc: warning - Error fetching URL: http://docs.mockito.googlecode.com/hg/latest/
[WARNING] javadoc: warning - Error fetching URL: http://www.h2database.com/javadoc/
[WARNING] javadoc: warning - Error fetching URL: http://jolbox.com/bonecp/downloads/site/apidocs/
[WARNING] /home/r/repo/src/main/java/org/takes/Request.java:47: warning - Tag @link: reference not found: org.takes.rq
[WARNING] /home/r/repo/src/main/java/org/takes/Response.java:60: warning - Tag @link: reference not found: org.takes.rs
[WARNING] /home/r/repo/src/main/java/org/takes/servlet/HttpServletResponseFake.java:60: warning - Tag @link: reference not found: org.takes.servlet.HttpServletResponseFakeTest
[WARNING] /home/r/repo/src/main/java/org/takes/misc/Transform.java:39: warning - Tag @link: reference not found: org.cactoos.iterator.Mapped
[INFO] Generating "JaCoCo Aggregate" report     --- jacoco-maven-plugin:0.7.7.201606060606:report-aggregate
[INFO] Generating Sitemap.
[INFO] Rendering 1 generated Doxia document: 1 xdoc
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 04:34 min
[INFO] Finished at: 2020-02-07T15:33:02+00:00
[INFO] Final Memory: 52M/511M
[INFO] ------------------------------------------------------------------------
+ mvn clean
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building take 2.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-invoker-plugin/2.0.0/maven-invoker-plugin-2.0.0.pom

[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.162 s
[INFO] Finished at: 2020-02-07T15:33:05+00:00
[INFO] Final Memory: 14M/457M
[INFO] ------------------------------------------------------------------------
[ERROR] Plugin org.apache.maven.plugins:maven-invoker-plugin:2.0.0 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-invoker-plugin:jar:2.0.0: Could not transfer artifact org.apache.maven.plugins:maven-invoker-plugin:pom:2.0.0 from/to Maven (http://repo.maven.apache.org/maven2): Failed to transfer file: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-invoker-plugin/2.0.0/maven-invoker-plugin-2.0.0.pom. Return code is: 501, ReasonPhrase: HTTPS Required. -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginResolutionException
container fcfa5bdb8c1edaf307fccdac951da80f004d6d9e5229f6b2b2549408b3bf5a8d is dead
Fri Feb  7 16:33:24 CET 2020

Order was finished: +15 point(s) just awarded to @paulodamaso/z

Payment to ARC for a closed pull request, as in §28: +10 point(s) just awarded to @paulodamaso/z

authors: 0crat fanifieiev paulodamaso rultor


text:
redux-saga in TypeScript & Angular CLI

Anyone successfully used redux-saga in Angular CLI? It runs for me, but I can't test because at the moment, the testing portion is still using Systemjs vs. Webpack. According to the bug I filed, TypeScript 2.1 will support generating them out.
Anyone had any luck using redux-saga in Angular 2? When I was doing Angular 1 with ES6, I just had to use the babel-polyfill in Webpack, and all was well. Looking at the RC of TypeScript 2.1, it appears I can use a -lib es2015.generator in the tsconfig.json.

Update on this:

Manually install TypeScript 2.1 or higher.
Ensure the tsconfig.json has target of "ES6".

While I still get the compilation errors of "can't find Promise" ect., ng test it works. All tests pass including my Redux Saga generator functions. ng serve continues to work as normal.

repo: yelouafi/redux-saga


text:
plugin shows authentication data: uname and password in Network tab

Describe the bug
plugin shows authentication data: uname and password in Network tab
Steps to reproduce
Create a datasource for json url that requires user name and password
Note: bugs will be fixed only if enough information provided to reproduce the issue
Screenshots

Version Details:

Grafana version : 8.5.2
Plugin version : latest

@yosiasz - thanks for reporting this. Need few more details. how the authentication details were provided? I mean what type of auth? Panel json and screenshot would be useful.
Also what version of plugin you are using?

Also shall I assume all the sensitive information configured only in datasource settings page and not in panel. Any information entered in panel will be available in network by design.

authors: yesoreyeram yosiasz

repo: yesoreyeram/grafana-infinity-datasource


text:
关于测试

您好，我想知道您的list放进dataloader或者是您自己的customdataset的时候有打乱顺序吗

自动打乱的
https://github.com/yeyupiaoling/VoiceprintRecognition-Pytorch/blob/3797c9659837700b7cdb96e0fe9e27ea47b5fbcf/train.py#L96

在测试的时候应该没有打乱吧，我记得shuffle好像默认是false

测试不用打乱啊

好的好的谢谢


text:
cygheap base mismatch detected

When I run
psvimg-create -n app -K <myKey> app PCSG90096/app
It returns an error:
cygheap base mismatch detected - 0x1605408/0xF95408. This problem is probably due to using incompatible versions of the cygwin DLL. Search for cygwin1.dll using the Windows Start->Find/Search facility and delete all but the most recent version.  The most recent version *should* reside in x:\cygwin\bin, where 'x' is the drive on which you have installed the cygwin distribution.  Rebooting is also suggested if you are unable to find another cygwin DLL.       0 [main] psvimg-create 5936 fork: child -1 - forked process 12876 died unexpectedly, retry 0, exit code 0xC0000142, errno 11 fork: Resource temporarily unavailable

Your error message literally gives you the solution.

I have no Cygwin installed on my PC. The cygwin1.dll file that I only have was from the zip that I downloaded.

github is not a support forum, thanks

repo: yifanlu/psvimgtools


text:
How to get the test result

作者，你好，想要请问一下，提交给kitti是只需要转换为txt格式吗，不要转化坐标系吗？

是的，kitti服务器需要的是txt文件的压缩文件包，openpcdet可以直接生成。

---- 回复的原邮件 ----

发件人
***@***.***>

日期
2023年03月04日 21:06

收件人
***@***.***>

抄送至
***@***.***>

主题
[yifanzhang713/IA-SSD] How to get the test result (Issue #45)

作者，你好，想要请问一下，提交给kitti是只需要转换为txt格式吗，不要转化坐标系吗？
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you are subscribed to this thread.Message ID: <yifanzhang713/IA-SSD/issues/45@github.com>

非常感谢！！！


text:
有没有人能教一下到底Grop要怎用

指令 python make_book.py -model groq --model_list llama3-8b-8192 --groq_key [my key] --book_name [bookname] --language zh-hans
直接跳指令出来说没groq

我看看之后回你

指令 python make_book.py -model groq --model_list llama3-8b-8192 --groq_key [my key] --book_name [bookname] --language zh-hans
直接跳指令出来说没groq

You can try this:
python3 make_book.py --book_name test_books/animal_farm.epub --groq_key [your_key] --model groq --model_list groq

@umm233 thanks


text:
TeX required?

I cloned this minimal example and tried to build the book in RStudio IDE - following the instructions in the getting started section of the bookdown book.  I got an error about _main.tex which I assume was due to me not having TeX installed.  I deleted the tex file and the pdf_book default and then could successfully build the html version.  My suggestion is that, if I'm correct about the TeX cause of error here, that it be clearer either from the package or the bookdown book that TeX is required to be installed -- or better yet provide an option of the minimal example that's just html to make it even easier for people to get started with the first example.

Good suggestion. I have commented out the pdf format. Thanks!

authors: eamcvey yihui

repo: yihui/bookdown-minimal

license: Unlicense


text:
fix #1 add missing argument for recusrsive removeDirectory method call

Q
A

Is bugfix?
✔

New feature?
❌

Breaks BC?
❌

Tests pass?
✔

Fixed issues
1

Merged. Thank you!

authors: Insolita samdark

repo: yiisoft/files


text:
Add RequestCookies class to collect HTTP cookies

Created the RequestCookies class to manage cookies.
It gets cookies from a RequestProviderInterface.
Added methods to retrieve a cookie by name and check if a cookie exists.

Q
A

Is bugfix?
❌

New feature?
✔

Breaks BC?
❌

Thanks for the pull request. I wonder what is the benefit compared to current master:
public function actionX(RequestProviderInterface $requestProvider)
{
    $cookies = $requestProvider->get()->getCookieParams();
	if (!empty($cookies['x'])) {
        $x = $cookies['x'];
        // ...
    }
}

To me, new code looks quite similar:
public function actionX(RequestCookies $requestCookies)
{
    $cookies = $requestProvider->get()->getCookieParams();
	if ($requestCookies->has('x')) {
        $x = $requestCookies->get('x');
        // ...
    }
}

To me, new code looks quite similar:

New code is simpler and semantically more beautiful.

@hacan359 Thank you 👍

authors: hacan359 samdark vjik

repo: yiisoft/request-provider


text:
serialized object in db

hi all
system
php5.6
pgsql9+
yii2.0.6
I have simple model
class Table
	extends \yii\db\ActiveRecord
{
	.........
	/**
	 * @inheritdoc
	 */
	public function rules() {
		return [
		        ........
			[['object'], 'string'],
			.......
		];
	}
}

migrations:
$this->createTable('{{%table}}', [
			'id'             => $this->bigPrimaryKey(),
			...
			'object'         => $this->text(),
]);

and component
class Manager
	extends Component
{
	public $a1 = null;
	public $a2 = 'default_manager';
	public $a3 = null;
	public $a4 = 0;
	public $a5 = null;

	public function changeStatus($status) {
		return true;
	}
}

I doing next action
$manager = Yii::createObject([ ..........  ]);
$model = new Table();
.....
$model->object = serialize($manager);
$model->save();

and .....
$object = unserialize($model->object);
trying unserialize data and have

PHP Notice – yii\base\ErrorException
unserialize(): Error at offset 185 of 189 bytes

because data in $model->object is corrupt
if I use base64 -
$model->object = base64_encode(serialize($manager));
$model->save();
$object =  unserialize(base64_decode($model->object));

no problem
and objects in yii\rbac\DbManager - serialized and unserialised wo problem.... but DbManager not use AR model for insert data in db

Try to use blob type for DB field

As far as I see, the problem does not relate Yii, but PHP and DBMS. I'm closing it for now. Feel free to post your thoughts here

yii\rbac\DbManager used "text" type in DB also, not a blob

Is it related to https://github.com/yiisoft/yii2/issues/10176?

hm ...
in my exapmle DbManager is work. I related to DbManager as example. But the bug is similar. in db I see trimmed data
O:40:"app\models.........\Table":4:{s:4:"name";s:6:"author";s:53:"

Most likely field max value size if not enough to contain all the data.

no, "text"-type of field in unlimited, and if i use base64 - lenght  is even more

text is not unlimited, it is limited to 65536 bytes, see  https://dev.mysql.com/doc/refman/5.7/en/storage-requirements.html

So it is the same as #10176

@cebe, we are talking about PostgreSQL here.

oops, sorry :)

Can you catch the serialized string before it is saved and try to run INSERT query with it manually?
Does it saves data into the text column correctly?

If direct saving of the string runs correctly, try to enable Connection::emulatePrepare.
May be PDO parameter binding causes this trouble.

i have test, i put string data in "text" field and put data in JSON in one model, in one transaction
see difference:
in text
O:21:"common\models\Manager":7:s:7:"account";s:1:"1";s:4:"name";s:15:"default_manager";s:6:"amount";d:369;s:8:"currency";i:0;s:6:"target";a:1:{s:2:"id";i:21;}s:27:"
and in JSON:
{"manager":"O:21:\"common\\models\\Manager\":7:{s:7:\"account\";s:1:\"1\";s:4:\"name\";s:15:\"default_manager\";s:6:\"amount\";d:369;s:8:\"currency\";i:0;s:6:\"target\";a:1:{s:2:\"id\";i:21;}s:27:\"\u0000yii\\base\\Component\u0000_events\";a:0:{}s:30:\"\u0000yii\\base\\Component\u0000_behaviors\";N;}"}
and see .... \u0000 - symbol - NULL in unicode .

So PostgreSQL itself rejects the string?
If you try to save string with \u0000 symbol it ends on it?

no .... i try save sdfdsfsfsa\u0000dfsafdsafsfsa - and PG saved
NULL is not terminating in model

and from where NULL undertook?

Can you retrieve orrginal text of serialized data?
And try save it without Yii, PDO and even PHP being involved?
Post the actual trouble-making string here.

string(241) "O:21:"common\models\Manager":7:{s:7:"account";s:1:"1";s:4:"name";s:15:"default_manager";s:6:"amount";d:492;s:8:"currency";i:0;s:6:"target";a:1:{s:2:"id";i:22;}s:27:"yii\base\Component_events";a:0:{}s:30:"yii\base\Component_behaviors";N;}"

but NULL is not show, and string size 237

So, does PostgreSQL trims this string while saving without PHP envolved?
Can you try it at console client or "phppgadmin"?

in C/C++ NULL is the end of string
in Component
yii\base\Component _events
yii\base\Component _behaviors
private fields
in https://github.com/yiisoft/yii2/issues/10176 - same problem (private fields)
in phppgadmin string data is saved to db, but no unserialised, maybe NULL is marker of private field, and from JSON with terminating NULL - unserialized wo problem

http://php.net/manual/en/function.serialize.php

Note:
Object's private members have the class name prepended to the member name; protected members have a '*' prepended to the member name. These prepended values have null bytes on either side.

Maybe DbManager should use a binary column type to store this data, or store as json instead.

Rule extends Object and have not a private fields
and yes ....

These prepended values have null bytes on either side.

Code to reproduce:
$model = new Item(); // refer to table with 'description' column of type 'text'
$model->description = 'begin ' . "\x00" . ' end';
echo $model->canonicalDescription;
$model->save(false);

Same problem with varying(255) column type

Relates:
http://stackoverflow.com/questions/11322624/why-psycopg2-can-not-insert-string-like-x00

@pkirill99

Rule extends Object and have not a private fields

But in related issue someone used custom rule with private property.
Re your issue, what's the problem now? Just change column type to some binary format. Nothing Yii can do when you manually try to store NULL bytes in text column.

it is not a true solution, it is a crutch
if NULL is a normal part of string in PHP - it means has to work also it is a problem of a framework

Then what should Yii do if NULL byte detected in string?

Model must should terminating for save in DB (PG and any with same architecture) and unterminating for external code
otherwise it is necessary to do handlers of NULL everywhere

You mean escaping the NULL bytes in some way and then unescaping when retrieving? I don't think that's possible. Even if possible, it would change string size and add magic (data now different in db).
PHP manual even says:

Note that this is a binary string which may include null bytes, and needs to be stored and handled as such. For example, serialize() output should generally be stored in a BLOB field in a database, rather than a CHAR or TEXT field.

>>>binary<<< string

Could it be this? http://blog.rwky.net/2011/01/php-pgsql-pdo-and-null-bytes.html

@SamMousa
Yes, you are right. This issue was closed as 'not a bug':
https://bugs.php.net/bug.php?id=53756

Serialized content of private/protected properties contain \0 inside the
generated string. This causes truncation, to avoid it you need to change the
column type to binary and write data as a binary string.

Thank you for digging in.
I'm closing the issue since it's not Yii2 - related

@SilverFire
IMO, it is Yii2-related - since framework proposes text type in migrations and thus creates prerequsites for possible issues.
For example in:
https://github.com/yiisoft/yii2/blob/master/framework/rbac/migrations/schema-pgsql.sql#L20
as it is supposed to save serialized object in \yii\rbac\DbManager::addRule - the issue may occur (or may not - depending on specific object).
From the other side, Yii2 does not provide migrations for DbSession, but in phpdoc for \yii\web\DbSession::$sessionTable it is exactly stated that data column should be of BLOB type.

@SDKiller how does the framework suggest a type?
SchemaBuilderTrait also has ->binary()..

no .... this problem is not in migrations and not in field type
"text" = "text"
"text" != "binary"

authors: SDKiller SamMousa SilverFire cebe kidol klimov-paul pkirill99


text:
Yii2 js router?

Are there any plans or is there already something like JS router in Yii2 (meaning generating url routes with javascript)?

No, there's nothing like that currently.

What's use case for it?

You can generate the url in php, and get it in javascript.

For instance if I have to generate url in js script what is the best way to do it without knowing if pretty urls are on or not?

Current options:

If you are generating the JS via PHP then you can use yii's PHP methods (e.g. Url helper) to generate the Url and use it in your client script. e.g.

$view->registerJs('$("#input-id").plugin({url:' . Url::to(['/site/test']) . '});');

If you want to use URL at runtime in javascript... one way is to store the URL in HTML5 data attributes via PHP again:

<input id="input-id" data-url='<?= Url::to(['/site/test']) ?>'>

then in your javascript
function doSomething() {
    var vUrl = $("#input-id").data('url'), vData;
    $.ajax({
        url: vUrl,
        type: 'post',
        data: vData
    });

Well, thoretically Rules could be converted to JS but I'm not sure how to deal with custom ones, rest ones etc.

Initially, I went with @kartik-v first option but was wondering if there is a slimmer solution. It is much nicer when you have a single Asset class for your client script. In either the first or the second options I have to register js separately from the Asset file and it is not that nice. Anyway thanks @kartik-v @samdark

+1
I'd love to see something like Rails js-routes: https://github.com/railsware/js-routes
Trying to pass all sorts of urls and routes to javascript doesn't work well with an angular single page application.

+1
Like this
Yii.app.createUrl('admin/device/deleteDeviceCategory')
Yii.app.createUrl({path: 'admin/device/deleteDeviceCategory', id: 100})

+1

In case you want to navigate based on a select value, you need to generate de Url in JavaScript.
I have this approach in JS:

Url is generated on server, and values on client javascript.

authors: Mirocow axelson juanmacias kartik-v lichunqiang samdark timmy78 tsvetann


text:
\base\Security should use PHP's password_hash() by default

password_hash() was introduced in PHP 5.5 and today I think the way Security::generatePasswordHash() and validatePassword() choose between that and using crypt() is silly. Better to simply prefer password_hash() when available and avoid the confusing $passwordHashStrategy config variable. Moreover, using crypt() is the default strategy at present.
Options

Change algorithms to use password_hash() when available and remove $passwordHashStrategy → Breaks BC.
Change algos, leave $passwordHashStrategy alone but ignore it → works, is BC, but unsavory, perhaps even dishonest.
Like option 2 but throw an exception with a specific message when an app sets $passwordHashStrategy → is BC but how exactly to implement?
Introduce a third value $passwordHashStrategy = 'default', as new default, and this strategy prefers password_hash() when available over crypt() → BC

I think option 1 is a possibility for Yii 2.1. Options 3 and 4 could be done now.

3. Could be done via check in init.

I just updated option 3 because it isn't really BC. It's just not a big problem to upgrade.
@samdark if $passwordHashStrategy can't be changed after init() then I like this option rather a lot.

Right. It can be changed..

Another option

Keep current algorithms and change the default $passwordHashStrategy = 'password_hash' → Not BC for anyone on PHP 5.4 but easily fixed in config. Disadvantage: doesn't automatically get apps to use password_hash() when the upgrade from 5.4 happens.

Password hashes produced by our current code (w/ any strategy) are compatible with PHP password_hash, right?

yes, they are. afaik, they are two ways to access the same underlying Bcrypt lib.

How about marking $passwordHashStrategy w/ @deprecated tag and not using it anymore? That's quite prominent in IDEs, is compatible in terms of resulting hash and won't break existing apps.

I'm unfamiliar with the behavior of @deprecated in either IDEs or in the Yii online docs. So long as it is obvious then the objection to option 2 is overcome and I like it.

My first draft but I want to add unit tests for strategy compatibility.
And the input checking in validatePassword() no longer seems quite right.

I put password_verify() at the top because I assume it checks its inputs so we don't have to. But it returns simply true/false, it doesn't throw errors.
Checking type and non-emptiness of both $password and $hash seems reasonable enough but, beyond that, if hashes could have come from another source, which they can, then why not let crypt() decide the rest?

authors: samdark tom--


text:
ardb binary file is not portable

I have packaged rpm file for ardb , it runs ok  in local , but others not.

./ardb-server --help
Illegal instruction

rebuild src.rpm file locally, rpm file works again,
so I believe it's not portable .
as far as i see, it probably due to build jemalloc with options "-O3"

echo "<<<<< Done unpacking JEMALLOC"

Unpacking JEMALLOC
<<<<< Done unpacking JEMALLOC
echo ">>>>> Building JEMALLOC" &&
cd /builddir/build/BUILD/ardb-0.9.7/src/../deps/jemalloc-5.0.1 &&
./configure  &&
make build_lib_static &&
echo "<<<<< Done building JEMALLOC"
Building JEMALLOC
checking for xsltproc... false
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
..............................
===============================================================================
jemalloc version   : 5.0.1-0-g896ed3a8b3f41998d4fb4d625d30ac63ef2d51fb
library revision   : 2

CONFIG             :
CC                 : gcc
CONFIGURE_CFLAGS   : -std=gnu11 -Wall -Wsign-compare -Wundef -pipe -g3 -fvisibility=hidden -O3 -funroll-loops
SPECIFIED_CFLAGS   :
EXTRA_CFLAGS       :
CPPFLAGS           : -D_GNU_SOURCE -D_REENTRANT
CXX                : g++
CONFIGURE_CXXFLAGS : -fvisibility=hidden -O3
SPECIFIED_CXXFLAGS :
EXTRA_CXXFLAGS     :
LDFLAGS            :
EXTRA_LDFLAGS      :
DSO_LDFLAGS        : -shared -Wl,-soname,$(@F)
LIBS               : -lm  -lpthread -ldl
RPATH_EXTRA        :
XSLTPROC           : false
XSLROOT            :
PREFIX             : /usr/local
BINDIR             : /usr/local/bin
DATADIR            : /usr/local/share
INCLUDEDIR         : /usr/local/include
LIBDIR             : /usr/local/lib
MANDIR             : /usr/local/share/man
srcroot            :
abs_srcroot        : /builddir/build/BUILD/ardb-0.9.7/deps/jemalloc-5.0.1/
objroot            :
abs_objroot        : /builddir/build/BUILD/ardb-0.9.7/deps/jemalloc-5.0.1/
JEMALLOC_PREFIX    :
JEMALLOC_PRIVATE_NAMESPACE
: je_
install_suffix     :
malloc_conf        :
autogen            : 0
debug              : 0
stats              : 1
prof               : 0
prof-libunwind     : 0
prof-libgcc        : 0
prof-gcc           : 0
thp                : 1
fill               : 1
utrace             : 0
xmalloc            : 0
lazy_lock          : 0
cache-oblivious    : 1
cxx                : 0
make[2]: Entering directory `/builddir/build/BUILD/ardb-0.9.7/deps/jemalloc-5.0.1'
gcc -std=gnu11 -Wall -Wsign-compare -Wundef -pipe -g3 -fvisibility=hidden -O3 -funroll-loops -c -D_GNU_SOURCE -D_REENTRANT -Iinclude -Iinclude -DJEMALLOC_NO_PRIVATE_NAMESPACE -o src/jemalloc.sym.o src/jemalloc.c
nm -a src/jemalloc.sym.o | gawk -f include/jemalloc/internal/private_symbols.awk > src/jemalloc.sym
gcc -std=gnu11 -Wall -Wsign-compare -Wundef -pipe -g3 -fvisibility=hidden -O3 -funroll-loops -c -D_GNU_SOURCE -D_REENTRANT -Iinclude -Iinclude -DJEMALLOC_NO_PRIVATE_NAMESPACE -o src/arena.sym.o src/arena.c

u can use MALLOC=libc make to build without jemalloc.

have tried MALLOC=libc ,move binary file to another server ,
got the same error:
./ardb-server --help
Illegal instruction
this need further investgation , many thanks .

traps: ardb-server[24459] trap invalid opcode ip:747a3d sp:7fff2ec5dac8 error:0 in ardb-server[400000+4b1000]

can you share the spec file for ardb?

Name:           ardb
Version:        0.9.7
Release:        1%{?dist}
Summary:        A redis protocol compatible nosql
License:        BSD-3-Clause
URL:            https://github.com/yinqiwen/ardb
Source0:        %{name}-%{version}.tar.gz
Source1:        %{name}.service
Source11:        jemalloc-5.0.1.tar.bz2
Source12:        rocksdb-5.12.2.tar.gz
Source13:        snappy-1.1.4.tar.gz
BuildRequires:   gcc-c++ >= 4.8.1
BuildRequires:   glibc-devel
BuildRequires:   libtool
BuildRequires:   bzip2-devel
BuildRequires:   gflags-devel
BuildRequires:   zlib-devel
BuildRequires:   systemd
Requires:        glibc
Requires:        gflags
Requires:        libgcc
Requires:        libstdc++
Requires:        bzip2
Requires:        zlib
Requires:        systemd
%description
A redis protocol compatible nosql, it support multiple storage engines as backend
like Google's LevelDB, Facebook's RocksDB, OpenLDAP's LMDB, PerconaFT, WiredTiger, ForestDB.
%prep
%setup -q
install %{SOURCE11} deps/
install %{SOURCE12} deps/
install %{SOURCE13} deps/
%build
sed -i 's/0.9.6/0.9.7/g'  src/Makefile
#MALLOC=libc storage_engine=rocksdb make
storage_engine=rocksdb make
%install
rm -rf $RPM_BUILD_ROOT
%{__mkdir} -p $RPM_BUILD_ROOT%{_bindir}
%{__mkdir} -p $RPM_BUILD_ROOT%{_sysconfdir}/ardb
%{__mkdir} -p $RPM_BUILD_ROOT%{_sharedstatedir}/ardb
%{__mkdir} -p $RPM_BUILD_ROOT/var/log/ardb
%{__install} -p -m 755 src/ardb-repair $RPM_BUILD_ROOT%{_bindir}
%{__install} -p -m 755 src/ardb-server $RPM_BUILD_ROOT%{_bindir}
%{__install} -p -m 755 src/ardb-test   $RPM_BUILD_ROOT%{_bindir}
%{__install} -p -m 644 ardb.conf $RPM_BUILD_ROOT%{_sysconfdir}/ardb/
%{__mkdir} -p $RPM_BUILD_ROOT%{_unitdir}
%{__install} -p -m 644 %{SOURCE1} $RPM_BUILD_ROOT%{_unitdir}/
sed -i 's#home.*#home /var/lib/ardb#g' $RPM_BUILD_ROOT%{_sysconfdir}/ardb/ardb.conf
sed -i 's#stdout#/var/log/ardb/ardb-server.log#g' $RPM_BUILD_ROOT%{_sysconfdir}/ardb/ardb.conf
%clean
rm -rf $RPM_BUILD_ROOT
%pre
Add the "ardb" user
getent group ardb  >/dev/null || groupadd -r ardb
getent passwd ardb >/dev/null || useradd -r -g ardb -s /sbin/nologin -d /var/lib/ardb -c "ardb user"  ardb
exit 0
%post
%systemd_post %{name}.service
%preun
%systemd_preun %{name}.service
%postun
%systemd_postun %{name}.service
%files
%defattr(-,root,root,-)
%{_bindir}/*
%{_unitdir}/ardb.service
%config(noreplace) %{_sysconfdir}/ardb/ardb.conf
%dir %attr(0755,ardb,ardb) %{_sharedstatedir}/ardb
%dir %attr(0755,ardb,ardb) /var/log/ardb
%doc README.md
%license LICENSE

authors: gupta2007vaibhav purplegrape yinqiwen

repo: yinqiwen/ardb


text:
...

...

Useless Activity I have do in class make me trigger.

My crippling OCD

Fuck this Project Fuck this class


text:
Add Codecov to GitHub Actions

Made the following changes

Added coverage.xml to setup.cfg
Added Codecov Action to workflow.yml

Codecov Report

:exclamation: No coverage uploaded for pull request base (master@d87a991). Click here to learn what that means.
The diff coverage is n/a.

:mega: This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more
@@            Coverage Diff            @@
##             master       #2   +/-   ##
=========================================
  Coverage          ?   96.34%
=========================================
  Files             ?        6
  Lines             ?      246
  Branches          ?        0
=========================================
  Hits              ?      237
  Misses            ?        9
  Partials          ?        0

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


text:
b3140-cuda版本无法识别文本转声音引擎

b3140-cuda版本无法识别文本转声音引擎

我暂时关闭了文转声~目前在考虑要不要使用chattts这样的开源方案

authors: ylsdamxssjxxdd zhuanyedecainiao

repo: ylsdamxssjxxdd/eva


text:
提示张量梯度索引缺失

提交前必须检查以下项目

[X] 请确保使用的是仓库最新代码（git pull），一些问题已被解决和修复。
[X] 我已阅读项目文档和FAQ章节并且已在Issue中对问题进行了搜索，没有找到相似问题和解决方案
[X] 第三方插件问题：例如llama.cpp、text-generation-webui等，同时建议到对应的项目中查找解决方案

问题类型
模型训练与精调
基础模型
Alpaca-2-7B
操作系统
Linux
详细描述问题
# 请在此处粘贴运行代码（如没有可删除该代码块）

没有使用lora微调
依赖情况（代码类问题务必提供）
# 请在此处粘贴依赖情况
```torchrun --nnodes 1 --nproc_per_node 1 run_clm_sft_with_peft.py \
    --deepspeed ${deepspeed_config_file} \
    --model_name_or_path ${pretrained_model} \
    --tokenizer_name_or_path ${chinese_tokenizer_path} \
    --dataset_dir ${dataset_dir} \
    --per_device_train_batch_size ${per_device_train_batch_size} \
    --per_device_eval_batch_size ${per_device_eval_batch_size} \
    --do_train \
    --seed $RANDOM \
    --fp16 \
    --num_train_epochs 1 \
    --lr_scheduler_type cosine \
    --learning_rate ${lr} \
    --warmup_ratio 0.03 \
    --weight_decay 0 \
    --logging_strategy steps \
    --logging_steps 10 \
    --save_strategy steps \
    --save_total_limit 3 \
    --evaluation_strategy steps \
    --eval_steps 100 \
    --save_steps 200 \
    --gradient_accumulation_steps ${gradient_accumulation_steps} \
    --preprocessing_num_workers 8 \
    --max_seq_length 1024 \
    --output_dir ${output_dir} \
    --overwrite_output_dir \
    --ddp_timeout 30000 \
    --logging_first_step True \
    --torch_dtype float16 \
    --gradient_checkpointing \
    --ddp_find_unused_parameters False

### 运行日志或截图

请在此处粘贴运行日志
```[WARNING|logging.py:295] 2023-08-11 15:00:08,865 >> use_cache=True is incompatible with gradient checkpointing. Setting use_cache=False...
/home/fist/miniconda3/envs/llama2/lib/python3.10/site-packages/torch/utils/checkpoint.py:31: UserWarning: None of the inputs have requires_grad=True. Gradients will be None
warnings.warn("None of the inputs have requires_grad=True. Gradients will be None")
Traceback (most recent call last):
File "/home/fist/Belle/Chinese-LLaMA-Alpaca-2-main/scripts/training/run_clm_sft_with_peft.py", line 438, in
main()
File "/home/fist/Belle/Chinese-LLaMA-Alpaca-2-main/scripts/training/run_clm_sft_with_peft.py", line 411, in main
train_result = trainer.train(resume_from_checkpoint=checkpoint)
File "/home/fist/miniconda3/envs/llama2/lib/python3.10/site-packages/transformers/trainer.py", line 1539, in train
return inner_training_loop(
File "/home/fist/miniconda3/envs/llama2/lib/python3.10/site-packages/transformers/trainer.py", line 1809, in _inner_training_loop
tr_loss_step = self.training_step(model, inputs)
File "/home/fist/miniconda3/envs/llama2/lib/python3.10/site-packages/transformers/trainer.py", line 2665, in training_step
self.accelerator.backward(loss)
File "/home/fist/miniconda3/envs/llama2/lib/python3.10/site-packages/accelerate/accelerator.py", line 1847, in backward
self.deepspeed_engine_wrapped.backward(loss, **kwargs)
File "/home/fist/miniconda3/envs/llama2/lib/python3.10/site-packages/accelerate/utils/deepspeed.py", line 167, in backward
self.engine.backward(loss, **kwargs)
File "/home/fist/miniconda3/envs/llama2/lib/python3.10/site-packages/deepspeed/utils/nvtx.py", line 15, in wrapped_fn
ret_val = func(*args, **kwargs)
File "/home/fist/miniconda3/envs/llama2/lib/python3.10/site-packages/deepspeed/runtime/engine.py", line 1895, in backward
self.optimizer.backward(loss, retain_graph=retain_graph)
File "/home/fist/miniconda3/envs/llama2/lib/python3.10/site-packages/deepspeed/runtime/zero/stage_1_and_2.py", line 1902, in backward
self.loss_scaler.backward(loss.float(), retain_graph=retain_graph)
File "/home/fist/miniconda3/envs/llama2/lib/python3.10/site-packages/deepspeed/runtime/fp16/loss_scaler.py", line 63, in backward
scaled_loss.backward(retain_graph=retain_graph)
File "/home/fist/miniconda3/envs/llama2/lib/python3.10/site-packages/torch/_tensor.py", line 487, in backward
torch.autograd.backward(
File "/home/fist/miniconda3/envs/llama2/lib/python3.10/site-packages/torch/autograd/init.py", line 200, in backward
Variable._execution_engine.run_backward(  # Calls into the C++ engine to run the backward pass
RuntimeError: element 0 of tensors does not require grad and does not have a grad_fn

有办法设置offload，使用stage3吗，我在使用stage3的时候，训练的损失总是出现NaN，是必须使用fp32训练吗


text:
KI Web V2 - manage submission - list by filter

Goal :
Manage page for logged in user, add new feature Manage Submissions. Will show all submission and support filter by status.

success deployed


text:
High Voltage を導入する

静的ページの場合、名前違うだけのコントローラやビューフォルダが乱造されてしまうので High Voltage を利用して PagesController と app/views/pages に集約する。

作業完了したので close 。


text:
AY-7222 Make editorial package reviewable

Changelog Description
resolve #44
Make the editorial pckg intermediate media reviewable.
This PR needs to be tested alongside: https://github.com/ynput/ayon-core/pull/1041
Testing notes:

Ensure some reviewable setup is configured for Resolve

Open a timeline in Resolve and publish an editorial package from it
Ensure the intermediate media is properly processed as a reviewable

Looking good @robin-ynput - Lets enhance it even more please and add Review toggle into instance attributes and make it optional.

Looking good @robin-ynput - Lets enhance it even more please and add Review toggle into instance attributes and make it optional.

will do !

repo: ynput/ayon-resolve


text:
Create TodoItem service.

Create interfaces for the services and their respective implementations. For now we will only implement CRUD methods for access to the database.

You can close this one, as I resolved this in another issue :#

Closing this issue as it is resolved in #21.


text:
Unhandled exception in request pipeline: System.Net.Http.HttpRequestException: Connection refused

I was trying to run sample code(:v2functions/blob-trigger-watermark-blob-out-binding)
after uploading the image,I see this error pasted below.
I am getting error :

fail: Middleware[0]
2020-09-17T17:20:29.688239244Z: [INFO]        Unhandled exception in request pipeline: System.Net.Http.HttpRequestException: Connection refused
2020-09-17T17:20:29.688247643Z: [INFO]         ---> System.Net.Sockets.SocketException (111): Connection refused
2020-09-17T17:20:29.690374430Z: [INFO]           at System.Net.Http.ConnectHelper.ConnectAsync(String host, Int32 port, CancellationToken cancellationToken)
2020-09-17T17:20:29.690390930Z: [INFO]           --- End of inner exception stack trace ---
2020-09-17T17:20:29.690396930Z: [INFO]           at System.Net.Http.ConnectHelper.ConnectAsync(String host, Int32 port, CancellationToken cancellationToken)
2020-09-17T17:20:29.690784128Z: [INFO]           at System.Net.Http.HttpConnectionPool.ConnectAsync(HttpRequestMessage request, Boolean allowHttp2, CancellationToken cancellationToken)
2020-09-17T17:20:29.690797528Z: [INFO]           at System.Net.Http.HttpConnectionPool.CreateHttp11ConnectionAsync(HttpRequestMessage request, CancellationToken cancellationToken)
2020-09-17T17:20:29.690802928Z: [INFO]           at System.Net.Http.HttpConnectionPool.GetHttpConnectionAsync(HttpRequestMessage request, CancellationToken cancellationToken)
2020-09-17T17:20:29.690807628Z: [INFO]           at System.Net.Http.HttpConnectionPool.SendWithRetryAsync(HttpRequestMessage request, Boolean doRequestAuth, CancellationToken cancellationToken)
2020-09-17T17:20:29.690812228Z: [INFO]           at System.Net.Http.DiagnosticsHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
2020-09-17T17:20:29.690817228Z: [INFO]           at System.Net.Http.HttpClient.FinishSendAsyncUnbuffered(Task`1 sendTask, HttpRequestMessage request, CancellationTokenSource cts, Boolean disposeCts)
2020-09-17T17:20:29.690822128Z: [INFO]           at Microsoft.Azure.AppService.MiddlewareShim.Startup.ForwardRequestAsync(HttpContext context) in /EasyAuth/Middleware.Host/Startup.cs:line 197
2020-09-17T17:20:29.690826728Z: [INFO]           at Microsoft.Azure.AppService.MiddlewareShim.Startup.OnRequest(HttpContext context) in /EasyAuth/Middleware.Host/Startup.cs:line 151
2020-09-17T17:20:29.694881303Z: [INFO]  fail: Microsoft.AspNetCore.Server.Kestrel[13]
2020-09-17T17:20:29.694899302Z: [INFO]        Connection id "0HM2R5NDLDREG", Request id "0HM2R5NDLDREG:00000001": An unhandled exception was thrown by the application.
2020-09-17T17:20:29.694905702Z: [INFO]  System.Net.Http.HttpRequestException: Connection refused
2020-09-17T17:20:29.695281200Z: [INFO]   ---> System.Net.Sockets.SocketException (111): Connection refused
2020-09-17T17:20:29.695294000Z: [INFO]     at System.Net.Http.ConnectHelper.ConnectAsync(String host, Int32 port, CancellationToken cancellationToken)
2020-09-17T17:20:29.695299400Z: [INFO]     --- End of inner exception stack trace ---
2020-09-17T17:20:29.695303700Z: [INFO]     at System.Net.Http.ConnectHelper.ConnectAsync(String host, Int32 port, CancellationToken cancellationToken)
2020-09-17T17:20:29.695308200Z: [INFO]     at System.Net.Http.HttpConnectionPool.ConnectAsync(HttpRequestMessage request, Boolean allowHttp2, CancellationToken cancellationToken)
2020-09-17T17:20:29.695313200Z: [INFO]     at System.Net.Http.HttpConnectionPool.CreateHttp11ConnectionAsync(HttpRequestMessage request, CancellationToken cancellationToken)
2020-09-17T17:20:29.695325400Z: [INFO]     at System.Net.Http.HttpConnectionPool.GetHttpConnectionAsync(HttpRequestMessage request, CancellationToken cancellationToken)
2020-09-17T17:20:29.695330200Z: [INFO]     at System.Net.Http.HttpConnectionPool.SendWithRetryAsync(HttpRequestMessage request, Boolean doRequestAuth, CancellationToken cancellationToken)
2020-09-17T17:20:29.695334700Z: [INFO]     at System.Net.Http.DiagnosticsHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
2020-09-17T17:20:29.695880996Z: [INFO]     at System.Net.Http.HttpClient.FinishSendAsyncUnbuffered(Task`1 sendTask, HttpRequestMessage request, CancellationTokenSource cts, Boolean disposeCts)
2020-09-17T17:20:29.695897196Z: [INFO]     at Microsoft.Azure.AppService.MiddlewareShim.Startup.ForwardRequestAsync(HttpContext context) in /EasyAuth/Middleware.Host/Startup.cs:line 197
2020-09-17T17:20:29.695902896Z: [INFO]     at Microsoft.Azure.AppService.MiddlewareShim.Startup.OnRequest(HttpContext context) in /EasyAuth/Middleware.Host/Startup.cs:line 151
2020-09-17T17:20:29.695907496Z: [INFO]     at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.HttpProtocol.ProcessRequests[TContext](IHttpApplication`1 application)
2020-09-17T17:20:44.568918921Z: [INFO]  Starting OpenBSD Secure Shell server: sshd.

Are you running in Azure or your local machine? Looks like this function is unable to connect to the storage account for some reason.

Are you running in Azure or your local machine? Looks like this function is unable to connect to the storage account for some reason:
 [INFO] Unhandled exception in request pipeline:
                     System.Net.Http.HttpRequestException: Connection refused

Ok,there could be some permission issue.
Now I tried to execute the code again from my private azure subscription.I uploaded an image and nothing happened.No errors no logs nothing. See recorded screen capture

That particular function has a blob trigger and a blob output. Make sure you have the right configuration in the function.json and the input container matches the container you're uploading the image to. It won't work with an HTTP trigger (Test/Run blade you show in the video), you have to upload a JPEG or PNG image to the input blob container to trigger an execution of that function.

BTW: You should really test all this locally first since you get much better logging without delay and you can still trigger on blobs that you upload to Azure.

Connected!
2020-09-17T20:17:15Z   [Information]   Executed 'Functions.BlobTrigger1' (Succeeded, Id=40de5580-e0c2-453f-94ef-64421748d9e3, Duration=519ms)

authors: infact snobu

repo: yokawasa/azure-functions-python-samples


text:
Firefox Weather Widget not being blocked by Betterfox

BEFORE YOU BEGIN
I have attempted the following troubleshooting suggestions:

[x] The issue persists when using Firefox in Troubleshoot Mode.
[x] Disabled DNS-level content blocking (AdGuard Home, NextDNS, Control D, RethinkDNS, PiHole, etc), cleared my DNS cache, and used my ISP's DNS resolver (if applicable).
[x] Cleared website data, restarted Firefox, and my issue persists.
[x] I have created a new profile. The issue persists when using the current user.js file on GitHub. (Must be in a new profile and a new user.js!)

REPORT
Describe the bug
A clear and concise description of what the bug is.
A new FireFox feature (for me) added a widget with the weather at the top left of the new tab screen on a fresh install
To Reproduce
Steps to reproduce the behavior:
1. Go to 'Download FireFox'
2. Install BetterFox
3. Open New Tab
4. Look at the top left and it should have a weather widget in specific mine is sponsered by AccuWeather

Expected behavior
A clear and concise description of what you expected to happen.
The Widget would be gone along with all the data it takes
Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

OS: Windows 10 Home

Browser: FireFox

Version: 128.0.3 (64-bit)

Additional context
Add any other context about the problem here.
unsure if everyone has this but at least on the most recent version its appearing for me

Documented. Just forgot to un-comment it from since I was using Nightly as a daily driver for awhile:
https://github.com/yokoffing/Betterfox/blob/abe7e9d4d8620d66577c6b45cfb4ebdcbbfbf285/Peskyfox.js#L290-L291
You can still turn it off in about:config or adding it to your personal user.js.
There also should be UI for this in the settings, if there isn't already.

Not sure if helpful, but (in ref. to the commit above) I had to specify browser.newtabpage.activity-stream.system.showWeather as false too to get the weather widget to go away.

@winter-again I've tested on two systems with vanilla Firefox stable, and I only had to use browser.newtabpage.activity-stream.showWeather. I've also confirmed that this is the pref that changes if you disable the Weather widget from the new tab page.
system.showWeather removes it altogether as an option from the gear icon on the new tab page.
Since I am disabling it by default, perhaps we should use that instead.

authors: FifthWit winter-again yokoffing

repo: yokoffing/Betterfox


text:
chore: add make coverage and bump deps version

Close #449, #453, #455, #456, #457, #458 #459

Codecov Report

Merging #459 (e4caf81) into master (af72a79) will decrease coverage by 0.64%.
The diff coverage is n/a.

:mega: This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more
@@            Coverage Diff             @@
##           master     #459      +/-   ##
==========================================
- Coverage   59.26%   58.62%   -0.64%
==========================================
  Files          40       40
  Lines        2823     2823
==========================================
- Hits         1673     1655      -18
- Misses       1020     1034      +14
- Partials      130      134       +4

Impacted Files
Coverage Δ

core/connection.go
67.50% <0.00%> (-22.50%)
:arrow_down:

core/server.go
61.74% <0.00%> (-2.24%)
:arrow_down:

core/client.go
64.34% <0.00%> (+0.43%)
:arrow_up:

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more

authors: codecov-commenter fanweixiao

repo: yomorun/yomo


text:
requesting permission for microphone fails using the ios simulator

calling:
Permissions.requestPermission('microphone')
.then((permissionMicrophone) => {
console.log('permissionMicrophone:', permissionMicrophone);
results in:
2017-01-02 09:22:26.381 [info][tid:com.facebook.react.JavaScript] 'permissionMicrophone:', 'undetermined'
when using the simulator. It also does not show microphone in the settings where permissions are handled.

Anyone else seeing this? I wonder if this is an issue with the xcodes simulator since it works fine using an actual device.

thx for mentioning. did not try it on an actual device and thought it doesn't work at all

yup I'm seeing the same issue on RN 0.40. Works fine on device but not working on the simulator

This seems to be a known issue with iOS  -http://stackoverflow.com/questions/18957643/requestrecordpermission-does-nothing?rq=1.
I'll add it to the readme.

authors: anttitakalahti mzmiric5 rikner yonahforst

repo: yonahforst/react-native-permissions


text:
感觉用不到词向量加载权重

使用BertEmbedding
graph的create_model方法
最下面，向word_embedding的model加载权重
# 构建网络层
self.word_embedding = Embeddings(hyper_parameters=hyper_parameters)
if os.path.exists(self.path_fineture) and self.trainable:
self.word_embedding.model.load_weights(self.path_fineture)
print("load path_fineture ok!")
self.model = None
但是感觉加载了也不会用self.word_embedding.model
例如TextCNNGraph，直接使用self.word_embedding的输入输出
embedding = self.word_embedding.output
self.model = Model(inputs=self.word_embedding.input, outputs=output)

是不会self.word_embedding.output这样引用，
但是实际上这个的作用是加载微调后的bert、xlnet、albert或者是word2vec模型

你看一下extCNNGraph
下面的代码是直接引用的
self.model = Model(inputs=self.word_embedding.input, outputs=output)

你的意思是graph的引用如果没有改成self.word_embedding.model.input
和self.word_embedding.model.output，预测的时候相当于还是用以前的模型,而不是微调的模型?

现在TextCnn引用是这么这么写的
self.model = Model(inputs=self.word_embedding.input, outputs=output)
我理解是在用以前的模型，没有加载微调后的模型

我明白了，这样也能加载到微调后的模型

repo: yongzhuo/Keras-TextClassification


text:
Add README and thumbnail on example 'simultaneous-cursors'

What this PR does / why we need it?
Add README.md and thumbnail.jpg on example simultaneous-cursors.
There's no any docs on example simultaneous-cursors, and I need thumbnail and description to solve those issue.
Any background context you want to provide?
What are the relevant tickets?

Feature #682
Checklist

[x] Add thumbnil.jpg
[x] Write README.md

Seems like CI is failing. I'm having same issue on my local environment. Any ideas?
cc. @hackerwins

The problem is related to https://github.com/golang/go/issues/58550.

authors: banma1234 hackerwins krapie

repo: yorkie-team/yorkie-js-sdk


text:
Make quickstart guide more friendly

What would you like to be added:

a full working example of code
maybe FAQ

Why is this needed:
I believe the quickstart guide should contain a full working example.
so that newcomers can easily give it a try.
the day before I tried to follow the steps described in yorkie quickstart.
I created a simple file, "index.js",  and wrote example code, then ran the file with "node index.js" as I used to run files with node on my local.
it is no surprise that an error popped up.
ReferenceError: self is not defined
    at Object.<anonymous> (/Users/saemi.park/WebstormProjects/yorkie-test/node_modules/yorkie-js-sdk/dist/yorkie-js-sdk.js:32:4)

later the sentence You need an environment that can run JavaScript, such as a browser. rang a bell to me.
if a user can just copy & paste the example code and see it working, it would be more helpful.

I'm also sympathizing with this issue. And we have several issues similar to this.

https://github.com/yorkie-team/yorkie-team.github.io/issues/91
https://github.com/yorkie-team/yorkie-team.github.io/issues/98

So I'll close this issue for now.

later the sentence You need an environment that can run JavaScript, such as a browser. rang a bell to me.
if a user can just copy & paste the example code and see it working, it would be more helpful.

This bug might be fixed by https://github.com/yorkie-team/yorkie-js-sdk/pull/378.


text:
🛑 Api bnovus-qa is down

In 46bb04d, Api bnovus-qa (https://manager-api.qa.rexmas.com/admin) was down:

HTTP code: 502
Response time: 339 ms

Resolved: Api bnovus-qa is back up in b8f260a after 9 hours, 33 minutes.

repo: yorkijr/rexmas-uptime


text:
Add "lint" npm script

Add script for just linting code.

nah I don't see the point, thanks!

repo: yoshuawuyts/bankai


text:
feat(deps): bump sheetify

bump to the latest sheetify. Removes the need for the insert-css peer dep. Also makes it so styles are global by default and only :host creates prefixes. Kinda feel it's a semver major.
Thoughts?

yaaaaaaa, merging :sparkles:

v5.0.0


text:
Symfony 4 support

Is there any planned support for Symfony 4?

Yes. I just merged your PR. Thank you

authors: erikgaal yosymfony

repo: yosymfony/resource-watcher


text:
v. 3.1.1 Should the select2 widget be initialized manually?

Is it my responsibility to initialize the widget?  The docs don't say anything about that.
Or if the widget is to be automatically initialized by DAL, it is not happening.  The select is rendering un-initialized.

I just saw {{ form.media }} in the docs. The initialization is done automatically through form.media.

repo: yourlabs/django-autocomplete-light


text:
Error message improvements

@guoliang100 @nurblieh @aaijazi
Some minor tweaks in error messages that have great usability improvements.

LGTM, but have follow up questions I'd like to ask in person tomorrow.
Sent from my phone
On Aug 20, 2015 1:09 AM, "sougou" notifications@github.com wrote:

@guoliang100 https://github.com/guoliang100 @nurblieh
https://github.com/nurblieh @aaijazi https://github.com/aaijazi
Some minor tweaks in error messages that have great usability improvements.
You can view, comment on, or merge this pull request online at:
https://github.com/youtube/vitess/pull/1013
Commit Summary

sqlparser: improved error message
tabletserver: terse error change

File Changes

M data/test/sqlparser_test/parse_fail.sql
https://github.com/youtube/vitess/pull/1013/files#diff-0 (32)
M data/test/tabletserver/exec_cases.txt
https://github.com/youtube/vitess/pull/1013/files#diff-1 (2)
M data/test/tabletserver/stream_cases.txt
https://github.com/youtube/vitess/pull/1013/files#diff-2 (2)
M data/test/vtgate/select_cases.txt
https://github.com/youtube/vitess/pull/1013/files#diff-3 (2)
M go/vt/sqlparser/token.go
https://github.com/youtube/vitess/pull/1013/files#diff-4 (2)
M go/vt/tabletserver/sqlquery.go
https://github.com/youtube/vitess/pull/1013/files#diff-5 (2)
M go/vt/tabletserver/sqlquery_test.go
https://github.com/youtube/vitess/pull/1013/files#diff-6 (28)

Patch Links:

https://github.com/youtube/vitess/pull/1013.patch
https://github.com/youtube/vitess/pull/1013.diff

—
Reply to this email directly or view it on GitHub
https://github.com/youtube/vitess/pull/1013.

authors: aaijazi sougou

repo: youtube/vitess


text:
Add a counter for new MySQL connections

@guoliang100 @sougou
This will help us track the number of used ports in tests.

I thought we wanted the number of connected connections, not the number we open?
Each db conn pool may already have the ability to export varz?

Are you trying to detect if we're reaching MySQL's connection limit? Then this counter won't be useful, because you have to count closed connections. But as Alain said, we already have this count: https://github.com/youtube/vitess/blob/master/go/vt/dbconnpool/connection_pool.go#L59, but it's per pool.

No, as I mentioned, I want to track the number of TCP ports used by MySql tests. I'm assuming that tests are short-lived enough here that the ports won't have enough time to be recycled even if a connection closes - so I want total number of connections that were opened, not number connected.

LGTM

authors: aaijazi alainjobart sougou


text:
Rename test/end2end folder to test/cluster

Since python tests in the test folder are already considered end2end, rename the kubernetes tests to "cluster" tests to be less confusing.
@michael-berlin

LGTM

authors: michael-berlin thompsonja