Slicing sparse tensor

There does not appear to be a way to extract a (sparse or dense) slice from a sparse tensor in the same manner as there is from a dense tensor. Will this be a feature in the future, or is it already present and I'm just missing something? Perhaps it should be added to the planned improvements for indexing.

To expand on this, I'd like to be able to construct (ultimately dense, but this is irrelevant) subtensor from a  much larger, sparse tensor that's far too large to fit into memory. In numpy, this is something like having:
x = np.array(range(16)).reshape(4, 4)
array([[ 0,  1,  2,  3],
       [ 4,  5,  6,  7],
       [ 8,  9, 10, 11],
       [12, 13, 14, 15]])

And wanting to extract the subtensor formed by the 2nd (i.e., index 1) and 4th row with the 2nd and 3rd column:
x[[[1],[3]],[1,2]]
array([[ 5,  6],
       [13, 14]])

Ultimately, the batches of the network I'm training will rely on such fixed-size subtensors randomly constructed from the larger tensor. However, at present the only way of doing this currently appears to be manually feeding the subtensors in from Scipy.

We don't currently have any plans to implement a slice op on SparseTensor.  My suggestion would be to first implement a sparse->sparse slice, and then use sparse_to_dense to densify it.
The closest thing we have is a sparse split; the meat of which is implemented here:
https://github.com/tensorflow/tensorflow/blob/master/tensorflow/core/util/sparse/sparse_tensor.h#L437
If you're interested in implementing a SparseSlice, contributions are welcome.  The signature should probably be:
SparseTensor SparseTensor::Slice(const SparseTensor& input_tensor, const gtl::ArraySlice& start, const gtl::ArraySlice& size)

@concretevitamin: Is slice one of the ops for which you're implementing SparseTensor support?

mdan is implementing SparseTensor slice this week.  I think there's some
code already done.
On Mon, May 16, 2016 at 11:25 AM, Derek Murray<EMAIL_ADDRESS>wrote:

@concretevitamin https://github.com/concretevitamin: Is slice one of
the ops for which you're implementing SparseTensor support?
—
You are receiving this because you were assigned.
Reply to this email directly or view it on GitHub
https://github.com/tensorflow/tensorflow/issues/1588#issuecomment-219504264

I am not actively working on this op.  Happy to review any PRs ;)
On Monday, May 16, 2016, ebrevdo<EMAIL_ADDRESS>wrote:

mdan is implementing SparseTensor slice this week. I think there's some
code already done.
On Mon, May 16, 2016 at 11:25 AM, Derek Murray<EMAIL_ADDRESS><javascript:_e(%7B%7D,'cvml','notifications@github.com');>>
wrote:

@concretevitamin https://github.com/concretevitamin: Is slice one of
the ops for which you're implementing SparseTensor support?
—
You are receiving this because you were assigned.
Reply to this email directly or view it on GitHub
<
https://github.com/tensorflow/tensorflow/issues/1588#issuecomment-219504264

—
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub
https://github.com/tensorflow/tensorflow/issues/1588#issuecomment-219516188

Is someone working on this op?

No, you are welcome to give it a shot.
On Tue, Jan 10, 2017 at 11:43 PM, Jörg Franke<EMAIL_ADDRESS>wrote:

Is someone working on this op?
—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub
https://github.com/tensorflow/tensorflow/issues/1588#issuecomment-271800019,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABtim9T06FacWj2LTZiiCtoUEUCp68Joks5rRIg_gaJpZM4H2rG1
.

@ebrevdo
I've read a related comment of yours and it helped me a lot.
Is it possible to extract sparse ids and train sparse weights on the fly?
My application is finetuning sparse embedding: Given a sequence of word ids, firstly use a cookbook to look up sparse indices and weights of each word, then use tf.nn.embedding_lookup_sparse to get their embeddings. Since I want to finetune the sparse weights,  directly feed them to placeholders are not adequate.
To be more specific:

How can I extract certain rows (maybe discrete and even have duplicate rows) out of a SparseTensor?
If the first one is possible, can I perform training on sparse weights? (Words may duplicate in a sentence, so sparse weights may duplicate in a sentence, so the variables need to be shared to make sure gradient descent algorithms work properly. Simply pass pre-calculated weights to a placeholder does not work for this purpose)

Currently is it possible to do this in TensorFlow? Or I need some work around (e.g. use sparse dense matrix multiplication or something else) to do this?

Added a PR #9540 to support slice of sparse tensors. Please take a look.

What would it take to implement a SparseTensor.__getitem__ method?
There's no tf.sparse_strided_slice function which Tensor.__getitem__ seems to use.


[Editor] Fix multi-selection on touch screens

I tested the patch with a touch screen and everything works nice now.

/botio integrationtest

/botio integrationtest


Boot/reboot/shutdown splash screen

From @agherzan on March 9, 2016 5:31
Steps to reproduce issue
Connect to the HDMI connected to a monitor
Boot the device
Expected result
Resin logo splash screen should be visible
Actual result
Resin logo is not displayed (at least in my setup, where the hdmi monitor displays the signal a little late)
Later edit: The HDMI monitor receives no signal
Other information
Reported by: Florin Sarbu
Test configuration: VIA VAB820
Test case number: TC07
Test run: https://resinio.testlodge.com/projects/16238/runs/196239?tab=2&run_section_id=176153&executed_case_id=9459439#executed_case_9459439
Copied from original issue: resin-os/resin-via-arm#4

From @floion on March 9, 2016 6:3
Also, at shutdown/reboot the resin logo is displayed but not fullscreen as expected

No further development is planned for this board.


RangeSlider supporting start > end

Is there an existing issue for this?

[X] I have searched the existing issues
[X] I have read the guide to filing a bug

Use case
My application is playing a lot of time ranges,a nd I would wish to use RangeSlider for that purpose. The planned use case is to use time values min=0,  max=24, with 15min step intervals. The concern is with expressing night time ranges, such as 22:00 - 06:00, e.g. start > end.
Proposal
The intended use is to set a property on constructor that permits such behavior, and visualize such range (end > start) by flipping the areas where active and inactive color are painted e.g.
when start < end -> paint active area as [start, end]
when end > start -> paint active area as [min, end], [start, max]
I had a quick look at RangeSlider source code, and it seems there are assertions in constructor for preventing this, as well as onChange handler blocking the setting of such values. It most likely would require some of the inner classes being reworked, so I doubt this could be done without forking the code.
I have not contributed anything to Flutter yet, but if you see such a change is acceptible, I am willing to give a try. If a better explanation is needed to understand the case, please let me know.

CC @TahaTesser

This proposal seems to have been lost. It's interesting and seems reasonable albeit a little tricky to explain.
@laurisvan - if you're still interested, we'd be happy to review a PR. This sort of feature should come with an interactive API doc example, to help developers understand the use case.

I am definitely still interested in making this happen, but the past few months have been a bit too busy work-wise. If you only have patience, please do keep the issue open - it is still relevant to us and I believe it is useful for the others, too.

@laurisvan - sounds good, we'll keep the issue open.


Add tasks to revert artifacts if they're disabled

Presently if artifacts are enabled there's no way to automate their
removal. This change adds tasks to backup files that we modify for
artifacts and to restore original files should a deployer choose to
disable the artifacts during a run.
Signed-off-by: Kevin Carter<EMAIL_ADDRESS>Issue: RLM-1120
Issue: RO-3080
Issue: RE-1287

this still valid or can it be closed?


feat(prettier): support arrowParens option

Current dependencies on/for this PR:

main

PR #1592   👈

This stack of pull requests is managed by Graphite.


Update CI/CD files without automating the integration tests

Option 1: You can merge now
Option 2: You can remove the workflow file and I can re-approve
Option 3: You can remove the workflow file and fix the mergify config and I can re-approve
In Options 1 and 2, we'll end up with auto-merged updates on master without running the terraform tests. In Option 3 we'll have dependabot PRs open until someone gets around to running the test manually.
Any of the above will be fine, with 3 being best.

In addition, the dependabot config file would need to be updated to monitor the path tests/create_rr_association/prereq... It's not currently, which is why we are not getting PRs from dependabot for the vpc updates. Oops.
In the mergify config, I think we can have add a condition like label!=terraform and it will skip merging terraform updates while still merging others... We did something similar in watchmaker to condition the actions depending on the type of update... https://github.com/plus3it/watchmaker/blob/main/.mergify.yml

If you look at the master branch, the .github/workflows/main.yml does look for "/tests/create_rr_association/prereq"; but main.yml was removed in the WIP PR and then you asked for it to be removed from this PR.
How do you test that sort of change?

Do you want to remove .github/workflows/main.yml also, before merging this?

Do you want to remove .github/workflows/main.yml also, before merging this?

Yes, I just noticed that.  Also, there is a reference to "gomod" in dependabot.yml that I want to remove.


Evaluable expression API - comments feedback

#91268
Looking at the EvaluatableExpressionProvider API and docs I have the following feedback:

"The evaluatable expression provider interface defines the contract between extensions and the debug hover". Contract between sounds very general. I would try to find something more understandable
"debug hover is opened" sounds a bit unfitting to me. It is not like users open the debug hover. "debug hover is used" or something in that manner
The lack of a result can be signaled by returning undefined or null. Should we make this more strict to only allow by spec one of those?

* "debug hover is opened" sounds a bit unfitting to me. It is not like users open the debug hover. "debug hover is used" or something in that manner

Maybe this:
* @param document The document in which the debug hover appears.
* @param position The document position for which the debug hover appears.

I tried to align the documentation (comments) with the existing documentation for hovers (which is probably similar to even more APIs). So if we change one, we will have to change all of them to keep them aligned.

If all the other hovers use the same docs then it makes sense to be aligned.

It would be great if we add some comments to clarify that this is really an evaluable expression and not the result of the evaluation. I think this can confuse some API users as it confused me.

The updates to the docs look good to me. Thanks!


Widget

Now that we have action buttons (#4), let's make a widget!
https://developer.apple.com/design/human-interface-guidelines/ios/extensions/widgets/
If possible, have it mirror the app (4 modes, 4 buttons) and allow switching between the four apps (3 apps if we're in 12 button mode).

If there's no interaction allowed, then display all four apps with 4 diamonds one above the other?

Should be fun (and useful). Interaction should be allowed, e.g. PCalc's widget supports tapping buttons to perform calculations. May need a bit of refactoring to support accessing and performing actions from an extension, though.

I have added a new widget branch with the current work-in-progress on the widget.
It isn't finished yet, but the widget is available, and the Phone and Music modes are functional. Other modes will follow in the future.  For now, unsupported modes are replaced with the Phone one.
If you want to try it, note that you'll need to set your developer team in the Widget Extension target in the project.  The Dejal app and widget targets are ones I can build, since I don't have access to your personal developer account.
Here's a screenshot of the collapsed appearance (a bit tight):

And the expanded appearance:

Screenshots looking great and show lots of promise.
I'm having trouble getting the widget to show up in notification center. I changed the app group to the one I registered online, changed the team, and compiled just fine, but no widget. It's being embedded (and not signed) but it's not showing up for some reason. Any ideas?

You shouldn't have had to change the app group, though may have needed to click the reload button below it.  Though maybe you would have needed to, if linked to the developer account; I'm not sure.
If you changed the app group name from group.com.turntouch.ios-remote, some code will need to be correspondingly changed.
Here are what my signing settings look like for the Dejal targets, if that helps; the app:

The widget:

Note that the widget won't show up by default; you have to scroll to the bottom of the widgets and click Edit, and add the widget.

Yeah I changed both of those app groups to the one I already had registered (group.com.turntouch.appgroup). And I've been checking the bottom of the Edit screen.

Fair enough. Make sure you change the code to use that group, too.  And commit your changes once you get it working, so I don't stomp on them when I resume working on it (no urgency; won't be until the last week of May).
That won't affect the widget appearing, though.
Ah, I notice that the iOS Deployment Target in the widget's Build Settings is set to 13.4; if you're using an older iOS version, that could explain it.  That is too high. The app is iOS 12, so you can change it to match that.
If that doesn't solve it, try deleting the app from the phone and re-installing.

Yep, I was on 13.3.X and not 13.4. Upgraded and it wasn't there, but then I launched the app and it was immediately there. So the app needs to launch first before it's discoverable.
Looks great! We should probably tint the background 30% on tap, since the tiny blue outline isn't doing much (and let's remove that blue color as well).
Can we lower the font size more in miniature mode?

I'm glad that solved it.
Yeah, need some visual tweaks. I'll note those.

More progress on the widget, including the UI tweaks, and support for opening the app to handle actions that can't be done in the widget (due to requiring state or UI not supported there).
A few more modes remaining to do before completion.

Excellent, I love that this is the season of widgets.

WWDC20 has deprecated the current widget mechanism, in favor of a SwiftUI-based non-interactive design.
For Turn Touch, this is problematic. We wouldn't be able to switch modes in the widget — or if we did, we'd have to have the widget open the app to do so. Similarly, tapping any action would have to open the app to perform it. Several of the modes already do that, since they have state that can't be done in the current widget, but it'd have to do that even for the simplest actions like changing the volume.
The widget would also have to be rewritten using SwiftUI.  The current implementation is still supported for now, but is limited to the bottom of the Today view instead of the home screen on iOS 14, and will probably stop working before long.
So I'm not sure it's worthwhile to continue working on this?

Yeah let's hold off on this for now. If I see other IoT widgets doing it then maybe we'll find a way.

I was very disappointed by this change. I can see why Apple wanted to go with the timeline-based model (like for Apple Watch complications), so they don't have to wait for things to load, but surely iPhones are powerful enough to run a few widgets in the background if necessary, or other solutions that allow real functionality. Several other kinds of widget won't be possible anymore, e.g. calculators (e.g. PCalc), podcast players (e.g. Overcast), etc. Hopefully they'll reconsider this in a future iOS version.
I won't do any more work on this for now.


Gene Deletion Viability: Unknown for bmc1

The data from Porat et al. 2022 is live now, and it includes bmc1 deletion phenotypes. However, the gene deletion viability still says gene deletion viability unknown. Is this something that I have to change manually?
https://www.pombase.org/gene/SPBC2A9.10

GOt it, it is because "viable cell" is a cell level phenotype and lethality is a population level phenotype.  If possible you need to make a concurrent population phenotype annotation, then it will appear.

Hello, the problem remains even whenviable cell population is annotated to the deletion

The two terms that to code looks for are:

FYPO:0002060 "viable vegetative cell population" for the viable case
and FYPO:0002061 "inviable vegetative cell population" for inviable

Oh, ok, I will make the change then. thanks @kimrutherford and @ValWood


Error for Processing ~~

INFO: The Processing has started
INFO: Now processing: 21.732, 1064.4, 550.1, 11.155
ERROR: Acknowledgment Failed, received: EXCEPTION: matmul: Input operand 1 has a mismatch in its core dimension 0, with gufunc signature (n?,k),(k,m?)->(n?,m?) (size 1 is different from 4)
ERROR: Error processing line number 1, possible serial communication issues
ERROR: Processing has failed or was interrupted

(size 1 is different from 4) is the key error here. The model is trained using 1 input feature and It is being fed 4 features/columns from the test data


i am stuck with requirements .

hey bro . hope you are doing well . as this tool need  requirements are not full filled .. this shows error .
i can't able to install all requirements webdriver_manager
selenium
aiohttp
beautifulsoup4
colorama.
rich
requests
gitpython
prompt_toolkit
pyyaml
Flask
in kali linux . would you help me to install all requirements  in kali linux .. that would be a great help for me ..
. this shows this error
:
python lostsec.py
Traceback (most recent call last):
File "/home/loke/work/tool/lostools/lostsec.py", line 49, in
from selenium import webdriver
ModuleNotFoundError: No module named 'selenium'

sudo python lostsec.py -h
[sudo] password for loke:
Traceback (most recent call last):
File "/home/loke/work/tool/lostools/lostsec.py", line 38, in
from bs4 import BeautifulSoup
File "", line 1360, in _find_and_load
File "", line 1322, in _find_and_load_unlocked
File "", line 1262, in _find_spec
File "", line 1528, in find_spec
File "", line 1502, in _get_spec
File "", line 111, in find_spec
File "", line 675, in spec_from_loader
File "", line 822, in spec_from_file_location
File "", line 170, in get_filename
File "", line 708, in _get_module_code
File "", line 637, in _compile_source
File "/usr/local/lib/python3.12/dist-packages/beautifulsoup4-4.3.2-py3.12.egg/bs4/init.py", line 175
except Exception, e:
^^^^^^^^^^^^
SyntaxError: multiple exception types must be parenthesized

are you using ubuntu or debian ? if yes then install all manually by pip its easy,.

i am using kali linux . i think debain


Typings ?

Will you be adding typings definition for this library ?
Wish I could use it in an angular2 and Ionic 2 project

Hi,
Isn't this what you mean?
https://github.com/kazuhikoarase/qrcode-generator/blob/master/js/qrcode.d.ts

Great...I guess I didn't take my time to look through the files. Thanks for the quick response. Great library


Show calendar event is from

Hey again,
I have several calendars in it, and I'd like to know what events are for work and which aren't, thus I'd like to see the event name displayed too
I'm totally willing to implement this myself, I just need a pointer: is there a way to add a field to the event from the source calendar? I think the entity friendly_name probably gets lost at https://github.com/ljmerza/calendar-card/blob/master/src/index.js#L157-L161, but I have no clue how Promises, mapping and reducing works in JavaScript, so I'm not sure how to try to make sure I can make sure I'll have the calendar name in the event. If you can tell me how to do that, I'm sure I can figure out the rest myself.

I'm not sure what you mean by event name. The calendar events are retrieved by home assistant and the card just gets whatever data home assistant has. If you look at the response for the network calls when getting the calendars there are only properties for description and summary. If there IS something missing from these calendar objects on the return JSON then the code on the backend of home assistant would have to be changed to add that data.

Oops, I meant "calendar name for each event". Sorry!

added showEventOrigin support in 3.11.0


Each data point can be associated with only one task, there is no reason for this to be the only possible way

One possible solution is to have a binary matrix (nb_tasks * len(y)) that gives at which task(s) own each data point...

After discussion with Tim, we agree it only matter for the transformed incremental, thus we will discard it for now.


Cleanup/refactor of some tests

I am not completely sold on using scalacheck for generating data for single tests. Feel like for a specific test you want it to be deterministic and repeatable and using scalacheck to provide further confidence.

@fleetwoods I can understand that. But I think @laurence-bird has struck a nice balance here: use scalacheck to generate all the boring fields you don't care about, then do a .copy on the result to override only the fields you do care about.
The benefit of this approach is that it makes the tests easier to maintain. You don't have to go and update every piece of test data just because we added a new field to the schema.

I'm 👍 on this PR, but also happy if you two want to discuss it further

All good with me

This PR was successfully deployed to production by CircleCI build 69 at 2017-02-03 10:40 GMT.


xlsx newest version is 0.20.1

Description
Update to xlsx 0.20.1
Why
0.20.1 changelog:

init use packaged test files to work around GitHub breaking changes
SSF date code rounding to 15 decimal digits (h/t @davidtamaki)
sheet_to_json force UTC interpretation for formatted strings (h/t @Blanay)
QPW extract result of string formula
XLSX parse non-compliant merge cell expressions
NUMBERS correctly handle rows omitted from official exports
DBF parse empty logical field (h/t @Roman91)
dense option added to types
package.json add mini and core scripts to export map (h/t @stof)

Alternatives
just keep the current version?

Thanks, I'll update it right away.


Update README to include IntelliJ/Cursive

Redoing, without conflicting code.

Added section on IntelliJ/Cursive — put it before CIDER section, because it's so short.
As per Slack discussion.

thanks!


Splitbutton Click nulllability issues with RadzenSplitButtonItem

Describe the bug
Using the SplitButton component creates an IDE issue with nullability checks, as the EventCallback for Click (here) suggests it returns a non-nullable RadzenSplitButtonItem. If the main Button is clicked however null is returned (here)
This creates an issue where you need to do a null check but your IDE is warning you about an unnecessary null check.
To Reproduce

Create a splitbutton and an event callback for Click
The event callback will have the signature public void OnClick(RadzenSplitButtonItem item)
In the event callback access item.Value
Click the main part of the button (not the dropdown)

Expected behavior
Return a nullable RadzenSplitButtonItem via RadzenSplitButtonItem?

Hi @NEmbgen,
You can add the ? yourself.

@akorchev Thanks for the response. I know I can add it myself, but wouldn't it be more correct from an API point of view for Radzen to have it?

Currently null checks are not enabled for the Radzen.Blazor project. Enabling them would require a huge effort which we are not willing to make at the moment.


Add a fail point named force_change_all_blobs_to_read_only

What problem does this PR solve?
Issue Number: ref #3594
Problem Summary:
What is changed and how it works?
Check List
Tests

[ ] Unit test
[ ] Integration test
[ ] Manual test (add detailed scripts or steps below)
[ ] No code

Side effects

[ ] Performance regression: Consumes more CPU
[ ] Performance regression: Consumes more Memory
[ ] Breaking backward compatibility

Documentation

[ ] Affects user behaviors
[ ] Contains syntax changes
[ ] Contains variable changes
[ ] Contains experimental features
[ ] Changes MySQL compatibility

Release note

None

/merge


Issue with 3.0.4 version: loginWithServicePrincipalSecret is not declared writable or has no setter

We have been using 3.0.0 version of this module. This module was working fine until the new release 3.0.4 package(published on May-27-2020). When we are trying to use this module in our code, we are seeing the below error. Can you please help us resolve this?
Below is the method we are using in our code,
export function withServicePrincipalSecret(clientId: string, secret: string, domain: string): Promise;
Error:
loginWithServicePrincipalSecret is not declared writable or has no setter

Hi @sarmista-jv - this update was released unexpectedly due to an automation error so we had to deprecate it.  Please roll back to 3.0.3 for now.  Thanks!


miniSphere is no longer a project using Duktape

The last miniSphere version using Duktape for its frontend was 4.8.8.  miniSphere has been based on ChakraCore since version 5.0.0.
The above being the case, it's probably misleading to have miniSphere listed on the "projects using Duktape" page.  On the other hand, it's historically significant that it was based on Duktape for a long time (and started its life as such), so I'm actually not sure what the best way to handle this is...

I'm OK with either option - just tell me which you prefer :)

Here's the pull to remove it from the list: https://github.com/svaarala/duktape-wiki/pull/203. To me that seems like the best change, but like I said it's up to you.


ucrtbased.dll is missing on win11

Hello,
I'm trying to run nanomq on Windows 11. When I start the broker it immediately shows an error which says that ucrtbased.dll is missing.
I have tried searching which software has this dll, and it should come with Microsoft Visual C++ Redistributable. I have all versions installed, and non of them provides this dll.
I have downloaded this file separately from a website and put it in system32, but now nanomq gives an error that says that the application wasn't able to properly start.
Is there any way to launch nanomq broker on windows?

I havent tested it on Win11, it works fine on Win10 and below.
Could you provide what error nanomq gives when start?

I'm running the nanomq.exe located in \bin
Here's a screenshot of the error:
https://i.imgur.com/7lNVVTa.png
After pressing OK it repeats the same error, and after second press it closes. I have the ucrtbase.dll, but not ucrtbaseD.dll

Any ideas?

NanoMQ requires ucrtbase.dll not ucrtbased.dll. If you experience such case, perhaps we wrongly released a debug version of window package. Could you try and old build here?
https://github.com/emqx/nanomq/releases/tag/0.12.2

fixed in #1362

plz have a try on incoming 0.19.0


Build broken on Ubuntu

Fresh clone:
git submodule update --init --recursive
cmake -DBoost_NO_SYSTEM_PATHS="TRUE" -DBOOST_ROOT="/home/sigve/opt/boost_1_57_0" -DCMAKE_BUILD_TYPE=Debug .
make -j3 witness_node && make -j3 cli_wallet && make -j3 js_operation_serializer

Error:
[  7%] Building CXX object libraries/fc/vendor/udt4/CMakeFiles/udt.dir/src/window.cpp.o
Linking CXX static library libudt_debug.a
[  7%] Built target udt
CMakeFiles/Makefile2:1350: recipe for target 'programs/witness_node/CMakeFiles/witness_node.dir/rule' failed
make[1]: *** [programs/witness_node/CMakeFiles/witness_node.dir/rule] Error 2
Makefile:463: recipe for target 'witness_node' failed
make: *** [witness_node] Error 2

I can pass that step by running make without parameters, but fail at 90%:
[ 90%] Building CXX object programs/cli_wallet/CMakeFiles/cli_wallet.dir/main.cpp.o
Linking CXX executable cli_wallet
../../libraries/chain/libgraphene_chain.a(confidential.cpp.o): In function `graphene::chain::transfer_to_blind_operation::validate() c
onst':
/app/bts/graphene/libraries/chain/protocol/confidential.cpp:29: undefined reference to `fc::ecc::blind(fc::sha256 const&, unsigned lon
g)'
/app/bts/graphene/libraries/chain/protocol/confidential.cpp:31: undefined reference to `fc::ecc::verify_sum(std::vector<fc::array<char
, 33ul>, std::allocator<fc::array<char, 33ul> > > const&, std::vector<fc::array<char, 33ul>, std::allocator<fc::array<char, 33ul> > >
const&, long)'
/app/bts/graphene/libraries/chain/protocol/confidential.cpp:37: undefined reference to `fc::ecc::range_get_info(std::vector<char, std:
:allocator<char> > const&)'
../../libraries/chain/libgraphene_chain.a(confidential.cpp.o): In function `graphene::chain::transfer_from_blind_operation::validate()
 const':
/app/bts/graphene/libraries/chain/protocol/confidential.cpp:60: undefined reference to `fc::ecc::blind(fc::sha256 const&, unsigned lon
g)'
/app/bts/graphene/libraries/chain/protocol/confidential.cpp:68: undefined reference to `fc::ecc::verify_sum(std::vector<fc::array<char
, 33ul>, std::allocator<fc::array<char, 33ul> > > const&, std::vector<fc::array<char, 33ul>, std::allocator<fc::array<char, 33ul> > >
const&, long)'
../../libraries/chain/libgraphene_chain.a(confidential.cpp.o): In function `graphene::chain::blind_transfer_operation::validate() cons
t':
/app/bts/graphene/libraries/chain/protocol/confidential.cpp:103: undefined reference to `fc::ecc::verify_sum(std::vector<fc::array<cha
r, 33ul>, std::allocator<fc::array<char, 33ul> > > const&, std::vector<fc::array<char, 33ul>, std::allocator<fc::array<char, 33ul> > >
 const&, long)'
/app/bts/graphene/libraries/chain/protocol/confidential.cpp:109: undefined reference to `fc::ecc::range_get_info(std::vector<char, std
::allocator<char> > const&)'
../../libraries/wallet/libgraphene_wallet.a(wallet.cpp.o): In function `graphene::wallet::wallet_api::blind_transfer(std::string, std:
:string, std::string, std::string, bool)':
/app/bts/graphene/libraries/wallet/wallet.cpp:2762: undefined reference to `fc::ecc::blind_sum(std::vector<fc::sha256, std::allocator<
fc::sha256> > const&, unsigned int)'
/app/bts/graphene/libraries/wallet/wallet.cpp:2767: undefined reference to `fc::ecc::blind_sum(std::vector<fc::sha256, std::allocator<
fc::sha256> > const&, unsigned int)'
/app/bts/graphene/libraries/wallet/wallet.cpp:2775: undefined reference to `fc::ecc::blind(fc::sha256 const&, unsigned long)'
/app/bts/graphene/libraries/wallet/wallet.cpp:2781: undefined reference to `fc::ecc::range_proof_sign(unsigned long, fc::array<char, 3
3ul> const&, fc::sha256 const&, fc::sha256 const&, signed char, unsigned char, unsigned long)'
/app/bts/graphene/libraries/wallet/wallet.cpp:2785: undefined reference to `fc::ecc::blind(fc::sha256 const&, unsigned long)'
/app/bts/graphene/libraries/wallet/wallet.cpp:2786: undefined reference to `fc::ecc::range_proof_sign(unsigned long, fc::array<char, 3
3ul> const&, fc::sha256 const&, fc::sha256 const&, signed char, unsigned char, unsigned long)'
../../libraries/wallet/libgraphene_wallet.a(wallet.cpp.o): In function `graphene::wallet::wallet_api::transfer_to_blind(std::string, s
td::string, std::map<std::string, std::string, std::less<std::string>, std::allocator<std::pair<std::string const, std::string> > >, b
ool)':
/app/bts/graphene/libraries/wallet/wallet.cpp:2877: undefined reference to `fc::ecc::blind(fc::sha256 const&, unsigned long)'
/app/bts/graphene/libraries/wallet/wallet.cpp:2879: undefined reference to `fc::ecc::range_proof_sign(unsigned long, fc::array<char, 3
3ul> const&, fc::sha256 const&, fc::sha256 const&, signed char, unsigned char, unsigned long)'
/app/bts/graphene/libraries/wallet/wallet.cpp:2899: undefined reference to `fc::ecc::blind_sum(std::vector<fc::sha256, std::allocator<
fc::sha256> > const&, unsigned int)'
collect2: error: ld returned 1 exit status
make[2]: *** [programs/cli_wallet/cli_wallet] Error 1
make[1]: *** [programs/cli_wallet/CMakeFiles/cli_wallet.dir/all] Error 2
make: *** [all] Error 2

This looks like FC was not built with libsecp256k support, which it should be doing by default.

It may also be a linking issue with the order libraries are listed in the CMakeLists file which sometimes breaks on windows.

Related? Broken build on OSX:
[ 89%] Built target graphene_wallet
Linking CXX executable cli_wallet
Undefined symbols for architecture x86_64:
  "fc::ecc::verify_sum(std::__1::vector<fc::array<char, 33ul>, std::__1::allocator<fc::array<char, 33ul> > > const&, std::__1::vector<fc::array<char, 33ul>, std::__1::allocator<fc::array<char, 33ul> > > const&, long long)", referenced from:
      graphene::chain::transfer_to_blind_operation::validate() const in libgraphene_chain.a(confidential.cpp.o)
      graphene::chain::transfer_from_blind_operation::validate() const in libgraphene_chain.a(confidential.cpp.o)
      graphene::chain::blind_transfer_operation::validate() const in libgraphene_chain.a(confidential.cpp.o)
  "fc::ecc::range_get_info(std::__1::vector<char, std::__1::allocator<char> > const&)", referenced from:
      graphene::chain::transfer_to_blind_operation::validate() const in libgraphene_chain.a(confidential.cpp.o)
      graphene::chain::blind_transfer_operation::validate() const in libgraphene_chain.a(confidential.cpp.o)
--snip--
graphene::wallet::wallet_api::transfer_to_blind(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::less<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, std::__1::allocator<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > > >, bool) in libgraphene_wallet.a(wallet.cpp.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [programs/cli_wallet/cli_wallet] Error 1
make[1]: *** [programs/cli_wallet/CMakeFiles/cli_wallet.dir/all] Error 2
make: *** [all] Error 2

I had similar issue.  FC is somehow using openssl, not secp256k1.  Fixed by
cmake -D ECC_IMPL=secp256k1 .
make

在 2015年7月24日，23:04，Tim Fesenko<EMAIL_ADDRESS><EMAIL_ADDRESS>写道：
Related? Broken build on OSX:
[ 89%] Built target graphene_wallet
Linking CXX executable cli_wallet
Undefined symbols for architecture x86_64:
"fc::ecc::verify_sum(std::__1::vector<fc::array<char, 33ul>, std::__1::allocator<fc::array<char, 33ul> > > const&, std::__1::vector<fc::array<char, 33ul>, std::__1::allocator<fc::array<char, 33ul> > > const&, long long)", referenced from:
graphene::chain::transfer_to_blind_operation::validate() const in libgraphene_chain.a(confidential.cpp.o)
graphene::chain::transfer_from_blind_operation::validate() const in libgraphene_chain.a(confidential.cpp.o)
graphene::chain::blind_transfer_operation::validate() const in libgraphene_chain.a(confidential.cpp.o)
"fc::ecc::range_get_info(std::__1::vector<char, std::__1::allocator > const&)", referenced from:
graphene::chain::transfer_to_blind_operation::validate() const in libgraphene_chain.a(confidential.cpp.o)
graphene::chain::blind_transfer_operation::validate() const in libgraphene_chain.a(confidential.cpp.o)
--snip--
graphene::wallet::wallet_api::transfer_to_blind(std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator >, std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator >, std::__1::map<std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator >, std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator >, std::__1::less<std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > >, std::__1::allocator<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const, std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > > > >, bool) in libgraphene_wallet.a(wallet.cpp.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [programs/cli_wallet/cli_wallet] Error 1
make[1]: *** [programs/cli_wallet/CMakeFiles/cli_wallet.dir/all] Error 2
make: *** [all] Error 2
—
Reply to this email directly or view it on GitHub https://github.com/cryptonomex/graphene/issues/204#issuecomment-124552324.

Update: a fresh clone worked for me, built successfully on Ubuntu 14.04 LTS.

Solved by doing a clean install which then triggered a rebuild of secp256 which needed autoconf to be installed, guess my version got outdated somehow although I've been building quite regularly.

Solved by rm CMakeCache.txt then run cmake again in my old work directory.
There was a line in the old CMakeCache.txt file:
ECC_IMPL:STRING=openssl

which doesn't change after git pull && git submodule update && cmake.


Support comments on constraints

Updated the SQL to introspect comments to also look for comments on constraints.
Also added support for comments that have quotes inside of them by explicitly escaping the quotes. Note that other special escape characters may not be supported, but things like newlines or tab characters won't make the SQL that migra generates invalid.
To Test
Before going through these tests, point your migra to this branch of schemainspect in the TOML, then rerun poetry install for your environment. You may also want to consider creating a new environment just for this testing.

[x] Add a comment to a constraint. Run migra against two databases, one without the constraint, and verify it properly generates the comment SQL
[x] Add some quotes inside of the comment and rerun migra. Verify that the SQL migra generates is valid.
[ ] Test that migra can also generate diffs where the comment is cleared out for the constraint, i.e. set to null

@amerryma Take another look, I made changes to support constraint comment drops, and requires changes for migra: https://github.com/discatech/migra/pull/3


[2621] create docker image to serve out maintenance page

Context
Create a docker image that will serve out the maintenance page and log requests to Logit.
Changes proposed in this pull request
Add Dockerfile and required config files for NGinx and Filebeat
Guidance to review
Not quite ready for primetime yet. This doesn't handle logs so will fill up it's disk space.
Checklist

[ ] Make sure all information from the Trello card is in here
[ ] Attach to Trello card
[ ] Rebased master
[ ] Cleaned commit history
[ ] Tested by running locally

 Setup maintenance page for PUBLISH


meaning of ctx_answer

I'm looking at the bert representation of the question, it seems that ctx_answer0, ctx_answer1, ctx_answer2, ctx_answer3 should be the same representation for the question for each sample. But in the downloaded bert data, they are not. why does this happen?

Hi @yangshao, can you please explain this a little bit if you have understood it? I am facing the same issue to understand why ctx_answer* embeddings are different from one another.

Hi @yangshao, can you please explain this a little bit if you have understood it? I am facing the same issue to understand why ctx_answer* embeddings are different from one another.


PubSubClient's onRedemption stopped working

Bug Report
PubSubClient's onRedemption stopped working without any changes to the code. I used this example for authentication and getting the access and refresh tokens: https://github.com/twitchdev/authentication-node-sample
All was working fine, I could test the onRedemption listener by going to my own chat and selecting rewards. The reward message would be complete with all the details for the reward selected, the user who triggered, icons, etc.
I started my app again the other day and reward events are not longer being triggered.
Code
passport.use('twitch', new OAuth2Strategy({
    authorizationURL: 'https://id.twitch.tv/oauth2/authorize',
    tokenURL: 'https://id.twitch.tv/oauth2/token',
    clientID: TWITCH_CLIENT_ID,
    clientSecret: TWITCH_SECRET,
    callbackURL: CALLBACK_URL,
    state: true
  },
  async function(accessToken, refreshToken, profile, done) {
    profile.accessToken = accessToken;
    profile.refreshToken = refreshToken;

    const authProvider = new StaticAuthProvider(
      process.env.TWITCH_CLIENT,
      profile.accessToken
    );
    const apiClient = new ApiClient({ authProvider });

    const pubSubClient = new PubSubClient();
    const userId = await pubSubClient.registerUserListener(apiClient);

    console.log('user ID works:', userId);
    pubSubClient.onRedemption(userId, (message) => {
      console.log('Never triggers', message);
    });

    done(null, profile);
  }
));

Expected behavior
pubSubClient.onRedemption should trigger the callback when a reward is selected by any user.
Actual Behavior
pubSubClient.onRedemption does not trigger
Environment

Version: 4.5.5
Node version: 15.12
Browser version: Chrome latest
Operating system: Windows (runs through Ubuntu integration)

I can't reproduce this on my machine. The only thing I changed was that I reused the TWITCH_CLIENT_ID instead of the env variable which you used and which is different from the one used in the strategy initializer.
Please:

make sure that the env var is filled
make sure that the env var contains the same client ID as you use in the strategy
if you still can't find a problem with your code, try enabling debug logging and come back with the output (redact any tokens that may appear):

const pubSubClient = new PubSubClient(new BasicPubSubClient({ logger: { minLevel: 'debug' } }));

Thanks a lot, @d-fischer . I tried again using the debugger. This is what I'm getting:
node_1  | [2021-07-03T19:18:47.730Z] ℹ  twitch-pubsub-client INFO Connecting...
node_1  | [2021-07-03T19:18:47.736Z] ℹ  twitch-pubsub-client INFO Trying to reconnect
node_1  | [2021-07-03T19:18:47.737Z] ℹ  twitch-pubsub-client INFO Retrying in 1 seconds
node_1  | [2021-07-03T19:18:48.738Z] ℹ  twitch-pubsub-client INFO Trying to reconnect
node_1  | [2021-07-03T19:18:48.738Z] ℹ  twitch-pubsub-client INFO Retrying in 1 seconds
node_1  | [2021-07-03T19:18:49.738Z] ℹ  twitch-pubsub-client INFO Trying to reconnect
node_1  | [2021-07-03T19:18:49.739Z] ℹ  twitch-pubsub-client INFO Retrying in 2 seconds
node_1  | [2021-07-03T19:18:51.740Z] ℹ  twitch-pubsub-client INFO Trying to reconnect
node_1  | [2021-07-03T19:18:51.740Z] ℹ  twitch-pubsub-client INFO Retrying in 3 seconds
node_1  | [2021-07-03T19:18:54.742Z] ℹ  twitch-pubsub-client INFO Trying to reconnect
node_1  | [2021-07-03T19:18:54.743Z] ℹ  twitch-pubsub-client INFO Retrying in 5 seconds
node_1  | [2021-07-03T19:18:59.748Z] ℹ  twitch-pubsub-client INFO Trying to reconnect
node_1  | [2021-07-03T19:18:59.749Z] ℹ  twitch-pubsub-client INFO Retrying in 8 seconds
node_1  | [2021-07-03T19:19:07.757Z] ℹ  twitch-pubsub-client INFO Trying to reconnect
node_1  | [2021-07-03T19:19:07.757Z] ℹ  twitch-pubsub-client INFO Retrying in 13 seconds

This is a bit weird since it was working as normal before. I don't use a firewall. The only "interesting" thing is that I'm running the code through docker.
Do you have any idea why the connection can't be made?
I believe that if a connection can't be made, it should throw a very visible error message.

Are you sure you're including standard error here? This looks like it only contains standard output, which does not contain anything above info severity. Errors should be thrown on any connection problem.
How to capture standard error is different for every Docker image. Consult your image's docs.

This issue is possibly fixed by a simple yarn upgrade or npm upgrade.

Will have a quick look. Thanks

Was this fixed? Can I close this?

Hello! I quickly checked and just got an error on a sub dependency. I had no time to dig deeper.
I'm out of town until Tuesday. Can you give me until then to confirm with all the details?
Thanks a lot!

Hello! It works! 🎉
By upgrading to the latest release everything works fine. I'm not sure what the exact issue was, but updating it made everything work.
Thanks a lot.


Bug: TabViewItem doesn't show its own icons on WinUI3

Describe the bug
Adding iconsource to the TabViewItem doesn’t work.
<!-- Binding doesn't work. -->

<TabView
    x:Name="MainTabView"
    HorizontalAlignment="Stretch"
    VerticalAlignment="Stretch"
    AllowDropTabs="True"
    Background="{x:Null}"
    CanReorderTabs="True"
    IsAddTabButtonVisible="False">
    <TabView.TabItemTemplate>
        <DataTemplate x:DataType="local:TabItem">
            <TabViewItem
                Header="{x:Bind NavigationHistory.CurrentItem.Header, Mode=OneWay}"
                IconSource="{x:Bind NavigationHistory.CurrentItem.Icon, Mode=OneWay}"
                Style="{StaticResource TabViewItemStyle}"
                ToolTipService.Placement="Bottom"
                ToolTipService.ToolTip="{x:Bind NavigationHistory.CurrentItem.Description, Mode=OneWay}" />
        </DataTemplate>
    </TabView.TabItemTemplate>
</TabView>

<!-- Direct setting doesn't work. -->

<TabView
    x:Name="MainTabView"
    HorizontalAlignment="Stretch"
    VerticalAlignment="Stretch"
    AllowDropTabs="True"
    Background="{x:Null}"
    CanReorderTabs="True"
    IsAddTabButtonVisible="False">
    <TabView.TabItemTemplate>
        <DataTemplate x:DataType="local:TabItem">
            <TabViewItem
                Header="{x:Bind NavigationHistory.CurrentItem.Header, Mode=OneWay}"
                Style="{StaticResource TabViewItemStyle}"
                ToolTipService.Placement="Bottom"
                ToolTipService.ToolTip="{x:Bind NavigationHistory.CurrentItem.Description, Mode=OneWay}">
                <TabViewItem.IconSource>
                    <Image Source="ms-appx:///Assets/Icon.png" />
                </TabViewItem.IconSource>
            </TabViewItem>
        </DataTemplate>
    </TabView.TabItemTemplate>
</TabView>

Steps to reproduce the bug
Not exists specifically.
Expected behavior
Show them correctly.
Screenshots
No response
NuGet package version
WinUI 3 - Windows App SDK 1.2 Preview 1: 1.2.0-preview1
Windows app type

[ ] UWP
[X] Win32

Device form factor
Desktop
Windows version
Windows 11 (21H2): Build 22000
Additional context
No response

For what it's worth, this is a workaround one can use:
private void TabViewItem_Loaded(object sender, RoutedEventArgs e)
{
	if (sender is TabViewItem tvi && tvi.FindDescendant("IconControl") is ContentControl control)
	{
		control.Content = (tvi.IconSource as ImageIconSource).CreateIconElement();
		tvi.RegisterPropertyChangedCallback(TabViewItem.IconSourceProperty, (s, args) =>
		{
			if (s is TabViewItem tabViewItem && tabViewItem.FindDescendant("IconControl") is ContentControl iconControl)
				iconControl.Content = (tabViewItem.IconSource as ImageIconSource).CreateIconElement();
		});
	}
}

@chingucoding Seems that this is not work for SymbolIconSource

Of course this workaround depends on the specific iconsource you have. I think if you switch out ImageIconSource with SymbolIconSource or even better IconSource, it should work.

@chingucoding I mean this workaround is not work if I assign an instance of SymbolIconSource or FontIconSource to TabViewItem.IconSource. Only ImageIconSource works in your workaround.
private void TabViewItem_Loaded(object sender, RoutedEventArgs e)
{
	if (sender is TabViewItem tvi && tvi.FindDescendant("IconControl") is ContentControl control)
	{
		control.Content = tvi.IconSource.CreateIconElement();
		tvi.RegisterPropertyChangedCallback(TabViewItem.IconSourceProperty, (s, args) =>
		{
			if (s is TabViewItem tabViewItem && tabViewItem.FindDescendant("IconControl") is ContentControl iconControl)
				iconControl.Content = tabViewItem.IconSource.CreateIconElement();
		});
	}
}

@zhuxb711 does it not work even with the updated workaround?

Yes the TabViewItem's icon do not show anything with the updated workaround. Only ImageIconSource works well with the workaround.

Why this issue is still not being fixed after such a long time? Ok, what I got is that every issue they mentioned in the change log needs about half year (very very hard work😂) to fix.  WinUI team, DON'T SLACK OFF, everyone is waiting for the fixing.

Any update? This better be fixed as soon as possible.

I could confirm that this issue is already fixed in 1.4 preview2

Can you show some screenshots?

Without workaround mentioned by @chingucoding

Thank you. I'm wondering why the team didn't let us know😕

Thank you. I'm wondering why the team didn't let us know😕

They always hide something from us and do not even mention it in the release note. 😕


document store support

Are there any plans for a database adapter for document stores?

We already have a MongoDB adapter if that’s what you meant.

No plans to add support for any additional document databases at the moment.


The deployment script was unable to log into Azure Resource Manager via the specified Managed Identity due to  authentication failed

Bicep version
0.4.613
Describe the bug
I am using bicep power shell deployment scripts to generate random password and then store it in the key vault. Suddenly an authentication issue came up and it says as attached in the document.
errorwithdeploymentscripts.txt

To Reproduce
resource MEUAIdentity 'Microsoft.ManagedIdentity/userAssignedIdentities@2018-11-30' = {
  name: 'xxxx'
  tags: {}
  location: resourceGroup().location
}

resource setsqlPassword 'Microsoft.Resources/deploymentScripts@2020-10-01' = {
  name: 'setsqlPassword'
  location: resourceGroup().location
  identity: {
    type: 'UserAssigned'
    userAssignedIdentities: {
      '${MEUAIdentity.id}': {}
    }
  }
  kind: 'AzurePowerShell'
  properties: {
    forceUpdateTag: utcValue
    azPowerShellVersion: '5.0'
    timeout: 'PT30M'
    arguments: ' -vaultName ${me_Akv} -SecretName "sqlPassword" '
      '
    cleanupPreference: 'OnSuccess'
    retentionInterval: 'P1D'
  }
}

Additional context
This is happening intermittently. In 10 executions 4 times I observed this issue, A fix for this issue will help us a lot.

Do you have correlation IDs available for the failures by any chance?

The correlation ID is: 25297f97-45698-4ef9-afd3-bd514ffc2916

I'd recommend opening up a support case for this particular issue. There is a chance we will find time to take a look, but support will be a more reliable way of troubleshooting this issue.

arguments: ' -vaultName xxx  -clientId ${clientId} -tenantID ${subscription().tenantId} -subID ${subscription().id} '
'environmentVariables': [
{
'name': 'clientSecret'
'secureValue': clientSecret
}
]
scriptContent: '''
param(
[string] [Parameter(Mandatory=$true)] $vaultName,
[string] [Parameter(Mandatory=$true)] $clientId,
[string] [Parameter(Mandatory=$true)] $tenantID,
[string] [Parameter(Mandatory=$true)] $subID
)
$subID = $subID.split('/')[-1]
$passwd = ConvertTo-SecureString $Env:clientSecret -AsPlainText -Force
$pscredential = New-Object System.Management.Automation.PSCredential($clientId,$passwd)
Connect-AzAccount -ServicePrincipal -Credential $pscredential -TenantId $tenantID -Subscription $subID -WarningAction:SilentlyContinue
Set-AzContext -SubscriptionId $subID -TenantId $tenantID -WarningAction:SilentlyContinue
'''
In this way of logging, doesn't show any issues.


doesn't work inside row and column

gives 'A RenderFlex overflowed by Infinity pixels on the bottom.' error when used inside column widget and gives 'A RenderFlex overflowed by Infinity pixels on the right.' error when used inside row widget.

Hi, that's plugin uses for "floatingActionButton" menu widget only. it's not support for either column or row widget.


Fix app reference in addon index

cc @lukemelia

I don't really understand what's going on with the linter. Same problem shows up in #234...

I think #236 should fix the linter


adjust header element spacing

after making nav bar header elements got out of whack. need to adjust

removed header "grid" option and made it "flex" but now the search bar is all out of whack

fixed in #103


Generating Shipping Labels from Packages

I'm looking into implementing the ability to generate shipping labels for some carriers, and I was wondering if this is something Active Shipping would accept a pull request for (or already has and I simply missed it in the code).
Please let me know, thanks!

I'm gonna close this because label generation is a thing now for Fedex, UPS and CanadaPost


up requirements for ooio and highfive

fixes #7 and also allows installation with boost 1.70 (otherwise oiio is limiting that).

The change has been integrated in #9


Regression in support for BSDs and other OSes

If I understand correctly, v3 is written in Ruby, whereas v4 is written in Go. Using Go allows you to ship a self-contained binary, without the dependency on Ruby. This seems like a good thing.
But v4 also uses Node. Presumably to avoid having a dependency on a system-wide installation of Node, v4 installs its own copy of Node into .heroku. To do this, it downloads a binary release of io.js from https://iojs.org/dist - see nodeURL() in gode/client.go
This uses runtime.GOOS to determine which release to download. That's fine if there is a binary release for your platform: so Linux, Windows and OS X are OK. But it doesn't work if there isn't an io.js binary release for your operating system.
Here's the result on OpenBSD:
$ ~/.heroku/heroku-cli
Setting up iojs-v3.2.0... ▸    gzip: invalid header

On OpenBSD, runtime.GOOS is openbsd. So nodeURL() will return https://iojs.org/dist/v3.2.0/iojs-v3.2.0-openbsd-x64.tar.gz - which does not exist.
You ought to get a 404 when you try to download it. But it looks like you're then trying to pass the non-existent file to gzip.
So this won't work on FreeBSD, OpenBSD or any other OS that doesn't have a binary io.js release available for it. That's a shame, as v3 of the Heroku CLI always used to work well on them.
At the least, a better error message would be good. Preferably, we either wouldn't need a Node installation at all or we could use a system-wide installation rather than  a sandbox in .heroku. I understand why you don't want a dependency on a system-wide installation - but if you're going to use Node (rather than doing everything in Go) then you've got that dependency anyway. Surely it's better to allow use of a system-wide installation than not to work at all?
What is Node (or io.js) used for? I can't actually see any JavaScript in this repo yet. It all seems to be Go.

Most of the code will be written in node, the readme goes over the architecture. We don't use the system here since we don't want to conflict with any packages that might be installed on the machine and we want to ensure we're on the same version. We only support iojs, we don't support node.
I think what we'll have to do is host openbsd binaries ourself. I'd like to host the binaries anyways so I can put them behind a faster CDN.

I did add some code to properly check the status code of the request at least

If you were to host the binaries yourself, that would solve the problem perfectly. I'd be happy to help build OpenBSD binaries, if that would be useful.
I believe iojs 3.x will be the last iojs release. It has merged with node now, so the 4.x release will be known as Node again. The alpha release of Node v4 is due in about a week.

sorry I forgot to update this but I did a bit of work in order to make this work better under bsd. I apologize that it isn't as seamless of an install as I would like, it's something I plan to revisit.
I made it show a better error message explaining that you need to compile node to ~/.heroku/node-v4*. Hopefully the instructions there are easy enough to follow. There was a second part to this that would also have required you to setup npm in a specific location inside of that directory. I went ahead and at least automated that.
I haven't tested this, but I think if you just extract the tarball to ~/.heroku, and run make it will set it up properly.

Good news: as far as I can tell, that works perfectly on OpenBSD:
cac04:/home/cac04/test:80$ heroku local
Installing Heroku Toolbelt v4... done.
For more information on Toolbelt v4: https://github.com/heroku/heroku-cli
Installing core plugins heroku-apps, heroku-fork, heroku-git, heroku-local, heroku-run, heroku-status... done

As you said, you just need to extract the tarball to ~/.heroku, build and install it. In case another OpenBSD user reads this, here are the required steps:
CC=egcc CXX=eg++ ./configure --prefix=~/.heroku/node-v4.1.1
gmake
gmake install

The bad news is that heroku local then runs into the same problem again. It tries to download forego for the user's platform... as long as it's darwin, linux or win32:
 ▸    Cannot read property 'filename' of undefined

I think this comes from lib/forego.js in heroku-local. See line 10, where the download options are filtered using target.platform === process.platform.

I put a change in to show a better message in heroku local as well about compiling forego

not sure why this is still open, but I improved this a bit. Now it will fall back to the node in the PATH if there isn't an available binary. (Though I can't guarantee it will work for old versions of node)

Thank you for your help.

Thanks all.  Just wanted to give folks on FreeBSD and other *nixes a heads up that I ran into an issue before, so here's what I did to get rolling on a recent version of the heroku cli:
(Thanks to this site for pointing me in the right direction: https://qiita.com/nurse/items/3e2bf8524f137b80d66b)

pkg install node npm yarn
git clone https://github.com/heroku/cli.git heroku-cli
cd heroku-cli && yarn install  # This generates bin/run as the heroku cli executable
mkdir -p ~/bin && ln -s \pwd`/bin/run ~/bin/heroku`
Ensure ~/bin is in your bath but updating your .bashrc / .bash_profile accordingly


to_additive unable to translate toOneHomClass

See PR#659, in Algebra.Hom.Group, around theorem MonoidHom.coe_coe. If the quickfix
attribute [to_additive AddMonoidHomClass.toZeroHomClass] MonoidHomClass.toOneHomClass

is removed, the to_additive tactic seems to be looking for AddMonoidHomClass.toOneHomClass, when it should look for AddMonoidHomClass.toZeroHomClass. It has no trouble translating OneHomClass to ZeroHomClass, but has trouble with toOneHomClass.

I'll look into that tonight :)

That todo is not quite the right one. It is for translating constructors, like AddMonoidHomClass.mk. However, this is not actually necessary: the implementation will do fine without these translations.
@digama0: Am I correct that the environment does not contain information about which structures a given structure extends? What is the best way forward? The @[ancestor] hack from Lean 3? Make a Core PR that records this information?

When I removed the ancestor attribute from mathport, my understanding was that this information either already exists or would be stored by lean to avoid the need for duplicating the information. (That said I haven't looked at it in detail and a core PR may be needed.)

I created a RFC for a core PR at leanprover/lean4#1881


seyi update readMe with my name

I added my name

@Sheyitofunmi Where is your Pull Request? I do not see it under "Pull Requests" so how did you add your name?

I just added it ma

@Sheyitofunmi move your issue/ticket status from In progress to ready for review


 This can be a breaking change for some third-party modules.
Changelog
[General] [Removed] - Remove deprecated removeListener methods
Test Plan

/cc @cortinico


"Next SFML" Modular Renderer Proposal

Preface
I had a design that I wanted to share with you guys for a while but wasn't sure if SFML would break away from its API at the time.
But since there's discussion about moving away from "old SFML", I hope you all can keep an open mind.
Problem
Support multiple backend renderers for next version of SFML
Review of Current Prop
Link to last proposal.
So one issue I see right away with the prop is using enums for renderers. This means the supported types are hard-coded and new devs cannot BYOB.
Creating some kind of standard for rendering and passing "extension support" to the hands of 3rd party devs will lower the barrier of entry for contributions towards the many types of renderers SFML wants to support and beyond.
This will also pass the responsibility off the shoulders of the core SFML team so they can focus on new SFML features/bugs.
Research Similar to Problem
Please keep in mind that what you see is still very much a prototype but it works very well. And the design choices that follow can be applicable to the goal of achieving renderer modularity for the next SFML.
Proof of modularity
In this line, I am creating a variety of renderer options to be able to switch to on the fly.
Let's take a look at a "simple" SFML renderer:
Pre-configured renderer
We can see there's a draw callback, view change callback, primary output texture target, and let's ignore onEvent(...) for now.
Let's see a different renderer:
Custom renderer
Ignoring the custom structs at the top, we see the same sort of callbacks:
draw, view change, primary output texture target, and these onEvent(...) functions.
We have a standard structure of behavior that we know each "renderer" should need. Let's talk a little more about the onEvent(...) functions and how it can pertain to the SFML modularity problem. Before we do, let's debrief about the differences in graphics programming and why modularity is tricky.
Programmable Graphics & Friends
Since different renderers are just built different ™, we can expect many different ways to send data to and from the GPU. Vulkan, DirectX, OpenGL, all come to mind. Typically we use a private implementation as we see in the SFML framework. But modern graphics programming have programmable shaders and buffers themselves. This was, from my older understanding, one of the issues SFML had with upgrading to OpenGL ES 2: how do we agree on what the variable names for our vertex and fragment defaults should be? and then for newer OpenGL the same could be said about layouts.
This problem would force programmers to require making their shaders follow a specifically named convention defeating the purpose. And this is only limited to OpenGL. The problem compounds itself when we try to include other shaders like DirectX.
We need:

The ability to support any rendering backend
The ability to let the programmer configure their renderer
Also provide a default "working" renderer so that programmers can "just get started"
4. Be backwards compatible with SFML 2 No longer a constraint 🙂

Dispatching Arbitrary Events
Back to my example code, let's talk about the onEvent(...) functions. The onEvent(...) functions are compile-time enforced by my "self-subscribing dispatcher" design. In order to close the gap between the diamond dependency problem, and allow one base class to be used as the renderer "handle", and allow some magnitude of compile-time checking, I separated the renderer into three parts:

dispatcher
receiver (trampoline)
subscriber

For current-SFML compatibility, I needed to force the renderer to use a base class so anyone using my library can just draw SFML drawables the "old fashioned way". This doesn't need to be necessarily enforced in the modular SFML renderer implementation.
Refer to the renderer implementations at the top of my first post and see that the renderer inherits from a base class that uses types of data to subscribe to. When the IRenderer object submits data, it will trampoline through a type-hashed function pointer back to the specialized onEvent(...) function. This hash is created on construction and uses raw function pointers to avoid going onto the heap. Even with some safety checks, I tried to reduce the amount of hops to get to our event handling function.
With this design, we can dispatch arbitrary events we know we are subscribing to. And we don't have to know the renderer implementation when we write our SFML app: Dispatcher in action
How to Apply This Knowledge: the process for Next SFML

By comparing modern renderers, we can find a common standard for SFML.
With a common standard, we can identify and model common draw operations. Let's call those "draw events".
By switching to an event-based renderer, we can pack the event structs with only the data we need to mutate drawing contexts, draw to a target, or even perform operations.
If done similarly to the R&D lib presented, we can supply "pre-configured" simple SFML renderers for various backends.
By being de-coupled unlike the enum approach, contributors can easily support new renderers and expand on the draw event data types.
Furthermore, we can scaffold a renderer interface that can be a front-facing dispatcher much like this R&D lib that hides the graphics-driver specific details
Finally, following step number 6, programmers can then extend the interface and configure their dispatcher's draw steps for granular customization.

Examples
To bridge the gap between the ideas here and the prototype linked, here is some very light psuedo-code to show that the design pattern used from the R&D library to illustrate the idea can be adapted to this problem.
Note: could be any shader format, or ideally SFML adopts cross-platform shader tech
#version 330 core
layout (location = 0) in vec3 aPos;

layout (std140) uniform Matrices
{
    mat4 projection;
    mat4 view;
};
uniform mat4 model;

void main()
{
    gl_Position = projection * view * model * vec4(aPos, 1.0);
}

// A custom draw event for our SFML app to use later
struct ModelDataChange : sf::RenderEvent {
    sf::VertexArray data;
    ModelDataChange(const sf::VertexArray& data) : data(data), sf::RenderEvent("ModelDataChanged"){}
};

// Note sf::Renderer inherits sf::IRenderer for programmer's own custom event system.
// Note sf::GCommand can trampoline to the desired Graphics Event System as well (Vulkan impl, OGL impl, etc...)
class MyCustomRenderer : public sf::Renderer<ModelDataChange> {
    bool init{};
    sf::FBO fbo;
    sf::RBO rbo[3];
    unsigned int uboMatrices;
    unsigned int uniformBlockIndex[4];
    sf::VertexArray vaoModel;
    sf::Shaders shaders[4]; // red, blue, green, yellow
public:
    void initRenderPass(sf::GCommand& cmd) override {
        // ASSUME: shaders loaded correctly

        for(int i = 0; i < 3; i++) {
            cmd.submit(sf::RenderEvents::ColorAttachment(fbo, rbo[i], i));
        }

        for(int i = 0; i < 4; i++) {
            cmd.submit(sf::RenderEvents::GetUniformBlockIndex(shaders[i], "Matrices", &uniformBlockIndex[i]));
            cmd.submit(sf::RenderEvents::UniformBlockBind(shaders[i], &uniformBlockIndex[i], 0));
        }

        cmd.submit(sf::RenderEvents::GenBuffer(&uboMatrices, 2*sizeof(sf::Mat4), 0, sf::RenderTypes::StaticDraw));
        // calculate both halves of the matrix, note namespace Glsl is dropped
        sf::Mat4 proj = ...;
        sf::Mat4 view = ...;
        cmd.submit(sf::RenderEvents::BufferUpdateData(&uobMatrices, 0, proj)); // first half
        cmd.submit(sf::RenderEvents::BufferUpdateData(&uobMatrices, sizeof(sf::Mat4), view)); // second half

        cmd.submit(sf::RenderEvents::BindFrameBuffer(fbo));
        init = true;
    }

    void execRenderPass(sf::GCommand& cmd) override {
        if(!init) {
            initRenderPass(cmd);
        }

        // other draw steps can still be encapsulated inside of classes
        static sf::RenderStates states;
        for(int i = 0; i < 4; i++) {
            sf::Mat4 pos;
            pos.translate( /* place in four corners mathematically */);
            states.shader = shaders[i];
            states.shader->setUniform("model", pos);
            fbo.draw(vaoModel, sf::RenderTypes::Triangles);
        }
    }

    // handle any custom draw data our SFML program wants to use
    // this is an overly simplified event data type
    // In production, we would want to include more meaningful data such as
    // the asset by name and keep a hash of all uploaded VAOs...
    void onEvent(const ModelDataChanged& event) override {
        vaoModel = event.vertexArray;
    }
};

And the SFML app itself would be very similar:
int main() {
    MyCustomRenderer renderer;

    sf::VertexArray myVao = LoadModelData1();

    // Window now needs at least one default graphic system to support and optionally a custom renderer
    // A builder-pattern would be useful here
    std::optional<sf::RenderWindow> maybeWindow = sf::RenderWindow::Create(sf::VideoMode(200, 200), "SFML")
        .usingGraphicsSupport<sf::Graphics::Vulkan, sf::Graphics::OGL>()
        .usingRenderer(renderer)
        .build();

    // Something happened. Ideally, read an error
    if(maybeWindow .has_value()) return -1;
    sf::RenderWindow& window = maybeWindow.value();

    while (window.isOpen()) {
        sf::Event event;
        while (window.pollEvent(event)) {
            if (event.type == sf::Event::Closed) {
                window.close();
            }
            else if(event.type == sf::Event::KeyPressed) {
                if(event.key.code == sf::Keyboard::A) {
                    myVao = LoadModelData1();
                } else {
                    myVao = LoadModelData2();
                }

                // Update downstream to our custom renderer
                renderer.submit(ModelDataChanged{myVao});
            }
        }

        window.clear();
        window.display();
    }

    return 0;
}

I left out the example implementation for the Graphics Event System but the idea is the same and I included GCommand functions in the draw step to give the impression of the idea I'm proposing. e.g. there would need to exist some
using sf::RenderEvents;

// This is just the implementation that comes pre-configured and included with SFML.
// Programmers can write their own sf::GCommand implementation for the graphics event system.
class VulkanGraphicsSystem : public sf::GCommand<GenUniformBlock, BindUniform, BindAttachment, ...> {
  void onEvent(const GenUniformBlock& event) {
     // handle event at vulkan-level
  }
  ...
}

... for Vulkan and so on.
The template use here might be too much. It's possible we do not need to have the same degree of flexibility as we do at for the programmer's own app, but it's a consideration. We could easily just support every event type as a class function that requires overloading.
// Alt. implementation that doesn't use templates. Requires overloading.
class VulkanGraphicsSystem : public sf::GCommand {
  // required overload
  void onEvent(const GenUniformBlock& event) {
     // handle event at vulkan-level
  }

  // required overload
  void onEvent(const BindUniform& event) {
     // handle event at vulkan-level
  }
  ...
}

Conclusion
The idea is that the details for how to handle various renderers is no longer tightly coupled in SFML itself. This will also allow the SFML team to implement the various OS specializations (windows, inputs, audio) separately from the render pipeline.
An event-based pipeline can encapsulate common event types shared for all graphics systems and the private implementation can handle each event differently via commands GCommand. These private implementations will be easily extendable by using event handling so 3rd parties can contribute easily.
The final step is bridging the legacy API conveniences with the front-facing dispatcher IRenderer which provides even further extension for a programmer's own desired rendering pipeline. It can be designed in such a way that common .draw(...) utilities still exist in the SFML graphics API but now in a place that can be directed by the programmer as they see fit.
We use these event systems in 2 places: at the graphics system-specific level and optionally at the programmer's app level that has abstracted away the graphics system layer.
The [ ... ] denotes that the code is fixed and associated systems are tightly-coupled. Everything else is flexible.
[OS Specifics -> SFML] -> Graphics Event System -> (optional) App Event System -> [SFML -> Window]
Considerations
1. Let's get the cons out of the way
The cons for the programmable graphics systems and the programmer's own app rendering system detailed above is that they use templates.
Since the common standard for graphics events should be mostly similar, the pre-made Graphics Event Systems (for Vulkan, OGL, DirectX) for SFML may be satisfied with traditional classes and virtual functions that simply need to be overload. This would avoid a lot of unneeded templates and headache. Let's assume that is what we do for the rest of this considerations section of the proposal...
This leaves the programmer's own pipeline to use templates which comes at their own expense with how much custom data they want to dispatch. Most data could be packed into even bigger data structs or switching by enum member variables as tags allowing the programmer's renderer to subscribe to only a few events at most.
And finally, the rewrite. That will have to happen.
2. Pros
I feel that this proposal comes with a lot more pros. Some have been listed already before, but I'll list them all here:

SFML can support various graphics systems
Contributors can easily support new graphics system with a new sf::GCommand implementation
Programmer's can support new event types at their application-level and handled by the abstraction sf::IRenderer
This also allows for SFML apps to change graphics drivers on-the-fly, supporting the first best one at Window creation time
This also allows the possibility of also allowing SFML apps to change renderer systems on the fly (see R&D Swoosh2 links)
Once SFML has this system in place and the common graphics systems are supported, it will no longer be held back by time and can keep up with the newest graphics features easily by updating event data

Interested in your thoughts 🙏

I don't support the notion of user-provided rendering backends. I don't even support the idea multiple 1st party rendering backends. My main reason for this is that it entails a massive increase in the ongoing maintenance burden and complexity of SFML that I don't think justifies the increase in flexibility functionality it entails. Maintaining and testing the existing OpenGL code is hard enough.
Generally it's hard to have interchangeable dependencies.  If you pick at configuration then installs of the library must make that decision and users can't change it afterward. If you make that decision at runtime then all dependencies must be present when building which is annoying as well. I've dealt with this on past projects and it was no fun. I hope SFML can avoid this.

Thank you for writing down your proposal. 🙂
While we will have to tackle the challenge of coupling, I don't see implementing the renderer(s) as a generic rendering "message bus" as the solution for SFML. It solves the coupling problem, but adds quite a bit of complexity on top, that isn't adequately re-couped.
Dynamic backend selection, is really a nice-to-have feature and shouldn't be a central piece of the puzzle to begin with. As Thrasher mentioned, this doesn't entail just writing C++ code, but you have to do a lot of heavy lifting in dependency management, including dynamic loading of libraries and detection there of. The only point where such a dynamic selection can be useful is, when trying to support a fallback (e.g. Vulkan with OpenGL as fallback), having say DirectX and OpenGL side-by-side is really just a gimmick, as basically no one will go and dynamically switch from one to the other renderer. If we do a full render API evolution, we will probably just have one rendering backend per platform and if something else is supported, you could maybe switch at compile time. I see the appeal, but it's not something crucial to have from the start.
There's little benefit in having dynamic dispatching, when there's just one receiver at the other end, even if the implementieren of the receiver changes, and it can become a much simpler design, if you just have a concrete interface to write code against, instead of some more generic/abstract event structure. Besides that, it's unclear, whether you're really able to cover all the use and edge cases with such an API. What I for example am missing on the current proposal is how to deal with resource management. How are texture loaded (from disk to RAM to VRAM)? Who owns the context? How do you transfer resource between renderers? I quite like event-driven systems and believe it's the right choice for a lot of things in game engines, but even there, I'd say dynamic renderer isn't really as useful.
Rendering has real-time requirements and without proper benchmarks, it's really hard to tell, whether the presented proposal could really live up to the milliseconds scale necessary.
In summary, I like the idea of enabling advanced users to optimize for their own use case and potentially allow for a wider support of renderers through that, however this and dynamic backend selection are sugar coating and topics that can be addressed at a later point. The decoupling of renderer and rendering API can be done a lot simpler, than having event dispatching and also with more known variables on overall support and performance.
As such, I also reject this proposal.

I appreciate all the thought and effort you put into this, but it's not something we want to move forward with.


Life system

The player needs to know when he has gotten hit, and the game has to have a way to trigger a game over.
A life system could be a great way to deal with those problems. This would be a pretty big feature since it would need UI elements to function.
 His lives would be spent by getting shot by the dinosaurs.
There could also be an animation for when he gets hit (a simple flashing of the player's spaceship would be enough).

Hello~ I could handle this issue!

@pgk1216 Hi, no problem, I assign this issue to you. Thank you so much!

Video to help you with an example of life system : https://www.youtube.com/watch?v=y-AfsnIyIww

Not sure if there's been much progress made on this by pgk yet, but I could also handle this issue if there isn't :)

Hi @SirShamrock alright, I'm going to see with @pgk1216, if he didn't implement it yet, you can work on this issue! :)


Missing ISO 639 codes for Ijo

The language system tag 'IJO ' (Ijo languages) corresponds to the ISO 639 code ijo. The codes for its members should be listed too: iby, ije, ijn, ijs, nkx, okd, okr, orr. (ijc is already listed.)

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 31fa774c-1048-54de-7334-b9e8665f2815
Version Independent ID: 3502af1f-112a-038b-6ee5-1f7f21018586
Content: Language system tags (OpenType 1.8.4) - Typography
Content Source: typographydocs/opentype/otspec184beta/languagetags.md
Product: typography
GitHub Login: @PeterCon
Microsoft Alias: alib

Changed in 1.8.4 preview.


[Bug] Batteryload on Samsung Galaxy S7 and S8

Describe the bug
Some of my colleagues told me a higher batteryload, when they had start the RocketChat-APP.
Expected behavior
I couldn't reproduce it on my Android Device (BQ Aquaris M 5.5 - Android 7.1.2). My colleagues wish to have a normal Batteryload back.
Devices and Versions
Rocket.Chat.Android version: 3.2.0
Rocket.Chat Server version: v0.70
Mobile device model and OS version: - Samsung Galaxy S7 and S8 - Android 8

Could you ask them to verify if this is really RocketChat app? They can check system battery information, or use some kind of Wakelock monitor. This battery drain may be related to app not letting go to sleep their phones.

@Ultimativschmidt  Working fine for me. I also checked with background running processes and there is nothing unexpected there.

@lorek123 The Question at my colleagues is in progress.

@lorek123 I've told my colleagues to reinstall the RocketChat-App. There's no problem since there.


configure-ipv6-in-windows.md - Missing indication of Windows 11 compatibility.

There should be indication if Windows 11 is also affected by the settings here: configure-ipv6-in-windows.md - https://learn.microsoft.com/en-US/troubleshoot/windows-server/networking/configure-ipv6-in-windows
It indicates Windows 10 - all versions. is the expectation that Windows 11 is not listed so it's not supported?

Hi @NapAlot. Thank you for your comments. We will investigate it.

We decide to remove the "Applies to:" line as it caused confusion. Thanks again for the feedback. :)


Support @clientName and @encodedName

As encodedName is introduced in 0.52 of TypeSpec.
model Widget {
  @key id: string;

  @encodedName("application/json", "WidgetWeight")
  weight: int32;

  color: "red" | "blue";
  @added(Versions.v2) name: string;
}

And @clientName is introduced in this PR https://github.com/Azure/typespec-azure/pull/127/files.
Please support them in the CodeGen.

@clientName is supported in 0.13.0 onward and released.

@weidongxu-microsoft is @encodedName support still pending? We already had started migrating and recommending user to use that.

@timotheeguerin
@encodedName for application/json is supported in 0.13.2 (early Feb., synced to SDK repo)
https://github.com/Azure/autorest.java/blob/main/typespec-extension/changelog.md#0132-2024-02-02
I kept the issue open as I am not sure whether we would get @encodedName("multipart/form-data") or @encodedName("application/xml") anytime soon :-(

Yeah just json for now is fine we haven’t tested anything with xml yet in typespec.

@encodedName("application/json") is supported. For other types will use a new issue.


"Uncaught TypeError: node.removeEventListener is not a function" when use Svelte with jQuery on the same page

<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
<script src="../dist/main.js"></script>

When both Svelte and jQuery are included on the page there is an exception "Uncaught TypeError: node.removeEventListener is not a function"
The issue is caused by this function that is generated in the global namespace and rewrites a method of a window object
function removeEventListener ( node, event, handler ) {
	node.removeEventListener ( event, handler, false );
}

Exception is thrown when jQuery calls this function
/**
 * The ready event handler and self cleanup method
 */
function completed() {
	document.removeEventListener( "DOMContentLoaded", completed, false );
	window.removeEventListener( "load", completed, false );
	jQuery.ready();
}

In this case the compiled function is called but not native method and the first argument is "load" instead of DOM node.
The advised solution is to wrap all code generated by the compiler to a self invoked function and avoid rewriting of window.removeEventListener() method.

If removeEventListener is being declared in the global scope, it's because Rollup is generating an es module bundle — use iife instead to use the bundle as a <script> tag: https://github.com/rollup/rollup/wiki/JavaScript-API#format
// rollup.config.js
import svelte from 'rollup-plugin-svelte';

export default {
  entry: 'src/main.js',
  dest: 'dist/main.js',
  format: 'iife',
  plugins: [ svelte() ]
};

You are absolutely right. Thanks.
Think this issue may be marked as resolved.


gn1924: drop

ZHF: https://github.com/NixOS/nixpkgs/issues/352882
Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[x] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[x] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[x] Tested basic functionality of all binary files (usually in ./result/bin/)
24.11 Release Notes (or backporting 23.11 and 24.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[x] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

I think we're better off just dropping this gn version, yeah. Sorry about that - I should've dropped it once we moved envoy off it.

@lukegb @skeuchel OK.

@Aleks Done.

@Aleksanaa Done.


[9.x] Add whereBetweenDate() method to filter two dates with a different formats

PR: Add whereBetweenDate() method to filter two dates with different formats.
The use case to use the whereBetweenDate() to filter two dates with this format Y-m-d -> 2022-04-29 and the column on the database is a timestamp or DateTime 2022-04-29 16:05:00  if using whereBetween() that will return inaccurate data because will match with two dates with different format to solve this need to cast the column on the database to data using function date.
Example :
using whereBetween()
Query Builder :
 $checklists= DB::table('checklists')
            ->select('id','created_at')
            ->whereBetween('created_at', ['2022-04-17','2022-04-18'])
            ->get();

Eloquent :
 $checklists= Checklist::select('id','created_at')
        ->whereBetween('created_at', ['2022-04-17','2022-04-18'])
        ->get()

SQL :
SELECT
   id ,created_at
FROM
   checklists
where
   created_at between '2022-04-17' and '2022-04-18';

Output :

using whereBetweenDate()
Query Builder :
 $checklists= DB::table('checklists')
        ->select('id','created_at')
        ->whereBetweenDate('created_at', ['2022-04-17','2022-04-18'])
        ->get();

Eloquent  :
 $checklists= Checklist::select('id','created_at')
        ->whereBetweenDate('created_at', ['2022-04-17','2022-04-18'])
        ->get()

SQL :
SELECT
  id ,created_at
FROM
  checklists
where
  date(created_at) between '2022-04-17' and '2022-04-18';

Output  :

So I made this PR and added a new method whereBetweenDate() that casts the Timestamp or DateTime column to date and shows the exact values. whereBetweenDate() is useful when filtering data between two dates in different or the same formats.

This bakes SQL grammar  (the date function) directly into the query builder, which is not our usual approach.

This bakes SQL grammar (the date function) directly into the query builder, which is not our usual approach.

I think the new way more readable than passing date function SQL to whereBetween() like this
   DB::table('checklists')
    ->select('id','created_at')
    ->whereBetween(DB::raw('DATE(created_at)'),  ['2022-04-17','2022-04-18'])
    ->get();


Add more papers related to Speech / audio modality

Describe the solution you'd like
Add more papers with speech/audio modality. followed by 🔊

Added 1 more to come


How to print ¥

I've tried print text with GB18030 encoder. But the sign ¥ is printed as 0 6 .
I have no idear what is wrong.

I've done some research work of this issue and found a solution. To print characters, i.e. £ and €,  not in the ASCII table from 0 to 127, we need to set the character code table and tell the printer the code of the sepicific sign like this:
escPosEncoder
  .setCharacterCodeTable(255) // set character code table to "space page"
  .print([28, 46]) // reset Hanzi mode
  .setCharacterCodeTable(71) // set character code table to "WPC1252" (windows-1252)
  .print([165]) // print the character, 165 is the code of ¥ in WPC1252 character table

I have no idear why we should set character code table to "space page" and reset the Hanzi mode first. But it can solve my problem.


Error to get url get (users)

Describe the bug
After install and launch no errors but when open http://localhost:3500/api/v1/users/ got errors like in the screen.
To Reproduce
Steps to reproduce the behavior:

clone the project
configure BDD and like in readme migrate datas
launch
open browser to http://localhost:3500/api/v1/users
see error in console

Screenshots

Desktop (please complete the following information):

OS: Mac Os x
Browser : Firefox
Version [e.g. 22] : 83

Thanks

I created a new Linux virtual instance to produce the error. As you can see, everything went smoothly without any issue.

In one terminal, the binary is executed
In terminal 2, a GET request is sent using CURL. Since there's no data in the database, it returned an empty JSON array [ ]

You will find a log file in the directory from where you run the app. The following is from the log file:
[GIN] 2020/12/11 - 16:26:37 | 200 |     620.776µs |       <IP_ADDRESS> | GET      /api/v1/users
Unfortunately, I don't have any macOS to run the same test. But it shouldn't be related to OS if you follow the steps mentioned in the README file.

Did you run go build after cloning the project?
Can you share the log after sending a GET request?

Hello,
I do like you and for me got in log only :
[GIN] 2020/12/11 - 20:32:46 | 500 |    4.139489ms |             ::1 | GET      /api/v1/users
Thanks

Hello,
Sorry It my fault. I wrong clone project and configure.
Sorry


Mysql driver placement, or how to finish puppet run before starting JIRA

This question probably leaves much to be desired, and may be resolved simply with some puppet-fu.
We were receiving errors when starting JIRA in regards to a lack of mysql drivers.  We specified the driver in the dbdriver parameter as com.mysql.jdbc.Driver, but still ended up needing to add a driver(.jar) file to <install_directory>/lib/.  Due to the fact that JIRA module declares the directory where this needs to be placed, we can't place the file in the right place before running the JIRA module.  We do it afterwards then, but by the time we've placed the driver in the right place, JIRA has finished starting without that required file and is displaying a JIRALocked page.  So we are forced to stop JIRA, place the file, and start JIRA again.  But this means that our nightly puppet runs bounce our JIRA instance.  This could be solved by not needing to add the mysql driver, or by having a good way to ensure the service is running at the very end of the puppet run.
Any thoughts?

I think this may be fixed if you use the github version of the module. Just
busy finishing some other minor updates and plan to push a new version to
the forge which hopefully will fix this for you.
Let me know if that works, if not I'll take a look.
On 12 Jan 2015 23:28, "Zach Daniel"<EMAIL_ADDRESS>wrote:

This question probably leaves much to be desired, and my be resolved
simply with some puppet-fu.
We were receiving errors when starting JIRA in regards to a lack of mysql
drivers. We specified the driver in the dbdriver parameter as
com.mysql.jdbc.Driver, but still ended up needing to add a driver(.jar)
file to <install_directory>/lib/. Due to the fact that JIRA module
declares the directory where this needs to be placed, we can't place the
file in the right place before running the JIRA module. We do it afterwards
then, but by the time we've placed the driver in the right place, JIRA has
finished starting without that required file and is displaying a JIRALocked
page. So we are forced to stop JIRA, place the file, and start JIRA again.
But this means that our nightly puppet runs bounce our JIRA instance. This
could be solved by not needing to add the mysql driver, or by having a good
way to ensure the service is running at the very end of the puppet run.
Any thoughts?
—
Reply to this email directly or view it on GitHub
https://github.com/brycejohnson/puppet-jira/issues/45.

Thanks!  I'll wait for the forge update and give it a shot.

I have pushed a new version to the forge. Please let me know if it solved your problem.
If have the time, please consider rating the puppet jira module on the forge :)

Hi Zach
I have been testing the mysql connector on various operating systems.
Both CentOS 6 and Ubuntu 12.04 have this issue: http://bugs.mysql.com/bug.php?id=61201.
MySQL Connector 5.1.16 and 5.1.17 is known not to work with most atlassian products:  Ubuntu 12.04 ships 5.1.16. Centos 6 with 5.1.17.

I suspect I'm doing this wrong, but no matter how I configure it I'm getting the Tomcat error 'could not determine database type'
    version        => $version,
    installdir     => $install_dir,
    homedir        => $home_dir,
    db             => 'mysql',
    dbuser         => $dbuser,
    dbpassword     => $dbpassword,
    dbserver       => $dbserver,
    dbname         => $dbname,
    dbport         => $dbport,
    dbtype         => 'mysql',
    dbdriver       => 'com.mysql.jdbc.Driver',
    javahome       => '/usr/java/latest/',
    jvm_xmx        => '3584m',
    jvm_permgen    => '3584m',
    require        => File[$install_dir],
    service_ensure => 'running',
    java_opts      => '-Dorg.apache.jasper.runtime.BodyContentImpl.LIMIT_BUFFER=true',
  }```

I've tried it without dbdriver set, but I see no evidence of it managing or installing any mysql drivers.

I think I had a misconception here.  I realize now the option to select a jar was all I needed.  I just placed the jar before-hand, and pointed to it during the installation.  Sorry for the confusion, I would consider this issue addressed, seeing as the MySQL Connector package for CentOS is the reason it wasn't working earlier, not your module.

Hi Zach,
Glad its working, I added a new feature this weekend to download the latest driver and correctly place it. Its not uploaded to the forge yet though. I have just finished testing it on Ubuntu 12.04/14.04/Centos67 and Debian.
I hope to release 1.1.5 this week, just adding some other small features first.

Please consider rating the module on puppet forge if you have time :)

Just rated the other day.  The module has been a lifesaver in the process of moving from a modified WAR version of JIRA to a standalone.


Exception when running under node.js 0.12.0

Hello,
I have updated node to 0.12.0 and now the soap client I wrote doesn't work anymore.
I get the following call stack:
/Volumes/SOURCE/node/poste_test/node_modules/soap/lib/wsdl.js:872
elem.targetNSAlias = type.namespace;
^
TypeError: Cannot assign to read only property 'targetNSAlias' of CEResultResType|xsd:string|I,W,E
at ElementElement.description (/Volumes/SOURCE/node/poste_test/node_modules/soap/lib/wsdl.js:872:28)
at AllElement.description.SequenceElement.description [as description] (/Volumes/SOURCE/node/poste_test/node_modules/soap/lib/wsdl.js:911:29)
at ComplexTypeElement.description (/Volumes/SOURCE/node/poste_test/node_modules/soap/lib/wsdl.js:814:20)
at ElementElement.description (/Volumes/SOURCE/node/poste_test/node_modules/soap/lib/wsdl.js:870:46)
at AllElement.description.SequenceElement.description [as description] (/Volumes/SOURCE/node/poste_test/node_modules/soap/lib/wsdl.js:911:29)
at ComplexTypeElement.description (/Volumes/SOURCE/node/poste_test/node_modules/soap/lib/wsdl.js:814:20)
at ElementElement.description (/Volumes/SOURCE/node/poste_test/node_modules/soap/lib/wsdl.js:870:46)
at AllElement.description.SequenceElement.description [as description] (/Volumes/SOURCE/node/poste_test/node_modules/soap/lib/wsdl.js:911:29)
at ComplexTypeElement.description (/Volumes/SOURCE/node/poste_test/node_modules/soap/lib/wsdl.js:814:20)
at ElementElement.description (/Volumes/SOURCE/node/poste_test/node_modules/soap/lib/wsdl.js:896:31)
Please let me know if you need more details.
Thank You

Seems related to #550 and the suggestions/track down that @andrewbranch made. It would be super awesome if someone could take on this and provide a PR which makes node-soap node v0.12 compliant :+1:

P.S.: Closing in favour of #550 as I'd like to keep these problems in one place instead of cluttered all over our issues :smiley: - thanks for opening this issue and the provided details :+1:


npm install -g stopify is broken

Reported by @SamGinzburg.

Note that npm install stopify stopify-continuations works correctly, i.e. the modules can be imported and used.
Following the commands in the README and trying to use stopify after npm install -g stopify doesn't work.


Ubuntu 18.04 Compatibility

As of now ansible-nas is untested on Ubuntu 18.04, although it should work fine.
Test;

Playbook completes ok
Shares work and are browsable
Share permissions are correct
Docker containers spin up ok

Now runs fine on Ubuntu 18.04 :+1:


[question] How can I remove/toggle the magnifier?

Once I have attached the magnifier to a certain class, how can I remove the magnifier and reattach it later via javascript?
Thank you for your help!

@nickthesing could you please publish your workaround ? I tried different solutions but without a great success...
Emmanuel

@dude2511  @Cowprod
I know this is probably not the type of workaround you are looking for, but I just reload the page when someone toggles my button for changing the image view mode.
for instance, I call window.parent.location.reload(); when a button is pressed to turn off the magnifying mode.

can share how you toggle magnifier. Any plan to have feature to do 'detach/destroy' ?

Sorry I do not quiet understand the question.  Can you explain more?
On Aug 19, 2016 12:37 AM, "-"<EMAIL_ADDRESS>wrote:

can share how you toggle magnifier. Any plan to have feature to do
'detach/destroy' ?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/mark-rolich/Magnifier.js/issues/11#issuecomment-240925962,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AGV8AGEHJnFxJAwGKU2mq5E4lNL_IFSwks5qhTL8gaJpZM4CSOdK
.

I would like to remove the magnifier, change the source image and reattach it later via javascript.

I use this to reattach
var new_thumb = $('#thumb').clone() $('#thumb').remove() $('#thumb-lens').remove() $('.thumb-wrap').append(new_thumb)  var evt = new Event(),
m = new Magnifier(evt);
m.attach({
thumb: '#thumb',
zoomable: true,
mode: 'inside',
})

I need a destroy/unattach function, too.
I use the "inside" mode and had just to remove the lens because it gets recreated with the same unique id. I call this function before i do m.attach() again:
destroy() {
    const lens = document.getElementById(this.id + '-lens');
    if(lens)
      lens.remove();
}

While this.id is the DOM-id. (Im using TypeScript)


Attachments in mail messages with both html_part and text_part don't show up in Yahoo! or AOL webmail.

As per this StackOverflow post, I've been running into this myself, and its got me scratching my head as to why.
I'm running ruby 1.9.3p125 (2012-02-16 revision 34643) [x86_64-freebsd7.0], with mail version 2.5.4.

#853