Fix path to profile dir when using as nixos submodule

The normal session-variable management with
. "$HOME/.nix-profile/etc/profile.de/hm-session-vars.sh"

does not work when using the nixos-module. I have fixed all occasions of ~/.nix-profile i found by using grep.
I don't know, if this is the best way. I would actually prefer just replacing $HOME/.nix-profile with ${config.home.path} everywhere. Don't know if that would break anything.

Ah, I was just thinking of this problem! Thanks for taking the time to fix! I will have trouble looking through this thoroughly before Sunday so please be patient 😃
On May 31, 2018 9:08:26 PM GMT+02:00, Malte Brandy<EMAIL_ADDRESS>wrote:

The normal session-variable management with
. "$HOME/.nix-profile/etc/profile.de/hm-session-vars.sh"

does not work when using the nixos-module. I have fixed all occasions
of ~/.nix-profile i found by using grep.
I don't know, if this is the best way. I would actually prefer just
replacing ${profileDir} with ${config.home.path} everywhere. Don't know
if that would break anything.
You can view, comment on, or merge this pull request online at:
https://github.com/rycee/home-manager/pull/280
-- Commit Summary --

Fix path to profile dir when using as nixos submodule

-- File Changes --
M modules/programs/bash.nix (4)
M modules/programs/info.nix (4)
M modules/programs/zsh.nix (4)
M modules/services/dunst.nix (2)
M modules/services/flameshot.nix (3)
M modules/services/owncloud-client.nix (8)
M modules/services/syncthing.nix (7)
M modules/xsession.nix (3)
-- Patch Links --
https://github.com/rycee/home-manager/pull/280.patch
https://github.com/rycee/home-manager/pull/280.diff
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/rycee/home-manager/pull/280

--
Sent from my Android device with K-9 Mail. Please excuse my brevity.

Had a look and I'm thinking that it is best to avoid using config.home.path because it might cause issues in some cases if you also install programs yourself (i.e., not through home.packages).
I'm also thinking one could abstract away the profile directory variable into an option, something like
diff --git a/modules/home-environment.nix b/modules/home-environment.nix
index 8e896de..4a17ab7 100644
--- a/modules/home-environment.nix
+++ b/modules/home-environment.nix
@@ -121,6 +121,17 @@ in
       description = "The user's home directory.";
     };

+    home.profileDirectory = mkOption {
+      type = types.path;
+      defaultText = "~/.nix-profile";
+      internal = true;
+      readOnly = true;
+      description = ''
+        The profile directory where Home Manager generations are
+        installed.
+      '';
+    };
+
     home.language = mkOption {
       type = languageSubModule;
       default = {};
@@ -248,6 +259,8 @@ in

     home.username = mkDefault (builtins.getEnv "USER");
     home.homeDirectory = mkDefault (builtins.getEnv "HOME");
+    home.profileDirectory = mkIf (!config.nixosSubmodule) (
+      mkDefault (cfg.homeDirectory + "/.nix-profile"));

     home.sessionVariables =
       let
diff --git a/modules/misc/fontconfig.nix b/modules/misc/fontconfig.nix
index 5723cf8..a275f56 100644
--- a/modules/misc/fontconfig.nix
+++ b/modules/misc/fontconfig.nix
@@ -50,8 +50,8 @@ in
         <?xml version='1.0'?>
         <!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
         <fontconfig>
-          <dir>/etc/profiles/per-user/${config.home.username}/lib/X11/fonts</dir>
-          <dir>/etc/profiles/per-user/${config.home.username}/share/fonts</dir>
+          <dir>${config.home.profileDirectory}/lib/X11/fonts</dir>
+          <dir>${config.home.profileDirectory}/share/fonts</dir>
         </fontconfig>
       '';
     })
diff --git a/modules/services/syncthing.nix b/modules/services/syncthing.nix
index 1151172..7fc556c 100644
--- a/modules/services/syncthing.nix
+++ b/modules/services/syncthing.nix
@@ -54,7 +54,7 @@ with lib;
           };

           Service = {
-            Environment = "PATH=%h/.nix-profile/bin";
+            Environment = "PATH=${config.home.profileDirectory}/bin";
             ExecStart = "${pkgs.qsyncthingtray}/bin/QSyncthingTray";
           };

diff --git a/nixos/default.nix b/nixos/default.nix
index ae7a5ef..a84f2f2 100644
--- a/nixos/default.nix
+++ b/nixos/default.nix
@@ -15,6 +15,7 @@ let
     config = {
       home.username = config.users.users.${name}.name;
       home.homeDirectory = config.users.users.${name}.home;
+      home.profileDirectory = "/etc/profiles/per-user/${config.home.username}";
     };
   });

(Note, the above is not thoroughly tested)

Note, ideally the change is made in master first and then ported to this branch (which hopefully can make it into master someday).

I opened a new branch with a new pr.


http://<IP_ADDRESS>:3030 not showing the UI on Win 10 (Site can't be reached)

I am new on docker and try to run the fast-data-dev but not able to hit the UI
Here Is the command and the logs :
docker run --rm -it \

       -p 2181:2181 -p 3030:3030 -p 8081:8081 \
       -p 8082:8082 -p 8083:8083 -p 9092:9092 \
       -e ADV_HOST=<IP_ADDRESS> \
       landoop/fast-data-dev

Setting advertised host to <IP_ADDRESS>.
Starting services.
This is landoop’s fast-data-dev. Kafka <IP_ADDRESS>, Confluent OSS 3.3.1.
You may visit http://<IP_ADDRESS>:3030 in about a minute.
2018-03-03 20:19:21,818 CRIT Supervisor running as root (no user in config file)
2018-03-03 20:19:21,819 INFO Included extra file "/etc/supervisord.d/01-fast-data.conf" during parsing
2018-03-03 20:19:21,819 INFO Included extra file "/etc/supervisord.d/99-supervisord-sample-data.conf" during parsing
2018-03-03 20:19:21,822 INFO supervisord started with pid 5
2018-03-03 20:19:22,827 INFO spawned: 'sample-data' with pid 88
2018-03-03 20:19:22,836 INFO spawned: 'zookeeper' with pid 89
2018-03-03 20:19:22,843 INFO spawned: 'caddy' with pid 90
2018-03-03 20:19:22,858 INFO spawned: 'broker' with pid 91
2018-03-03 20:19:22,892 INFO spawned: 'smoke-tests' with pid 92
2018-03-03 20:19:22,924 INFO spawned: 'connect-distributed' with pid 93
2018-03-03 20:19:22,941 INFO spawned: 'logs-to-kafka' with pid 95
2018-03-03 20:19:22,960 INFO spawned: 'schema-registry' with pid 96
2018-03-03 20:19:22,975 INFO spawned: 'rest-proxy' with pid 101
2018-03-03 20:19:24,783 INFO success: sample-data entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2018-03-03 20:19:24,784 INFO success: zookeeper entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2018-03-03 20:19:24,784 INFO success: caddy entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2018-03-03 20:19:24,785 INFO success: broker entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2018-03-03 20:19:24,786 INFO success: smoke-tests entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2018-03-03 20:19:24,786 INFO success: connect-distributed entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2018-03-03 20:19:24,788 INFO success: logs-to-kafka entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2018-03-03 20:19:24,789 INFO success: schema-registry entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2018-03-03 20:19:24,790 INFO success: rest-proxy entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2018-03-03 20:22:23,123 INFO exited: logs-to-kafka (exit status 0; expected)
2018-03-03 20:22:54,999 INFO exited: sample-data (exit status 0; expected)
2018-03-03 20:25:42,894 INFO exited: smoke-tests (exit status 0; expected)

I fond the issue. My docker is running on the <IP_ADDRESS> and I was passing <IP_ADDRESS>.


Hot-reloading triggers error with element registry (codesandbox)

Summary
In tools like codesandbox where hot-reloading is available, and doesn't trigger a full page reload, Tram-Lite will throw errors because it attempts to call customElements.define with a tag-name that has already been defined:
Error: Failed to execute 'define' on 'CustomElementRegistry': the name "tram-title" has already been used with this registry

https://codesandbox.io/s/tram-lite-hot-reloading-54k2ph
https://github.com/Tram-One/tram-lite/assets/326557/8d37c088-4b1a-40fa-b702-623669a13348
We should figure out a way to better support hot-reloading that doesn't trigger this error.

Okay, for codesandbox, there is a way to disable the hot-reloading using the following javascript:
if (module.hot) {
  module.hot.decline();
}

If that is placed at the top of the file, that code will prevent errors from trigger, and instead will trigger a full-page reload.
It's potentially worthwhile to look into how we might tap into this logic, as described here: https://parceljs.org/features/development/#hot-reloading
If there is a solution here, it probably belongs in a separate repository, something like tram-lite-utils. It is beyond the scope of this repository to handle this environment / build tool, since it is not the primary build environment.

Okay, that code sample seems to reload the page constantly, so I think there are issues with that solution, so more digging is required here.
There may actually be some webpack config required - https://webpack.js.org/guides/hot-module-replacement/

Okay, codesandbox doesn't seem to expose any standard hot module config that conforms to either webpack or parcel, but the following config does appear to work:
module.hot.addStatusHandler((status) => {
  if (status === "check") {
    window.location.reload();
  }
});

You can see an example here: https://codesandbox.io/s/tram-lite-qyhw7x?file=/index.js


FAQ / Guide

https://invis.io/W3528U2NZ
PTI 003
Components

Materials List
Help Articles

@sshaar08 @kperusko @Misokate FYI I spoke to Andrew about folding in a Fender for this and should be good to use Tony. When we are ready with designs lets fold him in.

@camachowebworld @kperusko is this in the latest build that I can pull from crashlytics? I can't seem to get at it

Typos corrected for this, requires Josh R. to finish it off.
@kperusko let me know the ticket you have in with Josh and I can followup

@Misokate -- @kperusko updated the build with the latest on this. Per discussion with him / Tim afterwards, thinking the attached could be an option. Thoughts?
Kristijan -- correct me if we're misaligned there.

@younglisa @kperusko This sounds great to me! How would we all feel about having an X at the top right that functions like a dismiss?

@younglisa @Misokate that would work.

Great thanks guys

Ok I've made the changes. I'll need some guidance from @Misokate on how to style the dismiss/back button.

@kperusko Do you mind sending me a screen shot? I was thinking just an X out at the top right of the screen that brings you back to the home screen. What do you think?


bug: java.util.concurrent.ExecutionException: org.eclipse.lsp4j.jsonrpc.ResponseErrorException: accessing Sourcegraph Grap (...)

Plugin version: 5.3.3914
IDE version: IC-232.10227.8
Stacktrace:
java.util.concurrent.ExecutionException: org.eclipse.lsp4j.jsonrpc.ResponseErrorException: accessing Sourcegraph GraphQL API: Error: HTTP status code 401: Invalid access token.
 (https://sourcegraph.com/.api/graphql?CurrentUserCodyProEnabled)

Error: accessing Sourcegraph GraphQL API: Error: HTTP status code 401: Invalid access token.
 (https://sourcegraph.com/.api/graphql?CurrentUserCodyProEnabled)
    at /snapshot/dist/agent.js
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async /snapshot/dist/agent.js
	at java.base/java.util.concurrent.CompletableFuture.reportGet(CompletableFuture.java:396)
	at java.base/java.util.concurrent.CompletableFuture.get(CompletableFuture.java:2073)
	at com.sourcegraph.cody.chat.ui.LLMDropdown.fetchAndUpdateModels$lambda$1(LLMDropdown.kt:49)
	at com.sourcegraph.cody.agent.CodyAgentService$Companion.withAgent$lambda$0(CodyAgentService.kt:125)
	at com.intellij.openapi.application.impl.ApplicationImpl$2.run(ApplicationImpl.java:272)
	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
	at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:702)
	at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:699)
	at java.base/java.security.AccessController.doPrivileged(AccessController.java:399)
	at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1.run(Executors.java:699)
	at java.base/java.lang.Thread.run(Thread.java:840)
Caused by: org.eclipse.lsp4j.jsonrpc.ResponseErrorException: accessing Sourcegraph GraphQL API: Error: HTTP status code 401: Invalid access token.
 (https://sourcegraph.com/.api/graphql?CurrentUserCodyProEnabled)

Error: accessing Sourcegraph GraphQL API: Error: HTTP status code 401: Invalid access token.
 (https://sourcegraph.com/.api/graphql?CurrentUserCodyProEnabled)
    at /snapshot/dist/agent.js
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async /snapshot/dist/agent.js
	at org.eclipse.lsp4j.jsonrpc.RemoteEndpoint.handleResponse(RemoteEndpoint.java:209)
	at org.eclipse.lsp4j.jsonrpc.RemoteEndpoint.consume(RemoteEndpoint.java:193)
	at org.eclipse.lsp4j.jsonrpc.json.StreamMessageProducer.handleMessage(StreamMessageProducer.java:194)
	at org.eclipse.lsp4j.jsonrpc.json.StreamMessageProducer.listen(StreamMessageProducer.java:94)
	at org.eclipse.lsp4j.jsonrpc.json.ConcurrentMessageProcessor.run(ConcurrentMessageProcessor.java:113)
	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
	... 1 more

Hello @jon-humble   👋 thanks for the report
I am looking at the other report: https://github.com/sourcegraph/jetbrains/issues/991 - it failed there almost identically but on CurrentUserCodySubscription.
Here CurrentUserCodyProEnabled is troublesome.
What bothers me is that we believe the other issue is fixed in 5.3.3914 while this is 5.3.3914 and a very similar issue appears.
@jon-humble, can you try to regenerate the token and retry? does it help? Also, can you provide more specifics steps to reproduce it? Is this issue blocking you 100% in using Cody or just appears sometimes?
(cc: @pkukielka)

@jon-humble, I looked closer into this issue. It seems that one of the causes can be that the token expired. Our messaging in this area is far from perfect now - sorry about it. Please remove regenerate a new token and retry. 🙏

btw, I just noted we are totally missing the error handling for the autocompletions. I just reviewed my logs and I see lots of:
2024-03-19 10:50:57,452 [2840410]   WARN - #c.s.c.a.CodyAgent - Uncaught exception: Error: accessing Sourcegraph GraphQL API: Error: HTTP status code 401: Invalid access token.
2024-03-19 10:50:57,453 [2840411]   WARN - #c.s.c.a.CodyAgent -  (https://sg02.sourcegraphcloud.com/.api/graphql?Repository)
2024-03-19 10:50:57,453 [2840411]   WARN - #c.s.c.a.CodyAgent -     at /snapshot/cody-b66ee05d2f81df0fda5d6c9f1b292696c163c3bc/agent/dist/index.js:28127:20
2024-03-19 10:50:57,453 [2840411]   WARN - #c.s.c.a.CodyAgent -     at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
2024-03-19 10:50:57,453 [2840411]   WARN - #c.s.c.a.CodyAgent -     at async WorkspaceRepoMapper.repoForCodebase (/snapshot/cody-b66ee05d2f81df0fda5d6c9f1b292696c163c3bc/agent/dist/index.js:132966:24)
2024-03-19 10:50:57,453 [2840411]   WARN - #c.s.c.a.CodyAgent -     at async CodebaseStatusProvider._updateCodebase_NoFire (/snapshot/cody-b66ee05d2f81df0fda5d6c9f1b292696c163c3bc/agent/dist/index.js:115043:41)
2024-03-19 10:50:57,453 [2840411]   WARN - #c.s.c.a.CodyAgent -     at async CodebaseStatusProvider.updateStatus (/snapshot/cody-b66ee05d2f81df0fda5d6c9f1b292696c163c3bc/agent/dist/index.js:115025:35)


Load more button

Hi
I've found a few issues alluding that the bundle supports a "load more" button and there is a load more button translation. However, this seems to refer to a tree.html.twig template that no longer exists and there is no reference in the same javascript. Does the bundle still support this and if so how it is implemented?
Many thanks in advance.

Looking for updates too.


[Enhancement] optimize one key nullable group by case

What type of PR is this：

[ ] BugFix
[ ] Feature
[x] Enhancement
[ ] Refactor
[ ] UT
[ ] Doc
[ ] Tool

Which issues of this PR fixes ：
Fixes #
Problem Summary(Required) ：
reduce some virtual function call
Checklist:

[ ] I have added test cases for my bug fix or my new feature
[ ] I have added user document for my new feature or new function

run starrocks_admit_test

run starrocks_admit_test


tf.layers.batch_normalization throws null-reference exception

The following code fails:
var inputs1 = tf.placeholder(tf.float32, new TensorShape(1, 4));
var x = tf.layers.batch_normalization(inputs1);

Exception

System.NullReferenceException
HResult=0x80004003
Message=Object reference not set to an instance of an object.
Source=TensorFlow.NET
StackTrace:
at Tensorflow.tensor_util._ConstantValue(Tensor tensor, Boolean partial) in C:\Users\Eli-PC\Desktop\SciSharp\TensorFlow.NET\src\TensorFlowNET.Core\Tensors\tensor_util.cs:line 50

I believe I'm not doing anything wrong as it should work without specifying training argument.

In this documentation training has a default value of False but in TF.NET we have null.

After adding a boolean placeholder for training
var inputs1 = tf.placeholder(tf.float32, new TensorShape(1, 4));
var training = tf.placeholder(tf.@bool, name: "training");
var x = tf.layers.batch_normalization(inputs1, training: training);

I get the following exception:

System.EntryPointNotFoundException
HResult=0x80131523
Message=Unable to find an entry point named 'AddControlInput' in DLL 'tensorflow'.
Source=TensorFlow.NET
StackTrace:
at Tensorflow.c_api.AddControlInput(IntPtr graph, IntPtr op, IntPtr input)
at Tensorflow.Operation._add_control_input(Operation op) in C:\Users\Eli-PC\Desktop\SciSharp\TensorFlow.NET\src\TensorFlowNET.Core\Operations\Operation.Control.cs:line 46

Same as #400

This version will help you: https://www.nuget.org/packages/SciSharp.TensorFlow.Redist/1.14.1

1.14.1 works, but unfortunately it is not available in a GPU version so it is not really of any practical use

Any plans for a 1.14.1 release of SciSharp.TensorFlow.Redist-Windows-GPU? ;)

@meesoft My local compilation env doesn't work. Once the issue is fixed, I'll release GPU version.

@meesoft @moloneymb Can you try Linux version 1.14.1?

Sorry, I only have Windows

I'll test it, either today or tomorrow. Thanks Haiping

@meesoft @moloneymb Windows GPU 1.14.1 released.

Great, thanks, it seems to work fine

Its still way beyond broke. Oh and by the way Windows GPU 1.14.1 is a corrupt DLL file.


Uncaught exception: socket.timeout: The write operation timed out

Exceptions like this are seen regularly:
Exception in thread Connection to ${IP_ADDRESS_AND_PORT}:
Traceback (most recent call last):
  File "/usr/lib/python3.5/threading.py", line 914, in _bootstrap_inner
    self.run()
  File "…/MiNode/src/connection.py", line 78, in run
    self._process_queue()
  File "…/MiNode/src/connection.py", line 154, in _process_queue
    self._send_message(m)
  File "…/MiNode/src/connection.py", line 131, in _send_message
    self.s.sendall(m.to_bytes())
  File "/usr/lib/python3.5/ssl.py", line 891, in sendall
    v = self.send(data[count:])
  File "/usr/lib/python3.5/ssl.py", line 861, in send
    return self._sslobj.write(data)
  File "/usr/lib/python3.5/ssl.py", line 586, in write
    return self._sslobj.write(data)
socket.timeout: The write operation timed out

Please note that this is different from #6

Resolved by dc75f93e1fd85391139beac921829e7bd7027808


UserDialog crashes on Initial(Root) ViewController

Please check all of the platforms you are having the issue on (if platform is not listed, it is not supported)

[+] iOS
[] Android
[] UWP
[] NET Standard 1.1

Version of OS(s) listed above with issue
Xamarin.iOS 10.3
Version of ACR UserDialogs Library
6.5.1
Expected Behaviour
First(initial aka root) ViewController loads and triggers loading progress bar.
Actual Behavior
After booting first VC ,i'm getting Object reference not set to an instance of an object when executes this line of code inside ViewDidLoad(VC is fully loaded and rendered) method :
UserDialogs.Instance.ShowLoading("Please wait");
Stacktrace :
  at BigTed.ProgressHUD.PositionHUD (Foundation.NSNotification notification) [0x000d9] in <28a98614ff854c6dabc37d80b4926c55>:0
  at BigTed.ProgressHUD.ShowProgressWorker (System.Single progress, System.String status, BigTed.ProgressHUD+MaskType maskType, System.Boolean textOnly, BigTed.ProgressHUD+ToastPosition toastPosition, System.String cancelCaption, System.Action cancelCallback, System.Double timeoutMs, System.Boolean showContinuousProgress, UIKit.UIImage displayContinuousImage) [0x00238] in <28a98614ff854c6dabc37d80b4926c55>:0
  at BigTed.ProgressHUD+<>c__DisplayClass18_0.<Show>b__0 () [0x00000] in <28a98614ff854c6dabc37d80b4926c55>:0
  at Foundation.NSActionDispatcher.Apply () [0x00000] in /Users/builder/data/lanes/4466/a04678c2/source/xamarin-macios/src/Foundation/NSAction.cs:57
--- End of stack trace from previous location where exception was thrown ---
  at (wrapper managed-to-native) ObjCRuntime.Messaging:void_objc_msgSend_IntPtr_IntPtr_bool (intptr,intptr,intptr,intptr,bool)
  at Foundation.NSObject.InvokeOnMainThread (System.Action action) [0x00007] in /Users/builder/data/lanes/4466/a04678c2/source/xamarin-macios/src/Foundation/NSObject2.cs:560
  at BigTed.ProgressHUD.Show (System.String status, System.Single progress, BigTed.ProgressHUD+MaskType maskType, System.Double timeoutMs) [0x0002a] in <28a98614ff854c6dabc37d80b4926c55>:0
  at BigTed.BTProgressHUD.Show (System.String status, System.Single progress, BigTed.ProgressHUD+MaskType maskType) [0x00005] in <28a98614ff854c6dabc37d80b4926c55>:0
  at Acr.UserDialogs.ProgressDialog+<>c__DisplayClass17_0.<Refresh>b__0 () [0x00038] in <e327c6f339624db09cd6e3a2fe28de55>:0
  at Foundation.NSActionDispatcher.Apply () [0x00000] in /Users/builder/data/lanes/4466/a04678c2/source/xamarin-macios/src/Foundation/NSAction.cs:57
--- End of stack trace from previous location where exception was thrown ---
  at (wrapper managed-to-native) ObjCRuntime.Messaging:void_objc_msgSend_IntPtr_IntPtr_bool (intptr,intptr,intptr,intptr,bool)
  at Foundation.NSObject.InvokeOnMainThread (System.Action action) [0x00007] in /Users/builder/data/lanes/4466/a04678c2/source/xamarin-macios/src/Foundation/NSObject2.cs:560
  at Acr.UserDialogs.ProgressDialog.Refresh () [0x00096] in <e327c6f339624db09cd6e3a2fe28de55>:0
  at Acr.UserDialogs.ProgressDialog.Show () [0x00007] in <e327c6f339624db09cd6e3a2fe28de55>:0
  at Acr.UserDialogs.AbstractUserDialogs.Progress (Acr.UserDialogs.ProgressDialogConfig config) [0x0001c] in <73bfe39972754bef94e8839fe1c70d5b>:0
  at Acr.UserDialogs.AbstractUserDialogs.Loading (System.String title, System.Action onCancel, System.String cancelText, System.Boolean show, System.Nullable`1[T] maskType) [0x0005c] in <73bfe39972754bef94e8839fe1c70d5b>:0
  at Acr.UserDialogs.AbstractUserDialogs.ShowLoading (System.String title, System.Nullable`1[T] maskType) [0x0000e] in <73bfe39972754bef94e8839fe1c70d5b>:0
  at FakeLaunchScreen.ViewController.ViewDidLoad () [0x0001a] in /Projects/FakeLaunchScreen/FakeLaunchScreen/ViewController.cs:26
  at (wrapper managed-to-native) UIKit.UIApplication:UIApplicationMain (int,string[],intptr,intptr)
  at UIKit.UIApplication.Main (System.String[] args, System.IntPtr principal, System.IntPtr delegate) [0x00005] in /Users/builder/data/lanes/4466/a04678c2/source/xamarin-macios/src/UIKit/UIApplication.cs:79
  at UIKit.UIApplication.Main (System.String[] args, System.String principalClassName, System.String delegateClassName) [0x00038] in /Users/builder/data/lanes/4466/a04678c2/source/xamarin-macios/src/UIKit/UIApplication.cs:63
  at FakeLaunchScreen.Application.Main (System.String[] args) [0x00008] in Projects/FakeLaunchScreen/FakeLaunchScreen/Main.cs:12

Project is absolutely blank(SingleView Xamarin.iOS app).
Looks like this :

Also,for toasts that is located on same place, i have next code :
			var toastConfig = new ToastConfig("HELLO");
			toastConfig.Duration = TimeSpan.FromSeconds(5);
			toastConfig.SetBackgroundColor(System.Drawing.Color.Blue);

			UserDialogs.Instance.Toast(toastConfig);

and nothing appear, in ApplicationOutput i got this:

TTGSnackbar needs a keyWindows to display.

I have found similar problem on stackoverflow!
Code of Conduct

No Library Update Requests
No Timeline Requests
Please read through the documentation and FAQs
Please be respectful of my time. I put a lot of effort into my libraries.  I try to support the issue requests within a day.  I'm not psychic, so please take the time to fill out the above form as complete as possible

Please include your sample as requested in your previous defect.

@aritchie thanks for the fast reply. I have been attached project.
FakeLaunchScreen.zip

The problem is that this is not the default iOS project.  The initial window creation in AppDelegate.FinishedLaunching is commented out.  I use a technique in the background to detect the top facing window.  In the case of your app, this has been created (at least at viewdidload).  If the code cannot detect the top window, it will end up with nullreferenceexceptions as stated in the FAQ.
You have two options

Instantiate the top window in your appdelegate like the default does
Use UserDialogs.Init(() => <your own viewcontroller provider).  I would be careful with this one as you'll always have to provide the top viewcontroller yourself.

@aritchie i have tried with this code in my AppDelegate class :
 Window = new UIWindow(UIScreen.MainScreen.Bounds);
			var controller = UIStoryboard.FromName("Main",NSBundle.MainBundle).InstantiateViewController("VC") as ViewController;
			//controller.View.BackgroundColor = UIColor.LightGray;

	        Window.RootViewController = controller;

	        // make the window visible
	        Window.MakeKeyAndVisible();

Anyway it gets Null reference exception.

@aritchie Ok,seems that its works on ViewWillAppear/ViewDidAppear methods of system. We can close this.


Update zio-schema, zio-schema-derivation, ... to 1.2.2

About this PR
📦 Updates

dev.zio:zio-schema
dev.zio:zio-schema-derivation
dev.zio:zio-schema-json

from 1.1.1 to 1.2.2
Usage
✅ Please merge!
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

⚙ Adjust future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "dev.zio" } ]

Or, add this to slow down future updates of this dependency:
dependencyOverrides = [{
  pullRequests = { frequency = "30 days" },
  dependency = { groupId = "dev.zio" }
}]

labels: library-update, early-semver-minor, semver-spec-minor, commit-count:1

Superseded by #87.

Superseded by #93.


Check additional locations when retrieving project_id and credentials

Currently we are just using a user-provided credentials file or checking the GOOGLE_APPLICATION_CREDENTIALS environment variable.
This adds additional checks, e.g. gcloud, allowing authentication with end-user credentials as well.

This change is

Can you add unit tests?
/hold

Added unit tests, and upgraded pytest in the travis config file as the tests used a newer feature of pytest (the tmp_path argument) that was not included in the default version.

/lgtm
/approve

/approve

/hold cancel

/approve


Help on how to configure "PlayState" plugin.

PlayState seems like an amazing concept but i don't know how to set it up. I talked to darklinpower on reddit and he told me to open an issue here on github. I just want to know if there's any source that explains how to set it up correctly. There aren't any problems with the plugin, it's just that i don't know how to get it set up.

Some information is available here: https://github.com/darklinkpower/PlayniteExtensionsCollection/wiki/PlayState
You can also check the extension settings to configure how you want the extension to behave, some elements there have explanations in tooltips if you hover on them for a few seconds

Some information is available here: https://github.com/darklinkpower/PlayniteExtensionsCollection/wiki/PlayState
You can also check the extension settings to configure how you want the extension to behave, some elements there have explanations in tooltips if you hover on them for a few seconds
Hello I read this on wiki about PlayState says:" An option to deduct the suspended time when the game is closed is available, which in practice stops playtime tracking."  how do I activate that? because its not mentioned in the wiki and  I tried to search for the option but couldn't find it.

@amy10111111111

@amy10111111111

Thanks


Customize coercion rules for HostObjects with valueOf

Currently HostObjects that are not primitive types are always coerced to a string in JStoPrimitiveNode.java.
Is there any way to customize this behavior to coerce HostObject into a number? I have a host object which is a number with optional annotations. I want to be able to use it in arithmetic operations in JS code. Ability to specify equivalent of valueOf function for HostObject will be useful in this scenario. This cab be implemented as a new Proxy interface with valueOf method.

You are right that ToPrimitive() operation applied to host objects (or other foreign/non-JavaScript objects) should consider valueOf() method. In fact, there is already a pull-request in progress that implements this change. It may take some time before all its details are polished but this feature will be available in next GraalVM release, I believe.

There is a workaround that may or may not be applicable in your case. If you wrap your object in a JavaScript Proxy (new Proxy(yourObject, {})) then it should behave as the original object but the valueOf() method will be considered.

Yes, wrapping with Proxy object will work. Thanks for the quick reply!


Don't mutate Connect's setWrappedInstance method

Follow up to #733

I'm still not understanding how <Connect> gets frozen in the first place. redux-freeze is just a middleware operating on the state instance. How does this component get into there?

Good question. I agree that felt wrong.
In my case, my routing solution was storing the 'current route component' in the store.
I was able to work around it by just reorganizing things.
Feel free to merge or close.  Still a good update for code clarity, and fixes whatever other scenarios others were hitting.

In my case, my routing solution was storing the 'current route component' in the store.

Ah.  Yes, that's not an encouraged pattern at all, per http://redux.js.org/docs/faq/OrganizingState.html#organizing-state-non-serializable .

But even if it's not an encouraged pattern, it's not forbidden. I stick to this line:

Ultimately, it's your application, and how you implement it is up to you.

So if this PR fixes an edge case that some users are hitting and doesn't break current redux applications neither does affect performance, I don't see why it shouldn't have a go.

However, we do have the right to focus on core intended use cases, and not necessarily cater to unsupported usage patterns.

You shouldn't store references to components in the redux state. That means those components, and everything they keep in scope, are not being dereferenced + garbage collected. Combine that with something like redux devtools that keeps past versions of state alive for a long time, and now you have a huge memory leak. Or in this case, object freeze is trying to then freeze your components. I can't imagine React behaves well if component object as been frozen. (I bet setState would break.)

Sure you do, I just don't see how that applies to this specific PR. I don't see how's this driving the focus away. Anyway, it doesn't apply for me anymore, I just moved my apps to redux-immutable-state-invariant as you suggested in the other thread. I'm just thinking about what I feel is one of the  core values of this library, leaving a lot of free space to you to make your decisions.


Include CommandLine$AutoHelpMixin and CommandLine$HelpCommand in graalvm reflection configuration

Ensure the generated reflection configuration includes CommandLine$AutoHelpMixin and CommandLine$HelpCommand, to prevent
picocli.CommandLine$InitializationException: picocli.CommandLine$AutoHelpMixin is not a command: it has no @Command, @Option, @Parameters or @Unmatched annotations
 at picocli.CommandLine$Model$CommandReflection.validateCommandSpec(CommandLine.java:6549)
 at picocli.CommandLine$Model$CommandReflection.extractCommandSpec(CommandLine.java:6395)
 at picocli.CommandLine$Model$CommandSpec.forAnnotatedObject(CommandLine.java:3762)
 at picocli.CommandLine$Model$CommandSpec.mixinStandardHelpOptions(CommandLine.java:4184)
 at picocli.CommandLine$Model$CommandReflection.extractCommandSpec(CommandLine.java:6382)
 at picocli.CommandLine$Model$CommandSpec.forAnnotatedObject(CommandLine.java:3762)
 at picocli.CommandLine.<init>(CommandLine.java:185)
 at picocli.CommandLine.<init>(CommandLine.java:164)
 at cli.java.Demo.mainCommand(Demo.java:444)
 at cli.java.Demo.testParseSubCommands(Demo.java:424)
 at cli.java.Demo.run(Demo.java:201)
 at picocli.CommandLine.execute(CommandLine.java:1160)

Closing this ticket since these classes are included automatically when used by the application.

Hi @remkop ,
We are running into this issue.
We are not using annotations for our commands as mentioned in #1141
We are however using the picocli.CommandLine$HelpCommand via CommandSpec.create().mixinStandardHelpOptions(true) for the root command
We have configured the annotation processor.
config json files are generated when we annotate a dummy command with @Command for the dummy command.
We are NOT however seeing entries for picocli.CommandLine$AutoHelpMixin.
We added picocli.CommandLine$AutoHelpMixin to -Aother.proxy.interfaces, but get an error saying that this should be an interface and not a class.
We'd appreciate some help on this front.
TIA

@techthumb OK. I will reply on the #1141 ticket, since it has more background information about your application.

Same here. Code:
@Command(name = "myapp", mixinStandardHelpOptions = true, description = "MyApp", version = "1.0")
public class Main implements Callable {
    //comman-line option to set tui mode under gui environment
    @Option(names = "--tui", description = "Use Text User Interface")
    boolean _tui;

    //command-line option to turn debug on
    @Option(names = "--debug", description = "Turn On Debug")
    boolean _debug;

    public static boolean supportGUI;

	static {
        try {
            supportGUI = !GraphicsEnvironment.isHeadless()
                    && GraphicsEnvironment.getLocalGraphicsEnvironment().getScreenDevices().length > 0;
        } catch (HeadlessException | java.lang.UnsatisfiedLinkError e) {
            supportGUI = false;
        }
    }

    @Override
    public Integer call() {
        //set debug
        if (_debug) {
            SYS.DBG_LEVEL = 2;
        }

        //set user interface
        if (supportGUI && _tui) {
            supportGUI = false;
        }

        if (supportGUI) {
		    //Init GUI ...
        } else {
		    //Init TUI ...
        }
        return SYS.ResultCode.SUCCEEDED;
    }

    public static void main(String args[]) {
        int exitCode = new CommandLine(new Main()).execute(args);
        System.exit(exitCode);
    }
}

result running the generated native image it shows: Exception in thread "main" picocli.CommandLine$InitializationException: picocli.CommandLine$AutoHelpMixin@74101cef is not a command: it has no @Command, @Option, @Parameters or @Unmatched annotations. graalvm-ce-java17-22.3.0, picocli 4.7.0, os CentOS Linux release 8.2.2004 (Core).

@zipper01 I believe this is a separate issue, and I created #1916 to discuss further.


[CI][GEMM][FA] Remove default path with env vars configuration

The performance of default path without env vars is similar to the performance of default path with env vars.
This PR removes running default path with env vars.

@Egor-Krivov Can we update Grafana's references of ci-dflt with ci after this PR?


[Impeller] Clip area is offsetting backdrop image filter

found while investigating https://github.com/flutter/flutter/issues/136058
cc @bdero
reproduction
TEST_P(AiksTest, MatrixImageFilterClippedBackdropImageFilter) {
  Canvas canvas;
  canvas.Scale(GetContentScale());
  auto image = std::make_shared<Image>(CreateTextureForFixture("airplane.jpg"));
  canvas.DrawImage(image, {0, 0},
                   Paint{.color = Color::White().WithAlpha(0.5)});
  // Commenting and uncommenting the following line changes what renders inside of the box.
  // canvas.ClipRect({800, 10, 200, 200});
  canvas.SaveLayer(
      {}, std::nullopt,
      std::make_shared<MatrixImageFilter>(
          Matrix::MakeTranslation({800, 10, 0}) * Matrix::MakeScale({2, 2, 2}),
          SamplerDescriptor{}));
  canvas.Restore();
  ASSERT_TRUE(OpenPlaygroundHere(canvas.EndRecordingAsPicture()));
}

with clip

without clip

expected results
I expect the pixels inside of the clip rect to be the same.

Actually the results should probably be a black clip rect.  Because if the SaveLayer call is supposed to be affected by the clip region, it should be grabbing the contents at {800, 10, 200, 200}, then drawing that in the save layer restore with the matrix.  The box should be all black.  It appears that the region being grabbed is {400, 5, 100, 100} which is not respecting the scale specified in canvas.Scale(GetContentScale());

@gaaclarke @bdero We don't know if this is still an issue after all the work around save layers recently. If you know off the top of your head, can you add an update? If not, we'll keep this as a blocker for removal of Skia.

This still exhibits the same behavior.  This issue doesn't compare the output with skia's definitively.  I'll attempt that.

I've tried to reproduce this at the Dart level and I can't.  The clip isn't respected on Skia or Impeller.  So while this behavior might not be correct, it doesn't matter if it can't be accessed via the Dart interface.
  @override
  Widget build(BuildContext context) {
    return LayoutBuilder(
        builder: (BuildContext context, BoxConstraints constraints) {
      return Directionality(
        textDirection: TextDirection.ltr,
        child: Stack(
          fit: StackFit.expand,
          children: <Widget>[
            Image.asset('assets/airplane.jpg'),
            ClipRect(
              child: BackdropFilter(
                filter: ui.ImageFilter.matrix(Matrix4(//
                  2.0, 0.0, 0.0, 0.0,//
                  0.0, 2.0, 0.0, 0.0,//
                  0.0, 0.0, 1.0, 0.0,//
                  10.0, 10.0, 0.0, 1.0).storage),
                child: Container(
                  alignment: Alignment.center,
                  width: 10.0,
                  height: 10.0,
                ),
              ),
            ),
          ],
        ),
      );
    });
  }


Ci build

This is my proposal, please reply what is acceptable and what is not, and your additional constraints.
Goals:

Continous integration using free cloud service, which is drone.io now.
CI includes automatic publication of installers to a configureable scp destination. For me it is the "archici" sourceforge project.
Stable and unstable releases are clearly separated on the destination, stable meaning builds of the master branch.
It is possible to use eclipse as a development environment, and this includes running unit tests and using "Launch an Eclipse Application" from archimate.product
It is possible to create and check installers "at home", without submitting to git or cloud, and without network connection
One thing is implemented exactly once
Build should be possible on supported platforms

Constraints:

The CI build uses maven.
Maven conventions are adhered.
The build uses files only in places where a unprivileged user have write rights.
The non-eclipse dependencies of the build (jre installs and Inno Setup) are placed in one artifact in a place which unambigously exists in all supported platform. That is there is one tar.gz or zip, containing all of the three things, and it is within the home directory. Currently it is ~/Downloads/archi-extra.tar.gz
Installers are created using maven even "at home".
Working (creating installer) without net is possible if both
a) a build have already ran with network which have cached in all the dependencies (e.g. a succesful mvn install)
b) no new dependency have been introduced

I've implemented a maven build process now. It's not public, though.

It does not exists then. You are free to borrow the poms from the Zenta project though.

Archi is not a "free for all" project. The source code is public, the "Archi" product and build process is not.
Zenta poms are not appropriate.

 Archi code is open source. "Archi" is a registered trade mark. My build process is appropriate for my branding.

Hi,
My 2 cts on this...
As a user and contributor I don't mind a CI build process. I can work on code locally and export a product easily.
As an Archi team member, I don't find it a necessity to provide all those products/build resources neither. And that's even more logical because at least the Archi logo and Archi brand are copyrighted. We have to be careful about those aspects because if one day Archi becomes a certified tool, this certification would only be meaningful for Archi, not for any derivative work based on Archi.
BTW - Have you seen that now ArchiMate 3.0 is really open (one can provide consultancy services without having to pay TOG).

And even if it was that kind of a project it would require proper governance in order to stop every Tom, Dick, and Harry throwing all kinds of shit at it, and trying to turn it into their own pet project, and use it for their own agenda.

Hi,
I read the link in the BTW and it seems you still have to get a commercial
license, Jean-Baptiste. Why do you say you don't need to pay TOG for
consultancy services?
Sent with MailTrack
<EMAIL_ADDRESS>Regards,
Theuns  - "I love deadlines. I like the whooshing sound they make as they
fly by." Douglas Adams
IQ Business http://www.iqbusiness.net: *Solution Architect *| *TOGAF 9
Certified Enterprise Architect *
My 3D Images http://bluestarcreations.wordpress.com/ || Some of my
writings http://www.writingroom.com/writingresults.aspx?m=Zandria || My
Awesome Stuff Blog http://awesomestufftheunslikes.wordpress.com/about/
On 20 June 2016 at 13:27, Jean-Baptiste Sarrodie<EMAIL_ADDRESS>wrote:

Hi,
My 2 cts on this...
As a user and contributor I don't mind a CI build process. I can work on
code locally and export a product easily.
As an Archi team member, I don't find it a necessity to provide all those
products/build resources neither. And that's even more logical because at
least the Archi logo and Archi brand are copyrighted. We have to be careful
about those aspects because if one day Archi becomes a certified tool, this
certification would only be meaningful for Archi, not for any derivative
work based on Archi.
BTW - Have you seen that now ArchiMate 3.0 is really open
http://www.opengroup.org/archimate/as30/license_comm (one can provide
consultancy services without having to pay TOG).
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/archimatetool/archi/issues/59#issuecomment-227117225,
or mute the thread
https://github.com/notifications/unsubscribe/AE2-pYCVKCJPbYbIgZr6JkG7Ia0oqyYWks5qNnk_gaJpZM4BsKb6
.

@theunsfvo : I'm quoting "For the avoidance of doubt, the use of the Documentation for writing books or the provision of consultancy services does not require a commercial license."
Don't get me wrong, I don't say ArchiMate standard is fully open, but it is now enough so that a company can use it and rely on some consultants with no need for a commercial license. TBH, the fact that The Open Group is asking  money to have a training or a tool certified is not that bad as the goal is to make sure that nobody claim to support or train ArchiMate where in fact it is not the case. I've seen so many tools claiming to support BPMN where in fact they don't...

I agree with the licensing necessity, just a bit confused with the
application of it. For instance, I'm doing consulting for clients and use
ArchiMate to illustrate designs and although the tool is free, you still
need a commercial license to use the standard in the tool, according to the
TOG guys. Unless the 3.0 license works differently than the 2.1 license.
Sent with MailTrack
<EMAIL_ADDRESS>Regards,
Theuns  - "I love deadlines. I like the whooshing sound they make as they
fly by." Douglas Adams
IQ Business http://www.iqbusiness.net: *Solution Architect *| *TOGAF 9
Certified Enterprise Architect *
My 3D Images http://bluestarcreations.wordpress.com/ || Some of my
writings http://www.writingroom.com/writingresults.aspx?m=Zandria || My
Awesome Stuff Blog http://awesomestufftheunslikes.wordpress.com/about/
On 20 June 2016 at 13:54, Jean-Baptiste Sarrodie<EMAIL_ADDRESS>wrote:

@theunsfvo https://github.com/theunsfvo : I'm quoting "For the
avoidance of doubt, the use of the Documentation for writing books or the
provision of consultancy services does not require a commercial license."
Don't get me wrong, I don't say ArchiMate standard is fully open, but
it is now enough so that a company can use it and rely on some consultants
with no need for a commercial license. TBH, the fact that The Open Group is
asking money to have a training or a tool certified is not that bad as the
goal is to make sure that nobody claim to support or train ArchiMate where
in fact it is not the case. I've seen so many tools claiming to support
BPMN where in fact they don't...
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/archimatetool/archi/issues/59#issuecomment-227122032,
or mute the thread
https://github.com/notifications/unsubscribe/AE2-pfIaH20z0P42gcbfTRxZqh8DoRJmks5qNn92gaJpZM4BsKb6
.

I think that CI is a necessity for:

reproduceable build process (so you have lower probability to fsck up a release, and you can have good enough release cadence (which in turn correlates with development velocity))
if you are willing to accept contributions, it is a very good first item on the checklist whether the contribution would be acceptable. I have a feeling that this part is not important to Archi. As you have rightly pointed out, accepting contributions would need some kind of governance, and that seems to be too resource- and communications intensive for you from where I see the project.

Sorry for the bitterness, but I cannot help thinking about that if we could work together, both your goals with Archi, and mines (with Zenta now) would have been better served.

Setting up a full public CI requires something like Gerrit, and perhaps IP check process, peer review and more - this is the sort of thing that we see at the level of the Eclipse Foundation or the Apache Foundation. For the Archi product that I personally make available I do what I am able to do given the constraints of time and resources. If anyone wants to create an alternative product and process, then they can.
As for working together, I don't think our outlooks are aligned.

@theunsfvo : "Unless the 3.0 license works differently than the 2.1 license." Yes, things have changed with ArchiMate 3.0. A commercial license used to be needed but this is no more the case with version 3.0. This is a huge step forward.
@magwas : I think CI is good (and needed) in big project, but Archi is supported by Phil, and only him. When I look at the number of pull request (that is: almost none), I really don't think an open CI would help. A simplier way to setup a dev environment (like what is now described on Archi website) is much more important asof now.

To be clear the model for Archi is like Xmind - http://www.xmind.net/ They have free and paid-for products. Source code is available but no public CI process.

@jbsarrodie : I think the number of pull requests show that you have a nice healthy project here.
I believe an open CI is more important than you would think at first. It lowers the entry barrier as it shows without any doubt how to build and test the product, and gives you a way to check whether what you did the code actually works.

https://travis-ci.org/archimatetool/archi

Well done, congrats.

Well done, congrats.

Thanks for your support. :-)


Add wallet version to key generate output

This is an important information to be returned, and because of the algorithm version, it's sometimes misunderstood.

Tested OK on latest wallet - wallet version and the key version are returned.
ACTION =  WALLET-CLI-GENERATEKEYS
Call Type =  Command Line
CLI Command Built =  vegawallet -o json key  generate  -w  TestGenKeysWallet1  -p  ./go-wallet/pass.txt 2>&1 | tee ./go-wallet/output.txt
CLI Output =
{"wallet":{"name":"TestGenKeysWallet1","version":2,"filePath":"/Users/muthupandianvadivelu/Library/Application Support/vega/wallets/TestGenKeysWallet1"},"key":{"publicKey":"2271135c0c989d6ea8b94c03202368ba103e26b3a10bbb9d52348f771aafcce9","algorithm":{"name":"vega/ed25519","version":1},"meta":[{"key":"name","value":"TestGenKeysWallet1 key 96"}]}}

CLI Output =  {"wallet":{"name":"TestGenKeysWallet1","version":2,"filePath":"/Users/muthupandianvadivelu/Library/Application Support/vega/wallets/TestGenKeysWallet1"},"key":{"publicKey":"2271135c0c989d6ea8b94c03202368ba103e26b3a10bbb9d52348f771aafcce9","algorithm":{"name":"vega/ed25519","version":1},"meta":[{"key":"name","value":"TestGenKeysWallet1 key 96"}]}}


cannot compile using Delphi 2007

after modifying the uses clauses as this version of delphi doesnt have the full namespace qualifiers, everything sems OK except that the te4st project does not compile with the error:
[DCC Error] lz4d.dependencies.pas(130): E2045 Bad object file format: 'C:\Users\esilva\Downloads\lz4-delphi-master\lz4-delphi-master\lib/win32_mingw/chkstk_ms.o'
any ideas?
I am using Delphi 2007 Pro, Win32.

Sorry, i have not tested it with Delphi 2007. I can only compile with >=XE3.
There are a lot of problems with object files and delphi. I opened a bug report at embarcadero for a other object file related problem and the result was: "we know, it won't get fixed. Object file support is limited".
Sorry, i can not help you with this.

I understand... thank you for your quick response.

I asked a question related to this on stackoverflow: https://stackoverflow.com/questions/28626397 . Maybe it helps you a bit more with the objcet file format problem.

Maybe you can convert the object files to the necessary format using "coff2omf" as suggested at different places or give this object converter a try: http://agner.org/optimize/#objconv

We are currently in the process of migrating to XE7, so I'll resume this when this is done, thank you for your efforts.


Fix SequenceEventStorageEngine.readSnapshot

fix SequenceEventStorageEngine.readSnapshot: historicStorage was never called

In favor of our plan to release 4.2, I have taken the liberty of pulling your changes in a commit myself.
As the suggested solution has thus been merged, I feel this PR has been closed.
By the way, I have given you the credits in the commit message; genuinely hope you do not mind @AlexElin.


rootless: /etc/sub{uid,gid} in OpenShift is tricky

I'm trying to run rootless podman in an OpenShift pod (so we can do scalable analysis of container images; current implementation uses atomic --storage ostree and skopeo).
The thing is that with OpenShift's anyuid feature it's not easy to predict the uid. nss_wrapper is being used as a solution to this problem.
Minimal reproducer:
#!/bin/bash
set -ex

CONT=cont
IMAGE=rootless-podman

podman stop $CONT || :
podman rm -f $CONT || :

podman pull registry.fedoraproject.org/fedora:29
podman run --net host -d --name $CONT registry.fedoraproject.org/fedora:29 sleep 99999
podman exec $CONT dnf install -y podman
podman exec $CONT useradd podm
podman exec $CONT bash -c 'printf "podm:1000:9999" >/etc/subuid && cp /etc/subuid /etc/subgid'
podman stop $CONT
podman commit $CONT $IMAGE
podman rm $CONT
# this is how openshift creates the default pod
# https://github.com/containers/libpod/issues/1092#issuecomment-437962358
# --net host for sake of not having networking issues; sometimes dnf can't sync a repo
podman run --net host --cap-drop=setuid --cap-drop=setgid --cap-drop=kill --cap-drop=mknod --name=$CONT -u podm $IMAGE podman --log-level=debug --storage-driver=vfs pull fedora:29

So I did this:
$ top -n 2 ./passwd
root:x:0:0:root:/root:/bin/bash
user:x:1000070000:1000070000:user:/src:/bin/bash

export LD_PRELOAD=libnss_wrapper.so
export NSS_WRAPPER_PASSWD="${PWD}/passwd"
export NSS_WRAPPER_GROUP=/etc/group

and then created
$ cat /etc/sub{uid,gid}
user:231072:65536
user:231072:65536

I'm still getting the same error message from podman:
bash-4.4$ id -u
1000070000

bash-4.4$ /src/podman --root $PWD/r/ pull docker.io/library/busybox
...
ERRO[0005] Error while applying layer: ApplyLayer exit status 1 stdout:  stderr: lchown /home: invalid argument
Failed

bash-4.4$ pwd
/var/tmp
bash-4.4$ ls -lha
total 16K
drwxrwxrwt. 1 root  root   27 Jul 13 14:59 .
drwxr-xr-x. 1 root  root   16 Apr 26 13:03 ..
-rw-r--r--. 1 user  root  829 Jul 13 14:54 passwd
drwxr-xr-x. 9 user  root 4.0K Jul 13 14:51 r

the busybox image has files owned by different users (not only root), so containers/storage tries to chown them with some uids/gids != 0.
I believe that podman has still only one uid available inside the user namespace, and after https://github.com/projectatomic/libpod/pull/1097 it will just fail to start.

Okay, I'll try again with the patch and with a different image.

Patch has been merged.

Sadly it still doesn't work. It seems that podman doesn't respect the nss_wrapper setup:
bash-4.4$ id
uid=1000070000(podm) gid=0(root) groups=0(root),1000070000

bash-4.4$ getent passwd podm
podm:x:1000070000:0:podm:/src:/bin/bash

bash-4.4$ podman
ERRO[0000] No subuid ranges found for user ""

bash-4.4$ cat /etc/subuid
podm:231072:65536

bash-4.4$ cat /etc/subgid
podm:231072:65536

I prepared a repo with my complete setup: https://github.com/TomasTomecek/rootless-podman-in-openshift

is the env variable $USER set correctly?

Does user.Lookupid(UIDString) do the right thing in the golang libraries?

It's definitely not. Trying it now right now. Will edit this comment with results.

@TomasTomecek We need to handle the error where USER is not set, we need to to a lookup.  Lets not loose that part of the issue.

We need to handle the error where USER is not set, we need to to a lookup. Lets not loose that part of the issue.

I've opened a PR here: https://github.com/projectatomic/libpod/pull/1217

I tried this with latest releases:
podman-0.8.5-1.gitdc5a711.fc28.x86_64
origin 3.10
kernel-4.18.5-300.fc29.x86_64

and am still stuck on the lchown /home: invalid argument

we may be hitting this issue: https://github.com/genuinetools/img/issues/170

Giuseppe, I can see that both patches of yours for shadow were merged. When can we expect a build of podman built with them to try this out?

they are not going to be distributed with podman.  They are distributed as part of shadow-utils, @t8m might know better.
For a test though, you could probably build a new image with shadow-utils built from upstream

If the solution for the issue is to ship the newuidmap and newgidmap utilities with CAP_SETUID fscap instead of them being simply setuid root, I can prepare the shadow-utils update for Fedora 29 soon.

@t8m awesome, that would be super helpful; I'll update my laptop to F29 in the meantime

If the solution for the issue is to ship the newuidmap and newgidmap utilities with CAP_SETUID fscap instead of them being simply setuid root, I can prepare the shadow-utils update for Fedora 29 soon.

no that is not needed.  There is also a fix that will enable the feature when installed as a suid binary without changing file caps

@giuseppe But I prefer the fscaps solution to the problem as it does not require changing the code and actually gives the binaries only the capability that it needs.

Hm, so how can we test the proposed solution?

@TomasTomecek  can you please open a Fedоra bug against shadow-utils?

Okay, I won't be able to come up with a minimal reproducer: openshift is very strict in this space and the minimal reproducer would not correspond to the openshift environment. Anyway, I rerun my testing and here are my findings:
[podm@podman-in-okd-20181108t165009822581 /]$ podman --storage-driver=vfs pull fedora:29
Trying to pull docker.io/fedora:29...Getting image source signatures
Copying blob sha256:d0483bd5a55488f5ba6383a5cc8553d5101864f03acd07eabc5df7563c3692cf
 83.23 MB / 83.23 MB [=====================================================] 34s
Copying config sha256:8c568f1043264e34f0a8774587266565c7e5e54e9ea6b97ab459086d18ac5175
 2.29 KB / 2.29 KB [========================================================] 0s
Writing manifest to image destination
Storing signatures
ERRO[0040] Error while applying layer: ApplyLayer exit status 1 stdout:  stderr: lchown /run/systemd/netif: invalid argument

Still the same error, just different directory. @t8m: Tome, once there is a build of shadow-utils with the patches from Giuseppe, please let me know and I'll try this again.

@TomasTomecek Are you sure that the fixed shadow-utils are in place? What is the kernel of the host?

@t8m this is F29, so 4.18. I'm 100% sure that updated shadow-utils are not there (since you haven't touched that bug I presumed there is still no build in koji: I can pick up the latest build from koji and try again).

Sadly, still the same error.
[podm@podman-in-okd-20181112t130610199320 /]$ podman --storage-driver=vfs pull fedora:29
Trying to pull docker.io/fedora:29...Getting image source signatures
Copying blob sha256:d0483bd5a55488f5ba6383a5cc8553d5101864f03acd07eabc5df7563c3692cf
 83.23 MB / 83.23 MB [======================================================] 3s
Copying config sha256:8c568f1043264e34f0a8774587266565c7e5e54e9ea6b97ab459086d18ac5175
 2.29 KB / 2.29 KB [========================================================] 0s
Writing manifest to image destination
Storing signatures
ERRO[0007] Error while applying layer: ApplyLayer exit status 1 stdout:  stderr: lchown /run/systemd/netif: invalid argument
Failed

[podm@podman-in-okd-20181112t130610199320 /]$ ls -lha /run/systemd/netif
total 0
drwxr-xr-x. 4 root root  33 Sep  6 03:00 .
drwxr-xr-x. 9 root root 113 Sep  6 03:00 ..
drwxr-xr-x. 2 root root   6 Sep  6 03:00 leases
drwxr-xr-x. 2 root root   6 Sep  6 03:00 links
[podm@podman-in-okd-20181112t130610199320 /]$ ls -lha /run/systemd/
total 0
drwxr-xr-x. 9 root root 113 Sep  6 03:00 .
drwxr-xr-x. 1 root root  48 Nov  8 15:32 ..
drwxr-xr-x. 2 root root   6 Sep  6 03:00 ask-password
drwxr-xr-x. 2 root root   6 Sep  6 03:00 machines
drwxr-xr-x. 4 root root  33 Sep  6 03:00 netif
drwxr-xr-x. 2 root root   6 Sep  6 03:00 seats
drwxr-xr-x. 2 root root   6 Sep  6 03:00 sessions
drwxr-xr-x. 2 root root   6 Sep  6 03:00 shutdown
drwxr-xr-x. 2 root root   6 Sep  6 03:00 users

I am using the newest podman and shadow-utils:
shadow-utils-4.6-4.fc29.x86_64
podman-0.11.1-1.gita4adfe5.fc29.x86_64

[podm@podman-in-okd-20181112t141546420819 /]$ podman info                                                                                [2/521]
host:
  BuildahVersion: 1.5-dev
  Conmon:
    package: podman-0.11.1-1.gita4adfe5.fc29.x86_64
    path: /usr/libexec/podman/conmon
    version: 'conmon version 1.12.0-dev, commit: 8967a1d691ed44896b81ad48c863033f23c65eb0-dirty'
  Distribution:
    distribution: fedora
    version: "29"
  MemFree: 201998336
  MemTotal:<PHONE_NUMBER>0
  OCIRuntime:
    package: runc-1.0.0-57.dev.git9e5aa74.fc29.x86_64
    path: /usr/bin/runc
    version: |-
      runc version 1.0.0-rc5+dev
      commit: ff195010cbfd3c62a98a3fd2f7a1e1594afdda1a
      spec: 1.0.1-dev
  SwapFree:<PHONE_NUMBER>8
  SwapTotal:<PHONE_NUMBER>8
  arch: amd64
  cpus: 8
  hostname: podman-in-okd-20181112t141546420819
  kernel: 4.18.17-300.fc29.x86_64
  os: linux
  uptime: 40m 54.03s
insecure registries:
  registries: []
registries:
  registries:
  - docker.io
  - registry.fedoraproject.org
  - quay.io
  - registry.access.redhat.com
  - registry.centos.org
store:
  ContainerStore:
    number: 0
  GraphDriverName: vfs
  GraphOptions: []
  GraphRoot: /home/podm/.local/share/containers/storage
  GraphStatus: {}
  ImageStore:
    number: 0
  RunRoot: /tmp/user/1000140000

how do your /etc/subuid and /etc/subgid files look like?

Hmmm, it seems the ranges are not right (not sure if this has changed in openshift recently):
[podm@podman-in-okd-20181112t160941084723 /]$ cat /etc/subuid /etc/subgid
podm:231072:65536
podm:231072:65536

[podm@podman-in-okd-20181112t160941084723 /]$ id
uid=1000140000(podm) gid=0(root) groups=0(root),1000140000

My understanding of namespaces + capabilities might be wrong. But can /usr/bin/newgidmapmp work if cap_setgid,cap_setuid are not available in unprivileged pod?.
Then it means anybody would be able to "add" new capability there. Or is it limited just for cap_setgid,cap_setuid?
sh$ oc rsh pod/jenkins-slave
sh-4.4$ capsh --print
Current: = cap_chown,cap_dac_override,cap_fowner,cap_fsetid,cap_setpcap,cap_net_bind_service,cap_net_raw,cap_sys_chroot,cap_audit_write,cap_setfcap+i
Bounding set =cap_chown,cap_dac_override,cap_fowner,cap_fsetid,cap_setpcap,cap_net_bind_service,cap_net_raw,cap_sys_chroot,cap_audit_write,cap_setfcap
Securebits: 00/0x0/1'b0
 secure-noroot: no (unlocked)
 secure-no-suid-fixup: no (unlocked)
 secure-keep-caps: no (unlocked)
uid=1000120000(???)
gid=0(root)
groups=1000120000(???)

cap_setgid,cap_setuid must be available in the pod, otherwise newuidmap/newgidmap won't work.  The difference with the last version of shadow-utils is that only these caps are needed, instead before also cap_sys_admin was required for root

I just check changes in spec file of shadow-utils :-) And previously there was suid bit instead of capabilities; therefore I did not notice cap_sys_admin. And I could not see that in chagelog either
* Tue Nov 06 2018 Tomáš Mráz<EMAIL_ADDRESS>- 2:4.6-4
- use cap_setxid file capabilities for newxidmap instead of making them setuid
- limit the SYS_U/GID_MIN value to 1 as the algorithm does not work with 0
  and the 0 is always used by root anyway
- manual page improvements

So the other question. Are cap_setgid,cap_setuid available in unprivileged openshift/k8s pod by default?
Or just my testing was not accurate.
I checked restricted secure context and it seems that SETUID,SETGID are dropped by default.
sh# oc describe scc/restricted
Name:                                           restricted
Priority:                                       <none>
Access:
  Users:                                        <none>
  Groups:                                       system:authenticated
Settings:
  Allow Privileged:                             false
  Default Add Capabilities:                     <none>
  Required Drop Capabilities:                   KILL,MKNOD,SETUID,SETGID
  Allowed Capabilities:                         <none>
  Allowed Seccomp Profiles:                     <none>
  Allowed Volume Types:                         configMap,downwardAPI,emptyDir,persistentVolumeClaim,projected,secret
  Allowed Flexvolumes:                          <all>
  Allow Host Network:                           false
  Allow Host Ports:                             false
  Allow Host PID:                               false
  Allow Host IPC:                               false
  Read Only Root Filesystem:                    false
  Run As User Strategy: MustRunAsRange
    UID:                                        <none>
    UID Range Min:                              <none>
    UID Range Max:                              <none>
  SELinux Context Strategy: MustRunAs
    User:                                       <none>
    Role:                                       <none>
    Type:                                       <none>
    Level:                                      <none>
  FSGroup Strategy: MustRunAs
    Ranges:                                     <none>
  Supplemental Groups Strategy: RunAsAny
    Ranges:                                     <none>

Or should we check different scc?

@TomasTomecek missing caps (SETUID,SETGID) in bounding set is the main issue.
It is visible in following two snippets. 1st one is pod with scc/restricted and 2nd one is scc/restricted + caps(SETUID,SETGID)
sh# oc exec -ti podman-in-okd-20181112t170806325043 -- bash
[podm@podman-in-okd-20181112t170806325043 /]$ capsh --print | grep -o "cap_set.id"
[podm@podman-in-okd-20181112t170806325043 /]$ podman --storage-driver=vfs pull fedora:29
Trying to pull docker.io/fedora:29...Getting image source signatures
Copying blob sha256:d0483bd5a55488f5ba6383a5cc8553d5101864f03acd07eabc5df7563c3692cf
 83.23 MB / 83.23 MB [======================================================] 4s
Copying config sha256:8c568f1043264e34f0a8774587266565c7e5e54e9ea6b97ab459086d18ac5175
 2.29 KB / 2.29 KB [========================================================] 0s
Writing manifest to image destination
Storing signatures
ERRO[0005] Error while applying layer: ApplyLayer exit status 1 stdout:  stderr: lchown /run/systemd/netif: invalid argument
Failed
Trying to pull registry.fedoraproject.org/fedora:29...Getting image source signatures
Copying blob sha256:7692efc5f81cadc73ca1afde08b1a5ea126749fd7520537ceea1a9871329efde
 96.61 MB / 96.61 MB [======================================================] 4s
Copying config sha256:a5cc8ccd230a587867762e1b38efc941ce1743d2151fe36b00c8841ff9e09b62
 1.27 KB / 1.27 KB [========================================================] 0s
Writing manifest to image destination
Storing signatures
ERRO[0012] Error while applying layer: ApplyLayer exit status 1 stdout:  stderr: lchown /var/spool/mail: invalid argument
Failed
Trying to pull quay.io/fedora:29...Failed
Trying to pull registry.access.redhat.com/fedora:29...Failed
Trying to pull registry.centos.org/fedora:29...Failed
error pulling image "fedora:29": unable to pull fedora:29: 5 errors occurred:

* Error committing the finished image: error adding layer with blob "sha256:d0483bd5a55488f5ba6383a5cc8553d5101864f03acd07eabc5df7563c3692cf": ApplyLayer exit status 1 stdout:  stderr: lchown /run/systemd/netif: invalid argument
* Error committing the finished image: error adding layer with blob "sha256:7692efc5f81cadc73ca1afde08b1a5ea126749fd7520537ceea1a9871329efde": ApplyLayer exit status 1 stdout:  stderr: lchown /var/spool/mail: invalid argument
* Error determining manifest MIME type for docker://quay.io/fedora:29: Error reading manifest 29 in quay.io/fedora: error parsing HTTP 404 response body: invalid character '<' looking for beginning of value: "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 3.2 Final//EN\">\n<title>404 Not Found</title>\n
Not Found
\n
The requested URL was not found on the server.  If you entered the URL manually please check your spelling and try again.
\n"
* Error determining manifest MIME type for docker://registry.access.redhat.com/fedora:29: Error reading manifest 29 in registry.access.redhat.com/fedora: unknown: Not Found
* Error determining manifest MIME type for docker://registry.centos.org/fedora:29: Error reading manifest 29 in registry.centos.org/fedora: manifest unknown: manifest unknown
[podm@podman-in-okd-20181112t170806325043 /]$ exit
command terminated with exit code 125

and I manged to at least pull image from registry in 2nd one
[root@xci31 ~]# oc exec -ti podman-in-okd-20181112t171049571203 -- bash
[podm@podman-in-okd-20181112t171049571203 /]$ capsh --print | grep -o "cap_set.id"
cap_setgid
cap_setuid
cap_setgid
cap_setuid
[podm@podman-in-okd-20181112t171049571203 /]$ podman --storage-driver=vfs pull fedora:29
Trying to pull docker.io/fedora:29...Getting image source signatures
Copying blob sha256:d0483bd5a55488f5ba6383a5cc8553d5101864f03acd07eabc5df7563c3692cf
 83.23 MB / 83.23 MB [===================================================] 3m35s
Copying config sha256:8c568f1043264e34f0a8774587266565c7e5e54e9ea6b97ab459086d18ac5175
 2.29 KB / 2.29 KB [========================================================] 0s
Writing manifest to image destination
Storing signatures
8c568f1043264e34f0a8774587266565c7e5e54e9ea6b97ab459086d18ac5175

But you cannot run container there. But it might be sufficient for colin usecase IMHO
[podm@podman-in-okd-20181112t171049571203 /]$ podman --storage-driver=vfs run fedora:29 cat /etc/os-release
container create failed: nsenter: failed to update /proc/self/oom_score_adj: Permission denied
container_linux.go:337: starting container process caused "process_linux.go:302: running exec setns process for init caused \"exit status 10\""
: internal libpod error
[podm@podman-in-okd-20181112t171049571203 /]$ echo $?
127
[podm@podman-in-okd-20181112t171049571203 /]$ podman --storage-driver=vfs ps -a
CONTAINER ID  IMAGE                        COMMAND               CREATED         STATUS   PORTS  NAMES
dae8dfcbc6b4  docker.io/library/fedora:29  cat /etc/os-relea...  10 seconds ago  Created         dreamy_khorana

So the only limitation seems to be missing capabilities (SETUID,SETGID) in scc/restricted :-(

I have attached a minimal reproducer to the original post.

@giuseppe, as @lslebodn figured out, openshift itself is dropping those capabilities. I have opened an origin issue over here: https://github.com/openshift/origin/issues/21514

this is a tricky issue, allowing cap_setuid and cap_setgid by default lowers considerably the security.
Potentially an unprivileged user could become any UID with the help of a suid application that is part of the image.

@giuseppe I think they also set no new privileges by default, which would torpedo that

I would figure you would need to have an SCC that adds these capabiltities and allows the user to run podman.

@TomasTomecek @giuseppe What should we do with this issue?

I think we can close it.  There is nothing we can do without CAP_SETUID/CAP_SETGID, except have a single user mapped in the user namespace

I'm going to work in this area a bit more in coming weeks and might open more specific issues.


Error: The non-abstract class 'SentryAssetBundle' is missing implementations for these members:

../../.pub-cache/hosted/pub.flutter-io.cn/sentry_flutter-6.6.0-alpha.2/lib/src/sentry_asset_bundle.dart:32:7: Error: The non-abstract class 'SentryAssetBundle' is missing implementations for these members:

AssetBundle.loadBuffer
Try to either
provide an implementation,
inherit an implementation from a superclass or mixin,
mark the class as abstract, or
provide a 'noSuchMethod' implementation.

class SentryAssetBundle implements AssetBundle {
^^^^^^^^^^^^^^^^^
../../flutter/packages/flutter/lib/src/services/asset_bundle.dart:62:30: Context: 'AssetBundle.loadBuffer' is defined here.
Future<ui.ImmutableBuffer> loadBuffer(String key) async {

Which Flutter version are you using?

I"ve just looked it up, that method is only available on master: https://master-api.flutter.dev/flutter/services/AssetBundle/loadBuffer.html
The fix is pretty easy, just use the same approach as
https://github.com/getsentry/sentry-dart/blob/b1f0ff68f91916d27d6083bc914bebad77ab08a8/flutter/lib/src/sentry_asset_bundle.dart#L163-L178
 @override
 // This is an override on Flutter 3.1 (I guess) and later
 // ignore: override_on_non_overriding_member
 Future<ImmutableBuffer> loadBuffer(String key) {
   try {
     // TODO add performance tracing here
     return (_bundle as dynamic).loadBuffer(key);
   } on NoSuchMethodError catch (_) {
     // The clear method exists as of Flutter 3.1
     // Previous versions don't have it, but later versions do.
     // We can't use `extends` in order to provide this method because this is
     // a wrapper and thus the method call must be forwarded.
     // On Flutter version before 2.8 we can't forward this call and
     // just catch the error which is thrown. On later version the call gets
     // correctly forwarded.
   }
 }

Which Flutter version are you using?

3.1

Hi guys, this same problem is happening in the latest stable version 3.3.3

same issue is happening to me in 3.3.3 and 3.3.4

same issue is happening to me in 3.3.3 and 3.3.4

Hey, i fixed it updating to latest version of sentry :)

me too,
That worked, thanks


Machine win-6 went dead from monitoring website.

Machine win-6 went dead from monitoring website.

Machine win-6 is back online and ready for service. Healthcheck batch file was hung and required reboot machine win-6.


fix(nixos): allow eval to succeed when the module is unused

Fixes an issue from #70 where system configs won't eval if no
environment.persist confg exists.
~I think this fix is a little hacky, there's probably a better/clear way of
handling this.~ Thought of a better way.

@talyz I'm going to fast-merge this to un-break master since the patch is so small, we can re-hash it in a follow-up if you come up with a nicer fix?

I think this looks good! Maybe there's a nicer fix, but it would likely require a larger change. Thanks for fixing the issue!


reboot uboot twice

Hi,
Is there any way to reboot device and boot it end of the script with new uboot file and make uboot commands again?
After uuu script erase and flash nand I need to reboot device and start uboot again. I need to make saveenv in uboot to save uboot environments to flash.
Is there any way to start uboot again in the end of the script? I tried it but every SDP commands runs before FB commands and every FB commands runs before FBK commands. Even they are end of the script.
So after first SDP command uuu-tool will run last SDP command immediately and goes error.

Not support.  You can use fb: acmd: reboot to reboot system. but can't use difference uboot file.
if only want to saveevn to flash, you can use https://bootlin.com/blog/mkenvimage-uboot-binary-env-generator/ to generate environment variable binary. Then use uuu to write it to flash.

Thanks for fast reply.
It could be okay if it will reboot same uboot. I tried fb: acmd reboot, but it reboots before initramfs kernel starts, even fb: acmd reboot command is end of the script file.
Maybe I use CONFIG_USE_DEFAULT_ENV_FILE in uboot and use same file with mkenvimage in uuu flash script after nand partition erase. I don't want use env file in the running kernel, because we have two partition for updating device and we need sometimes change uboot environments with fw_setenv. Same environments in many places not sound good.

Which platform do you use?  Some chip have some persistent register in SRTC.  You can write some information into it.  after reboot, your uboot read it back and choose difference environment variable.

My chip is nxp imx6ull.
Nice to know about SRTC. I will check it also.
Thanks for mkenvimage info. Now it works. I use BR2_TARGET_UBOOT_ENVIMAGE from buildroot, so I get uboot-env.bin from buildroot. Then I just write it to nand in script
FBK: ucmd nandwrite -p /dev/mtd2 /tmp/uboot-env.bin

fb: acmd: reboot to reboot system

@nxpfrankli I added the above line in my UUU script and ran it in i.mx 8MM Mini EVK. I got the following error:
Error: Unknown Command:FB: acmd: reboot

Error: Unknown Command:FB: ucmd: reboot

Could you kindly tell us how to reset the i.MX 8M with UUU tool.

I think it's
FB: acmd reboot
not
FB: acmd: reboot

Hi @JanneTerho1
Thanks for the quick reply.

FB: acmd reboot

reboot doesn't seem to work in i.MX 8MM I got this: Unknown command 'reboot' - try 'help'. However the syntax is proven right as I put reset instead of reboot (i.e. FB: acmd reset) everything working as expected now.
BTW, would you mind explaining about acmd a bit?

acmd return success when  uboot received cmd.
ucmd return success after cmd run.
because reset allow system reboot. So use acmd

@nxpfrankli thanks for the clarification.

Envimage was good in kernel side, but I need to change in uboot also. If I change nand partition sizes, I need to change it to uboot config and uboot-env.txt. Also if I use env default -a in uboot, it will return uboots environments, not the generated environments from file.
I tried to use uboot CONFIG_DEFAULT_ENV_FILE, but it didn't work from same uboot-env.txt.
I think that easiest way could be to made it in uuu-script, but I think it's not possible.

I can't get reboot working.
FB: acmd reset and FBK: acmd reboot will show that commads executes correctly on device, but nothing happend. In normal running device I can boot device with those commands, but not in initramfs via uuu-tool.

if still have problem, please reopen.


feat: [PLATO-421] add tracking events

What will change?
This work adds the Segment tracking events described in the tracking plan.
Ticket: https://contentful.atlassian.net/browse/PLATO-421 - Part of https://contentful.atlassian.net/browse/PLATO-411
Testing steps

Visit the Vercel preview URL
In the footer, click on Manage cookie consent and make sure Analytics cookies are accepted and AdBlockers are disabled (confirm there are no errors being thrown in the browser's console)
Make sure all events mentioned in the tracking plan, are correctly implemented and fired accordingly. This can be checked with the Segment Debugger, available in our staging environment. Credentials can be found on 1Password.

Example of homepage

Example of navigation to the black dress page

We are aware that additional page events are fired when URL parameters change (this happens for the preview and xray mode). This is an accepted side effect.

TODO

[ ] Check the events on Segment production after the merge (sanity check, it should have been taken care of for all templates).
[ ] Check potential script/cookies to be added to the Osano configuration - taken care of in https://contentful.atlassian.net/browse/PLATO-467.

LGTM. QA'ed successfully.


Bitcoin thor trade parsing

Overview
Detect thorchain trade in the btc parser and include relevant metadata with tx (trade details so we can match it up with the other transaction on the other chain)
References and additional details
Our current bitcoin parser:
https://github.com/shapeshift/lib/blob/main/packages/unchained-client/src/bitcoin/parser/index.ts
Trade metadata for attaching to the tx will probably have to come from a midgard call
Acceptance Criteria
The btc parser attaches useful metadata about the trade to thortrade related btc txs
Should work for sends & receives that are part of thor trades
Need By Date
No response
Screenshots/Mockups
No response
Estimated effort
No response

closing until we do "blockchain activity" type epic and have the concept of a "trade" which points to multiple transactions on multiple chains

related https://github.com/shapeshift/lib/issues/694


Clik Item

when I clik the item there is no specially good effect,but on your app it has.
and i can not find something different betwwen your app and my app.
i very want to kown that,would you tell me.i am anticipating your reply.
sorry for my bad English

make sure that you are using compile 'com.android.support:appcompat-v7:23.0.0' or less


KeyError: 'https' on connect.py

Please provide us with the following information:

This issue is for a: (mark with an x)
- [ X] bug report -> please search issues before submitting

- [ ] feature request
- [ ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)

Minimal steps to reproduce

Clone repo
Adjust config. This is the config.py file that I set up.

client = client.Client('https://localhost:8901/', 'g',
                        username="/dbs/db1/colls/coll1",
                        password="<copy/pasted from the explorer>",
                        message_serializer=serializer.GraphSONSerializersV2d0()
                        )

Any log messages given by the failure

KeyError: 'https'

Expected/desired behavior

not error, script runs to completion.

OS and Version?

Windows 7, 8 or 10. Linux (which distribution). macOS (Yosemite? El Capitan? Sierra?)
W10

Versions
gremlinpython==3.4.10
futures

Mention any other details that might be useful
I have a local CDB graph instance that is configured properly. This connection should work (confirmed working with tinkerpop). I can also access and query the server from https://localhost:8081/_explorer/index.html
Here is the full stack trace:
Welcome to Azure Cosmos DB + Gremlin on Python!
We're about to drop whatever graph is on the server. Press any key to continue...

> g.V().drop()
Traceback (most recent call last):
  File "C:\Users\<user>\anaconda3\envs\npd\lib\runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "C:\Users\<user>\anaconda3\envs\npd\lib\runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "c:\Users\<user>\.vscode\extensions\ms-python.python-2021.1.502429796\pythonFiles\lib\python\debugpy\__main__.py", line 45, in <module>
    cli.main()
  File "c:\Users\<user>\.vscode\extensions\ms-python.python-2021.1.502429796\pythonFiles\lib\python\debugpy/..\debugpy\server\cli.py", line 444, in main
    run()
  File "c:\Users\<user>\.vscode\extensions\ms-python.python-2021.1.502429796\pythonFiles\lib\python\debugpy/..\debugpy\server\cli.py", line 285, in run_file
    runpy.run_path(target_as_str, run_name=compat.force_str("__main__"))
  File "C:\Users\<user>\anaconda3\envs\npd\lib\runpy.py", line 263, in run_path
    pkg_name=pkg_name, script_name=fname)
  File "C:\Users\<user>\anaconda3\envs\npd\lib\runpy.py", line 96, in _run_module_code
    mod_name, mod_spec, pkg_name, script_name)
  File "C:\Users\<user>\anaconda3\envs\npd\lib\runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "c:\Users\<user>\source\repos\azure-cosmos-db-graph-python-getting-started\connect.py", line 181, in <module>
    cleanup_graph(client)
  File "c:\Users\<user>\source\repos\azure-cosmos-db-graph-python-getting-started\connect.py", line 58, in cleanup_graph
    callback = client.submitAsync(_gremlin_cleanup_graph)
  File "C:\Users\<user>\AppData\Roaming\Python\Python36\site-packages\gremlin_python\driver\client.py", line 148, in submitAsync
    return conn.write(message)
  File "C:\Users\<user>\AppData\Roaming\Python\Python36\site-packages\gremlin_python\driver\connection.py", line 55, in write
    self.connect()
  File "C:\Users\<user>\AppData\Roaming\Python\Python36\site-packages\gremlin_python\driver\connection.py", line 45, in connect
    self._transport.connect(self._url, self._headers)
  File "C:\Users\<user>\AppData\Roaming\Python\Python36\site-packages\gremlin_python\driver\tornado\transport.py", line 41, in connect
    lambda: websocket.websocket_connect(url, compression_options=self._compression_options))
  File "C:\Users\<user>\anaconda3\envs\npd\lib\site-packages\tornado\ioloop.py", line 576, in run_sync
    return future_cell[0].result()
  File "C:\Users\<user>\anaconda3\envs\npd\lib\site-packages\tornado\ioloop.py", line 547, in run
    result = func()
  File "C:\Users\<user>\AppData\Roaming\Python\Python36\site-packages\gremlin_python\driver\tornado\transport.py", line 41, in <lambda>
    lambda: websocket.websocket_connect(url, compression_options=self._compression_options))
  File "C:\Users\<user>\anaconda3\envs\npd\lib\site-packages\tornado\websocket.py", line 1339, in websocket_connect
    subprotocols=subprotocols)
  File "C:\Users\<user>\anaconda3\envs\npd\lib\site-packages\tornado\websocket.py", line 1123, in __init__
    scheme = {'ws': 'http', 'wss': 'https'}[scheme]
KeyError: 'https'

Thanks! We'll be in touch soon.

I think that I may have figured this out. The schema dict provided in the error maps to what you need to replace the ulr with.
So if your url is https then you need to change the string to wss and ws for http.
I would delete this except that I think that it might be useful for future developers.


PUT requests with parameters with location of "postField" result in Exception

I'm using v0.5 of this service. I have a Service Description with a operation that uses 'httpMethod' => 'PUT':
$api = new GuzzleHttp\Command\Guzzle\Description([
            'baseUrl' => $myBaseUrl,
            'operations' => [
                'SubscriberChangeEmail' => [
                    'httpMethod' => 'PUT',
                    'uri' => '/myapp/api/subscriber/changeEmail',
                    'responseModel' => 'changeEmailOutput',
                    'parameters' => [
                        'oldEmail' => [
                            'location' => 'postField',
                        ],
                        'newEmail' => [
                            'location' => 'postField',
                        ],
                    ],
                ],
                ...

When I try to consume the API I get an exception due to my use of 'location' => 'postField':
exception 'RuntimeException' with message 'Must be a POST body interface' in /var/www/apisupertasker/vendor/guzzlehttp/guzzle-services/src/RequestLocation/PostFieldLocation.php:23
Stack trace:
#0 /var/www/apisupertasker/vendor/guzzlehttp/guzzle-services/src/Serializer.php(94): GuzzleHttp\Command\Guzzle\RequestLocation\PostFieldLocation->visit(Object(GuzzleHttp\Command\Command), Object(GuzzleHttp\Message\Request), Object(GuzzleHttp\Command\Guzzle\Parameter), Array)
#1 /var/www/apisupertasker/vendor/guzzlehttp/guzzle-services/src/Serializer.php(57): GuzzleHttp\Command\Guzzle\Serializer->prepareRequest(Object(GuzzleHttp\Command\CommandTransaction), Object(GuzzleHttp\Message\Request))
#2 /var/www/apisupertasker/vendor/guzzlehttp/guzzle-services/src/GuzzleClient.php(101): GuzzleHttp\Command\Guzzle\Serializer->__invoke(Object(GuzzleHttp\Command\CommandTransaction))
#3 /var/www/apisupertasker/vendor/guzzlehttp/command/src/AbstractClient.php(221): GuzzleHttp\Command\Guzzle\GuzzleClient->serializeRequest(Object(GuzzleHttp\Command\CommandTransaction))
#4 /var/www/apisupertasker/vendor/guzzlehttp/command/src/AbstractClient.php(81): GuzzleHttp\Command\AbstractClient->initTransaction(Object(GuzzleHttp\Command\Command))
#5 /var/www/apisupertasker/vendor/guzzlehttp/command/src/AbstractClient.php(76): GuzzleHttp\Command\AbstractClient->execute(Object(GuzzleHttp\Command\Command))

I tried 'location' => 'putField' but that didn't work. I think this was fixed in a previous incarnation of the code, see https://github.com/guzzle/guzzle/issues/278 (but this is in a different git repo - I'm pretty confused about the versions, please excuse me for that :confused: ).

I have the same problem with Method Patch and location postfield.
I use guzzle 5.0 & service 0.4.*

I will close this issue. If your problem still exist with latest versions of Guzzle and Guzzle Service, feel free to reopen it.


update_project_team fails unless team has been set first

This line (gsub(/DevelopmentTeam...) assumes a DevelopmentTeam exists https://github.com/fastlane/fastlane/blob/9c0494ef5e7d71afc51c73fe0b141b02e8991d9c/fastlane/lib/fastlane/actions/update_project_team.rb#L15
But new projects with Team is set to 'None' don't have that key, e.g.:
				TargetAttributes = {
					0A1CA8F01D0B76B8005D5B89 = {
						CreatedOnToolsVersion = 7.3.1;
					};
				};

Projects created with an older version of Xcode, e.g. a freshly initialized React Native project which uses a stale project, the app target is not present. In that case the main app target needs to be looked up, something like this (I'm not a Ruby programmer...)
main_target = xcproj.targets.find { |t| t.name == project_name }
main_target_uuid = main_target && main_target.uuid
if main_target_uuid
  # add to TargetAttributes with the uuid as the key and DevelopmentTeam inside
end

I realize that this is due to limitations in the xcodeproj gem, and I've submitted a sister issue there, but they have over 30 open issues so it's not likely that there will be a quick solution on their side.
For now, I'll do my own gsub on the project file and avoid update_project_team... thanks!

Hi @mosesoak! Hope you are doing well. Are you interested in submitting a PR about this? That'd be 💯

from the convo at the thread linked just above this post, it seems Xcode might make the attribute mandatory in the near future which would make this problem go away on its own.