Mongo 4.2.1 does not start on debian

I'm tryin to spawn a mongo docker instance with the following command:
docker run
-e MONGO_INITDB_ROOT_USERNAME=root
-e MONGO_INITDB_ROOT_PASSWORD=password
mongo:4.2.1

On most our debian machines, this works fine. However, in our jenkins environment this one fails due to a permission denied on the PID file:
2019-11-12T22:01:10.837+0000 I  CONTROL  [main] ***** SERVER RESTARTED *****
2019-11-12T22:01:10.846+0000 I  CONTROL  [main] Automatically disabling TLS 1.0, to force-enable TLS 1.0 sp
ecify --sslDisabledProtocols 'none'
2019-11-12T22:01:10.849+0000 I  CONTROL  [main] ERROR: Cannot write pid file to /tmp/docker-entrypoint-temp
-mongod.pid: Permission denied
ERROR: child process failed, exited with error number 1

Docker info:
Client:
 Debug Mode: false
Server:
 Containers: 29
  Running: 1
  Paused: 0
  Stopped: 28
 Images: 87
 Server Version: 19.03.4
 Storage Driver: overlay2
  Backing Filesystem: extfs
  Supports d_type: true
  Native Overlay Diff: true
 Logging Driver: json-file
 Cgroup Driver: cgroupfs
 Plugins:
  Volume: local
  Network: bridge host ipvlan macvlan null overlay
  Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
 Swarm: inactive
 Runtimes: runc
 Default Runtime: runc
 Init Binary: docker-init
 containerd version: b34a5c8af56e510852c35414db4c1f4fa6172339
 runc version: 3e425f80a8c931f88e6d94a8c831b9d5aa481657
 init version: fec3683
 Security Options:
  seccomp
   Profile: default
 Kernel Version: 4.9.0-11-amd64
 Operating System: Debian GNU/Linux 9 (stretch)
 OSType: linux
 Architecture: x86_64
 CPUs: 4
 Total Memory: 25.52GiB
 Name: jenkins-vm
 ID: YIGQ:YOVJ:2Y7F:LM77:VHK6:ICMY:QDGA:5EFD:ZYDD:EQM5:DR77:DANT
 Docker Root Dir: /data/var/lib/docker
 Debug Mode: false
 Registry: https://index.docker.io/v1/
 Labels:
 Experimental: false
 Insecure Registries:
  <IP_ADDRESS>/8
 Live Restore Enabled: false
WARNING: No swap limit support

And my box release information:
PRETTY_NAME="Debian GNU/Linux 9 (stretch)"
NAME="Debian GNU/Linux"
VERSION_ID="9"
VERSION="9 (stretch)"
VERSION_CODENAME=stretch
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"

Is there anything I'm doing wrong ?

 Ts: Timestamp(0, 0)
2019-11-13T00:13:28.829+0000 I  STORAGE  [initandlisten] Timestamp monitor starting
2019-11-13T00:13:29.798+0000 I  CONTROL  [initandlisten]
2019-11-13T00:13:29.798+0000 I  CONTROL  [initandlisten] ** WARNING: Access control is not enabled for the database.
2019-11-13T00:13:29.798+0000 I  CONTROL  [initandlisten] **          Read and write access to data and configuration is unrestricted.
2019-11-13T00:13:29.798+0000 I  CONTROL  [initandlisten]
2019-11-13T00:13:29.800+0000 I  STORAGE  [initandlisten] createCollection: admin.system.version with provided UUID: 04ca77c5-9331-4a6b-8916-dbecde6b24e9 and options: { uuid: UUID("04ca77c5-9331-4a6b-8916-dbecde6b24e9") }
2019-11-13T00:13:30.493+0000 I  INDEX    [initandlisten] index build: done building index _id_ on ns admin.system.version
2019-11-13T00:13:30.494+0000 I  SHARDING [initandlisten] Marking collection admin.system.version as collection version: <unsharded>
2019-11-13T00:13:30.494+0000 I  COMMAND  [initandlisten] setting featureCompatibilityVersion to 4.2
2019-11-13T00:13:30.495+0000 I  SHARDING [initandlisten] Marking collection local.system.replset as collection version: <unsharded>
2019-11-13T00:13:30.495+0000 I  STORAGE  [initandlisten] Flow Control is enabled on this deployment.
2019-11-13T00:13:30.495+0000 I  SHARDING [initandlisten] Marking collection admin.system.roles as collection version: <unsharded>
2019-11-13T00:13:30.496+0000 I  STORAGE  [initandlisten] createCollection: local.startup_log with generated UUID: 30bf5a24-aae7-4150-8b00-73cd0584ddf7 and options: { capped: true, size: 10485760 }
2019-11-13T00:13:30.819+0000 I  INDEX    [initandlisten] index build: done building index _id_ on ns local.startup_log
2019-11-13T00:13:30.820+0000 I  SHARDING [initandlisten] Marking collection local.startup_log as collection version: <unsharded>
2019-11-13T00:13:30.821+0000 I  FTDC     [initandlisten] Initializing full-time diagnostic data capture with directory '/data/db/diagnostic.data'
2019-11-13T00:13:30.824+0000 I  SHARDING [LogicalSessionCacheRefresh] Marking collection config.system.sessions as collection version: <unsharded>
2019-11-13T00:13:30.824+0000 I  NETWORK  [initandlisten] Listening on /tmp/mongodb-27017.sock
2019-11-13T00:13:30.824+0000 I  NETWORK  [initandlisten] Listening on <IP_ADDRESS>
2019-11-13T00:13:30.825+0000 I  CONTROL  [LogicalSessionCacheReap] Sessions collection is not set up; waiting until next sessions reap interval: config.system.sessions does not exist
2019-11-13T00:13:30.825+0000 I  STORAGE  [LogicalSessionCacheRefresh] createCollection: config.system.sessions with provided UUID: ab7630e9-5145-4da9-ab5e-2c58fc5b5d6d and options: { uuid: UUID("ab7630e9-5145-4da9-ab5e-2c58fc5b5d6d") }
2019-11-13T00:13:30.825+0000 I  NETWORK  [initandlisten] waiting for connections on port 27017
child process started successfully, parent exiting
2019-11-13T00:13:30.918+0000 I  NETWORK  [listener] connection accepted from <IP_ADDRESS>:35118 #1 (1 connection now open)
2019-11-13T00:13:30.918+0000 I  NETWORK  [conn1] received client metadata from <IP_ADDRESS>:35118 conn1: { application: { name: "MongoDB Shell" }, driver: { name: "MongoDB Internal Client", version: "4.2.1" }, os: { type: "Linux", name: "Ubuntu", architecture: "x86_64", version: "18.04" } }
2019-11-13T00:13:30.922+0000 I  NETWORK  [conn1] end connection <IP_ADDRESS>:35118 (0 connections now open)
2019-11-13T00:13:30.992+0000 I  NETWORK  [listener] connection accepted from <IP_ADDRESS>:35120 #2 (1 connection now open)
2019-11-13T00:13:30.993+0000 I  NETWORK  [conn2] received client metadata from <IP_ADDRESS>:35120 conn2: { application: { name: "MongoDB Shell" }, driver: { name: "MongoDB Internal Client", version: "4.2.1" }, os: { type: "Linux", name: "Ubuntu", architecture: "x86_64", version: "18.04" } }
2019-11-13T00:13:31.000+0000 I  SHARDING [ftdc] Marking collection local.oplog.rs as collection version: <unsharded>
2019-11-13T00:13:31.031+0000 I  SHARDING [conn2] Marking collection admin.system.users as collection version: <unsharded>
2019-11-13T00:13:31.031+0000 I  STORAGE  [conn2] createCollection: admin.system.users with generated UUID: 6aee3605-9788-45d9-a275-ce8b84582609 and options: {}
2019-11-13T00:13:31.191+0000 I  INDEX    [LogicalSessionCacheRefresh] index build: done building index _id_ on ns config.system.sessions
2019-11-13T00:13:32.369+0000 I  INDEX    [conn2] index build: done building index _id_ on ns admin.system.users
2019-11-13T00:13:33.592+0000 I  INDEX    [LogicalSessionCacheRefresh] index build: starting on config.system.sessions properties: { v: 2, key: { lastUse: 1 }, name: "lsidTTLIndex", ns: "config.system.sessions", expireAfterSeconds: 1800 } using method: Hybrid
2019-11-13T00:13:33.593+0000 I  INDEX    [LogicalSessionCacheRefresh] build may temporarily use up to 500 megabytes of RAM
2019-11-13T00:13:33.593+0000 I  INDEX    [LogicalSessionCacheRefresh] index build: collection scan done. scanned 0 total records in 0 seconds
2019-11-13T00:13:33.750+0000 I  INDEX    [LogicalSessionCacheRefresh] index build: inserted 0 keys from external sorter into index in 0 seconds
2019-11-13T00:13:33.751+0000 I  INDEX    [conn2] index build: done building index user_1_db_1 on ns admin.system.users
2019-11-13T00:13:33.752+0000 I  COMMAND  [conn2] command admin.system.users appName: "MongoDB Shell" command: insert { insert: "system.users", bypassDocumentValidation: false, ordered: true, $db: "admin" } ninserted:1 keysInserted:2 numYields:0 reslen:45 locks:{ ParallelBatchWriterMode: { acquireCount: { r: 3 } }, ReplicationStateTransition: { acquireCount: { w: 3 } }, Global: { acquireCount: { w: 3 } }, Database: { acquireCount: { W: 3 } }, Collection: { acquireCount: { r: 2, w: 2, W: 1 } }, Mutex: { acquireCount: { r: 5 } } } flowControl:{ acquireCount: 4 } storage:{} protocol:op_msg 2720ms
2019-11-13T00:13:33.752+0000 I  COMMAND  [conn2] command admin.system.version appName: "MongoDB Shell" command: createUser { createUser: "root", pwd: "xxx", roles: [ { role: "root", db: "admin" } ], digestPassword: true, writeConcern: { w: "majority", wtimeout: 600000.0 }, lsid: { id: UUID("5f9e3457-61a6-440c-859a-1b32a0972ea2") }, $db: "admin" } numYields:0 reslen:38 locks:{ ParallelBatchWriterMode: { acquireCount: { r: 5 } }, ReplicationStateTransition: { acquireCount: { w: 6 } }, Global: { acquireCount: { r: 2, w: 4 } }, Database: { acquireCount: { r: 1, W: 4 } }, Collection: { acquireCount: { r: 3, w: 3, W: 1 } }, Mutex: { acquireCount: { r: 8 } } } flowControl:{ acquireCount: 4 } storage:{} protocol:op_msg 2755ms
Successfully added user: {
        "user" : "root",
        "roles" : [
                {
                        "role" : "root",
                        "db" : "admin"
                }
        ]
}
2019-11-13T00:13:33.756+0000 E  -        [main] Error saving history file: FileOpenFailed: Unable to open() file /home/mongodb/.dbshell: No such file or directory
2019-11-13T00:13:33.758+0000 I  NETWORK  [conn2] end connection <IP_ADDRESS>:35120 (0 connections now open)

/usr/local/bin/docker-entrypoint.sh: ignoring /docker-entrypoint-initdb.d/*

2019-11-13T00:13:33.821+0000 I  INDEX    [LogicalSessionCacheRefresh] index build: done building index lsidTTLIndex on ns config.system.sessions
2019-11-13T00:13:33.838+0000 I  CONTROL  [main] ***** SERVER RESTARTED *****
2019-11-13T00:13:33.851+0000 I  CONTROL  [main] Automatically disabling TLS 1.0, to force-enable TLS 1.0 specify --sslDisabledProtocols 'none'
killing process with pid: 28
2019-11-13T00:13:33.856+0000 I  CONTROL  [signalProcessingThread] got signal 15 (Terminated), will terminate after current cmd ends
2019-11-13T00:13:33.890+0000 I  COMMAND  [LogicalSessionCacheRefresh] command config.system.sessions command: createIndexes { createIndexes: "system.sessions", indexes: [ { key: { lastUse: 1 }, name: "lsidTTLIndex", expireAfterSeconds: 1800 } ], $db: "config" } numYields:0 reslen:114 locks:{ ParallelBatchWriterMode: { acquireCount: { r: 2 } }, ReplicationStateTransition: { acquireCount: { w: 3 } }, Global: { acquireCount: { r: 1, w: 2 } }, Database: { acquireCount: { r: 1, w: 2, W: 1 } }, Collection: { acquireCount: { r: 4, w: 1, R: 1, W: 2 } }, Mutex: { acquireCount: { r: 3 } } } flowControl:{ acquireCount: 1 } storage:{} protocol:op_msg 3065ms
2019-11-13T00:13:33.891+0000 I  NETWORK  [signalProcessingThread] shutdown: going to close listening sockets...
2019-11-13T00:13:33.891+0000 I  NETWORK  [signalProcessingThread] removing socket file: /tmp/mongodb-27017.sock
2019-11-13T00:13:33.891+0000 I  -        [signalProcessingThread] Stopping further Flow Control ticket acquisitions.
2019-11-13T00:13:33.891+0000 I  CONTROL  [signalProcessingThread] Shutting down free monitoring
2019-11-13T00:13:33.891+0000 I  FTDC     [signalProcessingThread] Shutting down full-time diagnostic data capture
2019-11-13T00:13:33.893+0000 I  STORAGE  [signalProcessingThread] Deregistering all the collections
2019-11-13T00:13:33.893+0000 I  STORAGE  [signalProcessingThread] Timestamp monitor shutting down
2019-11-13T00:13:33.893+0000 I  STORAGE  [signalProcessingThread] WiredTigerKVEngine shutting down
2019-11-13T00:13:33.907+0000 I  STORAGE  [signalProcessingThread] Shutting down session sweeper thread
2019-11-13T00:13:33.907+0000 I  STORAGE  [signalProcessingThread] Finished shutting down session sweeper thread
2019-11-13T00:13:33.907+0000 I  STORAGE  [signalProcessingThread] Shutting down journal flusher thread
2019-11-13T00:13:33.990+0000 I  STORAGE  [signalProcessingThread] Finished shutting down journal flusher thread
2019-11-13T00:13:33.990+0000 I  STORAGE  [signalProcessingThread] Shutting down checkpoint thread
2019-11-13T00:13:33.990+0000 I  STORAGE  [signalProcessingThread] Finished shutting down checkpoint thread
2019-11-13T00:13:35.549+0000 I  STORAGE  [signalProcessingThread] shutdown: removing fs lock...
2019-11-13T00:13:35.549+0000 I  CONTROL  [signalProcessingThread] now exiting
2019-11-13T00:13:35.549+0000 I  CONTROL  [signalProcessingThread] shutting down with code:0

MongoDB init process complete; ready for start up.

2019-11-13T00:13:35.949+0000 I  CONTROL  [main] Automatically disabling TLS 1.0, to force-enable TLS 1.0 specify --sslDisabledProtocols 'none'
2019-11-13T00:13:35.953+0000 I  CONTROL  [initandlisten] MongoDB starting : pid=1 port=27017 dbpath=/data/db 64-bit host=b2dde7de82a9
2019-11-13T00:13:35.953+0000 I  CONTROL  [initandlisten] db version v4.2.1
2019-11-13T00:13:35.953+0000 I  CONTROL  [initandlisten] git version: edf6d45851c0b9ee15548f0f847df141764a317e
2019-11-13T00:13:35.953+0000 I  CONTROL  [initandlisten] OpenSSL version: OpenSSL 1.1.1  11 Sep 2018
2019-11-13T00:13:35.953+0000 I  CONTROL  [initandlisten] allocator: tcmalloc
2019-11-13T00:13:35.953+0000 I  CONTROL  [initandlisten] modules: none
2019-11-13T00:13:35.953+0000 I  CONTROL  [initandlisten] build environment:
2019-11-13T00:13:35.953+0000 I  CONTROL  [initandlisten]     distmod: ubuntu1804
2019-11-13T00:13:35.953+0000 I  CONTROL  [initandlisten]     distarch: x86_64
2019-11-13T00:13:35.953+0000 I  CONTROL  [initandlisten]     target_arch: x86_64
2019-11-13T00:13:35.953+0000 I  CONTROL  [initandlisten] options: { net: { bindIp: "*" }, security: { authorization: "enabled" } }
2019-11-13T00:13:35.953+0000 I  STORAGE  [initandlisten] Detected data files in /data/db created by the 'wiredTiger' storage engine, so setting the active storage engine to 'wiredTiger'.
2019-11-13T00:13:35.953+0000 I  STORAGE  [initandlisten]
2019-11-13T00:13:35.953+0000 I  STORAGE  [initandlisten] ** WARNING: Using the XFS filesystem is strongly recommended with the WiredTiger storage engine
2019-11-13T00:13:35.953+0000 I  STORAGE  [initandlisten] **          See http://dochub.mongodb.org/core/prodnotes-filesystem
2019-11-13T00:13:35.953+0000 I  STORAGE  [initandlisten] wiredtiger_open config: create,cache_size=5321M,cache_overflow=(file_max=0M),session_max=33000,eviction=(threads_min=4,threads_max=4),config_base=false,statistics=(fast),log=(enabled=true,archive=true,path=journal,compressor=snappy),file_manager=(close_idle_time=100000,close_scan_interval=10,close_handle_minimum=250),statistics_log=(wait=0),verbose=[recovery_progress,checkpoint_progress],
2019-11-13T00:13:36.555+0000 I  STORAGE  [initandlisten] WiredTiger message [1573604016:555892][1:0x7fc09afccb00], txn-recover: Recovering log 1 through 2
2019-11-13T00:13:36.642+0000 I  STORAGE  [initandlisten] WiredTiger message [1573604016:642910][1:0x7fc09afccb00], txn-recover: Recovering log 2 through 2
2019-11-13T00:13:36.704+0000 I  STORAGE  [initandlisten] WiredTiger message [1573604016:704965][1:0x7fc09afccb00], txn-recover: Main recovery loop: starting at 1/28800 to 2/256
2019-11-13T00:13:36.789+0000 I  STORAGE  [initandlisten] WiredTiger message [1573604016:789534][1:0x7fc09afccb00], txn-recover: Recovering log 1 through 2
2019-11-13T00:13:36.974+0000 I  STORAGE  [initandlisten] WiredTiger message [1573604016:974937][1:0x7fc09afccb00], txn-recover: Recovering log 2 through 2
2019-11-13T00:13:37.031+0000 I  STORAGE  [initandlisten] WiredTiger message [1573604017:31987][1:0x7fc09afccb00], txn-recover: Set global recovery timestamp: (0,0)
2019-11-13T00:13:38.068+0000 I  RECOVERY [initandlisten] WiredTiger recoveryTimestamp.  I get the same error.
Here is the command I ran after your suggestion: docker run -e MONGO_INITDB_ROOT_USERNAME=root -e MONGO_INITDB_ROOT_PASSWORD=password --security-opt apparmor=unconfined mongo:4.2.1

I started from scratch on another instance and it worked fine.


Java SDK?

The README image suggests that Java (or maybe just Android?) is a "coming soon" target language. I'd be keen to know when that lands.

I think a Java Host SDK would be quite simple to do. It's just some FFI bindings. I could give it a shot. A lua or python PDK would take some more time. We're just getting into running higher level languages as plugins.

If you could join the discord and discuss your use case that would be helpful.

@thomasdarimont Looks very neat! I of course love the idea of using fewer libraries when possible. Do you know the consequences of using something like this? Would people using an older Java runtime be able to use it?
By the way, I'm just trying to hack something together for Java but I don't have much recent Java experience. If you want to help would love your support!

@bhelx Thanks! The Panama API (java.lang.foreign & friends) is still in preview and will probably be usable for real world applications by next year the earliest. For the referenced example I used an early-access version of a panama enabled JDK build that uses outdated API.
If you want to enable Java developers to execute wasm code via extism with the current JDKs then I think using tools like JNA or rather JNR is the way to go.
I'm really interested in this, but I currently don't have the bandwidth to do much - but I give your java branch a look :)

@thomasdarimont Thanks a lot for your insight. I will research it and see if we can use it in the near future. Also I've never seen JNR so thanks for the tip!

I'm really interested in this, but I currently don't have the bandwidth to do much - but I'll give your java branch a look :)

I totally understand. We're very grateful for the time you've spent looking at it. Hopefully you get a chance to give us more feedback but if not, it's no problem. If you know anyone else who may want to take a look or help please point them here.


Make page property values accessible from within layout views

Example: A "color" property has to be used to insert CSS inline code into the layout view.

added page component, see:
https://luya.io/de/dokumentation/app-cmsproperties#in-layouts


Example please

Example please

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

ID: 5885fb65-636b-3e66-4f34-98b4e357e092
Version Independent ID: 89a4e215-8046-0b88-8643-2c00725384e1
Content: ParallelEnumerable.WithMergeOptions(ParallelQuery<TSource>, ParallelMergeOptions) Method (System.Linq)
Content Source: xml/System.Linq/ParallelEnumerable.xml
Product: dotnet-api
GitHub Login: @dotnet-bot
Microsoft Alias: dotnetcontent

Thanks for your feedback @avifarah. We've added this request into our backlog.

Can I help with this one?

What are you looking for in the example? This is a quick sample I created:
    class Program
    {
        static void Main(string[] args)
        {
            ParallelEnumerable.Range(0, 6).WithMergeOptions(ParallelMergeOptions.AutoBuffered).ToList();
        }
    }

This example shows how to use it, but not what it does (which I guess will be a bit more complicated)/


Feature/action logging

Action Logging
Developed an option to do Action Log
Click Output Tab -> Action Log - > Enable Action Log and then you will have an option to select what to log
Currently the log file is hard coded to "c:\temp\GingerLog.txt" but in future it will be defined through a configuration file

@yaronweiss, all the code at my end is checked in and please review.


use libavcodec (ffmpeg) library to decode video/encode images

not practical for the scope of this project, ffmpeg works just fine


refactor links loader

Need

to speed up loading of process links in order to speed up etl job

approach

dont read from db when loading bundles
insert into process_join_table in the finalizer step of the ETL job

Tests are failing - please take a look.


added max width to guides list

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.


FIX for blank terminal

Hi everyone. I, like many of you, had the following issue:

install worked. (hurray!)
blank terminal (oh no!)

This simple fix made it work for me:

run devtools-terminal in the shell:
$ devtools-terminal

open chrome devtools
click three dots in corner
click Remote Connection

host: http://localhost:8080
user: admin
password: (none)

click 'ok'

Voila! Command Line Magic!
#67 #71 #49 #78 #77 #75 #74 #57

I believe the root issue is found in the default example-config.js:
exports.config = {
  users: {
    admin: {
      password: "",
      cwd: process.cwd()
    }
  },
  port: 8080
};

here you see the username is admin, password is "", and port is 8080, which exactly matches example-config.js

I don't know why local access doesn't work. Perhaps @petethepig can enlighten?

no remote connection option in chrome 58
the three dot menu looks different

@ubermensh, I am having issues too. macOS + Chrome 60 the three dots do nothing when clicked.


For a Flutter project generated with version 2.0.0, how should I publish it to pub.dev for others to use?

Describe the bug
For version 2.0, I don't know how to publish the Flutter library to pub.dev.
Steps to reproduce
...
Logs
...

Expected behavior
No response
Generated binding code
No response
OS
No response
Version of flutter_rust_bridge_codegen
2.0.0+
Flutter info
No response
Version of clang++
No response
Additional context
No response

You can use arbitrary ways. One way is to use https://cjycode.com/flutter_rust_bridge/manual/integrate/cargokit (the article discusses how to create a package to be published).

I've read about these, but haven't connected them. It depends on the Rust, I'll think about how to explain this dependency issue.

I guess one way is to follow the tutorial https://matejknopp.com/post/flutter_plugin_in_rust_with_no_prebuilt_binaries/ (IIRC they have demo repo as well), and then add flutter_rust_bridge (copy the flutter_rust_bridge.yaml, and run codegen).
Maybe I can find some time creating a template for this in flutter_rust_bridge (but cannot guarantee)

Yeah, frb is cool. When I used version 2.0, I was puzzled why the previous build scripts were gone until I closely read the docs and checked the project structure.

There will be a dependency on the local directory of rust_builder, which could pose some challenges during publishing.

That's the default flutter_rust_bridge_codegen create template. My suggestion above is that, use cargokit's template (which is for a package to publish), and then add flutter_rust_bridge.yaml file, and run flutter_rust_bridge_codegen generate as usual.

Btw, after the PR, there will be an example: frb_example/flutter_package


Scenario.estimate() does not handle weird Recovered data and estimate parameters with low accuracy

Summary of new feature - Suggestions
It would be very useful to implement a mechanism that handles cases when reliable recovered data cannot be provided, for example in situations where recovered data are:

frozen for a long time
not updated every day
unknown/not reported

See also #268 issue.
I also suspect that the source recovered data for UK and Netherlands are not correct (they seem too little). In the worldometers.info they do not exist at all (N/A).
Solution

In such cases, the system maybe should discard such invalid data and not use them in the confirmed/deaths calculations/predictions. Perhaps by not including the recovered data in the cost function for the prediction.
Alternatively, a generator function perhaps should be developed to provide such data by approximation.
Or we could use the theoretical data of the model for the expected recovered cases, which correspond to the specific current parameters.

Just a note for a generator function, parameter estimation:

moving average of actual records
spline interpolation
perform time series analysis and find trend with fbprophet

I think that this issue has to be handled first and soon, because it creates many problems both in the trends analysis and the estimations. Many countries have either frozen recovered cases or do not update them regularly.

We will create Scenario.complement(method, model=None, target="Recovered") method.

We do not have detection system of irreguration in the current version.
You suggested three solutions. How do you write Python codes for them with the output of Scenario.records()?

frozen for a long time
not updated every day
unknown/not reported

How to complement R:

We could use the estimated parameters of the phase at which the recovered cases begin to show irregularities.

When we know irregularities starts at 3rd phase, we can fix sigma in 3rd phase as follows.
snl = cs.Scenario(...)
snl.trend()
# Parameter estimation in 0th, 1st, 2nd phase
snl.estimate(cs.SIRF, phases=["0th", "1st", "2nd"])
# Get sigma value in 2nd phase
sigma_2nd = snl.get("sigma", phase="2nd")
# Use 2nd phase's sigma value in 3rd phase
snl.estimate(cs.SIRF, phases=["3rd"])

We can easily detect the irregularities if we simply count the records of consecutive non-increasing values and set a tolerance threshold for that. If for example a country has stuck/non-increasing recovered cases for consecutive let's say 3 days, then the complement mechanism shall run and generate the recovered cases for these days.

I created pull request #317 . @Inglezos , please review it.
What was changed

Scenario class complements the number of recovered cases automatically with auto_complement=True (default) argument and Scenario.complement() method.
Users can restore the raw data with Scenario.complement_reverse() method.

Details of complement
If the number of recovered cases did not change for more than interval=12 days after reached max_ignored=100 cases, complement will be applied to the number of recovered cases.

Duplicated values will be raplaced with None
Interpolated with linear function and rounded
Infected will be re-calculated

Because complement impacts on both of S-R trend analysis and parameter estimation, this will be performed when an instance of Scenario class will be created.

Before (Greece):

After:
snl = cs.Scenario(jhu_data, population_data, "Greece")
snl.records()
snl.trend()
# Resotore the raw data if necessary
# snl.complement_reverse().records()

The output of snl.estimate(cs.SIRF); snl.simulate() is the next figure. Accuracy of 0th phase is low, but this is another issue. #270

Update:
When complemented, title of the figure of Scenario.records() will be changed from "Greece: Cases over time" to "Greece: Cases over time (complemented)" as shown in the previous comment.

Great, this is the desired handling, thank you! I approved the changes, please merge them to master.

I merged #317 . This closes #309 and this issue.


DO NOT MERGE - ProjectParser - Fix "Illegal characters in directory path (*)" exception

DO NOT MERGE.  I think this is worth further review/discussion on the implementation, but this is a start.
This addresses the "Illegal characters in directory path (*)" exception when a *.csproj contains wildcard Include attributes, as detailed in GH-1299
The issue, as originally filed, was easy enough to side-step in my own project(s) that were impacted.
I have found another project where we're less able to work around it - the project is auto-generated via the Swagger CodeGen tool and would represent significant burden in attempting to maintain the file beyond what the CodeGen tool does automatically, particularly in light of the fact that it's perfectly valid MSBuild syntax/content.
The couple of concerns that I can think of off the top of my head are this:

This is still a semi-naive solution in that it won't consider globbing patterns that may exist outside of a project's working directory.  i.e., <Compile Include="..\..\**\*.cs" /> or similar.

The globbing implementation may be better suited with a different approach.  I started to consider how to create a separate class/implementation that instantiates a new Globber with a copy of CakeEnvironment with the WorkingDirectory being overridden, but that proved more difficult than was warranted for a proof-of-concept with regard to testing concerns.  However, in hindsight, I think this is probably the right thing to do.

Consider the two main cases in which we can encounter this:
<Compile Include="**\*.cs" />
<Compile Include="..\..\fake\**\*.cs" />
I have confirmed (for my own self)  that the Globber implementation is able to handle directory traversals, i.e., GetFiles("./../**/*.csproj")
So if I were to mutate the implementation I have to be more correct in positioning the globber's working directory to that of the current project, that should create the correct scenario where we're able to resolve all of the files whether they ancestors or descendants of the working directory.
So, a couple of questions:

Does the second option (above) sound more correct?  I think it does.   Is there a better way to deal with overridding the working directory for the consideration of the Globber itself?  It seems like it's pretty tightly coupled to the ICakeEnvironment.WorkingDirectory at the moment.  If there are suggestions, I'd like to hear them.

Is this change something we wish to pursue?  I think it's pretty close and has at least identified the deficiencies, it's just a matter of refactoring to cover the edge cases.  If it's not, we should at least mute the exception -or- provide an Options object (or parameter) that would turn off the parsing of the files, which would achieve the same.

I've refactored the implementation to be more inline with my idea # 2 ("The globbing implementation may be better suited with a different approach.", above)
This handles processing Include attributes correctly with test coverage for the general cases:
<Compile Include="**\*.cs" />
<Compile Include="..\..\fake\**\*.cs" />
This seems like a more correct approach.  Let me know what you think about this entire line of dev.

@kcamp after a review of this PR by the @cake-build/cake-team we feel that this PR is no longer required.  As such, we are going to close this.  Please feel free to open this again, if you want to discuss this further.


add license information in pkg/ddc/goosefs/operations/base.go

Signed-off-by: xingshangyu<EMAIL_ADDRESS>Ⅰ. Describe what this PR does
This pr is to add license information in pkg/ddc/goosefs/operations/base.go.
Ⅱ. Does this pull request fix one issue?

Ⅲ. List the added test cases (unit test/integration test) if any, please explain if no tests are needed.
Ⅳ. Describe how to verify it
Ⅴ. Special notes for reviews

@xingshangyu Hi, DCO checks all the commits in this PR, the first commit c09a96e has no signoff so it still fails. Maybe u should try force-push to override your branch.


[StreamlitCallbackHandler] - Not compatible with LangGraph

Checked other resources

[X] I added a very descriptive title to this issue.
[X] I searched the LangChain documentation with the integrated search.
[X] I used the GitHub search to find a similar question and didn't find it.
[X] I am sure that this is a bug in LangChain rather than my code.

Example Code
import streamlit as st
from langgraph.prebuilt import create_agent_executor
from langchain.agents import AgentType, create_openai_functions_agent
from langchain.callbacks.streamlit import StreamlitCallbackHandler
from langchain_community.agent_toolkits import SQLDatabaseToolkit
from langchain_community.utilities.sql_database import SQLDatabase
from langchain_core.prompts.chat  import ChatPromptTemplate, AIMessage, SystemMessage, HumanMessagePromptTemplate, MessagesPlaceholder

st_cb = StreamlitCallbackHandler(st.container())

db = SQLDatabase(engine=engine, include_tables=tables)
toolkit = SQLDatabaseToolkit(db=db, llm=llm)
sql_tools = toolkit.get_tools()

messages = [
    SystemMessage(content=SQL_PREFIX),
    HumanMessagePromptTemplate.from_template("{input}"),
    AIMessage(content=SQL_FUNCTIONS_SUFFIX),
    MessagesPlaceholder(variable_name="agent_scratchpad"),
        ]
input_variables = ["input", "agent_scratchpad"]
prompt = ChatPromptTemplate(input_variables=input_variables, messages=messages)
sql_agent_runnable = create_openai_functions_agent(llm, sql_tools, prompt)

result = app.invoke({"input": "What is the table about?","chat_history":[]},{"callbacks": [st_cb]})

Error Message and Stack Trace (if applicable)
2024-02-10 11:04:02.381 Thread 'ThreadPoolExecutor-15_0': missing ScriptRunContext
Error in StreamlitCallbackHandler.on_llm_start callback: NoSessionContext()
Error in StreamlitCallbackHandler.on_llm_end callback: RuntimeError('Current LLMThought is unexpectedly None!')
Error in StreamlitCallbackHandler.on_tool_start callback: RuntimeError('Current LLMThought is unexpectedly None!')
Error in StreamlitCallbackHandler.on_tool_end callback: RuntimeError('Current LLMThought is unexpectedly None!')
Description
I am trying to use the StreamlitCallbackHandler with LangGraph as I can successfully do it with LangChain.
Based on my observation, the internal format drastically diverges between langchain and langGraph. Does it mean, that StreamlitCallbackHandler will not be compatible with langGraph ?
System Info
langchain==0.1.0
langchain-community==0.0.12
langchain-core==0.1.14
langchain-experimental==0.0.49
langchain-openai==0.0.3
langgraph==0.0.20

It should still be compatible - I don't see langgraph used above - could you give an example of how you're including it in the graph?

It should still be compatible - I don't see langgraph used above - could you give an example of how you're including it in the graph?

I am also unable to add and not sure where exactly it would be best to add streamlitcallback. do you already have some small example langgraph with st callback?

bump.  Also running into this - doesn't seem compatible with langgraph.

graph_config = RunnableConfig()
    st_callback = StreamlitCallbackHandler(answer_container)
    graph_config['callbacks'] = [st_callback]
    graph_config['hyperparameters'] = st.session_state.graph_hyperparameters
    graph_config['metadata'] = {
            "conversation_id": st.session_state.session_id
        }

    graph_input = {"input": st.session_state.input, "messages": st.session_state.convo_history}

    graph = build_graph(use_open_routing=False)

    st.json(graph_config)

    # for node, output in get('construct').invoke(str(st.session_state.appstate.chat.messages)):
    async for event in graph.astream_events(
                            input=graph_input,
                            config=graph_config,
                            version='v1'
                        ):
        # st.json(event)
        pass

running without async via graph.invoke() also fails and shows:
2024-04-26 22:22:30.405 Thread 'ThreadPoolExecutor-1_0': missing ScriptRunContext
Error in StreamlitCallbackHandler.on_llm_start callback: NoSessionContext()

and, as above, running graph.astream_events() fails with:
2024-04-26 22:04:06.701 Thread 'asyncio_2': missing ScriptRunContext
Error in StreamlitCallbackHandler.on_llm_start callback: NoSessionContext()

I'm unable to find relevant documentation to remedy.  I'm also using code snippets that I know work from https://github.com/langchain-ai/streamlit-agent/blob/main/streamlit_agent/mrkl_demo.py
But, that example is using LangChain, not LangGraph - which may be the issue here.

I read that some are able to find a solution - see Streamlit issue.  I'm unable to implement it correctly.
Essentially, LangGraph is creating threads which is messing with the Streamlit callback.

I have meet the similar issue when I trying to use StreamlitCallbackHandler with steamlit and langchain

2024-07-24 18:09:36.481 Thread 'asyncio_0': missing ScriptRunContext

After deep dive, I found that the asyncio is creating threads here   and the thread does't have ScriptRunContext.
Based on the solution in https://github.com/streamlit/streamlit/issues/1326, I implement MyThreadPoolExecutor extend the ThreadPoolExecutor, added add_script_run_ctx(t) after thread creation

import weakref
from concurrent.futures import ThreadPoolExecutor
from concurrent.futures.thread import _worker
import threading
from streamlit.runtime.scriptrunner import add_script_run_ctx

_threads_queues = weakref.WeakKeyDictionary()

class MyThreadPoolExecutor(ThreadPoolExecutor):

    def _adjust_thread_count(self):
        # if idle threads are available, don't spin new threads
        if self._idle_semaphore.acquire(timeout=0):
            return

        # When the executor gets lost, the weakref callback will wake up
        # the worker threads.
        def weakref_cb(_, q=self._work_queue):
            q.put(None)

        num_threads = len(self._threads)
        if num_threads < self._max_workers:
            thread_name = '%s_%d' % (self._thread_name_prefix or self,
                                     num_threads)
            t = threading.Thread(name=thread_name, target=_worker,
                                 args=(weakref.ref(self, weakref_cb),
                                       self._work_queue,
                                       self._initializer,
                                       self._initargs))
            add_script_run_ctx(t)
            t.start()
            self._threads.add(t)
            _threads_queues[t] = self._work_queue

and then
asyncio.get_event_loop().set_default_executor(MyThreadPoolExecutor(max_workers=2))

Finally, StreamlitCallbackHandler works fine!

@MarkusDressel @touhi99 @PlebeiusGaragicus

Thread 'ThreadPoolExecutor-1_0': missing ScriptRunContext! This warning can be ignored when running in bare mode.
Error in StreamlitCallbackHandler.on_llm_start callback: NoSessionContext()
Error in StreamlitCallbackHandler.on_llm_new_token callback: RuntimeError('Current LLMThought is unexpectedly None!')
Error in StreamlitCallbackHandler.on_llm_new_token callback: RuntimeError('Current LLMThought is unexpectedly None!')
Error in StreamlitCallbackHandler.on_llm_end callback: RuntimeError('Current LLMThought is unexpectedly None!')

I was able to solve the compatibility issue with LangGraph specifically the NoContext(), missing ScriptRunContext, Current LLMThought is unexpectedly None! issue from StreamlitCallbackHandler side.
Implemented like this in StreamlitCallbackHandler_example/st_callable_util.py  and invoking that function like this or below and you won't get the issues mentioned above!
graph_runnable.invoke({"messages": HumanMessage(content="write me a story about Harry Potter in Hogsmeade")},
                      config={"callbacks" :[get_streamlit_cb(st.empty())]})

cc @hinthornw for issue resolved


ISSUE-523 Support comments for struct properties

https://github.com/microsoft/thrifty/issues/523

I discovered java generator produces documentation for class and fields by default, so I think it would be better to save same semantic for kotlin generator - so there are no additional flags

Fixed issue with ignored structBuilders

@microsoft-github-policy-service agree

Thanks, looks great - and thanks for finding + fixing the builder bug in the gradle plugin, too.


[PROPOSAL] Rename AProx to Indy

...because it retrieves artifacts. :smile:
@pkocandr, do you have any objections? I'll probably start on it this evening, but I'll put it in a branch for now.

That's nice! :-) No objections.


superset-worker CrashLoopBackOff

Events:
Type     Reason   Age                   From     Message

Normal   Pulling  58m                   kubelet  Pulling image "apache/superset:latest"
Normal   Pulled   57m                   kubelet  Successfully pulled image "apache/superset:latest" in 18.904111192s
Normal   Created  55m (x5 over 57m)     kubelet  Created container superset
Normal   Started  55m (x5 over 57m)     kubelet  Started container superset
Normal   Pulled   55m (x4 over 57m)     kubelet  Container image "apache/superset:latest" already present on machine
Warning  BackOff  3m8s (x246 over 57m)  kubelet  Back-off restarting failed container
Logs of the superset worker
kubectl logs -f superset-worker-867678fb57-jnkgd
Defaulted container "superset" out of: superset, wait-for-postgres (init)
Requirement already satisfied: psycopg2-binary==2.9.1 in /usr/local/lib/python3.8/site-packages (2.9.1)
Requirement already satisfied: redis==3.5.3 in /usr/local/lib/python3.8/site-packages (3.5.3)
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
WARNING: You are using pip version 22.0.4; however, version 22.2.2 is available.
You should consider upgrading via the '/usr/local/bin/python -m pip install --upgrade pip' command.
logging was configured successfully
2022-10-12 16:13:34,609:INFO:superset.utils.logging_configurator:logging was configured successfully
2022-10-12 16:13:34,612:INFO:root:Configured event logger of type <class 'superset.utils.log.DBEventLogger'>
Falling back to the built-in cache, that stores data in the metadata database, for the following cache: FILTER_STATE_CACHE_CONFIG. It is recommended to use RedisCache, MemcachedCache or another dedicated caching backend for production deployments
2022-10-12 16:13:34,616:WARNING:superset.utils.cache_manager:Falling back to the built-in cache, that stores data in the metadata database, for the following cache: FILTER_STATE_CACHE_CONFIG. It is recommended to use RedisCache, MemcachedCache or another dedicated caching backend for production deployments
Falling back to the built-in cache, that stores data in the metadata database, for the following cache: EXPLORE_FORM_DATA_CACHE_CONFIG. It is recommended to use RedisCache, MemcachedCache or another dedicated caching backend for production deployments
2022-10-12 16:13:34,623:WARNING:superset.utils.cache_manager:Falling back to the built-in cache, that stores data in the metadata database, for the following cache: EXPLORE_FORM_DATA_CACHE_CONFIG. It is recommended to use RedisCache, MemcachedCache or another dedicated caching backend for production deployments
2022-10-12 16:13:34,626:ERROR:flask_appbuilder.security.sqla.manager:DB Creation and initialization failed: (psycopg2.OperationalError) could not translate host name "CMW2gha7yrg@superset-postgresql" to address: Name or service not known
(Background on this error at: https://sqlalche.me/e/14/e3q8)
Loaded your LOCAL configuration at [/app/pythonpath/superset_config.py]
Can anyone help what to do about this error??? I'm running superset on eks cluster

Closing this as stale since it's been silent for so long, and we're trying to steer toward a more actionable Issues backlog. If people are still encountering this in current versions (currently 3.x) please open a new Issue or a PR to address the problem.


[realm] throws error when running

Hi,
I used the template @realm/expo-template-ts with @expo/electron-adapter to run the app with electron runtime, but I'm facing this issue.
Please find reproductible repo here : https://github.com/younes200/expo-electron-realm
Log output
Uncaught TypeError: Cannot read property 'indexOf' of undefined
    at Function.getFileName (webpack-internal:///./node_modules/bindings/bindings.js:178)
    at bindings (webpack-internal:///./node_modules/bindings/bindings.js:82)
    at getRealmConstructor (webpack-internal:///./node_modules/realm/lib/index.js:9)
    at eval (webpack-internal:///./node_modules/realm/lib/index.js:35)
    at Object../node_modules/realm/lib/index.js (renderer.js:5482)
    at __webpack_require__ (renderer.js:791)
    at fn (renderer.js:102)
    at eval (webpack-internal:///./node_modules/@realm/react/dist/index.js:20)
    at<EMAIL_ADDRESS>(renderer.js:1431)
    at __webpack_require__ (renderer.js:791)

Any idea ?
Thank you in advance.

In my app.json I added expo.web.build.babel.include with ["realm","@realm/react"] but no luck :
{
  "expo": {
    "name": "MyAwesomeRealmApp",
    "slug": "MyAwesomeRealmApp",
    "version": "1.0.0",
    "assetBundlePatterns": [
      "**/*"
    ],
    "ios": {
      "bundleIdentifier": "com.younes31.MyAwesomeRealmApp"
    },
    "web": {
      "build": {
        "babel": {
          "include": ["realm", "@realm/react"]
        }
      }
    }
  }
}


Extract cursorless core into a node.js server

The problem
Today, cursorless only works within VSCode.  We'd like cursorless to be usable in other editors, as well as outside of editors, eg in web browsers, anywhere on screen using OCR, etc.
The solution
Because cursorless is written in Typescript, we can abstract away the VSCode-specific code and package its core engine into a node.js server.  Then clients in other editors, in a web browser, or within Talon itself (eg for OCR-based cursorless), can talk to this server to enable cursorless commands to operate on everything.
Questions

Should VSCode talk to this server, or continue to use its own bundled cursorless engine?  Would need to do some performance / reliability tests to see whether we lose anything by making it a server.  It's not too different from a language server, and these seem to be fairly reliable / performant, so might be fine

We'll try our best to make the hats consistent across editors / other places, but it will likely end up varying from editor to editor.  For example, emacs and vim are often run in a terminal, so rendering anything fancy will probably be difficult or impossible in that kind of scenario.
Not sure how helpful that is.  I guess the best I can say is that we'll try to make it look just like the hats do in Cursorless VSCode

For example, emacs and vim are often run in a terminal, so rendering anything fancy will probably be difficult or impossible in that kind of scenario.

91% emacs users use the GUI version FYI:

source
There are also frequent recommendations in #emacs and r/emacs to prefer the GUI version.

Cross linking a neovim issue re hats - https://github.com/neovim/neovim/issues/21603.

Can we say that this is not needed anymore? For example, for neovim, i was just able to use the cursorless existing abstraction to run the existing code into a node process started by neovim.

Yeah I'm not sure how helpful this issue is. I don't think a generic standalone node server is going to be helpful. In some sense you have put Cursorless in a node server already, so one might argue you've started on this issue.


Extension parameters

Hey,
How to pass parameters(values for top and bottom frames) when an extension deployed in Office 365 CDN?

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

ID: 6d2c1cca-c6ef-9eb5-fcbb-78c7481b359e
Version Independent ID: 66783ae9-b10e-5dc7-8a79-4d252ea8a9a7
Content: Host extension from Office 365 CDN (Hello World part 4)
Content Source: docs/spfx/extensions/get-started/hosting-extension-from-office365-cdn.md
Service: unspecified
GitHub Login: @spdevdocs
Microsoft Alias: spdevdocs

How to made cdnBasePath dynamic? So i don't need to perform compilation for each customer with their own tenant ? thanks

You would need to host a CDN outside of Microsoft so that users would not need to authenticate to access it.
I would suggest against this though because it may be more of a headache for you but your clients are going to want to "own" any code you deploy to them. Otherwise, what is stopping you from discontinuing hosting the application and then they are left without the product

@peterremote1980 When you create a new project using SharePoint Framework generator v1.4.x, by default it includes assets in the solution package (.sppkg). This is denoted by the includeClientSideAssets: true property in the config/package-solution.json file in your project.
When you deploy the project to SharePoint, it will automatically extract the assets from the package and deploy them to a designated document library. If the Office 365 Public CDN is enabled in your tenant, SharePoint will also automatically retrieve files from the CDN. All this is automated and allows you to deploy the same solution to different tenants without having to rebuild it.

@aslanovsergey parameters are specified in the feature that enables the extension on the site collection where you install the solution.
Following is a sample elements.xml file created for an extension:
<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
    <CustomAction
        Title="HelloWorld"
        Location="ClientSideExtension.ApplicationCustomizer"
        ClientSideComponentId="c0926bea-9179-4a90-a0e2-f8412eadfd9a"
        ClientSideComponentProperties="{"testMessage":"Test message"}">
    </CustomAction>
</Elements>

The ClientSideComponentProperties attribute contains a JSON string with properties that will be passed on runtime to the extension.


[Azure Build Pipeline] : Validation Step fails with Windows 2019 Agent

Validation Step fails with Windows 2019 Agent in the Build Pipeline.
Error : Location was not provided (even though the region being specified in the ARM Deployment).
If you switch to Windows 2017 Agent, works perfectly.
After some research it looks like Windows 2019 looks for latest 2019 (preview) schema based deployment templates.

Switched to new pipelines recently, so this is no longer valid.


Resolved : # 168  Enhanced UI of HeadPhone Section

Resolved Issue #168
Sample :
https://github.com/codervivek5/VigyBag/assets/105661636/4fdf34d2-338d-407a-ba2b-98e7d7630c4c

work awesome.
I need this type of effect.
Thank you for your contribution.
kindly solve the merge conflict so that I can merge your PR.

Thankyou for contribution.


Custom Appname

Fix #64
:smile_cat:

Good idea.

What about the main name: nimwc.nim

Recompile proc:
https://github.com/ThomasTJdev/nim_websitecreator/blob/c96243695e3dfb80a838c1727aa9b8be3845c00b/nimwcpkg/nimwc_main.nim#L264-L268

^^ Using NimWC with systemd is still exec with nimwc. nimwc_main is only a child-process.


Can tables displayed  group by host ?

Metrics Example ：
A Query mode = cpu user time
B Query mode =  uptime
C query mode = ......and more items.
Can Tables displayed  group by host like this ?
hostA   30%    20days
hostB   10%    60days
......more and more
I choice the Table Transform to the Annotations or Table ,but can't set the Columns.

Duplicated by #282


Error while using OpenCV

julia> using OpenCV
ERROR: LoadError: LoadError: LoadError: could not open file /home/karan/.julia/v0.5/Cxx/src/../deps/build/clang_constants.jl
in include_from_node1(::String) at ./loading.jl:488 (repeats 3 times)
in eval(::Module, ::Any) at ./boot.jl:234
in require(::Symbol) at ./loading.jl:415
in include_from_node1(::String) at ./loading.jl:488
in eval(::Module, ::Any) at ./boot.jl:234
in require(::Symbol) at ./loading.jl:415
while loading /home/karan/.julia/v0.5/Cxx/src/typetranslation.jl, in expression starting on line 433
while loading /home/karan/.julia/v0.5/Cxx/src/Cxx.jl, in expression starting on line 158
while loading /home/karan/.julia/v0.5/OpenCV/src/OpenCV.jl, in expression starting on line 27

From the snippet you sent, it seems there is an issue with Cxx.jl support for the latest state of OpenCV.jl.
while loading /home/karan/.julia/v0.5/Cxx/src/typetranslation.jl, in expression starting on line 433
while loading /home/karan/.julia/v0.5/Cxx/src/Cxx.jl, in expression starting on line 158

Unfortunately, I have not used julia v0.5 so I cannot help you right now.  Does your Cxx.jlinstallation alone work well with julia v0.5?

This issue is not likely related to OpenCV.jl itself.  I can confirm that with the latest julia 0.6.0-pre.alpha.49, commit eca966c this error can not be reproduced (MacOS 10.12.3).  Please try 0.6.0-pre.alpha.49 and if the same issue comes up, report it here again.


Add test cases to JSONLexerBase files

Covering branch :(ch >= 'A' && ch <= 'F').

Codecov Report

Merging #2675 into master will decrease coverage by <.01%.
The diff coverage is n/a.

@@             Coverage Diff              @@
##             master    #2675      +/-   ##
============================================
- Coverage     81.26%   81.26%   -0.01%
- Complexity     7032     7034       +2
============================================
  Files           143      143
  Lines         26249    26249
  Branches       6275     6275
============================================
- Hits          21331    21330       -1
+ Misses         3104     3099       -5
- Partials       1814     1820       +6

Impacted Files
Coverage Δ
Complexity Δ

...ava/com/alibaba/fastjson/serializer/DateCodec.java
87.58% <0%> (-1.97%)
37% <0%> (-1%)

...com/alibaba/fastjson/parser/JSONReaderScanner.java
72.61% <0%> (-1.28%)
44% <0%> (-1%)

...ava/com/alibaba/fastjson/parser/JSONLexerBase.java
71.41% <0%> (+0.12%)
812% <0%> (+4%)
:arrow_up:

Continue to review full report at Codecov.

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


Performance issues

Describe the bug
There's high spikes in CPU usage whenever there's some sort of modal open. Be it the settings, user profile popout (The bigger one), or even clicking on photos. Its very bad.
To Reproduce
Just open settings or profile of a user by right clicking
Infomation (please complete the following information):
Discord channel: Canary
OS: Windows
Mod: Powercord
Discord language: English

That is because of the use of backdrop-filter. Nothing I can do about it other than completely removing it, which I am not going to do.

Could it be a toggle which could be on by default? I really like the theme but would prefer it to be lag free 😅

May I give some suggestions to workaround this issue
It is obviously caused by the animation making a 60 fps for 0.2 seconds of that backdrop blur, making it a huge mess performance wise.
I have 2 suggestions for this
First option, in case of backdrop and settings I think a blur filter can be instantly applied to the layer that hold everything but backdrop and settings layer, which means chat, server, members etc... blurring globally that part of the UI without tying it to the class that has the animation with a filter rather than using a backdrop-filter for settings and backdrop tabs
My other option which I am unsure if it would actually fix, but would be adding to from and to in the keyframes of fadeIn with the property of backdrop filter with the value set from the beggining rather than making it compute the blur, this also means the blur won't gradually come in which tbh is what causes the issues anyways, so it being gone seems fine to me

Both would still cause the massive lag. The only fix is if I remove them from the entire theme. Which I will not do.

Could it be a toggle which could be on by default just like glow? I really like the theme but would prefer it to be lag free 😅

Not possible with CSS. You either have it in, or no.

Not possible with CSS. You either have it in, or no.
Welp. Alright thanks.

I tried out Sly's CSS snippet and it seems to work! It reduces the lag by a lot.


Event Schedule: Promo styles for /whats-on/ and /events/

Looking at treatment of promos for event series so that the series can be promoted and identified more easily.

@jennpb I updated the issue name from 'Event Series' to 'Event Schedule'.

We have designs for event and event series promos ready to go once we do a promo system audit.


[BUG] 🐛 🕷 🐞 wrong superlative for Finnish 'halpa'

uralicNLP.generate(query="halpa+A+Superl+Sg+Nom", language="fin")
expected: [('halvin', 0.0)]
actual: [('halvoin', 0.0)]
Seems like probably a giellalt issue, but do they even have an issue tracker?
Also, what is the meaning of 0.0 as the second element of like every single tuple? What is that for?

You can report issues in https://github.com/giellalt/lang-fin/issues
0.0 is the weight of the analysis, none of the transducers currently have weights, but the functionality is there in case someone decided to implement them.

Thank you for your very quick and informative response, and apologies for my slower one!
As suggested, I have opened this issue at the lang-fin issue tracker.


Cleanup

Going to restore gearman functionality before merge

Looks good. Can you tag current master and then add a version bump here?


Fixed issue #471  Forgot password using Firebase Authentication

This pull request resolves the issue no #471 and implements forgot password using firebase authentication

Summary by CodeRabbit

New Features

Introduced a "Forgot Password" feature, allowing users to request a password reset email.

Enhancements

Added a direct link to the "Forgot Password" page from the Login screen.
Improved the user experience for password recovery from the Signup page.

Hey @nakul30 the issue seems to be fixed , however can we also change the styling of the password reset page or is it default by firebase ?

Hey @nakul30 the issue seems to be fixed , however can we also change the styling of the password reset page or is it default by firebase ?

Its by default by the firebase

Hey @nakul30 the issue seems to be fixed , however can we also change the styling of the password reset page or is it default by firebase ?

Its by default by the firebase

Ohk no problems, but make sure that localhost:5173/forgot-password route automatically redirects to /u/dashboard if a user is already logged in, like currently if a user is logged in and he/she goes to /login then they are automatically redirected to /u/dashboard

Hey @nakul30 the issue seems to be fixed , however can we also change the styling of the password reset page or is it default by firebase ?

Its by default by the firebase

Ohk no problems, but make sure that localhost:5173/forgot-password route automatically redirects to /u/dashboard if the user is already logged in, like currently if a user is logged in and he/she goes to /login then they are automatically redirected to /u/dashboard

I have just fixed this issue in my new Commit. I have updated the code and now it will redirect to dashboard if user is already logged in

Great!, just one more change use firebase to pass state in action email and redirect the user back to login page once he has reset his password using the email link.
For more information read - [https://firebase.google.com/docs/auth/web/passing-state-in-email-actions]

Great!, just one more change use firebase to pass state in action email and redirect the user back to login page once he has reset his password using the email link.
For more information read - [https://firebase.google.com/docs/auth/web/passing-state-in-email-actions]

I have written the code in way that login button appears after the link is sent so in case the wrong email address is filled user not have to shift the pages

After the user has successfully reset the password on fireabase's page the current workflow looks like this :
reset password mail -> link click -> new password enter -> password sucessfully reset -> close that tab -> then go to digitomize.com/login
What I meant after the following tab appears, fireabase should automatically redirect the user to /login , without him closing this tab then going to login himself

After the user has successfully reset the password on fireabase's page the current workflow looks like this : reset password mail -> link click -> new password enter -> password sucessfully reset -> close that tab -> then go to digitomize.com/login
What I meant was after the following tab appears, fireabase should automatically redirect the user to /login , without him closing this tab then going to login himself

It can be achieved through the docs I sent before

Alright Anurag, I an just working on it

After the user has successfully reset the password on fireabase's page the current workflow looks like this : reset password mail -> link click -> new password enter -> password sucessfully reset -> close that tab -> then go to digitomize.com/login
What I meant was after the following tab appears, fireabase should automatically redirect the user to /login , without him closing this tab then going to login himself

It can be achieved through the docs I sent before

Alright Anurag, I an just working on it

I am unable to import ActionCodeSettings in my component as it is leading to Appcrash

Check this Anurag i think its alright now

Check this Anurag its alright now

Do I need to add anything in my firebase app console as it is giving me this error - Firebase: Domain not whitelisted by project (auth/unauthorized-continue-uri).

Check this Anurag its alright now

Do I need to add anything in my firebase app console as it is giving me this error - Firebase: Domain not whitelisted by project (auth/unauthorized-continue-uri). ?

you have to put the login domain in authorized domains of the app in the firebase

Great work @nakul30 , that's all we needed for the complete working of the forgot-password issue. I will merge this PR.
Please send the email template and how to set in firebase ?

Great work @nakul30 🙌 , that's all we needed for the complete working of the forgot-password issue. I will merge this PR.
Please send the email template and how to set in firebase ?

You can find the template in Template section of Authentication window in Firebase.
There you can set custom actionurl too.

@nakul30 I've added you as a contributor in our repository's readme. Keep contributing .
Thanks! 😄


Upgrade issues

Attempted Debugging

[X] I have read the debugging page

Searched GitHub Issues

[X] I have searched GitHub for the issue.

Describe the Scenario
I have tried to upgrade recent release 22.10 and i got issues as below
SQLSTATE[42S01]: Base table or view already exists: 1050 Table 'references' already exists (SQL: create table references (id bigint unsigned not null auto_increment primary key, from_id int unsigned not null, from_type varchar(25) not null, to_id int unsigned not null, to_type varchar(25) not null) default character set utf8mb4 collate 'utf8mb4_unicode_ci')
at vendor/laravel/framework/src/Illuminate/Database/Connection.php:712
708▕         // If an exception occurs when attempting to run a query, we'll format the error
709▕         // message to include the bindings with SQL, which will make this exception a
710▕         // lot more helpful to the developer instead of just the database's errors.
711▕         catch (Exception $e) {
➜ 712▕             throw new QueryException(
713▕                 $query, $this->prepareBindings($bindings), $e
714▕             );
715▕         }
716▕     }
  +9 vendor frames

10  database/migrations/2022_08_17_092941_create_references_table.php:22
Illuminate\Support\Facades\Facade::__callStatic()
  +22 vendor frames

33  artisan:37
Illuminate\Foundation\Console\Kernel::handle()
Exact BookStack Version
22.10
Log Content
No response
PHP Version
8.X
Hosting Environment
20.04

Hi @rajengg23,
This indicates there may have been unaddressed issues upon a previous upgrade.
Before anything, ensure your system/data is backed-up.
Are you familiar with performing operations on the database?
If so, please try dropping the references table in your BookStack database, then re-run the php artisan migrate step, noting any errors that appear on first run of that command.
If you need guidance for make those database changes, let me know but I'd ideally need to know a little extra about your environment, such as is that Ubuntu? And did you originally use our install script?

Hello,
I also have problems after the update to 22.10 (it's the first update for this installation). I can log in to bookstack with 2FA and then see only a blank page.
In the Apache Error Log I find the following:
n#49 {main}\n\nNext Illuminate\\Database\\QueryException: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'view' in 'where clause' (SQL: select count(*) as aggregate from entity_permissionswhereview= 1 androle_idin (1) andentity_type= bookshelf) in /var/www/bookstack/vendor/laravel/framework/src/Illuminate/Database/Connection.php:712\nStack trace:\n#0 /var/www/bookstack/vendor/laravel/framework/src/Illuminate/Database/Connection.php(672): Illuminate\\Database\\Connection->runQueryCallback()\n#1 /var/www/bookstack/vendor/laravel/framework/src/Illuminate/Database/Connection.php(376): Illuminate\\Database\\Connection->run()\n#2 /var/www/bookstack/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2414): Illuminate\\Database\\Connection->select()\n#3 /var/www/bookstack/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2402): Illuminate\\Database\\Query\\Builder->runSelect()\n#4 /var/www/bookstack/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(293
Apache Access Log
[24/Oct/2022:19:17:13 +0000] "POST /mfa/totp/verify HTTP/1.1" 302 1874 "https://wiki.xxx.tld/mfa/verify" "Mozilla/5.0 (X11; Linux x86_64; rv:105.0) Gecko/20100101 Firefox/105.0" <IP_ADDRESS> - - [24/Oct/2022:19:17:13 +0000] "GET / HTTP/1.1" 500 185 "https://wiki.xxx.tld/mfa/verify" "Mozilla/5.0 (X11; Linux x86_64; rv:105.0) Gecko/20100101 Firefox/105.0"
Host Ubuntu 22.04
Bookstack  Update from 22.09 to 22.10

@geoigeek Your database does not look up-to-date. Please open a new issue so you can detail your specific environment and issue, and include the output of running the php artisan migrate update step.

Yes, I did but when I run php migrate it’s giving same error.
On Mon, Oct 24, 2022 at 3:03 PM Dan Brown @.***> wrote:

@geoigeek https://github.com/geoigeek Your database does not look
up-to-date. Please open a new issue so you can detail your specific
environment and issue, and include the output of running the php artisan
migrate update step.
—
Reply to this email directly, view it on GitHub
https://github.com/BookStackApp/BookStack/issues/3800#issuecomment-1289613673,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AJAHM7Y2CIU4KFC3XNLVN7LWE32R5ANCNFSM6AAAAAARMO6B5E
.
You are receiving this because you were mentioned.Message ID:
@.***>

--
Thanks & Regards
Jay Prakash Pandey
8147708281

@rajengg23 That last message was targeted for a different user.
If you were responding to my previous comment, Please confirm exactly how you're performing the requested step to drop the suggested table, and the exact command line output after first run of the migrate command after performing the table drop operation.

I tried drop table references; using MySQL
On Mon, Oct 24, 2022 at 5:29 PM Dan Brown @.***> wrote:

@rajengg23 https://github.com/rajengg23 That last message was targeted
for a different user.
If you were responding to my previous comment, Please confirm exactly how
you're performing the requested step to drop the suggested table, and the
exact command line output after first run of the migrate command after
performing the table drop operation.
—
Reply to this email directly, view it on GitHub
https://github.com/BookStackApp/BookStack/issues/3800#issuecomment-1289776923,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AJAHM7Y7LZFZ7RVC3XXO2YLWE4LVZANCNFSM6AAAAAARMO6B5E
.
You are receiving this because you were mentioned.Message ID:
@.***>

--
Thanks & Regards
Jay Prakash Pandey
8147708281

I got Error as below
In Connection.php line 712:
SQLSTATE[42S01]: Base table or view already exists: 1050 Table 'references'
already exists (SQL: create table references (id bigint unsigned not n
ull auto_increment primary key, from_id int unsigned not null, from_type    varchar(25) not null, to_id int unsigned not null, to_type varchar(25
) not null) default character set utf8mb4 collate 'utf8mb4_unicode_ci')
this is never happen i have change to fresh and then restore the database but remain on same issues

this is never happen i have change to fresh and then restore the database but remain on same issues

If you are creating a fresh bookstack install, with migrated database, then restoring your old database into it, then I'd expect this error to occur. You should only restore into a fresh database with no existing tables.
If you are properly dropping the references table you should not see that reported error. Again, Please confirm exactly how you're performing the requested step to drop the suggested table and any steps you're performing to ensure the table has been dropped.

Since there's been no follow-up I'm going to close this. If the issue remains and is something you still require to be fixed respond to my previous comment and this can then be re-opened.

Dan it’s not completed do you have steps to drop?
On Fri, Nov 4, 2022 at 5:41 AM Dan Brown @.***> wrote:

Closed #3800 https://github.com/BookStackApp/BookStack/issues/3800 as
completed.
—
Reply to this email directly, view it on GitHub
https://github.com/BookStackApp/BookStack/issues/3800#event-7739987729,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AJAHM73NEANHJX6YTW6HUZTWGTZAFANCNFSM6AAAAAARMO6B5E
.
You are receiving this because you were mentioned.Message ID:
@.***>

--
Thanks & Regards
Jay Prakash Pandey
8147708281

Dan it’s not completed do you have steps to drop?

Backup the system/all-data first.

Access MySQL, typically via sudo mysql -u root
Select your database, typically use bookstack; assuming you're BookStack database is called bookstack within mysql.
Drop the table via drop table references;.
Exit mysql exit;
Re-attempt migration, noting any errors shown on first php artisan migrate command run.

For information, i had to add '' to make it work so


Determine Best Auth Solution

Current Situation
This stems from discussion in https://github.com/idom-team/idom/discussions/768
As explained in https://github.com/phihos/idom-auth-example-sanic, the problem we need to solve is how to securely authenticate users inside an IDOM single page application. Usually authentication is done via Cookie or Authorization header on each HTTP request. But after the websocket connection has been established no further HTTP requests and therefore no further headers will be sent. However, there are some ways you could try to work around this:

You could push some Javascript via html.script that sends a separate auth request to your auth API and then reloads the page to reestablish the websocket connection with new auth headers, but this is kinda ugly. It defeats the purpose of IDOM not having to write any Javascript and having a visible reload has a negative impact on the user-experience.

You could also render the login page traditionally and then redirect to a new page with embedded IDOM . But then you already split your application into two parts: "pre-auth" with traditional server-side template rendering and "post-auth" with IDOM. Keeping both parts consistent is probably not fun.

You can also do authentication inside the single page app and save the auth state via use_state. But it will be gone as soon as a websocket disconnect happens. You can mitigate this by pushing some Javascript that sets a session cookie. But now there is a new problem: Session cookies should be set with the HttpOnly flag to prevent XSS attacks from recovering the session cookie. This can not be done (or at least is difficult to do) with Javascript. So you might end up with a security flaw in your app.

Since you have at least one full HTTP request-response cycle you can set a session cookie with a session ID on that response if the request does not already contain a cookie with a valid session ID. That ensures that the following request for the websocket connection always contains a session ID cookie. With use_request we can extract the session ID and then the server can retrieve the session data. In that data we can look up the authentication state and let IDOM display a login form or the actual content. We can later manipulate the session data to perform a login or logout. All without the need to set a further cookie or push Javascript - provided we implement a server-side session. A rough prototype for this has been implemented here based on work done in https://github.com/phihos/idom-auth-example-sanic.

Proposed Actions
Explore the viability of each option.

As a note, Conreq currently uses approach 2.
Handling this will likely need us to dive deep into the authentication systems of each framework we support.

Maybe the API will look something like this:
@component
def my_component():
    auth_manager = hooks.use_auth()

    # Returns a IDOM session dataclass that contains any auth data, such the active user
    print(auth_manager.session)

    # Direct pass-through to the backend framework's authentication system
    # but also sets cookies within the client. This will likely require us to allow kwargs.
    auth_manager.login(username="username", password="password")

    # Direct pass-through to the backend framework's authentication system
    # but also invalidates cookies within the client
    auth_manager.logout()

    # Attempts to re-validate whether the user is currently logged in (cookies still valid)
    # and returns a boolean
    auth_manager.validate_session()

Should we should beta test this as a standalone hook within django-idom, and migrate it to core? Similar to how we are currently moving use_location/use_websocket/etc hooks to core after first being developed in django-idom.
If so then I can draft a version of this fairly quickly.

I updated the issue description here. I think we need to explore these options more deeply.

However, that doesn't really provide components the user's authentication information, nor does it give a way to login/logout/validate a user session within IDOM components.
Feels a bit disjointed to me.

Ok, so I did a bit more reading and I found that option (4) is an established pattern. There are the examples of server-side session managers for frameworks like Flask via databases like Redis.

I'm still not convinced this is a 1.0 milestone though, we're getting pretty deep into scope creep for the 1.0 release.

The scope of this issue is mostly focused on finding the best option. Not necessarily on implementing it. I'd at least like to have a prepared answer if someone asks and ideally have something documented.

I think you're right though. Most people who initially adopt IDOM are probably going to be making internal facing services that don't need app level auth.

Would using one of the backend auth libraries (such as flask-login) not work?

@ajvogel I'm not familiar with that specific library, but it depends solely on how well the library interacts with running on an async websocket.

@ajvogel, I suspect that flask-login might not help here unfortunately. Flask login would basically require solution number 2. In the long-run I think we're probably going to run with solution number 4.

@ajvogel, if this is blocking for you, can you upvote this issue? It will help us prioritize what we should work on.

I'm realizing we now have a new solution open to us given our "ReactPy as middleware" concept.
Our auth solution can be implemented similar to the Django Channels AuthMiddleware, which effectively just adds a scope['user'] database model to the scope.

That's more of a new interface than an implementation. Determining the identity of the user still requires one of the options list above.

We Need some thing like Cookie or LocalStorage or SessionStorage to solve auth problem
Expecting the solution before New Year

I will be exploring authentication within ReactPy-Django, using that as our ground-zero for testing out authentication methods. This will require the use_messenger hook to get merged in.
My cursory exploration tells me this will get really messy for adding support to every possible backend. It's only barely possible due to how Django is so batteries-included.
The future likely involves telling people to use JavaScript (#894 and #1001).


Issue #4573 fixed.

Issue #4573 fixed.

@rahulshukla-webkul
out of stock item is still visible on search page, compare page, wishlist section if already added

@rahulshukla-webkul

[ ] By default out of stock configuration should be true https://prnt.sc/zlet8g
[ ] Wishlist or compare count will not get an update if item gets out of stock from wishlist or compare https://prnt.sc/zlf1za


Nornir support on windows 10?

Hi Kirk,
I read your article "Using Nornir for OS Upgrades (Part 1)" and it is really nice article.
During the reading, i have couple of question. I would appreciate if you can help me with these queries I am using Windows 10 machine.

Where should i keep hosts.yaml and groups.yaml on windows path?
Nornir is supported fully on windows?

No Worries Kirk!
I found it, i got little bit confused. Good for now.

@chiragvyas50 Let me know if Nornir works on Windows (or not). I don't know if it has been tested or not.

Yes Kirk, I tested it and it is working fine on Windows!
I have my Python setup on Windows machine, Let me know whenever you want to do any testing on Windows side!

Yes, it would be interesting to know if Nornir 2.0 works on Windows or not. I have some details here on how to install Nornir 2.0.
https://pynet.twb-tech.com/blog/nornir/os-upgrade-p1.html

Hi Kirk,
Sorry for late replay, i got stuck with some other stuff so coudn't reply this thread. Anyways, i did testing on my windows 10 machine for Nornir 2.0 and it is working perfectly fine.
Conclusion
Nornir 2.0 & 1.1 works on Windows 10! I have installed git on my laptop before installing Nornir 2.0(Obviously i would need git on laptop...lol !!)
Here are the steps that i followed on Windows Machine

Uninstall Norni 1.0 (It is not necessary though, i just uninstalled because i wanted to see the fresh Nornir 2.0 copy)
Install Git for Windows
Followed your instruction about installing Nornir 2.0
i used "C:\Python37\Lib\site-packages" as home directory for Nornir 2.0 because all other libraries are installed at this location on my computer
Tested using Small Python Script to fetch "Show ip int brief" output on 3 devices
It is Working!!!

Below are the traces if someone need detail
Uninstall Norni 1.0
C:\Python37\Lib\site-packages>pip uninstall nornir
Uninstalling nornir-1.1.0:
Would remove:
c:\python37\lib\site-packages\nornir-1.1.0.dist-info*
c:\python37\lib\site-packages\nornir*
Would not remove (might be manually added):
c:\python37\lib\site-packages\nornir\core\hosts.yaml
c:\python37\lib\site-packages\nornir\core\new text document.txt
c:\python37\lib\site-packages\nornir\plugins\inventory\hosts.yaml
Proceed (y/n)? y
Successfully uninstalled nornir-1.1.0
Install Norni 2.0
C:\Python37\Lib\site-packages>git clone https://github.com/nornir-automation/nornir
Cloning into 'nornir'...
remote: Counting objects: 4333, done.
remote: Compressing objects: 100% (162/162), done.
remote: Total 4333 (delta 130), reused 196 (delta 99), pack-reused 4066R
Receiving objects: 100% (4333/4333), 2.11 MiB | 5.81 MiB/s, done.
Resolving deltas: 100% (2590/2590), done.
C:\Python37\Lib\site-packages>cd nornir
C:\Python37\Lib\site-packages\nornir>git branch

develop

C:\Python37\Lib\site-packages\nornir>git fetch origin
C:\Python37\Lib\site-packages\nornir>git checkout -b 2.0 origin/2.0
Switched to a new branch '2.0'
Branch '2.0' set up to track remote branch '2.0' from 'origin'.
C:\Python37\Lib\site-packages\nornir>git branch

2.0
develop

C:\Python37\Lib\site-packages\nornir>pip install -r ./requirements-dev.txt
C:\Python37\Lib\site-packages\nornir>pip install -e .
Verify Version of the nornir
C:\Python37\Lib\site-packages\nornir>pip list

Package
Version
Location

nornir
2.0.0
c:\python37\lib\site-packages\nornir

C:\Python37\Lib\site-packages\nornir>pip show nornir
Name: nornir
Version: 2.0.0
Summary: Fighting fire with fire
Home-page: https://github.com/nornir-automation/nornir
Author<EMAIL_ADDRESS>Author-email: None
License: Apache License, version 2
Location: c:\python37\lib\site-packages\nornir
Requires: colorama, jinja2, napalm, netmiko, paramiko, future, requests, ruamel.yaml, mypy-extensions
Required-by:

Thank you 👍 , very usefull.

Hi

Hi Kirk,
Sorry for late replay, i got stuck with some other stuff so coudn't reply this thread. Anyways, i did testing on my windows 10 machine for Nornir 2.0 and it is working perfectly fine.
Conclusion
Nornir 2.0 & 1.1 works on Windows 10! I have installed git on my laptop before installing Nornir 2.0(Obviously i would need git on laptop...lol !!)
Here are the steps that i followed on Windows Machine
* Uninstall Norni 1.0 (It is not necessary though, i just uninstalled because i wanted to see the fresh Nornir 2.0 copy)

* Install Git for Windows

* Followed your instruction about installing Nornir 2.0

* i used "C:\Python37\Lib\site-packages" as home directory for Nornir 2.0 because all other libraries are installed at this location on my computer

* Tested using Small Python Script to fetch "Show ip int brief" output on 3 devices

* It is Working!!!

Below are the traces if someone need detail
Uninstall Norni 1.0
C:\Python37\Lib\site-packages>pip uninstall nornir
Uninstalling nornir-1.1.0:
Would remove:
c:\python37\lib\site-packages\nornir-1.1.0.dist-info*
c:\python37\lib\site-packages\nornir*
Would not remove (might be manually added):
c:\python37\lib\site-packages\nornir\core\hosts.yaml
c:\python37\lib\site-packages\nornir\core\new text document.txt
c:\python37\lib\site-packages\nornir\plugins\inventory\hosts.yaml
Proceed (y/n)? y
Successfully uninstalled nornir-1.1.0
Install Norni 2.0
C:\Python37\Lib\site-packages>git clone https://github.com/nornir-automation/nornir
Cloning into 'nornir'...
remote: Counting objects: 4333, done.
remote: Compressing objects: 100% (162/162), done.
remote: Total 4333 (delta 130), reused 196 (delta 99), pack-reused 4066R
Receiving objects: 100% (4333/4333), 2.11 MiB | 5.81 MiB/s, done.
Resolving deltas: 100% (2590/2590), done.
C:\Python37\Lib\site-packages>cd nornir
C:\Python37\Lib\site-packages\nornir>git branch
* develop

C:\Python37\Lib\site-packages\nornir>git fetch origin
C:\Python37\Lib\site-packages\nornir>git checkout -b 2.0 origin/2.0
Switched to a new branch '2.0'
Branch '2.0' set up to track remote branch '2.0' from 'origin'.
C:\Python37\Lib\site-packages\nornir>git branch
* 2.0
  develop

C:\Python37\Lib\site-packages\nornir>pip install -r ./requirements-dev.txt
C:\Python37\Lib\site-packages\nornir>pip install -e .
Verify Version of the nornir
C:\Python37\Lib\site-packages\nornir>pip list
Package 	Version 	Location
nornir 	2.0.0 	c:\python37\lib\site-packages\nornir
C:\Python37\Lib\site-packages\nornir>pip show nornir
Name: nornir
Version: 2.0.0
Summary: Fighting fire with fire
Home-page: https://github.com/nornir-automation/nornir
Author<EMAIL_ADDRESS>Author-email: None
License: Apache License, version 2
Location: c:\python37\lib\site-packages\nornir
Requires: colorama, jinja2, napalm, netmiko, paramiko, future, requests, ruamel.yaml, mypy-extensions
Required-by:

Could you please give details on this?
Followed your instruction about installing Nornir 2.0
Thanks
BR!
HA


HasOne give integer or string type for id

My objects :
use Jenssegers\Mongodb\Eloquent\Model as MongoModel;
class FacebookAdLabel extends MongoModel
{
    protected $connection = 'mongodb';
     public function franchisee()
    {
        return $this->belongsTo(Franchisee::class);
    }
}

use Illuminate\Database\Eloquent\Model;
class Franchisee extends Model
{
    protected $connection = 'mysql';
    use HybridRelations;
     public function franchisee()
    {
        return $this->hasOne(FacebookAdLabel::class, 'facebook_label_id', 'id');
    }
}

in my form i did :
 {{dd($model->facebookAdLabel() )}} i got :

but in my back i did : dd($franchisee->facebookAdLabel()); and i got :

So I'm unable to work with this relationship, i really dont know what is the difference between them.

It seems to be a weird bug from Laravel, i'll investigate


Xero integration

Send invoices to xero from link_db
Upload orders that went via bacs (line items not flagged as online)

from either a found set or query

anything not sent to xero
flagged as bacs (or just not online, investigate)
send invoice number, customer, vat, due date etc
doesn't need to explicitly link to customer, except if xero - does that auitomatically via email
new invoice should be approved rather than draft

Resources
https://pypi.org/project/xero-python/#xero-account-requirements

This does not look simple enough to complete in the time allocated, due to the complexities of Oauth authentication.
The postman collection and instructions from Xero do not appear to work as advertised.

Suggestion is that instead outputting a properly formatted CSV with the appropriate column headings would allow import into Xero more easily.

Will open distinct ticket for CSV task


a typo bug in @vue/cli-service

https://github.com/vuejs/vue-cli/blob/2953e2214a63808f4f097008a0d3872da698d3c2/packages/%40vue/cli-service/lib/options.js#L99
should be "integrity".

fixed in 7ec466dd


better handle docs 'comment' sections/parts

Better handling for markdown text sections in docs "comment" data.
Fixes this:
https://github.com/elm-lang/package.elm-lang.org/issues/121
While keeping support for complex cases like:
https://github.com/evancz/elm-html/blob/master/src/Html/Attributes.elm#L42-L44
https://github.com/elm-lang/package.elm-lang.org/pull/127#issuecomment-167355323
Code Reviews are happily welcomed

You don't need to have a double newline, though I guess that'll be very common.
I feel like the real bug is in subChunkHelp, possibly here or here or here where I tried to throw the "rest" in a markdown block.
I just don't see how the current code is going astray. Maybe the regex's are doing something weird? I'd maybe try the bad SSCCE string with subChunkHelp and some Debug.log and REPL to figure out exactly what is happening.

I see. I'll take a look at this tomorrow!

Cool, thanks for working on this!
And for context, I'm being a stickler about things like \n\n because I'm 95% sure that'll break some other docs that we aren't looking at right now. The real rules are like:

any @docs must appear on a newline with no spaces before it
every @docs must be followed by one value
if there is a comma after that value, it must be followed by one more value
repeat 3 until there is not a comma

So unless the paragraph starts with a comma, there should be no issue. The PRs so far seem to be adding additional rules to this, which could rule out "valid" documentation. (If we are going to make the website have stricter rules, we should first do it in elm-compiler. That is a totally separate discussion though.) All this makes me think that maybe there's some problem with isValue or something where something with spaces can sneak through.

Thanks for the info! I think I get the real issue now.
PS: I'm a level 90 regexomancer so I should be able to fix it ;D

The double newline is a neat tricky, but I'm guessing it will fail with
@docs thing1,

  thing2

and
@docs thing1
Some comment here without a newline break, and it has a comma.

Note that the compiler currently requires that for multi-line listing, all subsequent lines start indented. It is accepted, but not common, for non-@docs lines to be indented.
That said this is a lot shorter than mine. If it can be made to work in all cases, then that's great.

@evancz with the current implementation things like thing2\n\nHere is text in the middle of the docs that is about to have a comma, and here is text after it that does not show up.\n\n where getting split by  https://github.com/elm-lang/package.elm-lang.org/blob/master/src/frontend/Component/PackageDocs.elm#L236
then ["thing2", "Here is text in the middle of the docs that is about to have a comma"] gets processed by https://github.com/elm-lang/package.elm-lang.org/blob/master/src/frontend/Component/PackageDocs.elm#L264 and dropped the " and here is text after it that does not show up."because that case did nothing with the remainingParts where this part of the string is contained.
the current PR  handles this case by joining the trimmedPart, and the remainingParts before producing the markdown text in this case.
I've tested the sscce, the complex cases,  and other docs and while it works beautifully, I think the current "value parsing/getting" implementation is a bit hacky and might need to be revamped in the future in a way such that it actually cross-checks for values against the docs, or describes the documentation rules in a clearer way.

By "complex cases", you mean the ones from my last post? If so, sounds good to me.

@mgold yes both the ones that you just posted here and these:
https://github.com/evancz/elm-html/blob/master/src/Html/Attributes.elm#L42-L44
https://github.com/elm-lang/package.elm-lang.org/pull/127#issuecomment-167355323

Whoo, awesome work @burabure! The fix should be live starting now. Let me know if anything is terribly wrong!

About checking that the docs are actually valid, the website assumes that they are because elm-make actually does check all these things. So the assumption is that elm-package will ensure that things are fine before uploading anything. It is conceivable that someone could sneak bad stuff through by modifying the docs JSON by hand, but I'd consider that vaguely malicious behavior.
So my preference would be to close the loophole in uploading rather than duplicating the code for validating docs (which is somewhat tricky)

:tada: Confirming the fix works in production. Thanks! :confetti_ball:

:tada: Yay! :tada:
PS: Just noticed that there where massive parts of valuable core documentation missing because of the comma issue.
this one is from elm-html

Yeah, that's a particularly bad one! :(
Well, thank you to @mgold and @burabure for sorting this out! Sorry it was a longer process, but I'm glad we got it sorted out with the tiny fix! :D

happy to help ;D

Hell yeah! Great work! :D


fix some clippy warnings

Thank you for the PR!
Can you explain the benefit of the change to unwrap_or_else? I'm not sure if I understand the value

Ahh, I see now. Using unwrap_or executes the call unconditionally, which hurts performance as it creates the fallback locale irrelevant of the result of the primary call.
That makes sense! :)


Improve unit test coverage for ServiceIOGroup and BatchServer

estimate 2

The ServiceIOGroup and BatchServer have some negative test cases missing, and so there is not good coverage of exception management.
Done criteria:

[x] Pull request that improves coverage is merged
[x] Test cases are added that cover exceptions

Pull request #2007 was merged into dev.


Cannot search for proposed class

When you propose new class, you cannot search it:
Steps:

Run for books-v1
Propose new class e.g. Person123 in dbpedia Jan. Try to search for that

@JanVana I thought this was solved? Any comments to that?
At least pls let me know why that does not work

Probably caused by https://github.com/odalic/sti/issues/459

A cannot reproduce this issue on my side. I can find the Person123 and also any newly proposed resource/class. I have also verified that the proposed resources are saved. If anyone else have the same problem, please comment here.

Person 123 properties:
select ?property ?value {<http://odalic.eu/schema/4cc9106a-8bfc-44c7-bab6-3066db53dc7d> ?property ?value}

Hi, well I think the issue might be the fact that an exact match must be invoked. For example if I had added class with two-word label. I could not find it using neither the first nor the second word, but could if yousing the whole label as the search term.
I think this is a natural limitation we have accepted, but it might be wise to check if it is properly documented, @JanVana .

Yes, that is what I know about.
Works for classes/disambiguated entities, but not for relations.
Try to add new relation and then search for it.
Probably connected with wrong storing of relations: See: https://github.com/odalic/sti/issues/459

Well I tried even the properties, and it worked for me look it up later (using the exact search of course).

I suspect that this issue will be resolved once the issue #459 is resolved.


Attention is not masked on padding tokens

I noticed that no padding masks are used in the attention computation of the input sentence.
The transformer in the encode_text function should be masked with the actual sentence length. However, in this implementation, it appears not to be the case:
https://github.com/openai/CLIP/blob/573315e83f07b53a61ff5098757e8fc885f1703e/clip/model.py#L344
All the 77 tokens (padding tokens comprised) seem to participate in the attention computation.
Am I missing something?
Thank you in advance!

We use a causal attention mask (code, cf. #179) and it basically blocks any information from "future" tokens from flowing back in. So we can take the embedding at the EOT token (code), while safely ignoring any attention calculation of the padding tokens.

I was totally ignoring the pad masking "side effect" of causal attention.
Thank you!

why the same causal masking is applied to the images as well ? I mean images are always sentence of grid ** 2 length, isn't it ?


Remove attribute in xml module with content: attribute

See https://github.com/ansible/ansible/issues/53459

Verified with ansible 2.7 and 2.8


Slide Library

  Hello iappyx, first of all thanks A LOT for creating this amazing tool.

I was wondering if it would be possible to add a button to save a ppt deck where you can store multiple assets/ designs (a slide library if you will). Then this deck could be easily invoked with another button.
I already keep a slide library but I have to save it on the desktop and it’s not a very elegant solution
Originally posted by @andant513 in https://github.com/iappyx/Instrumenta/discussions/9#discussioncomment-4327510

Should be possible, will look into it.

@andant513 this was added to the latest beta, also works on mac


Bug time count

Hello,
We discovered a bug on the PM5 version of the plugin that was not present before: we use PlayedTime for a reward system. Under PM4, we didn't have to disconnect and then reconnect for the plugin to get the player's game time, but now we do.

I currently don't have time that much. I'll try to test it next week.
Sorry 🙏

Unable to reproduce bug
Hello,
I tried to reproduce your bug but I wasn't able to reproduce.
Please send me your reward-plugin (maybe per discord dm) and give some more information how to reproduce the bug.

This issue will be closed (as done) until the bug can be reproduced.

best regards
supercrafter333

I tested your plugin and I also can't confirm this issue.


Missing Argument queries in version 0.2.11

Hello, we are using FlagEmbedding 1.3.3 and milvus-model 0.2.11 and suddenly get the following error:
"M3Embedder.encode() missing 1 required positional argument: 'queries'"
on this line:
output = self.model.encode(sentences=texts, **self._encode_config)
Timing wise it could very well be related with the changes in the 0.2.11 version because of this issue: https://github.com/milvus-io/milvus-model/issues/52
Downgrading to version 0.2.10 fixes the issue for now.

I tested it in a Colab enironment and it shows milvus-model 0.2.11 works well with FlagEmbedding 1.3.3
https://colab.research.google.com/drive/1SrTd-En5-NdoWNvICxBkJ-SfBniyyd0j#scrollTo=xD6uQ6C9qI7R
And sentences(instead of queries) is the argument of encode function in latest version of FlagEmbedding. https://github.com/FlagOpen/FlagEmbedding/blob/aeafc7e4d4a9905a3d8468934f370686077694ec/FlagEmbedding/inference/embedder/encoder_only/m3.py#L263-L271


Various: fix potential workshop items issue

AMP mysteriously now seems to look to the second SteamCMD update stage to determine the client app id for workshop items - which of course breaks where that stage is to download 1007

Are you still seeing this issue? I just verified CS2 seems to work okay.

Haven't had any reason to install workshop items on a relevant server, so no further testing

What game did you notice this on that sparked it?


Update template JSON to be compatible with Eureka 1.3.1 changes

The "@ class": "com.netflix.appinfo.MyDataCenterInfo"
is mandatory with Eureka 1.3.1.
Additionally, this fix addresses an issue introduced with Eureka release 1.2.2.
It introduced the Jackson codec, which brings along
encoding the ports"as integers ("port" and "securePort") .
See: https://github.com/hudl/fargo/issues/29

Cool, thanks!


documentation generation

I know there are automatic c++ documentation generators with github integration. We need to decide which one to use and start using it to generate documentation.

https://github.com/mbedmicro/mbed they seem to be a popular project, lets use whatever they are using


[Service Bus] Expose 'Typed', 'WebSocketImpl', 'WebSocketInstance' from rhea-promise so the imports in Service Bus can use it

This is based on conversation around fix for https://github.com/azure/azure-sdk-for-js/issues/1479 where we want to disallow imports from Rhea
cc @ramya-rao-a @amarzavery

Waiting on related PRs to get merged:
https://github.com/amqp/rhea/pull/213
https://github.com/amqp/rhea-promise/pull/36

Updating this issue to track the work to expose WebSocketImpl, WebSocketInstance as well from rhea-promise.
cc @ShivangiReja

@ramya-rao-a Created a pr for rhea-promise to expose ws parameters imported from Rhea.
https://github.com/amqp/rhea-promise/pull/38

Done as rhea-promise is now published with these changes.


Make flake8 happy

The imports in frontend.apps.FrontendConfig.ready() turned out to have a purpose after all, which is to attach the signal handlers and register the admin components. I've reinstated them with an explanatory comment, plus a comment to disable that specific flake8 warning.
Also, the travis lint job needs to install flake8 as well as black. As black is Python 3 only we have the awkward situation (hopefully temporary) where our linter requirements are separate from the rest of our requirements.

I have a reasonably strong personal preference to only use flake8's semantic checks and to disable anything purely syntactic. Black takes care of all syntactic matters relating to the code itself. And I have very little enthusiasm for flake8 telling me how many spaces I ought to put in my comments.
Whether we do this via whitelisting the semantic stuff or blacklisting the syntactic I don't really mind.

Love this :heart_eyes:


Auto pass windows

Add the ability to auto pass on action windows
default the auto pass on some lesser used windows
implement a menu option for people to set whether to auto pass or not

I think that's amazing, thanks for this!
As a UX comment, I suspect reversing the logic would be better. The current way is asking what to pass, with checkboxes, which kinda sound like double negation in a way.
How about a "Prompt for action windows", with checkboxes for action windows to show instead?
Or maybe, with even simpler language, "Show action windows" in the dialog box title.
Just my 0.02 EUR, this feature will be amazing anyhow.


[Feature] Opening Date

For a lot of products the opening date is also an important information.
It would be great to have the ability to enter an opening date as well as a time span for how long the item is good after opening.
These two fields should be optional. If both fields are filled, the item will be listed according to the opening date + time span in the expirations list. Otherwise the original expiration date will be used for sorting.

Sounds very good, I will implement it as soon as possible.
Thank you for the suggestion!

i want to work on this issue please assign.

Closed as completed by https://github.com/lorenzovngl/FoodExpirationDates/commit/c6dd894f1cd77a66964449b2063ee9f996687251