SetWindowTitle should properly set CLASS_NAME and INSTANCE_NAME on X11 platforms

Operating System

[ ] Windows
[ ] macOS
[X] Linux
[X] FreeBSD
[X] OpenBSD
[ ] Android
[ ] iOS
[ ] Nintendo Switch
[ ] PlayStation 5
[ ] Xbox
[ ] Web Browsers

What feature would you like to be added?
SetWindowTitle should properly set  CLASS_NAME and INSTANCE_NAME on X11
in the case of GLFW, which is the default backend being used for x11, this is not happening. one can see using xprop that the class_name and instance_name are the defaults, despite a custom title having been set.

two things need to be done

initial WINDOW_HINTS when creating the glfw window here https://github.com/hajimehoshi/ebiten/blob/main/internal/glfw/x11_window_linbsd.c#L781-L793
change WINDOW_HINTS when SetWindowTitle is called, perhaps using this function https://github.com/hajimehoshi/ebiten/blob/main/internal/glfw/window_unix.c#L376

Why is this needed?
on X11, it is standard for programs to differentiate themselves to the WM or other applications via their window and instance class.
the most common use is for window managers to read the initial window hints in order to perform different behaviors, for instance, starting an application in windowed, tiled, fullscreen mode, a specific desktop, etc.
window_class/instance is also sometimes used to identify applications for automation. technically, "instance" should be unique and "class" not necessarily unique, though these conventions are hardly followed.
can read more here:
https://tronche.com/gui/x/icccm/sec-4.html#WM_CLASS
https://manpages.ubuntu.com/manpages/bionic/man3/X11::Protocol::WM.3pm.html (ctrl-f WM_CLASS)

While I agree that this would be nice to have, I think a new RunGameOptions field would be a more suitable target than SetWindowTitle. Some programs will use the title for changing values, like indicating the latest changes haven't been saved with a *, indicating the current scene / status, debugging fps or others. Also, they might include emojis or other characters that you wouldn't generally want on the internal window name. To me, the internal window name should be customizable but more static in nature. I would be against coupling it to the window title.

While I agree that this would be nice to have, I think a new RunGameOptions field would be a more suitable target than SetWindowTitle. Some programs will use the title for changing values, like indicating the latest changes haven't been saved with a *, indicating the current scene / status, debugging fps or others. Also, they might include emojis or other characters that you wouldn't generally want on the internal window name. To me, the internal window name should be customizable but more static in nature. I would be against coupling it to the window title.

I agree it makes more sense to me to have a separate field. if that's the case it probably makes sense to allow setting a separate instance and class as well?

While we can provide such API, this API would work only on Linux (and other UNIX family). Let me implement this to sync with the window title so far, and let's revisit Tinne's idea later.

On second thought, as GLFW provides separate options for a class name and an instance name, providing this as different options sounds better. Hmm 🤔

Added RunOptions.X11ClassName and RunOptions.X11InstanceName.


I need com.kazurayam.materialstore.Store#createInstance(Path root)

Here is a working test code:
    @Test
    void test_twins_mode() {
        Path root = outputDir.resolve("Materials")
        Store store = new StoreImpl(root)

The following fragment looks bad.
... = new StoreImpl(root)

It is a bad idea to ask users to be aware of the StoreImpl class.
The following code is desired:
... = Store.newInstance(root)

Groovy 2.4.20 does not support Java 8 "static method in the interfaces".

There is already a factory class: https://github.com/kazurayam/materialstore/blob/main/src/main/groovy/com/kazurayam/materialstore/store/Stores.groovy


MRG, ENH: Add options to mne watershed_bem

closes #6667
This PR for mne watershed_bem:

Adds control over the -T1 option (which was otherwise always tied to our --gcaatlas option)
Adds control over where the brainmasked output ends up.
Allows passing -v orig.mgz instead of just -v orig (be more lenient)
Works with newer Freesurfer (the gcaatlas option assumed that a file from an older FS version was there, this finds whichever is newest even though there will probably only ever be one)

This is because for some subjects I've wanted to do:
mri_watershed -useSRAS -brain_atlas $FREESURFER_HOME/average/RB_all_withskull_2016-05-10.vc700.gca transforms/talairach_with_skull.lta -surf ../bem/watershed/SUBJECT -h 39 orig.mgz brainmask.mgz

In MNE we can just do now:
mne watershed_bem -s SUBJECT -v orig.mgz -g -p 39 --T1 False -b ../../mri/brainmask.mgz --verbose

Along the way I unified handling of verbose across commands so that you no longer need to do --verbose info in some and --verbose in others. Now it's just --verbose everywhere, which is nicer.

thx heaps @larsoner
cc @cedricsimar


Readmes rach java10

it's the final batch of readmes from me! @hud10837 would you do the honour of a first review please? There are 6 here just to finish them all off nicely.

ViewShedGeoprocessing
ViewshedLocation
WebTiledLayer
WfsXMLQuery
WmsLayerURL
WmtsLayer

thanks @hud10837! Can you double check my changes please?

@sorenoid please can you do a second review?

thanks @sorenoid! Since the changes made are tiny I'll go ahead and merge.


[stable/jenkins] Fix indentation in config.yaml

Signed-off-by: Cesar Alba Lozano<EMAIL_ADDRESS>
Is this a new chart

NOTE: We're experiencing a high volume of PRs to this repo and reviews will be delayed. Please host your own chart repository and submit your repository to the Helm Hub instead of this repo to make them discoverable to the community. Here is how to submit new chart repositories to the Helm Hub.

What this PR does / why we need it:
Which issue this PR fixes
(optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close that issue when PR gets merged)

fixes #

Special notes for your reviewer:
Checklist
[Place an '[x]' (no spaces) in all applicable fields. Please remove unrelated fields.]

[ ] DCO signed
[ ] Chart Version bumped
[ ] Variables are documented in the README.md
[ ] Title of the PR starts with chart name (e.g. [stable/mychartname])

Jenkins chart installation is broken when a values file is passed to helm install operation.
You see the following kind of errors:
Error: YAML parse error on jenkins/templates/config.yaml: error converting YAML to JSON: yaml: line 31

/assign @maorf

/assign @wmcdona89

/ok-to-test

@cesaralbloz thanks for fixing the bug!
please rebase...bumping the version and updating the CHANGELOG

/lgtm

@cesaralbloz Of course @wmcdona89 was right, you need to increase the chart version.

Can you add the following to stable/jenkins/ci/other-values.yaml?
master:
  scriptApproval:
    - "method groovy.json.JsonSlurperClassic parseText java.lang.String"
    - "new groovy.json.JsonSlurperClassic"

that ensures that we don not break it again ;-)

@cesaralbloz I needed to create another PR and included you fix in there #23175.
thank you very much for your contribution. This really helps the community.


Scheduled jobs not being performed

Hi,
My scheduled jobs are not performed with resque_scheduler but they are working fine when I run them manually.
Here is my config:
Rails 2.3.12
Resque-scheduler 1.9.9

resque_schedule.yml:
...
queue_shortened_links_clicks_retrieval:
cron: "* */2 * * *"
class: Jobs::ShortenedLinksClicksRetrieval
queue: shortner
args:
rails_env: production
description: "This job queues jobs that fetch the click count (every 5 minutes)"
...

lib/tasks/resque.rake:
require 'resque_scheduler'
require 'resque_scheduler/tasks'
task 'resque:setup' => :environment do
Resque.schedule = YAML.load_file(Rails.root.join('config/resque_schedule.yml'))
end

lib/jobs/shortened_links_clicks_retrieval.rb:
require "net/http"
require "uri"
module Jobs
class ShortenedLinksClicksRetrieval
SHORTENER_SERVER = YAML.load_file(File.join(Rails.root, 'config', 'shortner.yml'))[RAILS_ENV]["url"]
@queue = :shortner

include Resque::Plugins::UniqueJob

def self.perform
  log! "[Jobs::ShortenedLinksClicksRetrieval] Refreshing click analytics..."

...

I run the rake task with:
RAILS_ENV=production VVERBOSE=1 NAMESPACE=scheduling bundle exec rake resque:scheduler
and I can see:
2011-10-24 06:12:25 Scheduling queue_shortened_links_clicks_retrieval
2011-10-24 06:15:00 queueing Jobs::ShortenedLinksClicksRetrieval (queue_shortened_links_clicks_retrieval)
2011-10-24 06:20:00 queueing Jobs::ShortenedLinksClicksRetrieval (queue_shortened_links_clicks_retrieval)
and nothing else. I even tried to put a dummy job name in my resque_schedule.yml and it won't complain:
2011-10-24 06:15:00 queueing Jobs::ShortenedLinksClicksRetrievalDummy (queue_shortened_links_clicks_retrieval)
Can you please help?

Based on the scheduler output it's queuing the jobs correctly.  Check
the resque-web interface to see if the jobs show up.  It's most likely
that you have the scheduler pointing to a different redis instance
than your workers.
On Oct 24, 2011, at 12:31 AM, Julien BLANCHARD
<EMAIL_ADDRESS>wrote:

Hi,
My scheduled jobs are not performed with resque_scheduler but they are working fine when I run them manually.
Here is my config:
Rails 2.3.12
Resque-scheduler 1.9.9

resque_schedule.yml:
...
queue_shortened_links_clicks_retrieval:
cron: "* */2 * * *"
class: Jobs::ShortenedLinksClicksRetrieval
queue: shortner
args:
rails_env: production
description: "This job queues jobs that fetch the click count (every 5 minutes)"
...

lib/tasks/resque.rake:
require 'resque_scheduler'
require 'resque_scheduler/tasks'

task 'resque:setup' => :environment do
Resque.schedule = YAML.load_file(Rails.root.join('config/resque_schedule.yml'))
end

lib/jobs/shortened_links_clicks_retrieval.rb:
require "net/http"
require "uri"

module Jobs
class ShortenedLinksClicksRetrieval
SHORTENER_SERVER = YAML.load_file(File.join(Rails.root, 'config', 'shortner.yml'))[RAILS_ENV]["url"]
@queue = :shortner
include Resque::Plugins::UniqueJob
def self.perform
log! "[Jobs::ShortenedLinksClicksRetrieval] Refreshing click analytics..."
...
I run the rake task with:
RAILS_ENV=production VVERBOSE=1 NAMESPACE=scheduling bundle exec rake resque:scheduler
and I can see:
2011-10-24 06:12:25 Scheduling queue_shortened_links_clicks_retrieval
2011-10-24 06:15:00 queueing Jobs::ShortenedLinksClicksRetrieval (queue_shortened_links_clicks_retrieval)
2011-10-24 06:20:00 queueing Jobs::ShortenedLinksClicksRetrieval (queue_shortened_links_clicks_retrieval)
and nothing else. I even tried to put a dummy job name in my resque_schedule.yml and it won't complain:
2011-10-24 06:15:00 queueing Jobs::ShortenedLinksClicksRetrievalDummy (queue_shortened_links_clicks_retrieval)
Can you please help?
--
Reply to this email directly or view it on GitHub:
https://github.com/bvandenbos/resque-scheduler/issues/116

Any luck with this?

I'm having the same problem. If I comment out the rails_env configuration in the yaml file then everything is scheduled fine.

pointing my gemfile to the master branch on github seems to correct the issue (or until the next gem version is released)
gem 'resque-scheduler', :git => 'git://github.com/bvandenbos/resque-scheduler.git'

and just for notes:

rails 3.1.3
resque 1.19.0
resque-scheduler 1.9.9

ok, so the scheduled jobs still weren't being scheduled because the ENV['RAILS_ENV'] wasn't being set so the following method was always evaluating to false
      # Returns true if the given schedule config hash matches the current
      # ENV['RAILS_ENV']
      def rails_env_matches?(config)
        config['rails_env'] && ENV['RAILS_ENV'] && config['rails_env'].gsub(/\s/,'').split(',').include?(ENV['RAILS_ENV'])
      end

To fix this, I just set the ENV['RAILS_ENV'] to the Rails.env in my resque initializer
# config/initializers/resque.rb
require 'resque_scheduler'

# make sure the RAILS_ENV variable is set so the
# resque-scheduler can load our scheduled jobs
ENV['RAILS_ENV'] = Rails.env

Resque.schedule = YAML.load_file("#{Rails.root}/config/resque_schedule.yml")


Etcdadm does not reconcile main node's ip change during bootstrap phase

During bootstrapping etcdadm cluster, if the main etcd node's ip changes, etcdadm does not reconcile the change and update the secret with the new etcd's main node ip. This causes subsequent etcd node's bootstrap process to use a broken etcd node's ip which causes etcdadmcluster bootstrap to fail.
Etcdadm controller logs does print that etcd failed to come up, but says it might be transient since etcd is just trying to come up during bootstrap.

I see similar issue during the anywhere plugin update to the cluster, How was this fixed and what was the root cause ??


Remove --tls=false when deploying Tinkerbell chart

Upon merging https://github.com/aws/eks-anywhere-build-tooling/pull/1856, the TLS flag won't be required as part of values YAML and will be present in both create and upgrade.
This fixes the upgrade issue where the TLS flag is dropped because it was a values override that didn't get re-used from original deployment.

/approve


python39: hardcode path to tzdata

Python 3.9 has a new module zoneinfo which requires tzdata. By default
it searches TZPATH for folders containing zoneinfo.
This commit makes the dependency on tzdata pure.

Motivation for this change
Things done

[ ] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
Built on platform(s)

[ ] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[ ] Ensured that relevant documentation is up to date
[ ] Fits CONTRIBUTING.md.

TODO

[ ] nuke-refs kills the reference to tzdata. This should not happen

Locally I get a merge conflict when trying to test this PR.

we may have to do some patching
[nix-shell:/home/jon/.cache/nixpkgs-review/pr-103993]$ ./results/python310/bin/python3
Python 3.10.0a4 (default, Jan  4 2021, 17:26:04)
[GCC 10.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import zoneinfo
>>> zoneinfo.ZoneInfo("UTC")
Traceback (most recent call last):
  File "/home/jon/.cache/nixpkgs-review/pr-103993/results/python310/lib/python3.10/zoneinfo/_common.py", line 12, in load_tzdata
    return importlib.resources.open_binary(package_name, resource_name)
  File "/home/jon/.cache/nixpkgs-review/pr-103993/results/python310/lib/python3.10/importlib/resources.py", line 40, in open_binary
    package = _common.get_package(package)
  File "/home/jon/.cache/nixpkgs-review/pr-103993/results/python310/lib/python3.10/importlib/_common.py", line 66, in get_package
    resolved = resolve(package)
  File "/home/jon/.cache/nixpkgs-review/pr-103993/results/python310/lib/python3.10/importlib/_common.py", line 56, in resolve
    else importlib.import_module(cand)
  File "/home/jon/.cache/nixpkgs-review/pr-103993/results/python310/lib/python3.10/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1049, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1026, in _find_and_load
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "<frozen importlib._bootstrap>", line 1049, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1026, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1003, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'tzdata'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/jon/.cache/nixpkgs-review/pr-103993/results/python310/lib/python3.10/zoneinfo/_common.py", line 24, in load_tzdata
    raise ZoneInfoNotFoundError(f"No time zone found with key {key}")
zoneinfo._common.ZoneInfoNotFoundError: 'No time zone found with key UTC'
>>>

or this may be an issue with upstream, as this doesn't occur in python3.9

we may have to do some patching
[nix-shell:/home/jon/.cache/nixpkgs-review/pr-103993]$ ./results/python310/bin/python3
Python 3.10.0a4 (default, Jan  4 2021, 17:26:04)
[GCC 10.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import zoneinfo
>>> zoneinfo.ZoneInfo("UTC")
Traceback (most recent call last):
  File "/home/jon/.cache/nixpkgs-review/pr-103993/results/python310/lib/python3.10/zoneinfo/_common.py", line 12, in load_tzdata
    return importlib.resources.open_binary(package_name, resource_name)
  File "/home/jon/.cache/nixpkgs-review/pr-103993/results/python310/lib/python3.10/importlib/resources.py", line 40, in open_binary
    package = _common.get_package(package)
  File "/home/jon/.cache/nixpkgs-review/pr-103993/results/python310/lib/python3.10/importlib/_common.py", line 66, in get_package
    resolved = resolve(package)
  File "/home/jon/.cache/nixpkgs-review/pr-103993/results/python310/lib/python3.10/importlib/_common.py", line 56, in resolve
    else importlib.import_module(cand)
  File "/home/jon/.cache/nixpkgs-review/pr-103993/results/python310/lib/python3.10/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1049, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1026, in _find_and_load
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "<frozen importlib._bootstrap>", line 1049, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1026, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1003, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'tzdata'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/jon/.cache/nixpkgs-review/pr-103993/results/python310/lib/python3.10/zoneinfo/_common.py", line 24, in load_tzdata
    raise ZoneInfoNotFoundError(f"No time zone found with key {key}")
zoneinfo._common.ZoneInfoNotFoundError: 'No time zone found with key UTC'
>>>

or this may be an issue with upstream, as this doesn't occur in python3.9

Should pass -e ${tzdata} to nuke-refs invocation.

Should pass -e ${tzdata} to nuke-refs invocation.

/rebase staging

pushed 7617b03403acd7d74f8e4f21ed791543ad14bfe9 to staging


g99 stuck on bootloop

i own a redmi 11 prime with soc g99. recently i bricked my device while flashing twrp. now the device is bootloping and cant enter fastboot or recovery. i tried brom mod. but windows is showing driver error. tried many tools. they wont detect my device in brom. is there any way to bypass this issue and fix my device. i seached everywhere. but cant find a solution to fix the bootloop. read a lot of articles. there are some articles showing that the device detects in brom in mtk client. but no payloads

g99 is unsupported since it's v6 (still massively paywalled) afaik, you can try finding a paid tool that offers auth flash for your phone or just bite the dust and ask xiaomi to fix it.


Consistent storage growth using NativeStorage on iOS with no apparent reason

We converted our app from using localStorage to using native-storage after hearing from users with low-memory devices. Everything works well, function-wise, but we have noticed that there is a consistent storage increase every time we log into the app - for no apparent reason (iOS 10.1.1 iPhone 6S). We noticed about 1MB of storage for every login operation. During the login our app reads all the data we have in native-storage to memory (up to 100 keys at most) - and over-writes 3 keys - the size of all 100 keys including names, data - is much less than 1MB - and the 3 keys that are written are much less that 1KB.
Despite that - the storage taken by the App continue to grow - for no apparent reason. We have noticed somewhat similar situation in Android - there the growth seems smaller - and after a while the stored data seems to be truncated to a smaller size - so maybe it is using a cache that is cleared after a while in Android (and not in iOS).
Is there anything we can do to eliminate this behavior - either in code or in compile/build option?

Hello @shaifd are you talking about high disk usage or memory (RAM) usage? For the remainder of my answers I will make a distinction between storage to the disk and memory. The latter, memory, is used when talking about RAM.
Extra information on the used native storage mechanisms:
These mechanisms are loaded in memory in a initial phase. However, the documentation --of these mechanisms- don't state how this loading is done. So there remain questions such as: is part of the file loaded in memory and if there is some paging mechanisms, how does that work.

The clearing you see, could be the result of a paging mechanism of the native storage mechanism. For instance, a part of the file is written to the disk, and cleared from memory.

Extra information on Cordova:
Apache Cordova will come with an increase of memory usage, as a result of its architecture.
What to do:

Please provide more info on the type of memory consumption you're experiencing: i.e. disk vs RAM.
See if only the expected data is stored. Thus, the files shouldn't contain data that is not --intentionally-- stored by you. This can be done by reading the SharedPreference file from Android (which is discussed in the bottom of this answer). In iOS, the NSUserDefaults can be obtained by writing some native code for reading out the NSUserDefaults file. Both on Android and iOS these files can easily be seen via a rooted or jailbroken device.

Getting the SharedPreference file in Android without root:

Write some native code to read out SharedPreferences
Make an ADB backup of your application. Afterwhich, the .ab (backup) file must be converted to a .tar file; which can be done via a simple jar file. After unzipping, this folder will contain your sharedpreferences file.

Thanks for the prompt response - I really appreciate it!
Our app data is very small - no more than 1MB. But in the iPhone uder  Settings > General > Storage & iCloud Usage > Manage Storage > the app, we see "Documents & Data" of more than 160MB and growing with each login since we started to use the NativeStorage plugin. Before this we used the localStorage and did not experience such issue. As far as I understand it means we refer to the disk usage.
As you suggested we checked the NSUserDefaults content - we see all our data is correctly stored with some other items and all in all it is less than 13KB, so we fail to understand the growing usage. We only access the storage with NativeStorage - no other plugin.

The only resources used by our plugin is the resources needed for the NSUserDefaults and SharedPreferences mechanisms. The increase in disk storage could also be caused by the usage of the Cordova framework related to plugins. However, this is just a guess. So maybe extra resources are allocated when using plugins, instead on relying on only the WebView of the platforms.
You should look at the application data, and see which files/Directories are created.
I'll keep this issue open for other developers who are experiencing the same. Or can contribute to this issue.

I am temporarily closing this issue because there was no activity here.
Would be happy to re-open if anyone faces this!


Login not working

This is the current issue I'm facing.
Cant login. Tried with multiple devices such as my Phone and a PC.
https://imgur.com/a/0vgFTJb

Same

This should be fixed I think


Can someone give me an example of this?

Describe your problem here.
Can someone send an example of using italic on text? I found it on the wiki, but i don't know what to write except for the tag.
Are you modding a build from source or with Lua?
Lua
What is your build target?
Windows x64
Did you edit anything in this build? If so, mention or summarize your changes.
Mods folder

true

so like setTextItalic('tag', true) ?

Accidentally closed it

you could just test it

I'll try again, but it didn't work last time

Still, nothing

y'know what nevermind it's good enough this way


ArcView with Picasso

Android With Picasso not working

open again a issue if you want it to be fixed


Dependency conflict between blacksheep and langchain

I'm experiencing a dependency conflict between blacksheep and langchain, where the installation of blacksheep fails due to a version conflict with PyYAML.
After looking into the issue, I found that the main branch of blacksheep is already using an updated version of essentials-openapi, which uses PyYAML 6.0. However, the latest version of blacksheep on PyPI (v1.2.10) still depends on essentials-openapi version >=0.1.4,<1.0, which requires PyYAML version 5.4.1.
This conflict makes it impossible to install blacksheep alongside langchain, which requires PyYAML version >=6,<7.
I recommend updating blacksheep on PyPI so that it depends on a version of essentials-openapi that depends on PyYAML >= 6.0, so that users can install blacksheep alongside langchain without running into conflicts. The requirements.txt in the main-branch already satisfies this but setup.py oddly does not.

Hi @bitnom
Today I published your contribution to PyPi, both for:

version 1 https://pypi.org/project/blacksheep/1.2.11/.
version 2 (alpha) https://pypi.org/project/blacksheep/2.0a3/


private access in dmx.dialog.SpotsDialog

SpotsDialog dialog;
dialog = new SpotsDialog(this);
0.7 works great.  I tried upgrading to 1.1 and keep getting a "private" access error.  Can you provide a Java example?

The usage is described in readme.
val dialog: AlertDialog = SpotsDialog.Builder()
    .Builder()
    .setContext(context)
    .setTheme(R.style.Cusom)
    .build()
    .apply {
        show()
    }

I saw that.  Unfortunately, it doesn't seem to work when you convert that to Java and use v1.1.
Sent from my Android device.
-----Original Message-----
From: Maksym Dybarskyi<EMAIL_ADDRESS>To: d-max/spots-dialog<EMAIL_ADDRESS>Cc: Ponkabonk<EMAIL_ADDRESS>Author<EMAIL_ADDRESS>Sent: Thu, 04 Oct 2018 4:36 AM
Subject: Re: [d-max/spots-dialog] private access in dmx.dialog.SpotsDialog (#42)
The usage is described in readme.
val dialog: AlertDialog = SpotsDialog.Builder()
    .Builder()
    .setContext(context)
    .setTheme(R.style.Cusom)
    .build()
    .apply {
        show()
    }

--
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub:
https://github.com/d-max/spots-dialog/issues/42#issuecomment-426985879

"Not working" doesn't really make sense. Is it crashing? Is it showing? Compile error?
This works to me
AlertDialog dialog = new SpotsDialog.Builder()
                .setContext(this)
                .setMessage("tes")
                .setCancelable(false)
                .build();

        dialog.show();

OK.  I got it working.  Thanks for pointing me in the right direction.
-Mike
From: Maksym Dybarskyi<EMAIL_ADDRESS>Sent: Thursday, October 4, 2018 6:48 AM
To: d-max/spots-dialog<EMAIL_ADDRESS>Cc: Ponkabonk<EMAIL_ADDRESS>Author<EMAIL_ADDRESS>Subject: Re: [d-max/spots-dialog] private access in dmx.dialog.SpotsDialog (#42)
"Not working" doesn't really make sense. Is it crashing? Is it showing? Compile error?
This works to me
AlertDialog dialog = new SpotsDialog.Builder()
.setContext(this)
.setMessage("tes")
.setCancelable(false)
.build();
    dialog.show();

—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub https://github.com/d-max/spots-dialog/issues/42#issuecomment-427025291 , or mute the thread https://github.com/notifications/unsubscribe-auth/AEZEJSF9gwooEbiFK1sWDzr6e2G2_Z46ks5uhhF1gaJpZM4XHC2Y .  https://github.com/notifications/beacon/AEZEJWfwBbLchW06caA04GT3a6VPzL_Zks5uhhF1gaJpZM4XHC2Y.gif


Support debug test.

@jdneo I think Metals used debugSessionStart but for DebugSessionParamsDataKind used the same data kinds we use for tests e.g. scala-test-suites-selection and scala-test.
What's kind of interesting is that different clients might want different debug adapters....
Metals is primarily for Scala development so it uses https://github.com/scalacenter/scala-debug-adapter
For Kotlin there is https://github.com/fwcd/kotlin-debug-adapter
Java has https://github.com/microsoft/java-debug
I imagine the Java one is good enough for all but it would be handy to be able to specify the type in the BSP command and have the build server kick start the relevant one.  Another thing to propose to add to BSP spec.
Originally posted by @Arthurm1 in https://github.com/microsoft/build-server-for-gradle/issues/144#issuecomment-2199608819

Ah this is different from what I was thinking about.
My original thought is that, just having a flag to tell whether this is a debug request. And then use TestLauncher.debugTestsOn(int) at gradle tooling api side.

And then on the client side you attach to process?

Yes, and we don't need to care about the client debug adapter implementation.

Although debugTestsOn also disables parallel test execution.

Yes this is the reason I was thinking about not to append jdwp args at first.
I'll think twice to see what is the best way to do that.

So far, it turns out that client can make a debug session for test on its own. Here is an example which uses init script: https://github.com/microsoft/vscode-gradle/pull/1536
I'll close this ticket now since looks like no specific thing is needed right now on the server side.


new window open event.

My self memo.
Do the take over open status of  of old window when new window opened.

Take over the just before window hide / opne status.


Break HTTP routes into multiple servers

For access control purposes.

This is probably easiest to review all at once, rather than commit-by-commit. We can squash merge.

We can put Http & ws rpc on the same port, WDYT?

Rebased and made the adjustments mentioned in my last message. If you don't mind taking another quick look @omerfirmak, I would really appreciate it.
Note that all services except synchronization are disabled by default now. Enabling them all with default ports would look something like:
juno --http --ws --metrics --pprof --grpc


INFRA-1275: Switch Tiger-dev ECR to Infra1

Build succeeded (check pipeline).

https://checklist.intgdc.com/job/gooddata-public-demos/job/gooddata-public-demos-validation/195/ : SUCCESS in 15s
https://checklist.intgdc.com/job/compliance/job/gooddata-public-demos-oss-check/202/ : SUCCESS in 3s

Build succeeded (check pipeline).

https://checklist.intgdc.com/job/gooddata-public-demos/job/gooddata-public-demos-validation/196/ : SUCCESS in 10s
https://checklist.intgdc.com/job/compliance/job/gooddata-public-demos-oss-check/203/ : SUCCESS in 3s

Sonar scan result

No issue found. Congratulations!

More detail, see in https://sonarqube-gate.intgdc.com/dashboard?id=gooddata-public-demos-gate-PR85
To scan for vulnerabilities in dependencies and run unit tests (to get coverage report in sonar) please comment your PR with 'extended check sonar'.

Build succeeded (gate pipeline).

https://checklist.intgdc.com/job/gooddata-public-demos/job/gooddata-public-demos-validation/197/ : SUCCESS in 12s
https://checklist.intgdc.com/job/compliance/job/gooddata-public-demos-merge-compliance-check/73/ : SUCCESS in 9s
https://checklist.intgdc.com/job/compliance/job/gooddata-public-demos-sonarqube-scan-zuul-gate/71/ : SUCCESS in 42s
https://checklist.intgdc.com/job/compliance/job/gooddata-public-demos-fossa-scanning-zuul/34/ : FAILURE in 9s (non-voting)


code for automatically evaluating graph similarity and accuracy

Hello, I would like to use and reference your dataset. Do you have any code for automatically evaluating graph similarity and accuracy? I would like to refer to it.

I've also noticed that necessary evaluation tools for assessing models with this dataset are missing. I would like to request the evaluation code for the STREET dataset.


Playback speed

Allow for variable playback speed on videos, much like the web player.

Fixed in #22.


custom repl

I like what n_ is doing.  Though this module likely is too specific to simply make a user preference, it'd be really swell if Mancy allowed you to wrap its REPL with a custom one.
Would this be possible?  Is this something you'd be interested in supporting?
Great work. :+1:

(plugin support?)

@boneskull n_ - lodash plugin? I am not sure what it offers

in node's REPL you are not allowed to assign a variable to _
n_ wraps the REPL so _ becomes lodash.
but this is just an example of a custom REPL.  for instance, johnny-five offers a custom REPL.  it'd be awesome if Mancy could support this sort of functionality.

@boneskull there is no special meaning for _(underscore) in Mancy v2.0.0. we can assign anything to it like lodash or underscore.js

that's cool.


new post: typedapi

Post as submitted @pheymann.
I haven't changed much (in particular, I haven't proofread it). Reviews most welcome!

thanks @larsrh for preparing the PR @vil1 for proof reading it. I will overhaul my post once I am back at home and have a proper notebook and internet connection at my disposal. Expect incoming changes Sunday night or Monday morning.

@larsrh @vil1 I started a new branch to apply my changes:
https://github.com/pheymann/typelevel.github.com/blob/post/typedapi/posts/2018-06-15-typedapi.md
I will open a new PR (which will supersede this one) once I have finalized my post (hopefully today).


NRST mention in README

The readme says Optional (not needed, can be configured as output if fuse set): NRST is on PD7.
To avoid unnecessary confusion and datasheet reading It might be good to mention that PD7 by default is a GPIO.

Do you have a proposal on how to convey it clearly?

LOL no...  As a non-native English speaker that recently, even for my own mother tongue, got low scores on "clarity of communication" in the yearly evaluation at my workplace I might not be the best person to ask :-)
Maybe just invert the context of the sentence?
Optional: NRST on PD7 (not needed, but be configured if the RST_MODE fuses in flash are modified)

I rejiggerd it some.  I think it's good - closing issue now.


Custom Notice Template

What's changed?

Checklist

[ ]  I have read the Contributing Guide
[ ]  I have written the necessary doc or comment.
[ ]  I have added the necessary unit tests and all cases have passed.

Implement user-defined message notification template configuration.


Pre-existing user - App asking me to subscribe again

I updated the app today but in the themes section I'm getting a popup asking me to pay for the subscription.
Reference :

Hey. As explained in #453, this is due to a bug in the app. The fix will be released within today.

Fixed in the latest update.

Fixed in the latest update.

At least for me after upgrading to get the fix. I can access theme but when I try to change the theme it doesn't change. This happens on Ipad and iOS using the latest OS version.

Fixed in the latest update.

At least for me after upgrading to get the fix. I can access theme but when I try to change the theme it doesn't change. This happens on Ipad and iOS using the latest OS version.

Make sure your device's Color scheme (dark vs light) matches the theme you are trying to switch to.


Loading images from remote URLs

Hi!  Really like what you're doing with Classy, and I'm exploring its suitability for a large project I'm working on.  One requirement this project has is the ability to load icons and images for styled elements from a URL, as opposed to only using resources in the app's bundle.
In Pixate / CSS, doing this works something like:
.myClass {
background-image: url("http://somewhere.com/images/icon.png");
}
Is there a similar functionality implemented or planned for Classy?

@daniel-hall , can this issue be closed?

Added information to wiki how-to.


Match GNU diff's implementation for exit codes (fixes #17)

Could you please add tests too?
it is easier to run than GNU's
thanks

Could you please add tests too?

Done.

terrific!


requires-python = ">=3.10"

Fix for an error that arises when using python3.9:
Python 3.9.19 (main, Mar 19 2024, 16:08:27)
[Clang 15.0.0 (clang-15<IP_ADDRESS>)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from virtualizarr import open_virtual_dataset

Traceback (most recent call last):
...
  File "/github/developmentseed/VirtualiZarr/virtualizarr/manifests/manifest.py", line 36, in ChunkEntry
    def from_kerchunk(cls, path_and_byte_range_info: list[str | int]) -> "ChunkEntry":
TypeError: unsupported operand type(s) for |: 'type' and 'type'

as I believe the type union operator was only implemented in 3.10: https://docs.python.org/3/whatsnew/3.10.html#pep-604-new-type-union-operator

Sorry I misread what this PR does - I see now this is just something that should have been added in Julia's PR!
Thanks @abarciauskas-bgse !


Missing explanation of Errata directory

Does the Errata folder contain the correct versions of the notebooks or older incorrect versions? I think it would be helpful to have that information in the README.md or to simply include only corrected versions of the notebooks.

Good point - I've updated readme. yes errata folder notebooks is more up-to-date in terms of catching the errata


Code Quality Fix

Fixes problems with code quality

This pull request is now managed with CodeReviewHub. Refresh.


improve contrast of cart item count

before:

after:

Applied in https://github.com/lnbits/tpos/pull/35


Component - Lightbox Media Viewer - Description display issue on entering more text on mobile devices.

Issue description:- On mobile devices in lighbox media viewer component on entering large amount of text in description , description text is going behind the video player and title text is not visible.
Steps to reproduce the issue

Enter url in the browser.
Enter large amount of text in description field.
Open the pattern in new page.
Check if description and title is displayed properly.

OS:- iOS 12, 13 Android 8,9
Browsers:- Chrome, Safari, UC
URL:- https://ibmdotcom-react-staging.mybluemix.net/?path=/story/components-lightboxmediaviewer--embedded-video-player

@chetankan could you please check if we still have this issue. I tried to enter some text, looks fine.

@greeshmareddyg : Lightbox Media Viewer---> Embedded Video Player , in knobs section there is no description section to enter text.
URL:- https://ibmdotcom-react-staging.mybluemix.net/?path=/story/components-lightboxmediaviewer--embedded-video-player

@chetankan Yeah, with the current video component we can't send the description, it is coming from API with video. I have tested with the dev tool by entering a large text.

Closing this issue based on Greeshma's comments.


[proposal] Apply eslint and check in CI

First step to fix #34
Here we are introducing eslint with all the defaults, if @riccardo-forina or anyone else already has a more thought-through configuration I'm happy to apply it on top of this PR.
Opening the proposal in draft to receive feedback.

Maybe we should extend this set of rules that's made specifically for playwright https://github.com/playwright-community/eslint-plugin-playwright

@riccardo-forina added the suggested plugin, we can tune things better on top I believe.

👍


Seeing intermittant PytubeError('Unable to determine json offset.',)

This does not seem to happen all the time, but sometimes when I'm trying to make a YouTube constructor call with a URL from a YouTube RSS feed, it throws this error. I cannot reproduce it consistently.

I'm sorry you're having this issue. I'm closing this issue until reproduction steps can be provided, otherwise its difficult for me to determine if this becomes fixed with a patch addressing some reproducible "Unable to determine json offset." error.

I believe this was fixed by your most recent release.


Duplicate instance declarations: Language/Eiffel/Syntax.hs:407:10: error:

Language/Eiffel/Syntax.hs:407:10: error:
    Duplicate instance declarations:
      instance Binary Text -- Defined at Language/Eiffel/Syntax.hs:407:10
      instance Binary Text -- Defined in ‘Data.Text’
    |
407 | instance Binary Text where
    |          ^^^^^^^^^^^
Error: cabal: Failed to build language-eiffel-0.1.2.

$ ghc --version
The Glorious Glasgow Haskell Compilation System, version 8.4.4

So which version of ghc this package has been last tested with?

Looks like it was mostly bitrot and my bad package bounds which let it happen.
I've used a few newer GHC versions and added package and tool (alex) bounds that will have hopefully fixed this for you.


Deletion upon Upload

I tried to upload a file in Directory 2 and in the log was shown I have not deletion rights.

[material1],INFO ,25-03-2020 09:14:59.554, Upload of a file in directory with id '2' requested by user 'studentin'.,http-nio-8080-exec-6,mops.presentation.DirectoryController.uploadFile
[material1],DEBUG,25-03-2020 09:14:59.555, Executing prepared SQL query,http-nio-8080-exec-6,org.springframework.jdbc.core.JdbcTemplate.query
[material1],DEBUG,25-03-2020 09:14:59.555, Executing prepared SQL statement [SELECT directory.id AS id, directory.name AS name, directory.parent_id AS parent_id, directory.group_owner AS group_owner, directory.creation_time AS creation_time, directory.permissions_id AS permissions_id, directory.last_modified_time AS last_modified_time FROM directory WHERE directory.id = ?],http-nio-8080-exec-6,org.springframework.jdbc.core.JdbcTemplate.execute
[material1],DEBUG,25-03-2020 09:14:59.557, Executing prepared SQL query,http-nio-8080-exec-6,org.springframework.jdbc.core.JdbcTemplate.query
[material1],DEBUG,25-03-2020 09:14:59.557, Executing prepared SQL statement [SELECT directory_permissions.id AS id, directory_permissions.creation_time AS creation_time, directory_permissions.last_modified_time AS last_modified_time FROM directory_permissions WHERE directory_permissions.id = ?],http-nio-8080-exec-6,org.springframework.jdbc.core.JdbcTemplate.execute
[material1],DEBUG,25-03-2020 09:14:59.558, Executing prepared SQL query,http-nio-8080-exec-6,org.springframework.jdbc.core.JdbcTemplate.query
[material1],DEBUG,25-03-2020 09:14:59.559, Executing prepared SQL statement [SELECT directory_permission_entry.role AS role, directory_permission_entry.can_read AS can_read, directory_permission_entry.can_write AS can_write, directory_permission_entry.can_delete AS can_delete FROM directory_permission_entry WHERE directory_permission_entry.permissions_id = ?],http-nio-8080-exec-6,org.springframework.jdbc.core.JdbcTemplate.execute
[material1],DEBUG,25-03-2020 09:14:59.561, Fetching roles for user 'studentin' with global roles '[studentin]' in group '100'.,http-nio-8080-exec-6,mops.businesslogic.group.GroupServiceDevImpl.fetchRoleForUserInGroup
[material1],DEBUG,25-03-2020 09:14:59.561, Returning local role 'viewer'.,http-nio-8080-exec-6,mops.businesslogic.group.GroupServiceDevImpl.fetchRoleForUserInGroup
[material1],ERROR,25-03-2020 09:14:59.562, The user 'studentin' tried to write in 'Child Folder' where they have no write permissions.,http-nio-8080-exec-6,mops.businesslogic.security.SecurityServiceImpl.checkWritePermission
[material1],DEBUG,25-03-2020 09:14:59.562, Executing prepared SQL query,http-nio-8080-exec-6,org.springframework.jdbc.core.JdbcTemplate.query
[material1],DEBUG,25-03-2020 09:14:59.563, Executing prepared SQL statement [SELECT directory_permissions.id AS id, directory_permissions.creation_time AS creation_time, directory_permissions.last_modified_time AS last_modified_time FROM directory_permissions WHERE directory_permissions.id = ?],http-nio-8080-exec-6,org.springframework.jdbc.core.JdbcTemplate.execute
[material1],DEBUG,25-03-2020 09:14:59.564, Executing prepared SQL query,http-nio-8080-exec-6,org.springframework.jdbc.core.JdbcTemplate.query
[material1],DEBUG,25-03-2020 09:14:59.564, Executing prepared SQL statement [SELECT directory_permission_entry.role AS role, directory_permission_entry.can_read AS can_read, directory_permission_entry.can_write AS can_write, directory_permission_entry.can_delete AS can_delete FROM directory_permission_entry WHERE directory_permission_entry.permissions_id = ?],http-nio-8080-exec-6,org.springframework.jdbc.core.JdbcTemplate.execute
[material1],DEBUG,25-03-2020 09:14:59.566, Fetching roles for user 'studentin' with global roles '[studentin]' in group '100'.,http-nio-8080-exec-6,mops.businesslogic.group.GroupServiceDevImpl.fetchRoleForUserInGroup
[material1],DEBUG,25-03-2020 09:14:59.566, Returning local role 'viewer'.,http-nio-8080-exec-6,mops.businesslogic.group.GroupServiceDevImpl.fetchRoleForUserInGroup
[material1],DEBUG,25-03-2020 09:14:59.566, Executing prepared SQL query,http-nio-8080-exec-6,org.springframework.jdbc.core.JdbcTemplate.query
[material1],DEBUG,25-03-2020 09:14:59.566, Executing prepared SQL statement [SELECT directory_permissions.id AS id, directory_permissions.creation_time AS creation_time, directory_permissions.last_modified_time AS last_modified_time FROM directory_permissions WHERE directory_permissions.id = ?],http-nio-8080-exec-6,org.springframework.jdbc.core.JdbcTemplate.execute
[material1],DEBUG,25-03-2020 09:14:59.567, Executing prepared SQL query,http-nio-8080-exec-6,org.springframework.jdbc.core.JdbcTemplate.query
[material1],DEBUG,25-03-2020 09:14:59.568, Executing prepared SQL statement [SELECT directory_permission_entry.role AS role, directory_permission_entry.can_read AS can_read, directory_permission_entry.can_write AS can_write, directory_permission_entry.can_delete AS can_delete FROM directory_permission_entry WHERE directory_permission_entry.permissions_id = ?],http-nio-8080-exec-6,org.springframework.jdbc.core.JdbcTemplate.execute
[material1],DEBUG,25-03-2020 09:14:59.568, Fetching roles for user 'studentin' with global roles '[studentin]' in group '100'.,http-nio-8080-exec-6,mops.businesslogic.group.GroupServiceDevImpl.fetchRoleForUserInGroup
[material1],DEBUG,25-03-2020 09:14:59.569, Returning local role 'viewer'.,http-nio-8080-exec-6,mops.businesslogic.group.GroupServiceDevImpl.fetchRoleForUserInGroup
[material1],ERROR,25-03-2020 09:14:59.569, The user 'studentin' tried to delete in 'Child Folder' where they have no delete permissions.,http-nio-8080-exec-6,mops.businesslogic.security.SecurityServiceImpl.checkDeletePermission
[material1],ERROR,25-03-2020 09:14:59.569, User studentin tried to save a file without write permission.,http-nio-8080-exec-6,mops.businesslogic.file.FileServiceImpl.saveFile
[material1],ERROR,25-03-2020 09:14:59.570, Failed to upload file in directory with id '2':,http-nio-8080-exec-6,mops.presentation.DirectoryController.uploadFile
mops.businesslogic.exception.WriteAccessPermissionException: Keine Schreibberechtigung


[util/fpga,sw/opentitantool] Add FPGA splicing capabilities for OTP images

Problem
Several mask ROM E2E tests expect different values to be included in OTP, most importantly the lifecycle state. By default the FPGA bitstreams contain a default OTP image with the lifecycle state set to RMA. A utility script exists to splice different ROM images into the bitstream, but not OTP images.
Solution

[ ] Utility scripts must be developed to splice various OTP images into FPGA bitstreams
[ ] the splicing scripts can be invoked by opentitantool load_bitstream top-level command (similar to #10865)

A prerequisite will be to have the FPGA flow export the info to get to the correct memories. I believe it currently only exports the ROM's (to rom.mmi).

@milesdai It seems like we've implemented the same functionality twice in util/fpga/splice_rom.sh and //rules/splice.bzl (used by //hw/bitstream/vivado:fpga_cw310_mask_rom). Is one of these deprecated, or should I be implementing the OTP splicing feature in both?
In Bazel, I think I can just reuse the existing bitstream_splice with a new target in hw/bitstream/vivado/BUILD. That is, we'd do a full Vivado run to generate the CW310 build with the test rom, then splice in the Mask ROM, and finally splice in the OTP image. Something like this:
 bitstream_splice(
     name = "fpga_cw310_mask_rom",
     src = ":fpga_cw310_test_rom",
     data = "//sw/device/silicon_creator/mask_rom:mask_rom_fpga_cw310_scr_vmem",
     meminfo = ":rom_mmi",
     tags = ["manual"],
 )
+
+# Splice in the dev OTP image, replacing the RMA image.
+bitstream_splice(
+    name = "fpga_cw310_mask_rom_otp",
+    src = ":fpga_cw310_mask_rom",
+    data = "//hw/ip/otp_ctrl/data:img_dev",
+    meminfo = ":rom_mmi",
+    tags = ["manual"],
+)

Digging into that //hw/ip/otp_ctrl/data:img_dev data attribute, I found out I can use the otp_image rule to define an alternate OTP image. Under the hood, that uses util/design/gen-otp-img.py, which takes an .hjson file to define the generated OTP image, e.g. otp_ctrl_img_dev.hjson.
One thing I got stuck on is that gen_vivado_mem_image.py wants to extract the architecture's width from the input .vmem filename, but the default output of util/design/gen-otp-img.py is just named otp-img.vmem.
Am I on the right track, or is the OTP image substantially different from the ROM image in some way that I shouldn't be extending the existing splicing tools?

Just had a chat with @dmcardle, and noting a few details here for posteriority.
The image generator script knows the architectural widths (read from OTP and LC config files):
https://github.com/lowRISC/opentitan/blob/9b6225e63885b551f432a6f89189f9f4383e09ce/util/design/lib/OtpMemImg.py#L93-L101
Note that the width in the comment inside the hex file is byte aligned.
You could use this info to and propagate it into the image name here:
https://github.com/lowRISC/opentitan/blob/9b6225e63885b551f432a6f89189f9f4383e09ce/util/design/gen-otp-img.py#L270-L271
Note however, that we will have to search and replace all instances of otp-img.vmem throughout the repo (in BUILD, .core and .hjson files - not sure about .sv but worth checking).

Minor success: I changed gen-otp-img.py to encode the architecture width into the output vmem filename, but I've run into an issue passing that file into gen_vivado_mem_image.py.
I noticed that the OTP vmem has a different syntax than the Mask ROM vmem files. Unsurprisingly, gen_vivado_mem_image.py fails to process it correctly.
For reference, this is what mask_rom_fpga_cw310.32.vmem looks like:
/* http://srecord.sourceforge.net/ */
@00000000 5080406F 5040406F 5000406F 4FC0406F 4F80406F 4F40406F 4F00406F
@00000007 4EC0406F 4E80406F 4E40406F 4E00406F 4DC0406F 4D80406F 4D40406F
@0000000E 4D00406F 4CC0406F 4C80406F 4C40406F 4C00406F 4BC0406F 4B80406F
[...]

 Ultimately, I'll need to convert it to the mem format that updatemem understands. There's a helpful link to Xilinx documentation on the mem format in gen_vivado_mem_image.py.

Peeking at the OTP vmem, I thought each line would be ${address} // ${word_at_address}: ${annotation_for_humans}, but that can't be right because I see a bunch of 000000 addresses with different word values.
Is it supposed to write in the same vmem format as the Mask ROM? Following the http://srecord.sourceforge.net link in mask_rom_fpga_cw310.32.vmem brought me to this doc.

Is the output of gen-otp-img.py actually used anywhere or is it effectively dead code?

It seems like these OTP vmem files are already being generated and at least referenced by chip_sim_cfg.hjson. After that, I'm not sure where they are used.

Hi @dmcardle, I will try to answer some of your questions:

What format is gen-otp-img.py emitting? Ultimately, I'll need to convert it to the mem format that updatemem understands.

The format we are using for OTP represents one data word per line (with the data word being 22 bit wide for this particular memory). Everything after the comment // is human readable debug output, but not actually part of the file format.

Is it supposed to write in the same vmem format as the Mask ROM? Following the http://srecord.sourceforge.net link in mask_rom_fpga_cw310.32.vmem brought me to this doc.

It probably makes sense to align the OTP script to emit the image in the same format as the ROM.
We would however have to check whether all EDA tools (Verilator, Vivado, VCS/Xcelium) are fine with that format, since I am not sure whether we read the ROM image exactly in the same way as the OTP image in these tool flows.

Is the output of gen-otp-img.py actually used anywhere or is it effectively dead code?

It is used in plenty of places for preloading Verilator / DV sims and the FPGA bitstream.
The file name may however differ from the default otp-img.vmem, which is probably why a search through all files did not reveal many results.
Some examples that I could find:
https://github.com/lowRISC/opentitan/blob/c18d47641210a2d060550bb2cbf447c98e3d8b61/hw/top_earlgrey/rtl/autogen/chip_earlgrey_cw310.sv#L18 (generated from the template here)
https://github.com/lowRISC/opentitan/blob/c18d47641210a2d060550bb2cbf447c98e3d8b61/hw/top_earlgrey/util/opentitan_earlgrey_usbdev_pin_config_sim.sh#L12
https://github.com/lowRISC/opentitan/blob/c18d47641210a2d060550bb2cbf447c98e3d8b61/hw/top_earlgrey/dv/env/chip_env_cfg.sv#L173-L176
https://github.com/lowRISC/opentitan/blob/c18d47641210a2d060550bb2cbf447c98e3d8b61/hw/top_earlgrey/dv/chip_sim_cfg.hjson#L169-L184
https://github.com/lowRISC/opentitan/blob/c18d47641210a2d060550bb2cbf447c98e3d8b61/hw/top_earlgrey/chip_earlgrey_cw310.core#L51
https://github.com/lowRISC/opentitan/blob/c18d47641210a2d060550bb2cbf447c98e3d8b61/ci/scripts/build-bitstream-vivado.sh#L74-L80

Per chat with @cfrantz, let's change //hw/bitstream/vivado:fpga_cw310 to use an empty ROM image as input. We can then generate the test ROM and Mask ROM variants of the bitstream via splicing. This enables developers to iterate on the test ROM without recompiling the whole bitstream.

I think this is done now. @dmcardle @timothytrippel please feel free to reopen if you there's any remaining work.


pb to go struct ,can you specify parameters to generate json tag “omitempty”

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is.
when i use pb to go struct. There is a tag like json:"xxx,omitempty"
but if I want to send http request,I must use json . when this field is 0 (int), i can't find this field. This thing bothered me long time. So, i want to delete 'omitempty'. But i find this tag is hard code!!!!
https://github.com/golang/protobuf/blob/master/protoc-gen-go/generator/generator.go#L2500
Describe the solution you'd like
A clear and concise description of what you want to happen.
Add a parameters to control ‘omitempty’ tag generation.

The way to convert a protobuf message to or from JSON is to use the "google.golang.org/protobuf/encoding/protojson" package, which will produce a standard JSON serialization form used by all protobuf implementations.
The json:"..." field tags are generated for backwards compatibility with code that relies on their presence, but we do not recommend using the "encoding/json" package with protobuf messages. I'm sorry, but we're not going to make further changes to the content of those tags.

thank you!


Autocompletion adds syntactically incorrect tag block

When adding a tags block by IntelliJ's autocompletion feature, the resulting block is inserted as:
tags {}
instead of the correct version
tags = {}
Exception
Error: Unsupported block type

  on example.tf line 20, in resource "aws_s3_bucket" "teh_example_bucket":
  20:   tags {

Blocks of type "tags" are not expected here. Did you mean to define argument
"tags"? If so, use the equals sign to assign it a value.

Steps to Reproduce

Inside a resource block type ta
Hit Enter or Tab to trigger autocompletion

Installation details

[ ] IDE version: 2019.1.3
[ ] intellij-hcl plugin version: v0.7.4
[ ] Terraform version: v0.12.4

Fixed, will be available in 0.7.9


Locations in Office 365

How does locations in Skype for Business work in Office 365?

Hi @adamoh1 how are you?
There is no article referenced in your issue, besides that, if you refer to the location info you can set using Skype For Business Client, it has no difference with the On-Prem version. See https://support.office.com/en-us/article/customize-your-location-info-in-skype-for-business-a8559d54-e628-43f2-a0f5-2e92bfb9735e
Hope this information helps you.

@get-itips  Thank you very much for the contribution and sharing this explanation. @adamoh1
Hope this comment is helpful for you. Thanks for taking out some time to open the issue. Appreciate and encourage you to do the same in future also.


Chisel3 cannot create an 'all input' version of a Bundle

val a = DecoupledIO(UInt(width = 3))
val b = a.asInput
val c = a.asOutput
val d = a.flip
In this case, a==c and b==d. All four bundles have ready going in the opposite direction to valid.
If you want to write a Monitor for QA purposes, there is no way to take a bundle and force ALL the fields to be in the same direction. In other words, you can never write a Module which passively snoops on the traffic between two other components without unbundling the entire type.
@hcook Keeping you in the loop.

This should be fixed by my pull request since it rewrites how directions are propagated through the direction setting commands. (I haven't verified if other people's changes to try to preserve aggregate-level directions in FIRRTL broke anything.)
That said, I think the bug has to deal with the fact that, when overrideDirection is called, the flip adjustment only happens to the top-level (DecoupledIO). So, in the case of b and c, the directions of all nodes are set but not the flips of the leaves are not touched. This leads to consistency issues between dir and isFlip. Amusingly, the chisel core only seems to examine dir for root references when writing ports. isFlip is what is used in the Bundle type writings (and oddly, also as part of writing the port direction).
My proposed fix is, for asInput and asOutput, to blank isFlipVar for all nodes in the Data tree. Also, amend https://github.com/ucb-bar/chisel3/blob/a2cb95bfe9e9c30b73284e97048fa0187ab0ee1d/chiselFrontend/src/main/scala/chisel3/core/Module.scala#L101 to just look at direction and not the isFlip. Similar for the BlackBox port emission.
PS: Note that, calling asInput and asOutput on bi-directioned Bundles can lead to accidental surprises in other places. For example, stuff like https://github.com/ucb-bar/chisel3/blame/dda64c1dee16b5da15ac690bd3cd6759c3d5c032/src/main/scala/chisel3/util/Decoupled.scala#L74 will not work if you pass it a variant with the directions corrupted. (Also, that code was the only time a non-root dir was examined.)
PPS: You didn't end up testing this case; however, the direction setters are vulnerable to the standing cloneType issue where, for example, a.flip.flip is the same as a.flip. This is because all the direction setters first call cloneType and that wipes away all direction mutations (since the standard cloneType 'formula' does not tell the user to do direction updates).

Superseded by #440.
Input(...) doesn't do what we want it to do right now, but we're going to fix that...


Connection Refused

i did the command, i put the host ip but it says connection refused

Same

Same here


CSS edits for Settings(profile) + main feed - padding

Padding added to Profile section in Settings
-hover (edit) added to banner to match avatar in profile settings

padding added to private key info at foot
info headings made bold, added classNames

Some minor padding added to main feed for small devices/screens
-width changed to percentage number to allow for padding on small devices
className added to privatekey div
media query added for main feed for future edits

There is a new styles branch being worked on already, you can see it here: https://github.com/v0l/snort/tree/new-ui

Please check again, after new-ui is merged


Questions about online model

Hello, very inspiring work! But there is very little introduction about online models in the paper, and I have some questions that I hope to receive your reply.

As far as I know, the items of Douyin are mainly short videos. What's the input of Item LLM? The features related to video/image understanding, or only text descriptions?
Did some acceleration techniques similar to HSTU be used during training? For example, is the sample constructed by point?
Is the input of user LLM only the output of item LLM? How to use user side features and how to deal with new users?

Hi~

Text only now.
No, we don't use streaming training now.
Yes, but you could try to use other side infos to enhance the model.


Update homebrew install code snippet when using cask

Homebrew's documentation has different or updated syntax for using cask:
Old
brew cask install spotmenu
New
brew install --cask spotmenu

Oops, didn't seen that one 😅

thank you! i merged https://github.com/kmikiy/SpotMenu/pull/249 so i'm closing this


Why is matchesPattern() private?

As per title, it would be nice to be able to do this:
if (s("string")->matchesPattern("pattern"))
{
    echo 'We found a match.';
}

You're right - though the current name is a bit verbose, and I'm not sure what I'd name it. Calling it match might not be appropriate, since it returns a boolean rather than the regexp matches (preg_match in PHP, String.prototype.match in JS, re.match in python)

preg_match doesn't return the matches, it fills them via the third parameter.
You could have matchesPattern or whatever you want to call it do likewise.
So for example:
if (s("string")->matchesPattern("pattern", $matches))
{
    echo 'We found at least 1 match.';
    print_r($matches);
}

Oops, you're right. That's not exactly an API I'd like to be consistent with though.

Note that the behavior would need to be changed from using mb_ereg_match to mb_ereg, since mb_ereg_match imposes ^ (matching from start of str)

Closing for now. Would like to explore an alternative API.


Use absolute workspace paths everywhere

This is no longer relevant, as arg_handler.py has been annihilated. Individual subcommands handle workspace resolution well. workspace, as a concept, is to be eliminated, as per TODO-handling in #745.


Incorrectly following redirects on a POST

The client-side library (haven't verified server-side yet) is following 302 redirects on POST. According to the spec:
http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html

If the 302 status code is received in response to a request other than GET or HEAD, the user agent MUST NOT automatically redirect the request unless it can be confirmed by the user, since this might change the conditions under which the request was issued.

Unfortunately, I can't even disable this with a .redirects(0) as:

superagent.post(...).redirects is not a function

Agreed that's a protocol violation and superagent definitely shouldn't be doing this. Could you help by writing a test or maybe fixing the issue?

I've checked this. Superagent doesn't re-send POST, but changes request method to GET on 301, 302 and 303. I think that's fine, and follows the current HTTP RFC:

Note: For historical reasons, a user agent MAY change the request
method from POST to GET for the subsequent request.  If this
behavior is undesired, the 307 (Temporary Redirect) status code
can be used instead.

I do not agree with your conclusions and this issue should be reopened imo. My reference is this https://tools.ietf.org/html/rfc2616#section-10.3.3.
RFC addresses two distinct problems:

automatic redirect when 302 is received;
change from GET to POST on second request.

As far I understood, as a response to POST requests, 302 says that

the user agent MUST NOT automatically redirect the request unless it can be confirmed by the user;
but it is up to the user agent to decide to perform a GET instead of the original POST the second time;
if you do not like this ambiguity, please return 303 or 307 instead.

Hence, superagent must not redirect automatically, but, if redirect is confirmed by the user, it can resend the request using GET instead of POST.

2616 has been obsoleted and should not be used as a reference any more. The current HTTP RFC clarified this, and we follow the current recommended behavior for HTTP.

@pornel (How) can I log the redirects happening?

Use .on('redirect', callback)

@pornel the response.text in the callback is undefined for redirect events.
Do you know how I can log the exact http response?

Bodies of redirect responses are supposed to be only a fallback for clients that don't support redirects, so we don't parse them.

@pornel sorry, I don't mean the body, but the actual reply in http format.
For example (I made this up):
HTTP/1.1 301
Date: Mon, 22 May 2017 12:25:30 GMT
Server: Apache
Location: http://www.foo.bar
Content-Length: 100
Connection: close
Content-Type: text/html; charset=utf-8

Can we retrieve this, or is superagent skipping this when status is 30x?

Superagent doesn't have raw bytes of the response. It uses Node's request, which is higher-level than that.
I don't remember off top of my head whether we set headers object, but it might be there.

@pornel I can indeed get close using headers or rawHeaders. Also status works. I only can't seem to find the protocol declaration, e.g. HTTP/1.1 or HTTP/2.0.
I understand this is not superagent specific but could be in the Node serverResponse object.
Thank you for the quick reponse. :+1:

Though the function is now there on .post() it still doesn't seem possible to stop redirect with .redirects(0). Is that intended?


retry modprobe lustre and fail on error (client)

Yes, I was going to ask the same thing.  It's good to retry but we might
want to just exit 0 on failure.
On Thu, 11 Nov 2021 at 17:58, Xavier Pillons @.***>
wrote:

@.**** commented on this pull request.
Does this works even if the lustre client is not installed in the image ?
in that case you want to silently failed.
—
You are receiving this because your review was requested.
Reply to this email directly, view it on GitHub
https://github.com/Azure/az-hop/pull/628#pullrequestreview-804075541,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAG5ADOVH4ZUQKQBIRIBCFTULP75ZANCNFSM5H3ACTOQ
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

I agree, exit 0 is more robust in case we don't want lustre on a vm.
Another option is to check is the module is installed, something like modinfo lustre >&/dev/null || exit 0 then exit 1 if failed.
I prefer first option.

updated the script to exit without error + some refactoring. 5 retries with 5 second delay.

@edwardsp @vgamayunov can you please review the latest updates ?

@xpillons can you think of a scenario when lustre module is in the image, but we wait the error to be silent?
If not, then I think this is good now.

@vgamayunov it's not the case today. so I will proceed with the merge. However we shoud think about making Lustre optional


Default cue.position to "auto"

Fixes https://github.com/mozilla/vtt.js/issues/354

FYI: this PR changed dist/vtt.js rather than lib/vtt.js (see diff). As such, the changes from this PR will be lost whenever a new distribution is built. You probably want to port these changes to lib/vtt.js.

Oops, thanks @MattiasBuelens! https://github.com/mozilla/vtt.js/pull/357

@MattiasBuelens Forgive my ignorance, but why are the dist versions in version control at all?

Bower requires that the dist be checked in or at least available in the tag.
In videojs, we have a custom build that when we want to do a release, it tags the version in a separate branch that doesn't get merged back into master. Don't necessarily recommend this approach, but that's how we solved it.

Wierd. Ok, thanks.


Npm Install Angular Core 8.0.2 Fails

🐞 Bug report
Command (mark with an x)

...
- [ ] generate
- [ ] add
- [x] update
- [ ] lint

Is this a regression?
 Yes, the previous version in which this bug was not present was 8.0.0: ....
Description
Cannot Run ng serve now
Error You seem to not be depending on "@angular/core" and/or "rxjs". This is an error.
package.json after running ng update
...
    "@angular/core": "^8.0.2",
....

npm install '@angular/core' fails
🔬 Minimal Reproduction
🔥 Exception or Error

npm ERR! Error while executing:
npm ERR! E:\Program Files\Git\cmd\git.EXE ls-remote -h -t<EMAIL_ADDRESS>npm ERR!
npm ERR! Host key verification failed.
npm ERR! fatal: Could not read from remote repository.
npm ERR!
npm ERR! Please make sure you have the correct access rights
npm ERR! and the repository exists.
npm ERR!
npm ERR! exited with error code: 128

npm ERR!      E:\nodejs\npm-cache\_logs\2019-06-25T15_09_10_954Z-debug.log

Error in Log

0 info it worked if it ends with ok
1 verbose cli [
1 verbose cli   'E:\\Program Files\\nodejs\\node.exe',
1 verbose cli   'E:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js',
1 verbose cli   'install',
1 verbose cli   "'@angular/core'"
1 verbose cli ]
2 info using<EMAIL_ADDRESS>3 info using<EMAIL_ADDRESS>4 verbose npm-session e903ba6ca738a24d
5 silly install loadCurrentTree
6 silly install readLocalPackageData
7 silly fetchPackageMetaData error for '@github:angular/core' Error while executing:
7 silly fetchPackageMetaData E:\Program Files\Git\cmd\git.EXE ls-remote -h -t<EMAIL_ADDRESS>7 silly fetchPackageMetaData
7 silly fetchPackageMetaData Host key verification failed.
7 silly fetchPackageMetaData fatal: Could not read from remote repository.
7 silly fetchPackageMetaData
7 silly fetchPackageMetaData Please make sure you have the correct access rights
7 silly fetchPackageMetaData and the repository exists.
7 silly fetchPackageMetaData
7 silly fetchPackageMetaData exited with error code: 128
8 timing stage:rollbackFailedOptional Completed in 2ms
9 timing stage:runTopLevelLifecycles Completed in 2928ms
10 verbose stack Error: exited with error code: 128
10 verbose stack     at ChildProcess. (E:\Program Files\nodejs\node_modules\npm\node_modules\pacote\lib\util\finished.js:12:19)
10 verbose stack     at ChildProcess.emit (events.js:200:13)
10 verbose stack     at maybeClose (internal/child_process.js:1021:16)
10 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:283:5)
11 verbose cwd E:\Users\nkahlon\vortex-beta\dmsportal\src\war\angular
12 verbose Windows_NT 6.1.7601
13 verbose argv "E:\\Program Files\\nodejs\\node.exe" "E:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "'@angular/core'"
14 verbose node v12.3.1
15 verbose npm  v6.9.0
16 error Error while executing:
16 error E:\Program Files\Git\cmd\git.EXE ls-remote -h -t<EMAIL_ADDRESS>16 error
16 error Host key verification failed.
16 error fatal: Could not read from remote repository.
16 error
16 error Please make sure you have the correct access rights
16 error and the repository exists.
16 error
16 error exited with error code: 128
17 verbose exit [ 1, true ]

🌍 Your Environment

     _                      _                 ____ _     ___
    / \   _ __   __ _ _   _| | __ _ _ __     / ___| |   |_ _|
   / △ \ | '_ \ / _` | | | | |/ _` | '__|   | |   | |    | |
  / ___ \| | | | (_| | |_| | | (_| | |      | |___| |___ | |
 /_/   \_\_| |_|\__, |\__,_|_|\__,_|_|       \____|_____|___|
                |___/

Angular CLI: 8.0.0
Node: 12.3.1
OS: win32 x64
Angular:
...

Package                      Version
------------------------------------------------------
@angular-devkit/architect    0.800.0
@angular-devkit/core         8.0.0
@angular-devkit/schematics   8.0.0
@schematics/angular          8.0.0
@schematics/update           0.800.0
rxjs                         6.4.0

Anything else relevant?

Stack overflow -> https://stackoverflow.com/questions/56756651/stuck-at-npm-install-angular-core8-0-2

Updating Angular CLI seems to have fixed it
Angular CLI: 8.0.4
Node: 12.3.1
OS: win32 x64
Angular:
...

Package                      Version
------------------------------------------------------
@angular-devkit/architect    0.800.4
@angular-devkit/core         8.0.4
@angular-devkit/schematics   8.0.4
@schematics/angular          8.0.4
@schematics/update           0.800.4
rxjs                         6.4.0


Added timeShift option to compensate for DST

See issue #1374. Currently, because timeShift offsets time by a fixed number of seconds, comparing a time period with DST to a time period without DST, and vice-versa, results in an apparent misalignment. For example, 8am might be overlaid with 7am. To compensate for this, I added the alignDST option to the timeShift function. This option is disabled by default.
alignDST is basically a shortcut for adding +/- 1 hour to the time shift. It only takes affect if the from and until times were both in DST, and the timeShift-ed time was outside DST (and vice-versa).

@deniszh look ok to you?

Yep. It's quite simple to merge, even w/o testing. :+1:
On Sat, 7 Nov 2015 at 05:35, Jason Dixon<EMAIL_ADDRESS>wrote:

@deniszh https://github.com/deniszh look ok to you?
—
Reply to this email directly or view it on GitHub
https://github.com/graphite-project/graphite-web/pull/1384#issuecomment-154619115
.

s/testing/test code/, sorry
On Sat, 7 Nov 2015 at 06:12, Denis Zhdanov<EMAIL_ADDRESS>wrote:

Yep. It's quite simple to merge, even w/o testing. :+1:
On Sat, 7 Nov 2015 at 05:35, Jason Dixon<EMAIL_ADDRESS>wrote:

@deniszh https://github.com/deniszh look ok to you?
—
Reply to this email directly or view it on GitHub
https://github.com/graphite-project/graphite-web/pull/1384#issuecomment-154619115
.


Add dockerfile

It's super easy to use and this image is well tested.
Start with ZooKeeper first.
sudo docker run -d --net=host tobegit3hub/standalone-zookeeper

And start the codis container.
sudo docker run -d --net=host tobegit3hub/codis

Refer to https://github.com/wandoulabs/codis/issues/179

LGTM


[feat] Add conversational / template based mode

Based on #120  prompts - we might want to ask ChatGPT like: "Check the diabetes risk. You might ask me additional question given the select options  - for example: Was anyone in your family suffering diabetes {select:yes|no}. Ask up to 5 more questions and give the answer based on my health history"

In the chat.tsx we then need to analyze the chat responses and if {select|checkbox|input:} template is in the response we might want to display the qeustion as prompt answer


List property set should be batched/observable

Fixed by f1432edae4d5484299c0ca2e557f75255f4b7c7a - "When setting a list property, do an observable update to the array."


Encrypted email has UNCHECKED as subject

Expected behavior
The subject should not contain ***UNCHECKED***
Actual behavior
When sending an encrypted e-mail with PGP the subject of the email has ***UNCHECKED*** in front of the actual subject
Steps to reproduce

Enable PGP encryption
Send any e-mail with <subject> as subject
When the e-mail is received the header is ***UNCHECKED*** <subject>

Environment
K-9 Mail version: 5.600 (2018/09/02)
Android version: 9
Account type (IMAP, POP3, WebDAV/Exchange):
Please take some time to retrieve logs and attach them here:

K-9 Mail isn't inserting ***UNCHECKED*** into the subject. Maybe it's injected by a mail server to indicate the message couldn't be checked for being spam?

Okay, I'll check that. I'm using GMail as the mail receiver

You're right it's not related to K-9 mail. Closing


Upgrading form 2.0.5->2.1.1 fails to load previous checkpoints

When upgrading from release 2.0.5 to 2.1.1 I get the following exception:
java.lang.IllegalStateException: detect corrupt progress tracking file at <time> <namespace> 0 <ehub> 9<PHONE_NUMBER>544 9791652 it might be a bug in the implementation of underlying file system
Is there a better way to transition?
This might be another case to support external tracking stores so that schema evolution can happen if necessary.

it is by design,
you have to clean your progress file directory and then use filter parameter like eventhubs.filter.enqueueTime to catch up the processing


fix(section select): autoselect 1of1 sections

autoselects first sections if there is only 1 (and hides "All sections") from menu

Note: this is in draft mode as the current behaviour of selecting 'All sections' is specified in the design docs. Waiting feedback on ticket: https://dhis2.atlassian.net/browse/TECH-1323

Closed because it was determined that the existing design was acceptable


Include additional contextual info when calling a method in test suite's deps block which only exists in top-level deps block

This is a possible solution to the problem of confusion between the 2 different dependencies blocks.
The wording on the message is just a suggestion, we would still need to write up a section in the Test Suite Plugin docs explaining the differences and the reasons for it; and also expose the JvmComponentDependencies in our public DSL reference to make the first link work (I think this should be done for the major test suites types regardless).
*** What went wrong:
A problem occurred evaluating root project 'ku3n3'.
> Could not find method gradleTestKit() for arguments [] on object of type org.gradle.api.plugins.jvm.internal.DefaultJvmComponentDependencies.
  This method is present in the top-level dependencies block, but can not be used within a test suite's dependencies block.
  See https://docs.gradle.org/current/userguide/jvm_test_suite_plugin.html for an overview on the differences between these two blocks, or compare the following DSL references:
  	https://docs.gradle.org/current/dsl/org.gradle.api.plugins.jvm.JvmComponentDependencies.html
  	https://docs.gradle.org/current/dsl/org.gradle.api.artifacts.dsl.DependencyHandler.html

See https://github.com/gradle/gradle/pull/20809 and https://github.com/gradle/gradle/pull/20825 for the present state of this investigation.


Fix potential NPE for transportType during write

Fixes #945
This PR is ready for review.
Risk
This PR makes no API changes.
Testing Plan

Send a packet to router service to send while no transport is connected.

Summary

If no transport type is supplied and no transport is currently connected. The write task runnable will simply return instead of trying to write the packet while not supplying a transport type.

Changelog
Bug Fixes

There is likely a race condition where the packet write runnable can be mid or starting execution as the router service is disconnecting or already disconnected.

CLA

[x] I have signed the CLA

Codecov Report

Merging #956 into develop will increase coverage by 0.03%.
The diff coverage is 0%.

@@              Coverage Diff              @@
##             develop     #956      +/-   ##
=============================================
+ Coverage      42.55%   42.58%   +0.03%
  Complexity      3735     3735
=============================================
  Files            434      434
  Lines          23098    23100       +2
  Branches        2698     2698
=============================================
+ Hits            9829     9837       +8
+ Misses         12623    12615       -8
- Partials         646      648       +2

Impacted Files
Coverage Δ
Complexity Δ

...om/smartdevicelink/transport/SdlRouterService.java
7.19% <0%> (-0.01%)
9 <0> (ø)

...smartdevicelink/encoder/VirtualDisplayEncoder.java
29.31% <0%> (+4.59%)
8% <0%> (ø)
:arrow_down:

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 7d329a1...1b80ecd. Read the comment docs.


Upload OpenUI5 to search.maven.org

OpenUI5 version: All
Browser/version (+device/version):
Any other tested browsers/devices(OK/FAIL):
URL (minimal example if possible):
User/password (if required and possible - do not post any confidential information here):
Steps to reproduce the problem:
1.
2.
3.
What is the expected result?
What happens instead?
Any other information? (attach screenshot if possible)
How difficult is it for you to upload the new/stable release to search.maven.org ?
Manual download and setup is boring. We use Gradle for build purposes. Is there any other repository where you upload the latest binaries ?
We are currently using 1.42.8 from search.maven.org repositories and the latest in openui5.org is 1.46.7.

Hi,
we are currently not pushing releases to Maven Central. The supported "binary" repo is Bower, see:

http://openui5.tumblr.com/post/104843094047/openui5-now-also-available-via-bower
https://github.com/SAP/openui5-sample-app/blob/master/bower.json
https://github.com/openui5/packaged-sap.ui.core

Does this already help?
I'll internally trigger a discussion about providing releases on Maven Central, but no guarantees.
Regards
Andreas

We prefer gradle for building our web applications. We highly appreciate if you could do something in this regard.
Thanks,
Prospecta

Hi @prospectatech
Maybe you can use a plugin for Gradle for installing the dependencies from Bower. A simple search in the Gradle plugins gives some results: plugins
plugins.gradle.org. I personally never used this, but I used a similar mechanism in Maven (the frontend-maven-plugin) to install the dependencies and build the UI from within the Maven build.
Also, did you check the webjars for UI5? They are unofficial JAR bundles (i.e. not created by the UI5 team), but are created by this site: https://www.webjars.org/ directly from the bower content. If a given version does not exist, you can create it yourself there (press on the Add WebJar button, find the bower name of the package, e.g. openui5/packaged-sap.ui.support, type it in, select a version and then deploy; in a few minutes it should finish the deployment and in a few hours it should popup on maven central).
BR,
Serban

Hi @sriagl,
sorry for not responding to the issue so long.
The openui5 and sapui5 libraries are published to npmjs.com.
Examples:

sap.ui.core<EMAIL_ADDRESS>sap.viz<EMAIL_ADDRESS>
There are no plans to offer an additional delivery channel. Therefore, closing the issue.
Nevertheless, thanks a lot for opening the issue.
Best Regards,
Florian


fix cache section on readme

I have missed a minor error in README on https://github.com/langchain-ai/langchain-elastic/pull/14 that must be fixed

also fixed the code in the readme that was not accurately formatted


Uncaught Error: This TextEditor has been destroyed

[Enter steps to reproduce below:]

wrap something(ctrl w)
close window
try to get rid of the wrap bar by pressing ESC (I get the error)
open other file and try to get rid of wrap bar by pressing ESC  (I get the error)

Atom Version: 0.200.0
System: Mac OS X 10.10.3
Thrown From: emmet package, v2.3.10
Stack Trace
Uncaught Error: This TextEditor has been destroyed
At /Applications/Atom.app/Contents/Resources/app.asar/src/display-buffer.js:1023

Error: This TextEditor has been destroyed
  at DisplayBuffer.module.exports.DisplayBuffer.screenPositionForBufferPosition (/Applications/Atom.app/Contents/Resources/app.asar/src/display-buffer.js:1023:15)
  at Marker.module.exports.Marker.getHeadScreenPosition (/Applications/Atom.app/Contents/Resources/app.asar/src/marker.js:174:33)
  at Cursor.module.exports.Cursor.getScreenPosition (/Applications/Atom.app/Contents/Resources/app.asar/src/cursor.js:127:26)
  at Cursor.module.exports.Cursor.getScreenRange (/Applications/Atom.app/Contents/Resources/app.asar/src/cursor.js:695:20)
  at Cursor.module.exports.Cursor.autoscroll (/Applications/Atom.app/Contents/Resources/app.asar/src/cursor.js:700:51)
  at Selection.module.exports.Selection.autoscroll (/Applications/Atom.app/Contents/Resources/app.asar/src/selection.js:897:28)
  at TextEditor.module.exports.TextEditor.undo (/Applications/Atom.app/Contents/Resources/app.asar/src/text-editor.js:1123:38)
  at PromptView.module.exports.PromptView.undo (/Users/ciMac/.atom/packages/emmet/lib/prompt.coffee:38:11)
  at PromptView.module.exports.PromptView.cancel (/Users/ciMac/.atom/packages/emmet/lib/prompt.coffee:53:4)
  at atom-text-editor.<anonymous> (/Users/ciMac/.atom/packages/emmet/lib/prompt.coffee:23:61)
  at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:238:29)
  at /Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:3:61
  at KeymapManager.module.exports.KeymapManager.dispatchCommandEvent (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/atom-keymap/lib/keymap-manager.js:519:16)
  at KeymapManager.module.exports.KeymapManager.handleKeyboardEvent (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/atom-keymap/lib/keymap-manager.js:354:22)
  at HTMLDocument.module.exports.WindowEventHandler.onKeydown (/Applications/Atom.app/Contents/Resources/app.asar/src/window-event-handler.js:178:20)

Commands
     -2:19.5.0 core:close (atom-text-editor.editor.is-focused)
     -2:08.8.0 core:move-right (atom-text-editor.editor.mini.is-focused)
     -2:02.4.0 core:confirm (atom-text-editor.editor.mini.is-focused)
     -1:56.2.0 tree-view:move (ol.tree-view.full-menu.list-tree.has-collapsable-children.focusable-panel)
     -1:55.5.0 editor:move-to-first-character-of-line (atom-text-editor.editor.mini.is-focused)
     -1:54.5.0 editor:move-to-end-of-screen-line (atom-text-editor.editor.mini.is-focused)
 12x -1:53.3.0 editor:move-to-beginning-of-word (atom-text-editor.editor.mini.is-focused)
     -1:51.1.0 editor:move-to-end-of-word (atom-text-editor.editor.mini.is-focused)
     -1:50.2.0 core:confirm (atom-text-editor.editor.mini.is-focused)
     -1:41.5.0 find-and-replace:show (atom-text-editor.editor.is-focused)
  3x -1:40.2.0 core:confirm (atom-text-editor.editor.mini.is-focused)
     -1:19.2.0 core:backspace (atom-text-editor.editor.is-focused)
     -1:06.3.0 core:undo (atom-text-editor.editor.is-focused)
     -1:04.9.0 core:save (atom-text-editor.editor.is-focused)
     -0:01.3.0 editor:consolidate-selections (atom-text-editor.editor.mini.is-focused)
     -0:01.3.0 core:cancel (atom-text-editor.editor.mini.is-focused)

Config
{
  "core": {
    "disabledPackages": [
      "close-tags",
      "key-peek",
      "less-autocompile",
      "preview",
      "red-wavy-underline",
      "todo-show",
      "linter-phpcs",
      "autoprefixer"
    ],
    "themes": [
      "atom-dark-ui",
      "atom-dark-syntax"
    ]
  },
  "emmet": {}
}

Installed Packages
# User
.bin, vundefined
SFTP-deployment, v1.0.0
Sublime-Style-Column-Selection, v1.2.3
atom-beautify, v0.27.4
atom-html-preview, v0.1.6
autoclose-html, v0.16.0
emmet, v2.3.10
highlight-selected, v0.9.3
html-entities, v0.4.0
linter, v0.12.6
linter-csslint, v0.0.13
linter-less, v0.4.0
linter-php, v0.0.15
tabs-to-spaces, v0.10.0
white-cursor, v0.6.0

# Dev
No dev packages

---
Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/16511838-uncaught-error-this-texteditor-has-been-destroyed?utm_campaign=plugin&utm_content=tracker%2F535900&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F535900&utm_medium=issues&utm_source=github).

:+1:

+1

:+1:

+1

Haha, this is the funniest error i've ever seen.

@dannymichel Sure !
This sounds like if my text editor was killed by John Connor Haha

+1

+1

+1

Still getting it.