Reliable user selection real time listener

Hi,
I used the notebook linked below to test a real-time selection listener in different modes (table grouped or not).
In the process , I think I fixed 1 typo and a couple of bugs in grid.py
I still have one big issue :  I cant get it to work with aggregated rows. Nothing fires at all.

Clicking anywhere on the Grouped columns (A in the screenshot) fires this:
{'data': [[]],   'index_rows': {'names': ['Index'], 'values': [[None]]},   'index_columns': []}
Clicking on any other columns does not fire anything.
( Expanding the grouped row and clicking on leaf rows, works. )
Has any one been able to get that working?
https://github.com/petkoivanov1/ipyaggrid/blob/master/docs/notebooks/demo-ipyaggrid-selection-listener.ipynb
Thanks in advance,
P.S. here is a description of the fixes/ enhancements (from inside the notebook):

ipyaggrid/ipyaggrid/grid.py : 241 should be 'range' not 'cols' ? I think so.
to_df['columns'] = pd.MultiIndex.from_tuples(*[data_up['index_columns']]) does not handle one corner case well (selecting a grouped column) and is copy-pasted about 5 times over in grid.py

additional .get_selected_columns() call after processing a 'rows' fire .  I trigger it programatically after 'rows'. Seems to work well in ungrouped mode.
refactored the monolithic 'export' method to smaller functions so it can be clearer what each piece does and can be overridden if needed.
added grid_range_selection method for easy hook-up (in my test examples I just display on a separate Output widget).

OK. After debugging all this python and JS code and some reverse engineering, you dont need most of the 'export' code in this project. That does not handle groups at all. Here is my super short code that works in ALL situations:
The screenshots dont capture well where I clicked, I have highlighted that manually in red.
As you can see, you get the column, all row values, the node and path to the root if applicable.
Its also fast, no errors are logged in JS or python in all aggrid variations I tested.
enjoy.

Here is the jist of the code for convenience:
`
js_post = """
function myRowClickedHandler(event) {
//console.log('The row was clicked:', event);
let n = event.node;
let tmp1 =  {'column':event.column.colId,'value':event.value,'rowIndex':event.rowIndex, 'rowData':event.data,'node.aggData':n.aggData,
'node.expanded':n.expanded, 'node.field':n.field, 'node.group':n.group,'node.key': n.key, 'node.leafGroup':n.leafGroup,'node.level':n.level};
view.model.set('_grid_data_up', tmp1);
for (p = n.parent; p.rowIndex !=null ;p = p.parent){
tmp1['parent'] = {'rowIndex': p.rowIndex, 'key':p.key, 'field':p.field}
tmp1 = tmp1['parent']
}
view.touch();
}
gridOptions.onCellClicked = myRowClickedHandler;
"""
def foo1(grid_options):
out1 = widgets.Output()
g1 = Grid(grid_data = data, grid_options=grid_options, theme='ag-theme-balham', js_post_grid=js_post)
g1.export_mode = 'auto'
def display1(grid1):
if 'grid' not in g1._grid_data_up.keys(): # i dont need the grid here and its a lot
out1.clear_output()
with out1:
print (datetime.datetime.now())
print (g1._grid_data_up)
g1.observe(display1)
return widgets.VBox([g1, out1]),g1
columnDefs = [
{'headerName': "Country", 'field': "country", 'rowGroup':True, 'hide':True},
{'headerName': "Sport", 'field': "sport", 'rowGroup':True, 'hide':True},
{'headerName': "Athlete", 'field': "athlete"},
{'headerName': "Age", 'field': "age", 'aggFunc':'min'},
{'headerName': "Total", 'field': "total", 'aggFunc':'sum'},
] # dont use enableRangeSelection. js/src/widget_export code does not work with groups and logs a lot of JS and python exceptions
w1,g1 = foo1({'columnDefs': columnDefs,'defaultColDef': {'sortable': 'true', 'filter': 'true', 'resizable': 'true'}})
w1
`


implement google login oauth

Implemented Google Login which does nothing but obtains a JWT token for now.
Created .env file with environment variables to load API keys. (shared on Discord)

The backend APIs need to verified the JWT token included in the request.

#6 closed.


Fix Failed Txn not found in network after changing to another network

Should be like this after changing network:
Example: The Failed Txn are show in the testnet 2

Problem after changing network:
Example: The Failed Txn are not found in the testnet 2 after changing back from testnet 1

PR Reference:
https://github.com/proximax-foundry/web-explorer-vuejs/pull/190


added default type for srl based on first srlType slice entry

This is the implementation of #199

Hi @steiler
didn't know you was working on this.
I added #203 with tests, so I am closing this one as a dup


Slayer count missing mobs

Describe the bug
Slayer mobs miscounting while bursting
To Reproduce
Steps to reproduce the behavior:

Get a slayer task / update mob count by checking an item
Go somewhere to stack mobs / burst
Watch the counter, then later 'check' a slayer helm / ring / gem

Expected behavior
Number of kills left on the counter to match up with the 'checked' kills, assuming you did the entire task with the slayer plugin enabled / did not switch clients between.
Environment (please complete the following information):

OS: Windows 10 (Ver. 1803, Build 17134.228)
RuneLite version: 1.4.14
Launcher version: Unknown

Additional context
Assuming it's due to mobs dying simultaneously

Duplicate of #1046


DatePickerI18NExample: weekdays are not aligned

DatePickerI18NExample should take into account that the result of DateFormatSymbols.getWeekdays returns 8 items instead of 7, see https://github.com/vaadin/flow-components/issues/6353#issuecomment-2175966174
https://github.com/vaadin/cookbook/blob/8a10bee764c62089733a959deafb5e1c559ac93b/src/main/java/com/vaadin/recipes/recipe/datepicker18n/DatePickerI18NExample.java#L44

-i18n.setWeekdays(List.of(dfs.getWeekdays()));
+i18n.setWeekdays(List.of(dfs.getWeekdays()).stream().skip(1).toList());


Add frontend projects in HTML, CSS, and JS

Add frontend projects in HTML, CSS, and JS in frontend-project folder

Assign me this issue sir.

i want to work on this, please assign me

@pranjay-poddar I want to work on it so please assign me this issue

@pranjay-poddar  i want to work on this issue. Assign me this issue.

I want to work on this, please assign it to me.

@pranjay-poddar Can you assign this issue to me?

I would like to work on this issue can you please assign me this issue @pranjay-poddar ?

I would like to work on this issue. Can you please assign this issue to me. @pranjay-poddar

Can this issue be assigned to me? I would add a quiz application with typewriter effect.

I would love to contribute to this open source project!

Hi! I would like to contribute to this issue under the GSSoC'23. It seems interesting and aligned with my skills. I would be happy to take it up and work on this project as i have many projects that you can see on this link
Kindly provide me the opportunity to work on the issue. @pranjay-poddar

Please assign me this issue under GSSoC'23, thank you.

I have some good responsive projects please assign me this issue i wouls like to add them


WIP(iox-10892): patched df upgrade 202-06-03

⚠ This will not be merged. ⚠

Bringing us up to datafusion to 2024-06-03

This PR is based on May 31, 2024 https://github.com/apache/datafusion/commit/7638a26979382f98fe9725a75424acf0788ff26a
git co -b chunchun/update-df-june-week-1 7638a26979382f98fe9725a75424acf0788ff26a

Applied the following patch(es):

fix regression in first_value (https://github.com/influxdata/arrow-datafusion/pull/23/commits/2e17a88f99fd456d9ed060f3ec32b3a7b2ee4bb9) and last_value coercsion (https://github.com/influxdata/arrow-datafusion/pull/23/commits/168ee122f39fa2c94efaf7711225139c8df55e7b)
The upstream fix for the first_value regression was fixed on June 3 in https://github.com/apache/datafusion/pull/10651
The upstream fix for the last_value regression was fixed on June 4 in https://github.com/apache/datafusion/pull/10783

Closing since this branch is no longer needed


[feat] sfpegMessageListCmp - Make visible SfpegActionBar

We use the SfpegActionBar component to display action buttons related to the current record, we want to display error messages in the event that the button cannot be displayed.
SfpegMessageListCmp will meet our need well if the "sfpegactionbar" component includes in is possible to make it visible
can we have parent-context param in sfpegactionBar included in SfpegMessageListCmp

Actually, after further thinking, I would rather let you implement a wrapping component including both a MessageList and an ActionBar, the hidden ActionBar included in the MessageList remaining unchanged.

parent-context variable has been added on sfpegListCmp, sfpegMessageListCmp, sfpegCardCmp, sfpegCardListCmp, sfpegKpiListCmp, sfpegProfileCmp and sfpegRecordDisplayCmp in addition to sfpegActionBarCmp.

For the requested layout, teh idea would be to implement a parent component fetching and injecting a parent context in both a sfpegMessageListcmp and sfpegActionBarCmp.

Implemented in build baff2ad

Documentation to be updated soon...


No matching distribution found for mpi4pyscf

Greetings,
I am trying to install mpi4pyscf using pip, as indicated in https://github.com/pyscf/mpi4pyscf.
The command pip install mpi4pyscf throws the following error:
ERROR: Could not find a version that satisfies the requirement mpi4pyscf (from versions: none)
ERROR: No matching distribution found for mpi4pyscf
Can you please help me understanding why?
If useful, I use pip 20.0.2, python 3.7.6, mpi4py 3.0.3, pyscf 1.7.3 and macOS Catalina 10.15.6
regards,
Mario

Hi Mario,
It appears mpi4pyscf was not released on PyPI, not sure why. In any case, it is a plugin that does not require compilation. If you clone it and add it to your PYTHONPATH, it should work.
Best,
Yang

A temporary solution pip install git+https://github.com/pyscf/mpi4pyscf.git

mpi4pyscf-0.3 is now available on pypi https://pypi.org/project/mpi4pyscf/

mpi4pyscf-0.3 is now available on pypi https://pypi.org/project/mpi4pyscf/

can anyone tell where exactly i have to add this.

Does it work for you?
pip install git+https://github.com/pyscf/mpi4pyscf

hi Qiming,
The command pip install git+https://github.com/pyscf/mpi4pyscf
https://github.com/pyscf/mpi4pyscf works for me.
Many thanks, and happy new year!
mario
On Tue, Dec 28, 2021 at 2:33 PM Qiming Sun @.***> wrote:

Does it work for you?
pip install git+https://github.com/pyscf/mpi4pyscf

—
Reply to this email directly, view it on GitHub
https://github.com/pyscf/pyscf/issues/703#issuecomment-1002307406, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AD5M7Q2QNLYPQBHNYIPUJDLUTI3KVANCNFSM4RNPFCEQ
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>


project tab

I uploaded my project from ets but cannot see the project tab

Hi 👋!
Yes, it's not yet released.
Happy new year!


Update DirectX Technical Article

Fixed bug in sample code
Freshed aged links
Added links to location of latest DXUT code
Added use of HTML markup for keyboard key names
Added reference to modern DXGI handling for ALT+ENTER
Added note about Xbox Game Bar
Minor updates for Modern C++
Updated limited-user terms from XP to Vista+ era

@walbourn : Thanks for your contribution! The author(s) have been notified to review your proposed change.


Feature request: Ignore modifier definitions in the test contract

Background
Bulloak treats test contracts independently from one another. This design choice necessitates defining modifiers within the same file as the test contract. However, in large projects where modifiers are shared among tests, this contradicts the principle of DRY.
Feature Request

Introduce an option to disregard modifier definitions in the test contract. This can be achieved by including a flag, such as --ignore-modifiers.

Bulloak should still include the modifier names in test functions, but it should not strictly require them to be defined in the same file.

Here's an example of shared modifiers in Sablier:
https://github.com/sablier-labs/v2-core/blob/56ce2b994519d327143784ef58546a401ce0507a/test/integration/shared/lockup/withdraw.t.sol

Alternatively, other than ignoring, it would be helpful if Bulloak could infer that the modifier is imported in the file, and don't throw any warning.

@alexfertel is there any ETA on this feature?
I would also like to commend you on writing this library. Bulloak has made life so much easier for me. I can just run the command and find missing or incorrectly named tests 🥳.

Let me know if I can support you with a small donation.

Thanks for the kind words! I'm happy it's been a helpful tool for you.

is there any ETA on this feature?

Unfortunately, I've been quite busy, so I'm not sure when I'll get some time to work on this. Sorry for the trouble.
Feel free to give this a shot in the meantime. Otherwise, I'll try to work on it soon.

@alexfertel Sablier donated 500 USDC to you:
https://arbiscan.io/tx/0xde2b3b782ca03b5898a9ed4c91134c5635ad81cc59bf596db99461e6bb562b51

Wow, thank you! I was not expecting that 🙇♂

@smol-ninja would you mind installing bulloak from git and checking if your workflow works with the --skip-modifiers flag?
I did a few tests, but I'm not sure if I covered your use cases. If I missed anything lmk, I'll wait for your feedback before cutting a release.

Hey @alexfertel I tested the latest code, and it works great. Both scaffold and check are able to skip modifiers with the flag. This is just perfect.
Thank you so much and have a great evening.

Great! I'm glad it works well 😌
I'll cut a release first thing tomorrow morn so that you can install as usual.


[Windows] Support x64 for parser compilation

Hi there,
I'm trying to get Zephir to work on a Windows 7 64 bits system with PHP 7 NTS (as requested) 64 bits.
It fails. Here is what I get:

D:\dev\PHP\Ext\test>zephir build
zephir_parser extension not loaded, compiling it
Microsoft (R) C/C++ Optimizing Compiler Version 19.00.23506 for x86
Copyright (C) Microsoft Corporation.  All rights reserved.
'lemon' is not recognized as an internal or external command, operable program or batch file.
D:\wamp\www\zephir\parser\parser>REM Build Lemon
D:\wamp\www\zephir\parser\parser>cl lemon.c
lemon.c
lemon.c(1413): warning C4113: 'int (__cdecl *)()' differs in parameter lists from 'int (__cdecl *)(const void *,const void *)'
cl : Command line error D8027 : cannot execute 'c2'
D:\wamp\www\zephir\parser\parser>del parser.c parser.h scanner.c
D:\wamp\www\zephir\parser\parser>re2c -o scanner.c scanner.re
D:\wamp\www\zephir\parser\parser>lemon -s parser.lemon
D:\wamp\www\zephir\parser\parser>type base.c  1>>parser.c
Preparing for parser compilation...
ERROR: bison is required
Compiling the parser...
Microsoft (R) Program Maintenance Utility Version 14.00.23506.0
Copyright (C) Microsoft Corporation.  All rights reserved.
NMAKE : fatal error U1064: MAKEFILE not found and no target specified
Stop.
PHP Warning:  copy(Release/php_zephir_parser.dll): failed to open stream: No such file or directory in D:\wamp\www\zephir\Library\Compiler.php on line 233
Warning: copy(Release/php_zephir_parser.dll): failed to open stream: No such file or directory in D:\wamp\www\zephir\Library\Compiler.php on line 233
Zephir\Exception: The zephir parser extension could not be found or compiled!

I followed the instructions here: https://github.com/phalcon/zephir/blob/master/WINDOWS.md
But it complains that it "cannot execute 'c2'", which I don't know what it means.
Could someone please help?
Thank you a lot!

I installed Bison (because of the line "ERROR: bison is required"), added it to the path, and launched the build again (which I knew would fail because of other errors, but anyway), and I got this:

D:\wamp\www\zephir\parser\parser>type base.c  1>>parser.c
Preparing for parser compilation...
Compiling the parser...
Microsoft (R) Program Maintenance Utility Version 14.00.23506.0
Copyright (C) Microsoft Corporation.  All rights reserved.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\cl.exe"' : return code '0x2'
Stop.
    "cl.exe" /D COMPILE_DL_ZEPHIR_PARSER /D ZEPHIR_PARSER_EXPORTS=1 -ID:\wamp\www\zephir\parser /nologo /I D:\wamp\bin\php\php7_nts\devpack/include /I D:\wamp\bin\php\php7_nts\devpack/include/main /I D:\wamp\bin\php\php7_nts\devpack/include/Zend /I D:\wamp\bin\php\php7_nts\devpack/include/TSRM /I D:\wamp\bin\php\php7_nts\devpack/include/ext /D _WINDOWS /D ZEND_WIN32=1 /D PHP_WIN32=1 /D WIN32 /D _MBCS /W3 /FD /wd4996 /D_USE_32BIT_TIME_T=1 /guard:cf /MP /LD /MD /W3 /Ox /D NDebug /D NDEBUG /D ZEND_WIN32_FORCE_INLINE /GF /D ZEND_DEBUG=0 /D ZTS=1 /I "D:\wamp\www\zephir\parser\no\include" /FoD:\wamp\www\zephir\parser\Release_TS\wamp\www\zephir\parser\ /FpD:\wamp\www\zephir\parser\Release_TS\wamp\www\zephir\parser\ /FRD:\wamp\www\zephir\parser\Release_TS\wamp\www\zephir\parser\ /FdD:\wamp\www\zephir\parser\Release_TS\wamp\www\zephir\parser\ /c D:\wamp\www\zephir\parser\zephir_parser.c zephir_parser.c

C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\vcruntime_new_debug.h(10): fatal error C1083: Cannot open include file: 'vcruntime_new.h': No such file or directory
PHP Warning:  copy(Release_TS/php_zephir_parser.dll): failed to open stream: No such file or directory in D:\wamp\www\zephir\Library\Compiler.php on line 233
Warning: copy(Release_TS/php_zephir_parser.dll): failed to open stream: No such file or directory in D:\wamp\www\zephir\Library\Compiler.php on line 233
Zephir\Exception: The zephir parser extension could not be found or compiled!

I don't know what more I could do right now...

You probably just skipped the PHP-sdk step, which explains
why bison is not found and also why you haven't copied re2c.exe over as described in the Windows.md...

No sorry, I did all this:

D:\dev\PHP\Ext\test>echo %php_sdk%
L:\Software\PHP_SDK_20110915

As it is explained in the docs:

setx php_sdk "c:\path-to-php-sdk"

And I also copied re2c in 2 directories just to be sure.
But maybe it should be "path-to-sdk/bin" instead, now that you point me in that direction?
I'll try that

I confirm that I have the exact same errors when I set php_sdk to "path-to-sdk/bin" instead of just "path-to-sdk", or even when I leave this environment variable as it was ("path-to-sdk") and add to path the "path-to-sdk/bin" directory.

No, php_sdk should not point to the bin folder. (And %PHP_SDK%\bin\bison.exe should exist, else your %PHP_SDK% does not point to a php sdk)
And re2c.exe should be copied to parser/parser/re2c.exe

Yes, as I said that is exactly how it was when I posted my issue. I don't know why Zephir did not find Bison. And I indeed copied re2c.exe in parser/parser/ folder.
Any other idea I should try? Like what is this "c2" that cannot be executed? What is this missing header file (vcruntime_new.h) that the compiler did not find? It tried to Google it but to no avail.

vcruntime_new.h might sound like you're using an old version of visual studio?

I had 3 or 4 versions of VS installed, but I uninstalled most of them and reinstalled completely VS 2015, and I even used the "repair" feature to make sure it was ok. I had a message about the redistributables being already installed blablabla but other than that it went smooth.
I am also using the developer command line tool of VS 2015, as specified in the Zephir doc

If you already tried to repair, I can't really think of anything going wrong there.
But since cl : Command line error D8027 : cannot execute 'c2' is no zephir issue but an issue with your dev environment, I'll have to close this.

You don't know what "c2" is? I will try to uninstall everything and reinstall again..

I uninstalled and reinstalled everything, and after multiple warnings, I got errors during link. It also complains (but it's only a warning) that library machine type x64 conflicts with target machine type x86:

Creating library D:\wamp\www\zephir\parser\Release_TS\php_zephir_parser.lib and object D:\wamp\www\zephir\parser\Rele
ase_TS\php_zephir_parser.exp
zephir_parser.obj : error LNK2019: unresolved external symbol __imp__efree@@4 referenced in function _zif_zephir_parse_file
parser.obj : error LNK2001: unresolved external symbol __imp__efree@@4
zephir_parser.obj : error LNK2019: unresolved external symbol __imp__zend_parse_parameters referenced in function _zif_zephir_parse_file
zephir_parser.obj : error LNK2019: unresolved external symbol __imp__php_info_print_table_header referenced in function _zm_info_zephir_parser
zephir_parser.obj : error LNK2019: unresolved external symbol __imp__php_info_print_table_start referenced in function _zm_info_zephir_parser
zephir_parser.obj : error LNK2019: unresolved external symbol __imp__php_info_print_table_end referenced in function _zm_info_zephir_parser
parser.obj : error LNK2019: unresolved external symbol __imp__emalloc@@4 referenced in function _zend_string_alloc
parser.obj : error LNK2019: unresolved external symbol __imp____zend_malloc referenced in function _zend_string_alloc
parser.obj : error LNK2019: unresolved external symbol __imp__zend_hash_str_add@@16 referenced in function _parser_add_str
parser.obj : error LNK2019: unresolved external symbol __imp___zval_ptr_dtor referenced in function _yy_destructor
parser.obj : error LNK2019: unresolved external symbol __imp___array_init referenced in function _parser_array_init
parser.obj : error LNK2019: unresolved external symbol __imp__add_next_index_zval referenced in function _parser_array_append
parser.obj : error LNK2019: unresolved external symbol __imp__php_sprintf referenced in function _xx_parse_program
D:\wamp\bin\php\php7_nts\devpack\lib\php7ts.lib : warning LNK4272: library machine type 'x64' conflicts with target machine type 'X86'
D:\wamp\www\zephir\parser\Release_TS\php_zephir_parser.dll : fatal error LNK1120: 12 unresolved externals
PHP Warning:  copy(Release_TS/php_zephir_parser.dll): failed to open stream: No such file or directory in D:\wamp\www\zephir\Library\Compiler.php on line 233
Warning: copy(Release_TS/php_zephir_parser.dll): failed to open stream: No such file or directory in D:\wamp\www\zephir\Library\Compiler.php on line 233
Zephir\Exception: The zephir parser extension could not be found or compiled!

Do you have any idea what these linker errors are caused by?

That actually makes sense...
Before PHP 7 there were no windows builds,
so zephir doesn't support building the parser (or any library) against that yet.

So if I use PHP 5.6 it should work? And then I should wait just a bit for PHP 7 (which is very new, I admit) to be supported?
Or should I forget about building my lib on Windows, and focus on Ubuntu only? (even with PHP 7)
As I develop on Windows, I would really like being able to compile on Windows, I won't hide it :)

5.6 should work yes, 7.0 x86 should work too
and 7.0 x64 (what you have) might work using "VC x64 Native Tools CMD "

Mmmmh I don't think I have that CMD you are talking about. I only have the x86 one ("VS2015 x86 Native Tools Command Prompt"). I tried to duplicate it and change the command arguments to make it use x64, but it failed badly :)
I then tried the "VS2015 x86 x64 Cross Tools Command Prompt", and I got "zephir_parser build complete" and I thought that was good, but just below it complained it could not find "php_zephir_parser.dll" (but wait to see below!)

Creating library D:\wamp\www\zephir\parser\x64\Release_TS\php_zephir_parser.lib and object D:\wamp\www\zephir\parser\x64\Release_TS\php_zephir_parser.exp
EXT zephir_parser build complete
PHP Warning:  copy(Release_TS/php_zephir_parser.dll): failed to open stream: No such file or directory in D:\wamp\www\zephir\Library\Compiler.php on line 233
Warning: copy(Release_TS/php_zephir_parser.dll): failed to open stream: No such file or directory in D:\wamp\www\zephir\Library\Compiler.php on line 233
Zephir\Exception: The zephir parser extension could not be found or compiled!

But then I found out that in the zephir/parser dir, I have two directories: Release_TS, and x64. And the x64 folder contains another Release_TS folder, with the php_zephir_parser.dll inside!! :) :) :)
I don't understand why it did not find it. I will try to manually put in inside my php ext directory, and check if it works, and keep you posted.

It's logical that it doesn't find it.
Since it's additionally nested into another folder, copying x64\Release_TS to Release_TS should workaround it.

Okay yes, it ran this command:

D:\wamp\bin\php\php7_nts\php.exe -dextension="D:\wamp\www\zephir\Library..\parser\php_zephir_parser.dll" D:\wamp\www\zephir\bin\..\compiler.php build --parser-compiled

But I got:

PHP Warning:  PHP Startup: Unable to load dynamic library 'D:\wamp\www\zephir\Library..\parser\php_zephir_parser.dll' - Le module spÚcifiÚ est introuvable.
in Unknown on line 0

Problem is PHP complained it could not find php7ts.dll, which makes no sense actually because as you can see it really is PHP NTS that I configured, as stated in the docs.
Here is the php -v output (which also complained from php7ts.dll being missing):

PHP 7.0.1 (cli) (built: Dec 16 2015 13:32:58) ( NTS )

Then I tried to copy php7ts.dll from another directory when I have extracted PHP 7 TS files, and tried another php -v (this time it did not complain about missing dll):

PHP Warning:  PHP Startup: zephir_parser: Unable to initialize module
Module compiled with build ID=API20151012,TS,VC14
PHP    compiled with build ID=API20151012,NTS,VC14
These options need to match
in Unknown on line 0

This is weird, right? Should I try with TS version only?

I succeeded building the parser using the x86 version of PHP 7, and only when using the console named "VS2015 x86 Native Tools".
It did not copy properly the generated dll to the PHP "ext" folder, but doing so manually worked fine, and now I just have to grasp some notions of Zephir while waiting for the x64 version to build ;)
Let me know if I can help!

anybody else having issues with x64 using windows?

Hi @steffengy
I am trying to build ext on windows 8 x64 PHP 5.6.19 but no luck
I followed all these steps https://github.com/phalcon/zephir/blob/master/WINDOWS.md
I have used all three command line tools

VC2012 x86 Native Tools
VC2012 x64 Cross Tools
Developer command prompt

Getting following error
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 11.0
\VC\BIN\cl.exe"' : return code '0x2'
Please guide me what I am doing wrong
Thanks

@Dev2-PracticeProvider
Building PHP 5.X x64 under windows was never supported and is
generally considered unstable.
Since there aren't any official PHP 5.X x64 builds, we also do not support that.
Let me know if there are any issues regarding PHP7 x64.

OK I will try with PHP7
Thanks

Hi @steffengy
I tried on Windows 8 64 bit with both php7 x86 and x64
I was not able to compile parser using php7 x64
I was able to compile parser using php7 x84 also extension was translated to c as well
The error I got "Installation is not implemented for windows yet! Aborting!" and no dll file for that extension
do we have to compile extension manually on windows?

@Dev2-PracticeProvider
"Installation is not implemented for windows yet! Aborting!"  just means that installation
(adding the .dll file to php.ini) is not supported on Win and you have to do that yourself.

I was not able to compile parser using php7 x64

Any more details on what failed?

and no dll file for that extension

there should be one in a Release or Release_TS folder, make sure to check properly.
also make sure to check compile-errors.log and compile.log for additional hints.

@steffengy there is only one directory "Release" inside ext directory
Please see attached compile logs
compile-error.log.txt
compile.log.txt

seems like the same issue in #1202

works for me now using master.
some problems i ran into:

Make sure to update PHP_DEVPACK if you build for x64, since a DEVPACK is specific to the architecture
Make sure that x64 dependencies for PHP are available (since PHP will try to link against a x86 library else and that logically doesn't work due to different calling conventions it expects)

Another important point would be to use **VC14 (visual studio 2015) since PHP7 doesn't support anything else officially.

@steffengy no luck yet
If I use PHP7 x64 I am not able to compile parser but with PHP7 x86
I am using VS 2015 community edition
PHP7 x86 and devpack for x86
Regarding dependencies I am little confuse I downloaded deps for php7 x86 and placed according to directory structure mentioned in https://wiki.php.net/internals/windows/stepbystepbuild
Then ran form ext directory "zephir build" no luck :( what I am doing wrong?

you'll probably missing a PHP 7 x86 in the path, which you currently need to compile&run the parser.

@steffengy compiler-error.log has following error
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\link.exe"' : return code '0x460'

@Dev2-PracticeProvider and compile.log ?

compile.log
C:\Users\jwc\Projects\hello\ext\Release\\array.obj : warning LNK4042: object specified more than once; extras ignored C:\Users\jwc\Projects\hello\ext\Release\\fcall.obj : warning LNK4042: object specified more than once; extras ignored    Creating library C:\Users\jwc\Projects\hello\ext\Release\php_hello.lib and object C:\Users\jwc\Projects\hello\ext\Release\php_hello.exp fcall.obj : error LNK2019: unresolved external symbol _zephir_call_function_opt referenced in function _zephir_call_user_function C:\Users\jwc\Projects\hello\ext\Release\php_hello.dll : fatal error LNK1120: 1 unresolved externals

@steffengy as mentioned in other thread
If I comment line 453 and remove EXPECTED(status != FAILURE) &&  on line 458 from ext\kernel\fcall.c then it generates dll
Any idea?

@Dev2-PracticeProvider
Again, this is merely a symptom of phpize being broken on windows.
thats also why "manual building" (the extension within a php source tree) works.
I'll look into fixing the obstacles of this. The windows build system of PHP generally is really a piece of scrap.

@steffengy if I follow instructions here https://github.com/phalcon/zephir/issues/1202#issuecomment-204900149 then also dll builds
If I can do any thing to make this work in windows I will be happy to contribute please let me know if I can do any thing
Thanks

@Dev2-PracticeProvider
should be fixed now...
make sure to use zephir fullclean (or rather delete the ext/ folder)

@steffengy with latest update I confirm now dll is generated but inside ext/Release 'User" directory created with complete path to 'ext' directory C:\Users\jwc\Projects\app\ext\Release\Users\jwc\Projects\app\ext is it normal?

@Dev2-PracticeProvider
the path isn't "normal", but it anyways doesn't matter since zephir doesn't support installing
so it's always the user, who grabs the file. Feel free to fix it, if you figure out why that happens.

@steffengy I was able to fix this please review the fix https://github.com/practiceprovider/zephir/commit/7267a1d7a47a0dfae2cf2d7a009acb0b71a9f5e0
I tested after this fix works fine

@umermalik129
That fix likely does only work when building using phpize but not when building
within a PHP source root (for e.g. compiling the extension statically)

@steffengy I am able to fix path issue without modifying the PHPIZE code please see here https://github.com/practiceprovider/zephir/commit/6b26d1652440a6c7a51d4563e93b064dd90d0341
we only need to change paths inside config.w32 file and configure.js related changes inside Library/Compiler.php commented out for now
I have tested it and working, please let me know if it make sense for both PHPIZE mode and compiling statically

That is interesting but also not a complete fix (you're missing EXTRA_FILES/COMPILED_FILES which still use other pathing and slashes aswell as %PROJECT_LOWER% is somehow replaced with app).

Oh I replaced "%PROJECT_LOWER%" unintentionally as I was testing in configure.js and copied sources lines without changing app to %PROJECT_LOWER% now I change it back to %PROJECT_LOWER%
I am looking "EXTRA_FILES/COMPILED_FILES" now

@steffengy have a look now I also cleaned up PHPIZE related code inside Compiler https://github.com/practiceprovider/zephir/commit/776c537f1e1ad15f5d697c405dd67ce30c1d22d3

@umermalik129
If you can confirm that this works properly with phpize and in-tree/static builds,
please file a PR, if it works +1

@steffengy I have tested it with PHPIZE I will let you know after static builds
For static builds I have to copy app/ext directory to php_src/ext without Release directory inside ext?

pseudo-commands:
copy app/ext php_src/ext
buildconf --force
configure --enable-app=static
nmake

@steffengy I was able to compile ext/app with php src code here is pull request
https://github.com/phalcon/zephir/pull/1234

i have error compile zephir on windows 7 64bit php 7.1 nts 64 this outout :
`D:\zeppro\util>zephir build
zephir_parser extension not loaded, compiling it
'cl' is not recognized as an internal or external command,
operable program or batch file.
'lemon' is not recognized as an internal or external command,
operable program or batch file.
D:\zephir\parser\parser>REM Build Lemon
D:\zephir\parser\parser>cl lemon.c
D:\zephir\parser\parser>del parser.c parser.h scanner.c
D:\zephir\parser\parser>re2c -o scanner.c scanner.re
D:\zephir\parser\parser>lemon -s parser.php5.lemon
D:\zephir\parser\parser>type parser.php5.c  1>parser.c
D:\zephir\parser\parser>type base.c  1>>parser.c
Preparing for parser compilation...
Compiling the parser...
Microsoft (R) Program Maintenance Utility Version 14.00.24210.0
Copyright (C) Microsoft Corporation.  All rights reserved.
NMAKE : fatal error U1064: MAKEFILE not found and no target specified
Stop.
PHP Warning:  copy(Release/php_zephir_parser.dll): failed to open stream: No such file or directory in D:\zephir\Library\Compiler.php on line 256
Warning: copy(Release/php_zephir_parser.dll): failed to open stream: No such file or directory in D:\zephir\Library\Compiler.php on line 256
Zephir\Exception: The zephir parser extension could not be found or compiled!
`

compile-errors.log.txt
Does anyone write e-book or video for tutorial zephir-lang

@jenalgit

'cl' is not recognized as an internal or external command,

'lemon' is not recognized as an internal or external command,

Looks like you have unsatisfied dependencies

Same issue as @jenalgit

@jenalgit u need modify VS2015 and add C++. By default install VS2015 has no C++

Have same issue on Win10x64 + PHP7x64
c:\projects\helloworld>zephir build
zephir_parser extension not loaded, compiling it
Оптимизирующий компилятор Microsoft (R) C/C++ версии 19.00.24215.1 для x86
(C) Корпорация Майкрософт (Microsoft Corporation).  Все права защищены.

C:\zephir\parser\parser>REM Build Lemon

C:\zephir\parser\parser>cl lemon.c
lemon.c
lemon.c(1413): warning C4113: "int (__cdecl *)()" отличается в списках параметров от "int (__cdecl *)(const void *,const void *)"
c:\zephir\parser\parser\lemon.c(3130) : warning C4715: translate_code: значение возвращается не при всех путях выполнения
Microsoft (R) Incremental Linker Version 14.00.24215.1
Copyright (C) Microsoft Corporation.  All rights reserved.

/out:lemon.exe
lemon.obj

C:\zephir\parser\parser>del parser.c parser.h scanner.c

C:\zephir\parser\parser>re2c -o scanner.c scanner.re

C:\zephir\parser\parser>lemon -s parser.php5.lemon
Parser statistics: 127 terminals, 99 nonterminals, 459 rules
                   947 states, 0 parser table entries, 0 conflicts

C:\zephir\parser\parser>type parser.php5.c  1>parser.c

C:\zephir\parser\parser>type base.c  1>>parser.c
Preparing for parser compilation...
ERROR: bison is required
Compiling the parser...

╤ыєцхсэр  яЁюуЁрььр юсёыєцштрэш  яЁюуЁрьь Microsoft (R), тхЁёш  14.00.24210.0
(C) ╩юЁяюЁрЎш  ╠рщъЁюёюЇЄ (Microsoft Corporation).  ┬ёх яЁртр чр∙ш∙хэ√.

NMAKE : fatal error U1077: "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\cl.exe" : тючтЁр∙хээ√щ ъюф "0x2"
Stop.

        "cl.exe" /D COMPILE_DL_ZEPHIR_PARSER /D ZEPHIR_PARSER_EXPORTS=1 -IC:\zephir\parser /nologo /I c:\php-dev/include /I c:\php-dev/include/main /I c:\php-dev/include/Zend /I c:\php-dev/include/TSRM /I c:\php-dev/include/ext /D _WINDOWS /D ZEND_WIN32=1 /D PHP_WIN32=1 /D WIN32 /D _MBCS /W3 /FD /wd4996 /D_USE_32BIT_TIME_T=1 /guard:cf /MP /LD /MD /W3 /Ox /D NDebug /D NDEBUG /D ZEND_WIN32_FORCE_INLINE /GF /D ZEND_DEBUG=0 /I "C:\zephir\parser\no\include" /FoC:\zephir\parser\Release\\ /FpC:\zephir\parser\Release\\ /FRC:\zephir\parser\Release\\ /FdC:\zephir\parser\Release\\ /c C:\zephir\parser\zephir_parser.c
zephir_parser.c
C:\zephir\parser\zephir_parser.c: fatal error C1041: невозможно открыть базу данных программы C:\zephir\parser\Release\vc140.idb; если несколько файлов CL.EXE осуществляют запись в один и тот же PDB-файл, воспользуйтесь /FS

Warning: copy(Release/php_zephir_parser.dll): failed to open stream: No such file or directory in C:\zephir\Library\Compiler.php on line 256
Zephir\Exception: The zephir parser extension could not be found or compiled!

c:\projects\helloworld>

"cl.exe" /D COMPILE_DL_ZEPHIR_PARSER /D ZEPHIR_PARSER_EXPORTS=1 -IC:\zephir\parser /nologo /I c:\php-dev/include /I c:\php-dev/include/main /I c:\php-dev/include/Zend /I c:\php-dev/include/TSRM /I c:\php-dev/include/ext /D _WINDOWS /D ZEND_WIN32=1 /D PHP_WIN32=1 /D WIN32 /D _MBCS /W3 /FD /wd4996 /D_USE_32BIT_TIME_T=1 /guard:cf /MP /LD /MD /W3 /Ox /D NDebug /D NDEBUG /D ZEND_WIN32_FORCE_INLINE /GF /D ZEND_DEBUG=0 /I "C:\zephir\parser\no\include" /FoC:\zephir\parser\Release\ /FpC:\zephir\parser\Release\ /FRC:\zephir\parser\Release\ /FdC:\zephir\parser\Release\ /c C:\zephir\parser\zephir_parser.c
zephir_parser.c

C:\zephir\parser\zephir_parser.c: fatal error C1041: невозможно открыть базу данных программы C:\zephir\parser\Release\vc140.idb; если несколько файлов CL.EXE осуществляют запись в один и тот же PDB-файл, воспользуйтесь /FS

@mzf Could you please translate this message in English for all participants

I added c:\php-sdk\bin (where bison.exe) to PATH and get another error
Changed php5 to php7 in c:\zephir\parser\parser\build_win32.bat
And get another error

c: \ projects \ helloworld> zephir build
zephir_parser extension not loaded, compiling it
Optimizing compiler Microsoft (R) C / C ++ for the x86 version 19.00.24215.1
(C) Microsoft Corporation (Microsoft Corporation). All rights reserved.

C: \ zephir \ parser \ parser> REM Build Lemon

C: \ zephir \ parser \ parser> cl lemon.c
lemon.c
lemon.c (1413): warning C4113: "int (__cdecl *) ()" is different in the parameter list of the "int (__cdecl *) (const void *, const void *)"
c: \ zephir \ parser \ parser \ lemon.c (3130): warning C4715: translate_code: the value returned is not at all the ways of implementation
Microsoft (R) Incremental Linker Version 14.00.24215.1
Copyright (C) Microsoft Corporation.
Compiling the parser ...

Utility service programs Microsoft (R), Version 14.00.24210.0
(C) Microsoft Corporation (Microsoft Corporation). All rights reserved.

NMAKE: fatal error U1077: "C: \ Program Files (x86) \ Microsoft Visual Studio 14.0 \ VC \ BIN \ link.exe": the return code "0x460"
Stop.

        "Cl.exe" / FI main / config.pickle.h / D COMPILE_DL_ZEPHIR_PARSER / D ZEPHIR_PARSER_EXPORTS = 1 -IC: \ zephir \ parser / nologo / I c: \ php-dev / include / I c: \ php-dev / include / main / I c: \ php-dev/include/Zend / I c: \ php-dev/include/TSRM / I c: \ php-dev/include/ext / D _WINDOWS / D ZEND_WIN32 = 1 / D PHP_WIN32 = 1 / D WIN32 / D _MBCS / W3 / FD / wd4996 / D_USE_32BIT_TIME_T = 1 / guard: cf / MP / LD / MD / W3 / Ox / D NDebug / D NDEBUG / D ZEND_WIN32_FORCE_INLINE / GF / D ZEND_DEBUG = 0 / I "C: \ zephir \ parser \ no \ include" / FoC: \ zephir \ parser \ Release \\ / fpC: \ zephir \ parser \ Release \\ / FRC: \ zephir \ parser \ Release \\ / FdC: \ zephir \ parser \ Release \\ / c c: \ zephir \ parser \ zephir_parser.c
zephir_parser.c
        "Cl.exe" / FI main / config.pickle.h / D COMPILE_DL_ZEPHIR_PARSER / D ZEPHIR_PARSER_EXPORTS = 1 -IC: \ zephir \ parser / nologo / I c: \ php-dev / include / I c: \ php-dev / include / main / I c: \ php-dev / include / Zend / I c: \ php-dev / include / TSRM / I c: \ php-dev / include / ext / D _WINDOWS / D ZEND_WIN32 = 1 / D PHP_WIN32 = 1 / D WIN32 / D _MBCS / W3 / FD / wd4996 / D_USE_32BIT_TIME_T = 1 / guard: cf / MP / LD / MD / W3 / Ox / D NDebug / D NDEBUG / D ZEND_WIN32_FORCE_INLINE / GF / D ZEND_DEBUG = 0 / I "C: \ zephir \ parser \ no \ include" / FoC: \ zephir \ parser \ Release \\ / fpC: \ zephir \ parser \ Release \\ / FRC: \ zephir \ parser \ Release \\ / FdC: \ zephir \ parser \ Release \\ / c c: \ zephir \ parser \ parser \ parser.c c: \ zephir \ parser \ parser \ scanner.c
parser.c
scanner.c
scanner.re (30): warning C4101: next: unused local variable (compiled source file C: \ zephir \ parser \ parser \ scanner.c)
parser.php7.c (8140): warning C4101: start_lines: unused local variable (compiled source file C: \ zephir \ parser \ parser \ parser.c)
        rc / I c: \ php-dev / include / n / fo C: \ zephir \ parser \ Release \ php_zephir_parser.dll.res / d FILE_DESCRIPTION = "\" php_zephir_parser.dll \ "" / d FILE_NAME = "\" php_zephir_parser .dll \ "" / d URL = "\" http: //www.php.net \ "" / d INTERNAL_NAME = "\" ZEPHIR_PARSER extension \ "" / d THANKS_GUYS = "\" \ "" c: \ php -dev \ build \ template.rc
Microsoft (R) Windows (R) Resource Compiler Version 6.3.9600.17336
Copyright (C) Microsoft Corporation. All rights reserved.

   Create a library of C: \ zephir \ parser \ Release \ php_zephir_parser.lib and object C: \ zephir \ parser \ Release \ php_zephir_parser.exp
zephir_parser.obj: error LNK2019: unresolved external reference to the symbol in __imp___zval_ptr_dtor _zval_get_type function
parser.obj: error LNK2001: unresolved external symbol "__imp___zval_ptr_dtor"
zephir_parser.obj: error LNK2019: unresolved external reference to the symbol in __imp__zend_parse_parameters _zval_get_type function
zephir_parser.obj: error LNK2019: unresolved external reference to the symbol in __imp__php_info_print_table_header _zval_get_type function
zephir_parser.obj: error LNK2019: unresolved external reference to the symbol in __imp__php_info_print_table_start _zval_get_type function
zephir_parser.obj: error LNK2019: unresolved external reference to the symbol in __imp__php_info_print_table_end _zval_get_type function
parser.obj: error LNK2019: unresolved external reference to the symbol __imp__emalloc @@ 4 _zend_string_alloc function
parser.obj: error LNK2019: unresolved external reference to the symbol __imp__efree @@ 4 _parser_add_str_free function
scanner.obj: error LNK2001: unresolved external symbol "__imp__efree @@ 4"
parser.obj: error LNK2019: unresolved external reference to the symbol in __imp____zend_malloc _zend_string_alloc function
parser.obj: error LNK2019: unresolved external reference to the symbol __imp__zend_hash_str_add @@ 16 _parser_add_str function
parser.obj: error LNK2019: unresolved external reference to the symbol __imp___array

Gotcha!  How install Zephir on PHP7 x64

ehnm is anyone still interested in the php 5.x fix? cause it kinda worked for me, or everyone has moved to php7 while working with zephir


migrate uses locale time for migrations instead of utc

Bug description
When migrations are run in a different timezone the order of the migrations can change if the first migration has a timestamp later than the second timezone.
How to reproduce

Generate a migration
Generate a migration from a timezone with an earlier time
Run migrations

Expected behavior
Migrations stay in the same order locally and remotely
Prisma information
Reproduceable on a new schema
Environment & setup
running postgres in docker, and migrate through yarn

OS: Widows 10
Database: PostgreSQL
Prisma version: 2.0.0-preview021
Node.js version: v12.16.0

Also this is a bug on the migrate repo but I did not see anywhere to submit bugs there


request: vue init without subfolder

Hi!
Is there a way to do vue init webpack . and have the project initialize in the pwd without creating a subfolder? I often have a repo already created and it's a drag to move all files one level up. This makes using an api-server (at top level) serving from /dist much simpler.

Yes, that command works just like you want it to. Haver you actually tried it?

OMG!  Sorry.


QR code generated does not contain all required data

The generated QR code from qrencode only contains the secret. Whilst acceptable this means that someone still has to manually type this into their phone.
Fix URL according to the URL schema published otpauth://TYPE/LABEL?PARAMETERS.

# Examples
Provision a TOTP key for user<EMAIL_ADDRESS>to use with a service provided by Example, Inc:
otpauth://totp/Example:alice@google.com?secret=JBSWY3DPEHPK3PXP&issuer=Example
This Base32 encoded key "JBSWY3DPEHPK3PXP" has the value:>
byte[] key = { 'H', 'e', 'l', 'l', 'o', '!', (byte) 0xDE, (byte) 0xAD, (byte) 0xBE, (byte) 0xEF };
Here's another example with all optional parameters supplied
otpauth://totp/ACME%20Co:john.doe@email.com?>secret=HXDMVJECJJWSRB3HWIZR4IFUGFTMXBOZ&issuer=ACME%20Co&algorithm=SHA1&digits=6&period=30

Able to generate correctly formed URL but for some reason being interpreted as text by QR scanner as opposed to an otpauth link

Resolved. Issue was due to how stdout was being piped to qrencode with a \n newline character that was then being included in the code.


PlaceholderAPI Bug

If the placeholder %player_name% is used in a prize and a player receives the prize, the next winner gets the item with the name of the previous winner, when restarting the plugin the bug is fixed.
Example:
    '18':
      DisplayName: '&4&lSuper Picareta'
      DisplayItem: DIAMOND_PICKAXE
      DisplayAmount: 1
      Lore:
        - '&7Eficiência VI'
        - '&7Durabilidade III'
        - '&7Remendo'
        - '&7Toque Suave'
        - ''
        - '&dItem Super Raro'
      MaxRange: 10000
      Chance: 25
      Firework: false
      Glowing: true
      HideItemFlags: true
      Items:
        - 'Item:DIAMOND_PICKAXE, Amount:1, Name:&4&lSuper Picareta, Lore:&6Dono: &e%player_name%,&dItem Super Raro, DIG_SPEED:6, DURABILITY:3, MENDING:1, SILK_TOUCH:1'
      Commands:
        - 'all &e&lVOTO!&r &a%Player% &fganhou uma &4Super Picareta &fna caixa de voto!'
      Messages:
        - '&e&lVOTO!&r Você ganhou uma &4Super Picareta!'

Fixed: 50c230446d1bc1bbdb7fc8d5161e03ebb57af813

After upgrading to the latest version, the problem continues. :/


Change all file permissions

Why your container changes the file permissions of the shared foldeR?
It causes me a lot of trouble.
Please, create an variable, that the default is to don´t change permissions.

I have mapped an existing folder with mixed permissions. When the container
starts, it changes all permissions for 770, and some other containers, that
use different users stopped working because of this permissions.
I think that the fix is easy, just create an variable that don´t change the
permissions (default behavior) or even better, make the variable to set the
permissions you want.
Em ter., 26 de mar. de 2024 às 18:29, Kroese @.***>
escreveu:

So that you have permission to write to the folder when copying files in
Windows.
What troubles did it cause? So I understand it better.
—
Reply to this email directly, view it on GitHub
https://github.com/dockur/samba/issues/1#issuecomment-2021507185, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AAHBTSDJNBCZZIZPRJSQOYLY2HLD5AVCNFSM6AAAAABFJRWE72VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMRRGUYDOMJYGU
.
You are receiving this because you authored the thread.Message ID:
@.***>

--
Atenciosamente,
Pablo Alcântara
Analista de Tecnologia da Informação, Comunicação e segurança

I do a pull request that do it few seconds ago. Change owner to specific UID, and change the permissions and owner when start container.

@kroese @pepramon It doesn't really fix anything:
https://github.com/dockur/samba/pull/2/files#diff-af5361dea518fca0962e0999e550f5c598d40777e9a0ced364a9d5df6ccfe7c1R31
https://github.com/dockur/samba/pull/2/files#diff-af5361dea518fca0962e0999e550f5c598d40777e9a0ced364a9d5df6ccfe7c1R44-R45
This still changes the permissions on the files.
Personally I wanted to run the container in read only mode (so RW: false) with a read only mount point (so :ro after the path) and it refuses to run:
# docker logs samba
Added user samba.
chmod: /storage: Read-only file system
chmod: /storage: Read-only file system
Failed to set permissions for directory /storage

@kroese Perfect, it works exactly how it should now. Thank you


Tracking with a single IP

Would it be possible to enable tracking with a single IP?

Please see https://github.com/atech/postal/issues/664#issuecomment-424267406
You can use a reverse proxy on tracking as well as the UI but its a bit messy.


Adding Legal page to the landing

This PR is related to this issue: https://github.com/src-d/backlog/issues/1404
I added the legal page. Notice that there seems to be some contents not completed on the Trademark section.

Signed-off-by: Zuri Negrín<EMAIL_ADDRESS>

available at staging
https://landing-staging.srcd.run/legal/
got two conflicts during merge, and decided the following:

~$medium-light:  #9F9F9F;~
$medium-light:  #989898;

and

~$purple:        #d210c9;~
$purple:        #8719cb;

content LGTM. @ricardobaeta would be great to add a media / press kit similar to https://about.gitlab.com/press/press-kit/


MINOR: DirectoryId.MIGRATING should be all zeros

DirectoryId.MIGRATING should be all zeros, because all zeros is the default Uuid value in KPRC.

The directory fields in BrokerRegistrationRequest, RegisterBrokerRecord, BrokerRegistrationChangeRecord, PartitionRecord and PartitionChangeRecord are all of type Uuid[], which defaults to an empty list. We don't have any directory related fields of type Uuid in requests or metadata records. But I still think it makes sense to change this, because we might need such fields in the future.

The directory fields in BrokerRegistrationRequest, RegisterBrokerRecord, BrokerRegistrationChangeRecord, PartitionRecord and PartitionChangeRecord are all of type Uuid[], which defaults to an empty list. We don't have any directory related fields of type Uuid in requests or metadata records. But I still think it makes sense to change this, because we might need such fields in the future.

Yeah. Good points.


Update CameraActivity.java

log some more infos about the just created picture when onShutterKeyDown event is triggered.

I guess you're not interested anymore, but I created a repo exactly for fleshing out the CameraActivity
https://github.com/dired/PMCA-HDMICam/
you can make a request there now, since I am currently active and would gladly look at requests / test changes


Update readme for last refactor

Coverage remained the same at 100.0% when pulling 31f257ef239d926fe7b679ac77fcd95b26e0d6f5 on jorge07:master into 694844c57505d6cc506e7d740d6f63a4f1de2231 on 1ma:master.


Consume a single conformance test ZIP

Depends on https://github.com/jspecify/jspecify/pull/422.

OK, I figured it out.

The problem was that I tried to add system properties with the files extracted from the ZIP in Gradle's configuration phase, which runs while the task graph is being set up. Those files don't appear until the execution phase, which is what actually runs for a task after the tasks it depends on have run.
Setting the system properties in doBefore blocks did the trick.


Newer versions of updater do not take backups when updating

I recently updated to a new version of this updater ( related: https://github.com/SrKomodo/shadowfox-updater/issues/39 )
Today, I made a mistake and went to restore from the .backup file... And there isn't one. Was the feature to make backups, removed? Perhaps this is related to the installer not finding my profile? https://github.com/SrKomodo/shadowfox-updater/issues/40 I moved the installer adjacent to the profiles.ini and it did not make backups again, so I don't think that's the issue.

Fixed in v2.0.0, it was just a dumb typo on the code :P

Mate, that new version is super slick.
I spent 4 hours yesterday searching for a bug and it was a missing semi-colon. We've ALL been there LOL


chore: add a note about SIGSTORE_REKOR_PUBLIC_KEY var

Signed-off-by: hectorj2f<EMAIL_ADDRESS>
Summary

I learned this week that SIGSTORE_REKOR_PUBLIC_KEY env variable is used for testing purposes only. So we should add it to the warning and the code docs.
Ticket Link

Fixes
Release Note

Warn when using SIGSTORE_REKOR_PUBLIC_KEY env variable, it is only for testing.

Codecov Report

Merging #2040 (31c1968) into main (94832ba) will not change coverage.
The diff coverage is 0.00%.

@@           Coverage Diff           @@
##             main    #2040   +/-   ##
=======================================
  Coverage   26.22%   26.22%
=======================================
  Files         128      128
  Lines        7539     7539
=======================================
  Hits         1977     1977
  Misses       5307     5307
  Partials      255      255

Impacted Files
Coverage Δ

pkg/cosign/tlog.go
30.07% <0.00%> (ø)

Continue to review full report at Codecov.

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


Azure Text to Speech | Error: 401 Something went wrong. Check your subscription key and headers.

Getting Error: 401 Something went wrong. Check your subscription key and headers.
I have Only tried a plain sample from the official documentation with proper subscription keys and region URL.
My account is active and everything configured correctly, But I'm not able to reach this service.
Language: Python
Sample Code I Used:
https://docs.microsoft.com/en-us/azure/cognitive-services/speech-service/quickstarts/text-to-speech?tabs=dotnet%2Clinux%2Cjre%2Cwindowsinstall&pivots=programming-language-python

Hi @shankarThiyagaraajan, please see the support links at https://docs.microsoft.com/en-us/azure/cognitive-services/speech-service/support#create-a-github-issue for the appropriate GitHub trackers for issues with Azure Text to Speech.
Thanks!


Attempt to track inconsistent export sizes

Constructors that export sized elements are inconsistent when also exporting unsized elements.  This is commonly happens when exporting tokens or variables created in actions (without first assigning to a sized local/sized const/etc...)
I haven't run this through all the current processors, but testing with 6809 (see #2116 for reference), which found another potential issue with the two EA: addr",PCR"
@caheckman  looks like you may be the most familiar with this file based on blame, any thoughts?

I'm not a fan of using sentinel values in java. Even though tablesize should never be negative, a boolean that checks whether the tablesize was set would be better. I can't comment to the correctness of the fix however.

Yeah, that would be an improvement either way.   Thanks for taking a look @GhidorahRex .

Partly included with commit 349b891

Addressed this issue in a slightly different way.


Feature/1124 Added Pytorch Lightning Test support for all models

This closes #1124

[x] Update models PL model adapter
[x] Unit Tests
[x] Update notebook documentation

I added some additional unit tests to also test the on_test_epoch_end, on_validation_epoch_end and the validate method from the Pytorch Lightning Trainer.validate to ensure we can validate as well.
If someone can re-run the github workflows I would appreciate it (I'm a first-time contributor so I cannot trigger it).

@fstroth @ai-fast-track @FraPochetti The unit tests are passing on my local machine but not on the CI (OOM Killed).
This looks like a memory issue, this PR adds a lot of tests where a lot of models are created, we had a similar issue last week on our side and needed to run the tests on a machine with more RAM.
Is there a way to fix this ?

Yes, we do experience that now and then. It's good to know the tests passed on your local machine.
Thank you for your contribution!

@ai-fast-track It's a pleasure to contribute, we're really enjoying IceVision so far.
Let me know what is left to get it merged, we're in great need of these changes so just let me know and I'll get it done if anything.
Cheers!

This is really nice, very useful PR.

Here is a photo showing the tests passing locally, we can also see that the RAM usage was steady (~13GB).

If this PR prevents test from passing in the future we should tackle this OOM bug asap. Otherwise gh ci/cd will be misleading


CONSOLE ERROR [native code]: ERROR TypeError: undefined is not an object (evaluating 'frame_1.topmost().ios')

From @felicks on September 12, 2018 10:43
I've tried to update a nativescript project. I can successfully build the project but run into the following xCode error message:
2018-09-12 10:35:16.580715+0200 HelloWorld[3200:783878] CONSOLE ERROR [native code]: ERROR TypeError: undefined is not an object (evaluating 'frame_1.topmost().ios')
package.json:
{
"nativescript": {
"id": "org.nativescript.HelloWorld",
"tns-android": {
"version": "4.2.0"
},
"tns-ios": {
"version": "4.2.0"
}
},
"description": "NativeScript Application",
"license": "SEE LICENSE IN ",
"repository": "",
"dependencies": {
"@angular/animations": "~6.1.0",
"@angular/common": "~6.1.0",
"@angular/compiler": "~6.1.0",
"@angular/core": "~6.1.0",
"@angular/forms": "~6.1.0",
"@angular/http": "~6.1.0",
"@angular/platform-browser": "~6.1.0",
"@angular/platform-browser-dynamic": "~6.1.0",
"@angular/router": "~6.1.0",
"nativescript-angular": "~6.1.0",
"nativescript-carousel": "^4.0.2",
"nativescript-email": "^1.5.3",
"nativescript-localstorage": "^1.1.5",
"nativescript-theme-core": "~1.0.4",
"nativescript-toast": "^1.4.6",
"nativescript-ui-sidedrawer": "^4.3.0",
"node-sass": "^4.9.3",
"reflect-metadata": "~0.1.8",
"rxjs": "^6.3.2",
"tns-core-modules": "~4.2.0",
"webpack": "^4.17.2",
"zone.js": "^0.8.26"
},
"devDependencies": {
"@angular/compiler-cli": "~6.1.0",
"@ngtools/webpack": "~6.2.0",
"nativescript-dev-typescript": "~0.7.0",
"nativescript-dev-webpack": "^0.16.0",
"typescript": "~2.7.2"
},
"readme": "NativeScript Application"
}
Copied from original issue: NativeScript/NativeScript#6259

Hi @felicks,
Can you provide more info about the steps, which you are using while building the app? How did you build it with tns run ios or tns run ios --bundle command? It will help if you give us sample project, which can be used for debugging or at least some code fragments, which you think that can be responsible for the error.
In the meantime, try to clear up the project while following the below-attached steps and check if you will be able to recreate the problem.

delete node_modules, platforms, hooks folders and package-lock.json file.
run npm cache clear command
rebuild the project with tns run ios

Hi @felicks,
Can you try building the project firstly without --bundle? Build it only with tns run ios.
From the provided log I notice the following error:

CONSOLE ERROR file:///app/vendor.js:32764:24: ERROR Error: Uncaught (in promise): Error: NativeScriptModule has already been loaded. Import NativeScriptModule in the AppModule only.

Make sure that the NativeScriptModule is included only once in the app.

closing due to inactivity


Support BigQuery Materialized Views

Describe the feature
Support https://cloud.google.com/bigquery/docs/materialized-views-intro
Describe alternatives you've considered

add BQ specific configuration:

{{ config(
    materialized='view',
    materialized-view='true' # default 'false
)}}

create new materialization, initially for BQ only, over time perhaps implement for additional databases

{{ config(
    materialized='materialized-view',
)}}

Additional context
Some powerful stuff here https://cloud.google.com/bigquery/docs/materialized-views-intro
Who will this benefit?
BQ users

This would be very helpful for my current use case.  Any update on when this is coming?

+1

+1 :)

+1

+1

+1

+1

+1

+1 :)

+1

+1

+1

+2

+1

+1

+1

Will you guy knock it off? The way to vote on things is to use the 👍 reaction on the description at the top, not to post comments.

@willbryant :  Upvotes won't prevent the issue from going "stale" and being automatically archived by the bot.
Also upvotes wont bump the issue, so developers will not have a sense of priority.
But you can customise your subscription to prevent "alarm fatigue" (spam)

+1, this is essential

+1

This is so needed!

+1

+1

+1

+1

+1

+1

+1

This was implemented in dbt v1.7  https://github.com/dbt-labs/dbt-core/pull/8449
Here an article from their blog
https://docs.getdbt.com/blog/announcing-materialized-views


List of refactors for the Graphql Server

Need to make generic MongoDB operations. Currently, we have too many functions to make similar MongoDB operations.
Need to refactor the directory structure to make the reusability
Need to refactor the graphql schema for the subscriber.
Need to change some environment variables to a meaningful name.

cc @gdsoumya

@rajdas98 @gdsoumya  Please assigned it to me as well i will try to make some meaningful changes.

@oumkale we are already looking into this, @rajdas98 has started the refactor I believe. You can surely reach out to him and check if he needs any help.

@gdsoumya Ok thanks.


Understanding the GET version of the login route

I was able to get the GET version of this route working fairly easily. I was able to understand what was needed since it was straightforward. My issue with it now is that I would like it to tell me if I'm logged in so I don't get the standard login screen, but some sort of re-direct to the index indicating that logging in is not necessary.

Creating new issue to address creating some sort of indication to the user that they are currently logged in or not logged in


Support a fix mode?

Many findings are trivially fixable and insert-only, e.g. inserting persist-credentials: false. It would be nice to expose a --fix flag or similar that could apply these.
Implementation-wise, this should probably happen at tree-sitter level, since tree-sitter has mature support for modifying trees.

https://github.com/woodruffw/zizmor/pull/136 and https://github.com/woodruffw/zizmor/discussions/129 are continuing to reveal that there are a lot of false positives with template injection, since the github.* context's namespace is massive.
A fix mode could help a little bit here by offloading the work of identifying many of these: GitHub provides default environment variables that cover many common context accesses, and we could suggest/autofix users into those.

I would love to see a fix mode similar to e.g. ruff.
We developed a simple tool to do action pinning, see: https://github.com/eclipse-csi/octopin, but ultimately, we would like to so other fixes that your tool detects as well. So I could work on a PR to add some action pinning as initial fix. Though I have not used rust before, so that might require some iterations.

So I could work on a PR to add some action pinning as initial fix. Though I have not used rust before, so that might require some iterations.

Please feel free! The main challenge here (I think) will be doing this at the AST level, and not with regular expressions or other string patching techniques.
My plan was to look into doing that with tree-sitter-yaml, but I won't get to it in the near future so I welcome any efforts here :slightly_smiling_face:

So I looked into tree-sitter for another usecase (to modify jsonnet AST), but apparently, tree-sitter does not support editing the AST it generates: https://github.com/tree-sitter/tree-sitter/discussions/2667
There are workaround that I found, but that is not what you wanna do imho.
go-yaml seems to have some support to preserve whitespace and comments when you do a roundtrip, not sure if something like this exists for rust as well. Having a full blown AST parser that supports source preserving roundtrips would be preferred ofc.


Please add a method to list plugins from the velero CLI

Describe the solution you'd like
At the moment, the velero CLI only provides a way to add or remove plugins. It does not provide a way to list plugins. This would be a nice feature to include in the velero CLI, esepcially when trying to determine which version of a plugin you may have previously installed.
Environment:

Velero version: (use v0.11):
Kubernetes version: (use 1.14.1):
Kubernetes installer & version:
Cloud provider or hardware configuration: vSphere VCP
OS (e.g. from /etc/os-release): Ubuntu 17.10

The easy thing to do here is add a velero plugin list that lists the plugin container images that have been added to the velero deployment. This won't list individual plugins, though - just the containers that were added as init containers.
The more complex solution of listing individual plugins within the binary would need to go through a CRD that the server processes. I could see this using the ServerStatusRequest CR that we have that currently just shows server version info.


Add sketch size parameter to MASH

Some of the datasets I worked with were very diverse. Sketch sampling size is a key parameter for diverse dataset and accurate predictions.
I increase the sketch size with option -s from 1000 to 10000 and got much better results. This sample size is also used in the paper https://www.nature.com/articles/s42003-020-01626-5#Sec11.
I recommend increasing the sketch size to 10 k in the default mash run.

Fixed in #345


Oops: decoding an arraybuffer vs uint8array

I am comparing this library to another CBOR decoder -- evaluating if I can replace that one with your library, as a dependency in my tool -- and I ran into a bit of a footgun.
Your decodeCBOR() / decodeCBORIntoNative() functions expect a Uint8Array value. However, I passed a raw ArrayBuffer, because that's what comes back in the attestationObject property of the result of webauthn create(). And it "failed", but not with an exception, it just returned [0, 1].

NOTE: I was passing in the raw value because that other CBOR library internally uses DataView for its parsing, which means it's forgiving of receiving a raw buffer instead of the typed array.

I lost about 20 minutes to this mistake, before figuring out what I was doing wrong. It would probably have been helpful if your functions threw an exception if not being provided what's expected, would have saved me from that confusion.
Alternatively, perhaps you could relax (for convenience sake) your acceptance, to include raw ArrayBuffer values -- again, since that's what the webauthn API returns, so a lot of users will probably trip over this -- and detect if that's been passed, and just automatically cast to a Uint8Array?
Or lastly, it might be helpful minimally, if in your documentation you call out this little gotcha and at least remind users (like me!) that they need to make sure to pass new Uint8Array( theValue ) into your functions?

This should be caught by TypeScript, no?

That's probably true. However I don't use TypeScript, so it wasn't helpful to me in this case.

Projetos de inclusão social. Onde pessoas importam e não são invisíveis. Empregados ou não. Dentro ou fora das suas comunidades. Fato é.  São irrevantes se as questões sociais delas se resolvem. No final reina o capital Neoliberal.


ciao-vendor needs a semaphore

In an attempt to speed up dependency calculation ciao-vendor runs golist in concurrently.   There's one routine per dependency.  Go list can fail if the user has a low open file limit.  On OSX this seems to default to 256 so I'm easily hitting this limit.  As ciao-vendor suppresses the error from go list, this lead to some weird behaviour which took 20 minutes to debug.  Let's add that semaphore.

There's probably no point in fixing this as we should move to dep soon.


Parallelise formatting files and projects

I see two ways to parallelise rustfmt pretty easily: in cargo-fmt, run the rustfmt processes in parallel, rather than sequentially (up to a max of the number of cores). This should be pretty trivial to do. And inside rustfmt, format multiple files at a time (spawning one thread per queue). This is a bit more difficult since we'll need to use a thread pool and we'll need to make the Rustfmt state thread-safe. There second will probably work better and if we do that, then we probably shouldn't also do multi-process cargo-fmt.

I think it makes sense to do the parallelism on the library side of things, or on rustfmt command line utility. Any preference?

Last time I tried this, it was impossible to make the rustfmt state thread-safe since the types from libsyntax was not thread-safe (IIRC they were using Cell internally).

This would be good - I'm seeing python's black running 30-40% faster than cargo fmt for formatting a similar number of lines of code. I'm assuming rust-analyser's new parsing crate is thread-safe?


msg.childpath not working

Hello
today i tried your library and found that if i want to set the path using msg.childpath it give me an error that it treat msg.childpath as it`s the path
i already fixed the problem by just changing the query once function
`var QueryOnce = function(msg) {
console.log("from Query once",msg)
console.log("from Query once",node.childpath)
var childpath = node.childpath
if(childpath == "msg.childpath"){
if("childpath" in msg){
childpath = msg.childpath
}
}
childpath = childpath || "/"
firebase.database().ref(childpath).once(node.eventType.toString()).then(function (snapshot) {
                            msg.payload = snapshot.val();
                            node.send(msg);
                            node.status({ fill: "green", shape: "ring", text: "Received Data(Once) at " + Utils.getTime() });
                    });
            }`

Hi, Your changes are merged into the repo.


Documentation Proposal

Proposal of the spack documentation.
Currently, the README is almost emtpy -> any suggestion how to fill it up again?
A preview of the page is at Jonas Jucker IO-Page

There is a release number (v.0.0.1) I think we should remove this since now this is part of the spack repo, see https://github.com/MeteoSwiss-APN/spack-mch/pull/204/files?file-filters[]=.py&file-filters[]=.rst#diff-85933aa74a2d66c3e4dcdf7a9ad8397f5a7971080d34ef1108296a7c6b69e7e3R26 maybe check with @cosunae


add undo log manager-flush undo log func #269

What this PR does:
add undo log manager-flush undo log func
Which issue(s) this PR fixes:
Fixes #269
Special notes for your reviewer:
Does this PR introduce a user-facing change?:
NONE

Codecov Report

Merging #307 (f429cc7) into master (c272389) will decrease coverage by 2.59%.
The diff coverage is 17.50%.

@@            Coverage Diff             @@
##           master     #307      +/-   ##
==========================================
- Coverage   56.83%   54.24%   -2.60%
==========================================
  Files          83       87       +4
  Lines        4094     4382     +288
==========================================
+ Hits         2327     2377      +50
- Misses       1627     1860     +233
- Partials      140      145       +5

Impacted Files
Coverage Δ

pkg/datasource/sql/async_worker.go
35.65% <ø> (ø)

pkg/datasource/sql/datasource/mysql/meta_cache.go
0.00% <0.00%> (ø)

pkg/datasource/sql/datasource/mysql/trigger.go
0.00% <0.00%> (ø)

.../sql/undo/builder/mysql_delete_undo_log_builder.go
41.81% <ø> (ø)

pkg/util/fanout/fanout.go
87.30% <ø> (ø)

pkg/datasource/sql/undo/executor/sql.go
49.00% <49.00%> (ø)

pkg/datasource/sql/datasource/mysql/default.go
25.00% <0.00%> (ø)

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


Installation Issue on COLAB

Hi,
So I am trying to install ALIGN into my google COLAB notebook, but my build is failing. I am not well versed with Python libraries installation and dependencies of various libraries,
The last few lines of Output when I run " pip install -v . ", is as,
Building wheels for collected packages: align
Created temporary directory: /tmp/pip-wheel-xjtazmw_
Destination directory: /tmp/pip-wheel-xjtazmw_
Running command /usr/bin/python3 /usr/local/lib/python3.7/dist-packages/pip/_vendor/pep517/in_process/_in_process.py build_wheel /tmp/tmprz_46qw3
Not searching for unused variables given on the command line.
-- The C compiler identification is GNU 7.5.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- The CXX compiler identification is GNU 7.5.0
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Configuring done
-- Generating done
-- Build files have been written to: /tmp/pip-req-build-z1unefju/_cmake_test_compile/build
CMake Error at CMakeLists.txt:1 (cmake_minimum_required):
CMake 3.15..3.18 or higher is required.  You are running version 3.12.0
-- Configuring incomplete, errors occurred!
File "/tmp/pip-build-env-31qj81bs/overlay/lib/python3.7/site-packages/skbuild/setuptools_wrap.py", line 590, in setup
languages=cmake_languages
File "/tmp/pip-build-env-31qj81bs/overlay/lib/python3.7/site-packages/skbuild/cmaker.py", line 248, in configure
os.path.abspath(CMAKE_BUILD_DIR())))

-- Trying "Ninja" generator

--

-- Trying "Ninja" generator - success
Configuring Project
Working directory:
/tmp/pip-req-build-z1unefju/_skbuild/linux-x86_64-3.7/cmake-build
Command:
cmake /tmp/pip-req-build-z1unefju -G Ninja -DCMAKE_INSTALL_PREFIX:PATH=/tmp/pip-req-build-z1unefju/_skbuild/linux-x86_64-3.7/cmake-install -DPYTHON_EXECUTABLE:FILEPATH=/usr/bin/python3 -DPYTHON_VERSION_STRING:STRING=3.7.11 -DPYTHON_INCLUDE_DIR:PATH=/usr/include/python3.7m -DPYTHON_LIBRARY:FILEPATH=/usr/lib/x86_64-linux-gnu/libpython3.7m.so -DSKBUILD:INTERNAL=TRUE -DCMAKE_MODULE_PATH:PATH=/tmp/pip-build-env-31qj81bs/overlay/lib/python3.7/site-packages/skbuild/resources/cmake -DALIGN_VERSION:string=0.9.8 -DCMAKE_BUILD_TYPE:STRING=Release
Traceback (most recent call last):
An error occurred while configuring with CMake.
Command:
cmake /tmp/pip-req-build-z1unefju -G Ninja -DCMAKE_INSTALL_PREFIX:PATH=/tmp/pip-req-build-z1unefju/_skbuild/linux-x86_64-3.7/cmake-install -DPYTHON_EXECUTABLE:FILEPATH=/usr/bin/python3 -DPYTHON_VERSION_STRING:STRING=3.7.11 -DPYTHON_INCLUDE_DIR:PATH=/usr/include/python3.7m -DPYTHON_LIBRARY:FILEPATH=/usr/lib/x86_64-linux-gnu/libpython3.7m.so -DSKBUILD:INTERNAL=TRUE -DCMAKE_MODULE_PATH:PATH=/tmp/pip-build-env-31qj81bs/overlay/lib/python3.7/site-packages/skbuild/resources/cmake -DALIGN_VERSION:string=0.9.8 -DCMAKE_BUILD_TYPE:STRING=Release
Source directory:
/tmp/pip-req-build-z1unefju
Working directory:
/tmp/pip-req-build-z1unefju/_skbuild/linux-x86_64-3.7/cmake-build
Please see CMake's output for more information.
Building wheel for align (PEP 517) ... error
ERROR: Failed building wheel for align
Failed to build align
ERROR: Could not build wheels for align which use PEP 517 and cannot be installed directly
Exception information:
Traceback (most recent call last):
File "/usr/local/lib/python3.7/dist-packages/pip/_internal/cli/base_command.py", line 180, in _main
status = self.run(options, args)
File "/usr/local/lib/python3.7/dist-packages/pip/_internal/cli/req_command.py", line 199, in wrapper
return func(self, options, args)
File "/usr/local/lib/python3.7/dist-packages/pip/_internal/commands/install.py", line 363, in run
", ".join(pep517_build_failure_names)
pip._internal.exceptions.InstallationError: Could not build wheels for align which use PEP 517 and cannot be installed directly
Removed build tracker: '/tmp/pip-req-tracker-ufs7syx0'

Awaiting user input. Please reopen if needed @mt19146


trading inside spread

Is it possible to put own orders in orderbook instead of just filling orders?
This would increase margin.

What do you mean by putting own orders in the orderbook? Do you mean using a limit order instead of a market order for entry/exit?

exactly, I want put orders on orderbook instead of market orders.

I think market orders are use to guarantee an immediate fill. Limit orders doesn't provide that guarantee which means special logic needs to be added to handle that scenario.

Sure!
I need to modify code to do this I think?
Anybody can help with this?

Isn't that conceptually what the trailing strategy attempts to perform?, as an opportunity would be executed when the spread has closed a bit below our trailing spread limit, we pretty want the order to be filled ASAP, right?

Actually reading up the code a bit it actually sends limit orders instead of market orders, asked this on gitter and @butor replied:

@alfonsoperez Using market orders with automatic trading systems is not recommended, because you have no control over the price. If the price suddenly jumps to 10% more then your market order will still be executed, regardless of the price you will have to pay. With limit orders we can set a limit on that.

Upon asking:

so my concern was that if I set two independent limit orders (buy and short sell), and then let’s say one goes suddenly way up (in the one I am trying to go long), so my long does not get executed, but the other one stays so it gets executed, that would be a problem correct?
have you had an experience with that?

He replied:

That's correct. That's why we are making sure the liquidity at our target price is 3 times what is actually needed (parameter OrderBookFactor)


[QUERY] Make GAMM queries follow TWAP query code format

Closes: #2509
What is the purpose of the change
GAMM grpc query was calling internal pool methods, in ways that it shouldn't. All queries should have been routing through the keeper layer.
I think we should move to the query model suggested with the querygen tool, even though its incomplete. (Moving all proto wrapping boilerplate out-of-module into the client package, ensuring all of these only run public methods)
Brief Changelog
not sure if this is a breaking change, if it is i'll write changelog
Testing and Verifying
moved grpc_test to its own suite
Documentation and Release Note

Does this pull request introduce a new feature or user-facing behavior changes? (yes / no)
Is a relevant changelog entry added to the Unreleased section in CHANGELOG.md? (yes / no)
How is the feature or change documented? (not applicable   /   specification (x/<module>/spec/)  /  Osmosis docs repo   /   not documented)

The reason why this PR got so big was because i had to change the gamm proto definitions to make the grpc-query function consistent with what we had before
QuerySwapExactAmountInRequest -> QueryEstimateSwapExactAmountInRequest
QuerySwapExactAmountOutRequest -> QueryEstimateSwapExactAmountOutRequest


Clone TSC repo and use it as local module

This approach will always use the latest tsc repo w/o the need of manually updating go modules. Since we have CI trigger for every change in the tsc repo, we can simply use HEAD of tsc's main.
Here is a preview page generated from this PR: https://www.chipsalliance.org/preview/44/


Video compatibility

Hey! I've been trying to use the exif reader with video but having no luck.
I've tried with multiple mp4 files, and some mov files.
It works fine with images I've tested with. Is it for images only?
The error I get is:
[VERBOSE-2:dart_vm_initializer.cc(41)] Unhandled Exception: PlatformException(READ_ERROR, Error while reading metadata from source, null, null)
#0      StandardMethodCodec.decodeEnvelope (package:flutter/src/services/message_codecs.dart:652:7)
#1      MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:310:18)
<asynchronous suspension>
#2      Exif.getAttributes (package:native_exif/native_exif.dart:54:20)

Makes sense. Thanks for the confirmation. I was trying to get access to apples "created at" metadata. I don't know how they store it. But yeah a note in the readme that it's for images only would probably be good :D
Cheers!


'Decimal'. New entered value is automatically prefixed with '.'

Describe the bug
For 'decimals' when number with fractional part was previously entered, then selected (CTRL + A) and user types some new number, it is automatically prefixed by a dot.
Live example
123.123 was entered. Highlight the number with CTRL + A and start to type in new number. E.g. 456. The result will be .456 (starting with '.').
Please complete the following information:

Windows
Chrome
Inputmask version 5.0.0-beta.262

Additional context
I'm using following parameters for initialisation:
$(".cl").inputmask(
        "decimal",
        {
            placeholder: ' ',
            groupSeparator: ',',
            radixPoint: '.',
            autoUnmask: true,
            _radixDance: false,
        }
    );

You can work around it until it's fixed with a onFocus handler setting the value to 0
$(selector).on('focus', function() {
$(this).inputmask("setvalue", 0);
});

@Vishnja ,  @mortenfa ,
The issue is fixed in v5.0.0-beta.272

Still not working, same result with currency
{
digits: 2,
allowMinus: false,
groupSeparator: '.',
rightAlign: false,
radixPoint: ',',
prefix: '',
removeMaskOnSubmit: true
    }

@mortenfa ,
That is an other issue I am working on.


helm 3.0 beta2 has same release in one namespace

helm install from repo and upgrade from local
helm install prometheus-operator  offical-repo/prometheus-operator --namespace=kube-system
helm upgrade prometheus-operator .  -n kube-system -f values.yaml

helm list -n kube-system
NAME                    NAMESPACE       REVISION        UPDATED                                 STATUS          CHART
prometheus-operator     kube-system     16              2019-09-01 12:18:36.589258986 +0800 CST failed          prometheus-operator-6.8.0
prometheus-operator     kube-system     32              2019-09-04 20:57:28.827982696 +0800 CST deployed        prometheus-operator-6.8.0

Output of helm version:
version.BuildInfo{Version:"v3.0.0-beta.2", GitCommit:"26c7338408f8db593f93cd7c963ad56f67f662d4", GitTreeState:"clean", GoVersion:"go1.12.9"}

Output of kubectl version:
Client Version: version.Info{Major:"1", Minor:"14", GitVersion:"v1.14.1", GitCommit:"b7394102d6ef778017f2ca4046abbaa23b88c290", GitTreeState:"clean", BuildDate:"2019-04-08T17:11:31Z", GoVersion:"go1.12.1", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"14", GitVersion:"v1.14.1", GitCommit:"b7394102d6ef778017f2ca4046abbaa23b88c290", GitTreeState:"clean", BuildDate:"2019-04-08T17:02:58Z", GoVersion:"go1.12.1", Compiler:"gc", Platform:"linux/amd64"}

Cloud Provider/Platform (AKS, GKE, Minikube etc.):
none

It looks like helm list is just accidentally showing revisions 16 and 32 from the same release ledger. Perhaps the "failed" and "deployed" statuses are significant here.
 Install this chart
issue-6356-chart.zip
Upgrade with this chart
issue-6356-chart-new.zip
Upgrade will fail due to immutable field error. And running helm list shows this
$ helm ls
NAME    NAMESPACE       REVISION        UPDATED                                 STATUS          CHART
dummy   default         1               2019-09-07 11:50:04.078966 +0530 IST    deployed        dummy-chart-0.1.0
dummy   default         2               2019-09-07 11:52:18.867486 +0530 IST    failed          dummy-chart-0.1.0

Doing another upgrade with same issue-6356-chart-new leads to another error and helm list shows this
$ helm ls
NAME    NAMESPACE       REVISION        UPDATED                                 STATUS          CHART
dummy   default         1               2019-09-07 11:50:04.078966 +0530 IST    deployed        dummy-chart-0.1.0
dummy   default         2               2019-09-07 11:52:18.867486 +0530 IST    failed          dummy-chart-0.1.0
dummy   default         3               2019-09-07 11:55:29.931651 +0530 IST    failed          dummy-chart-0.1.0

basically all failed releases are coming. Finally upgrading with issue-6356-chart passes and helm list shows this
$ helm ls
NAME    NAMESPACE       REVISION        UPDATED                                 STATUS          CHART
dummy   default         2               2019-09-07 11:52:18.867486 +0530 IST    failed          dummy-chart-0.1.0
dummy   default         3               2019-09-07 11:55:29.931651 +0530 IST    failed          dummy-chart-0.1.0
dummy   default         4               2019-09-07 11:57:52.858755 +0530 IST    deployed        dummy-chart-0.1.0

Checking it out. Will raise a PR if I find the issue 😄

This is what is currently happening - we take all the releases information and do the filtering based on state, for which the default is deployed or failed. The thing is, when we get releases information, we get all the revisions of all the releases and then do the filtering, so, given a release name, multiple revisions will show up. And this happens for all the release storage drivers - Secrets, ConfigMaps, In-Memory, where helm could possibly store releases.
I was thinking we could put a fix in the storage driver code, where when we say list and filter based on a passed function. Like for secrets, inside this function
https://github.com/helm/helm/blob/895e9192d440e144ead0796fd8c1db81b47ef1c6/pkg/storage/driver/secrets.go#L80
Before doing filtering, we can find the latest revision of each release and get rid of the old revisions. In helm v2, I think there's some similar code to do this, over here
https://github.com/helm/helm/blob/8fcc438b67de564a3dd9255ec9c1634229b764c0/cmd/helm/list.go#L197
One thing to note is, we need to implement the removal of old revisions in the List method of all the storage drivers. This is something to keep in mind, and we may also need to put a comment on List method saying that it lists all latest revisions of releases, and does not include old ones.
Another solution that I have is - to finish off filtering based on status first, then filter out the old revisions, which doesn't exactly make sense as there will be lots of old revisions for each release, so there would be unnecessary filtering computation being done for it and then later they will get filtered out. Doesn't sound performant though. I'm not sure if there are any advantages that I'm overlooking here though, like library API etc, but performance is still important and this doesn't look performant
I'm willing to raise a PR for the fix based on the solution we choose.
@bacongobbler What are your thoughts on this? 😄 Any other solutions that you have in mind for the fix?

That sounds about right - it's likely something in the current filters used by helm list that's causing failed releases to show up.

Cool, I'll write some tests for this and fix it 😄  the issue also shows up differently in helm ls -a command, even when there are no failed releases.

Choosing this solution for the PR :

we could put a fix in the storage driver code, where when we say list and filter based on a passed function.
Before doing filtering, we can find the latest revision of each release and get rid of the old revisions.
One thing to note is, we need to implement the removal of old revisions in the List method of all the storage drivers.

I have raised a PR for this! @bacongobbler

fixed in #6479


I am not able to use  standard library package.

Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (go version)?
go version go1.9.2 windows/amd64
Does this issue reproduce with the latest release?
I do not know.
What operating system and processor architecture are you using (go env)?
set GOARCH=amd64
set GOBIN=
set GOEXE=.exe
set GOHOSTARCH=amd64
set GOHOSTOS=windows
set GOOS=windows
set GOPATH=D:\play-with-go
set GORACE=
set GOROOT=C:\Go
set GOTOOLDIR=C:\Go\pkg\tool\windows_amd64
set GCCGO=gccgo
set CC=gcc
set GOGCCFLAGS=-m64 -mthreads -fmessage-length=0
set CXX=g++
set CGO_ENABLED=1
set CGO_CFLAGS=-g -O2
set CGO_CPPFLAGS=
set CGO_CXXFLAGS=-g -O2
set CGO_FFLAGS=-g -O2
set CGO_LDFLAGS=-g -O2
set PKG_CONFIG=pkg-config
What did you do?
I am developer.
If possible, provide a recipe for reproducing the error.
I am trying to use func MarshalPKCS8PrivateKey(key interface{}) ([]byte, error), but I got Error:
.\main.go:90:21: undefined: x509.MarshalPKCS8PrivateKey
A complete runnable program is good.
A link on play.golang.org is best.
What did you expect to see?
The function I am trying to use the function which is defined in the x509 package. I should be able to use this.
What did you see instead?
Error.

x509.MarshalPKCS8PrivateKey was added in Go 1.10.

Thanks. Upgraded to Go 1.10. Its working now.

it works,thanks


Ensure Xcode project is setup to start debugger

Some users have their Xcode settings set to not debug (see example here https://github.com/flutter/flutter/issues/136197#issuecomment-1766834195). This will cause the engine check for a debugger to fail, which will cause an error and cause the app to crash.
This PR parses the scheme file to ensure the scheme is set to start a debugger and warn the user if it's not.
Fixes https://github.com/flutter/flutter/issues/136197.
Pre-launch Checklist

[x] I read the Contributor Guide and followed the process outlined there for submitting PRs.
[x] I read the Tree Hygiene wiki page, which explains my responsibilities.
[x] I read and followed the Flutter Style Guide, including Features we expect every widget to implement.
[x] I signed the CLA.
[x] I listed at least one issue that this PR fixes in the description above.
[x] I updated/added relevant documentation (doc comments with ///).
[x] I added new tests to check the change I am making, or this PR is test-exempt.
[ ] All existing and new tests are passing.

If you need help, consider asking for advice on the #hackers-new channel on Discord.

@eliasyishak since @christopherfujino is OOO, could you review?


Index error when running Pose2Sim.track2D() on Linux

When running Pose2Sim.track2D() within the Demo directory, I get the following error:
    250 frames_range = config.get('project').get('frames_range')
    252 calib_dir = os.path.join(project_dir, calib_folder_name)
--> 253 calib_file = glob.glob(calib_dir+'\*.toml')[0]
    254 pose_dir = os.path.join(project_dir, pose_folder_name)
    255 poseTracked_dir = os.path.join(project_dir, poseTracked_folder_name)

IndexError: list index out of range

It seems that the +"*.toml" at that line should be replaced with os.path.join as in the neighboring lines.
This should be replaced for both track_2d_all and recap_tracking functions.

This is an issue within the triangulate_3d.py file as well.

Thank you for pointing out this (stupid) mistake!

Copied to new repository:
https://github.com/perfanalytics/pose2sim/issues/7


Flutter Material Icon - Question_mark

The question mark icon, which is the material icon, cannot be displayed on the application or appears as a different icon.
Column(
              mainAxisAlignment: MainAxisAlignment.spaceEvenly,
              crossAxisAlignment: CrossAxisAlignment.center,
              children: [
                Row(children: const <Widget>[
                  Expanded(
                    flex: 1,
                    child: Icon(
                      Icons.question_mark_rounded,
                      color: Colors.blueAccent,
                    ),
                  ),
                  Expanded(
                    flex: 5,
                    // name
                    child: Text(
                        "Lorem ipsum dolor sit amet, consectetur adipiscing elit."),
                  ), // name
                ]),
              ],
            );

Hi @abdullah017, please provide the output of flutter doctor -v.
Thank you

`[✓] Flutter (Channel stable, 2.10.1, on macOS 12.3 21E230 darwin-arm, locale
en-TR)
• Flutter version 2.10.1 at /Users/piton/Documents/flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision db747aa133 (5 weeks ago), 2022-02-09 13:57:35 -0600
• Engine revision ab46186b24
• Dart version 2.16.1
• DevTools version 2.9.2
[✓] Android toolchain - develop for Android devices (Android SDK version
32.1.0-rc1)
• Android SDK at /Users/piton/Library/Android/sdk
• Platform android-32, build-tools 32.1.0-rc1
• Java binary at: /Applications/Android
Studio.app/Contents/jre/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 11.0.11+0-b60-7772763)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 13.3)
• Xcode at /Applications/Xcode.app/Contents/Developer
• CocoaPods version 1.11.2
[✓] Chrome - develop for the web
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[✓] Android Studio (version 2021.1)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 11.0.11+0-b60-7772763)
[✓] VS Code (version 1.65.2)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.36.0
[✓] Connected device (2 available)
• sdk gphone64 arm64 (mobile) • emulator-5554 • android-arm64  • Android 12
(API 32) (emulator)
• Chrome (web)                • chrome        • web-javascript • Google
Chrome 99.0.4844.74
[✓] HTTP Host Availability
• All required HTTP hosts are available
• No issues found!`

Hi @abdullah017, this has been fixed in flutter 2.10.3. Kindly upgrade to the latest version of flutter and let me know whether or not you still experience this issue.
Thank you


Non-Node Envs (step 1 of n): Remove usage of node-only modules (fs, path) from loadFromHub utilities

LGTM!


Updated documentation for Distribute installation

Fixes #1465
Signed-off-by: Abhijeet Kasurde<EMAIL_ADDRESS>

I agree the docs need to be updated.  It would be more productive to just remove mention of distribute and call this "Deploying with Setuptools".
I'm not clear why you removed the section discussing the benefits of setuptools.
I don't think we need to mention ez_setup.py, since as was pointed out earlier in the doc, Flask already depends on setuptools, but if you do want to mention it, you've used a very outdated link, the correct one is https://bootstrap.pypa.io/ez_setup.py.

Tracking review changes via https://github.com/mitsuhiko/flask/pull/1588


Redesign the UI

The UI layout has been finished on Lunacy, with only a couple of details to be set when it comes to implement these details.


fix: allow typeclass failures in exact?

As requested on zulip.

What would stop exact? just matching and returning on something like IsEmpty.Elim right now for everything?

I'm not sure that's much different to how it could return Iff.mp ?_ ?_ for everything right now

I'm worried about exact not apply, as far as I know that doesn't return iff.mp does it?

Ah, I see your point now. Yes, I'd expect this to fail in exact? but succeed in apply?

I'm confused, why would there be a problem in exact?? A lemma like IsEmpty.Elim will now successfully apply (so apply? will list it) but then the IsEmpty typeclass becomes a sub-goal, which, if it can't be discharged by solve_by_elim, will prevent exact? from reporting it.

maintainer merge

bors r+


Update go.mod

You probably want to change this back so others can actually install this package without the following error:
$ go get github.com/RambIing/urlValues
go get: github.com/RambIing/urlValues@none updating to
<EMAIL_ADDRESS>parsing go.mod:
        module declares its path as: github.com/umasii/urlValues
                but was required as: github.com/RambIing/urlValues

Please merge #3 before this one in order to avoid messing up go.mod again :)


[Feature Request] Add Config Option for SQL Formatting

different formatting options like http://www.dpriver.com/pp/sqlformat.htm

I like the idea. Will be developed in a near future but connections comes first, ok?

current status?

Stuck. Help wanted

I'm closing this issue because it there are no good enough JS libraries supporting all those features.
I plan to implement some of them, but not all. This is more like a prettier plugin that I could use than a feature of the extension.
Would be great to have, but it's a bit out of scope since some similar tools for database management also doesn't have it by default.
For now, I've added option to change reserved words case that it's more common and requested around the web.


Integrated Github api to fetch contributors

Related Issue

To render details of contributors of this repo in the about us page using the github api to fetch data.
To ensure that clicking a contributor's card will redirect to that contributor's github profile
Closes: #44
Description of Changes

Added a new function to handle fetching data from the Github API and runs on initial load.
Removed hard coded json data in the team component and used fetched data to render contributors info.
Clicking the teamcard component redirects to the contributor's github profile
Updated the next.config.js file to allow external images particularly github avatars.

Checklist:

[x] My code adheres to the established style guidelines of this project.
[x] I have conducted a self-review of my code.
[x] I have included comments in areas that may be difficult to understand.
[x] I have made corresponding updates to the project documentation.
[x] My changes have not introduced any new warnings.

Screenshots

Original
Updated

Hi @shreya024  I've changed the image styling to rounded.
Here's the screenshot


[Bug] Xamarin.Firebase.iOS.CloudFirestore not working with the new version of Xamarin.Firebase.iOS.Core

Description
After adding Xamarin.Firebase.iOS.CloudFirestore package in my new Xamarin.iOS project with all its dependencies, app fails to launch after successful builds. I noticed after removing all references to Firestore in the code, the app would launch as normal.. After further playing around with the packages, downgrading Xamarin.Firebase.iOS.Core to <IP_ADDRESS> seems to be working for Firestore but breaks other Firebase packages that depend on Xamarin.Firebase.iOS.Core to 6.6.0
Steps to Reproduce

Start a new project Xamarin iOS solution or use an existing project
Add Xamarin.Firebase.iOS.CloudFirestore package to the solution and update to the latest stable version
Ensure Xamarin.Build.Download and Xamarin.Firebase.iOS.Core are updated

Expected Behavior

application should build and deploy to simulator of device

Actual Behavior

application builds but exit on attempt to deploy

Basic Information

Version with issue: 6.6.0
Last known good version: Xamarin.Firebase.iOS.Core <IP_ADDRESS>
IDE: visual studio for Mac
Platform Target Frameworks:

iOS:

Nuget Packages: Xamarin.Firebase.iOS.Core 6.6.0
Affected Devices: iOS

Hi guys! Please, downgrade Firebase NuGets to versions before Feb 24th release. Right now, Firestore doesn't work with most recent versions of Firebase. We are working on an update that fixes this. Sorry for the inconveniences that this can cause!