could not train using python3.5 and tf 0.11

encountered 2 few errors.
perhaps due to version incompatibility.
$ python train_p3.py --data_dir=/Users/jhave/Desktop/github/byteNet-tensorflow/Data/pf
Traceback (most recent call last):
File "train_p3.py", line 6, in
from ByteNet import model
File "/Users/jhave/Desktop/github/byteNet-tensorflow/ByteNet/model.py", line 2, in
import ops
ImportError: No module named 'ops'

after ImportError I moved ops.py into same folder as train, then encountered...
$ python train_p3.py --data_dir=/Users/jhave/Desktop/github/byteNet-tensorflow/Data/pf
Traceback (most recent call last):
File "train_p3.py", line 85, in
main()
File "train_p3.py", line 42, in main
bn_tensors = byte_net.build_prediction_model()
File "/Users/jhave/Desktop/github/byteNet-tensorflow/ByteNet/model.py", line 48, in build_prediction_model
decoder_output = self.decoder(source_embedding)
File "/Users/jhave/Desktop/github/byteNet-tensorflow/ByteNet/model.py", line 123, in decoder
layer_output = self.decode_layer(curr_input, dilation, layer_no)
File "/Users/jhave/Desktop/github/byteNet-tensorflow/ByteNet/model.py", line 111, in decode_layer
name = "dec_dilated_conv_laye{}".format(layer_no)
File "/Users/jhave/Desktop/github/byteNet-tensorflow/ops.py", line 50, in dilated_conv1d
restored = batch_to_time(conv, dilation)
File "/Users/jhave/Desktop/github/byteNet-tensorflow/ops.py", line 21, in batch_to_time
[(shape[0]/dilation), -1, shape[2]])
File "//anaconda/lib/python3.5/site-packages/tensorflow/python/ops/gen_array_ops.py", line 1977, in reshape
name=name)
File "//anaconda/lib/python3.5/site-packages/tensorflow/python/framework/op_def_library.py", line 573, in apply_op
_Attr(op_def, input_arg.type_attr))
File "//anaconda/lib/python3.5/site-packages/tensorflow/python/framework/op_def_library.py", line 60, in _SatisfiesTypeConstraint
", ".join(dtypes.as_dtype(x).name for x in allowed_list)))
TypeError: DataType float32 for attr 'Tshape' not in list of allowed values: int32, int64

Please use python 2.7. tf > 0.10 should work. I'll update the requirements in the readme.

thanks. that worked.


LAB-1280 multi user datafile associations

What type of PR is this?
Remove the categories that do not apply

🎮 Feature
🐛 Bug Fix
🍧 Refactor
🔋 Optimization
📓 Documentation Update

Description
Please provide a brief description of the changes here. Include why they are needed, if applicable.
Any demonstrations of the changes (Loom, gif, etc.) may also go here.
Related Tickets & Documents
Reference as needed.
Steps to Test
A list of steps a reviewer can walk through to test the changes.
Relevant GIF
Required 🐔

@supraja-968 we need to remove the UserDatafile model and rely on the User and DataFile models for populating the JOIN table created in your latest SQL migration.

@supraja-968 this PR works for me. Datafiles are associated with a combination of users, have Public attribute working as expected, and can be submitted as Experimental input parameters successfully. Below is the PSQL tables showing multi associations across three users, a combination of private/public datafiles, as well as a screenshot of a local Labsay Checkpoint test.
backend=# SELECT * FROM users;
               wallet_address               |         created_at         |                 did                 | admin
--------------------------------------------+----------------------------+-------------------------------------+-------
 0x45790FEA7e8a4775BA0A2f98F710e5156C56275A | 2024-03-04 10:43:56.144487 | did:privy:clsw6349302khfu0w2qd6b4ya | f
 0x5C7be7C3DF886790b51027Aa97572702E43B149F | 2024-03-04 10:45:05.288772 | did:privy:clqw5egxh005ele0fzlcxgdxf | f
 0x196169F1F11B67e449A1Ec6f0e794e38cC8c6694 | 2024-03-04 10:34:06.291778 | did:privy:clp7guogw02ugjx0fbo3i37zk | t
(3 rows)

backend=# SELECT * FROM data_files;
                      cid                       |               wallet_address               |       filename       |         timestamp          | public
------------------------------------------------+--------------------------------------------+----------------------+----------------------------+--------
 QmYp5qsP31FvNqzrhiecuEYxqW4LhYuzG9DL5R3P2ynDSN | 0x196169F1F11B67e449A1Ec6f0e794e38cC8c6694 | UROK_HUMAN_1-133.pdb | 2024-03-04 10:43:40.150613 | f
 QmXPLpy3sH4ww15wuooi9REuNuahWAqyVunEZnMXxPQUNY | 0x45790FEA7e8a4775BA0A2f98F710e5156C56275A | 1hso.pdb             | 2024-03-04 10:44:13.685537 | t
 QmcK6UZffv6wWeqBEWUKViXXvFRmDo2Wo5MYwFGQtPZQ2J | 0x5C7be7C3DF886790b51027Aa97572702E43B149F | 6vja_stripped.pdb    | 2024-03-04 10:50:06.549207 | t
 QmNg4mRPx5VhikiHpUvdVdQmJwaKyY9ZQgqDrJSN3zw4rQ | 0x45790FEA7e8a4775BA0A2f98F710e5156C56275A | NEW_haiku_2.txt      | 2024-03-04 10:53:06.134839 | t
(4 rows)


Remove email from API key, instead use Auth Handle.

Currently, API keys use email for authenticating. This should change to Auth.

Completed in PR #124


best way to persist a timer notification

I'm trying to implement a stop watch in a persistent like notification.
I'm using this method call:

The channel:

NotificationChannel(
      channelDescription: 'Tracking Activities Channel',
      channelKey: TRACKING_CHANNEL_KEY,
      channelName: TRACKING_CHANNEL_NAME,
      importance: NotificationImportance.Low,
      enableVibration: false,
      playSound: false,
      channelShowBadge: Platform.isIOS ? false : true,
    ),

.......

await awesomeNotifsInstance.createNotification(
    content: NotificationContent(
      id: 2,
      channelKey: TRACKING_CHANNEL_KEY,
      title: 'Friendly Reminder ${Emojis.smile_slightly_smiling_face}',
      body: timeEllapsed,
      notificationLayout: NotificationLayout.Default,
      displayOnBackground: false,
      displayOnForeground: false,
      autoDismissible: false,
      wakeUpScreen: false,
      category: NotificationCategory.StopWatch,
    ),
  );

And this createNotification method is called every second, but when the app is minimized (this does not happen when the app is opened), the notifications just keep appearing on the foreground, one after the other. I would like for the notification to appear only the first time, and then would just change the text.
Is it possible? Thanks !

@MiguelSOliveira Did you find a way to do this?

I did not. In the meantime, I've changed my requirements.

Its a question of priority. If you set a higher priority it will behaves like that. So, try to lower the priority.

@rafaelsetragni Is there a way to only update the notification without constantly creating a new notification?
I've seen apps where, at least, visually it looks like the notification only gets updated without the creation of a new notification.

It seems to be a custom layout notification, and inside the layout the notification refreshes it own state, without the app interference. But I did not implemented anything related to custom notification layouts and I didn't dig it deep to confirm to you that this is the case.

Hi! Sorry for taking so long to respond to your issue on GitHub. I was focused on releasing the new 0.7.0 version of awesome_notifications and awesome_notifications_fcm and i didn't had time enough to do both. But now I can answer all your questions.
So now i'm asking you to recreate this topic using the new issue template. There's a lot of missing informations that i need to understand your problem, and all the instructions are already in the new issue template. Also, remember to check beforehand if your issue was posted by another user.
So I will automatically close all previous issues so far.
Sorry for the inconvenience and i will be waiting for your new issue request.
Thank you so much for your support!


Do not panic when processing a PacketIn message for a denied connection

If the NetworkPolicy or rule cannot be found in the cache.
I assume that this is ok, since the existing log message used for this
scenario has such a high level (4).
Signed-off-by: Antonin Bas<EMAIL_ADDRESS>

This is what I observed in the Agent logs during testing:
I0311 22:19:34.507985       8 conntrack_connections.go:148] Conntrack polling successful
I0311 22:19:34.895983       8 config.go:168] Calling handler.OnEndpointsUpdate
I0311 22:19:34.896001       8 config.go:168] Calling handler.OnEndpointsUpdate
I0311 22:19:35.154719       8 ofctrl_bridge.go:275] Received packet: &{Header:{Version:4 Type:10 Length:220 Xid:0} BufferId:4294967295 TotalLen:74 Reason:0 TableId:100 Cookie:1407374883553280 Match:{Type:1 Length:117 Fields:[{Class:32768 Field:0 HasMask:false Length:4 ExperimenterID:0 Value:0xc0011cf7a0 Mask:<nil>} {Class:32768 Field:5 HasMask:false Length:2 ExperimenterID:0 Value:0xc0011cf7a4 Mask:<nil>} {Class:1 Field:0 HasMask:false Length:4 ExperimenterID:0 Value:0xc0011cf7a8 Mask:<nil>} {Class:1 Field:1 HasMask:false Length:4 ExperimenterID:0 Value:0xc0011cf7ac Mask:<nil>} {Class:1 Field:3 HasMask:false Length:4 ExperimenterID:0 Value:0xc0011cf7b0 Mask:<nil>} {Class:1 Field:4 HasMask:false Length:4 ExperimenterID:0 Value:0xc0011cf7b4 Mask:<nil>} {Class:1 Field:7 HasMask:false Length:4 ExperimenterID:0 Value:0xc0011cf7b8 Mask:<nil>} {Class:1 Field:105 HasMask:true Length:8 ExperimenterID:0 Value:0xc0011cf7bc Mask:0xc0011cf7c0} {Class:1 Field:106 HasMask:false Length:2 ExperimenterID:0 Value:0xc0011cf7c4 Mask:<nil>} {Class:1 Field:107 HasMask:false Length:4 ExperimenterID:0 Value:0xc0011cf7c8 Mask:<nil>} {Class:1 Field:120 HasMask:false Length:4 ExperimenterID:0 Value:0xc0008d6420 Mask:<nil>} {Class:1 Field:121 HasMask:false Length:4 ExperimenterID:0 Value:0xc0008d6450 Mask:<nil>} {Class:1 Field:119 HasMask:false Length:1 ExperimenterID:0 Value:0xc0011cf7cc Mask:<nil>} {Class:1 Field:124 HasMask:false Length:2 ExperimenterID:0 Value:0xc0011cf7ce Mask:<nil>} {Class:1 Field:125 HasMask:false Length:2 ExperimenterID:0 Value:0xc0011cf7f0 Mask:<nil>}]} pad:[] Data:{Delimiter:0 HWDst:9a:4c:51:ee:97:f8 HWSrc:66:03:72:9d:f5:42 VLANID:{TPID:0 PCP:0 DEI:0 VID:0} Ethertype:2048 Data:0xc00081f080}}
I0311 22:19:35.154829       8 packetin.go:119] "Received packetIn" reason=0 handler="dnsresponse"
I0311 22:19:35.154849       8 packetin.go:119] "Received packetIn" reason=0 handler="networkpolicy"
I0311 22:19:35.154881       8 packetin.go:162] Cannot find NetworkPolicy or rule that has ruleID 168428067
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x20 pc=0x1bc066b]

goroutine 484 [running]:
antrea.io/antrea/pkg/agent/controller/networkpolicy.(*Controller).storeDenyConnection(0xc000533290, 0xc0011b2140)
	/antrea/pkg/agent/controller/networkpolicy/packetin.go:166 +0x72b
antrea.io/antrea/pkg/agent/controller/networkpolicy.(*Controller).HandlePacketIn(0xc000dc38c0, 0xc0011b2140)
	/antrea/pkg/agent/controller/networkpolicy/packetin.go:63 +0x1d3
antrea.io/antrea/pkg/agent/openflow.(*client).parsePacketIn(0xc000537dc0, 0xc000f24888)
	/antrea/pkg/agent/openflow/packetin.go:120 +0x2ec
created by antrea.io/antrea/pkg/agent/openflow.(*client).subscribeFeaturePacketIn
	/antrea/pkg/agent/openflow/packetin.go:107 +0x125

Codecov Report

Merging #3447 (3086ad5) into main (1cbf816) will decrease coverage by 21.07%.
The diff coverage is 0.00%.

@@             Coverage Diff             @@
##             main    #3447       +/-   ##
===========================================
- Coverage   63.52%   42.44%   -21.08%
===========================================
  Files         268      200       -68
  Lines       26900    24331     -2569
===========================================
- Hits        17087    10328     -6759
- Misses       7951    12938     +4987
+ Partials     1862     1065      -797

Flag
Coverage Δ

kind-e2e-tests
?

unit-tests
42.44% <0.00%> (-0.03%)
:arrow_down:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files
Coverage Δ

pkg/agent/controller/networkpolicy/packetin.go
0.00% <0.00%> (-69.08%)
:arrow_down:

pkg/ovs/openflow/default.go
0.00% <0.00%> (-100.00%)
:arrow_down:

pkg/util/runtime/runtime.go
0.00% <0.00%> (-100.00%)
:arrow_down:

pkg/agent/openflow/groups.go
0.00% <0.00%> (-100.00%)
:arrow_down:

pkg/agent/nodeportlocal/k8s/annotations.go
0.00% <0.00%> (-100.00%)
:arrow_down:

pkg/ovs/openflow/logs.go
9.52% <0.00%> (-90.48%)
:arrow_down:

pkg/apis/controlplane/register.go
0.00% <0.00%> (-90.48%)
:arrow_down:

pkg/agent/controller/networkpolicy/reject.go
0.00% <0.00%> (-87.91%)
:arrow_down:

pkg/agent/client.go
0.00% <0.00%> (-77.42%)
:arrow_down:

pkg/flowaggregator/certificate.go
0.00% <0.00%> (-76.58%)
:arrow_down:

... and 184 more

Thinking more about this, this issue is probably because of a separate bug. It's bad that we panic here, but we panic because the rule ID we extract from the PacketIn message is clearly invalid. As a reminder we allocate ids incrementally starting at 0, and 168428067 is way too high to make any sense. Looking at the rest of the logs, we only have installed 4 rules, with IDs 1,2,3 and 4.

/test-e2e


added a how to install metrics server

fix https://github.com/epinio/epinio/issues/1399

Applied all requested changes. Made new PR for it, see #142


fix(inputrange): extending styles in another way to solve weird issue

:tada: This PR is included in version 4.0.0 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Content appears twice when moving mouse too fast

When you hover a link too fast sometimes 2 elements are appended to the survol div instead of just 1

I'm interested in taking this.

I finally figured it out, this happens because the div waits for the request to end to add the content, and the mouseleave event is triggered while the div is empty (so nothing is cleared), when the content is finally loaded your cursor has already entered another a href

Ah interesting! I wonder if we could somehow cancel the request when mouseleave event is triggered while there's a pending request. Or perhaps we can discard the result when it comes back if we're unable to do that.

The referenced commit fixed the bug when going from one node to another, but apparently the bug can happen when staying on the same node ?


Add CI resources based on Robot-Framework

Include Docker setup and scripts (Dockerfile, install-requirements.sh, podman-compose.sh, prepare-board.sh).
Add initial Robot Framework resources, tests, and test setup files.
Integrate scripts for touch events and video performance testing with Robot Framework.
Add conf/nginx.conf for NGINX configuration and docker-compose.yml for environment setup.
Provide a comprehensive README.md for project setup and usage instructions.

Also:

Add .gitattributes configuration for handling large files with Git LFS.
Include .github/scripts/ with various sanitizer scripts (run-all-sanatizers, sanatizer-pycodestyle, sanatizer-pyflake8, sanatizer-shellcheck) for automated code quality checks.
Add GitHub Actions workflow (sanatizers.yml) to run sanitizers on pull requests.
Add .gitignore with entries for backup files, virtual environments, and testing artifacts.

This is an example of use (video): https://people.igalia.com/psaavedra/videos/robot-meta-wpe-image.mp4)


Redundant transitive dependencies report

In 0.50.0, I have this report generated:
Unused dependencies which should be removed:
- api(deps.workflow.legacy.rx2)

Transitively used dependencies that should be declared directly as indicated:
- api(deps.okio)
- api(deps.workflow.legacy.core)
- api(deps.workflow.core)
- api(deps.kotlin.stdlib_jdk6_do_not_use)
- implementation(deps.okio) // duplicate
- implementation(deps.workflow.legacy.core) // duplicate
- implementation(deps.workflow.core) // duplicate
- implementation(deps.kotlin.stdlib_jdk6_do_not_use) // duplicate

I've discovered this only impacts AdvicePrinterTask, which is why it went under the radar. AdviceSubprojectAggregationTask, which is what now prints to the console, doesn't have this behavior.
It's still worth addressing, but we should talk about how best to move forward to support your use-case with the recent changes to the plugin.


PUT on /v2/apps has a PATCH semantic.

[EDIT] Add a query parameter, that allows for proper PUT semantics which will overwrite all values.

cc @orlandohohmeier

We're happy with the name, thank you for addressing this!

or else, perhaps invert the meaning parameter: call it replaceAll and default it to false?

We went ahead and created a tag in docker hub v1.4.0-RC6.5157 then I launched is as MoM and pointed my dcos-ui to it instead of the root Marathon. Then I added the param to the API request, I can see the UI sending it but Marathon still replies with the same error.

@nLight
That is a different problem: the problem arises, if the updated appdefinition defines an ipAdress, but no portDefinition.

AppDefinition.empty has a default port
AppDefinition (L92) has a require statement not allowing ipAddress/ports at the same time

@jdef can you have a look?

also discussed with @aquamatthias that we should add support for the PATCH method so that people can migrate their patch-semantic-dependent code to the PATCH API during the 1.4 release cycle so that when we roll out 1.5 we don't break people who are using PUT to get patch-like behavior.
(The plan for 1.5 should be to, at least, change the default of partialUpdate to false)

overall i'm not super happy w/ the efficiency when partialUpdate==false because we basically go from AppDefinition to AppUpdate back to AppDefinition again. but this approach minimizes the changes required for this PR and probably doesn't actually add "too much" overhead for app update operations. if performance concerns crop up in testing we can tackle a larger refactor then

GroupDeployIntegrationTest seems to flake out when integration testing on CI but runs just fine locally


How can different items of the list be displayed on different sides of the screen?

for example, chat messages. Those that are written by me, should be on the right, and those that are written by the interlocutor should be on the left, as it is done in WhatsApp, Viber, telegram e.t.c.  This code does not work
` protected void convert(BaseViewHolder helper, AddMessage item) {
LinearLayout.LayoutParams params = new LinearLayout.LayoutParams(LinearLayout.LayoutParams.WRAP_CONTENT, LinearLayout.LayoutParams.WRAP_CONTENT);
    params.gravity = Gravity.RIGHT;
    helper.getView(R.id.cardMsg).setLayoutParams(params);

    helper.setText(R.id.tvMsg, item.getMsg()).setText(R.id.tvTimeMsg, item.getDate());

}`

Changed the layout. Root did RelativeLayout, and now works
View v = helper.getView(R.id.rootMsg);         ((RelativeLayout) v).setGravity(Gravity.RIGHT);


fix: move PrivateAttr import to come from pydantic.v1

Description of change

Importing from pydantic.v1.fields is broken in newer pydantic
related https://github.com/home-assistant/core/pull/119430#issuecomment-2161718253

Summary by CodeRabbit

Chores

Updated import statements for improved code maintainability.

I think we have to wait for https://github.com/pydantic/pydantic/pull/9660

superceeded by #94


Github changed their SSH keys

panic: ssh: handshake failed: knownhosts: key mismatch

goroutine 1 [running]:
main.main()
        /home/runner/work/gimletd/gimletd/cmd/main.go:80 +0xd34

We must push a new image as we bake in the known_hosts file.

V0.5.6 solved it


Extend parameter annotatedFor on GET /mappings

We need some additional values for parameter annotatedFor on GET /mappings:

any: has any kind of annotation
none: has no annotations at all
negative operator with !, e.g. !assessing: does not have annotations with that motivation

Required for https://github.com/gbv/cocoda/issues/605.

Unfortunately, there are big performance issues with the new negative assertions (none and !xyz) because it always has to go through the whole result set. There are actually two issues:

Sorting the results takes very long. I was able to mitigate this by moving the sorting process to a different place in the query pipeline, so it's not a problem.
Counting the total results of the query is actually the bigger issue for the above additions. With a big result set, it takes 30+ seconds to count the results because it has to load everything from the drive.

My current workaround for 2 is to skip counting the values and return an unreasonably big number for X-Total-Count (like 9 999 999). Not returning any total count breaks our client applications (and I couldn't find a convention to say "there are more values, but we don't know how many"), and as far as I can see, there is no disadvantage to this except that it's a fake value. I think if this is documented properly, it should be okay.
@nichtich Do you have an opinion on this?

I was able to find a different solution for counting the total results for negative assertions for annotatedFor: Count the results for the same query without annotatedFor, then subtract the results from the same query but with opposite annotatedFor. The code changes for this were a little difficult, but it seems to work very well. Closing this issue now!


Fails to build - A problem occurred starting process 'command 'launch4jc''

I get a fail at step 2:
gradlew shadowJar

https://scans.gradle.com/s/sc2a7tvd6dz7m
gradlew dist

https://gradle.com/s/dl2g3s572yz2s
Operating System: Linux Mint 19
Kernel: Linux 4.15.0-20-generic
Architecture: x86-64
wkhtmltopdf 0.12.4

gradlew dist
Same as gradlew shadowJar but additionally creates windows exe launchers in build/libs for gui and console mode. This task needs the Launch4j binary in the PATH.

gradlew dist Same as gradlew shadowJar but additionally creates windows exe launchers in build/libs for gui and console mode. This task needs the Launch4j binary in the PATH.

tried upgrading to 1.8 also can't progress further..


dropping items behavior is too harsh

Dropping an item permanently removes it from the game, which is not explained until you perform the action. Either change it so it can be picked up again, or have a confirmation/warning.

Not sure if this should be the former or the latter, as I haven't fully worked out item permanence/importance yet.

For now, it's easier to just require confirmation, so I added that.


Compilation of Zero dash problems: https://pastebin.com/4MiDhpP4

All fixed. The only one which isn't actually a problem is the one about mirror temple a-01, because you don't need to dash to move the swap block, you can just take the bubble directly up.


New attempt at implementing export_cache fixture

Based on #29
These are improvements on top of the initial export_cache fixtures that were written by me and @PhilippRue to be able to run aiida-fleur and aiida-kkr workflow tests with both aiida v1 and v2.
Notable changes from #29

load_cache, export_cache and hash_code_by_entrypoint are cross-compatible between AiiDA versions 1.X and 2.X
Cache path handling changes

If the path to with_export_cache etc. is relative, it is either interpreted relative to the default cache dir (see below) or if not specified to Path(request.fspath.dirname) / 'caches', i.e. in the same directory as the test file
if the path is absolute nothing changes

Added flag --export-cache-allow-migration flag, which attempts to migrate archives if they are not compatible
Added options to config file

default_data_dir: if specified caches with relative paths are placed here
calcjob_ignored_inputs/calcjob_ignored_attributes: Additional things to exclude from calcjob hashes. Between v1 and v2 for example the metadata option environment_variables_double_quotes has to be ignored
node_ignored_attributes: dict, where data nodes (specified by entry point) can ignore additional attributes

Fixed bug in monkeypatching Calcjob nodes. Here the version was not added to the ignored attributes by mistake

The ignoring of things like environment_variables_double_quotes is not ideal, but I think being explicit with this is better for now.

@janssenhenning are you still planning to complete this PR?

@ltalirz Yes I think this would be useful to finish up, since we already use it with a lot of success for veryfying that our plugins work with aiida 1.0 and 2.0
I cleaned the formatting up a bit and added some explanations to the now quite convoluted mokeypatching code
What I'm not quite sure on is how and whether I could write more fine-grained tests for these fixtures
As with #57 I have no idea what to do about the test failures

Cheers! I'll try to find the time to have a look at this over the weekend

Superseded by #67


PHP 8 version isn't support

I try to install your package in the project where I use php 8 version.
I got a following error:
 [InvalidArgumentException]
  Package muhdfaiz/laravel-tail-db has a PHP requirement incompatible with your PHP version, PHP extensions and Composer version:
    - muhdfaiz/laravel-tail-db requires php ^7.0 which does not match your installed version 8.0.8.
    - muhdfaiz/laravel-tail-db requires react/socket ^1.6 but it is not present.
    - muhdfaiz/laravel-tail-db requires react/event-loop ^1.1 but it is not present.

I made a Pull Request to solve this problem https://github.com/muhdfaiz/laravel-tail-db/pull/1
Could you please to approve that Pull Request or solve this problem by yourself?

I already merged your pull request. Thank you for your contribution.
I already changed to support PHP8 but haven't push and release yet because want to complete the desktop app.
The desktop app I think I will release 1 or 2 weeks from now.


Asset page does not show "creator reward"

For example, on https://stakes.social/0x44d871aebF0126Bf646753E2C976Aa7e68A66c15, for "Your Rewards", it shows the reward I got when I incorrectly shortly staked my own project. It doesn't show the "creator reward".

Information for creators is required on the asset pages. These sections are irrelevant to the normal staking user, so it's best to show them only to users who have the Creator Tokens.

Information for creators is required on the asset pages. These sections are irrelevant to the normal staking user, so it's best to show them only to users who have the Creator Tokens.

Is there a way to check who owns creator tokens of a property through GraphQL at the moment?

Is there a way to check who owns creator tokens of a property through GraphQL at the moment?

@Cold-A-Muse Unfortunately, the GraphQL doesn't record token balances, so it can't be used as a conditional expression. But we can use the useBalanceOfProperty hook to check the balance. Use it like this:
https://github.com/dev-protocol/stakes.social/blob/89fbc079b9234201c2f03f1cb88d06516cbf9d71/packages/web/src/components/molecules/AssetItemOnList/index.tsx#L98
https://github.com/dev-protocol/stakes.social/blob/89fbc079b9234201c2f03f1cb88d06516cbf9d71/packages/web/src/components/molecules/AssetItemOnList/index.tsx#L107
Is this useful for you?

Please keep it open.


ubootQemuRiscv64Smode: Fix build with binutils 2.38

Description of changes

Binutils 2.38 defaults to ISA spec version 20191213 which separates the CSR r/w and fence.i instructions from the I extension into standalone extensions. This PR adds a patch to enable them.
arch/riscv/cpu/start.S: Assembler messages:
arch/riscv/cpu/start.S:65: Error: unrecognized opcode `csrw stvec,t0'
arch/riscv/cpu/start.S:72: Error: unrecognized opcode `csrw sie,zero'
arch/riscv/cpu/start.S:346: Error: unrecognized opcode `csrw stvec,t0'

Things done

Built on platform(s)

[x] cross riscv64-linux from x86_64-linux

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] 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

[ ] 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/)
22.05 Release Notes (or backporting 21.11 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
[ ] (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes

[x] Fits CONTRIBUTING.md.

That's strange. This should not be required as we have bumped gcc to 11 for riscv. Would you please try building again without the patch.

That's strange. This should not be required as we have bumped gcc to 11 for riscv. Would you please try building again without the patch.

I just tried building pkgsCross.riscv64.ubootQemuRiscv64Smode on master and encountered the same error. GCC 11 is required to understand the extensions, but you still need the patch to enable them in march.


10.14: recognise Xcode 10.0 & add pkg-config files.

[x] Have you followed the guidelines in our Contributing document?
[x] Have you checked to ensure there aren't other open Pull Requests for the same change?
[x] Have you added an explanation of what your changes do and why you'd like us to include them?
[ ] Have you written new tests for your changes? Here's an example.
[ ] Have you successfully run brew style with your changes locally?
[ ] Have you successfully run brew tests with your changes locally?

Still a bit of a WIP because I assume we want to do something less completely silly than when 10001 👀.

🤔 The clang I'm seeing from a CLT-only install doesn't return a valid value for DevelopmentTools.clang_version; regex isn't matching, so it returns Version::NULL. We'll need to update the regex to allow more than one digit in the major version:
diff --git a/Library/Homebrew/development_tools.rb b/Library/Homebrew/development_tools.rb
index 1f0d77d148..2ee5169476 100644
--- a/Library/Homebrew/development_tools.rb
+++ b/Library/Homebrew/development_tools.rb
@@ -63,7 +63,7 @@ class DevelopmentTools
     def clang_version
       @clang_version ||= begin
         if (path = locate("clang")) &&
-           build_version = `#{path} --version`[/(?:clang|LLVM) version (\d\.\d)/, 1]
+           build_version = `#{path} --version`[/(?:clang|LLVM) version (\d+\.\d)/, 1]
           Version.new build_version
         else
           Version::NULL

The clang I'm seeing from a CLT-only install doesn't return a valid value for

Hey Misty! Thanks for the review here.
I'm running semi-blind on this at the moment because my developer program membership with Apple is about to expire and, well, I can't afford to renew it at the moment, so I haven't tried to spin up a box yet because I don't want to get stuck with a VM I'll only receive updates for for another week or so.
If you have more direct access & there's anything that'd be easier for you to handle please feel free to say and I'll happily surrender it to you; don't want to needlessly eat up your time working through me if you've a limited amount of it or anything.

Nice! Thanks for the help 🙇.

Thanks everyone ❤

I haven't tried to spin up a box yet because I don't want to get stuck with a VM I'll only receive updates for for another week or so.

As a minor update I've set up a box locally now, so for as long as it keeps receiving updates & Apple doesn't notice my developer membership is about to expire I'll hopefully be of some use on 10.14 stuff.


Beautify JavaScript breaks custom loop statement

Before
// Use a loop to both navigate and attack.
loop {
    this.moveRight();
    this.moveUp();
}

After
loop;
{
    this.moveRight();
    this.moveUp();
}

We are going to just migrate all levels to while true, so we don't really need to fix this.


Language.AnalyzeText and Language.Conversations migration to Typespec

Data Plane API - Pull Request

API Info: The Basics
Most of the information about your service should be captured in the issue that serves as your API Spec engagement record.

Link to API Spec engagement record issue:

Is this review for (select one):

[ ] a private preview
[x] a public preview
[x] GA release

Change Scope
This Change is to migrate the Language.AnalyzeText and Language.Conversations APIs to typespec
This section will help us focus on the specific parts of your API that are new or have been modified. Please share a link to the design document for the new APIs, a link to the previous API Spec document (if applicable), and the root paths that have been updated.

Design Document:
Previous API Spec Doc:
Updated paths:

Viewing API changes
For convenient view of the API changes made by this PR, refer to the URLs provided in the table
in the Generated ApiView comment added to this PR. You can use ApiView to show API versions diff.
Suppressing failures
If one or multiple validation error/warning suppression(s) is detected in your PR, please follow the
Swagger-Suppression-Process
to get approval.
❔Got questions? Need additional info?? We are here to help!

 Contact us!
The Azure API Review Board is dedicated to helping you create amazing APIs. You can read about our mission and learn more about our process on our wiki.

💬 Teams Channel
💌 email

Click here for links to tools, specs, guidelines & other good stuff
Tooling

Open API validation tools were run on this PR. Go here to see how to fix errors
Spectral Linting
Open API Hub

Guidelines & Specifications

Azure REST API Guidelines
OpenAPI Style Guidelines
Azure Breaking Change Policy

Helpful Links

Azure DevTools Wiki

Checks stuck in `queued` state?
If the PR CI checks appear to be stuck in `queued` state, please add a comment with contents `/azp run`.
This should result in a new comment denoting a `PR validation pipeline` has started and the checks should be updated after few minutes.

fix https://github.com/Azure/azure-rest-api-specs/issues/27554

/azp run

/azp run

/azp run

Data plane api does not require ARM review

/azp run

/azp run

@tjprescott  these are enum value that are self explanatory, do we really need to go over these value to put a text that is same as the value??

@tjprescott these are enum value that are self explanatory, do we really need to go over these value to put a text that is same as the value??

@mikaelsitruk @quentinRobinson there are still 955 suppressions in the PR, 890 of which are for "documentation-required". By what process were these suppressions reviewed and approved? Almost none of them provide a justification, and in many cases the justification string is actually a restatement of the error message.

We need to get CI checks passing, starting with TypeSpec Validation. There are instructions in the logs or please refer to this documentation: https://github.com/Azure/azure-rest-api-specs/blob/main/documentation/ci-fix.md#typespec-validation

We have added docs for all cases except for enum values which are self explanatory.
There are still 3 remaining files which we are working on.
key.phrase.tsp: 12 (update in progress)
sentiment.analysis.tsp: 42 (update in progress)
summarization.tsp: 16 (update in progress)
Going forward, we will continue to have documentation-required suppressions for enums.
analyze text: : 646 enum suppressions

pii.entity.recognition.tsp: 347 (all enums)
entity.recognition.tsp: 95 (all enums)
common.models.tsp: 106 (all enums)
custom.text.tsp: 5 (all enums)
healthcare.tsp: 93(All enums)
Total #: 646

analyze conversations: : 257 enum suppressions

main.tsp : 202 (all enums)
common.tsp: 55 (All enums)

@tjprescott, @johanste do you have any suggestions on how to disable/manage these suppressions and merge the PR.


Make cli flashier

When we first made Kestrel in the halcyon days of 2014, npm init style prompts were cool beyond cool.
 Kestrel is but a simple tool, yet it must remain relevant!
We're currently using promzard but we should investigate how we can add more colors to make the default values easier to read, add dropdown support for choosing things like prod vs staging environments and maybe even tab completion to make deploying to sub-directories easier.

Use https://github.com/SBoudrias/Inquirer.js instead of promzard

cli is now very flashy as of 1.2.1
https://github.com/mhkeller/kestrel-cli/commit/159921ce3d6b49cb15a6148422bba93db143792e
https://github.com/mhkeller/kestrel-cli/commit/494b33248b213f5845b2be62ba1e70a7c2babcee
https://github.com/mhkeller/kestrel-cli/commit/d862417f3737d3bab8efeb9878f55b3319ade369
https://github.com/mhkeller/kestrel-cli/commit/bd95b1a075157768972a3b63c8147d94d3ee084f
https://github.com/mhkeller/kestrel-cli/commit/7c8dc857b736411d06ee1ba7825eb9e7b7eaacdd
https://github.com/mhkeller/kestrel-cli/commit/7c8dc857b736411d06ee1ba7825eb9e7b7eaacdd
https://github.com/mhkeller/kestrel-cli/commit/7ab3a0549d5a757787554d70823966608524ee16
https://github.com/mhkeller/kestrel-cli/commit/08964877c73da61ac20b0f135737fbec831a5c6c
https://github.com/mhkeller/kestrel-cli/commit/03c07b54020e9af40b12929959c5d919920de307


Random seed setting

Hi, inoryy.
How did you set your random seed, as shown in your learning curves?

Hello, the learning curves are shown for different (non-fixed) random seeds, there was no need to set them manually.
If you want to do it yourself, add these lines somewhere before graph vars are initialized:
tf.set_random_seed(1234)
np.random.seed(1234)

However note that due to how CUDA works internally you might still experience non-deterministic behavior.

Thanks!


cross build error

Hi
I encountered some errors when cross build arm nn from X86 to ARM64 machine.
a. When I followed the instruction in the  using protobuf 3.5.1. I always havePROTOC src/caffe/proto/caffe.proto
CXX .build_release/src/caffe/proto/caffe.pb.cc
In file included from .build_release/src/caffe/proto/caffe.pb.cc:4:0:
.build_release/src/caffe/proto/caffe.pb.h:12:2: error: #error This file was generated by a newer version of protoc.
I tried and there is no conflict of protoc version as discussed in the website.
b. When I changed to protoc-3.7.0. Then I can build every step OK unti the last step to build armnn
libarmnnCaffeParser.so: undefined reference to `google::protobuf:*
Any help on how to solve this?
Regards
Yao

Hi @pure-water,
a. This will happen if the version of protoc used in the build of caffe is different from the version of protobuf declared in the headers being used while building.
b. This will happen if the build system cannot successfully link to libprotobuf.so
In both case the most common reason while cross-compiling is that the build system is incorrectly using HOST headers/libraries instead of using TARGET headers/libraries.
If you set the VERBOSE environment variable to 1 while building, you will see the full compiler and/or linker command of the step that failed. Then we can figure out why it is failing. Ie. where you build armnn with make, instead use:
VERBOSE=1 make
Hope that helps,
Matthew

Hi @pure-water hopefully you managed to fix the problem, but if not please re-open this ticket.


Add support for confluent python lib

Description
Please include a summary of the change and specify which issue is being addressed. Additionally, provide relevant motivation and context.
Closes #1026
Type of change
Please delete options that are not relevant.

[ ] Documentation (typos, code examples, or any documentation updates)
[ ] Bug fix (a non-breaking change that resolves an issue)
[ ] New feature (a non-breaking change that adds functionality)
[ ] Breaking change (a fix or feature that would disrupt existing functionality)
[ ] This change requires a documentation update

Checklist

[ ] My code adheres to the style guidelines of this project (scripts/lint.sh shows no errors)
[ ] I have conducted a self-review of my own code
[ ] I have made the necessary changes to the documentation
[ ] My changes do not generate any new warnings
[ ] I have added tests to validate the effectiveness of my fix or the functionality of my new feature
[ ] Both new and existing unit tests pass successfully on my local environment by running scripts/test-cov.sh
[ ] I have ensured that static analysis tests are passing by running scripts/static-anaylysis.sh
[ ] I have included code examples to illustrate the modifications

Looks great, but I can take a look close only this saturday
Btw, if we want to release it as 0.4.0, we should remove required deprecated notices


Create falco-in-the-open.md Chinese documents

Create falco-in-the-open.md Chinese documents, Easy for readers to read.
Signed-off-by: qinzhiben11<EMAIL_ADDRESS>

[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by: qinzhiben11
Once this PR has been reviewed and has the lgtm label, please assign issif for approval by writing /assign @issif in a comment. For more information see:The Kubernetes Code Review Process.
The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

OWNERS

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

hello @mstemm @vjjmiras :
我刚刚提交了一份中文翻译文档，麻烦你帮忙审核一下，谢谢!!

hello @mstemm @vjjmiras :
I have just submitted a Chinese translation document. Please check it for me. Thank you !!!

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.
If this issue is safe to close now please do so with /close.
Provide feedback via https://github.com/falcosecurity/community.
/lifecycle stale

Stale issues rot after 30d of inactivity.
Mark the issue as fresh with /remove-lifecycle rotten.
Rotten issues close after an additional 30d of inactivity.
If this issue is safe to close now please do so with /close.
Provide feedback via https://github.com/falcosecurity/community.
/lifecycle rotten

Rotten issues close after 30d of inactivity.
Reopen the issue with /reopen.
Mark the issue as fresh with /remove-lifecycle rotten.
Provide feedback via https://github.com/falcosecurity/community.
/close

@poiana: Closed this PR.

In response to this:

Rotten issues close after 30d of inactivity.
Reopen the issue with /reopen.
Mark the issue as fresh with /remove-lifecycle rotten.
Provide feedback via https://github.com/falcosecurity/community.
/close

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.


'_debugLifecycleState == _StateLifecycle.created': is not true.

Steps to Reproduce

...
...
...

Logs

It looks like you may have forgotten to fill out the body of this issue.  Without more information, this isn't really actionable.
Please feel free to re-open (or open a new issue) with more details, in particular the revision of Flutter you're using and a small sample program or test that demonstrates the failure you're seeing.


Error requests unstable_setRequestLocale at app/[locale]/page.tsx

Description
in 3.0 rc
While root page is client component, and root layout uses `unstable_setRequestLocale()`,
This error occurs in root page.

Error occurred prerendering page "/en". Read more: https://nextjs.org/docs/messages/prerender-error

Error: Usage of next-intl APIs in Server Components currently opts into dynamic rendering. This limitation will eventually be lifted, but as a stopgap solution, you can use the `unstable_setRequestLocale` API to enable static rendering, see https://next-intl-docs.vercel.app/docs/getting-started/app-router-server-components#static-rendering

// app/[locale]/layout.tsx

export function generateStaticParams() {
  const locales = ['en', 'ko', 'ja'];
  return locales.map(locale => ({ locale }));
}

export default function RootLayout({ children, params }: LayoutProps<{ locale: string }>) {
  const locale = useLocale();

  // Show a 404 error if the user requests an unknown locale
  if (params.locale !== locale) notFound();

  unstable_setRequestLocale(locale);

  return (
    <html> ... {children} </html>
  )

// app/[locale]/page.tsx

'use client';

export default function RootPage() {
  // doing some token check with useEffect()

  return <SomeEmptyPage />
}

Mandatory reproduction URL (CodeSandbox or GitHub repository)
https://codesandbox.io/p/sandbox/next-intl-bug-template-app-forked-23pc3x
Reproduction description
Steps to reproduce:

Open reproduction
Build it

Expected behaviour
page with client component should pass.

Fixed as part of https://github.com/amannn/next-intl/commit/5c1bac3c4d9914f67e7b0b9dea3ddd5c3cd44623


Fix e2e script/configuration

Reference issue: https://github.com/AngularClass/angular2-webpack-starter/issues/264
Once solution known, put back that or something similar: ``"e2e": "ts-node node_modules/.bin/protractor",`

Current e2e configuration works


Using className prop overrides defaults

When I pass in className prop to both expansionPanelSummaryProps and expansionPanelDetailsProps, it overrides default styles and breaks the layout of the tree even when I set a simple backgroundColor.
It might be a desired behavior, but probably should be mentioned somewhere.

It should technically only override whatever you are setting inside the class name.
Example: Changing the background color
background: {
  "&:hover": {
    backgroundColor: 'aliceblue'
  },
  backgroundColor: 'aliceblue',
}

// ...

<MuiTreeView
  expansionPanelSummaryProps={{ className: classes.background }}
  listItemProps={{ className: classes.background }}
  tree={tree}
/>

If you are seeing something weird, let me know and I'll try to investigate.

We should probably add a section in the README with examples (e.g., changing the background color) :)

@helfi92 your example above overrides your default styles for ExpansionPanelSummary:
panelSummary: {
    padding: 0,
    marginLeft: theme.spacing.unit,
}

if I do something like <MuiTreeView expansionPanelDetailsProps={{ className: classes.details }} ... it'll override the styles below and all subnodes will be inline instead of block elements
panelDetails: {
    padding: 0,
    display: 'block',
}

Ah, you're totally right. I will send a fix.

Fixed in v1.1.1.

@dimon82 Could you confirm it's working for you now?

Closing as fixed in  v1.1.1. Please re-open if you are still experiencing the issue.


Remove Authenticate helper and Identity class

https://www.pivotaltracker.com/story/show/142487673

:+1:


ERROR: unpack requires a buffer of 2 bytes (HBC Version: 89)

Hi, I am trying to to reverse an APK which contains HBC Version 89, however I get the following error while it tries to unpack the instruction.hasm:
Traceback (most recent call last):
File "runpy.py", line 193, in run_module_as_main
File "runpy.py", line 85, in run_code
File "D:\Programs\Python-3.6.8\Scripts\hbctool.exe_main.py", line 7, in
File "d:\programs\python-3.6.8\lib\site-packages\hbctool_init.py", line 61, in main
disasm(args['<HBC_FILE>'], args['<HASM_PATH>'])
File "d:\programs\python-3.6.8\lib\site-packages\hbctool_init_.py", line 41, in disasm
hasm.dump(hbco, hasmpath)
File "d:\programs\python-3.6.8\lib\site-packages\hbctool\hasm.py", line 67, in dump
write_func(f, hbc.getFunction(i), i, hbc)
File "d:\programs\python-3.6.8\lib\site-packages\hbctool\hbc\hbc89_init_.py", line 59, in getFunction
insts = disassemble(bc)
File "d:\programs\python-3.6.8\lib\site-packages\hbctool\hbc\hbc89\translator.py", line 43, in disassemble
val = conv_to(bc[i:i+size])
File "d:\programs\python-3.6.8\lib\site-packages\hbctool\util.py", line 300, in to_uint16
return unpack("<H", bytes(buf[:2]))[0]
struct.error: unpack requires a buffer of 2 bytes

Same problem here, altough in my apk it's in "to_uint8"

Hi, I am trying to to reverse an APK which contains HBC Version 89, however I get the following error while it tries to unpack the instruction.hasm:
Traceback (most recent call last): File "runpy.py", line 193, in run_module_as_main File "runpy.py", line 85, in run_code File "D:\Programs\Python-3.6.8\Scripts\hbctool.exe__main.py", line 7, in File "d:\programs\python-3.6.8\lib\site-packages\hbctool__init__.py", line 61, in main disasm(args['<HBC_FILE>'], args['<HASM_PATH>']) File "d:\programs\python-3.6.8\lib\site-packages\hbctool__init__.py", line 41, in disasm hasm.dump(hbco, hasmpath) File "d:\programs\python-3.6.8\lib\site-packages\hbctool\hasm.py", line 67, in dump write_func(f, hbc.getFunction(i), i, hbc) File "d:\programs\python-3.6.8\lib\site-packages\hbctool\hbc\hbc89__init__.py", line 59, in getFunction insts = disassemble(bc) File "d:\programs\python-3.6.8\lib\site-packages\hbctool\hbc\hbc89\translator.py", line 43, in disassemble val = conv_to(bc[i:i+size]) File "d:\programs\python-3.6.8\lib\site-packages\hbctool\util.py", line 300, in to_uint16 return unpack("<H", bytes(buf[:2]))[0] struct.error: unpack requires a buffer of 2 bytes

Having the same issue here.
Did anyone find a fix for it?


Disabled products are not removed from bundles

Bug report
framework Version 1.1.2
Steps to reproduce
It is important to provide a set of clear steps to reproduce this bug.If relevant please include code samples.

Add disabled product to bundle
Add select disabled product in bundle and add bundle to cart

Expected result
Disabled product should not be visible on the Bundle's product page. And it definitely should not be added to cart.
NOTE: If all of the products options in a bundle group were to be disabled, then this would break the bundle, as a required field cannot be completed. This should probably cause the bundle itself to be set as out of stock or disabled.
Actual result
Disabled product is still visible on Bundle's product page, and can be added to cart.

This bug is only partially fixed, and needs to be re-opened. The following portion has not been addressed:

If all of the products options in a required group were to be disabled, then this would break the bundle, as a required field cannot be completed. This should probably cause the bundle itself to be set as out of stock or disabled.

Currently if a required field in a bundle group has all of the options set to disabled I can still add the bundle to my cart, it will just exclude the required sub-product. This is OK for an optional group, but not for a required group it. By definition this bundle is not in a saleable state anymore.
Honestly I do not see any great solution to this problem other than preventing the bundle from being added to cart. The product page should still display the required field, but no options should be listed, which will prevent it from being added to cart.

There, I made a tweak so that the required field will still appear - but with no options to choose. Making it impossible to add to cart.


Sometimes it is not desirable to pull new tool images

In a repair tool development environment, sometimes I build a new docker image after making some changes to the tool, and then run Cerberus to test the tool on some benchmark.
However, the current Cerberus behavior is to always pull an image, even if an image is available locally. Since it is time consuming to push every test image of tool to docker hub, the remote image may be outdated in such a development workflow. The current behavior of Cerberus would then force to use the (remote) older image instead, but the desired behavior is to use the (local) new image.

thanks for reporting the issue, I have fixed the workflow in 5b9c96a to only pull the latest when a certain flag is provided at runtime, default behaviour would be to use the local image.


Modern conda-forge meta.yaml

Checklist

[x] Used a personal fork of the feedstock to propose changes
[ ] Bumped the build number (if the version is unchanged)
[x] Reset the build number to 0 (if the version changed)
[x] Re-rendered with the latest conda-smithy (Use the phrase @conda-forge-admin, please rerender in a comment in this PR for automated rerendering)
[x] Ensured the license file is being packaged.

Support a modern conda-forge meta.yaml with versions stored in fermipy github tags/releases.

@conda-forge-admin, please rerun bot

@conda-forge-admin, please restart ci


Make sure CorsConfigurationController is following the "How To Write Controllers" guide

Currently the CorsConfigurationController is not fully following the How-To-Write-Controllers guide. This needs to be fixed.

Fixed in #558.


[FLOC-1835] Add Boto debug config option.

Fixes https://clusterhq.atlassian.net/browse/FLOC-1835

Thanks @myechuri
This all looks good to me.
I guess I prefer the zope interface approach that we used in the OpenStack version, rather than wrapping every connection method, but it should do the job.
We quite liked that the Interface ensured that we knew exactly how we were calling the cinder and nova APIs.
I had some questions about the Field types being unicode or bytes but i see the same is true in the OpenStack logging branch, so fine.
Some of the docstrings use ` rather than `` around python and code references.
And finally, I can't see the results of the logging because I don't think any of the failing AWS builders have attempted to test this branch.
Please address or answer the inline comments above, ensure that the logged messages are actually visible in the failing buildbot results and then merge when you're happy with the build results.

And finally, I can't see the results of the logging because I don't think any of the failing AWS builders have attempted to test this branch.

The test changes in test_ebs.py were not included in the build results, my bad. Let me do another push to get new test results. Thanks for pointing out!

I guess I prefer the zope interface approach that we used in the OpenStack version, rather than wrapping every connection method, but it should do the job.
We quite liked that the Interface ensured that we knew exactly how we were calling the cinder and nova APIs.

i started off initially with interface approach (since i was following OpenStack pattern), but felt that the levels of indirection were too many. i now understand the reason for the indirection (what you mentioned above). If that is the preferred way, happy to move in that direction in the follow up branch where i will work on tracing IBlockDeviceAPI parameter values. Thanks!

Verified latest run's test log has the Eliot output (http://build.clusterhq.com/builders/flocker%2Ffunctional%2Faws%2Fcentos-7%2Fstorage-driver/builds/17/steps/trial/logs/test.log):
2015-05-22 22:37:26+0000 [-] --> flocker.node.agents.functional.test_ebs.EBSBlockDeviceAPIInterfaceTests.test_boto_ec2response_error <--
2015-05-22 22:37:27+0000 [-] ELIOT: {'code': u'MissingParameter',
	 'message': u'The request must contain the parameter size/snapshot',
	 u'message_type': u'boto:boto_ec2response_error',
	 'request_id': u'eb9cbfcb-a5ac-4a0f-b3bc-60f343361df8',
	 u'task_level': [1],
	 u'task_uuid': u'61141c50-0473-4144-a9f5-17387f495ff0',
	 u'timestamp':<PHONE_NUMBER>.007681}
2015-05-22 22:37:27+0000 [-] ELIOT: {'code': u'InvalidZone.NotFound',
	 'message': u"The zone 'invalid_zone' does not exist.",
	 u'message_type': u'boto:boto_ec2response_error',
	 'request_id': u'381b94d2-90a8-4f76-a24f-dc758ef9d19a',
	 u'task_level': [2],
	 u'task_uuid': u'61141c50-0473-4144-a9f5-17387f495ff0',
	 u'timestamp':<PHONE_NUMBER>.024903}


[Request] Cut a new release?

Hey there, it's been almost five months since the last release. Any chance of cutting a new version sometime soon?
One particular fix that might be of interest to lots of folks is #263. Gmail proxies all external links in emails through an internal domain before redirecting, which has the unfortunate effect of making them open as new Nativefier windows. Without #263, links in some HTML emails simply can't be opened in an external browser.

Yes please!

@lostfictions @danimalweb done 😃! Nativefier 7.1.0 has a bunch of fixes since 7.0.1 including my own #263. Thanks for the feedback!


Hotkeys not working on iPad

I am unable to use this plugin to create new PDFs on my iPad as the hotkey doesn't work at all, not from the command pallet or by pressing the keys on my iPad keyboard.
I have created a brand new vault with this being the old plugin and I am able to reproduce.
I have no clue why this is happening.

That's quite odd, do none of them work, or just the one you have set up? Debugging right now I've seen the command only works if you are focusing on a markdown view (probably should fix that!) I think that's the issue you are facing, Can you confirm the issue doesn't happen if you are on a markdown file, just to confirm it's the same bug?

That is the same bug. It doesn't work when there is no md file open. If a PDF is open or no file at all, it doesn't work at all.

It works for me.
By the way, tip for iPad users: I really recommend to install and use PDFexpert, as it will edit the PDF file on-site instead of creating a new file (as most apps do, e.g. notability). Install it, add it to your 'apps to share to', and the button of this package becomes only one click away form being able to freely hand-draw on a PDF directly on the iOS filesystem. If you use obsidian sync, it then syncs with all your other devices instantaneously.

That is the same bug. It doesn't work when there is no md file open. If a PDF is open or no file at all, it doesn't work at all.

I go to Setting /Coreplugin / CommandPalette and pin those 4 commands,  then I open a new note  and while in edit mode, I swipe down to open command palette, and I can see those 4 commands on top.  It works this way.

By the way, tip for iPad users: I really recommend to install and use PDFexpert, as it will edit the PDF file on-site instead of creating a new file (as most apps do, e.g. notability).

It seems to create a new file in a hidden directory and I could find a way to delete.  If you go to PDFExpert / Recent files / and click "three dots" and "more" to see more info of those files.  it will show that they are copied in "shared documents" folder and I couldn't find a way to delete those.


add reuse-values args for diff apply and sync

Signed-off-by: yxxhero<EMAIL_ADDRESS>fix: https://github.com/helmfile/helmfile/issues/221
add reuse-values args for diff apply and sync

@yxxhero Big thanks, I tested this branch locally and it worked as expected.

@mumoshu


Added support for using override_* decorators on test classes

Currently, override_flag, override_switch, and override_sample only work as decorators on methods.
This PR makes it so:
@override_flag('my-flag', active=True)
class MyTestCase(unittest.TestCase)
   def first_test(self):
       ...
   def second_test(self):
       ...

is equivalent to:
class MyTestCase(unittest.TestCase)
   @override_flag('my-flag', active=True)
   def first_test(self):
       ...
   @override_flag('my-flag', active=True)
   def second_test(self):
       ...

Thanks!

Thanks!! When do you think we'll see these in a release?
Last time I checked, the testutils.override_* decorators haven't yet been included in a release so most people can't take advantage of them :disappointed:


New Sinope manufacturer cluster attributes

This add many new Sinope manufacturer attributs

Codecov Report

Merging #1380 (acdaa2b) into dev (f9e25f4) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##              dev    #1380   +/-   ##
=======================================
  Coverage   81.06%   81.06%
=======================================
  Files         218      218
  Lines        6093     6093
=======================================
  Hits         4939     4939
  Misses       1154     1154

Impacted Files
Coverage Δ

zhaquirks/sinope/thermostat.py
100.00% <ø> (ø)

Continue to review full report at Codecov.

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

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 81.06%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
4939

Relevant Lines:
6093

💛  - Coveralls


"cargo test" fails on mageia linux v7 x86-64

I am getting this:
thread 'test_who::test_short' panicked at 'assertion failed: `(left == right)`
  left: `"shlomif  tty1         2019-02-06 17:03\nshlomif  pts/0        2019-02-07 22:31 (:0)\nshlomif  pts/2        2019-02-07 22:31 (:0)\nshlomif  pts/11       2019-02-07 22:45 (:0)\nshlomif  pts/5        2019-02-07 22:32 (:0)\nshlomif  pts/9        2019-02-07 22:41 (:0)\nshlomif  pts/12       2019-02-07 22:45 (:0)\nshlomif  pts/10       2019-02-07 22:45 (:0)"`,
 right: `"shlomif  tty1         2019-02-06 17:03\nshlomif  pts/0        2019-02-07 22:31 (:0)\nshlomif  pts/1        2019-02-06 17:05 (:0)\nshlomif  pts/2        2019-02-07 22:31 (:0)\nshlomif  pts/6        2019-02-06 17:22 (:0)\nshlomif  pts/7        2019-02-06 17:22 (:0)\nshlomif  pts/11       2019-02-07 22:45 (:0)\nshlomif  pts/5        2019-02-07 22:32 (:0)\nshlomif  pts/9        2019-02-07 22:41 (:0)\nshlomif  pts/12       2019-02-07 22:45 (:0)\nshlomif  pts/10       2019-02-07 22:45 (:0)"`', tests/common/util.rs:95:9

failures:
    test_du::test_du_basics_subdir
    test_du::test_du_d_flag
    test_du::test_du_hard_link
    test_du::test_du_soft_link
    test_who::test_all
    test_who::test_count
    test_who::test_heading
    test_who::test_short

test result: FAILED. 573 passed; 8 failed; 12 ignored; 0 measured; 0 filtered out

error: test failed, to rerun pass '--test tests'
[shlomif@telaviv1 coreutils]$ rpm -q rust
rust-1.32.0-1.mga7
[shlomif@telaviv1 coreutils]$

Interesting.  If you have time, can you post the results of the tests?

@Arcterus : hi, see https://www.shlomifish.org/Files/files/text/rust-coreutils-test-output.txt - is that what you want?
rust-coreutils-test-output.txt

Yes, thank you, that’s very helpful.  What filesystems are you using for the different distributions?

Also, if it’s not too much trouble, can you use GNU du for the commands that failed?

@Arcterus : I use ext4 on mageia and fedora.

@Arcterus:
[shlomif@telaviv1 coreutils]$ cd tests/fixtures/du
[shlomif@telaviv1 du]$ ls
subdir  words.txt
[shlomif@telaviv1 du]$ du subdir/deeper
8.0K    subdir/deeper
[shlomif@telaviv1 du]$ \du -a subdir/deeper
4       subdir/deeper/words.txt
8       subdir/deeper
[shlomif@telaviv1 du]$ \du -a subdir/links
4       subdir/links/subwords2.txt
8       subdir/links/subwords.txt
16      subdir/links
[shlomif@telaviv1 du]$

This is basically #1187, but with stat also being an issue (at least in the log posted).

This is still an issue.

Tests pass on fedora x86-64 v35 - I no longer use mageia - https://www.shlomifish.org/meta/FAQ/why_did_you_quit_mageia.xhtml


Cachegroup fallbacks deprecation

What does this PR (Pull Request) do?

[x] This PR is not related to any Issue

Adds a deprecation notice to the cachegroup_fallbacks TO API endpoint documentation, as discussed in the dev mailing list. Also added missing documentation for the fallbacks property of API request/response payloads to/from the cachegroups and cachegroups/{{ID}} endpoints. Plus I did a little cleaning up of unnamed footnotes and unnecessary escape sequences.
Which Traffic Control components are affected by this PR?

Documentation

What is the best way to verify this PR?
Build and read the documentation.
The following criteria are ALL met by this PR

[x] Tests are unnecessary
[x] This PR includes documentation
[x] This PR includes an update to CHANGELOG.md
[x] This PR includes any and all required license headers
[x] This PR does not include a database migration
[x] This PR DOES NOT FIX A SERIOUS SECURITY VULNERABILITY

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/trafficcontrol-PR/4075/
Test PASSed.

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/trafficcontrol-PR/4403/

The cachegroup_fallbacks endpoints should have a deprecation message added to its response

done.

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/trafficcontrol-PR/4477/

retest this please

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/trafficcontrol-PR/4480/

retest this please

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/trafficcontrol-PR/4484/

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/trafficcontrol-PR/4518/

retest this please

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/trafficcontrol-PR/4521/

retest this please

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/trafficcontrol-PR/4525/

retest this please

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/trafficcontrol-PR/4527/


Fix username being null in carbon context for event handlers hit on org creation flow

$Subject
Related Issue

https://github.com/wso2/product-is/issues/17732

PR builder started
Link: https://github.com/wso2/product-is/actions/runs/6920287241

PR builder completed
Link: https://github.com/wso2/product-is/actions/runs/6920287241
Status: failure

PR builder started
Link: https://github.com/wso2/product-is/actions/runs/6920328380

PR builder completed
Link: https://github.com/wso2/product-is/actions/runs/6920328380
Status: success


CupertinoTabBar items label  font size can not be customizable

Hello Flutter team!
Thank you for such great framework!
Since BottomNavigationBarItem.title marked as deprecated, it is no way to customize  font size for items labels.
For BottomNavigationBar we can use unselectedFontSize and selectedFontSize, but for CupertinoTabBar a can not find a way to do this.
Flutter 1.22.2 • channel stable
Framework • revision 84f3d28555 (11 days ago) • 2020-10-15 16:26:19 -0700
Engine • revision b8752bbfff
Tools • Dart 2.10.2

I'd like to add, that the label cant be center-aligned.
I'm using a CupertinoTabBar aswell and unser some circumstances, the labels in the Bar might wrap. Using labels they are left-aligned then which is looking wrong.

It seems like that the label fontSize is 10 instead of 11 and the font weight is regular instead of FontWeight.w500


Optimize Docker file

There is an 1GB image currently. It's so big and too long time is required to start.
I'll clean waste of the image and reduce the size of it.

As same as mentioned in #21, there were two problems on executing antlr4. (Also fixed on ac04098, 3c21115)
But CI passed. It should be fixed as soon as possible.

CodeGenFileType::CGFT_ObjectFile was moved in LLVM 10.
So, I downgrade llvm 10 to 9.
https://llvm.org/doxygen/CodeGen_8h_source.html

I had planned to build LLVM libs from the sources but it's too long.

This PR will be closed because the tasks this PR working on will be completed in #28.


Made changes for intent for request

Please review the changes made to intent for 'request' for issue #11

The forked repository has been deleted.


heroku server is down.

The URL https://gh-trending-api.herokuapp.com/ is not working. And all the requests, which are being made to this URL are failing.

unfortunately, Atlassian bought Heroku and removed the free plan. The only possibility is to run it yourself. I'm sorry :-/

Okay, thanks for the information.


What is the inverse of traverse?

Use Case
In web development, upon request, it is common to take a collection of paths and values and reconstruct an entire JSON tree.
In web development, upon response, it is common to take a value and flatten it into a collection of paths and values.
This is performed in PHP and in jQuery which adds to their success. In the case of jQuery this was a breaking change but they did it any way because it was so important. Many [C++] JSON libraries omit this capability.
Your library does have traverse that could be used to turn a json object into a map<jsonv::path, jsonv::value>, though a convenience function to do this common use case would be appreciated. So the former use case is mostly taken care of; except for the preceding "." common to your paths.
Now what about the former use case? What is the inverse of traverse function?
value has the following
value& at_path (const path &p)
but it doesn't seem to have
void set_value_at_path (const path &p, ?value?)
"value & 	path (const path &p)"  comes close but doesn't take an additional ?value? parameter.
For convenience it would be great if there was a batch void paths|set_values_at_paths(std::map<path, value> values). It would be beneficial to perform this to an existing non primitive values or statically to create a new value.
In both use cases strongly type [de]serialization to and from map<path,value> is also welcomed for convenience.
Though at a minimal a set_value_at_path function is needed and all the others could be derived. If this can be performed now, please document how due to the importance of the proliferation of the web and its contribution to the popularity of JSON.

Since at_path has a mutable overload, you could say something like this:
val.at_path(p) = something;

But I do like the idea of having a function foo that goes foo(ForwardIterable<std::pair<path, value>> input) -> value, my only question would be what to call such a function? build?

Thank you! Thank you!
On 2/21/2015 2:17 PM, Travis Gockel wrote:

Since |at_path| has a mutable overload, you could say something like this:
val.at_path(p) = something;
—
Reply to this email directly or view it on GitHub
https://github.com/tgockel/json-voorhees/issues/43#issuecomment-75387565.

build, aggregate, implode ... whatever as long as we have it. Please if
we could have 2 variants. your first that creats object and a second to
replay on an existing object.
On 2/21/2015 2:21 PM, Travis Gockel wrote:

But I do like the idea of having a function |foo| that goes
|foo(ForwardIterable<std::pair<path, value>> input) -> value|, my only
question would be what to call such a function? |build|?
—
Reply to this email directly or view it on GitHub
https://github.com/tgockel/json-voorhees/issues/43#issuecomment-75387808.

What are the names of the jQuery and PHP functions for this operation? I'd like to maintain some consistency with the rest of the world.

jQuery: param()
PHP: $_GET, $_POST, $_REQUEST
There are no real names as they are nearly automatic hidden below the
api/language framework. Closest name in jQuery is param(). Allow me to
explain
if form fields are named as the following
person[0][first_name]
person[0][last_name]
person[1][first_name]
person[1][last_name]
then when the form get submitted to a PHP server than the developer
doesn't have to issue 4 get calls from a map and then somehow have to
know the structure and recombine the data into a tree. instead the
developer does one call to $_POST and the data is already there.
To complement this jQuery can use the param function to turn any object
into a equivalent data as if the field names have accessors. Most jQuery
AJAX functions can take a single data object and then whatever that
function internally will call param and do the AJAX call.
see references below for more information
///////////////////////////////////////////////////////////////////
jQuery
http://api.jquery.com/jQuery.param/
jQuery.param()
turns
{
a: {
one: 1,
two: 2,
three: 3
},
b: [ 1, 2, 3 ]
}
into
a[one]=1&a[two]=2&a[three]=3&b[]=1&b[]=2&b[]=3
PHP
http://php.net/manual/en/language.variables.predefined.php
$_GET    = &$HTTP_GET_VARS;
$_POST    = &$HTTP_POST_VARS;
$_ENV    = &$HTTP_ENV_VARS;
$_SERVER  = &$HTTP_SERVER_VARS;
$_COOKIE  = &$HTTP_COOKIE_VARS;
$_REQUEST = array_merge($_GET, $_POST, $_COOKIE);
http://php.net/manual/en/reserved.variables.post.php

...

 array('first_name'=>'john','last_name'=>'smith'),
1 => array('first_name'=>'jane','last_name'=>'jones'),
)
?>
http://php.net/manual/en/language.variables.external.php
On 2/21/2015 3:37 PM, Travis Gockel wrote:

What are the names of the jQuery and PHP functions for this operation?
I'd like to maintain some consistency with the rest of the world.
—
Reply to this email directly or view it on GitHub
https://github.com/tgockel/json-voorhees/issues/43#issuecomment-75391641.

I believe this is now covered by merge and friends


Can't complete EdgeDB installation on Ubuntu 20.04

I'm trying to install EdgeDB in Ubuntu 20.04 on a x64 machine. I have successful run curl --proto '=https' --tlsv1.2 https://sh.edgedb.com -sSf | sh and source ~/.edgedb/env. When trying to run edgedb server install I get the error message below.
Error: failed to fetch repository index: HTTP error: Operation timed out (os error 110).
I have a good internet connection and can download other things successful, including updating parts of the operating system. What exactly is the meaning of this as applied to EdgeDB installation and how can I solve this?

Is the error persistent?


[Feature request] Expose metadata / acl / file versions

Per Jared, individual version information for the metadata, file, and acls are stored but not accessible via the API:
            "version_parts" : {
                "attributes_ver" : "37a6259cc0c1dae299a7866489dff0bd",
                "acl_ver" : "6d944fe19b5ac11f16d9ab9d39ab5c11",
                "file_ver" : "ced507f0e5833a048e07dbb5c18c0813"
            },

Make these visible so that a user can determine what portion of the node changed. The current exposed version field is, IIUC, a version for the node as a whole.

This is added with version 0.9.13.


SmartScraperGraph only extracts a small part of items requested

Describe the bug
It's not quite an error, but I am trying to scrape this Aliexpress search page, which contains 60 products listed in the first page. However, it only returns data for 10 products. It's probably due to how the web page is loaded. Is there any parameter I could use to increase the wait time before extracting the source code of the requested page?
To Reproduce
from scrapegraphai.graphs import SmartScraperGraph, ScriptCreatorGraph, OmniScraperGraph, SmartScraperMultiGraph

# Define the configuration for the scraping pipeline
graph_config = {
    "llm": {
        "api_key": "MY_KEY",
        "model": "openai/gpt-4o-mini",
    },
    "library": "selenium",
    "verbose": False,
    "headless": True
}

smart_scraper_graph = SmartScraperGraph(
    prompt="Return the data about the products listed, including product id and product name",
    source="https://pt.aliexpress.com/w/wholesale-TECIDO-PAET%C3%8A-ROSA.html",
    config=graph_config
)

result = smart_scraper_graph.run()
print(result)

try with this please https://scrapegraph-doc.onrender.com/docs/Examples/extras/slow_mo

@VinciGit00 thanks but sadly it did not work, it kept returning just 10 results.

have you tried to add: a config like this:
graph_config = {     "llm": {         "api_key": openai_key,         "model": "openai/gpt-4o",     },     "verbose": True,     "headless": False, },
headless should be false

tried with headless false too. Same behaviour

@VinciGit00 I want to work on this issue, if you have more information on this issue then it would be helpful for me to work and if the the issue is unassigned then pls assign it to me.

Please tell me what you want to do

@VinciGit00 yes sure, will just increase the loading page parameters which will help in extracting all the products after the page loads, and if there is any bug beside that I will try to handle it myself.

@VinciGit00
PR - https://github.com/ScrapeGraphAI/Scrapegraph-ai/pull/849
I also have a second method to solve the above error as @sillasgonzaga is using selenium then what I have is a custom function.
### for the convenience imports are also added
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.chrome.options import Options
import time

def selenium_fetch(url, wait_time=5, scroll_pause=2):
    # Configure Selenium WebDriver
    options = Options()
    options.headless = False  # Set True for headless mode
    driver = webdriver.Chrome(options=options)

    try:
        # Open the URL
        driver.get(url)
        time.sleep(wait_time)  # Allow initial page load

        # Simulate scrolling to load more products
        last_height = driver.execute_script("return document.body.scrollHeight")
        while True:
            driver.find_element(By.TAG_NAME, "body").send_keys(Keys.END)
            time.sleep(scroll_pause)  # Allow time for additional products to load
            new_height = driver.execute_script("return document.body.scrollHeight")
            if new_height == last_height:  # Break if no new content is loaded
                break
            last_height = new_height

        # Return the full page source
        return driver.page_source

    finally:
        driver.quit()


accessorSpies in jest-auto-spies + nx workspace not mocking return value

Describe the bug
When creating a service with a getter and trying to mock it in a test the returned value is undefined.
To Reproduce
Steps to reproduce the behavior:

npx create-nx-workspace
cd to your project
nx g s --name=one --project=app --skipTests
then check the changes in this commit
ng test --watch

and boom
 FAIL  apps/app/src/app/app.component.spec.ts
  ● AppComponent › whatever

    expect(received).toStrictEqual(expected) // deep equality

    Expected: {"fake": "value"}
    Received: undefined

      32 |     const value = componentUnderTest.getGetter();
      33 |
    > 34 |     expect(value).toStrictEqual({
         |                   ^
      35 |       fake: 'value'
      36 |     });
      37 |   });

      at src/app/app.component.spec.ts:34:19
      at ZoneDelegate.Object.<anonymous>.ZoneDelegate.invoke (../../node_modules/zone.js/dist/zone.js:386:30)
      at ProxyZoneSpec.Object.<anonymous>.ProxyZoneSpec.onInvoke (../../node_modules/zone.js/dist/proxy.js:117:43)
      at ZoneDelegate.Object.<anonymous>.ZoneDelegate.invoke (../../node_modules/zone.js/dist/zone.js:385:36)
      at Zone.Object.<anonymous>.Zone.run (../../node_modules/zone.js/dist/zone.js:143:47)

Test Suites: 1 failed, 1 passed, 2 total
Tests:       1 failed, 1 passed, 2 total
Snapshots:   0 total
Time:        3.522s

Expected behavior
the test should pass
Desktop (please complete the following information):

OS: Mac OSX
Browser chrome
Version 88.0.4324.146

You can also clone this repo where the issue occurs https://github.com/GuilleEneas/jest-auto-spies-issue

I checked a bit and the returned object from provideAutoSpy method contains the getter, while after calling TestBed.inject the returned object has the getters striped out. I am a bit lost

Thanks @GuilleEneas !
Sometimes Jest has weird issues with it's caching, did you try cleaning it's cache and run it again?

Hi @shairez !
Yes, I did. As I mention before, the method provideAutoSpy seems to work as expected, is the interaction with the test bed injector the one that seems to remove the getters and setters, but keeps the accessorSpies.

Really weird issue, without debugging I was able to simulate the issue
But when debugging it step by step... I was able to pass the test and see the getters on OneService
WTF 😀

It might have something to do with the fact that I made a small change to AppComponent (added a method and then removed it).
So I suspect it's an issue with the nx cache or something alike...

this is weird, as when I was debugging step by step the injector returned an object without getters. do you suggest it is a nx bug instead?

Yeah, the first time I debugged it I saw the issue... but then I changed the file a bit... reverted it (but because it was "changed" the timestamp was different I guess) and then I couldn't reproduce anymore.
Try that and let me know if that's the case for you as well
if so, it might be the nx cache

I can't make the test pass, even following your steps. I'll try to create this issue with the nx workspace alone to see if this can be an nx issue... do you know if they fix this issues when people submit them. I'll keep you posted 🤓

Hmm... this is a tricky one.. I guess you'll need to simulate the caching issue in a reproducible way in order for them to fix it

I made some more research, the problem is the Object.defineProperty method, somehow that property got stripped out after being inserted and retrieved from the testbed. I created this repos which reproduces the error https://github.com/GuilleEneas/nx-angular-testing-issue . Could you check it (when having time)?... and please let me know if you think is worth reporting (and if they would be interested in fixing it, in your opinion, ofc)

Wow... good job finding it!
I'll take a look at it next week and report back
Thanks!

I've also faced with this issue, but in a non-nx project, so I think this issue is not related to nx.

I having this issue in an Nx project.  I've tried nx test --clearCache in case that helps, but when I spy on a simple service like:
@Injectable({
  providedIn: 'root',
})
export class PartyService {
  private _partyId!: number;

  public set partyId(partyId: number) {
      this._partyId = partyId;
  }

  public get partyId(): number {
    return this._partyId;
  }
}

The value is always undefined:
describe('CollegeLicenceInformationPage', () => {
  let component: CollegeLicenceInformationPage;
  let partyServiceSpy: Spy<PartyService>;

  beforeEach(() => {
    TestBed.configureTestingModule({
      imports: [
        HttpClientTestingModule,
        ReactiveFormsModule,
        RouterTestingModule,
      ],
      providers: [
        CollegeLicenceInformationPage,
        {
          provide: PartyService,
          useValue: createSpyFromClass(PartyService, {
            gettersToSpyOn: ['partyId'],
            settersToSpyOn: ['partyId'],
          }),
        },
      ],
    });

    component = TestBed.inject(CollegeLicenceInformationPage);
    partyServiceSpy = TestBed.inject<any>(PartyService);
  });

  describe('INIT', () => {
    given('partyId exists', () => {
      const partyId = randNumber({ min: 1 });
      partyServiceSpy.accessorSpies.setters.partyId.mockReturnValue(partyId);

      when('initializing the page', () => {
        component.ngOnInit();

        then(
          'resource should get the college licence information of the party',
          () => {
            expect(partyServiceSpy.partyId).toBe(partyId); // <--- Always undefined
          }
        );
      });
    });
  });
});

@GuilleEneas I cannot reproduce the problem from the second run of the tests (only on the first one it fails)
Tried to clear both jest and nx cache but no luck
@mtpultz can you reproduce it consistently and can upload a mini-repo that can show that?
Thanks!

@shairez I need to check, this was long ago, I might remember that this wasn't happening when updating nx. I'll check in the following days. just to be clear did you check this repo https://github.com/GuilleEneas/nx-angular-testing-issue?

@GuilleEneas yep
Btw with a brand new nx I couldn't reproduce

Thanks @shairez I can reproduce it in my branch consistently.  The project is OpenSource so if you were to pull this branch and run nx test --testFile=apps/pidp/src/app/features/profile/pages/college-licence-information/college-licence-information.page.spec.ts do you see the error:

@shairez didn't know if the branch provided was too much so I created a new install of Nx, and was able to reproduce it using a barebones Angular application- https://github.com/mtpultz/jest-auto-spies-error


incorrect link in documentation

https://jinntec.github.io/fore-docs/getstarted/
contains a link that reads Download Fore from https://github.com/Jinntec/Fore/releases and unpack it to a convenient location on your disk..  the containing link is incorrect.
BTW My compliments for the overall look of the documentation!

just fixed - thanks for the compliments @PieterLamers.


switch deprecated implicit eq for simple enums

This remove the deprecated implicit eq fallback for simple enums.

Makes sense 👍 I think it's just the deprecation test.


[feat] [broker] PIP-188 support blue-green cluster migration [part-1]

Motivation
It fixes : https://github.com/apache/pulsar/issues/16551
Cluster migration or Blue-Green cluster deployment is one of the proven solutions to migrate live traffic from one cluster to another. One of the examples is applications running on Kubernetes sometimes require a Kubernetes cluster upgrade which can cause downtime for the entire application during a Kubernetes cluster upgrade. Blue-green deployment is an application release model that gradually transfers user traffic from a previous version of an app or microservice to a nearly identical new release—both of which are running in production.
The old version can be called the blue environment while the new version can be known as the green environment. Once production traffic is fully transferred from blue to green, blue can standby in case of rollback or be pulled from production and updated to become the template upon which the next update is made.
We need such capability in Apache pulsar to migrate live traffic from the blue cluster to the green cluster so, eventually, the entire traffic moves from the blue cluster to the green cluster without causing downtime for the topics.
Modification

Handle cluster migration for persistent/non-persistent topics
Add CLI and REST API support to mark cluster migration

NOTE: This is the 1st part of the feature. 2nd PR will be submitted to handle Replicator changes which can handle cluster migration without compromising ordering and data persistent guarantee.
Result
User can migrate Pulsar cluster without user traffic interruption.
Does this pull request potentially affect one of the following parts:
If the box was checked, please highlight the changes

[ ] Dependencies (add or upgrade a dependency)
[ ] The public API
[ ] The schema
[ ] The default values of configurations
[ ] The binary protocol
[x] The REST endpoints
[x] The admin CLI options
[ ] Anything that affects deployment

Documentation

[ ] doc
[ ] doc-required
[ ] doc-not-needed
[x] doc-complete

Matching PR in forked repository
PR in forked repository:

/pulsarbot rerun-failure-checks

@rdhabalia From what I understand, the change lgtm with caveat that it only works for the cases when old data is deleted after consumption (e.g. offloaded data is not preserved).

@dlg99 yes, this PIP addresses the migration problem from one cluster to a brand-new cluster that will not have old data but should ensure persistent data is delivered before completely migrating to the new cluster. yes, right now, this PIP doesn't handle offloaded data which can be also accessible from a new cluster but that can be a feature added later on top of these changes and such things shouldn't be a problem for this fundamental approach of cluster migration.

Codecov Report

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

@@            Coverage Diff            @@
##             master   #17962   +/-   ##
=========================================
  Coverage          ?   31.95%
  Complexity        ?     4178
=========================================
  Files             ?      393
  Lines             ?    43534
  Branches          ?     4475
=========================================
  Hits              ?    13910
  Misses            ?    27571
  Partials          ?     2053

Flag
Coverage Δ

unittests
31.95% <0.00%> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.


Support decoding Coub videos (was: Downloaded Coub video file broken)

Please follow the guide below

You will be asked some questions and requested to provide some information, please read them carefully and answer honestly
Put an x into all the boxes [ ] relevant to your issue (like that [x])
Use Preview tab to see how your issue will actually look like

Make sure you are using the latest version: run youtube-dl --version and ensure your version is 2017.07.23. If it's not read this FAQ entry and update. Issues with outdated version will be rejected.

[X] I've verified and I assure that I'm running youtube-dl 2017.07.23

Before submitting an issue make sure you have:

[X] At least skimmed through README and most notably FAQ and BUGS sections
[X] Searched the bugtracker for similar issues including closed ones

What is the purpose of your issue?

[X] Bug report (encountered problems with youtube-dl)
[ ] Site support request (request for adding support for a new site)
[ ] Feature request (request for a new functionality)
[ ] Question
[ ] Other

casval@casval-X6815 /tmp % youtube-dl http://coub.com/view/eq9pa -v
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: [u'http://coub.com/view/eq9pa', u'-v']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2017.07.23
[debug] Python version 2.7.13 - Linux-4.10.0-28-generic-x86_64-with-Ubuntu-17.04-zesty
[debug] exe versions: avconv 3.2.4-1build2, avprobe 3.2.4-1build2, ffmpeg 3.2.4-1build2, ffprobe 3.2.4-1build2, rtmpdump 2.4
[debug] Proxy map: {}
[Coub] eq9pa: Downloading JSON metadata
[debug] Default format spec: bestvideo+bestaudio/best
[debug] Invoking downloader on u'http://s3.storage.akamai.coub.com/get/b130/p/coub/simple/cw_file/30cf7df5d5e/aa6e6b21fbdf78b11538d/muted_mp4_big_size_1473445250_muted_big.mp4'
[download] Destination: Spergberb-eq9pa.mp4
[download] 100% of 1.77MiB in 00:00
casval@casval-X6815 /tmp % mpv Spergberb-eq9pa.mp4
Playing: Spergberb-eq9pa.mp4
[ffmpeg/demuxer] mov,mp4,m4a,3gp,3g2,mj2: moov atom not found
[lavf] avformat_open_input() failed
[ffmpeg/demuxer] mov,mp4,m4a,3gp,3g2,mj2: moov atom not found
[lavf] avformat_open_input() failed
Failed to recognize file format.
Exiting... (Errors when loading file)

When I try to download a Coub video, the resulting video file is unplayable (I tried VLC, as well) and judging by the URL is also tried to download the muted version of the video.

This is what coub serves.

I found something interesting inside their js:
MediaElementStrategy.prototype.decode = function(buf) {
      var x;
      x = new Uint16Array(buf, 0, 2);
      if (x[0] === 19392) {
        return x[0] = 0;
      }
    };

And indeed, zeroing out the first two bytes with a hex editor makes the files playable.

@catdog2 I see that
    MediaElementStrategy.prototype.setSrc = function(src, size) {
      var MS, minChunkSize;
      this.mimeCodec = this.getCodec();
      MS = window.MediaSource;
      if (MS && MS.isTypeSupported(this.mimeCodec)) {
        this.size = size;
        minChunkSize = this.kind === 'video' && 262144 || 131072;
        if (!this.isHD) {
          minChunkSize /= 2;
        }
        this.chunkSize = this.kind === 'video' ? Math.max(Math.ceil(this.size / 4), minChunkSize) : minChunkSize;
        return this.setMediaSource(src);
      } else {
        console.log("[PLAYER]", "media", this.kind, "fallback to media element");
        return this.setSource(src);
      }
    };

Looking deeper I see that this decode method is called when using setMediaSource which in turn is called in setSrc where there is a check for "MediaSource" browser support, if there isn't any, then it reverts to basic setSource. Maybe there's a way to trigger this by mimicking an old browser?
I tried making a request and setting  'User-Agent' header to something like IE8 but that didn't work, not sure if I'm doing it right, just thought I'd share.

@ozburo @arisboch @catdog2
If you guys still have problem, try this:
curl -wL $(youtube-dl -g 'http://coub.com/view/uilvc') | grep -o "http.*mp4" | sed 's/muted_//g'

@niranjanshr13 Thx, I'm gonna incorporate that into my (primitive) wrapper script till a proper solution is implemented.

Hi!
The only thing you should do is addmuted=false as get parameter to link, for example:
Broken link:
coub.com/getvideo?ref_obj=x5fe9&stamp=623607636&token=6e7b7b773d32327a317a7b7679676d6b316772677467703169767c6831697674326d6b7b3268343a3c32773269767c68327a707477736b32697e656c70736b32333937693b336a6a676b33326c376b36696c683536396c3a6b676c6a39356c673932747c7b6b6a657477376568706d657a70826b65343833363b37393c343b65747c7b6b6a6568706d31747737
Normal link:
coub.com/getvideo?ref_obj=x5fe9&stamp=623607636&token=6e7b7b773d32327a317a7b7679676d6b316772677467703169767c6831697674326d6b7b3268343a3c32773269767c68327a707477736b32697e656c70736b32333937693b336a6a676b33326c376b36696c683536396c3a6b676c6a39356c673932747c7b6b6a657477376568706d657a70826b65343833363b37393c343b65747c7b6b6a6568706d31747737?muted=false

@niranjanshr13 Thanks! Works perfectly I wrote myself a small shell script and combined this into it.

@niranjanshr13 seems like that doesn't work anymore too. It worked for me few days ago.

Here is simple script to construct videos that should looks similar to the ones played on the site. I didn't try to make it fancy, just the minimal proof of concept.
#!/usr/bin/env bash
set -e
youtube-dl -f html5-video-high -o 1.mp4 "$1"
youtube-dl -f html5-audio-high -o 1.mp3 "$1"
printf '\x00\x00' | dd of=1.mp4 bs=1 count=2 conv=notrunc
for i in `seq 1 100`; do echo "file '1.mp4'" >> 1.txt; done
ffmpeg -hide_banner -f concat -i 1.txt -i 1.mp3 -c copy -shortest -movflags faststart out.mp4
rm 1.mp4 1.mp3 1.txt

Okay, here's my take on that shell script:
#!/bin/bash

set -e

TMPFILE=$(mktemp 'XXXXXXXX.mp4')

filename_format+='%(upload_date)s'
filename_format+='_%(title)s'
filename_format+='_%(id)s'

FILE_NAME=$(
	youtube-dl --get-filename \
		--restrict-filenames -o "${filename_format}" "${1}"
)

youtube-dl -f html5-video-high -o "${FILE_NAME}.mp4" "$1"
youtube-dl -f html5-audio-high -o "${FILE_NAME}.mp3" "$1"
printf '\x00\x00' | dd of="${FILE_NAME}.mp4" bs=1 count=2 conv=notrunc
i=0;export i
for i in {1..100}
do
	echo "file '${FILE_NAME}.mp4'" >> "${FILE_NAME}.txt"
done
ffmpeg -y -hide_banner -f concat -i "${FILE_NAME}.txt" \
	-i "${FILE_NAME}.mp3" -c copy -shortest -movflags faststart "${TMPFILE}"
rm "${FILE_NAME}"*
mv "${TMPFILE}" "${FILE_NAME}.mp4"

@Kagami @affinityv Is there a way to download just the video and not the 55 second loop of the video?

@arisboch here is the code without any loop.
#!/bin/bash
url="http://coub.com/view/g8j3b"
youtube-dl $url -o 1.mp4
printf '\x00\x00' | dd of=1.mp4 bs=1 count=2 conv=notrunc

I've written a Python based tool for this a while ago: https://git.strongds.hu/mrtoth/coub-dl
It properly calculates how many times the shorter stream should be looped and outputs videos just like on coub does in your browser. It used the workaround by @niranjanshr13 for a while, so thanks!

@niranjanshr13 But it's muted ;-(

Wow, thank you @Kagami this works so perfectly well, I think I love you!

@arisboch it is muted, if you want the audio to try Kagami code, basically his code loop the video until the audio ends.

@niranjanshr13 Don't use /usr/bin/env to find a program (or shell)..... you should know exactly where the program (or shell) is on your system and it should be in a safe directory.  I'm sure you can find other advice, but quite simply, don't use /usr/bin/env ... EVER.

@affinityv this is not my code, i copied from @Kagami code for the @arisboch question.

#!/usr/bin/python3
import youtube_dl
import requests
link='http://coub.com/view/zoxf2'
ytdl = youtube_dl.YoutubeDL({'outtmpl': '%(id)s%(ext)s'})
result = ytdl.extract_info(link, download=False)
r = requests.get(result['url'])
with open( result['title'] + '.mp4','wb') as f:
    f.write(b'\x00\x00' + r.content[2:])

FWIW, I just tested this again and it is still not working with the latest version of youtube-dl.
Dunno, maybe either incorporate a fix along those examples listed here, or take Coub off of the list of supported sites in the meantime.

`#!/usr/bin/env bash

exit if no url is given
[ -z "$1" ] && exit 88
get url
URL=$1
if you already executed this, skip
[ -e "$(youtube-dl --restrict-filenames -f 'html5-video-med[ext=mp4]' --get-filename -o "%(title)s-%(id)s.%(ext)s" "$URL")" ] && echo -e "Already downloaded $URL" &&  exit 0
Download fragments
youtube-dl -q --restrict-filenames -f 'html5-video-med[ext=mp4]+html5-audio-high[ext=mp3]' --merge-output-format FAKE -o "%(title)s-%(id)s.%(ext)s" "$URL" &>/dev/null
Fix video
printf '\x00\x00' | dd of=$(youtube-dl --restrict-filenames -f 'html5-video-med[ext=mp4]' --get-filename -o "%(title)s-%(id)s.f%(format_id)s.%(ext)s" "$URL") bs=1 count=2 conv=notrunc &>/dev/null
Merge using youtube-dl
youtube-dl  --restrict-filenames --prefer-ffmpeg --postprocessor-args '-shortest' -f 'html5-video-med[ext=mp4]+html5-audio-high[ext=mp3]' --exec 'touch {}' -o "%(title)s-%(id)s.%(ext)s" "$URL" &>/dev/null
`
the first -e is because if you try to download the same url it will create fragments and then say it already made the file and exit.
I use FAKE to force an error, but it would fail anyway, so it's probably irrelevant, still...
and the --exec touch is something I do cause I don't want the date to be the video's but I want now.
that's the smallest I could do, I did it this way because if I download the pieces separately then you don't have the name and you're still going to need to call --get-filename for each "fragment"
if --exec would really run after download this could be 1 line :(
youtube-dl --restrict-filenames --ffmpeg-location /root/bin/ -f 'html5-video-med[ext=mp4]+html5-audio-high[ext=mp3]' --exec "[[ {} =~ \.mp4$ ]] && printf '\x00\x00' | dd of={} bs=1 count=2 conv=notrunc || true" --merge-output-format mp4 -o "%(title)s-%(id)s.%(ext)s"  <URL>
but it doesn't work cause it will try to execute on the post-processed, but it doesn't reach it as ffmpeg won't recognize the video as a video.

hi. can anybody make last script in windows .bat please?

Unless this is resolved properly:
You can try this, definitely worked pretty recently: https://github.com/soimort/you-get
Note (for Windows users): This does not provide a self-contained executable, unlike youtube-dl. So you need a Python installed on your system. You can then install you-get with pip.


Find file returns not results

Click the search icon in top left.
Type in the beginning of existing files like a

Shows no results, when there should be matching files (files are shown if I'm not typing a search query). Removing the entire query still doesn't update the results. Using different query methods like prefix, substring or regex (event with .*) has no effect.
Returns:
{"status":"error","message":"No Results Returned"}

It seems that it relies on a more complete version of find:
find: unrecognized: -printf

When clearing the search query (using delete key), it should show again all files like initially.


Fix converion bug of JapaneseDateTypeHandler

Fix gh-26 & gh-12
Hi @hazendaz , Please review this.

This works!  Thanks.

This works!  Thanks.

Hi @hazendaz , thanks !

Hi @hazendaz , thanks !