Drop size 0 arrays in concatenate

If a size 0 array shows up in concatenate, it doesn't contribute any data. So it would be good to drop these terms from the sequence to avoid unnecessary constraints on computations.
To-do: Handle case with all size 0 arrays.

[x] Tests added / passed
[x] Passes flake8 dask

Size 0 arrays don't affect the values, but they could change the dtype, e.g., note
>>> np.concatenate([np.zeros((0,), dtype=float), np.zeros((1,), dtype=int)]).dtype
dtype('float64')

Thanks for that. Didn't catch the type point when playing earlier.
Also they can affect final shape in some cases.
In [1]: import numpy as np

In [2]: np.concatenate([np.empty((0, 2, 4)), np.empty((0, 2, 3))], axis=2)
Out[2]: array([], shape=(0, 2, 7), dtype=float64)

Yeah, there is a da.result_type that we could use to accomplish that.

Am wondering if we should solve this problem at an even higher level. Namely optimizing out empty chunks from the graph entirely. ( https://github.com/dask/dask/issues/4173 )

I recently had someone bring the issue of size 0 arrays affecting the output of da.concatenate to my attention. For example,
import numpy as np
import dask.array as da

x_np = np.concatenate([np.zeros(0), np.zeros(1)])
x_da = da.concatenate([da.zeros(0), da.zeros(1)])

result_np = np.concatenate([x_np, x_np])
result_da = da.concatenate([x_da, x_da])

print(f'result_np = {result_np}')
print(f'result_da = {result_da.compute()}')

outputs
result_np = [0. 0.]
result_da = []

The proposed solution of dropping size 0 arrays seems like a reasonable fix to me. I'm happy to help move this along by pushing commits to this PR, if that's okay with you @jakirkham

Maybe we should bring this up as core work? Though I'm not sure entirely how to propose it.

Click "Projects" above

Ah ok. Was trying to do it from the project board. Thanks for the pointer.

@jakirkham I pushed some commits to ensure that the output dtype and case when all inputs to da.concatenate have 0 size are handled properly

Broke out some smaller pieces from this into PR ( https://github.com/dask/dask/pull/4925 ) and PR ( https://github.com/dask/dask/pull/4927 ), which have been integrated.
Have updated to include the latests changes from master (including _meta).
Finally pushed some fixes to address some of the remaining issues. This is passing for me locally.
Would be great to get another review if someone has a chance.

Thanks @jrbourbeau. Think I've addressed your concerns. So please give it another look.

The Travis build failure here is due to dropping Python 2.7 in #4919 and can be ignored

The Travis build failure here is due to dropping Python 2.7 in #4919 and can be ignored

Have merged with master. So this should be fixed.

@jrbourbeau, could you please take another look?

Thanks for the reviews.
Have raised an issue about doing this for da.stack as well. ( https://github.com/dask/dask/issues/4928 )


Overlay and Witcher 2

Game have launcher so need to run by terminal
Run command:

glxosd --steam ./witcher2

Error:

ERROR: ld.so: object 'libglxosd-glinject.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored

OS: Antergos / Arch; OSD working, tested in DotA 2

Not an actual error (you can ignore that message), but Witcher 2 is 32 bit so you need glxosd 32bit libs too.

Thanks for replay.
Yes you have right, just installed glxosd32 and it works ;)


Add post documentation lockdown survey link

We did a survey prior to the doc lockdown to get an idea of what we should focus on. Now we have a yes/no style survey to ensure that we met the user needs when it came to our start of improving the docs.
This diff adds the survey link to the bottom of each page. And we will cherry-pick it into 0.29 as well, which will be the first official release with the new doc content

NOTE: The content via the links in this survey will not be valid until 0.29 is actually released. So I have not enabled the questions for the survey until then.

Test Plan:
http://localhost:8079/react-native/docs/getting-started.html

By analyzing the blame information on this pull request, we identified @Andreyco and @caabernathy to be potential reviewers.

LGTM. Minor nit regarding the use of lockdown but I don't feel too strongly about it.

@hramos Ah - good point. Fixed.

@facebook-github-bot shipit

Something went wrong when importing this pull request. Please cc someone from the team at fb to help with importing this.

@facebook-github-bot shipit

Thanks for importing. If you are an FB employee go to Phabricator to review.


Add some white space between groups

Currently it looks like this (without separator lines between stratifications):

We should add some white space between the stratified (hierarchically sorted) blocks, such as in this ComplexHeatmap example:
https://cloud.githubusercontent.com/assets/449218/9685180/dddf30c0-531c-11e5-805a-4cc5a36e9197.png

According to our refined concept we only have one stratification across all columns. This makes it much easier to add white space.

9px is too much. How about 2px or 4px?

Looks good now. But the added space needs to be considered in the overall height calculation. At the moment the table is growing outside of the visible space.

@katush, can you consider the white space when recalculating the layout?


Counties should be restricted

County options should be limited to:
PG
HO
AA
Currently in the UI they are listed as Howard, Anne Arundle, but the db is seeded with above, so no county shows up.

Might make sense to update the county names in the DB seeds instead. Using the full county names will allow it to scale beyond just Elizabeth House.

These names are how they're commonly used.  Nobody ever says Prince George's county.  It is also how the pantry currently uses the names, so what the volunteers are used to .  I think it makes sense to stick with the abbreviations.

I agree that nobody says it out loud, but if/when this scales beyond Elizabeth House and another food pantry has a "PG" county but also has a county entry that's fully spelled out, I worry that they'd have ambiguous data at that point.

I tried adding client validations as a part of Issue #17 and began getting errors because of this discrepancy.
There are some advantages to restricting the field now, and then expanding later on. If we only allow three values for that field it's a simple change to start allowing others later. However, if we allow anything, we could end up with inconsistent data.
I'm definitely a proponent of limiting the county field to ["PG", "AA", "HO"]

Yes.  Let's Def go with limiting the county field to ["PG", "AA", "HO"] Thanks @ajohnson052
In speaking with Sean our biggest priority should be getting this working for EH, and beyond that we will have a bunch of work to do anyway.  We may consider making this into a SASS for future for other pantries.  There will be lots of mods that have to be made because I'm sure some of the things we have not realized are unique to EH.

@ajohnson052 this issue can be closed correct?  This was addressed in your last PR I think!

@pollygee Yes it can!


Added Subwavelength MMI Files

Added Subwavelength MMI Files (body periods 169-171 and fill factor 0.3188 - 0.355)

Please run a DRC and Functional Verification check.  You have some waveguides that are not properly connected.
I see you are interested in purchase many SEM images.

Thank you @lukasc-ubc for your comments! I will fix that immediately! And I will reduce the number of sem images to 3.


TypeError: Only Absolute Urls Are Supported

What does that mean???

Use https:// before all urls

Use https:// before all urls

But where?

Use https:// before all urls

But where?

In settings.yml see all domains and then add https:// to that


gpg: keyserver receive failed: No dirmngr

Problem with ubuntu installed from Windows 10 setup:
sudo apt-key --keyring /etc/apt/trusted.gpg.d/Microsoft.gpg adv      --keyserver packages.microsoft.com      --recv-keys BC528686B50D79E339D3721CEB3E94ADBE1229CF
Executing: /tmp/apt-key-gpghome.TAkAqlbJN0/gpg.1.sh --keyserver packages.microsoft.com --recv-keys BC528686B50D79E339D3721CEB3E94ADBE1229CF
gpg: connecting dirmngr at '/tmp/apt-key-gpghome.TAkAqlbJN0/S.dirmngr' failed: IPC connect call failed
gpg: keyserver receive failed: No dirmngr
sudo apt-get install dirmngr does not work as it is already installed. Uninstalling and reinstalling does not help.
I solved it by using following:
curl -SL "http://keyserver.ubuntu.com/pks/lookup?op=get&search=0xEB3E94ADBE1229CF" | sudo apt-key add
This was on a fairly clean install.

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

ID: fe1526a9-7f22-504e-484c-0f3edc11b178
Version Independent ID: c5dec108-efcd-aa77-04b5-803b6b894dba
Content: Install the Azure CLI on Linux with apt
Content Source: docs-ref-conceptual/install-azure-cli-apt.md
Product: azure
GitHub Login: @sptramer
Microsoft Alias: sttramer

https://github.com/Microsoft/WSL/issues/3286

@docgregt This issue is often seen by people running on an outdated version of Windows. Please update to at least Windows 1809 to receive the WSL fix which resolved a number of IPC problems, including those which were causing this error.

I had the latest version of Windows 10 based upon Windows update at the time I reported the issue. I do not track windows versions so I don’t know if there is a newer version of windows since I reported the problem that fixes the problem. In any case the work around worked for me.
Gregory Turner
Chief Architect

i4 Insight, Inc.
cell: +1.720.335.1744
greg.turner<EMAIL_ADDRESS>A member of the Lloyd’s Register Group
From: Stephen Tramer<EMAIL_ADDRESS>Sent: Monday, March 18, 2019 5:50 PM
To: MicrosoftDocs/azure-docs-cli<EMAIL_ADDRESS>Cc: Greg Turner<EMAIL_ADDRESS>Mention<EMAIL_ADDRESS>Subject: Re: [MicrosoftDocs/azure-docs-cli] gpg: keyserver receive failed: No dirmngr (#1329)
@docgregthttps://github.com/docgregt This issue is often seen by people running on an outdated version of Windows. Please update to at least Windows 1809 to receive the WSL fix which resolved a number of IPC problems, including those which were causing this error.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://github.com/MicrosoftDocs/azure-docs-cli/issues/1329#issuecomment-474144711, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ApVpHxYe55M_Kei4sunCJfpRe-zfugfDks5vYCYKgaJpZM4bVv_Q.

Can you check the version of Windows/WSL by following these instructions, and make sure that it's at least 1809? Some administered environments block updates.
https://github.com/Microsoft/WSL/issues/1728

Looks like I have 1803 and there is no admin that blocks my updates. I do not know why Windows Update has not given me the latest. Maybe it is a Dell thing.
What I read on numerous blogs was that it was a linux bug and someone needs to fix the linux bug so I don't think updating Windows will matter, but you would know that better than me.

It might be a Linux bug, but there were definitely WSL bugs related to IPC that were fixed in 1809. I wonder why that version isn't available for you, it was the Windows Fall Creator update, and tagged as installed on 10/1/18 on my machine.
It might be the case that you need to update manually (which would be recommended, for the security fixes.) Follow the Windows 10 October update instructions: https://support.microsoft.com/en-us/help/4028685/windows-10-get-the-update
I'd be curious to hear if you're able to get the current Ubuntu install instructions to work if you're able to successfully upgrade to 1809.


Feature Request: Configure font of REPL

Currently the font face and size of the text in the REPL window is fixed, and cannot be changed.
This can be made configurable by using the --vscode-editor-font variable as defined in the vscode webview api. Or by setting up another custom preferences property that defaults to the current hardcoded font string.
The current fonts are defined in resource/**/view.css .

It now uses the --vscode-editor-font as the default. I'm thinking of adding a setting so that it can be different than what's used in the editor tabs.


Doesn't work when video is playing in webview inside modal

Library works fine in most of the cases, I've observed that if webview is opened in modal and video is playing in webview then I am able to take screenshots and do the screen recording. This is happening for ios and android both. Any workaround for this?

My suggestion is try to embed your Webview inside a React Native <View />  instead of a Modal. Looks like it has some drawback with the Modal view, as well as other modal view like keyboard and some alert dialog.
I think it's not gonna happened on Android in your case because neither can you receive any event nor triggering a screenshot or screen recording as Android system already blocks those methods right after activated.
You can provide more details on which of the Webview library and the Modal view lib you are using so I could suggest for you better.

I'm using [React native webview](https://www.npmjs.com/package/react-native-webview)  and Modal is native module from react-native.
I've also done some research, Modal uses Android's Dialog internally and it creates new window on opening hence FLAG_SECURE doesn't get applied on newly created window.
Can you suggest me any workaround?

bring your hole logic business to React Native  instead of a Modal, this is the only way.

Okay thanks for the suggestion


I am unable to load h3-JS in my quasar project

I am able to install h3-js by using npm and then after i am not able to run any one of the following h3-js core functions:
// Convert a lat/lng point to a hexagon index at resolution 7
const h3Index = h3.latLngToCell(37.3615593, -122.0553238, 7);
// -> '87283472bffffff'
// Get the center of the hexagon
const hexCenterCoordinates = h3.cellToLatLng(h3Index);
// -> [37.35171820183272, -122.05032565263946]
// Get the vertices of the hexagon
const hexBoundary = h3.cellToBoundary(h3Index);
// -> [ [37.341099093235684, -122.04156135164334 ], ...]
I am getting the following error while i tried any of the above core functions:

This is my package.json File which had h3-js installed:
"scripts": {
"lint": "eslint --ext .js,.vue ./",
"format": "prettier --write "**/*.{js,vue,scss,html,md,json}" --ignore-path .gitignore",
"test": "echo "No test specified" && exit 0",
"dev": "quasar dev",
"build": "quasar build"
},
"dependencies": {
"@quasar/extras": "^1.16.4",
"geojson2h3": "^1.2.0",
"h3-js": "^3.6.1",
"quasar": "^2.6.0",
"vue": "^3.0.0",
"vue-router": "^4.0.0"
},
"devDependencies": {
"@quasar/app-vite": "^1.3.0",
"autoprefixer": "^10.4.2",
"eslint": "^8.10.0",
"eslint-config-prettier": "^8.1.0",
"eslint-plugin-vue": "^9.0.0",
"postcss": "^8.4.14",
"prettier": "^2.5.1"
},
"engines": {
"node": "^18 || ^16 || ^14.19",
"npm": ">= 6.13.4",
"yarn": ">= 1.21.1"
}
In my Vue File these are my imports I am able to see all console logs for geojson2h3 but for h3-js i am getting the attached console errors :
//geojson2h3
import geojson2h3 from "geojson2h3";
const polygon = {
type: "Feature",
geometry: {
type: "Polygon",
coordinates: [
[
[-122.47485823276713, 37.85878356045377],
[-122.47504834087829, 37.86196795698972],
[-122.47845104316997, 37.86010614563313],
[-122.47485823276713, 37.85878356045377],
],
],
},
};
const hexagons = geojson2h3.featureToH3Set(polygon, 10);
// -> ['8a2830855047fff', '8a2830855077fff', '8a283085505ffff', '8a283085506ffff']
console.log("hexagons", hexagons);
const feature = geojson2h3.h3SetToFeature(hexagons);
console.log("hexafeaturegons", feature);
//h3-js
//First way i tried
const h3 = require("h3-js");
console.log("h3 latLngToCell", h3);
const h3Index = h3.latLngToCell(37.3615593, -122.0553238, 7);
console.log("h3Index", h3Index);
//h3-js
//Second way
import { latLngToCell } from "h3-js";
console.log("h3 latLngToCell", latLngToCell);
//h3-js
//Third way
import latLngToCell from "h3-js";
console.log("h3 latLngToCell", latLngToCell);
I tried all the above three ways to add h3 in my vue file but those are give the following errors as attached

Oh, looking at that package.json it becomes clear:
"h3-js": "^3.6.1",

That's v3.x for H3. Between v3 and v4 there was a major cleanup of function naming for better consistency (and error handling and other things we wanted to clean up). You're using the v4 naming eg latLngToCell but the v3 version of h3-js follows the v3 naming eg geoToH3.
My checks above assumed you were using the most recently-released version of h3-js.

So you can replace latLngToCell with geoToH3 or you can upgrade h3-js to the latest version (which will also get you new features, like vertex mode, and some minor perf bumps in most cases).


Update spreadsheet rows to be a bit more machine readable

@mmoutenot Should I change the title of this since you're doing the work on the mapping thing?

I think we can just close it since we will be using positional indexing.


import relative fix

to match the code at https://github.com/babel/example-node-server/blob/master/test/index.js#L4

Thanks


GO annotations should be included in download of feature table for a genome

Currently, users have to click on each feature individually to capture the specific GO annotation.  It might be good to include this as a column they can add to any feature table so that they can view them, too.

Added and available in alpha.

confirmed.
TW, Rebecca, you can get the filtered list of features by attributes,

click Proteins with GO Assignments 956, then you will get only those features


Updated transformers 4.11.3 to --> 4.21.1

Fix for issue:
#53
#40
Updated transformers 4.11.3 to --> 4.21.1 in Setup.py

Updating the transformer library version will not solve the issue. If you install with pip install . using these changes, you will still face the ValueError: The following model_kwargs are not used by the model: ['encoder_outputs'] (note: typos in the generate arguments will also show up in this list) error.
Based on #53, I suggested locking the transformer version to transformers==4.21.1 as a temporary fix and not transformers>=4.21.1 in setup.py.
    ),
    python_requires=">=3.7",
    install_requires=[
-      "transformers>=4.11.3",
+      "transformers==4.21.1",
        "timm",
        "datasets[vision]",
        "pytorch-lightning>=1.6.4",

A new PR with modifications to the donut/model.py has been made at #56 to support newer transformer versions

A new PR with modifications to the donut/model.py has been made at #56 to support newer transformer versions

Great!

Updating the transformer library version will not solve the issue. If you install with pip install . using these changes, you will still face the ValueError: The following model_kwargs are not used by the model: ['encoder_outputs'] (note: typos in the generate arguments will also show up in this list) error.

For some reason, it works in my case, just updating the setup.py with transformers==4.21.1 and resetting the env.

For some reason, it works in my case, just updating the setup.py with transformers==4.21.1 and resetting the env.

That's because you pinned the transformers version to 4.21.1 with == but in your commit, you have it as >=4.21.1


MM-29867: Commands to generate test data

Summary
This PR adds two new slash commands:

/incident test create-incident, which accepts a playbook ID (that can be chosen from the playbooks the user is a member of, using the autocomplete system), a timestamp and an incident name. It creates an ongoing incident whose creation date is set to the specified timestamp.
/incident test bulk-data, which accepts a number of ongoing incidents, a number of ended incidents, a begin and an end date, and an optional seed. It creates as many ongoing and ended incidents as specified, all of them with their creation date randomly picked between the begin and end dates. The seed, if available, is used to get reproducible results. The names of the incidents are randomly chosen from a list of incident names and a list of fake company names I defined in the code.

Other things I did while I was here:

I fixed the sqlstore.NukeDB function, which failed with a foreign key error when trying to delete IR_Playbook before
IR_PlaybookMember.
I moved the st command as a subcommand of /incident test, for the sake of consistency.
I excluded G404: Insecure random number source (rand) rule from gosec: it was complaining because I am using math/rand instead of crpyto/rand to generate the random numbers needed in the bulk data generation. Of course, we do not need crypto/rand for such a task. And, if we ever need to do something crypto-related, I think we will know by ourselves that we need to use crypto/rand.

Ticket Link
https://mattermost.atlassian.net/browse/MM-29867

E2E tests are failing in CI but not locally. I'll investigate.

@agarciamontoro Could you request review from @muratbayan and @sadohert as they'll be using it in the field?

I know now why the E2E tests are failing only in CI (we have an environment variable overriding the server config). I'm waiting on some configuration we need to do in CircleCI itself, but consider it fixed!

@sadohert are you ok with merging this?

I'm good to merge this.  Functionality looks great!
Probably doesn't need to block this PR, but as discussed in the channel, I was having an issue with a simple make of the plugin.  make deploy got me up and running in my local dev environment (after make noticed I didn't have my environment details setup correctly and notified me).

@justinegeffen is it ok if I merge this PR? Or do you want to complete the docs before?

@agarciamontoro, I am working on the docs at the moment so you can go ahead and merge. :)

/update-branch


[7.x] Support for default values model inserting

This PR aims to add default and dynamic attributes to a Model::insert($values) op.
Originally we have to map the correct values before we insert which is cool but then there are moments when you wanna save even dynamic values on the fly too.
My use case is when I am using TheModel with a uuid as the primary key. Since the id is not auto-incremented we need a way of creating on saving bulky entries.
Accoriding to the tip by Povilas Korop https://www.youtube.com/watch?v=sAjLREMr-9k the Model::insert($values) is quite a performant op so thats where I got the reason to extend the core a little.
Here is my use example:
TheModel::insert($originalArrayedData, [
	'created_at' => now()->toDatetimeString(),		//append static attributes
	'user_id' => $user->id,
	'id' => function() {
		return Str::uuid()->toString()				//append dynamic attributes
	}
]);

I can add tests If you think you need this.

Thanks for your pull request to Laravel!
Unfortunately, I'm going to delay merging this code for now. To preserve our ability to adequately maintain the framework, we need to be very careful regarding the amount of code we include.
If possible, please consider releasing your code as a package so that the community can still take advantage of your contributions!
If you feel absolutely certain that this code corrects a bug in the framework, please "@" mention me in a follow-up comment with further explanation so that GitHub will send me a notification of your response.


what is the version of tensorflow in this code?

Hi, thanks for sharing this great work. The paper and code have inspired me a lot.
I want to reproduce your result, so i would like to ask what version of tensorflow you used in this code? thanks in advance

Hi, TensorFlow 2.7 has been used during the training. I will add this information in the readme.

Thanks for reply. I read nasa randomized battery data and didn't figure out the difference between 10k, 20k, and 100k data, and cannot understand the following code
train_x_20k = train_x_20k[:, ::2, :]
test_x_20k = test_x_20k[:, ::2, :]
train_x_100k = train_x_100k[:, ::10, :]

The sampling frequency of the same battery in different discharge stages will be different, and the data sampling frequency of 10k, 20k, and 100k in the same stage is basically the same, why should it be processed in this way?

In 'RW_Skewed_High_Room_Temp_DataSet_2Post/data/Matlab/RW17' which is the first element in train_names_100k, there exists data missing problem. For example, in the index 52(start from 0) of RW17, they did 90 minutes rest post reference power discharge starting from 06-Aug-2014 01:25:39. The last recorded voltage at that row is 3.697. Then in the next row they did pulsed load(rest) starting from 06-Aug-2014 05:34:40, and the first recorded voltage at that row is 4.199. Obviously the charging row is missing. As a result, the code treat at least two discharge curve as one discharge curve. This feels a little unreasonable.

10k, 20k, and 100k are the approximate max lengths of the time series (the concatenation of the discharge stages) of the various runs. As the Encoder needs a time series with fixed sizes, the 20k and 100k are sampled to return to ~10k. The series are then cut to 11800. The idea is that the Encoder can generalize to the different sampling frequencies.
For the second question, in RW17 we have an initial sequence of C->R->D->R->C-R->D->...
The code in this repo filters the data keeping only the type D (Discharge) rows, while C (Charge) and R (Rest) are ignored. The RUL is predicted only during discharge and using only discharge data history. The predicted RUL is based on the mAh computed in the reference discharge cycles, regardless of what happened in between (rest, charge, discharge).
As we think the concept of cycles has little meaning in this context, in the paper we propose a RUL based on mAh. Thus, the subdivision in cycles doesn't really have an impact on how the network uses the data. The cycle number in the code is rather used to decide when performing the prediction, as doing it at every timestep would result in unnecessary computation and noisy results.

Readme updated in commit 2dd0836


Add an option to Maitre to export an environment to JSON file

Hi.
I couldn't find an option in Maitre to export an environment to a JSON file.
At least in version 0.8.0 it is not listed as an option using --help.
Thanks.
Michele

Good idea.


🐛 [firebase_messaging] Firebase Push Notifications routing is not working on iOS when I tap on notification.

I'm using cloud messaging for notifications on Flutter app, when I click on the notification it's not opening the respective screen on the app. Everything is working fine on Android and macOS. On notification click it opens the app screen but routing is not working. I am having trouble with iOS devices only.
Here's my AppDelegate.swift
import UIKit
import Flutter
import Firebase

@UIApplicationMain
@objc class AppDelegate: FlutterAppDelegate {
  override func application(
    _ application: UIApplication,
    didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
  ) -> Bool {
    FirebaseApp.configure()
    GeneratedPluginRegistrant.register(with: self)
    return super.application(application, didFinishLaunchingWithOptions: launchOptions)
  }
}

Flutter doctor
[✓] Flutter (Channel stable, 2.10.1, on macOS 12.0.1 21A559 darwin-arm, locale en-GB)
    • Flutter version 2.10.1 at /Users/vinterantonio/Developer/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision db747aa133 (5 weeks ago), 2022-02-09 13:57:35 -0600
    • Engine revision ab46186b24
    • Dart version 2.16.1
    • DevTools version 2.9.2

[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
    • Android SDK at /Users/vinterantonio/Library/Android/sdk
    • Platform android-31, build-tools 31.0.0
    • Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.11+0-b60-7772763)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 13.3)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • CocoaPods version 1.11.2

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2021.1)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.11+0-b60-7772763)

[✓] IntelliJ IDEA Ultimate Edition (version 2021.3.1)
    • IntelliJ at /Applications/IntelliJ IDEA.app
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart

[✓] Connected device (3 available)
    • Here I Am (mobile) • 00008030-001C715C3A12802E • ios            • iOS 15.1 19B74
    • macOS (desktop)    • macos                     • darwin-arm64   • macOS 12.0.1 21A559 darwin-arm
    • Chrome (web)       • chrome                    • web-javascript • Google Chrome 99.0.4844.74

[✓] HTTP Host Availability
    • All required HTTP hosts are available

• No issues found!

Payload
    const message = {
        data: { click_action: 'FLUTTER_NOTIFICATION_CLICK' , task_id: `${taskId}`},
        notification: {
            title: 'You have a due task!',
            body: body,
        },
        apns: {
            payload:{
                aps: { 'content-available': true },
                headers:{ 'apns-push-type': 'alert', 'apns-priority':'5' },
            }
        },
        tokens: userTokens,
    }

@ToniVinter
Can you provide the payload you are sending ?
Also check this document section on how to handle notification interaction, because they work differently on Android and on iOS, so it may be a configuration thing at your end which is leading to the behavior you are reporting.
Also check this article and see if it helps.

@darshankawar , You should see the payload, updated the description.

@ToniVinter
Can you provide a minimal code sample that shows the issue ?


docs: Create new README based on latest updates

Just some adjustments to the README file to follow the latest release.
Will update it with more info as soon as we release the executables for each SO.

You're AWESOME! (and handsome )


Server panics if server.log file does not already exist

Server panics if server.log file does not already exist. I don't think this is reasonable - server should create the log file if it doesn't exist.
We already have logic that should be handling this, here:
https://github.com/scatternoodle/wflang/blob/bea3f2d3242b22ed12a6d47474119280d7af4822/cmd/server/main.go#L31-L41
Example error log:

goroutine 1 [running]:
main.setupLogging({0x7ffda7003349?, 0xc000064740?}, 0x0?)
/home/flinty/workspace/github.com/scatternoodle/wflang/cmd/server/main.go:40 +0x173
main.main()
/home/flinty/workspace/github.com/scatternoodle/wflang/cmd/server/main.go:18 +0x45
[Error - 12:47:23 AM] Server process exited with code 2.
[Error - 12:47:23 AM] Server initialization failed.
Message: Pending response rejected since connection got disposed
Code: -32097
[Info  - 12:47:23 AM] Connection to server got closed. Server will restart.
true
[Error - 12:47:23 AM] wflsrv client: couldn't create connection to server.
Message: Pending response rejected since connection got disposed
Code: -32097
panic: error opening logfile: open editors/vscode/extension/server/logs/server.log: no such file or directory

it's not the file - we're already creating with os.CREATE flag and have (redundant) handling afterword for path.NotFoundError
It's because the directory didn't exist - this is because I deleted and recloned the repo - the server/log directory doesn't get committed to the repo because it's empty (the actual logfile is .gitignored).
I think we'll want to handle ensuring the dir is there during the extension init script.


Fix dispatch issues

See #632, #633 and #634.
This doesn't cover the documentation or cmake aspects of #633; i think that's a separate job.
I'm not totally sure about the consequences of "add explicit check for architecture support in batch"; it could make for more mysterious error messages if simd_register is used directly for some reason, but I think it'll be alright.

In this batch of changes I've:

improved avx512 detection (tested with intel SDE)
updated commit message in "don't check for supported architectures in dispatch" to mention, not close issue #633, as that might need more work
moved the architecture check from batch to simd_register

I've also implemented the per-architecture build thing mentioned in #633 in my application using this -- seems to work ok!
The only thing missing is a way to get the maximum required alignment from an arch_list; I'll put in a separate PR for that.

Cheers!


Material UI floating label issue

Hey, I am facing two issues in material UI version "@material-ui/core": "^3.9.1"
When we save the password in chrome and refresh the page two issues were observed.

The floating label does not float up
The value is not present in the state unless we click anywhere on the page.

Any help is appreciated.
Thanks.

Check the warnings in the console.


Add check for port in http options

Check for port being not-null in the parsed URL prior to making a request.
Passing in a null port causes node to connect with SSL on the wrong port.
Fixes #263

Thanks!


Significantly slower autocomplete suggestions in CSS

With extension enabled, autocomplete suggestions in CSS file appear way slower than normally, with like almost a second delay...
To Reproduce
Just try typing basic CSS parameters like:
display: ...
Autosuggestions appear with huge delay. Almost no other extensions are enabled, apart from GitHub Pull requests, repositories, etc.
Disabling Better Folding fixes things immediately.
React autosuggestions in .tsx files work pretty much normally.
macOS 13.1
VSCode Version: 1.74.3 (Universal)

Just pushed a new update 0.3.1 that have a little performance boost. Would you mind trying it and see if it makes it any better?

Hey! I've just checked and there seems to be no improvement 😕 However, I've also checked something else — in a clean, new CSS file autosuggestions seem to appear pretty fast, although my CSS file has about 3K lines... Maybe that's the problem...

Here you have a comparison of autosuggestions with Better Folding enabled and disabled (CSS file ~3K lines):
https://user-images.githubusercontent.com/43424760/216797314-677d72a5-33b8-4ffe-b6d1-30b79247d6b5.mov
https://user-images.githubusercontent.com/43424760/216797315-d1bcc86a-7ce9-45df-a963-b8fbd84f1552.mov

Just published 0.4.0 which should be significantly faster. Let me know if it is any better.

Just checked it — no difference... 😕


Infix style with large expressions

Currently, this is produced by the autoformatter:
val _ =
  f x + case g x of
          nil => 0
        | x :: xs => x + List.length xs

I'm not sure if it should change, though.
One principle I'm thinking we might want to adopt is:

Modifying code should not move independent code.

This would help modification to formatted code maintain a diff primarily relevant to the code which was actually modified.
Using the current style, modifying the expression f x (e.g., turning it into (f x * 2), or separately renaming f to fLongerName) would move the entire case expression forward, which seems somewhat undesirable since the case branches haven't changed at all.
One idea would be to have the style be
e1
+ e2

which may be grouped if possible; this is consistent with how other infix operators are used (such as |>), and it makes sure the infix operator doesn't get lost at the end of a line.
One downside to this style is that renaming the infix operator itself could move blocks of code; not sure if there's a good fix to this aside from
e1
+
e2

which seems a bit verbose.

Revisiting this now that smlfmt is quite a bit more mature.
Re: don't move independent code? I think in practice this is really really difficult to accomplish without making huge sacrifices to average code readability.
As for our current handling of infix expressions, I think it's generally pretty good, but could use some improvements. Here's the current output for the above example:
val _ =
  f x
  +
  case g x of
    nil => 0
  | x :: xs => x + List.length xs

Here's also a real-world example from the smlfmt source, showing a fairly complex expression with multiple occurrences of an infix operator <&>:
https://github.com/shwestrick/smlfmt/blob/ee6a59df2470678b7459a0a0fdf7047de323b7c5/src/ast/CompareAst.sml#L78-L83
This generally seems pretty good, but I think it could be improved. For example, here's an instance I find tricky to parse because it's easy to miss the <&> at #delims ... buried in the middle:
https://github.com/shwestrick/smlfmt/blob/ee6a59df2470678b7459a0a0fdf7047de323b7c5/src/ast/CompareAst.sml#L375-L381
I would prefer for it to be formatted like this.
val checker =
  at #exp equal_exp <&> at #handlee equal_tok
  <&>
  at #elems (Seq.equal
    (at #pat equal_pat <&> at #arrow equal_tok
     <&> at #exp equal_exp))
  <&> at #delims (Seq.equal equal_tok)  (* on its own line *)
  <&> at #optbar (equal_op equal_tok)

This seems doable. One idea to try: ensure that, as soon as an element of an infix-chain requires a new-line to align, then all later <op> <exp> ... elements of the chain will be put on their own new-line as well.


Add hideDrawerButton prop to Drawer

This allows for people to hide the toggle Drawer button so that they may add a custom button somewhere else (I have one in my TabBar)

Nice PR, could you add that new property to docs?

It's already in the docs mate

Could you give me a link?

https://github.com/aksonov/react-native-router-flux/pull/2473/files#diff-96cc378dcdef180641176501f42183c7

Sorry, my fault. Thanks!

how i cant put a button in the tabbar to open and close the drawer? like the image.  RNRF V4

it's a custom implementation; I've built my own tabBarComponent and added a button that onPress calls drawerOpen. Please refer to gitter or stackoverflow is you have any other questions


Option to hide macOS Native Tabs in Zen Mode, but revealed when cursor reaches top.

Type: Feature Request
It would be nice if there was a "Zen Mode" option to hide "macOS Native Tabs" when fullscreen. The tabs would only reveal when the cursor reaches the top of the screen, like how the title bar currently reveals itself. It would save some 55px screen space from something I don't need to see all the time in Zen Mode.
I'm thinking this is a macOS thing and not something that can be fixed, but thought I would try asking just in case. For what it's worth, Safari tabs (assuming they're using the same native tabs) seem to do the desired behavior when Safari is full screened with "View > Always Show Toolbar in Full Screen" disabled.
Current Behavior:
https://user-images.githubusercontent.com/892610/221699207-71cb6d2b-dcfa-4133-9418-2277801c8d3d.mov
Desired Behavior as an option (Safari):
https://user-images.githubusercontent.com/892610/221702370-4185bc6e-a874-4ebf-a2bc-a01f76602c2c.mov

VS Code version: Code 1.75.1 (Universal) (441438abd1ac652551dbe4d408dfcec8a499b8bf, 2023-02-08T21:34:59.000Z)
OS version: Darwin arm64 22.3.0 (macOS Ventura 13.2.1)
Modes:
Sandboxed: Yes
Extensions: fish-vscode, Markdown Editor, One Dark Pro, Open Multiple Files

This feature request is now a candidate for our backlog. The community has 60 days to upvote the issue. If it receives 20 upvotes we will move it to our backlog. If not, we will close it. To learn more about how we handle feature requests, please see our documentation.
Happy Coding!

This feature request has not yet received the 20 community upvotes it takes to make to our backlog. 10 days to go. To learn more about how we handle feature requests, please see our documentation.
Happy Coding!

:slightly_frowning_face: In the last 60 days, this feature request has received less than 20 community upvotes and we closed it. Still a big Thank You to you for taking the time to create this issue! To learn more about how we handle feature requests, please see our documentation.
Happy Coding!


Tweak won't compile with x86_64

Tried the other fixes for the other issues. Didn't work
https://pastebin.com/BJqZWNgA
Thanks!

I get this issue too.

You are trying to compile tweaks for x86_64 but it’s clear that the SDK you are using is for iOS. Make sure you set TARGET to simulator.

@poomsmart: I get this issue when running make setup...

@nullpixel Are you sure TARGET variable isn’t being overrided by something else?

@poomsmart: I don’t see why it would be. I’m running a default Theos build with no modifications. I don’t see what it’d be tbh

@nullpixel @Chr0nicT What version of Xcode are you guys using? And are you using latest Theos?
Build succeeded for me using both Xcode 9.4.1 and Xcode 10.2.1 with the latest Theos.
bin/resim
bin/simject.dylib
bin
==> Cleaning…
==> Cleaning…
> Making all for tool resim…
==> Compiling resim.mm (x86_64)…
==> Linking tool resim (x86_64)…
==> Generating debug symbols for resim…
==> Merging tool resim…
==> Signing resim…
Copying binaries...
/Users/karen/Development/simject/resim/.theos/obj/macosx/debug/resim -> ../bin/resim
> Making all for tweak simject…
==> Preprocessing simject.xm…
==> Compiling simject.xm (x86_64)…
==> Linking tweak simject (x86_64)…
==> Generating debug symbols for simject…
rm /Users/karen/Development/simject/simject/.theos/obj/iphone_simulator/debug/x86_64/simject.xm.mm
==> Preprocessing simject.xm…
==> Compiling simject.xm (i386)…
==> Linking tweak simject (i386)…
==> Generating debug symbols for simject…
rm /Users/karen/Development/simject/simject/.theos/obj/iphone_simulator/debug/i386/simject.xm.mm
==> Merging tweak simject…
==> Signing simject…
Copying binaries...
/Users/karen/Development/simject/simject/.theos/obj/iphone_simulator/debug/simject.dylib -> ../bin/simject.dylib
Password:
/opt/simject/simjectExampleTweak.dylib
/opt/simject/simjectExampleTweak.plist
/opt/simject/simject.dylib
/opt/simject/simject.plist
/opt/simject
bin/simject.dylib -> /opt/simject/simject.dylib
simject/simject.plist -> /opt/simject/simject.plist
/opt/simject/simject.dylib: replacing existing signature
Done. Place your tweak's dynamic libraries and accompanying property lists inside /opt/simject to load them in the iOS Simulator.
JazzuBook003:simject karen$ xcodebuild -version
Xcode 10.2.1
Build version 10E1001
JazzuBook003:simject karen$

bin/resim
bin/simject.dylib
bin
==> Cleaning…
==> Cleaning…
> Making all for tool resim…
==> Compiling resim.mm (x86_64)…
==> Linking tool resim (x86_64)…
==> Generating debug symbols for resim…
==> Merging tool resim…
==> Signing resim…
Copying binaries...
/Users/karen/Development/simject/resim/.theos/obj/macosx/debug/resim -> ../bin/resim
> Making all for tweak simject…
==> Preprocessing simject.xm…
==> Compiling simject.xm (x86_64)…
==> Linking tweak simject (x86_64)…
==> Generating debug symbols for simject…
rm /Users/karen/Development/simject/simject/.theos/obj/iphone_simulator/debug/x86_64/simject.xm.mm
==> Preprocessing simject.xm…
==> Compiling simject.xm (i386)…
==> Linking tweak simject (i386)…
==> Generating debug symbols for simject…
rm /Users/karen/Development/simject/simject/.theos/obj/iphone_simulator/debug/i386/simject.xm.mm
==> Merging tweak simject…
==> Signing simject…
Copying binaries...
/Users/karen/Development/simject/simject/.theos/obj/iphone_simulator/debug/simject.dylib -> ../bin/simject.dylib
Password:
/opt/simject/simjectExampleTweak.dylib
/opt/simject/simjectExampleTweak.plist
/opt/simject/simject.dylib
/opt/simject/simject.plist
/opt/simject
bin/simject.dylib -> /opt/simject/simject.dylib
simject/simject.plist -> /opt/simject/simject.plist
/opt/simject/simject.dylib: replacing existing signature
Done. Place your tweak's dynamic libraries and accompanying property lists inside /opt/simject to load them in the iOS Simulator.
JazzuBook003:simject karen$ xcodebuild -version
Xcode 9.4.1
Build version 9F2000
JazzuBook003:simject karen$

@angelXwind latest theos with the latest Xcode 10. I also have the Xcode 11 beta installed if that matters.

It might be possible that you have SDKVERSION and/or SYSROOT set that point to the native iOS SDK, which is clearly not for simject. Related issue: https://github.com/angelXwind/simject/issues/49

Closed for inactivity.


Update Chinese Localization

This PR includes the latest translations for zh-CN and zh-TW, and cleans up outdated strings.

@cirx1e


Readme small improvements

Removing broken badges, add image availability from pypi

Codecov Report

Merging #214 (6b92cb7) into master (d266983) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #214   +/-   ##
=======================================
  Coverage   93.05%   93.05%
=======================================
  Files           7        7
  Lines         216      216
=======================================
  Hits          201      201
  Misses         15       15

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 d266983...6b92cb7. Read the comment docs.

Codecov Report

Merging #214 (6b92cb7) into master (d266983) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #214   +/-   ##
=======================================
  Coverage   93.05%   93.05%
=======================================
  Files           7        7
  Lines         216      216
=======================================
  Hits          201      201
  Misses         15       15

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 d266983...6b92cb7. Read the comment docs.


AnyValue {} for third party types

Hello again,
I need to use some types that comes from a third party library but obviously they don't implement #[derive(Component)]. I looked at the doc and tried to do something like this
#[derive(Debug, Deserialize, Component)]
pub struct SampleStruct {
    ...
    #[component(value_type = Object)]
    pub rtp_capabilities: RtpCapabilities,
    ...
}

but sadly it stills tries to create a ref to something that doesn't exist
"rtp_capabilities": {
  "$ref": "#/components/schemas/RtpCapabilities"
},

what I would like instead is a way to specify that I want any kind of Object in #[component]. Obviously it would be better to actually have the correct type, but this would at least create a correct OpenAPI file that I can use.
Or maybe I'm missing something?

Yeah, this is not supported by desing actually. There is no way currently define object type and reason for this is that it is not helpful for users to see when they browse the OpenAPI doc or Swagger UI that the endpoint will return object which could contain anything. This might be a bit furstrating but for API consumers is a lot more helpful to see the actual types instead of any. If the OpenAPI spec was to be written manually it still has the need to define all the fields of the object.
But a way to get around this is to define type as a Map e.g. HashMap<String, String> since maps are by OpenAPI spec rendered as object types.
Support for this though could be added, but defining just an object is cheating and re-creating a type which has a lot of fields feels annoying.

Yeah I know it's cheating, I'm only using the generated OpenAPI spec to generate a rust client to use internally so it's not really important to me if I have some objects that aren't defined. I suggested this as a simpler solution for the time being; correct serialization of third-party struct would be better of course.

Sure, such a case overriding the actual type as object could be reasonable. This is something that need to be addressed in the desing itself. But should not be a big addition though. I'll add note of this to the projects kanban board.

#168 duplicate touches the same matter.


Please invite me to the GitHub Community Organization

Please invite me to the GitHub Community Organisation.

Name:

Ozioma

Discord Username(if exists):

Additional Context: Twitter

Welcome @OfficialOzioma


#161255248 Users can  follow each other

What does this PR do?
It adds the following endpoints for user-following functionality:

/api/profile/<username>/follow
/api/profile/<username>/followers
/api/profile/<username>/following

Description of Task to be completed?

Users can follow each other
Users can unfollow each other
Users can see their followers and other users followers
Users can see who they follow and who other users follow
Users cannot follow themselves

How should this be manually tested?

Clone the repo then cd into the ah-maps folder
RUN python manage.py runserver
Use POSTMAN
Create a user through the /api/users/ endpoint and login
POST the /api/profile/<username>/follow endpoint to follow a user
DELETE the /api/profile/<username>/follow endpoint to unfollow a user
GET the /api/profile/<username>/followers endpoint to get user's followers
GET the /api/profile/<username>/following endpoint to get users's following

What are the relevant pivotal tracker stories?
#161255248
Screenshots
Follow a user

Unfollow a user

Get Followers

Get Following

Pull Request Test Coverage Report for Build 271

114 of 125 (91.2%)  changed or added relevant lines in 4 files are covered.
3 unchanged lines in 1 file lost coverage.
Overall coverage decreased (-0.4%) to 91.42%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

authors/apps/profile/api/serializers.py
13
15
86.67%

authors/apps/profile/models.py
11
13
84.62%

authors/apps/profile/api/views.py
61
68
89.71%

Files with Coverage Reduction
New Missed Lines
%

authors/apps/authentication/views.py
3
83.44%

Totals

Change from base Build 265:
-0.4%

Covered Lines:
927

Relevant Lines:
1014

💛  - Coveralls


define a schema and find the tools for its validation

Let's say I:

found a bunch of sources for Ukrainian
or started from English as it has a lot of standardised dictionaries
or found some Polish resource

Now, by processing those sources one-by-one, the schema will probably change a few times.
Manually editing 50 verbs is OK, but for 1000 is sounds like giving up on repo.
So there should be a tool - even if it's some smart grep/awk/etc one-liner - which would update the schema change with the default values.
As my data model will probably be more relational than document-like, I hope JSON should still be OK.
But for the mappings - should it also be JSON?
And for the Clients (like my private repo app) - how should they consume a "version diff"?

Tool source: https://github.com/python-jsonschema/jsonschema
MacOS command line version: brew install check-jsonschema
Usage:
check-jsonschema --schemafile schema.json ukrainian.json

Now I want to add this as Github Action - preferably git push should fail in case of schema mismatch.

Debugging GA: brew install act
View the valid jobs with act --list
Run my job for this PR: act -j validate-json-schema --container-architecture linux/amd64.
Docker daemon can be implicitly started by opening Docker desktop app.


Path errors with Angular SSR with non-root app path (base href)

I'm trying to deploy Angular SSR app to AWS Lambda with aws-serverless-express. It works fine when the app is deployed to the root ('/').
However, when the app is deployed to a path below "/" (e.g., using base href="/subpath"), it generates an error while fetching javascript files. The error message itself does not seem very relevant:
Failed to load module script: The server responded with a non-JavaScript MIME type of "text/html". Strict MIME type checking is enforced for module scripts per HTML spec.

It appears that the app is trying to fetch a javascript file from the root (e.g., https://www.examle.com/main-es2015.e109c3b5d6a84a8fab36.js) rather than the correct path (e.g., https://www.examle.com/subpath/main-es2015.e109c3b5d6a84a8fab36.js). This request presumably generates 404 page, and the error message is simply a side effect of receiving html error page instead of the request javascript file.
I spent quite a bit of time trying to understand this problem, and it does not appear to be an Angular Universal issue. It works fine locally. The only time I run into this problem is when I deploy it to Lambda using aws-serverless-express. There seems to be an issue with path mapping in the implementation of awsServerlessExpress.proxy().
My guess at this point is, awsServerlessExpress does not honor base href in index.html. (I see the same problems with files like manifest.webmanifest when non-root base href is set.)

FYI, I use Application Load Balancer/Listerner pointing to a target group (lambda target) with non-empty pathPattern. I am not entirely sure how ALB and lambda interact in terms of path mappings, etc.

Can you try this on v4? v3 didn't support ALB.

Can you try this on v4? v3 didn't support ALB.


No such option --config-path

How did you install matrix-registration?
docker
What python version are you running?
No response
What version of matrix-registration are you running?
0.9.1
Your config.yml
No response
Your error log
no such option `--config-path`

Area of your issue?
general usage
What happened
the docker container does not allow to run the image with the --config-path option
Steps to reproduce
create a docker compose file
add
command: --config-path ./my-config.yaml serve

Can you post your entire docker-compose file?

`
services:
  chat-registration:
    image: zeratax/matrix-registration:v0.9.1
    volumes:
      - ./:/data
    command: --config-path ./my-config.yaml serve


Show combined coverage

Once #62 is fixed we can show unit and integration test coverage separately but not together. The goal for this issue is to show them as a whole as well.

This tool can help to combine coverage profiles: https://github.com/modocache/gover

@baijum no this tool doesn't help. I use gocovmerge here #107 which is quite easy: https://github.com/almighty/almighty-core/pull/107/files#diff-552b9cf9c536f6f705ab73d1ab26b005R120


Twitter not working even with updated service

So I was reading #45 to fix an error that I have when using twitter oauth Error 32 (Could not authenticate you). #45 talks about how to fix it by replacing the twitter code with
$http({
        method: "post",
        url: "https://api.twitter.com/oauth/request_token",
         headers: {
                  "Authorization": signatureObj.authorization_header,
                  "Content-Type": "application/x-www-form-urlencoded"
         },
        data: "oauth_callback=" + encodeURIComponent("http://localhost/callback")
})

However the issue still persists even after this, I am using it on an actual android device not serve or live. I am also using code directly from documentation in the controller
    $scope.twitterLogin = function() {
        $cordovaOauth.twitter('xxxxxxxx', 'xxxxxxxxx').then(function(result) {
            // results
            console.log("Success");
            console.log(result);
        }, function(error) {
            // error
            console.log("Failure");
            console.log(error);
        });
    }

I'll try it again this weekend to see if something changed, but I get asked similar questions all the time and it always turns out to be a configuration issue rather than an issue with the library.
You might try this in the temporary:
https://github.com/nraboy/ng-cordova-oauth-example
@saimon24 also has written several tutorials and extensions for Twitter.  Including him in the conversation in case he has any opinions.
Best,

Hi, this change again
$http({
        method: "post",
        url: "https://api.twitter.com/oauth/request_token",
         headers: {
                  "Authorization": signatureObj.authorization_header,
                  "Content-Type": "application/x-www-form-urlencoded"
         },
        data: "oauth_callback=" + encodeURIComponent("http://localhost/callback")
})

Use without data
    var oauthObject = {
       oauth_consumer_key: clientId,
        oauth_nonce: $cordovaOauthUtility.createNonce(10),
        oauth_signature_method: "HMAC-SHA1",
        oauth_timestamp: Math.round((new Date()).getTime() / 1000.0),
        oauth_version: "1.0"
     };

     var signatureObj = $cordovaOauthUtility.createSignature("POST", "https://api.twitter.com/oauth/request_token", oauthObject,  { oauth_callback: redirect_uri }, clientSecret);

      $http({
          method: "post",
          url: "https://api.twitter.com/oauth/request_token",
          headers: {
               "Authorization": signatureObj.authorization_header,
               "Content-Type": "application/x-www-form-urlencoded"
          }
      })

and Twitter work fine
According the api doc:
OAuth parameters are not always sent the same way as other parameters. If you’re using HTTP-header based OAuth, you shouldn’t include oauth_ parameters in the POST body or querystring.*
https://dev.twitter.com/oauth/reference/post/oauth/request_token

I just tried it myself:
https://github.com/nraboy/ng-cordova-oauth-example
I have no problems, thus it being a configuration on your end with the Twitter dashboard.
Best,

So I followed your advice and tried doing nothing but ng-cordova-oauth-example and it still fails for me. So as you suggested you assume its something with my twitter dashboard app setup, any idea what needs to be done?  I am creating a brand new app, default everything, adding name and description and I still get the error. I have also tried adding http://localhost/callback as a callback and twitter does not let me.

Use a different URL for your Twitter callback.  Twitter doesn't care what you use as long as you use one.
Regards,


[Impeller] Run existing scenario app tests with impeller enabled as well.

Related to https://github.com/flutter/flutter/issues/113056
We're already running some simulator tests on iOS simulators. We should run the same with impeller enabled as well.
@jmagman @cyanglaz @chinmaygarde fyi

Assigning myself to take a quick crack at this.

It's run here:
https://github.com/flutter/engine/blob/main/testing/scenario_app/run_ios_tests.sh#L41.
This looks actually pretty tricky to do both, because we need to set FLTEnableImpeller in the Info.plist but unfortunately property lists don't let you pass in a build setting as a boolean value.
xcodebuild -sdk iphonesimulator ENABLE_IMPELLER=YES
xcodebuild -sdk iphonesimulator ENABLE_IMPELLER=NO

Meaning there's no version of this:
<key>FLTEnableImpeller</key>
<boolean>$(ENABLE_IMPELLER)</boolean>

Only:
<key>FLTEnableImpeller</key>
<false/>

<key>FLTEnableImpeller</key>
<true/>

Better idea, have 2 Info.plist files and swap them out:
xcodebuild -sdk iphonesimulator \
  -scheme Scenarios \
  -destination 'platform=iOS Simulator,OS=13.0,name=iPhone 8' \
  clean test \
  FLUTTER_ENGINE="$FLUTTER_ENGINE"
  INFOPLIST_FILE="Scenarios/Info_Impeller.plist"


Ignore Tasks and Versions as Ayon folder types

The processor was adding 'Version' and 'Task' as folder types although those shouldn't even be versions.
Moreover, there's still a bug where match_shotgrid_hierarchy_in_ayon is creating the versions as folder entities:

@Minkiu looking at the code I see there's this logic:
        # If we couldn't find it we create it.
        if ay_entity is None:
            if sg_entity.get("shotgridType") == "AssetCategory":
                ay_entity = get_asset_category(
                    entity_hub,
                    ay_parent_entity,
                    sg_entity["name"]
                )

            if not ay_entity:
                ay_entity = _create_new_entity(
                    entity_hub,
                    ay_parent_entity,
                    sg_entity
                )

We shouldn't be creating the new entity if it's not found right? Should we add a validation on the if not ay_entity to ignore those SG entity types too?

This now is suffering from this error:
2024-01-30 00:35:14 DEBUG      Created new AYON entity: <FolderEntity - 6f28d2fcbf0711ee9d398203d8d8d097>
2024-01-30 00:35:14 ERROR      Operation "6f28ff34bf0711ee9d398203d8d8d097" failed with data:
{
    "type": "create",
    "entityType": "folder",
    "entityId": "6f28d2fcbf0711ee9d398203d8d8d097",
    "data": {
        "name": "000_tst2_010_main_edit_v001",
        "folderType": "Version",
        "parentId": "37a67c208e2f11eeb4e0de92b3f3d729",
        "attrib": {
            "shotgridId": 320040,
            "shotgridType": "Version"
        }
    },
    "id": "6f28ff34bf0711ee9d398203d8d8d097"
}
Detail: Key (folder_type)=(Version) is not present in table "folder_types"..
2024-01-30 00:35:14 INFO       Event has been processed... setting to finished!
2024-01-30 00:35:14 INFO       Waiting 10 seconds...
2024-01-30 00:35:24 INFO       Running the Handler <module 'shotgrid_event'>
Connecting to server "http://ayon"
Logged in as user "service"
2024-01-30 00:35:24 DEBUG      Succesfully connected to Shotgrid.
2024-01-30 00:35:25 INFO       Project dev_000 <dev_000> already exists in AYON.
2024-01-30 00:35:25 INFO       Project dev_000 (dev_000) <3909> already exists in Shotgrid.
2024-01-30 00:35:25 DEBUG      Transforming sg_entity '{'type': 'Version', 'id': 320040, 'code': '000_tst2_010_main_edit_v001', 'sg_status_list': 'rev', 'tags': [], 'project': {'id': 3909, 'name': 'dev_000', 'type': 'Project'}, 'entity': {'id': 59142, 'name': '000_tst2_010', 'type': 'Shot'}, 'sg_ayon_id': None, 'sg_ayon_sync_status': None}' to ayon dict.
2024-01-30 00:35:25 WARNING    Shotgrid Missing Ayon ID
2024-01-30 00:35:25 ERROR      Unable to process handler shotgrid_event
2024-01-30 00:35:25 ERROR      'NoneType' object has no attribute 'lower'

    Traceback (most recent call last):
      File "/service/processor/processor.py", line 161, in start_processing
        handler.process_event(
      File "/service/processor/handlers/shotgrid_event.py", line 45, in process_event
        hub.react_to_shotgrid_event(sg_payload["meta"])
      File "/service/ayon_shotgrid_hub/__init__.py", line 335, in react_to_shotgrid_event
        update_ayon_entity_from_sg_event(
      File "/service/ayon_shotgrid_hub/update_from_shotgrid.py", line 213, in update_ayon_entity_from_sg_event
        ["task" if sg_entity_dict.get(CUST_FIELD_CODE_ID).lower() == "task" else "folder"]
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    AttributeError: 'NoneType' object has no attribute 'lower'


Refine a measure of stability/ volatility as overall funding levels grow

There was some interesting conversation about stability and volatility of a recipient's funding level during the discussion of issue #1041, "add $100 as a tip option". Briefly, the consensus was to up the maximum tip to $100 for the sake of supporting overall growth in the platform. These large tips create volatility in an individual's funding level, but we accept that volatility in order to support rapid growth.
Two core goals of gittip are to support people at a living wage level, and to give people stability in funding. As people start to reach a living wage level, we may see some people choose to leave their jobs based on gittip funding. These people need accurate, objective measures of the stability of their funding.
It seems we could make a formula that condenses stability down to a single number, but I'm wary of telling people their funding is stable when we can't really promise that. This seems especially important as people make significant life decisions around their level of funding. It seems the best approach might be to give accurate statistics related to stability/ volatility, and share the patterns that we see about funding overall.
The key metrics regarding stability of funding seem to be:

tip size distribution
how long someone has been tipping you

Here's an interesting long-term thought, related to stability. We allow people to set funding targets. If we could measure stability, could we allow people to set stability targets as well? For example, if you get $1000/ week through ten $100 tips, that is not as stable as forty $25/week tips. Could people set their own maximum tip level, or maximum number of tips at any given level?
I obviously value stability, but I can accept volatility as long as the recipient has an accurate sense of the volatility of their current funding level.
These concerns may seem far off, but we are one order of magnitude away from the top recipients receiving something close to living wages.

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

Closing in light of our decision to shut down Gratipay.
Thank you all for a great run, and I'm sorry it didn't work out! 😞  💃


Self signed certificate does not work

1. What version of Caddy are you running (caddy -version)?
Caddy 0.9.3
2. What are you trying to do?
Run caddy locally with TLS using its self signed certificate.
3.
Run it without any additional parameters caddy. Nothing special.
5. What did you expect to see?
caddy to run a web service with TLS.
6. What did you see instead (give full error messages and/or log)?
It starts asking for Let's Encrypt email because I think, it's not trying to create a self-signed certificate.
Activating privacy features...
Your sites will be served over HTTPS automatically using Let's Encrypt.
By continuing, you agree to the Let's Encrypt Subscriber Agreement at:
  https://acme-v01.api.letsencrypt.org/terms
Please enter your email address so you can recover your account if needed.
You can leave it blank, but you'll lose the ability to recover your account.
Email address:

7. How can someone who is starting from scratch reproduce this behavior as minimally as possible?
echo "tls self_signed" > Caddyfile
caddy

Your Caddyfile must start with the address of the site to serve. ;)

Sorry my bad 🙈. Have another problem now.
Caddyfile:
localhost:2016
tls self_singed

Log output:
Activating privacy features... done.
https://localhost:2016
WARNING: File descriptor limit 256 is too low for production servers. At least 8192 is recommended. Fix with "ulimit -n 8192".

When I visit https://localhost:2016 in Chrome, it says "This site can’t provide a secure connection". Error code is "ERR_SSL_PROTOCOL_ERROR"

Self-signed certificates are not trusted by browsers.

There should be a prompt to bypass a security warning, you'll have to click advanced to do that.

But the browser tells us about invalid certificate when the certificate is not trusted. Instead, now it says ERR_SSL_PROTOCOL_ERROR

@mholt There is no advanced option like there is usually when using invalid certificate.

Hm, well, it works for me (just tried again) -- so without further details to replicate the behavior you're seeing or without further error details I'm not sure what more I can do to help here.


services: email: fix first_commit_sha

Simple bug fix: first_commit['id'] not :id.
This was breaking the email notifications.

Fixes issue #215


Allow running Deployer on Power

In CP4D 4.8, broader support for Power is available. Allow deployer to run on Power.

Hi Frank,
If I could help on this, don't hesitate.
I quickly try to rebuild the container, but some product seems to be hardcoded to x86.
helm and some other are available on ppc64le, but I have some difficulties with openjdk-9.
Can we use openjdk-8 or other version (11,17,21) which are supported and can be easily setup with yum/dnf ?

Hi @schabrolles I made some initial changes to remove the Dockerfile x86 dependencies. Java and helm are only needed for CP4BA, hence deployer now only installs them if CP4BA is seelcted. Additionally I have removed olm-utils (v1) image from the Dockerfile as there is no Power version of it.
I would appreciate if you can test the changes in the deployer-power branch on your cluster.

Hi @fketelaars
I make it work after some cleaning anf changes:

in the Dockerfile:

Use a non-official valut port for Power (hashicorp doesn't provide them)
Add gcc and python devel to rebuild missing python dependencies during pip install
Workaround to build wheel due to some cython and PyYaml issues

Fixing some hardcoded x86 binary download in shell script and Ansible

Create an ARCH variable (using uname -m) in order to automatically set the right arch when downloading files.

a container image is available here: quay.io/schabrolles/cloud-pak-deployer:latest
I've already tested it to deploy CP4D 4.8.3 with DB2 OLTP on Power, but we should share it with others for further testing.

Thanks @schabrolles , that is great news! Will pull in other resources who can test as well.


Add more app spaces to the default home screen

On larger devices, I feel it would be better to allow more applications to be visible on the home screen. Currently on my oneplus 7p i have 6 applications (the maximum). I have room for 10 at least

Agreed!  There is room for some good improvement here.  Ideally, I would like to try and come up with a way to limit the home apps based on the actual device screen size (instead of just hard-coding the value)...
All that said, I think this is pretty much a duplicate of https://github.com/jkuester/unlauncher/issues/89


App build failed with undefined: paint & NewPaint

go version :
go1.18.1 darwin/arm64
nuxui version :
<EMAIL_ADDRESS>os & cpu arch
darwin/arm64
What did you do?
nux build -target=iossimulator -bundleid="app.id" -teamid="YOURTEAMID" .
What did you expect to see?
Build the app successfully
What did you see instead?
App build failed with this error:
go/pkg/mod/nuxui.org/nuxui@v0.1.0/nux/paint.go:33:12: undefined: paint
go/pkg/mod/nuxui.org/nuxui@v0.1.0/nux/image_svg.go:114:10: undefined: NewPaint

@bashery It looks like your go env not handle build tag //go:build !android correcttly
Try modify file nuxui/nux/paint_other.go:
--//go:build !android
++//go:build (linux || windows || darwin) && (!android)

There is no file named paint_other.go .
I tried modifying path.go path_cairo.go path_darwin.go path_ios.go path_win.go respectively, and the error persists.
Maybe I didn't understand the solution well or I got something wrong

@bashery is paint not path,  paint_other.go

@bashery sorry, my bad, i check github file, it has not paint_other.go

@bashery I pushed missing files, update samples, and build it
cd samples
git pull
cd hello
go mod tidy
go build .

I don't know why git untracked these files😅
The following paths are ignored by one of your .gitignore files:
nux
hint: Use -f if you really want to add them.
hint: Turn this message off by running
hint: "git config advice.addIgnoredFile false"
mustodo@nuxart nux % git add -f *.go
mustodo@nuxart nux % git status
On branch master
Your branch is up to date with 'origin/master'.

Changes to be committed:
  (use "git restore --staged <file>..." to unstage)
        new file:   filedialog_android.go
        new file:   font_android.go
        new file:   paint_android.go
        new file:   paint_other.go
        new file:   path_android.go

but ignore file is
.DS_Store
.vscode
.stfolder
*.exe
*.out
*.app
*.apk
*.old

yes! it's working. Thank you so much

I found it caused by~/.gitignore_global 😅


[Bug] From my Android TV I have tried to connect my DualShock 4 (PlayStation 4 controller) and it does not detect it

Checklist

[X] I will only use English in my report.
[X] I have used the search function for open and closed issues to see if someone else has already submitted the same bug report.
[X] I will describe the problem with as much detail as possible.

Questions

[X] xCloud officially supports my country/region.
[ ] The bug doesn't happen when I disable Better xCloud script.
[ ] The bug didn't happen in previous Better xCloud version (name which one).

Device
TV
Device
Xiaomi TV p32
Operating System
Android 11
Android app/Browser Version
Without
Better xCloud Version
0.22.0
Game list
Fortnite (The only one I tried )
Reproduction Steps
I connected the controller and opened the game, it loaded correctly but the controller does not work. It was not detected in the menu either.
Screenshot/video
No response

https://www.xda-developers.com/android-11-trouble-getting-games-recognize-their-controllers/


REQUEST: Include CyanogenMod also

Firstly, I thank you for your efforts to preserve the last builds of many devices. Something that I wish was inherent to the Lineage project.
As Lineage came from CyanogenMod, and many older devices never received a Lineage build, I have some builds of older CyanogenMod-only devices that would be great to be included here for archival.

As much as I regret it, archiving CyanogenMod builds is out of scope for this project.
The builds were signed with publicly-known keys (so there is no real way for me to verify the legitimacy of provided builds), and given that there won't be any new builds that appear it is also unnecessary to hook them up to an automated archive.
If you have any builds present locally, I would just recommend to upload them to archive.org. You also have my blessing (not that you'd need it) to modify the lineage-build-archiver to accommodate a static set of CyanogenMod builds and host the index yourself, if you desire to do so.

Is there an estimate of total space required for a full archive of what is already present?

For the LineageOS archive, all builds that are currently archived sum up to 2618 Gigabytes. Archiving one of each device and version would take approximately 1107 Gigabytes (although I should probably update the calculation, the average build size is heavily skewed by now). Archiving all build that the archive has ever known to exist (i.e. ones that were on disk at some point but pruned) would take 19106 Gigabytes.
For a potential CyanogenMod archive I have no data, those builds are scattered all over the internet. The average build size was probably also a lot smaller back then.

Updated the size calculation, archiving one of each™ build for LineageOS would currently take 925 Gigabytes.
As for CyanogenMod, judging by multiple archives, the size would end up somewhere between 868 Gigabytes and 1513 Gigabytes, plus whatever is available on the WayBack Machine and in other third-party archives.


Validating nullable types

Problem:
There are services that reuse the same model in request body and response body. At times the model has a sensitive property like password or storageAccountKey that is required while the model is being used as in the request body and when the service sends the same model back in the response, it sets those sensitive properties with a null value. Now sway will fail with an error null is not a valid "string" type. This is theoretically correct, but it is a noise in the current context.
Many people in the open api community support "x-nullable": true as an extension in their tool chain.
A possible solution:
It would be nice if all the model properties that are not marked as required or the properties that have "x-nullable": true, should be made as a oneOf of that property type or null type. That would indicate z-schema to validate the property correctly.
Transforming the model from this:
"Animal" : {
   "type": "object",
   "required": [ "id", "secretPetName" ]
  "properties": {
      "name": {
        "type" : "string"
      },
       "isWild": {
        "type" : "boolean"
      },
      "id": {
        "type" : "string"
      },
      "secretPetName": {
        "type" : "string",
        "x-nullable": true
      },
    }
}

to this:
"Animal" : {
   "type": "object",
   "required": [ "id" ]
  "properties": {
      "name": {
        "oneOf": [
          { "type" : "string" },
          { "type" : "null" }
        ]
      },
       "isWild": {
        "oneOf": [
          { "type" : "boolean" },
          { "type" : "null" }
        ]
      },
      "id": {
        "type" : "string"
      },
      "secretPetName": {
        "oneOf": [
          { "type" : "string" },
          { "type" : "null" }
        ]
      },
    }
}

Note that we did not change id, since that is a required property. We only modified, optional properties and properties that were marked as "x-nullable": true

Again this should simply be an internal in memory representation of the swagger that is used for validating models. These transformations are not required for semantic validation (since oneOf is not supported in Open API specification 2.0).

This is what custom validators is for.  Since you're referring to using a vendor extension, you would need to register your own validator.  This is possible via Sway.registerValidator or using options.customValidators when using Sway.create(options).  One thing that isn't available yet is the ability to register custom validators for request/response validation.  I've created an issue that I'll link against.

Sounds good.

But this is more than a vendor extension. I want to be supporting nullable types for all the model properties that are not required, apart from the ones that have x-nullable: true present for them?
How would one go about doing that via registerValidator

The point I'm trying to make is that OAS doesn't have a concept of nullable so you're asking sway to do something that isn't supported natively in OAS.  So you'd have to do this with a vendor extension and a custom validator (#171) to enforce it.

Ah I see..


Bump dependencies and new release?

Hi!
Development seems to be paused right now. Could you please consider bumping the dependencies again and push another release so that the latest version is available via maven?
Thanks and keep it up!

Ideally containing the fix for #18 😏

Speaking of dependencies, even while mostly unrelated to this issue...
Here's a little FYI for everyone trying to deploy this in an OSGi environment: you need at least version 2.0.1-RC1 of the microprofile-rest-client-api or the runtime deployment won't work (due to unresolvable dependencies on CDI and MircoProfile Config).
Hope this helps

I have plan to bump dependencies, yes. I think I can do this in a few weeks, sorry for delay.

No worries, I have another PR coming (needed for OSGi compatibility). Hope to get it done later today.

Also, there might might be another bugfix required for microprofile-rest-client-api so holding off is actually a good thing right now. I'll keep you posted if and when things got resolved.

No worries, I have another PR coming (needed for OSGi compatibility). Hope to get it done later today.

There you go: #20

I'm also interested in this for https://github.com/ma1uta/jmsdk/pull/11

Also, there might might be another bugfix required for microprofile-rest-client-api so holding off is actually a good thing right now. I'll keep you posted if and when things got resolved.

This needs some further work. So if you want to bump deps and release, please go ahead. Please remember to update the rest client as described above.

Done in https://github.com/ma1uta/jmsdk/commit/f3c8bed45a7b3deeff10f8532dcbb71376dedd1c I'm going to publish release.

I use microprofile 3.3: https://github.com/ma1uta/jmsdk/blob/master/jmsdk-bom/pom.xml#L58

Ah, right. Well, in that case I need to maintain my own fork for the time being. Even the latest  microprofile (4.0.1) still provides only microprofile-rest-client-api 2.0, for obvious reasons.
I'll close this issue. I'll ask for a microprofile bump when they released a version that includes the rest API >= 2.0.1. That's probably going to take a while.
Thanks

Ok, I'll reopen until 0.13.0 is actually released 😎 (please do)

I'm trying but stuck on error when building the master:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.0:compile (default-compile) on project jackson-support: Compilation failure
[ERROR] ~/dev/jmsdk/jackson-support/src/main/java/module-info.java:[31,52] module not found: com.fasterxml.jackson.jaxrs.json

I think I'll fix this.

Yep, I've also been looking into this and couldn't find a solution.
OTOH, glad you updated MapStruct to >= 1.4.0 since they had an issue with Java 11 modules (java.sql.Date missing).

About the Jackson issue: since things aren't getting fixed upstream, how about reverting the earlier version bump from 2.12.3 back to 2.11.2? I think I could confirm 2.12.0-rc2 as being the culprit, so the latest in the 2.11 series, i.e. 2.11.4 should also be fine.
This way we could get things going again...

Ok, I have release 0.13.1 (jeon and jmsdk) with jackson 2.11.4, please see, does it works?

Yep, works for me. Should we open a issue to remind ourselves about the pending upstream issue, or keep this one open?

As you wish :)


Hello, the cloudflare R2 destination path is wrong

Hello, there is a new problem, I set the upload root folder source-dir: koobaiblog upload, after uploading to cloudflare R2 files are not in the root directory, but automatically create a new "/" folder. I didn't set destination-dir either

Yeah, I'll fix that shortly


explore deprecating nodejs-repo-tools

Hey @fhinkel :wave: I'm moving the conversation from https://github.com/googleapis/google-cloud-node/issues/2868:

nodejs-docs-samples and nodejs-getting-started is still using many of the test commands and things like repo-tools.getRequest() in the test code.

I wonder if we could break the test helpers into their own more target tool, perhaps a library called test-helpers?
Could you go into some details about your use-case?

@bcoe I'm still discovering new ways of how repo-tools is used 🤣
We use it in tests to make http request. getRequest() adds some logic based on environment variables. https://github.com/GoogleCloudPlatform/nodejs-getting-started/blob/master/2-structured-data/test/_api-tests.js#L16
And we're using it to run the tests
https://github.com/GoogleCloudPlatform/nodejs-getting-started/blob/master/5-logging/package.json#L27
And I don't even know what that is
https://github.com/GoogleCloudPlatform/nodejs-getting-started/blob/master/5-logging/package.json#L13
We use it to generate the list of contributors, but I haven't updated that in a while and afaik we have more targeted tools for that now?
Ideally, we'd replace all usage of repo-tools. The tests shouldn't require special test helpers.

Related https://github.com/GoogleCloudPlatform/nodejs-getting-started/issues/268

hi,

@bcoe I'm still discovering new ways of how repo-tools is used 🤣
this is good to know :)

I was following the getting started tutorial (https://cloud.google.com/nodejs/getting-started/tutorial-app) and managed to run and understand most stuff (thank you for the great work!!), until I got to the tests section.
I'm not a javascript expert and failed to understand what this nodejs-repo-tools is doing. Still a mystery to me. That's how I ended up in this ticket. Also not sure how to run/setup the e2e tests.
Would be nice to have some documentation / samples or add a "test" section on the getting started tutorials.
This could be the wrong place to talk about this. Please take it as a constructive review =)

@RicardoBelchior :wave: sorry for the confusion. At a high level, nodejs-repo-tools is a library we maintained that provided a variety of abstractions for working with Node.js repos:

generating default documentation.
HTTP requests.

... essentially it was a bit of a kitchen sink.
We will, over time, be replacing references to this repository with practices and libraries that are more common across the JavaScript community, e.g., using node-fetch rather than this library for HTTP requests.

Got it! Thanks for the quick reply.
Looking forward to it, I'll make sure to keep an eye open to this repo!

Closing as we're archiving this repository.


Tutorial: Transitioning to "The Terasology Way" of thinking, for MC modders

It has come up from time to time that there is a distinct way of thinking/architecting for Terasology if you're used to modding for something like Minecraft. We sometimes refer to it as new contributors with a MC background getting to a point where the ideal usage and advantages of our entity system just sort of clicks and you get the distinction, but we don't have any good tools to help people get there. Just the existing sort of objective presentation of how the entity system works in general, plus some tutorial work on how to code for Terasology.
If we put some MC flavored examples in a tutorial to help convert design thoughts from typical ways to do a few things in MC (very block centric?) to how it can be done better in Terasology (very entity/event centric?) that might help out MC modders click faster, rather than first dig a frustrating hole of MC style coding within Terasology's architecture - which could easily end any interest in further coding..
It would also allow us to keep existing tutorials objective in the sense of purely covering how to do something in Terasology, not talking about how that is necessarily different from anything else.
Difficulty: we would really need somebody who is already familiar with both sides to do this. Not to mention the usual time availability and affinity for writing good tutorials / docs.

https://github.com/progwml6/ironchest (https://github.com/cpw/ironchest)
As a source, we can use the MC Iron Chest mod.
It was introduced as a reference implementation in early Forge(aka Minecraft ModLoader) by Forge developer.
this will demonstrate the difference in side-by-side style.

Closing as out-of-scope.
We are improving on the documentation about how to use Terasology's ECS, for instance in https://github.com/MovingBlocks/Terasology/wiki/Event-Types. Specifically writing a "migration guide" for Minecraft modders is not planned.


ev3dev-lang-python, rpyc and PIL

Hi again! This is not a issue.  I am working with rpyc.  I need big fonts for lcd screen!
I got  a beautiful example in ev3python (thanks @ndward!)
#!/usr/bin/env python3
from ev3dev.ev3 import *
from PIL import Image, ImageDraw, ImageFont
from time import sleep

lcd = Screen()

f = ImageFont.truetype('/usr/share/fonts/truetype/msttcorefonts/Arial.ttf', 75)
lcd.draw.text((3,0), 'Hello', font=f)
lcd.draw.text((2,55), 'world', font=f)
lcd.update()

sleep(7)  # if run from Brickman, need time to see displayed image

The problem is ImageFont.  How i can import the remote PIL module (and Image, ImageDraw, ImageFont)? is it possible? Any example? Any workaround?
DJuego
P.S: I am considering seriously to use ev3dev and ev3dev lang python for robotic teaching.
Interactive programming is  so appealing... I only wish to get things done as simple as I can.

If you are using the latest developement version of ev3dev-lang-python (soon to be released as 0.7.1), then you can use bitmap fonts distributed with the library (see #225 and http://python-ev3dev.readthedocs.io/en/latest/other.html#bitmap-fonts for more details). The following works for me:
import rpyc
conn = rpyc.classic.connect('ev3')
ev3 = conn.modules['ev3dev.ev3']
fonts = conn.modules['ev3dev.fonts']
s = ev3.Screen()
s.draw.text((10,10), 'Hello World', font = fonts.load('luBS14'))
s.update()

If you are using the latest released version (0.7.0), you may still @ndward's example you referenced. The only change is that you need to import PIL.ImageFont remotely:
ImageFont = conn.modules['PIL.ImageFont']
f = ImageFont.truetype('/usr/share/fonts/truetype/msttcorefonts/Arial.ttf', 75) # EV3 path
s.draw.text((10,10), 'Hello World', font=f)
s.update()

Well. I am overwhelmed. :-) Easily, I prefer the 0.7.1 option. However i don´t know how upgrade to the last development version the ev3dev and the Spyder editor too. I am a absolutely newbie in Python.
Anyway i have a alternative. :-P
Thank you again, ddemidov for your swift and clear answers.  I will be on the watch for the 0.7.1 release.
DJuego

However i don´t know how upgrade to the last development version the ev3dev

Here is what I do to get the latest version installed (on EV3):
sudo apt-get remove python3-ev3dev
git clone https://github.com/rhempel/ev3dev-lang-python
cd ev3dev-lang-python
python3 setup.py bdist
sudo python3 setup.py install --force

O.o Amazing! I will consider to upgrade.
DJuego

For beginners, in general I'd recommend sticking to the official releases. This is mainly because it ensures that you can share your code with others and have it work properly. It's also helpful because the standard upgrade instructions will only work on your installation if it's based on the official package.
@ddemidov Is there anything that you think is blocking a release (#233)?

@WasabiFan, I'd like to do #230. This looks easy enough, just need to update my kernel :smile_cat:
Also, I am not yet sure about the best way to fix #234. Other than that, 0.7.1 seems ready to be released.


Redirect Precedence

Currently it appears that a single result redirect takes priority over a merchandised redirect - this should be the other way around.
To test use the snap demo store and query redefined - this query has a redirect setup and also returns a single result.

After inspecting the code, this appears to working as intended.


[YUNIKORN-1126] Added E2E Tests for Best Effort Pod

This PR is for adding end-to-end tests to verify the scheduling of pods with different Quality of Service (QOS) classes in the YuniKorn Kubernetes scheduler.  The tests are specifically checking the scheduling of pods with "BestEffort" and "NonBestEffort" (likely "Burstable" or "Guaranteed") QOS classes.
The tests ensure that the pods are correctly scheduled and running and that their QOS classes are as expected.  The PR also includes changes to the SleepPodConfig struct and the InitSleepPod function to support setting the QOS class of the pods.
What type of PR is it?

[ ] - Bug Fix
[x] - Improvement
[ ] - Feature
[ ] - Documentation
[ ] - Hot Fix
[ ] - Refactoring

Todos

[ ] - Task

What is the Jira issue?
https://issues.apache.org/jira/browse/YUNIKORN-1126
How should this be tested?
Screenshots (if appropriate)
Questions:

[ ] - The licenses files need update.
[ ] - There is breaking changes for older versions.
[ ] - It needs documentation.

Your change doesn't look like 2714 in your jira link, please update that.

Your change doesn't look like 2714 in your jira link, please update that.
Updated the Jira in The Description, Copy Paste error. Thanks for Pointing it out!


AttributeError: _ARRAY_API not found in Numpy 2.0.0

Description
File "/home//lib/python3.11/site-packages/jax/_src/lib/init.py", line 87, in
import jaxlib.xla_client as xla_client
File "/home//lib/python3.11/site-packages/jaxlib/xla_client.py", line 32, in
from . import xla_extension as _xla
AttributeError                            Traceback (most recent call last)
AttributeError: _ARRAY_API not found
Numpy: 1.x
It doesn’t give an error in numpy 1.x.
System info (python version, jaxlib version, accelerator, etc.)
jax:    0.4.27
jaxlib: 0.4.23.dev20240125 & 0.4.23.dev20240522
numpy:  2.0.0
python: 3.11.9 | packaged by conda-forge | (main, Apr 19 2024, 18:53:30) [GCC 12.3.0]
jax.devices (1 total, 1 local): [CpuDevice(id=0)]
process_count: 1
platform: uname_result(system='Linux', node='mk', release='6.9.3-060903-generic', version='#202405300957 SMP PREEMPT_DYNAMIC Thu May 30 11:39:13 UTC 2024', machine='x86_64')

I cannot reproduce this in a fresh virtualenv. Can you confirm that doing
python -m venv env
source env/bin/activate
pip install jax==0.4.27 jaxlib==0.4.27 numpy==2.0
python -c "import jax"

reproduces the issue for you?

Since my computer only supports the CPU feature, I can install jaxlib's conda and mamba. I tried again today, and it gave the same error.
A module that was compiled using NumPy 1.x cannot be run in
NumPy 2.0.0 as it may crash. To support both 1.x and 2.x
versions of NumPy, modules must be compiled with NumPy 2.0.
Some module may need to rebuild instead e.g. with 'pybind11>=2.12'.
If you are a user of the module, the easiest solution will be to
downgrade to 'numpy<2' or try to upgrade the affected module.
We expect that some modules will need time to support NumPy 2.
Traceback (most recent call last):  File "", line 1, in
File "/home//miniconda3/envs/x11/lib/python3.11/site-packages/jax/init.py", line 37, in
import jax.core as _core
File "/home//miniconda3/envs/x11/lib/python3.11/site-packages/jax/core.py", line 18, in
from jax._src.core import (
File "/home//miniconda3/envs/x11/lib/python3.11/site-packages/jax/_src/core.py", line 39, in
from jax._src import dtypes
File "/home//miniconda3/envs/x11/lib/python3.11/site-packages/jax/_src/dtypes.py", line 33, in
from jax._src import config
File "/home//miniconda3/envs/x11/lib/python3.11/site-packages/jax/_src/config.py", line 27, in
from jax._src import lib
File "/home//miniconda3/envs/x11/lib/python3.11/site-packages/jax/_src/lib/init.py", line 87, in
import jaxlib.xla_client as xla_client
File "/home/*/miniconda3/envs/x11/lib/python3.11/site-packages/jaxlib/xla_client.py", line 32, in
from . import xla_extension as _xla
AttributeError: _ARRAY_API not found

It look like the jaxlib package in Conda was compiled for NumPy 1.X? I would recommend to either install JAX from PyPI via pip or open an issue in https://github.com/conda-forge/jaxlib-feedstock.

Closing. We don't provide the conda packages for JAX: please file issues for those against the conda-forge feedstock linked above. The pip packages we ship will work with NumPy 2.0, and we recommend you use those if you want NumPy 2.0 support, even if you're otherwise using conda-forge.


Ensure role support --check

And potentially run CI with --check to ensure it works

Done in #13 and #14


Add treesitter as Linux dependency

Installation requires this package. Tested on Ubuntu 24.04 LTS

thanks!


Reland "Remove single view assumption from TestViewConfiguration (#122352)"

Relands #122352.
Partial revert of https://github.com/flutter/flutter/pull/122369.
This change was functionally unrelated to the trouble solved by the revert in https://github.com/flutter/flutter/pull/122369.

Please do not submit until Google Testing is green, or an exemption is given.

Please do not submit until Google Testing is green, or an exemption is given.

The autosubmit bot is enforcing this, no?

The autosubmit bot is enforcing this, no?

Autosubmit will, if present. However, Google Testing can take 90 minutes to show up on GitHub.


Don't set unknown params prop on

Fixes #57

Please merge this, all these errors are getting annoying :P

Done! Thanks! :)


Repo and command-line tool name

Currently, the binary that runs lazyledger is called lazyledger-appd. We should probably rename this to lazyledger or lazyledgerd?
Also, the repo name could just be lazyledger or lazyledger-rsm (replicated state machine) or some other name we should settle on.
There was also the suggestion to rename the tendermint binaries in lazyledger-core. IMO, their name can just stay the same. The consensus is in fact tendermint consensus and the user-facing binaries are in here.
Also, another name to consider is the one chosen for modules (currently there is only one): https://github.com/lazyledger/lazyledger-app/tree/master/x/lazyledgerapp
cc @musalbas @adlerjohn

I like the d at the end fwiw

def a fan of naming the repo merely Celestia and the executable celestiad

I think celestia-node should be the real celestiad

makes sense. is there a plan to merge both executables?

I think celestia-node should be the real celestiad

And what should we call celestia-app then?

is there a plan to merge both executables?

maybe:
https://github.com/celestiaorg/celestia-node/issues/275

keeping them as two different repos but one executable is possible. It would be this pr in the other repo then the app commands could be under celestiad app and celestiad node for node. Would simplify having multiple locations to download things.

cc @Wondertan @renaynay

can't we call celestia app just app? 100% let's keep the repos separate, but fine with making it one executable in the future.


Rename extension to colcon_cache

Codecov Report

Merging #5 (0787793) into master (88c7705) will not change coverage.
The diff coverage is 0.00%.

@@          Coverage Diff           @@
##           master      #5   +/-   ##
======================================
  Coverage    0.00%   0.00%
======================================
  Files          13      13
  Lines         367     367
======================================
  Misses        367     367

Impacted Files
Coverage Δ

colcon_cache/__init__.py
0.00% <ø> (ø)

colcon_cache/cache/__init__.py
0.00% <0.00%> (ø)

colcon_cache/event_handler/__init__.py
0.00% <0.00%> (ø)

colcon_cache/event_handler/store_lockfile.py
0.00% <0.00%> (ø)

colcon_cache/package_augmentation/default.py
0.00% <ø> (ø)

colcon_cache/package_augmentation/git.py
0.00% <ø> (ø)

colcon_cache/package_selection/cache.py
0.00% <0.00%> (ø)

colcon_cache/subverb/__init__.py
0.00% <0.00%> (ø)

colcon_cache/subverb/capture.py
0.00% <0.00%> (ø)

colcon_cache/subverb/old_capture.py
0.00% <0.00%> (ø)

... and 3 more

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 88c7705...0787793. Read the comment docs.


Warning: got packets out of order.

[Stoa] 2021-09-03T10:24:32.406Z info Saved a block with block height of 1151
[Stoa] 2021-09-03T10:24:32.406Z info Emitted new Block: [object Object]
[Stoa] 2021-09-03T10:24:32.406Z info Emitted new Transactions:
[Stoa] 2021-09-03T10:24:32.443Z info Emitted Updated BOA stats:  [object Object]
[Stoa] 2021-09-03T10:24:37.373Z info Saved a pre-image utxo : 0x210f6551d648a4da, hash : 0xe1ec2ea66b75cd4e, pre-image height : 1157
Warning: got packets out of order. Expected 3 but received 0
Warning: got packets out of order. Expected 2 but received 0
Warning: got packets out of order. Expected 6 but received 0

I saw the following warning logs on Stoa

mysql : MAX_Packet_Allowed default size 1mb