Composed command line is wierd

The composed command line is something like: start "" "C:\Windows\System32\cmd.exe, which is incorrect.
openTerminal function should be modified:
  openTerminal: (dirpath) ->
    app = "C:\\Windows\\System32\\cmd.exe"
    args = ''
    cmdline = "\"#{app}\ #{args}\""
    cmdline = "start " + cmdline
    exec cmdline, cwd: dirpath

Hi, sorry for the delay,
The only difference that I noted is that now the Command Prompt window will have a title (C:\Windows\System32\cmd.exe in my case).
Is that it? Do you have other problem?


Build fails: module 'dace.transformation.passes.scalar_to_symbol' has no attribute 'promote_scalars_to_symbols'

calling make on a fresh clone breaks in the following way:
...
mallocing  alpha  of size  [1]  and type  double
FUNC:  ddot
ENDF:  ddot
FUNC:  waxpby
ENDF:  waxpby
FUNC:  waxpby
ENDF:  waxpby
ENDF:  HPCCG
ENDF:  main
SDFG creation done
Traceback (most recent call last):
File "c2dace/c2d.py", line 93, in
c2d_workflow(_dir, filecore, fileextension, autoopt=False, verbose=True, print_ast=True)
File "/store/work/CheetahAI/c2dace/c2dace/c2d_workflow.py", line 237, in c2d_workflow
promoted = scal2sym.promote_scalars_to_symbols(sd)
AttributeError: module 'dace.transformation.passes.scalar_to_symbol' has no attribute 'promote_scalars_to_symbols'

They changed how transformations are called from DaCe. PR #7 should fix this


[entropy_src/dv] More efficient config coverage

This commit adds enhancments to the RNG vseq to perform more reconfigs per iteration and thus close more cover points with less simulation time.

Identifies certain configurations as "Silent" meaning that they are blocked either by OTP or by inconsistent CSR configurations. These do not generate seeds and thus do not close any configuration CPs.

A new max_silent_reconfig_time parameter has been added to prompt a faster reconfig for these silent configurations.

Identifies a bug in which random reconfigurations were not getting changed in Xcelium (it seems that if randomize() is called twice on the same object, the randomize routine is called, but the object
is not updated in the calling task!).   This is fixed by creating a
new copy of the dut_cfg object each time before randomizing.

Removes long pauses when reconfiguring the DUT

Removes the "Do NOT Disturb" flag in the RNG vseq. This debugging feature was incorrectly implemented and thus was preventing most reconfig trigger events it is also not needed anyway

Includes a number of small constraint or knob changes to get more efficient coverage.

Signed-off-by: Martin Lueker-Boden<EMAIL_ADDRESS>

Hi @matutem, could you please take a look and see if I responded adequately to your comments?

(Oh and thanks BTW for the review!)

Thank you Guillermo! For the review!


The template deployment is not valid according to the validation procedure

Is this a request for help?:
yes

Is this an ISSUE or FEATURE REQUEST? (choose one):
issue

What version of acs-engine?:
Version: canary
GitCommit: e251320a
GitTreeState: clean

Orchestrator and version (e.g. Kubernetes, DC/OS, Swarm)
Kubernates
What happened:
The template deployment 'dev-acs' is not valid according to the validation procedure. The tracking id is 'xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx'. See inner errors for details. Please see https://aka.ms/arm-deploy for usage details.

What you expected to happen:
It should print the fully error message.
How do i to use tracking id?
How to reproduce it (as minimally and precisely as possible):
$ acs-engine generate template.json
$ az group deployment create --name dev-acs --resource-group rg-dev-acs --template-file _output/dev-acs/azuredeploy.json --parameters _output/dev-acs/azuredeploy.parameters.json

Anything else we need to know:
template.json
{
  "apiVersion": "vlabs",
  "properties": {
    "orchestratorProfile": {
      "orchestratorType": "Kubernetes",
      "orchestratorVersion": "1.7.9",
      "kubernetesConfig": {
        "enableRbac": true,
        "networkPolicy": "calico",
        "clusterSubnet": "<IP_ADDRESS>/20"
      }
    },
    "masterProfile": {
      "dnsPrefix": "dev-acs",
      "count": 1,
      "vmSize": "Standard_DS2_v2",
      "vnetSubnetId": "/subscriptions/xxxxxxx/resourceGroups/vpc-dev-acs/providers/Microsoft.Network/virtualNetworks/vnet-dev-acs/subnets/subnet-dev-acs",
      "vnetCidr": "<IP_ADDRESS>/20",
      "firstConsecutiveStaticIP": "<IP_ADDRESS>",
      "OSDiskSizeGB": 512,
      "storageProfile": "ManagedDisks"
    },
    "agentPoolProfiles": [
      {
        "name": "memory",
        "count": 4,
        "vmSize": "Standard_DS2_v2",
        "availabilityProfile": "AvailabilitySet",
        "vnetSubnetId": "/subscriptions/xxxxxxx/resourceGroups/vpc-dev-acs/providers/Microsoft.Network/virtualNetworks/vnet-dev-acs/subnets/subnet-dev-acs",
        "OSDiskSizeGB": 512,
        "storageProfile": "ManagedDisks"
      },
      {
        "name": "memoryplus",
        "count": 1,
        "vmSize": "Standard_D8s_v3",
        "availabilityProfile": "AvailabilitySet",
        "vnetSubnetId": "/subscriptions/xxxxxxx/resourceGroups/vpc-dev-acs/providers/Microsoft.Network/virtualNetworks/vnet-dev-acs/subnets/subnet-dev-acs",
        "OSDiskSizeGB": 512,
        "storageProfile": "ManagedDisks"
      },
      {
        "name": "compute",
        "count": 1,
        "vmSize": "Standard_F4s_v2",
        "availabilityProfile": "AvailabilitySet",
        "vnetSubnetId": "/subscriptions/xxxxxxx/resourceGroups/vpc-dev-acs/providers/Microsoft.Network/virtualNetworks/vnet-dev-acs/subnets/subnet-dev-acs",
        "OSDiskSizeGB": 512,
        "storageProfile": "ManagedDisks"
      },
      {
        "name": "storage",
        "count": 1,
        "vmSize": "Standard_L4s",
        "availabilityProfile": "AvailabilitySet",
        "vnetSubnetId": "/subscriptions/xxxxxxx/resourceGroups/vpc-dev-acs/providers/Microsoft.Network/virtualNetworks/vnet-dev-acs/subnets/subnet-dev-acs",
        "OSDiskSizeGB": 512,
        "storageProfile": "ManagedDisks",
        "diskSizesGB": [1023]
      }
    ],
    "linuxProfile": {
      "adminUsername": "amis",
      "ssh": {
        "publicKeys": [
          {
            "keyData": "xxxxxxxxxxx"
          }
        ]
      }
    },
    "servicePrincipalProfile": {
      "clientId": "xxxxxxxxxxx",
      "secret": "xxxxxxxxxxx"
    }
  }
}

I hit this area following the getting  started guide for acs and swarm.
when doing azs create it looks like it uses a default --agent-vm-size of Standard_D2_v2 which isn't available for my region uksouth. This leads to this error being output with no clue as to what went wrong. Using the azure cloud shell to get the error details helped narrow down the problem. Now I am left with the problem of how to figure out what vm size to use that is in my region and closest to the default. I have no idea how to figure that out.
It would be better if it could default to an available size for the region, or provide a better error message explaining what went wrong and how to fix it.

I ran into this also yesterday, and I was able to find my actual error by using the powershell commandlets.
Get-AzureRMLog -CorrelationId xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx -DetailedOutput

Wonderful  :)

With the new Azure PowerShell commandlets, you're actually looking for:
Get-AzLog -CorrelationId xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx -DetailedOutput

Thanks @dazinator Changing the deploy settings fixed this issue.
I ran into this problem with Umbraco CMS.

With the new Azure PowerShell commandlets, you're actually looking for:
Get-AzLog -CorrelationId xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx -DetailedOutput

Cloud shell returns empty result using this command with my trakcing Id.

@elpablete try:
$result = Get-AzLog -CorrelationId xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx -DetailedOutput

Then examine $result.

Azure CLI: az monitor activity-log list --correlation-id xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx

((Get-AzLog -CorrelationId xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx).Properties.Content.statusMessage | ConvertFrom-Json -AsHashtable).error.details.message

Azure CLI: az monitor activity-log list --correlation-id xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx

One thing here, just make sure you supply the subscription ot set the default subscription, the command won't error with not found it will just return an empty list

Get-AzureRMLog

Newer command, for az power shell from 7.x.x,
Get-AzLog -CorrelationId xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx -DetailedOutput


Synchronized classes Vector, Hashtable, Stack and StringBuffer should not be used - RSPEC-1149

https://rules.sonarsource.com/java/RSPEC-1149

duplicate


Questions about NugetGallery cloud configuration

Hi together,
I installed NugetGallery as a private repository. I configured that packages uploaded into Azure Blobstorage.
In that szenario i have the problem, that displaying stats not working.
So I reading the code and me understanding is that this is not really implemented and if i interpreting correctly, that there are many NuGet.Services.xx projects, that this job in futuere doing this stuff, is this correct?

Thanks for posting - can you post this to StackOverflow - that will be the best spot to get an answer on this.  Thanks!


Add the file loading line necessary to install Quicklisp

Without this line, lisp do not know quicklisp-quickstart name and raise an error.
Tested on clisp 2.49.

@Aluriak thanks for catching this.


Failed to find library from system default path

Finding the library from the default path of the system fails, probably because there are insufficient permissions, and it is very slow to find files in a tree way. We need a caching and indexing mechanism.

This is not necessary, we need to explicitly specify the path, so this method will be abandoned


finding actual area of an object

I have pair of rgb and rgbd images, which include an object (a tree leaf).    I was wondering how would I figure out the actual area (size) of the object, using the the captured depth values.
For example, if the realsense camera sees the leaf, and the leaf takes 100 pixels of space in the image (in the rgb image), and the depth value the realsense camera gives is x for each pixel of the leaf in the rgb image, how would I know the actual size of the leaf object?
in addition, if the pair of rgb and rgbd images are aligned, what does it mean? how can i use it?
Thanks in advance.

@edrti, in case you're using D435 there is a "Edge Map" preset available that enhances edges and discards surfaces.  Imho it may facilitate extraction of the object's contour, allowing for the area calculation.

@edrti With the suggestion of ev-mp, did you get it through? Looking forward to your update. Thanks!

@edrti Could you please update? Thanks!

@edrti  If no other questions, will close this. Thanks!

Any chance of getting some more info on how the edge maps are created? Will it see edges when surfaces are similar?


Using variables multiple times with the MongoDB backend is broken

Queries where one Variable is used multiple times (e.g. rdf:type(A,A) ) result in an error message when run via the mongolog backend.
Example in the knowrob terminal on commit 787875e44640d64b9fd11d1bebd9a10c0f1627ce:
$ ./knowrob-terminal --config-file ../tests/settings/mongolog-lpn.json
[14:25:39.743] [info] [KnowRob] static initialization done.
[14:25:39.743] [info] [KnowRob] Writing logs to /home/teddy/.knowrob/logs
Welcome to KnowRob.
For online help and background, visit http://knowrob.org/

?- rdf:type(A,A)
no.
[14:25:45.945] [warning] an exception occurred for graph query ((rdf:type(A,A))): BackendError: [mongo] cursor_error: Invalid $set :: caused by :: specification contains two conflicting paths. Cannot specify both 'v_VARS.A.val' and 'v_VARS.A.val': { v_VARS.A.val: { $cond: [ { $not: [ "$v_VARS.A.val" ] }, "$next.s", "$v_VARS.A.val" ] }, v_VARS.A.val: { $cond: [ { $not: [ "$v_VARS.A.val" ] }, "$next.o", "$v_VARS.A.val" ] } }..

PS: The named commit is on my fork and introduces a test case for this. If you want, i can make a PR for that.

I assume it only happens if the variable appears multiple times in a single predicate?

Yes, if it is in different predicates, it works.

So it seems somewhere in the mongo code is an iteration over all input variables of a predicate, it might be easy to skip any variable that has been already processed before


BUG:  The package name passed to find_package_handle_standard_args (PkgConfig)   does not match the name of the calling package (gazebo)

Describe the bug
As described below,
The package name passed to find_package_handle_standard_args (PkgConfig) does not match the name of the calling package (gazebo)
No package 'OGRE' found

To Reproduce
Following the webpage:   https://ms-iot.github.io/ROSOnWindows/ros2/nav2.html
D:\ros2prj\nav2_ws>call C:\opt\ros\galactic\x64\setup.bat
D:\ros2prj\nav2_ws>colcon build
[1.785s] root DEBUG Using proactor: IocpProactor
Starting >>> turtlebot3_msgs
Starting >>> dynamixel_sdk
Starting >>> turtlebot3_description
Starting >>> dynamixel_sdk_custom_interfaces
Starting >>> turtlebot3_cartographer
Starting >>> turtlebot3_navigation2
Starting >>> turtlebot3_teleop
Finished <<< turtlebot3_teleop [1.30s]
Finished <<< turtlebot3_cartographer [2.25s]
Finished <<< turtlebot3_navigation2 [2.30s]
Finished <<< dynamixel_sdk [2.56s]
Finished <<< turtlebot3_description [2.58s]
Starting >>> turtlebot3_gazebo
Finished <<< dynamixel_sdk_custom_interfaces [6.48s]
Starting >>> dynamixel_sdk_examples
Finished <<< turtlebot3_msgs [7.19s]
Starting >>> turtlebot3_node
Starting >>> turtlebot3_example
Starting >>> turtlebot3_fake_node
stderr: turtlebot3_gazebo
CMake Warning (dev) at C:/opt/ros/galactic/x64/Lib/site-packages/cmake/data/share/cmake-3.20/Modules/FindPackageHandleStandardArgs.cmake:438 (message):
The package name passed to find_package_handle_standard_args (PkgConfig)
does not match the name of the calling package (gazebo).  This can lead to
problems in calling code that expects find_package result variables
(e.g., _FOUND) to follow a certain pattern.
Call Stack (most recent call first):
C:/opt/ros/galactic/x64/Lib/site-packages/cmake/data/share/cmake-3.20/Modules/FindPkgConfig.cmake:70 (find_package_handle_standard_args)
C:/opt/ros/galactic/x64/Lib/cmake/gazebo/gazebo-config.cmake:31 (include)
CMakeLists.txt:23 (find_package)
This warning is for project developers.  Use -Wno-dev to suppress it.
Package OGRE was not found in the pkg-config search path.
Perhaps you should add the directory containing `OGRE.pc'
to the PKG_CONFIG_PATH environment variable
No package 'OGRE' found
Failed   <<< turtlebot3_gazebo [5.42s, exited with code 1]
Aborted  <<< dynamixel_sdk_examples [1.56s]
Aborted  <<< turtlebot3_example [1.22s]
Aborted  <<< turtlebot3_fake_node [2.27s]
Aborted  <<< turtlebot3_node [2.72s]
Summary: 7 packages finished [10.4s]
1 package failed: turtlebot3_gazebo
4 packages aborted: dynamixel_sdk_examples turtlebot3_example turtlebot3_fake_node turtlebot3_node
1 package had stderr output: turtlebot3_gazebo
3 packages not processed

Catkin workspace setup instructions

Clone locations
build command line
Launch command line

Environment information:

OS version: windows 10 + ROS2
Chocolatey Versions: choco list --local-only results,
Chocolatey v0.12.1
asio 1.12.1
bullet 3.17
chocolatey 0.12.1
chocolatey-core.extension <IP_ADDRESS>
chocolatey-windowsupdate.extension 1.0.4
cunit 2.1.3
eigen 3.3.4
KB2919355 1.0.20160915
KB2919442 1.0.20160915
KB2999226 1.0.20181019
KB3033929 1.0.5
KB3035131 1.0.3
log4cxx 0.10.0
make 4.3
python 3.8.3
python3 3.8.3
ros-galactic-desktop 202103<IP_ADDRESS>7070002-pre
shellcheck 0.8.0
tinyxml-usestl 2.6.2
tinyxml2 6.0.0
vcredist140 14.31.31103
vcredist2010 10.0.40219.32503
vcredist2013 12.0.40660.20180427
vcredist2015 14.0.24215.20170201

extra info
Clearly OGRE was there in
C:\opt\ros\galactic\x64\Lib\OGRE
C:\opt\ros\galactic\x64\include\OGRE
what happened?

Hi there,
Thank you for the issue and the chocolatey logs. I see that you are using the galactic build. This has not been officially released for chocolatey. Is there a specific feature of galactic that you need? If not, the ros-foxy-desktop release is fully supported


DatabaseException(no such column: created_at (code 1)

I'm testing migrations and I'm getting this exception after adding createdAt column.
class SearchHistory extends Table {
  IntColumn get id => integer().autoIncrement()();

  TextColumn get word => text()();

  DateTimeColumn get createdAt => dateTime().nullable()();
}

 @UseMoor(tables: [SearchHistory])
class TdkDatabase extends _$TdkDatabase {
  // we tell the database where to store the data with this constructor
  TdkDatabase()
      : super(FlutterQueryExecutor.inDatabaseFolder(
            path: 'db.sqlite', logStatements: true));

  // you should bump this number whenever you change or add a table definition. Migrations
  // are covered later in this readme.
  @override
  int get schemaVersion => 2;

  @override
  MigrationStrategy get migration => MigrationStrategy(onCreate: (Migrator m) {
        return m.createAllTables();
      }, onUpgrade: (Migrator m, int from, int to) async {
        if (from == 1) {
          // we added the createdAt property in the change from version 1
          await m.addColumn(searchHistory, searchHistory.createdAt);
        }
      });

...

I also tried to add current date as a default value to createdAt like this but this time I get this error:
DateTimeColumn get createdAt => dateTime().withDefault(currentDateAndTime)();
Cannot add a column with non-constant default

Thanks for filing an issue. I just tried to reproduce your example by

First creating the database without the createdAt column, schemaVersion = 1 and without overriding migration
Adding the column, re-running the build, bumping the schema version and copying your migration code

For me, that schema upgrade worked and the migration script ran. Setting the default to currentDateAndTime worked for me as well. On which device did you test the app? It might be an outdated sqlite version, although the sql generated by moor should be supported by older versions as well.

Thanks for looking into it. I skipped migration part for now but I'll try to create a minimal example soon and share the results with you.
Device: LG G5 Android 8.0.0
moor_flutter: ^2.0.0
moor_generator: ^2.0.1

Any update on this? I'm running the same issue on Xiaomi k20 (Android 9)

I've never been able to reproduce this myself, but if you can reproduce this with a small example I'd be glad to take a look.

I don't know how to reproduce it, but I think this is related https://github.com/simolus3/moor/issues/184
I must provide more information soon

So I made a update on my app (where I disabled the automated backup made by Android) and my users says that the bug was fixed. Looks like it was caused by the old version of my database (as said on #184 )

@pedromassango Did you have to also write any migrations for that before doing this -> (where I disabled the automated backup made by Android) , I am curious

I faced this issue too.
Initially my schemaVersion is 10. I add a new column and run  flutter pub run build_runner build. After that I increase the version to 11, and write the migration code. But I still get Unhandled Exception: DatabaseException.
It still requires me to uninstall and re-install.

It fixed.
I use this  if (from <=11)

I had the same issue.
I use the encrypted version.
  drift: ^1.7.0
  sqlcipher_flutter_libs: ^0.5.0

Added to a Table:
  DateTimeColumn get updated_at => dateTime().nullable().withDefault(currentDateAndTime)();
Migration:
         await m.addColumn(activityEntries, activityEntries.updated_at);
However, I gott the error:
Drift: Sent ALTER TABLE activity_entries ADD COLUMN updated_at INTEGER NULL DEFAULT (strftime('%s', CURRENT_TIMESTAMP)); with args []
E/flutter (31395): [ERROR:flutter/lib/ui/ui_dart_state.cc(198)] Unhandled Exception: SqliteException(1): Cannot add a column with non-constant default
E/flutter (31395):   Causing statement: ALTER TABLE activity_entries ADD COLUMN updated_at INTEGER NULL DEFAULT (strftime('%s', CURRENT_TIMESTAMP));
E/flutter (31395): #0      DatabaseImpl.execute (package:sqlite3/src/ffi/impl/database.dart:94:9)
E/flutter (31395): #1      Sqlite3Delegate._runWithArgs (package:drift/src/sqlite3/database.dart:108:11)
E/flutter (31395): #2      Sqlite3Delegate.runCustom (package:drift/src/sqlite3/database.dart:122:11)
E/flutter (31395): #3      _BaseExecutor.runCustom.<anonymous closure> (package:drift/src/runtime/executor/helpers/engines.dart:109:19)
E/flutter (31395): #4      _BaseExecutor._synchronized (package:drift/src/runtime/executor/helpers/engines.dart:55:20)
E/flutter (31395): #5      _BaseExecutor.runCustom (package:drift/src/runtime/executor/helpers/engines.dart:105:12)
E/flutter (31395): #6      DatabaseConnectionUser.customStatement.<anonymous closure> (package:drift/src/runtime/api/connection_user.dart:407:23)
E/flutter (31395): #7      DatabaseConnectionUser.doWhenOpened.<anonymous closure> (package:drift/src/runtime/api/connection_user.dart:160:64)
E/flutter (31395): #8      _rootRunUnary (dart:async/zone.dart:1434:47)
E/flutter (31395): #9      _CustomZone.runUnary (dart:async/zone.dart:1335:19)
E/flutter (31395): <asynchronous suspension>
E/flutter (31395): #10     MyDatabase.migration.<anonymous closure> (package:myApp/db/db_classes.dart:3299:10)
E/flutter (31395): <asynchronous suspension>
E/flutter (31395): #11     GeneratedDatabase.beforeOpen.<anonymous closure> (package:drift/src/runtime/api/db_base.dart:116:9)
E/flutter (31395): <asynchronous suspension>
E/flutter (31395): #12     DelegatedDatabase._runMigrations (package:drift/src/runtime/executor/helpers/engines.dart:368:5)
E/flutter (31395): <asynchronous suspension>
E/flutter (31395): #13     DelegatedDatabase.ensureOpen.<anonymous closure> (package:drift/src/runtime/executor/helpers/engines.dart:336:7)
E/flutter (31395): <asynchronous suspension>
E/flutter (31395): #14     NonNullableCancellationExtension.resultOrNullIfCancelled (package:drift/src/runtime/cancellation_zone.dart:62:14)
E/flutter (31395): <asynchronous suspension>
E/flutter (31395): #15     QueryStream.fetchAndEmitData (package:drift/src/runtime/executor/stream_queries.dart:306:20)
E/flutter (31395): <asynchronous suspension>
E/flutter (31395):

Tested on Android Emulator Google Pixel 3a
The project I am working on is using moor for years, not sure if at some point I messed up with the SQL library, but the pubspec doesn't include any more than the dependencies recommended.

@apoleo88 That's an interesting error. I was afraid it may have have been introduced by a recent sqlite3 version, but that statement works for me with the latest sqlite3 and sqlcipher. I'm not sure how to take a better look at what's going on without more details. Is there more you could share (how you open the database, other dependencies?).

Thank you for your fast reply and interest : )
I tried to reproduce it but I have not been successful...
Is there any place where I should check for weird overriding I could have done in the past?
I don't use other dependencies that use SQL.
In my main.dart
import 'package:sqlite3/open.dart';
void main() async {
  ..
  open.overrideFor(OperatingSystem.android, () => DynamicLibrary.open('libsqlcipher.so'));
  ..
}

Other dependencies:
dependencies:
  drift: ^1.7.0
  sqlcipher_flutter_libs: ^0.5.0
  path_provider: ^2.0.11
  path: ^1.8.2

dependency_overrides:
  analyzer: ^4.0.0

dev_dependencies:
  build_runner: ^2.1.11
  build_resolvers: ^2.0.9
  source_gen : ^1.2.2

I use these settings:
targets:
  $default:
    builders:
      drift_dev:
        options:
          write_from_json_string_constructor: true
          mutable_classes: true

import 'package:drift/drift.dart';
import 'package:drift/native.dart';

LazyDatabase _openConnection({String databasePath}) {
  return LazyDatabase(() async {
    driftRuntimeOptions.dontWarnAboutMultipleDatabases = true;

    final file = File(databasePath);
    String db_key = await getKey('masterKey');
    return NativeDatabase(file, logStatements: true,
        setup: (rawDb) async {
          assert(_debugCheckHasCipher(rawDb));
          rawDb.execute("PRAGMA key = '"+ db_key +"';");
        });
  });
}
bool _debugCheckHasCipher(database) {
  return database.select('PRAGMA cipher_version;').isNotEmpty;
}

Oke

Siap
Siap
Siap

Siap
Siap
Siap
Siap
Siap
Siap


Add info on GPU hardware discovery and updates to quickstarts

Closes #137
Description

Added info on GPU hardware discovery to both quickstarts.
Previously the all-in-one make target has been updated to work for ODH v2.*. I moved this information from quickstartV1 to quickstartV2.
[Question] Should I bring back the all-in-one make target specific to ODH v1?

How Has This Been Tested?

Manual Test
Merge criteria:

[x] The commits are squashed in a cohesive manner and have meaningful messages.
[x] Testing instructions have been added in the PR body (for PRs involving changes that are not immediately obvious).
[x] The developer has manually tested the changes and verified that the changes work

/lgtm

seems nobody else have any comment, merging
/approve


Don't merge it, just for review, Make create usernames

after click "create account" we get redirected to a page to fill in usernames, email, and password, after click "create account" again, user are redirected to home page with tabs.

maybe it can be merged


Dialog box text formatted incorrectly?

So I tried this out on KDE on Wayland and doing a basic message dialog no matter what I put in for the message it's malformed:

message code
MessageDialog::new()
      .set_type(MessageType::Error)
      .set_title("Fatal Error")
      .set_text(msg)
      .show_alert()
      .unwrap();

I'm having this error too.

I think the issue might be here:
https://github.com/balthild/native-dialog-rs/blob/d2ddd443f8c01e92dc22cc8132159c1b9598eaca/src/dialog_impl/gnu/message.rs#L56
/// See https://github.com/qt/qtbase/blob/2e2f1e2/src/gui/text/qtextdocument.cpp#L166
fn convert_qt_text_document(text: &str) -> String {
    text.replace('&', "&")
        .replace('<', "<")
        .replace('>', ">")
        .replace('"', """)
        .replace('\n', "
")
        .replace(' ', "&nbsp")
        .replace('\t', " ")
}

Perhaps removing that method would do the trick? It doesn't seem to be necessary in Rust.

I think the issue might be here:
https://github.com/balthild/native-dialog-rs/blob/d2ddd443f8c01e92dc22cc8132159c1b9598eaca/src/dialog_impl/gnu/message.rs#L56
/// See https://github.com/qt/qtbase/blob/2e2f1e2/src/gui/text/qtextdocument.cpp#L166
fn convert_qt_text_document(text: &str) -> String {
    text.replace('&', "&")
        .replace('<', "<")
        .replace('>', ">")
        .replace('"', """)
        .replace('\n', "
")
        .replace(' ', "&nbsp")
        .replace('\t', " ")
}

Perhaps removing that method would do the trick? It doesn't seem to be necessary in Rust.

Another person mentioned in a pull request that it seems kdialog does not use this formatting anymore. Upon removing this function call yes I can confirm it solved the issue for me.

If you're referring to #42, I made that PR 😆

Hello! I'm trying to find where and when kdialog changed its behavior, but I find strangely that the behavior should have not been changed. The text preprocessing function in kdialog does almost nothing (https://github.com/KDE/kdialog/blame/master/src/utils.cpp#L46), the message box is kdialog is just a KMessageBox under the hood (https://github.com/KDE/kdialog/blame/master/src/kdialog.cpp#L515), and KMessageBox uses QLabel to display the text (https://github.com/KDE/kwidgetsaddons/blame/master/src/kmessagebox.cpp#L219) - all these code remains unchanged in recent years, as git blame shows. It is really strange that the behavior is not consistent. I'm still trying to figure it out...

Hello! I'm trying to confirm where and when kdialog changed its behavior so that I could escape the text or not for different versions of kdialog. However, I find strangely that the behavior should have not been changed.
The text preprocessing function in kdialog does almost nothing (https://github.com/KDE/kdialog/blame/master/src/utils.cpp#L46), the message box is kdialog is just a KMessageBox under the hood (https://github.com/KDE/kdialog/blame/master/src/kdialog.cpp#L515), and KMessageBox uses QLabel to display the text (https://github.com/KDE/kwidgetsaddons/blame/master/src/kmessagebox.cpp#L219) - all these code remains unchanged in recent years, as git blame shows. It is really strange that the behavior is not consistent.
I'm still trying to figure it out...

Do you remember roughly which version or when kdialog did have that behavior?

Do you remember roughly which version or when kdialog did have that behavior?

Yes. In fact, I have a Ubuntu 20.04 VM now (thankfully I didn't delete it), and the kdialog in it is 19.12.3.

Do you remember roughly which version or when kdialog did have that behavior?

Yes. In fact, I have a Ubuntu 20.04 VM now (thankfully I didn't delete it), and the kdialog in it is 19.12.3.

What version of Qt is it running? and it looks like its KDE no?

Yes, it's KDE.
KDE Plasma: 5.18.8
KDE Framework: 5.68.0
Qt: 5.12.8

It should be OK to just remove the escape now, and add it back after figuring it out.
Also, I think I'd better to ask some KDE devs...

Edit: Moreover, do we want to bother supporting older versions or tell users that they'll have to use say version 22.x.x (22 is the major version I'm running). Depending on how old it is it might not be worth the time investment to figure out which version this was changed in.

It should be OK to just remove the escape now, and add it back after figuring it out.
Also, I think I'd better ask some KDE devs...

I agree, however, it should be noted that some formatting does still work. For example bold still works just fine.

I also find that < and > still works. They should be escaped too, as the API of the crate is designed to display the text as-is and don't expect <> to become HTML tags.

I also find that < and > still work. They should be escaped too, as the API of the crate is designed to display the text as-is and don't expect <> to become HTML tags.

All this formatting makes me wonder if we should make our own formatting system of some kind and convert it on a per-platform basis.

Edit: Moreover, do we want to bother supporting older versions or tell users that they'll have to use say version 22.x.x (22 is the major version I'm running). Depending on how old it is it might not be worth the time investment to figure out which version this was changed in.

It should be OK to just remove the escape now, and add it back after figuring it out.
Also, I think I'd better ask some KDE devs...

Have you been able to get in contact with KDE devs about which version this might be appearing in?

I fired a post on the KDE fourm just now. Hope there would be devs see and answer it.

I fired a post on the KDE fourm just now. Hope there would be devs see and answer it.

it appears that's the wrong place for the question, as their forums have since moved to https://discuss.kde.org/

I fired a post on the KDE fourm just now. Hope there would be devs see and answer it.

have you been able to get an answer yet? I tried to check the discussion myself but it appears I don't have access to it as of late.

No. Nobody has answered yet.
https://forum.kde.org/viewtopic.php%3Ff=225&t=177742.html

No. Nobody has answered yet.
https://forum.kde.org/viewtopic.php%3Ff=225&t=177742.html

it might be better than to ship it with the patch just for versions <=19 and if users who use 20/21 run into issues they raise a bug report and it gets patched accordingly then.

Fine. I have published 0.6.4 just now.

I posted a question on the new KDE forum, and a KDE dev pointed out that this change might be caused by Qt 5 -> 6 upgrade.
Also, If there's  sorrunding, the markups take effect again.
https://discuss.kde.org/t/documentation-about-the-xml-entity-escape-used-by-kdialog/6652/2

I just ran into this. Adding some info in case it helps:
I reproduced it using kdialog 19.12.3 on Ubuntu 20.04.3 with GNOME 3.36.8. I also got a report about this from someone using kdialog 24.02.1 onOpenSUSE Tumbleweed.
To reproduce, I modified the first tour example message to add \n\nAnother line, then run XDG_CURRENT_DESKTOP=KDE cargo run --example tour.

version
commit
output

0.7.0
4b0b159

0.6.4
dcb7930

0.6.3
c874958


Make it possible to use lock-protected state in MTRDevice_Concrete's description.

We need _descriptionWhileLocked for use from places where the lock is already held.

Per conversation with @jtung-apple we came up with a less brittle approach: have any state description needs be stored separately, protected by a separate lock, and get updated while both that lock and the overall state lock are held.


Login  encrypted password

I want to make a code in which user enter username and password if it is matched with predefined name and password then user logged in otherwise not user can enter incorrect password only 3 times after than he/she will have to wait for 3 sec to again try login password or name
please assign ,me this

In this issue also i have to put time complexity and space complexity?

I tried to make pr but it has shown that permission denied why ?

please review my pr i made it 5 days ago but till now none reviw this


Revamped Ledger support

In addition to the old U2F transport, Nault (for web) now supports 3 additional transports: WebHID, WebUSB & WebBluetooth. Nault will automatically detect the best transport of the 3 USB-modes supported by the browser and OS and use it when communicating with the ledger. Thus, there are no more annoying popups or short timeouts on modern browsers: Edge, Chrome, Opera, Brave, Android Chrome & Samsung Internet. And virtually all OSes (except iOS).
The detection is based on actual browser support and not heuristics, which means that if Firefox or Safari suddenly start supporting Bluetooth or WebUSB, it will start working automatically with no further code changes.
For Nault Desktop USB works well already, but I have added Bluetooth support here too with Node-BLE. Unfortunately I'm unable to build the desktop version for some reason so this has been coded blind.
The Ledger Github library reports stability issues with WebUSB on Windows. I have NOT been able to reproduce any stability issues with WebHID nor WebUSB. They seem to function exactly the same from my testing, so not sure if we should prefer WebHID on Windows or not? I had this on initially, but currently WebUSB is preferred on all OSes.
Known Issues:
When the ledger is locked, it is reported as disconnected by Nault. Upon unlocking it seems to still not be able to connect and an exception is thrown in the ledger library. The fix is fairly simple though, just close and reopen the Nano app on the Ledger itself. I have added this tip to the error notifications so all in all it is not a big deal.
PS: I don't have a Ledger X so the Bluetooth support is untested.
Closes #145 and closes #13

Amazing revamp @aleksre!
I will test carefully both web and desktop as soon as possible. Don't have a Ledger X either but will try to find someone who does.

Thanks. I downloaded the desktop release that was built by github, and unfortunately the bluetooth support crashes deep within the ledger library. Oh well. I'll have a look at it later, but we may just have to disable bluetooth support for the desktop release. Node-ble is labeled as experimental after all.

Interesting. Did any error message pop up? I assume this was also tested on Android. Is it possible to test on a PC with Chrome and the console open? That might give a clue as to what is wrong.

Interesting. Did any error message pop up? I assume this was also tested on Android. Is it possible to test on a PC with Chrome and the console open? That might give a clue as to what is wrong.

Android yes. The only error was in Nault that it couldn't detect it. And it kept opening up ledger live instead even when it was closed according to the tester. He can probably test on PC coming days. I'll await the results.

If he got 'Unable to connect to the Ledger device.', It means it reached the timeout without getting the config, or that the config failed on line 324.
Config should only fail if the wrong app is open according to docs. There is a chance the nano app does not support bluetooth at all though, since we are probably the first to test this. The tester should at least make sure he has the latest version of the nano app installed.
It is also possible it just took longer than 2,5 seconds to connect. I'll increase the timeout just in case. But console will give more info.

Got this from the tester below. Still no luck but I would say that we release this now anyway and possibly solve later once one of us have a Ledger X to debug. This PR makes it much better than before and everthing that worked before works now too.
” Trying it on a chromebook and still hitting issues.  Stuck at "Checking for Ledger Device" after selecting it for pairing and confirming the pairing request ”


ci: Add HNS restart to Windows CNIv1 in Load Test Pipeline

Reason for Change:

Adds HNS coverage to windows cniv1 in the load test pipeline.
Issue Fixed:

Requirements:

[x] uses conventional commit messages

[ ] includes documentation
[ ] adds unit tests
[x] relevant PR labels added

Notes:

/azp run CNI Load Test


Ensure archive file index and update time are not cached

Noticed today that the archive update time was correct on the API but it was only serving entries up to the previous date (2022-11-17 and 2022-11-16, respectively). This was corrected after manually restarting the API.

Encountered the same issue today: update time was correct but the file_index had not updated. Could try using requests rather than read_csv to load the file index, or could make the loading process more verbose to detect possible issues.

The issue seems to have resolved itself, as the API is now serving the file index from last night. If it is being cached, which it shouldn't be, it at least seems to be expiring eventually.

Despite both files not supposing to be cached, it seems that the update time always updates before the index, leading to an awkward mismatch. One solution would be to fetch the files directly from S3 using an AWS token. An alternative would updating the headers on python requests to see if there is any effect, since if I request the file index in my browser now, I get the up-to-date version, not the version currently displayed on the API right now.


config: Enable titan for newly created instance

What is changed and how it works?

Issue Number: Ref #16245

What's Changed:
Enable titan for newly created instance

Related changes

[ ] PR to update pingcap/docs/pingcap/docs-cn:
[ ] Need to cherry-pick to the release branch

Check List
Tests

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

Side effects

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

Release note

Enable titan for newly created instance

/merge

/hold

/test

/merge

/unhold

/merge


Add the ability to specify unlimited for individual resources

This adds the ability for Unlimited to be more granularly set per resource.
Checklist

[ ] The title of this PR would make a good line in Acorn's Release Note's Changelog
[ ] The title of this PR ends with a link to the main issue being address in parentheses, like: This is a title (#1216). Here's an example
[ ] All relevant issues are referenced in the PR description. NOTE: don't use GitHub keywords that auto-close issues
[ ] Commits follow contributing guidance
[ ] Automated tests added to cover the changes. If tests couldn't be added, an explanation is provided in the Verification and Testing section
[ ] Changes to user-facing functionality, API, CLI, and upgrade impacts are clearly called out in PR description
[ ] PR has at least two approvals before merging (or a reasonable exception, like it's just a docs change)

@keyallis @thedadams There was an edge case the original code you reviewed did not account for. I put it into a separate commit with some unit tests. Please let me know what you think.


Parallel Letter Frequency Tests - reflect.DeepEqual behaving weirdly.

Depending on implementation the testcase TestConcurrentFrequency fails on "equal" results, because reflect.DeepEqual returns false.
Plain repeated execution of tests makes them sometimes fail, sometimes not.
Both a quick selfimplemented IsEqual method and cmp.Diff (github.com/google/go-cmp) show no differences (in any execution).
Interestingly, the example implementation from the .meta folder works every time..
I've tried with varied ways of initialization for FreqMap.
This is an example that often fails (if needed i can provide others):
func ConcurrentFrequency(s []string) FreqMap {
        var wg sync.WaitGroup
	wg.Add(len(s))

	maps := make(chan FreqMap, len(s))
	for _, text := range s {
		go func(t string) {
			maps <- Frequency(t)
			wg.Done()
		}(text)
	}
	m := <-maps
	go func() {
		for fMap := range maps {
			for k, v := range fMap {
				m[k] += v
			}
		}
	}()
	wg.Wait()
	close(maps)
	return m
}

wild guess: maybe it depends on which map gets send through the channel first?
i've extended the testcases with a bit of logging, see:
func TestConcurrentFrequency(t *testing.T) {
	seq := OriginalFrequency(euro + dutch + us)
	con := ConcurrentFrequency([]string{euro, dutch, us})
	if !reflect.DeepEqual(seq, con) {
		t.Log("Original:")
		t.Logf("%#v", seq)
		t.Log("Concurrent:")
		t.Logf("%#v", con)
		t.Log("IsEqual:")
		t.Logf("%v", IsEqual(seq, con))
                t.Logf("%s", cmp.Diff(seq, con))
		t.Fatal("ConcurrentFrequency wrong result (-want +got)")
	}
}

and here's the IsEqual method
func IsEqual(a FreqMap, b FreqMap) bool {
	if a == nil {
		return b == nil
	}
	for k, v := range a {
		if b[k] != v {
			return false
		}
	}
	return len(a) == len(b)
}

here's an example output of that:
--- FAIL: TestConcurrentFrequency (0.00s)
    parallel_letter_frequency_test.go:57: Original:
    parallel_letter_frequency_test.go:58: letter.FreqMap{10:21, 32:119, 33:1, 39:5, 44:16, 45:1, 46:3, 59:2, 63:2, 65:2, 66:1, 68:2, 69:2, 70:2, 71:2, 72:3, 75:1, 77:2, 78:1, 79:5, 80:1,
84:1, 87:6, 90:1, 97:47, 98:16, 99:7, 100:32, 101:100, 102:10, 103:22, 104:34, 105:42, 106:5, 107:7, 108:32, 109:10, 110:50, 111:29, 112:7, 114:50, 115:38, 116:55, 117:19, 118:11, 119:13, 121:9, 235:1, 246:2, 252:2}
    parallel_letter_frequency_test.go:59: Concurrent:
    parallel_letter_frequency_test.go:60: letter.FreqMap{10:21, 32:119, 33:1, 39:5, 44:16, 45:1, 46:3, 59:2, 63:2, 65:2, 66:1, 68:2, 69:2, 70:2, 71:2, 72:3, 75:1, 77:2, 78:1, 79:5, 80:1,
84:1, 87:6, 90:1, 97:47, 98:16, 99:7, 100:32, 101:100, 102:10, 103:22, 104:34, 105:42, 106:5, 107:7, 108:32, 109:10, 110:50, 111:29, 112:7, 114:50, 115:38, 116:55, 117:19, 118:11, 119:13, 121:9, 235:1, 246:2, 252:2}
    parallel_letter_frequency_test.go:61: IsEqual:
    parallel_letter_frequency_test.go:62: true
    parallel_letter_frequency_test.go:63: ConcurrentFrequency wrong result (-want +got)
FAIL
exit status 1
FAIL    letter  0.052s

go version
go version go1.16.5 windows/amd64

Regards
jd
PS: On another note i want to say a huge thank you to everyone who contributes to exercism. It's an awesome platform!

nevermind this, i found my error 🙈


Missing MarkLogic

Hi Igor. Consider adding MarkLogic as a document DB with RDF and text search all integrated (also geospatial). Security/enterprise focus.
Summary:  http://www.zdnet.com/article/marklogic-9-launched-with-big-data-in-mind/
It runs Healthcare.gov, a bunch of banks, publishers, etc. Hundreds of clients, 15 years old.

@damonfeldman thank you for the suggestion. If you think this should be added please create a PR.


newer FEIT WiFi dimmer switch from Costco 06.Oct.2022

I am clearing up my old notes and private messages/emails and I've found this dump, described by user as newer FEIT WiFi dimmer switch from Costco
newer FEIT WiFi dimmer switch Costco 06 Oct 2022.zip
It's a partial dump, so I don't know if it will be any use for you, so let me know if posting partial dumps here makes any sense.

Unfortunately, this is too incomplete, nothing I can do with this dump.  Doesn't even seem to extract the app partition correctly.  Closing this ticket since is unlikely you'll be able to get a corrected dump.

Hello, can you use the following dump? I just took this dump today for the FEIT dimmer switch from Costco and saw this post when going to add a new issue.
ltchiptool_bk72xx_2023-06-10_12-12-29_Feit_Dimmer_SW.zip

not sure this is exactly the same device since i cant read the number on the chip but i got a full dump from the bk7231n version through soldered serial
https://www.feit.com/collections/smart-controls/products/smart-wi-fi-dimmer-3-pack-dimsmart-3-can
feit-dimsmart-3-can-bk7231n.zip

@edwwardk Yeah, it looks like this device ships with two different modules, one BK7231T, the other BK7231N (like yours).  We had a dump for a BK7231T model, but I have now added your N model as Feit DIM-WIFI Dimmer Switch bk7231n v2.0.2 and renamed the other to Feit DIM-WIFI Dimmer Switch bk7231t v1.1.71 to avoid confusion.

@Cossid not sure this is exactly the same device since i cant read the number on the chip in the picture but i got a full dump from the bk7231n version from canadian costco recently through soldered serial
https://www.feit.com/collections/smart-controls/products/smart-wi-fi-dimmer-3-pack-dimsmart-3-can
feit-dimsmart-3-can-bk7231n.zip

@edwwardk was your N version using patched firmware? I was wondering if I can cloudcut these or do I have to serial flash. Also wondering if 3rd party firmware allowed control of the light in the toggle switch itself?

@Cossid not sure this is exactly the same device since i cant read the number on the chip in the picture but i got a full dump from the bk7231n version from canadian costco recently through soldered serial
https://www.feit.com/collections/smart-controls/products/smart-wi-fi-dimmer-3-pack-dimsmart-3-can
feit-dimsmart-3-can-bk7231n.zip

@edwwardk was your N version using patched firmware? I was wondering if I can cloudcut these or do I have to serial flash. Also wondering if 3rd party firmware allowed control of the light in the toggle switch itself?

As long as you can get it into AP mode, the 2.0.2 firmware on this device was vulnerable, hence a profile was added for it.
For TuyaMCU devices, the button presses are handled by the TuyaMCU itself, and should be unchanged regardless of what firmware is installed.  If you are referring to the LED status light, that appears exposed via DPID 101 as off/low/high (based on assumptions), but probably no control of the "brightness" led strip.

@Cossid. To clarify the led strip would function as it does with the stock firmware? Best guesses if the firmware displayed here is vulnerable. I'm guessing advice will be too try.

Yes, the brightness strip would be unchanged by the installed firmware as well.
Unfortunately, 2.1.17 is patched unlike the 2.0.2 firmware.  You won't be able to use CloudCutter for that, only serial flashing.

Is there a pattern to the numbering for the firmware? I thought I didn't see it listed in the patched firmware list... Is it the last 3 digits?

It's the Main Module version, 2.1.17 has been on the list for a while now.


HexGrid now can create Dregions for Subbarrel pattern code

I have no intention of merging with master at present.

I do not understand the difference between what I see locally and what Seb's comments refer to. So I will wait and just work locally at present.

It seems like you haven't added your local version of the files to the feature/dregions branch. What does git status tell you?

On branch feature/dregions
Your branch is up-to-date with 'origin/feature/dregions'.
Changes not staged for commit:
(use "git add ..." to update what will be committed)
(use "git checkout -- ..." to discard changes in working directory)
modified:   tests/testVisual.cpp
Untracked files:
(use "git add ..." to include in what will be committed)
.CMakeLists.txt.swp
boundaries/barrelAE.svg
boundaries/barrelBoundary.svg
boundaries/trial1.svg
diff.txt
err
src/
no changes added to commit (use "git add" and/or "git commit -a")
On Tue, 9 Jun 2020 at 20:28, Seb James<EMAIL_ADDRESS>wrote:

It seems like you haven't added your local version of the files to the
feature/dregions branch. What does git status tell you?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/ABRG-Models/morphologica/pull/26#issuecomment-641523705,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AANK24TG3RVTGJUCPJOBD3DRV2EPRANCNFSM4NZWES6Q
.

Given that git status output, I would be very surprised if the files in your local version of the code were different from the files on the morphologica branch feature/dregions
You could clone a fresh copy of morphologica, change it to feature/dregions and try to verify:
diff -Naur path/to/original/morphologica/morph/HexGrid.h path/to/newlycloned/morphologica/morph/HexGrid.h

Hi Seb, I am trying to do as you suggest, i.e. I created a clean directory, downloaded morphologica, switched to feature/dregions and sent a pull request. I get the message that "John Brooke wants to merge commits with master..." I left it there because until this is sorted I dont want to cause hassle by merging with the master on origin. I think that the message means that my local version of master will be merged and that this will not affect the origin version. Is this correct, I really dont want to cause you extra work by undoing my mistakes,

Hi John, I've changed the code a bit to remove your last wrapper function. I committed ddc0823 which is uncontroversial. Then, take a look at f1bd937 - you'll see I employed the same idea with a second argument with a default value. You'll need to change your code to call setBoundary(bezcurvepath, false) instead of setBoundaryDRegion(bezcurvepath). If you're happy with this change, I will merge this pull request into master.

John has tested and so we're ready to merge this in.

Whoops, need to merge before closing

Sorted


Twitter can't see the card metadata

https://cards-dev.twitter.com/validator

I've fixed the robots.txt at http://f.benlk.com/robots.txt , but Twitter is relying on a cached version.


Bookmark.Read.All And Acronym.Read.All permissions not available for consent via Graph Explorer

Describe the bug
Following new permissions (Bookmark.Read.All, Acronym.Read.All) are currently not available in the Graph Explorer permissions explorer experience. This means customers can't use Graph Explorer for testing the search APIs.
How to Reproduce
To Reproduce
Steps to reproduce the behavior:

Go to 'permission picker' in graph explorer

Expected behavior
Bookmark.Read.All and Acronym.Read.All should be available in permission picker.
Screenshots

Desktop (please complete the following information):

Browser Edge

Additional context
Add any other context about the problem here.

Hey @ZChristine, I'll look into this.

Hey @ZChristine, I'll look into this.
Thank you for response. Feel free to let me know if more information is needed.

Hi @ZChristine , the update on permissions happens on the DevX API side, Graph Explorer simply consumes the permissions endpoint.
I'm closing this issue as the permissions are there now. Please test on your side and let me know if you see any anomalies. Thanks

@RabebOthmani  the problem got fixed. thanks


solve all the extension style complaints by just using prettier

instead of eslint screaming at you and me fixing all of your style issues somewhat manually, we'll just make the computer do it for you

I think I have an idea of what this will do, but just to clarify, what does this do?

Wow

The use of prettier is going to be godly, were finally going to have a way to have a unified style.

The code blocks in the docs may also need to be formatted, depending on the configuration.

I already use prettier


Allow specifying the encrypted AMI name as a command option

Add an --encrypted-ami-name option.  When the name is specified, pass it
through to the register_image() call.  Break out the maximum name length
into a constant.
Change-Id: I3cf20075137552ecdeb3edc12ab5d599386e7795

Found out that Python doesn't like len(None).  Closing this pull request to open another with the bug fixed.


Migration Test

This is a dummy issue to test the GitLab-to-Github migration behaviour
Acoular logo from migration repo:

made the issue confidential


Add the DynamoDB types keys to restricted chars

Added and released in v1.5.4 : https://github.com/Robinson04/StructNoSQL/commit/c0ba62ff84056264ed0a09817fc28bd600d1be14


Process mode not work on Windows10 (2004).

Hi.
I use process mode on Windows10 version 2004, but it's not work.
Somebody can help me?
C:\Users\Zan>docker run -it --isolation=process mcr.microsoft.com/windows:2004
docker: Error response from daemon: container f1ad66ad7573c52a861865ada2d7f44625641f6ae2f57682044d44c46f7419fe encountered an error during hcsshim::System::Start: context deadline exceeded.

Be aware that Windows 10, version 2004 has been out of support since Dec 2021.

Hey @dcantah, have you seen this before?

@CheaterScript are you experiencing this issue with other versions of Windows 10 as well? Could you provide me with more specifications of the Docker version you are using in your environment?

@CheaterScript I would also take a look at https://github.com/microsoft/Windows-Containers/issues/163, which should give you some additional clarity on your issue.
Closing, feel free to reach out if you have any other concerns.


Make cross_process use cloudpickle

Update cross_process to use cloudpickle, as it fails on Python 3.9+:
Example:
% METAL=1 MODEL=resnet python3 examples/mlperf/model_eval.py
eval resnet
Traceback (most recent call last):
  File "/Users/dhipke/git/tinygrad/examples/mlperf/model_eval.py", line 244, in <module>
    globals()[nm]()
  File "/Users/dhipke/git/tinygrad/examples/mlperf/model_eval.py", line 35, in eval_resnet
    x,ny = next(iterator)
  File "/Users/dhipke/git/tinygrad/extra/helpers.py", line 45, in cross_process
    p.start()
  File "/opt/homebrew/anaconda3/lib/python3.10/multiprocessing/process.py", line 121, in start
    self._popen = self._Popen(self)
  File "/opt/homebrew/anaconda3/lib/python3.10/multiprocessing/context.py", line 224, in _Popen
    return _default_context.get_context().Process._Popen(process_obj)
  File "/opt/homebrew/anaconda3/lib/python3.10/multiprocessing/context.py", line 288, in _Popen
    return Popen(process_obj)
  File "/opt/homebrew/anaconda3/lib/python3.10/multiprocessing/popen_spawn_posix.py", line 32, in __init__
    super().__init__(process_obj)
  File "/opt/homebrew/anaconda3/lib/python3.10/multiprocessing/popen_fork.py", line 19, in __init__
    self._launch(process_obj)
  File "/opt/homebrew/anaconda3/lib/python3.10/multiprocessing/popen_spawn_posix.py", line 47, in _launch
    reduction.dump(process_obj, fp)
  File "/opt/homebrew/anaconda3/lib/python3.10/multiprocessing/reduction.py", line 60, in dump
    ForkingPickler(file, protocol).dump(obj)
AttributeError: Can't pickle local object 'eval_resnet.<locals>.<lambda>'

Also, fix syntax errors in imagenet download script.

I also had to add the dependency to setup.py - added it to testing as the dependency isn't needed by core tinygrad, but can move if needed.

Cool. Test failure unrelated (my fault)


[TRI-1256] Framework: support for SvelteKit

Build support for SvelteKit into Trigger.dev
Please make sure to use Typescript for all code
Task 1 - SvelteKit Adaptor

[ ] Create a new folder in packages called svelteKit
[ ] Create the adaptor for SvelteKit. Use this Next.js adaptor code as reference when creating yours. Include all setup configurations to fully support the framework, e.g. Next.js requires adaptor support for both App and Pages routers.
[ ] Create a basic SvelteKit project that uses the adaptor in examples/svelteKit folder. Include a basic Job in Trigger.dev, e.g. a simple Job that just does a delay inside it. Screen grab the full Run dashboard page showing it successfully worked. Here are examples of how to do cross-project references in package.json and tsconfig.json.
[ ] Provide a screen grab of your terminal showing the Adaptor is working

Task 2 – Add a README.md file

[ ] Create a new README.md file inside the packages/svelteKit folder and copy in the contents from packages/nextjs/README.md. Adjust the wording to reference SvelteKit where needed, including updating the the URLs.

Task 3 – Write the documentation

[ ] Locate the manual-setup-svelteKit.mdx folder in /docs/_snippets/. Use this file to write your documentation, overwriting any contents of that file. Follow the structure of this Next.js example for reference when writing yours.
[ ] Update the table at the bottom of the client-adaptors.mdx page with the framework you’ve worked on.

Task 4 – Update the webapp onboarding

[ ] In the route.tsx page located in _app.orgs.$organizationSlug.projects.$projectParam.setup.svelteKit replace the <FrameworkComingSoon/> component with your new onboarding steps. Follow the same structure as the Next.js example when creating your own. Ignore the very top step for adding this framework to a new project, just focus on the steps to add it to an existing project (so don’t include the <RadioGroup/> toggle selector at the top). Make sure you also include the useProjectSetupComplete(); hook at the top of the page – this triggers a particle effect when the new job is successfully created and redirects to the Jobs list 🥳 .
[ ] In the FrameworkSelector.tsx file, add “supported” to the framework you’ve worked on.

TRI-1256

I already have ongoing work currently on this. I have the svelte kit adapter and the @trigger.dev/svelte package ready. Ran into a bug that slowed the development

/bounty $200

@Chigala yes please keep working on this 👍  – and i've added a full bounty to this issue regardless.


[BUG]: CoE does not consider Unpublished Model-Driven Apps

Describe the bug
CoE Flow to retreive Model-Driven Apps, only gets Published Model-Driven Apps. If a MDA is created but never published (like a lot are on default environnement because of citizen dev. tests) CoE doesn't collect neither the App nor the Maker.
Component (please tell us which flow or app you are experiencing issues with):

Core Solution
Admin | Sync Template v3 (Model Driven Apps)

To Reproduce
Steps to reproduce the behavior:

On Power Apps Portal, Create a Model-Driven Apps, but DONT PUBLISH IT
Open Admin | Sync Template v3 (Model Driven Apps) Flow
See all Model-Driven listed by "List Model-Driven Apps" action
See only "Published" App appears. (componentstate = 0)

Expected behavior
Would be nice to have Unpublished Model-driven Apps in CoE. On big companies (more than 100k users) a lot of citizen developpers try Power Apps on Default Environement, and create "Model-Driven" Apps without publishing it. These apps can't be used, makers are not collected in CoE.
Building solutions over CoE I like to use only data collected by CoE. I'am creating a clean up Flow for Model-Driven on Default environement, but can't use CoE data because all apps are not collected.
Additional context
Unpublished Model-Driven Apps on appmodules table can be retrieve using the following REST Method:
/api/data/v9.0/appmodules/Microsoft.Dynamics.CRM.RetrieveUnpublishedMultiple()?$select=appmoduleid,name,clienttype,createdon,modifiedon,componentstate,_createdby_value

Hello. I'm afraid this is known and not something we can fix because of the way the data is gathered.
If you are able to create a flow which finds and collects these, we would be happy to investigate your solution and perhaps incorporate it into the CoE. But to our knowledge, we cannot easily find these.
Duplicate of #312

I have build a flow that retrieve these unpublished MDAs, but I had to go through the HTTP connector.

Ah yes, I remember that being the back up plan now. Once you get it into a working state, if you'd like to share you are welcome to do so. And then we might be able to add it as natively integrated.
Note that if you should be able to add another flow which writes to your CoE tables, in other words you could write to the Apps table from this new flow you are creating, and then use the CoE tables for your reporting.

Closing out items without further action items


aws iam role naming clash

Role name is global in aws account. This causes naming clash when we try to create infrastructure with same name in different regions.
https://github.com/rohr-pipe/quoins/blob/master/kubernetes/node.tf#L202

This is resolved by #19


Make archived PDF compatible with PDF/A

Background: https://en.wikipedia.org/wiki/PDF/A
Should be possible with ghostscript, see https://stackoverflow.com/questions/1659147/how-to-use-ghostscript-to-convert-pdf-to-pdf-a-or-pdf-x
For validation, use http://docs.verapdf.org/cli/validation/

@tnier01 This has been open for a long while - and every student should get a little maintenance task from time to time - would you mind taking a go at this if you need a break from OJS?


Unable to Get to the Login Screen on OS X

OS: OS X El Capitan (V. 10.11.6)
Here are all the steps I took to get this bug. It could be an error on my part, but I just wanted to post it here in case it isn't.

The first step I took to run the electron app was forking and cloning the zulip-electron repo on github.
Next, I cd’d into the directory and ran npm install followed by npm start. There didn’t seem to be any errors until…
The app opened up on my desktop. For a second, the login screen with the github/google login button flashed onto my screen, but the window quickly turned white. I tried looking through the menus, and even changing the channel to chat.zulip.org, but it didn’t work either. Looking back at my terminal, it gave me this error.

#
# Fatal error in ../../v8/src/api.cc, line 1082
# Check failed: !value_obj->IsJSReceiver() || value_obj->IsTemplateInfo().
#
==== C stack trace ===============================
1: V8_Fatal
2: v8::Template::Set(v8::Local<v8::Name>, v8::Local<v8::Data>, v8::PropertyAttribute)
3: (anonymous namespace)::Init(v8::Local<v8::Object>, v8::Local<v8::Object>)
4: node::DLOpen(v8::FunctionCallbackInfo<v8::Value> const&)
5: v8::internal::FunctionCallbackArguments::Call(void (*)(v8::FunctionCallbackInfo<v8::Value> const&))
6: v8::internal::Builtins::InvokeApiFunction(v8::internal::Isolate, v8::internal::Handle<v8::internal::HeapObject>, v8::internal::Handle<v8::internal::Object>, int, v8::internal::Handle<v8::internal::Object>)
7: v8::internal::PrototypeIterator::AdvanceFollowingProxiesIgnoringAccessChecks()
8: 0x3a5dd5a06147

Here are some screenshots/gifs of what happens when using the app:
The blank screen I get after running npm start

Opening up Chrome Inspector yields few results

When I reloaded the page while open to the Devtron section of the Chrome Inspector

When I reloaded the page on the Network section. Showed that the web requests for Source Sans Pro were still pending

@zbreit18 hey, sorry for the late response as I was busy in exams.
BTW I have never encountered such errors. Could you please follow these steps -

update node to v6.3.1 + npm to 3.10.3
rm -rf node_modules && rm -rf app/node_modules
npm install
npm start
Let me know if it works.

Wow, I'm surprised fixing it was as simple as that. Looks like I was using the wrong version of node. Thanks for the help 👍.

@zbreit18 happy to help 😀

@akashnimare do you think we should include in the installation instructions documentation on getting the right version of node?
Also, do the bundled versions of the app come with a node install to handle this?

@timabbott updated installation instructions.

Also, do the bundled versions of the app come with a node install to handle this?

yes 😄


Unable to verify

endpoints.yml

#  wait_time_between_pulls:  10   # [optional](default: 100)

#Server which runs your custom actions.
#https://rasa.com/docs/rasa/custom-actions

action_endpoint:
  url: "http://localhost:5055/webhook"

# Tracker store which is used to store the conversations.
# By default the conversations are stored in memory.
# https://rasa.com/docs/rasa/tracker-stores

#tracker_store:
#    type: redis
#    url: <host of the redis instance, e.g. localhost>
#    port: <port of your redis instance, usually 6379>
#    db: <number of your database within redis, e.g. 0>
#    password: <password used for authentication>
#    use_ssl: <whether or not the communication is encrypted, default false>

#tracker_store:
#    type: mongod
#    url: <url to your mongo instance, e.g. mongodb://localhost:27017>
#    db: <name of the db within your mongo instance, e.g. rasa>
#    username: <username used for authentication>
#    password: <password used for authentication>

# Event broker which all conversation events should be streamed to.
# https://rasa.com/docs/rasa/event-brokers

#event_broker:
#  url: localhost
#  username: username
#  password: password
#  queue: queue
custom_whatsapp_connector.CustomWhatsAppInput:
  webhook_url: "http://mydomain:5056/webhooks/whatsapp/webhook"

#Also, I tried the below configurations
#custom_whatsapp_connector.CustomWhatsAppInput:
# webhook_url: "http://mydomain:5056/webhook"
#custom_whatsapp_connector.CustomWhatsAppInput:
# webhook_url: "http://mydomain/webhook"

credentials.yml
# This file contains the credentials for the voice & chat platforms
# which your bot is using.
# https://rasa.com/docs/rasa/messaging-and-voice-channels

rest:
#  # you don't need to provide anything here - this channel doesn't
#  # require any credentials

#facebook:
#  verify: "<verify>"
#  secret: "<your secret>"
#  page-access-token: "<your page access token>"

  whatsapp:
  auth_token: "my auth token from meta goes here"
  phone_number_id: "54555455"
  verify_token: "12349"

#slack:
#  slack_token: "<your slack token>"
#  slack_channel: "<the slack channel>"
#  slack_signing_secret: "<your slack signing secret>"

#socketio:
#  user_message_evt: <event name for user message>
#  bot_message_evt: <event name for bot messages>
#  session_persistence: <true/false>

#mattermost:
#  url: "https://<mattermost instance>/api/v4"
#  token: "<bot token>"
#  webhook_url: "<callback URL>"

# This entry is needed if you are using Rasa Enterprise. The entry represents credentials
# for the Rasa Enterprise "channel", i.e. Talk to your bot and Share with guest testers.
rasa:
  url: "http://localhost:5002/api"

Below is where I kept whatsapp.py

I tried below two variations, , but could not connect it with Meta, I think something is wrong with my webhook URL structure

Kindly help.

@thatcuteseller try with a https SSL certified URL and do let me know about your server location region, it behaves similar for Indian/Asian region sometimes

@thatcuteseller try with a https SSL certified URL and do let me know about your server location region, it behaves similar for Indian/Asian region sometimes

Yes, server is in India.
Need some help with this code block
custom_whatsapp_connector.CustomWhatsAppInput:
  webhook_url: "http://localhost:5056/webhook"

Could you tell me , what changes do I need to make in the above webhoob URL , say my domain is example.in?

@thatcuteseller try with a https SSL certified URL and do let me know about your server location region, it behaves similar for Indian/Asian region sometimes

@maharanasarkar The server is based in India .
I was getting "Failed to find input channel class for 'whatsapp'" , so I imported the classes into the rasa/rasa/core/channels/init.py file and also I created whatsapp.py in rasa/rasa/core/channels to avoid any path related issues.
Then I did $rasa run --enable-api --cors '*'
The rasa server did recognize whatsapp module this time and ran smoothly, but then on Meta, I am still not able to verify the webhook URL.
On Meta, I am using webhook as https://mydomain.in/webhooks/whatsapp/webhook since 5056 is an internal port, does not need to be mentioned in the webhook URL in production environment.
Could you tell me how to fix his issue , also here is the endpoints.yml , what changes do I ned to make in webhook_url:?
 custom_whatsapp_connector.CustomWhatsAppInput:
  webhook_url: "http://localhost:5056/webhook"

@maharanasarkar SSL, did the job!
Thank you!  It works!


Question: Would it be possible to offer an Unpair Action?

I would like to unpair the lock when pressing a button on the PCB.
Would it be possible to add a button entity to call the unpair action next to the component configuration?
That would be more convenient that recompiling ESPHome just to un-pair and then compile it again to re-pair.

Already solved


Long Question Response Delay and Frontend Update Issue

I am encountering a notable issue while running the ChainLit app with GPT-4. Specifically, when posing longer questions that require additional processing time, there is a delay in receiving a response from GPT-4. However, even after obtaining the response, the frontend at localhost:8000 does not reflect the updated answer. The delay in frontend update becomes more apparent with more complex queries.

Do you have a code example? I'd like to explore what is causing the delay.

@tpatel Here is a slightly artificial example sample where I see the issue triggered quiet often: large_response_demo.py
The initial message i used was this:

Generate a basic boilerplate API for a bookstore using FastAPI. Consider the following endpoints: create, delete, get_all_books, update.
The books should be stored in an in-memory dictionary, with id, author, publishing year, and title. Make sure to cover basic error handling and logging using the logger library.

Hope that helps.


do now show items marked as "Deleted" in Fedora

2018-08-29 14:18:05 - Fernando Reyes (Work notes)
The PIDs marked as "deleted" have been removed from the elasticsearch index.

this is fixed


chore(release): v0.7.0

:robot: I have created a release beep boop
0.7.0 (2023-03-05)
Features

add divider component & docs. (943c2c9)

Bug Fixes

tailwind: loader size shrink in flex container. (ae81dc3)
tailwind: loader spin position overflow. (7ae9e29)

Performance Improvements

button component font size. (35b615d)
loader flow-cross color for accessible. (681b7e3)

This PR was generated with Release Please. See documentation.

:robot: Release is at https://github.com/sira-design/sira/releases/tag/v0.7.0 :sunflower:


switch non-ascii unicode chars to images

triangles in collapsible, as well as the swap button
on some systems they don't show up

Is this misalignment of X within the rectangle part of the issue?

No, not the same, that's just another weird Safari rendering bug where it shifted part of the SVG downwards but not another part of it!
I fixed it earlier this afternoon: https://github.com/alan-turing-institute/demoland-web/pull/30/commits/55f0cdc5befa304bf7aebb74ad448b57fa921999


Update images in index.adoc when images for V3.1 available

Currently images for V3.0 are used to show the available docs. We should update them when the new images for V3.1 are published.

We are barely ın control in any of the source repositories now. When the images change in sources, they should change here.
If you meant the images that are in the main page here in this repository, these are just the cover pages. I will update those accordingly when the next versions releases, but I thought we were planning to replace having images for cover pages with having these coverpages be generated dynamically like the rest of the content. As so discussed in https://github.com/rwth-iat/aas-specs-antora/issues/12.

Solved in fcf0c7850be0872e9a39da1e985b391385aa55dc


🐛 Updated support email verification flow

refs https://github.com/TryGhost/Team/issues/584
The current support email verification flow uses an API endpoint as verification URL inside the emails. This is a bad pattern, and also has the side effect that it shows a JSON error if something goes wrong.
To fix this, this commit updates the whole flow to use the same pattern as newsletters:

You can update the members_support_address setting directly via the edit endpoint of settings.
Changes to that (and future 'guarded' email properties) are blocked and generate verification emails automatically.
When an email verification has been sent, the meta property sent_email_verification is set.

Other changes:

Underlying, the implementation of email verificaton has moved from the (old) members service to the settings BREAD service. This makes it easier to add extra email addresses in settings later on that are not related to 'members'.
Now you can update the members_support_address by updating the settings directly, so the updateMembersEmail endpoint is no longer needed and has been removed.
The SingleUseTokenProvider threw a UnauthorizedError error if a token was expired or invalid. Those errors are caught by the admin app, and causes it to do a page reload (making the error message and modals invisible). To fix that, I've swapped it with a validation error.

Future changes:

Existing emails that have been sent 24h before this change is applied, still use the validateMembersEmailUpdate API endpoint. This endpoint has not been removed for now, to not break those emails. In a future release, we should remove this.

Changes to admin: https://github.com/TryGhost/Admin/pull/2426

the updateMembersEmail endpoint is no longer needed and has been removed.

This is technically a breaking change. Can we reinstate it, but map it internally using the deprecation header to a settings update to trigger the new flow?

You are right. I readded the old endpoints ✅


How to create an NLP application using SpaCy

Proposed title of article
How to create an NLP application using SpaCy
Introduction paragraph (2-3 paragraphs):
Natural language processing (NLP) is the branch of artificial intelligence or AI—concerned with giving computers the ability to understand the text and spoken words in much the same way human beings can.
In natural language processing, human language is separated into fragments so that the grammatical structure of sentences and the meaning of words can be analyzed and understood in context. This helps computers read and understand spoken or written text in the same way as humans.
In this tutorial, we shall use Spacy to build a text classification model. Text categorization/text classification is the task of assigning predefined categories to documents. It involves Multilabel classification where we assign our dataset different labels to be used for classification.
We will build a model that is able to classify reviews into a positive or negative review
Key takeaways:

What is NLP.
Spacy installation.
Removing Stopwords from our dataset.
Lemmatizing of the dataset.
Building and training model using a machine learning algorithm.

References:
Please list links to any published content/research that you intend to use to support/guide this article.
Templates to use as guides

How To Guide Template
Software Review Template
Tutorial Template

Good afternoon and thank you for submitting your topic suggestion. @BRIAN721
Your topic form has been entered into our queue and should be reviewed (for approval) as soon as a content moderator is finished reviewing the ones in the queue before it.

Good afternoon @BRIAN721  and thank you for submitting your topic to the EngEd program.
After some careful consideration, it struck us that this topic may be a bit over-saturated throughout other blog sites and official documentations.
We typically refrain from publishing content that is covered widely on the net or other blogs. We're more interested in original, practitioner-focused content that takes a deeper dive into programming-centric concepts.
But in order to approve the topic, it has to serve value to the larger developer community at large.
An option and a great way to write this as an in-depth article and make it more add value to the greater developer community at large would be to walk the reader through the USE of methods and functions by building a unique, different, useful project.

We would love to learn your thought process behind the solution you arrived at using these concepts and topics.

That way a developer could see them in action.
As mentioned above - we believe this topic is widely covered on other blog sites.
The best way for students to build a great portfolio is by building what does not exist and what can provide the most value.


Internet Explorer : "Unhandled rejection: DataCloneError"

Link to PDF file (or attach file here):
https://media.kddi.com/extlib/pdf/iphone/service/anshin/safetyaccess/safetyaccess.pdf
Configuration:

Web browser and its version: IE 11
Operating system and its version: Windows 8.1
PDF.js version: 1.7 build 381
Is an extension: No

Steps to reproduce the problem:

Access to https://media.kddi.com/extlib/pdf/iphone/service/anshin/safetyaccess/safetyaccess.pdf and save it.
Load the pdf at http://mozilla.github.io/pdf.js/web/viewer.html with Internet Explorer.

What is the expected behavior? (add screenshot)
PDF is loaded successfully.
What went wrong? (add screenshot)
Only the first page is loaded and the other pages are not. In the console, you will see "Unhandled rejection: DataCloneError" warning.
Link to a viewer (if hosted on a site other than mozilla.github.io/pdf.js or as Firefox/Chrome extension):
It seems build 297 is fine but build 300 is bad. It may relate with the change described in
https://github.com/mozilla/pdf.js/pull/8064
Thank you in advance.

http://www.elecom.co.jp/support/manual/storage/hd/nas/linux-nas/nsr-6s/nsr-6s_series_amazon_v01.pdf
http://www.ymobile.jp/lineup/503hw/data/503hw_ug.pdf
are other examples.


Easi 2465/operational needs names trigger update

EASI-2465
Changes and Description

New Function to return a result set of Operational Needs to show if they are needed or not

previously, a cleared result would not set needed to NULL, this now will set it to NULL, if the new value is null

Migration to set needed for all existing models

How to test this change

Check that the need name changes have been updated as specified in the JIRA ticket
Make sure that the new configurations for the trigger logic in the possible operational need table matches the specs in the JIRA ticket.
Ensure that Operational Needs get set to needed / not needed as a result of this trigger

Calling the SQL Functions

If you want to explore the SQL functions individually, you can call them like this

        SELECT 	* FROM	GET_NEED_NEEDED('plan_ops_eval_and_learning',
                model_plan_idParam,
                (SELECT hstore(PPP) FROM plan_ops_eval_and_learning AS ppp WHERE ppp.model_plan_id = 'UUID HERE')

To see it for all models in the DB

    SELECT OpNeeds.*  FROM model_plan mp, GET_NEED_NEEDED_MODEL_PLAN(mp.id) OpNeeds

To see for an individual model

SELECT * FROM GET_NEED_NEEDED_MODEL_PLAN('915b9e0d-8ea5-439f-bc4a-f77291894e0f')

PR Author Review Checklist

[ ] Met the ticket's acceptance criteria, or will meet them in a subsequent PR.
[ ] Added or updated tests for backend resolvers or other functions as needed.
[ ] Added or updated client tests for new components, parent components, functions, or e2e tests as necessary.
[ ] Updated the Postman Collection if necessary.

PR Reviewer Guidelines

It's best to pull the branch locally and test it, rather than just looking at the code online!
Check that all code is adequately covered by tests - if it isn't feel free to suggest the addition of tests.
Always make comments, even if it's minor, or if you don't understand why something was done.

Note, there is an issue with the logic for the composite needs.  It is due to using the h_changed hstore for getting the vals. Will refactor to provide the changed columns, and also pass the new values of the row.


Use of keypress

Just an FYI, when using keypress, things like arrow keys don't work on a variety of browsers.  keydown does work.
http://bugs.jquery.com/ticket/7300

yeah you are correct, I will update, thank you!

updated to v0.0.6, updated event type to keydown


refactor: use date input type

The receny field will eventually get converted to a Date in the database. It's better to ask the specific date from the creator itself.

I think it's better to keep the current way of asking it.
We shouldn't ask it in such a specific way that the person will be identifiable from the date. What do you think?

I agree with @ykdojo. And I don't anyone would remember the exact date and might eventually be forced to just enter a random date or not change the date at all.

I agree with @ykdojo. And I don't think anyone would remember the exact date and might eventually be forced to just enter a random date or not change the date at all.

That's a valid point. I did overlook the impact it will have on a creator's privacy.
What we can do is remove the recency/asked_date altogether and let the reader measure the freshness of a question from its creation date.
This will save us from asking a specific question as well as from storing a vague field in the database.

I think it is valuable to have this piece of info even if it's not exact, though?

It is valuable. My concern is more about the fact that we will have to generate an exact date using recency to store it in the DB, which is a little hacky. I suggest we ask for mm/yyyy. A month is not very specific and even after that if a user wants to be safe, they can use stay_anonymous option. What do you think?

Asking for mm/yyyy might work. @subhoghoshX what do you think?

Yes, asking for mm/yyyy sounds good to me. It's  more vague than say, within the past week but more exact compared to 3-6 months or 7-12 months.
You might have to implement a custom date picker. Let me know if you need any help with that.

The <input type='month'> isn't widely supported yet so I went with a combination of <select> and <input type='tel'> for month and year respectively. I also added some validation rules and error feedback.
Broke asked_date into asked_month (text) and asked_year (smallint). This will help in querying questions asked in a particular month or year independently.
@ykdojo @subhoghoshX

@iShibi thank you.
One quick thing - I think it's important that the current month is selected by default so we don't add unnecessary friction to the whole process.

Also maybe the current year as well. I think it can also be a select input listing only last 5-10 years.
I'm still not sure about having two separate fields. Having one date field would also allow querying a particular month or year independently as well. Doesn't matter too much I guess.
Also, I think it might be better if the month is also an integer as a value from 1-12. Thanks.

Changes:

Made asked_month of type smallint and number in SQL and TS respectively.
Added a feature to pre-populate the month and year fields to the current month and year.

I kept the year field as <input type='tel'> because, unlike months, years are not limited. If we choose to make it <select>, the options will change over time and that's a recipe for bugs and forced limitation.

What I meant for the year is to generate it through JS. I meant something like (new Date()).getFullYear(). This will always return the present year, 2022 for now. And if the oldest year we allow supposing is 2015, we can generate the select options from 2015-2022 (for now). And as we're using Next.js it'll statically generate it, so no extra JavaScript will be there after build.
I'm not too sure about it. Open to discussion.

@subhoghoshX It's not about JS, in fact, clients will have to create year options during runtime otherwise the options will remain as it is forever if we never run the build again. My concerns are:

We are forcing a limit on users for no reason whatsoever. The user should be able to submit a question that was asked to them no matter how long ago.
Using select for months makes sense as it has a limited number of options that will remain constant forever but for years it does not seem the right choice.

Makes sense. I just wanted to limit what a user can enter even though we'd check it again through js or on the backend. It sucks that input type="number" doesn't work with maxlength property. I think we can at least apply maxlength="4" to the year field to limit it to 4 digits only.
I noticed you also made the inputs full width. Applying a little padding like p-12 on the container might make it look better.

I think we can at least apply maxlength="4" to the year field to limit it to 4 digits only.

@subhoghoshX This validation will make sure that the user can only submit a 4-digit year:
https://github.com/ykdojo/defaang/blob/ebbf87057f181cb16d5ebcf08cdf5ed4e04d0c37/src/components/QuestionSubmissionForm.tsx#L126

I think we can at least apply maxlength="4" to the year field to limit it to 4 digits only.

@subhoghoshX This validation will make sure that the user can only submit a 4-digit year:
https://github.com/ykdojo/defaang/blob/ebbf87057f181cb16d5ebcf08cdf5ed4e04d0c37/src/components/QuestionSubmissionForm.tsx#L126

Yeah I know we're doing it through js. I just wanted a visual indicator there that's all.

I just wanted a visual indicator there that's all

@subhoghoshX It does that too:

See:
https://github.com/ykdojo/defaang/blob/ebbf87057f181cb16d5ebcf08cdf5ed4e04d0c37/src/components/QuestionSubmissionForm.tsx#L141

I just wanted a visual indicator there that's all

@subhoghoshX It does that too:

See:
https://github.com/ykdojo/defaang/blob/ebbf87057f181cb16d5ebcf08cdf5ed4e04d0c37/src/components/QuestionSubmissionForm.tsx#L141

Haha ok. No issues.

@subhoghoshX It does that too:

Haha ok. No issues.

Can we just keep the original method I came up with (asking about the time passed since the interview rather than the month)?
It'd be a more accurate approximation of the actual date with that method.
Related: https://github.com/ykdojo/defaang/pull/164#discussion_r967957818

It looks good but the UI changes right? So we should probably use the feat label, rather than refactor

@ykdojo I think we must give option of company tags(initially for only a few), otherwise users will write companies names in different ways. for example - someone my write facebook or facebok. So it will make the Users experience inconsistent because they seeing same company name in different ways.  And for reset of the companies they can enter manually if they don't find. What do you think?


Does mup work with model with Conv2D as output?

Hello, this project look great and the Github documentation is really good. Just wondering if mup would work with a model that have the last layer as nn.Conv2d instead of linear.

Hi BurguerJohn,
We haven't implemented a mu-version of Conv2d to use as the output layer, but we can certainly do it! It seems slightly unusual to us to use Conv2d as the output layer. Could you tell us more about your model?

Its more of a curiosity test, I would like to see how it would perform in a Unet model.

In our case, we use ConvTranspose2d (1d, 3d) as output, but basically that should behave like Conv2d and Linear.
May I ask about the progress of the muconv2d branch?

Hi both,
Thanks for your patience regarding this issue. The muconv2d branch should work in principle, but I haven't added test cases since it requires the labels to be the output of a conv layer. If there is interest, we'd love to invite you to give it a try in your code and see if you could reproduce the coordinate check plots in README. We are happy to help debug if you run into any issues!

Hi @edwardjhu, thanks for the kind reply!
My team certainly plans to make coordinate check plots on our models with ConvTranspose output layers. At this point we are working around lr schedulers which are not compatible with mup's optimizers. When we are ready, I am going to post the results here.

Closing this issue for now, but feel free to re-open when there are new updates.

A belated and short update, the muconv2d branch is working fine for us. If desirable, I can whip up a coord_check plot for a toy model with MuOutConvTranspose1d.

sure!


mplchart in NiceGUI framework

NiceGUI is a very good Python UI framework. NiceGUI supports matplotlib. Can you please share if mplchart can work with NiceGUI? If yes, can you please provide a small working example? Thanks.
Related Links:
https://nicegui.io/documentation/section_data_elements#pyplot_context
https://nicegui.io/documentation/section_data_elements#matplotlib

Hi @neodawn,
Thanks for mentioning nicegui. I had a quick look and also added a sample script nicegui-mplchart.py in the examples folder.
Hope this helps.

You are awesome! Thanks for the example. I was able to run it in VSCode (Windows) using "Run current file in interactive window".
But if I try to run it using just "Run current file" in VSCode, I get the following error captured below. Not sure if that is the expected behavior. I was able to run all the other NiceGUI examples using just "Run current file".
Traceback (most recent call last):
File "c:\Tools\nice_gui_test\ng_mpl_01.py", line 31, in update_chart
chart = Chart(title=ticker.value, max_bars=max_bars, figure=plot.fig)
File "C:\Tools\nice_gui_test.venv\lib\site-packages\mplchart\chart.py", line 89, in init
figure.clf()
File "C:\Tools\nice_gui_test.venv\lib\site-packages\matplotlib\figure.py", line 1027, in clf
return self.clear(keep_observers=keep_observers)
File "C:\Tools\nice_gui_test.venv\lib\site-packages\matplotlib\figure.py", line 3127, in clear
super().clear(keep_observers=keep_observers)
File "C:\Tools\nice_gui_test.venv\lib\site-packages\matplotlib\figure.py", line 996, in clear
self.delaxes(ax)  # Remove ax from self._axstack.
File "C:\Tools\nice_gui_test.venv\lib\site-packages\matplotlib\figure.py", line 939, in delaxes
self._remove_axes(ax, owners=[self._axstack, self._localaxes])
File "C:\Tools\nice_gui_test.venv\lib\site-packages\matplotlib\figure.py", line 956, in _remove_axes
self._axobservers.process("_axes_change_event", self)
File "C:\Tools\nice_gui_test.venv\lib\site-packages\matplotlib\cbook.py", line 303, in process
self.exception_handler(exc)
File "C:\Tools\nice_gui_test.venv\lib\site-packages\matplotlib\cbook.py", line 87, in _exception_printer
raise exc
File "C:\Tools\nice_gui_test.venv\lib\site-packages\matplotlib\cbook.py", line 298, in process
func(*args, **kwargs)
File "C:\Tools\nice_gui_test.venv\lib\site-packages\matplotlib\figure.py", line 3232, in
self._axobservers.connect("axes_change_event", lambda arg: func(arg))
File "C:\Tools\nice_gui_test.venv\lib\site-packages\matplotlib\backend_bases.py", line 2680, in notify_axes_change
self.toolbar.update()
File "C:\Tools\nice_gui_test.venv\lib\site-packages\matplotlib\backend_bases.py", line 3219, in update
self.set_history_buttons()
File "C:\Tools\nice_gui_test.venv\lib\site-packages\matplotlib\backends_backend_tk.py", line 897, in set_history_buttons
self.buttons['Back']['state'] = state_map[can_back]
File "C:\Users\neo\AppData\Local\Programs\Python\Python310\lib\tkinter_init.py", line 1686, in setitem
self.configure({key: value})
File "C:\Users\neo\AppData\Local\Programs\Python\Python310\lib\tkinter_init.py", line 1675, in configure
return self.configure('configure', cnf, kw)
File "C:\Users\neo\AppData\Local\Programs\Python\Python310\lib\tkinter_init.py", line 1665, in _configure
self.tk.call(_flatten((self._w, cmd)) + self._options(cnf))
_tkinter.TclError: invalid command name ".!navigationtoolbar2tk.!button2"
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "c:\Tools\nice_gui_test\ng_mpl_01.py", line 36, in
update_chart()
File "c:\Tools\nice_gui_test\ng_mpl_01.py", line 30, in update_chart
with plot:
File "C:\Tools\nice_gui_test.venv\lib\site-packages\nicegui\elements\pyplot.py", line 69, in exit
plt.close(self.fig)
File "C:\Tools\nice_gui_test.venv\lib\site-packages\matplotlib\pyplot.py", line 1098, in close
_pylab_helpers.Gcf.destroy_fig(fig)
File "C:\Tools\nice_gui_test.venv\lib\site-packages\matplotlib_pylab_helpers.py", line 75, in destroy_fig
cls.destroy(num)
File "C:\Tools\nice_gui_test.venv\lib\site-packages\matplotlib_pylab_helpers.py", line 66, in destroy
manager.destroy()
File "C:\Tools\nice_gui_test.venv\lib\site-packages\matplotlib\backends_backend_tk.py", line 569, in destroy
self._window_dpi.trace_remove('write', self.window_dpi_cbname)
File "C:\Users\neo\AppData\Local\Programs\Python\Python310\lib\tkinter_init.py", line 455, in trace_remove
self._tk.deletecommand(cbname)
_tkinter.TclError: can't delete Tcl command

Hi @neodawn,
I tried in VSCode on my Mac and had no such error. It may be specific to Windows or it may be related to the matplotlib configuration, but it's difficult to see what's happening here ...

Ok. So I checked if there are any inputs in the NiceGUI GitHub issue page. Found a related issue.
https://github.com/zauberzeug/nicegui/issues/780
In the example you had shared, I added "close=False" and the issue was not observed anymore. Maybe you can update the example after validating.
with ui.pyplot(figsize=(9, 6), close=False) as plot:
    plt.plot()

Thanks again for the mplchart library and the example.

Great! I updated the example. Thanks

I just checked the updated example; you have updated it as "close=True" instead of "close=False".

My mistake. Fixed


1 CENS Y—Why?

5.5.1 did not give CENS a same line payload. G7 allows a Y
I don't see the point in having a "1 CENS Y"  If I find the census, I'll include its details. If I don't find it, I don't know whether the INDI or FAM is listed and "1 CENS Y" would be dishonest.

The rule that some events could have Y and others not was confusing and a common cause for applications not obeying the 5.5.1 spec. In 7.0 we normalized this so that all events allow the Y payload.
As to where a CENS Ycould come from, a diary entry or personal letter that says "a census taker came by today" would be one possible source of that.

Discussed in steering committee. We agree that this is rarely useful, but that changing it would make the spec more complicated to implement and would require a new major version (8.0).


More ConsoleService methods

This was taken from a comment on #39 (and assumes the work in that PR is already implemented)
Super easy
These can just be copied and pasted from console_log as it is now and replace log with something else

[x] console_warn
[x] console_error
[x] console_info
[x] console_debug
[x] console_count (with argument)
[x] console_time (with argument)
[x] console_time_end (with argument)
[ ] console_profile (with argument)
[ ] console_profile_end (with argument)

Really easy
These just have no arguments

[x] console_clear
[x] console_count
[x] console_group
[x] console_group_collapsed
[x] console_group_end
[ ] console_profile
[ ] console_profile_end
[ ] console_timestamp
[x] console_trace

Medium

[x] console_assert (takes a bool and a string)

Hard

[ ] console_dir
[ ] console_dir_xml
[ ] console_table

I'm checking boxes off even though I implemented it differently

#1842 removed services from yew.
Alternatives:

gloo
weblog


Please add a sample for using Editor Menus and Submenus

We have a settings Menu + Submenu in case of Notebook files. I was looking for some similar submenu page for some particular extension types but this doesn't seem to be straight-forward like other API's. There is very minimal information about this in Docs as well. Having a dedicated sample will help ease the usage of this feature.

I would echo this, the example given in https://github.com/microsoft/vscode-extension-samples/issues/873 does not work for me. I can't get pretty much any version between docs and the github issues to show a submenu like imaged

In true fashion, it was just a skill issue on my part... I was attempting to use the explorer/context menu but was using the editor/context menu to get them to show up. The sample in #873 ultimately worked in that aspect. The docs though aren't as clear as described in that github issue. What I saw through documentation was to add the submenu declaration but didn't describe how to add the submenu to your specific context menu.


[Legend section] - width of the legend section does not scale to the length of its values

When values in the legend sections are long there is no way to see them. One cannot modify the width of the section.

fixed in v1.4.15

@dionissqq Legend width can be modified, but values do not use available space:

DG 1.5.1

@dionissqq - please take a look at Ekaterina's comment

fixed in v1.5.2


work on add-todo html page, it needs a input form with the required inputs

Lexi completed html portion for the add todo