Initial support for dense matrices as a proof of concept.

Alright @jkanche it works enough for some testing:
import numpy as np
import mattress

y = np.random.rand(1000, 100)
ptr = mattress.py_initialize_dense_matrix(y.shape[0], y.shape[1], y, True)
ptr.row(0) # same as y[0,:]
ptr.column(1) # same as y[:,1]

y2 = (np.random.rand(50, 12) * 100).astype("i8")
ptr2 = mattress.py_initialize_dense_matrix(y2.shape[0], y2.shape[1], y2, True)
ptr2.row(0) # same as y2[0,:]
ptr2.column(1) # same as y2[:,1]

Couldn't get pytest to work locally so I'll just leave the tests to you.

I see an error
src/mattress/lib/bindings.cpp:4415:40: error: no matching function for call to 'initialize_dense_matrix'
    __pyx_t_2 = __Pyx_PyInt_FromSize_t(initialize_dense_matrix(__pyx_v_nr, __pyx_v_nc, (&(*((__pyx_t_5numpy_uint64_t *) ( /* dim=1 */ (( /* dim=0 */ (__pyx_v_view_u64.data + __pyx_t_6 * __pyx_v_view_u64.strides[0]) ) + __pyx_t_7 * __pyx_v_view_u64.strides[1]) )))), __pyx_v_byrow)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 79, __pyx_L1_error)
                                       ^~~~~~~~~~~~~~~~~~~~~~~

I think that's machine dependent, depending on whether signed long long is the same as int64_t on your platform. Try commenting out the int64_t (and associated lines in bindings.pxd).

yup forgot to say that was on macos, tried different combinations to comment it out but nothing worked.
no issues on linux though

What does your site-packages/Cython/Includes/numpy/__init__.pxd say? I have

    ctypedef signed char        npy_int8
    ctypedef signed short       npy_int16
    ctypedef signed int         npy_int32
    ctypedef signed long long   npy_int64
    ctypedef signed long long   npy_int96
    ctypedef signed long long   npy_int128

    ctypedef unsigned char      npy_uint8
    ctypedef unsigned short     npy_uint16
    ctypedef unsigned int       npy_uint32
    ctypedef unsigned long long npy_uint64
    ctypedef unsigned long long npy_uint96
    ctypedef unsigned long long npy_uint128

    ctypedef float        npy_float32
    ctypedef double       npy_float64
    ctypedef long double  npy_float80
    ctypedef long double  npy_float96
    ctypedef long double  npy_float128

    ctypedef unsigned char      npy_bool

    ctypedef signed char      npy_byte
    ctypedef signed short     npy_short
    ctypedef signed int       npy_int
    ctypedef signed long      npy_long
    ctypedef signed long long npy_longlong

    ctypedef unsigned char      npy_ubyte
    ctypedef unsigned short     npy_ushort
    ctypedef unsigned int       npy_uint
    ctypedef unsigned long      npy_ulong
    ctypedef unsigned long long npy_ulonglong

    ctypedef float        npy_float
    ctypedef double       npy_double
    ctypedef long double  npy_longdouble

    ctypedef signed char        npy_int8
    ctypedef signed short       npy_int16
    ctypedef signed int         npy_int32
    ctypedef signed long long   npy_int64
    ctypedef signed long long   npy_int96
    ctypedef signed long long   npy_int128

    ctypedef unsigned char      npy_uint8
    ctypedef unsigned short     npy_uint16
    ctypedef unsigned int       npy_uint32
    ctypedef unsigned long long npy_uint64
    ctypedef unsigned long long npy_uint96
    ctypedef unsigned long long npy_uint128

    ctypedef float        npy_float32
    ctypedef double       npy_float64
    ctypedef long double  npy_float80
    ctypedef long double  npy_float96
    ctypedef long double  npy_float128


analyzer fuzz crash: mixin on itself with type parameters

This only fails for summary1. Still, filing on the unlikely chance that we have to roll back summary2.
class C<T>{}
class C=A with C;

Looks like a user has hit this before: #37341
This is great. We now know we can close that issue once we are confident in summary2.
Unhandled exception:
NoSuchMethodError: The getter 'element' was called on null.
Receiver: null
Tried calling: element
#0      Object.noSuchMethod (dart:core-patch/object_patch.dart:51:5)
#1      ErrorVerifier._checkMixinInference (package:analyzer/src/generated/error_verifier.dart:5419:36)
#2      ErrorVerifier._checkClassInheritance (package:analyzer/src/generated/error_verifier.dart:1495:7)
#3      ErrorVerifier.visitClassTypeAlias (package:analyzer/src/generated/error_verifier.dart:575:7)
#4      ClassTypeAliasImpl.accept (package:analyzer/src/dart/ast/ast.dart:1806:49)
#5      NodeListImpl.accept (package:analyzer/src/dart/ast/ast.dart:7670:20)
#6      CompilationUnitImpl.visitChildren (package:analyzer/src/dart/ast/ast.dart:2161:21)
#7      RecursiveAstVisitor.visitCompilationUnit (package:analyzer/dart/ast/visitor.dart:725:10)
#8      ErrorVerifier.visitCompilationUnit (package:analyzer/src/generated/error_verifier.dart:599:11)
#9      CompilationUnitImpl.accept (package:analyzer/src/dart/ast/ast.dart:2140:49)
#10     LibraryAnalyzer._computeVerifyErrors (package:analyzer/src/dart/analysis/library_analyzer.dart:404:10)

Summary1 is no longer. Closing as obsolete.


Questions about the prefab

Dear Julien,
very nice work!
I have a question about the available prefab, is this downloaded or also generated in your code?
Thanks in advance

@julienkay
ah thanks, probably overlooked during the search


outer ring had noise when set border

when I set border color and width
the outer ring had thin circle color border
[hub setCircleColor:[UIColor brownColor] labelColor:[UIColor greenColor]];
[hub setCircleBorderColor:[UIColor yellowColor] borderWidth:2.0];

hey, unfortunately i didn't write the border code, it's just a standard CALayer property.  have you tried running it on a device? maybe it's just how your simulator screen renders it.  I'm going to close this because it's not an issue with this library


Unbound segmentation fault on Ubuntu 18.04 LTS

Issue
When running on Ubuntu 18.04 LTS, Unbound frequently experiences segmentation faults.
How to replicate
I have disabled systemd-resolved so I could bind the container to port 53 and in /etc/reslolv.conf, the nameserver address is set to <IP_ADDRESS>. The container works with the always restart policy applied but still restarts frequently. I have tried this on Docker for Mac and have not experienced any of these issues. I can provide more information if needed.
Logs
Here is the minimal error log, with a more verbose log below.
=========================================
 =========================================
 === CLOUDFLARE DNS OVER TLS CONTAINER ===
 =========================================
 =========================================
 == by github.com/qdm12 - Quentin McGaw ==

Running as nonrootuser
Unbound version: 1.7.3
Unbound DNS server: cloudflare
Unbound listening UDP port: 53
Verbosity level set to 1 on 5
Verbosity details level set to 0 on 4
Malicious hostnames and ips blocking is off
[1549497232] unbound[24:0] warning: unable to initgroups nonrootuser: Operation not permitted
[1549497232] unbound[24:0] notice: init module 0: validator
[1549497232] unbound[24:0] notice: init module 1: iterator
[1549497232] unbound[24:0] info: start of service (unbound 1.7.3).
[1549497233] unbound[24:0] info: generate keytag query _ta-4a5c-4f66. NULL IN
[1549497233] unbound[24:1] info: generate keytag query _ta-4a5c-4f66. NULL IN

 =========================================
 Unbound exit with status 139
 =========================================
Segmentation fault (core dumped)

Max verbosity log
...
...
...
[1549507602] unbound[26:1] info: reply from <.> <IP_ADDRESS>#853
[1549507602] unbound[26:1] info: incoming scrubbed packet: ;; ->>HEADER<<- opcode: QUERY, rcode: NOERROR, id: 0
;; flags: qr rd ra ; QUERY: 1, ANSWER: 0, AUTHORITY: 6, ADDITIONAL: 0
;; QUESTION SECTION:
googleapis.com.	IN	DS

;; ANSWER SECTION:

;; AUTHORITY SECTION:
ck0pojmg874ljref7efn8430qvit8bsm.com.	85662	IN	NSEC3	1 1 0 - ck0q1gin43n1arrc9osm6qpqr81h5m9a NS SOA RRSIG DNSKEY NSEC3PARAM ;{flags: optout}
ck0pojmg874ljref7efn8430qvit8bsm.com.	85662	IN	RRSIG	NSEC3 8 2 86400<PHONE_NUMBER>3240<PHONE_NUMBER>2240 16883 com. lCQD2bK8qGow5GSWWDLcSOicHflSzVEchqETJAcMBURY+th9NtHF4nR9zeFWlZN8msSxnz1aAiUeQ7jRPXxV9cwHu2yPfR3iP0i1i5GiK98alVmwS4v2ylx4khb1WgJYeE7+CR+aEzKThjCTyPEDtBEvZFf9RCHZDPL4vPk2Xwk= ;{id = 16883}
com.	3600	IN	SOA	a.gtld-servers.net. nstld.verisign-grs.com.<PHONE_NUMBER> 1800 900<PHONE_NUMBER>0
com.	3600	IN	RRSIG	SOA 8 1<PHONE_NUMBER>4023411<PHONE_NUMBER>2411 16883 com. u1lnSxqnSa2v/N52C1N4EM/It7o2CRDx+WZy0LqKyLHF6+pRhZ2c+B+5+5L8NQln8ZqitD9yJyCbvIBVgmAY+0MUftFGHWsdF2FVfALogofIl6d1IatCIKTqj9LM9bBTbSL1/GeE/HdRI0OGsiKR2yyBv0rhMmJovL9pv/p4Jcs= ;{id = 16883}
6l930cninqadn9he8d1tngam03ra30ou.com.	85662	IN	NSEC3	1 1 0 - 6l960svqib6ijqo2kvbdina1oefbd9hu NS DS RRSIG ;{flags: optout}
6l930cninqadn9he8d1tngam03ra30ou.com.	85662	IN	RRSIG	NSEC3 8 2 86400<PHONE_NUMBER>5006<PHONE_NUMBER>4006 16883 com. KXUO7RaL79Dy1v5/6d50k8mtgeVVAcgfdSvcmhzlw+gX/dx+X7va42oodO8xBl86s+lpXybU3kpfEvZVYvhKOmNHGSzP/zfzE4NDPjpxp3Fx/VHi25kC5C2rum4DMpPX5kldUYvdW6/BoBLdZ7n/oJt1r/skp+G8Uby/TBuoGF0= ;{id = 16883}

;; ADDITIONAL SECTION:
;; MSG SIZE  rcvd: 753

[1549507602] unbound[26:1] debug: iter_handle processing q with state QUERY RESPONSE STATE
[1549507602] unbound[26:1] info: query response was nodata ANSWER
[1549507602] unbound[26:1] debug: iter_handle processing q with state FINISHED RESPONSE STATE
[1549507602] unbound[26:1] info: finishing processing for googleapis.com. DS IN
[1549507602] unbound[26:1] debug: mesh_run: iterator module exit state is module_finished
[1549507602] unbound[26:1] debug: validator[module 0] operate: extstate:module_wait_module event:module_event_moddone
[1549507602] unbound[26:1] info: validator operate: query googleapis.com. DS IN
[1549507602] unbound[26:1] debug: validator: nextmodule returned
[1549507602] unbound[26:1] debug: not validating response, is valrec(validation recursion lookup)
[1549507602] unbound[26:1] debug: mesh_run: validator module exit state is module_finished
[1549507602] unbound[26:1] info: validator: inform_super, sub is googleapis.com. DS IN
[1549507602] unbound[26:1] info: super is clientservices.googleapis.com. A IN
[1549507602] unbound[26:1] info: verify rrset 6l930cninqadn9he8d1tngam03ra30ou.com. NSEC3 IN
[1549507602] unbound[26:1] debug: verify sig 16883 8
[1549507602] unbound[26:1] debug: verify result: sec_status_secure
[1549507602] unbound[26:1] debug: nsec3: keysize 1024 bits, max iterations 150
[1549507602] unbound[26:1] info: ce candidate com. TYPE0 CLASS0
[1549507602] unbound[26:1] info: NSEC3s for the referral proved no DS.
[1549507602] unbound[26:1] debug: validator[module 0] operate: extstate:module_wait_subquery event:module_event_pass
[1549507602] unbound[26:1] info: validator operate: query clientservices.googleapis.com. A IN
[1549507602] unbound[26:1] debug: val handle processing q with state VAL_VALIDATE_STATE
[1549507602] unbound[26:1] info: Verified that unsigned response is INSECURE
[1549507602] unbound[26:1] debug: val handle processing q with state VAL_FINISHED_STATE
[1549507602] unbound[26:1] debug: mesh_run: validator module exit state is module_finished
[1549507602] unbound[26:1] debug: query took 0.124501 sec
[1549507602] unbound[26:1] info: mesh_run: end 0 recursion states (0 with reply, 0 detached), 0 waiting replies, 4 recursion replies sent, 0 replies dropped, 0 states jostled out
[1549507602] unbound[26:1] info: average recursion processing time 0.151196 sec
[1549507602] unbound[26:1] info: histogram of recursion processing times
[1549507602] unbound[26:1] info: [25%]=0.0873813 median[50%]=0.109227 [75%]=0.131072
[1549507602] unbound[26:1] info: lower(secs) upper(secs) recursions
[1549507602] unbound[26:1] info:    0.065536    0.131072 3
[1549507602] unbound[26:1] info:    0.262144    0.524288 1
[1549507602] unbound[26:1] debug: cache memory msg=69352 rrset=73827 infra=8402 val=69892
[1549507602] unbound[26:1] debug: svcd callbacks end
[1549507602] unbound[26:1] debug: close fd 16
[1549507643] unbound[26:1] debug: udp request from ip4 <IP_ADDRESS> port 15491 (len 16)
[1549507643] unbound[26:0] debug: udp request from ip4 <IP_ADDRESS> port 50122 (len 16)
[1549507643] unbound[26:1] debug: mesh_run: start
[1549507643] unbound[26:0] debug: mesh_run: start
[1549507643] unbound[26:1] debug: validator[module 0] operate: extstate:module_state_initial event:module_event_new
[1549507643] unbound[26:0] debug: validator[module 0] operate: extstate:module_state_initial event:module_event_new
[1549507643] unbound[26:1] info: validator operate: query stackoverflow.com. A IN
[1549507643] unbound[26:0] info: validator operate: query www.gravatar.com. A IN
[1549507643] unbound[26:0] debug: validator: pass to next module
[1549507643] unbound[26:0] debug: mesh_run: validator module exit state is module_wait_module
[1549507643] unbound[26:1] debug: validator: pass to next module
[1549507643] unbound[26:0] debug: iterator[module 1] operate: extstate:module_state_initial event:module_event_pass
[1549507643] unbound[26:1] debug: mesh_run: validator module exit state is module_wait_module
[1549507643] unbound[26:0] debug: process_request: new external request event
[1549507643] unbound[26:1] debug: iterator[module 1] operate: extstate:module_state_initial event:module_event_pass
[1549507643] unbound[26:0] debug: iter_handle processing q with state INIT REQUEST STATE
[1549507643] unbound[26:1] debug: process_request: new external request event
[1549507643] unbound[26:0] info: resolving www.gravatar.com. A IN
[1549507643] unbound[26:1] debug: iter_handle processing q with state INIT REQUEST STATE
[1549507643] unbound[26:0] debug: request has dependency depth of 0
[1549507643] unbound[26:1] info: resolving stackoverflow.com. A IN
[1549507643] unbound[26:1] debug: request has dependency depth of 0
[1549507643] unbound[26:0] debug: forwarding request
[1549507643] unbound[26:1] debug: forwarding request
[1549507643] unbound[26:0] debug: iter_handle processing q with state QUERY TARGETS STATE
[1549507643] unbound[26:1] debug: iter_handle processing q with state QUERY TARGETS STATE
[1549507643] unbound[26:0] info: processQueryTargets: www.gravatar.com. A IN
[1549507643] unbound[26:1] info: processQueryTargets: stackoverflow.com.  A IN
[1549507643] unbound[26:1] info: sending query: stackoverflow.com. A IN
[1549507643] unbound[26:0] debug: sending to target: <.> <IP_ADDRESS>#853
[1549507643] unbound[26:1] debug: sending to target: <.> <IP_ADDRESS>#853
[1549507643] unbound[26:0] debug: dnssec status: not expected
[1549507643] unbound[26:1] debug: dnssec status: not expected
[1549507643] unbound[26:0] debug: comm point start listening 15
[1549507643] unbound[26:1] debug: comm point start listening 16
[1549507643] unbound[26:0] debug: mesh_run: iterator module exit state is module_wait_reply
[1549507643] unbound[26:1] debug: mesh_run: iterator module exit state is module_wait_reply
[1549507643] unbound[26:0] info: mesh_run: end 1 recursion states (1 with reply, 0 detached), 1 waiting replies, 2 recursion replies sent, 0 replies dropped, 0 states jostled out
[1549507643] unbound[26:1] info: mesh_run: end 1 recursion states (1 with reply, 0 detached), 1 waiting replies, 4 recursion replies sent, 0 replies dropped, 0 states jostled out
[1549507643] unbound[26:0] info: average recursion processing time 0.099110 sec
[1549507643] unbound[26:1] info: average recursion processing time 0.151196 sec
[1549507643] unbound[26:0] info: histogram of recursion processing times
[1549507643] unbound[26:1] info: histogram of recursion processing times
[1549507643] unbound[26:0] info: [25%]=0 median[50%]=0 [75%]=0
[1549507643] unbound[26:0] info: lower(secs) upper(secs) recursions
[1549507643] unbound[26:1] info: [25%]=0.0873813 median[50%]=0.109227 [75%]=0.131072
[1549507643] unbound[26:0] info:    0.065536    0.131072 2
[1549507643] unbound[26:1] info: lower(secs) upper(secs) recursions
[1549507643] unbound[26:0] info: 0RDd mod1 rep www.gravatar.com. A IN
[1549507643] unbound[26:1] info:    0.065536    0.131072 3
[1549507643] unbound[26:0] debug: cache memory msg=69352 rrset=73827 infra=8402 val=69892
[1549507643] unbound[26:1] info:    0.262144    0.524288 1
[1549507643] unbound[26:1] info: 0RDd mod1 rep stackoverflow.com. A IN
[1549507643] unbound[26:0] debug: udp request from ip4 <IP_ADDRESS> port 63938 (len 16)
[1549507643] unbound[26:1] debug: cache memory msg=69352 rrset=73827 infra=8402 val=69892
[1549507643] unbound[26:0] debug: mesh_run: start
[1549507643] unbound[26:0] debug: validator[module 0] operate: extstate:module_state_initial event:module_event_new
[1549507643] unbound[26:0] info: validator operate: query cdn.sstatic.net. A IN
[1549507643] unbound[26:0] debug: validator: pass to next module
[1549507643] unbound[26:0] debug: mesh_run: validator module exit state is module_wait_module
[1549507643] unbound[26:0] debug: iterator[module 1] operate: extstate:module_state_initial event:module_event_pass
[1549507643] unbound[26:0] debug: process_request: new external request event
[1549507643] unbound[26:0] debug: iter_handle processing q with state INIT REQUEST STATE
[1549507643] unbound[26:0] info: resolving cdn.sstatic.net. A IN
[1549507643] unbound[26:0] debug: request has dependency depth of 0
[1549507643] unbound[26:0] debug: forwarding request
[1549507643] unbound[26:0] debug: iter_handle processing q with state QUERY TARGETS STATE
[1549507643] unbound[26:0] info: processQueryTargets: cdn.sstatic.net.  A IN
[1549507643] unbound[26:0] debug: sending to target: <.> <IP_ADDRESS>#853
[1549507643] unbound[26:0] debug: dnssec status: not expected
[1549507643] unbound[26:0] debug: comm point start listening 17
[1549507643] unbound[26:0] debug: mesh_run: iterator module exit state is module_wait_reply
[1549507643] unbound[26:0] info: mesh_run: end 2 recursion states (2 with reply, 0 detached), 2 waiting replies, 2 recursion replies sent, 0 replies dropped, 0 states jostled out
[1549507643] unbound[26:0] info: average recursion processing time 0.099110 sec
[1549507643] unbound[26:0] info: histogram of recursion processing times
[1549507643] unbound[26:0] info: [25%]=0 median[50%]=0 [75%]=0
[1549507643] unbound[26:0] info: lower(secs) upper(secs) recursions
[1549507643] unbound[26:0] info:    0.065536    0.131072 2
[1549507643] unbound[26:0] info: 0RDd mod1 rep cdn.sstatic.net. A IN
[1549507643] unbound[26:0] info: 1RDd mod1 rep www.gravatar.com. A IN
[1549507643] unbound[26:0] debug: cache memory msg=69352 rrset=73827 infra=8402 val=69892
[1549507643] unbound[26:0] debug: comm point listen_for_rw 15 0
[1549507643] unbound[26:1] debug: comm point listen_for_rw 16 0
[1549507643] unbound[26:0] debug: comm point listen_for_rw 17 0

 =========================================
 Unbound exit with status 139
 =========================================
Segmentation fault (core dumped)

First of all, thanks for the nice layout for the issue 👍
Just to be clear, the container fails at startup right?
The image is built every 3 days with the latest updates and malicious hostnames / ips. Maybe try docker pull qmcgaw/cloudflare-dns-server and remove -> create the container again?
The core dumped is either the latest unbound binary which contains a problem or a hardware fault. It could also be because I deleted some unbound related binaries to have a smaller image.

Exact same issue on Ubuntu 18.04 with the latest image. Settings --restart=always for now.

The container does not always fail on startup. It sometimes fails after it receives a request. For example it restarted automatically after a seg fault two hours ago.
I pulled the latest version and rebuilt, I'll let it run for a while and see what happens. No crashes so far, so fingers crossed.

It has been crashing still with the same segmentation fault error.

I just pushed an update to Alpine 3.9 and to Unbound 1.8.3 (from 1.7.3), so that might solve your problem. Give it a try 👍
docker pull qmcgaw/cloudflare-dns-server

Really appreciate the help. Looking good so far. Will continue monitoring.

This seems to have fixed it, no crashes in over 24 hours. Thanks for the great work!

Just a little note; we had segmentation faults since the few last updates because I tried to build unbound from source and somehow it failed every 10 hours approximately. I have reverted back to the Alpine built Unbound and it should work again now. Sorry for the inconvenience!


Exclude folder from being scanned

In the root folder of my git repository I have folder data which has subfolders created in the context of Docker containers.
Hence I don't have read or write permissions by the user running versionize, hence getting this exception when running versionize:
Unhandled exception. System.UnauthorizedAccessException: Access to the path '/home/.../data/global' is denied.

Is it possible to exclude folders from the scan done by versionize?
I tried versionize -w <folderwithprojectobeversionized> to only specify the folder where the project to be versionized but the scan still seems to happen.
My folder structure is something like:
. git
- data
  - global // this is created by a container
- src
  - folderwithprojectobeversionized

So I ran versionize -w src/folderwithprojectobeversionized.
I also tried to use -w with an absolute path.
I want to avoid deleting the data/global folder an running a chown -R myuser:myuser data/global makes the container fail.

Does the stack trace happen to include where in the Versionize project that exception originated from?

 ---> System.IO.IOException: Permission denied
   --- End of inner exception stack trace ---
   at System.IO.Enumeration.FileSystemEnumerator`1.CreateDirectoryHandle(String path, Boolean ignoreNotFound)
   at System.IO.Enumeration.FileSystemEnumerator`1.DequeueNextDirectory()
   at System.IO.Enumeration.FileSystemEnumerator`1.DirectoryFinished()
   at System.IO.Enumeration.FileSystemEnumerator`1.FindNextEntry(Byte* entryBufferPtr, Int32 bufferLength)
   at System.IO.Enumeration.FileSystemEnumerator`1.MoveNext()
   at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
   at System.IO.Directory.GetFiles(String path, String searchPattern, EnumerationOptions enumerationOptions)
   at System.IO.Directory.GetFiles(String path, String searchPattern, SearchOption searchOption)
   at Versionize.Projects.<>c__DisplayClass6_0.<Discover>b__0(String filter) in /home/runner/work/versionize/versionize/Versionize/Projects.cs:line 37
   at System.Linq.Enumerable.SelectManySingleSelectorIterator`2.MoveNext()
   at System.Linq.Enumerable.Any[TSource](IEnumerable`1 source)
   at Versionize.WorkingCopy.Versionize(VersionizeOptions options) in /home/runner/work/versionize/versionize/Versionize/WorkingCopy.cs:line 48
   at Versionize.Program.<>c__DisplayClass0_0.<Main>b__1() in /home/runner/work/versionize/versionize/Versionize/Program.cs:line 70
   at McMaster.Extensions.CommandLineUtils.CommandLineApplication.<>c__DisplayClass143_0.<OnExecute>b__0(CancellationToken _)
   at McMaster.Extensions.CommandLineUtils.CommandLineApplication.ExecuteAsync(String[] args, CancellationToken cancellationToken)
   at McMaster.Extensions.CommandLineUtils.CommandLineApplication.Execute(String[] args)
   at Versionize.Program.Main(String[] args) in /home/runner/work/versionize/versionize/Versionize/Program.cs:line 79
[1]    1571791 IOT instruction (core dumped)  versionize
``

Thanks, now it works :+1:


curl: (52) Empty reply from server

Host name
IP

felipe
<IP_ADDRESS>

ubuntu20dockers
<IP_ADDRESS>

felipe
sudo su

ip addres | grep dynamic

    inet <IP_ADDRESS>/24 brd <IP_ADDRESS> scope global dynamic ens33

next
sudo curl -L git.io/weave -o /usr/local/bin/weave

sudo chmod a+x /usr/local/bin/weave

weave launch <IP_ADDRESS>

0b87ebe4eb2fa79b74ece8eb42988c6706e93a9edae64dd99ae6ace1c0f3b7db
here issue
root@ubuntu20dockers:~# weave status connections
curl: (52) Empty reply from server

ubuntu20dockers
do this
sudo curl -L git.io/weave -o /usr/local/bin/weave

sudo chmod a+x /usr/local/bin/weave

weave launch <IP_ADDRESS>

docker network ls

NETWORK ID     NAME                             DRIVER      SCOPE
679706fb2674   bridge                           bridge      local
8b74b15b3081   cassandra-cluster_cassandranet   bridge      local
fc27b3aeed94   clickhouse_default               bridge      local
f0a880d6cd18   host                             host        local
d7a4861d0681   my-stack_mynet                   bridge      local
7bb4289bf490   none                             null        local
c40acb60e412   rocketchat_default               bridge      local
b381cd33317e   weave                            weavemesh   local

here issue
root@felipe:~# weave status connections
curl: (52) Empty reply from server

Hi! I had the same problem. And on errors, the docker logs weave command outputs this:
2022/08/19 18:18:09 http: panic serving <IP_ADDRESS>:60970: runtime error: slice bounds out of range [:9] with length 8
goroutine 2068 [running]:
net/http.(*conn).serve.func1(0xc0000b74a0)
        /usr/local/go/src/net/http/server.go:1801 +0x147
panic(0x11fe5c0, 0xc0004e5fe0)
        /usr/local/go/src/runtime/panic.go:975 +0x47a
github.com/miekg/dns.ClientConfigFromReader(0x1405760, 0xc0004141b0, 0x0, 0x0, 0xc0004141b0)
        /go/src/github.com/weaveworks/weave/vendor/github.com/miekg/dns/clientconfig.go:94 +0x84f
github.com/miekg/dns.ClientConfigFromFile(0x7ffc49b54f03, 0x23, 0x0, 0x0, 0x0)
        /go/src/github.com/weaveworks/weave/vendor/github.com/miekg/dns/clientconfig.go:29 +0xc8
github.com/weaveworks/weave/nameserver.(*upstream).Config(0xc000138f60, 0x0, 0x0, 0x0)
        /go/src/github.com/weaveworks/weave/nameserver/dns.go:66 +0x1a5
github.com/weaveworks/weave/nameserver.NewStatus(0xc0003e0000, 0xc0003e0070, 0x0)
        /go/src/github.com/weaveworks/weave/nameserver/status.go:39 +0x2bb
main.HandleHTTP.func1(0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
        /go/src/github.com/weaveworks/weave/prog/weaver/http.go:320 +0x330
main.HandleHTTP.func4.1(0x141a6a0, 0xc001a63260, 0xc0003dc100)
        /go/src/github.com/weaveworks/weave/prog/weaver/http.go:366 +0x44
net/http.HandlerFunc.ServeHTTP(0xc0004110c0, 0x141a6a0, 0xc001a63260, 0xc0003dc100)
        /usr/local/go/src/net/http/server.go:2042 +0x44
github.com/gorilla/mux.(*Router).ServeHTTP(0xc0003e0c40, 0x141a6a0, 0xc001a63260, 0xc000611f00)
        /go/src/github.com/weaveworks/weave/vendor/github.com/gorilla/mux/mux.go:159 +0x106
github.com/weaveworks/weave/common.(*loggingHandler).ServeHTTP(0xc000060da0, 0x141a6a0, 0xc001a63260, 0xc000611f00)
        /go/src/github.com/weaveworks/weave/common/http.go:13 +0x151
net/http.(*ServeMux).ServeHTTP(0x1b61500, 0x141a6a0, 0xc001a63260, 0xc000611f00)
        /usr/local/go/src/net/http/server.go:2417 +0x1ad
net/http.serverHandler.ServeHTTP(0xc0000fc0e0, 0x141a6a0, 0xc001a63260, 0xc000611f00)
        /usr/local/go/src/net/http/server.go:2843 +0xa3
net/http.(*conn).serve(0xc0000b74a0, 0x141de60, 0xc000035700)
        /usr/local/go/src/net/http/server.go:1925 +0x8ad
created by net/http.(*Server).Serve
        /usr/local/go/src/net/http/server.go:2969 +0x36c

I found the source of problem in https://github.com/miekg/dns library. And as I understand this was already fixed there (https://github.com/miekg/dns/pull/642). But weave still using old version of library.
When I updated the dependency to the latest version the problem with Empty reply from server disappeared.

Hi @sms-system, thanks for your discovery! do you happen to have a fork somewhere I could build and run to fix this issue? I have zero knowledge of Go or how to build weave sadly :/

Is the fix in the latest version?


Fixed edit item relationships tab not displaying tilted relationships

References

Fixes #2884
Related: DSpace/DSpace#3134

Description
Tilted relationships are useful for items with lots of relationships in order to improve the page load, but currently the relationships are not saved in the store. This PR simply ensures that when the relationships are retrieved (with /server/api/core/relationships/search/byLabel?page=0&size=5&label=isPublicationOfAuthor&dso={item-uuid}&embed=leftItem/thumbnail&embed=rightItem/thumbnail), that the relationships are stored in the store, so that even if /server/api/core/items/{uuid}/relationships doesn't include any relationships, that they are still rendered in the edit tab because they are already present in the store.
Checklist

[x] My PR is small in size (e.g. less than 1,000 lines of code, not including comments & specs/tests), or I have provided reasons as to why that's not possible.
[x] My PR passes ESLint validation using yarn lint
[x] My PR doesn't introduce circular dependencies (verified via yarn check-circ-deps)
[x] My PR includes TypeDoc comments for all new (or modified) public methods and classes. It also includes TypeDoc for large or complex private methods.
[x] My PR passes all specs/tests and includes new/updated specs or tests based on the Code Testing Guide.
[x] If my PR includes new libraries/dependencies (in package.json), I've made sure their licenses align with the DSpace BSD License based on the Licensing of Contributions documentation.
[x] If my PR includes new features or configurations, I've provided basic technical documentation in the PR itself.
[x] If my PR fixes an issue ticket, I've linked them together.

@alexandrevryghem : Does this need to be ported to 7.6.x?  I tried an automatic port, but that failed.  If you have time to create a port, I'd appreciate it. Otherwise, I'll try to find time later this week or next.


Undo unnecessary copying that triggers permissions issue

Purpose/implementation Section
What changes are being implemented in this Pull Request?
I added this while trying to fix the big-image.html rendering, but it ended up not being needed and now is just causing a problem so let's remove it.

Great. It's fixed.


Serve command fails silently

Hello,
Running the serve command with a wrong model name outputs a container ID that dies instantly without a reason.
Here is an example reproducer:
$ ramalama serve huggingface://ibm-granite/granite-7b-instruct
6aa6dc6cca217b28656990f69a7c602c28c40f64289d8cdb5c55e6ecccdc0828
$ ramalama ps
CONTAINER ID  IMAGE       COMMAND     CREATED     STATUS      PORTS       NAMES
$

I tried to add an helpful message by calling the pull command before serve, but it looks like there is another issue in the glob f"{args.store}/models/*/{model}" because the Model class doesn't have a str method, resulting in the path to never match because it looks like:
ramalama/models/*/<ramalama.huggingface.Huggingface object at 0x7fa1c6e659a0>

How would you recommend to fix that issue?

I kinda wish we didn't detach by default because of reasons like this

I meant to add a check before calling ramalama.run_container in the Process CLI entrypoint, to ensure the model is pulled before starting the service.

The problem with just adding a check for the file, is that only helps debug one very specific issue. Like it is already checked if the file exists just in llama-server and we can't see the output

Right, so not detaching by default sounds great to me, may I propose such a change?


Add six into tox.ini

to: @mistercrunch
cc: @airbnb/superset-reviewers
Summary
Add six dependency into tox.ini to fix Travis builds on master (e.g., https://travis-ci.org/airbnb/superset/jobs/238201232).

This is https://github.com/pypa/setuptools/issues/1042

LGTM

Looks like the bug was fixed in the upstream dependency, so closing for now.


Update Malagasy Translation [ README_MG.md ]

Add 🇲🇬  translation to the README.md

I would like to work on this issue. I don't know the Malagasy language but I can use a translator. So if its ok then I can work on this issue


[ERROR] Secure random number generation...

I want to format the following template but I get this error in the jsonResult (res) object at the time of making the json.Unmarshal (mjml.go line 204)
Template:
<mjml>   <mj-body background-color="#fff">     <mj-section background-color="#ef6451">       <mj-column>         <mj-navbar base-url="https://link.com" hamburger="hamburger" ico-color="#ffffff">           <mj-navbar-link href="#" color="#ffffff">Nav1</mj-navbar-link>           <mj-navbar-link href="#" color="#ffffff">Nav2</mj-navbar-link>           <mj-navbar-link href="#" color="#ffffff">Nav3</mj-navbar-link>           <mj-navbar-link href="#" color="#ffffff">Nav4</mj-navbar-link>           <mj-navbar-link href="#" color="#ffffff">Nav5</mj-navbar-link>         </mj-navbar>       </mj-column>     </mj-section>     <mj-section full-width="full-width">       <mj-column>         <mj-text align="center" font-size="20px">           {{ title }}         </mj-text>       </mj-column>     </mj-section>     <mj-section>       <mj-column>         <mj-button font-family="Helvetica" background-color="#f45e43" color="white">             Button 1         </mj-button>       </mj-column>       <mj-column>         <mj-button font-family="Helvetica" background-color="#f45e43" color="white">             Button 2         </mj-button>       </mj-column>       <mj-column>         <mj-button font-family="Helvetica" background-color="#f45e43" color="white">             Button 3         </mj-button>       </mj-column>     </mj-section>   </mj-body> </mjml>
Err:  Secure random number generation is not supported by this browser. Use Chrome, Firefox or Internet Explorer 11
Im using a IDE to test it and go 1.18.2.
I execute the method with these options:
mjml.ToHTML(context.Background(), stringTemplate, mjml.WithFonts(mjml.Fonts{}), mjml.WithBeautify(true), mjml.WithMinify(true), mjml.WithValidationLevel("skip"))
After several tests I know that the error comes from the section that includes the navbar, it only happens when the navbar is added.
Template in online editor
Any recommendations? Is this a limitation of the package?

From the mjml-nav's source code, it looks like they use crypto.randomBytes: https://github.com/mjmlio/mjml/blob/0f13e1b91e08683ae05655db05f4cfa5e57e57dd/packages/mjml-navbar/src/Navbar.js#L108
I wonder if this is something that can be polyfilled in the wasm binary to work around this.

They want to replace the crypto package soon. Thanks!!
https://github.com/mjmlio/mjml/pull/2478

This should be fixed in v0.14.2 as it incorporates MJML v4.14.1 which contains https://github.com/mjmlio/mjml/pull/2478


raised memory limit of cronjob pod to 8Mi, 4Mi limit created sandbox …

…rpc errors on container startup most of the times
Issue Ref: Closes #7
Description:
4Mi as memory limit was too low on k8s version 1.12.0+
This created "Sandbox RPC" errors on container startup.
Only 1 out of 100 to 1000 times the container was able to start.
[PR Description]
Raised memory limit to 8Mi, request memory is still 4Mi.
This removed all issues, the container is able to start correctly in under 15 seconds and perform curl to the correct function
TODOs:

[x] Ready to review
[x] Automated Tests
[ ] Docs

Thanks for the PR @dimagoldin! The tests are failing because of some changes I am performing in the Kubeless repository but we can merge this.


Allow passing function to supplement redirect options

I have more advance redirection requirements that can't be mapped nicely to the current "follow_*" options. In the future, I would like to be able to pass a function to supplement the should_follow method.

What kind of requirements do you have? (Just to have an idea)

I'd like to be able to do a lookup to see if the redirection is allowed from the current location.

I'd be happy to merge this into master if you're up for some hacking. :)


Fix for RestOpenApiProcessor for parsing path variables from the http request uri succesfully.

Fix/Update org.apache.camel.component.rest.openapi.RestOpenApiProcessor.java
When RestOpenApiProcessor tries to process the path variables in the request,  HttpHelper.evalPlaceholders  throws an ArrayIndexOutOfBoundsException because consumerPath  from the openApi spec starts with a "/" but the uri of the request does not start with a "/".
Target

[ ] I checked that the commit is targeting the correct branch (note that Camel 3 uses camel-3.x, whereas Camel 4 uses the main branch)

Tracking

[ ] If this is a large change, bug fix, or code improvement, I checked there is a JIRA issue filed for the change (usually before you start working on it).

Apache Camel coding standards and style

[ ] I checked that each commit in the pull request has a meaningful subject line and body.

[ ] I have run mvn clean install -DskipTests locally from root folder and I have committed all auto-generated changes.

Hi, applied the code style fixes and added a null check. I hope it is fine now! Thanks.


Add jck8c in the list of accepted jck versions

Add jck8c in the list of accepted jck versions
Update folder name for jck8 jti files to jck8c
Signed-off-by<EMAIL_ADDRESS><EMAIL_ADDRESS>

Test: Test_grinder/job/Grinder/4114/console


rename to SpectatorMetricCollector

There is occasional confusion caused because the name
doesn't match the name for the base class in the AWS
SDK. Since there isn't much use yet, it is probably a
good time to rename to match and avoid more confusion
in the future.

@cfieber how much pain will this cause for you? If needed I can add in a deprecated class with the old name to avoid breaking things.

Based on conversation in person it should be easy to change in one-place, so we aren't going to bother with accumulating more deprecated baggage.


when the unikernel gets out of memory, a git-ssh commit push may fail

this is not very nice, since this may result in lost data :/ (at least, an error should (is already?) be returned to the client that the push failed (so that the client can handle this temporary issue by PUTting again)

since the commit of data and properties is done in a batch now, there's only a single commit -- and if this fails (and the unikernel runs out of memory), the HTTP session with the client is reset, so the client does not get any success HTTP code, and is able to re-do the requested change. closing since there's not much we can do when out of memory (or a power failure).


Ratings Service Bug

Executed make create and waited until I got the [ip-address]/productpage output. When browsing to the generated page, I see intermittent Ratings service is currently unavailable messages.
make validate appears to work, however the rating, when they appear do not appear to reflect the change in the database located on the VM.

We have had the same challenges getting this testing as well. We will take a look.

Seems like the make validate target is falsely confirming success. It may need to be changed.

@sammillerRLT if you have time would love a PR from you!!!


Z axis for rendering

Add Z axis index in SpeciesSettings

Each species should be rendered on the screen based on Z index.
Z index needs to be added as a new member in SpeciesSettings.

can I be assigned this


Modifying @Document attributes does not update the index attributes on redis

I have an example class
@Data
@RequiredArgsConstructor(staticName = "of")
@AllArgsConstructor
@Document
public class StudentRedis {

    @Id
    private Long id;

    @NumericIndexed
    private Long studentId;

    @NumericIndexed
    private Long year;

}

On app start this will create a json index in redis that will have 3 identifiers/attributes: for id , studentId and year.
But If I modify any of this or add new property example:
@Indexed
private String name;

**that attribute is not added to the redis index on next application restart, and I can't use that attribute for search. **
Is this intended or am i missing something?
Same happens if i remove @NumericIndexed annotation from field, that attribute stays in the redis index, even if it is deleted.
Only if i flushAll or drop the index in redis, the index gets recreated.
It seems that the code does not check if there was update to the @Document compared to the redis index.
Is there a solution for this?

Hi! you can use "FT.DROPINDEX your_index" command in redis-cli terminal
https://redis.io/commands/ft.dropindex/

Ok i just wanted to make sure that this is not supported by redis-om, will it be in future ?

@xMilos  you can use in code level,
@Autowired
RediSearchIndexer indexer;
@PostConstgruct
public void recreateIndex(){
indexer.dropAndRecreateIndexFor(xxxx.class);
}

Ok i just wanted to make sure that this is not supported by redis-om, will it be in future ?

I think this really needs to be implemented and I have an idea.
but still get an opinion @bsbodden

See https://github.com/redis/redis-om-spring/issues/26


Critical error in HawkesBasisKernels

I've encountered a critical error in HawkesBasisKernels in tick version <IP_ADDRESS> which entirely prevents me from using this class.
Minimal error reproduction example:
import numpy as np
from tick.hawkes import HawkesBasisKernels

hawkes_model = HawkesBasisKernels(kernel_support = 4)
ticks = [[np.array([1.,2.,3.,4.,5.])]]

hawkes_model = hawkes_model.fit(ticks)

Error:
RuntimeError                              Traceback (most recent call last)
<ipython-input-7-0a26049ca8d2> in <module>
      5 ticks = [[np.array([1.,2.,3.,4.,5.])]]
      6
----> 7 hawkes_model = hawkes_model.fit(ticks)

~/.local/lib/python3.8/site-packages/tick/hawkes/inference/hawkes_basis_kernels.py in fit(self, events, end_times, baseline_start, amplitudes_start, basis_kernels_start)
    204         """
    205         LearnerHawkesNoParam.fit(self, events, end_times=end_times)
--> 206         self.solve(baseline_start=baseline_start,
    207                    amplitudes_start=amplitudes_start,
    208                    basis_kernels_start=basis_kernels_start)

~/.local/lib/python3.8/site-packages/tick/solver/base/solver.py in solve(self, *args, **kwargs)
    107     def solve(self, *args, **kwargs):
    108         self._start_solve()
--> 109         self._solve(*args, **kwargs)
    110         self._end_solve()
    111         return self.solution

~/.local/lib/python3.8/site-packages/tick/hawkes/inference/hawkes_basis_kernels.py in _solve(self, baseline_start, amplitudes_start, basis_kernels_start)
    260                 prev_basis_kernels = self.basis_kernels.copy()
    261
--> 262             rel_ode = self._learner.solve(self.baseline, self.basis_kernels,
    263                                           self._amplitudes_2d,
    264                                           self.ode_max_iter, self.ode_tol)

~/.local/lib/python3.8/site-packages/tick/hawkes/inference/build/hawkes_inference.py in solve(self, mu, gdm, auvd, max_iter_gdm, max_tol_gdm)
    934     def solve(self, mu: 'ArrayDouble &', gdm: 'ArrayDouble2d &', auvd: 'ArrayDouble2d &', max_iter_gdm: 'ulong', max_tol_gdm: 'double') -> "double":
    935         r"""solve(HawkesBasisKernels self, ArrayDouble & mu, ArrayDouble2d & gdm, ArrayDouble2d & auvd, ulong max_iter_gdm, double max_tol_gdm) -> double"""
--> 936         return _hawkes_inference.HawkesBasisKernels_solve(self, mu, gdm, auvd, max_iter_gdm, max_tol_gdm)
    937
    938     def get_kernel_support(self) -> "double":

RuntimeError: basis functions / gdm argument must be an array of shape (1, 10)

This error for some reason does not effect the example here, despite having the same type for ticks.

This problem appears to occur only when n_basis=None (which is the default value).   If you specify n_basis (e.g. as equal to n_nodes, which is supposed to be the infered value when n_basis=None), then the error does not occur.


Hide status bar and navigation bar on Android devices (FLET)?

How to hide status bar and navigation bar on Android devices when user clicks on screen or open keyboard?

I have the same confusion as you.


Investigate Memory Leak Error

There is an error in the console of the new UI, shown below. It appears to have something to do with the training button. We should investigate and try to squash it.
warning.js:33 Warning: Can't call setState (or forceUpdate) on an unmounted component. This is a no-op, but it indicates a memory leak in your application. To fix, cancel all subscriptions and asynchronous tasks in the componentWillUnmount method.
    in TrainButton (created by WithStyles(TrainButton))
    in WithStyles(TrainButton) (created by InjectIntl(WithStyles(TrainButton)))
    in InjectIntl(WithStyles(TrainButton)) (created by MainTab)
    in div (created by Grid)
    in Grid (created by WithStyles(Grid))
    in WithStyles(Grid) (created by MainTab)
    in div (created by Grid)
    in Grid (created by WithStyles(Grid))
    in WithStyles(Grid) (created by MainTab)
    in HiddenJs (created by WithWidth(HiddenJs))
    in WithWidth(HiddenJs) (created by WithTheme(WithWidth(HiddenJs)))
    in WithTheme(WithWidth(HiddenJs)) (created by Hidden)
    in Hidden (created by MainTab)
    in div (created by Grid)
    in Grid (created by WithStyles(Grid))
    in WithStyles(Grid) (created by MainTab)
    in MainTab (created by WithStyles(MainTab))
    in WithStyles(MainTab) (created by InjectIntl(WithStyles(MainTab)))
    in InjectIntl(WithStyles(MainTab)) (created by SayingsPage)
    in div (created by Grid)
    in Grid (created by WithStyles(Grid))
    in WithStyles(Grid) (created by SayingsPage)
    in SayingsPage (created by Connect(SayingsPage))
    in Connect(SayingsPage) (created by withSaga(Connect(SayingsPage)))
    in withSaga(Connect(SayingsPage)) (created by LoadableComponent)
    in LoadableComponent (created by Route)
printWarning @ warning.js:33

Yup getting these issues as well. Agent doesn't want to train now when adding in keywords

    in TrainButton (created by WithStyles(TrainButton))
    in WithStyles(TrainButton) (created by InjectIntl(WithStyles(TrainButton)))
    in InjectIntl(WithStyles(TrainButton)) (created by MainTab)
    in div (created by Grid)
    in Grid (created by WithStyles(Grid))
    in WithStyles(Grid) (created by MainTab)
    in div (created by Grid)
    in Grid (created by WithStyles(Grid))
    in WithStyles(Grid) (created by MainTab)
    in HiddenJs (created by WithWidth(HiddenJs))
    in WithWidth(HiddenJs) (created by WithTheme(WithWidth(HiddenJs)))
    in WithTheme(WithWidth(HiddenJs)) (created by Hidden)
    in Hidden (created by MainTab)
    in div (created by Grid)
    in Grid (created by WithStyles(Grid))
    in WithStyles(Grid) (created by MainTab)
    in MainTab (created by WithStyles(MainTab))
    in WithStyles(MainTab) (created by InjectIntl(WithStyles(MainTab)))
    in InjectIntl(WithStyles(MainTab)) (created by AgentPage)
    in div (created by Grid)
    in Grid (created by WithStyles(Grid))
    in WithStyles(Grid) (created by AgentPage)
    in AgentPage (created by Connect(AgentPage))
    in Connect(AgentPage) (created by withSaga(Connect(AgentPage)))
    in withSaga(Connect(AgentPage)) (created by LoadableComponent)
    in LoadableComponent (created by Route)```

Closed by https://github.com/samtecspg/articulate/commit/6c85d26b4088abc607f28bbf2176dc953ec641ac


ObjectID vs ID ?

Hi !
I was experimenting with {% trans "Review this book" %}
I realized when I register my book object with object id 1 and when it gets a PK from python id, instead of using object_id, I need to use that pk. Is that a bug or feature ? Because when I look at object_id tag, I think about ContentType relations and want to fill that tag with object_id.
Summary :
Book object created with object_id, positive integer field = 2
Python assigned PK 1 to Book object
Tag asks me to put object_id, I pass 2, doesn't work
Tag asks me to put object_id, I pass 1(PK), works
Did I misunderstood the concept or is this a feature :loop:
I could set object_id class as PK but I'm not really fan of it.
Thanks !

The object_id should be the pk. You should not create an own object ID: https://github.com/bitlabstudio/django-review/blob/master/review/views.py#L91


CheckoutInformationPage.cshtml line 99 PaymentInfo should be ShippingInfo

<!option value="@(country.Id)" @Html.Raw(Model.Order.PaymentInfo.CountryId == country.Id ? "selected=\"selected\"" : "")>@(country.Name)</!option>
Should be
<!option value="@(country.Id)" @Html.Raw(Model.Order.ShippingInfo.CountryId == country.Id ? "selected=\"selected\"" : "")>@(country.Name)</!option>

PR #12 with bug fix merged in.
Thanks for reporting and submitting the PR

You're welcome, and thank you for this great resource.


Live share support for interactive window doesn't work

I am running the current version 1.33.1,  and I can not get the interactive window to share with live share. I am prompted to share the server, and that is successful but the interactive python window does not appear. I can open the interactive python window on the other machine but it never managed to connect to the shared server.

Do both machines have the latest python extension installed?

Can you also clarify some things?
You said this:

I am prompted to share the server, and that is successful but the interactive python window does not appear

Did you run a cell? The interactive window doesn't just automatically appear when starting a live share session. The machine that starts the session is called the host. It's the machine that needs to have Jupyter installed.

I can open the interactive python window on the other machine but it never managed to connect to the shared server.

Did you connect to the live share session? The other machine has to use the liveshare extension to connect to the machine starting the server. The interactive window doesn't do the connecting on its own.
Additionally there are some other caveats.

The machine that starts the live share session is the host. It's the machine running Jupyter and where the python code will execute

The other machine(s) are guests. They don't run any python code on themselves. They can see the results of the code run on the host (and they can run code on the host), but none of the code actually runs on the guest.

Closing issues that have not gotten a response for needed information.


docs: add myrsethtech to companies that uses t3

Closes #
✅ Checklist

[x] I have followed every step in the contributing guide (updated 2022-10-06).
[x] The PR title follows the convention we established conventional-commit
[x] I performed a functional test on my final commit

Changelog

Added Myrseth Technologies AS to the list of companies using create-t3-app

Screenshots

💯

Conflicts. Reopen when reaolved


Include explicit licensing information in the RoadEventFeedInfo

Consider including licensing information in the metadata.  Clearly define how the data can be used by consumers.  Is it open? Does it require attribution? Can it be used for commercial purposes?

Some data license provisions can limit broad use of the data. For example, some open licenses would not allow open data to mix with closed/proprietary datasets, which poses a significant limitation for how data can be utilized in web applications. At this early stage, it may be useful to recommend a few licenses for WZDx, or present a list of licenses with their implications. This is a useful primer on open data: https://opendefinition.org/guide/data/

Licensing information in the repository itself is also needed, perhaps in place of in metadata. GitHub has standardized the inclusion of a LICENSE or LICENSE.md file in the repository root.

Implemented in #157 and incorporated in the v3.1 release.


Added support for Twig bitwise operators (b-and, b-or, b-xor)

@DrParanoia Looks good to me, but can you please add some tests?

Sure ;) Will do it tomorrow

I've never wrote any tests before, so I'm sorry if something is not right :D

Looks good, thanks very much for your pull request :) 🎉


fix: add paths to zon file

Added paths to zon file

What exactly does that change do and will it compile with Zig 0.11?

@MasterQ32 I apologize. I did not see where regz is compiled against Zig 0.11 only. This change is because I am on Zig main branch. I will test with Zig 0.11 and see if the PR should be closed. Thank you for your patience.

What exactly does that change do and will it compile with Zig 0.11?

zig 0.11.0 ignore .path = .{""},


chore(naming): fix typos, add consistent naming, improve eslintignore

:tada: This PR is included in version 3.4.0 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Updated RoutePartial to use RouteState

It would be nice if we had contexts/section descriptions broken out within each of the test classes so it is easier to read what the tests are verifying what and where.

Also, I saw we do a lot of method chaining throughout. Law of Demeter recommends we don't do this.


Add create app and plugin templates for Swift Package Manager

Swift Package Manager integration requires changes to a Flutter app files such as the project.pbxproj, and Runner.xcscheme.
Also, plugins will have a Package.swift and different file structure.
Add new create templates that will come with these settings baked in

Preliminary branch: https://github.com/vashworth/flutter/tree/spm_create_templates


Pypi out of date (0.5.1)

Feature request
Pypi is currently showing the latest version of text-generation is 0.5.1, but the most recent Github release is 0.6.0.
Motivation
N/A
Your contribution
N/A

The python client version is 0.5.1.


Timeouts in Production w Lambda

Hey I'm having a weird issue where requests are timing out (after 6 seconds) ~4/5 of the time. They're really tiny requests (1 record writing w/ 5 attributes) and the same request run without scanamo executes flawlessly.
I'm using the synchronous exec function and I can confirm that the IAM settings and networking for the client is correct because I use the same client to run requests the old fashioned way during debugging.
 I love the interface though so if there's any tests / logging you want me to stage to address this issue I'm happy to checkout what I worked on before and help you debug this before 1.0 comes out.

Thanks for the report and offer @acunniffe. I haven't heard of  anything like this before. Whilst there can be issues with compilation performance, by the time you're deploying to Lambda you should just have the compiled bytecode and that's a fairly thin layer. It would be fairly easy to add in an interpreter that did some timing around requests, but I haven't got an example of such a thing for you.
It would be great to hear if anyone has seen any similar behaviour.

Hey @philwills I did a few more test cases after seeing your message. Bumping the performance of the machine or adding a much longer timeout ~15 seconds seemed to solve the problem. Weird thing though is after the first request processed all the other ones were much faster and never timed out even if I went back to 2-3 second timeout.
I haven't dug too deeply into the code but it seems like all the formatters/reflection your library does could take an appreciable amount of time to initialize in their environment on the first run. That would explain why using the raw amazon representations went faster.
Let me know if I can help at all. If you point me towards a few places in the codebase I can work on the performance.

There shouldn't be any reflection done at runtime. All of the introspection is done by macros at compile time. If expect a small hit on start up time off the JVM, but I'm surprised if it's of the order you found.

@acunniffe out of curiosity, which interpreter were you using?

I believe this is a classloader issue with AWS Lambda. We've had similar experiences - if the jars that you end up pulling in have tons of classes, etc you're going to see a really slow coldstart time for AWS Lambda. Once the function is "warm" subsequent requests to a warmed lambda container will be nice and snappy.
Unfortunately, in our experience it means avoiding large libraries or libraries that pull in large dependencies.

@acunniffe This is what @rmmeans mentions as cold start, a known limitation / issue with using jvm languages on AWS Lambda. Amazon is working hard to optimize this and the performance has increased but still is an issue. The issue is that the cold start will affect all parallel first time invocation of your lambda. If you have access to proguard skilled people we have used proguard to "trim" a lot of our build and went from 40 mb to 8mb zip file and more than 50% reduction in cold start. But it is complex to use since you have to "tell" progaurd which classes is necessarry and also those used by third party libraries or reflection.


[bug]: No highlighting until key is pressed

Describe the bug
Syntax highlighting only appears after another key is pressed, so if the command is obtained from history, there's no syntax highlighting until another key press.
Steps to reproduce

Type in command echo "Hello World" letter by letter, and run it (and see syntax highlighting work)
Now press up arrow, to obtain the last command from history
Observe echo "Hello World" command appear, but without any syntax highlighting
Press any key, including the arrow keys (such as arrow right)
Observe the command text suddenly getting syntax highlighting

Similarly, with hist_verify option, as the expanded command is shown, there's no highlighting until a key is pressed
Expected behavior
The highlighting should appear immediately, not only after another key is pressed. I often just search the history for a command by pressing the up arrow multiple times, and I want to see the highlighting in the commands I go over, however currently, I need to press another key (like arrow right) between each result to get the highlighting to appear, which is incredibly annoying.
Screenshots and recordings
https://asciinema.org/a/kv7tJt9WRxWd2F8CjmUqhHz4d
Operating System & Version
Arch Linux 6.1.9-arch1-1; linux-gnu | pc | x86_64 | x86_64 | x86_64 unknown
Zsh version
zsh 5.9 (x86_64-pc-linux-gnu)
Terminal emulator
alacritty
If using WSL on Windows, which version of WSL
None
Additional context
With https://github.com/zsh-users/zsh-syntax-highlighting the highlighting works properly and no additional key presses are needed. So this is clearly possible and not some kind of terminal emulator limitation or anything like that.
I should note that I am on wayland (specifically Hyprland), and that Alacritty is running natively under wayland, if that makes some difference.

Hm, however with https://github.com/z-shell/F-Sy-H everything works just fine, I'm honestly a bit confused what's the difference between this repo and z-shell/F-Sy-H though.


chore(ci): add codecove integration

Description
This PR configures publishing coverage information to codecov.io
Example report for this branch:

https://app.codecov.io/github/stackrox/stackrox/tree/codecov-integration
https://github.com/stackrox/stackrox/pull/8936#issuecomment-1843324773

Next step will be to configure codecove to post updates on PR or slack about coverage changes and enable code coverage generation for ui and optionally integration tests
Refs:

https://github.com/stackrox/stackrox/pull/6539
https://github.com/stackrox/stackrox/commit/e301f4963f038ff37a1c944cfe01347b21b3b7ec – we used to have coveralls

Checklist

[ ] Investigated and inspected CI test results
[ ] Unit test and regression tests added
[ ] Evaluated and added CHANGELOG entry if required
[ ] Determined and documented upgrade steps
[ ] Documented user facing changes (create PR based on openshift/openshift-docs and merge into rhacs-docs)

If any of these don't apply, please comment below.
Testing Performed
Here I tell how I validated my change
See example ⬆
Reminder for reviewers
In addition to reviewing code here, reviewers must also review testing and request further testing in case the
performed one does not seem sufficient. As a reviewer, you must not approve the change until you understand the
performed testing and you are satisfied with it.

/retest


[Feature] support read-only root fs

Is your feature request related to a problem? Please describe.
I would like to have mariadb running with root fs readonly, like all containers should.
Describe the solution you'd like
Either more direct support for it or at least an ability to define additional custom volumes for the pod (e.g /tmp, /var/lib)
Describe alternatives you've considered
There does not seem to be any options today to achieve it. The read-only root fs mode can be set via securitycontext, but there seems to be no way to provide the addional (emptyDir) volumes to mariadb pod.

Hey @ngrigoriev ! Thanks for raising this
This has been addressed in this PR:

https://github.com/mariadb-operator/mariadb-operator/pull/101

Now you are able to specify extra spec.volumes and spec.volumeMounts, see this example:

https://github.com/mariadb-operator/mariadb-operator/blob/main/config/samples/mariadb_v1alpha1_mariadb.yaml#L32..L37

I think it should cover your case, let me know otherwise. Thanks 🙏🏻


[ubuntu] [1080ti] CUDA error 3 at .. ggml-cuda.cu:2268: initialization error

Prerequisites
Please answer the following questions for yourself before submitting an issue.

[X] I am running the latest code. Development is very rapid so there are no tagged versions as of now.
[ ] I carefully followed the README.md.
[ ] I searched using keywords relevant to my issue to make sure that I am creating a new issue that is not already open (or closed).
[ ] I reviewed the Discussions, and have a new bug or useful enhancement to share.

Expected Behavior
To work with my VM linux ubuntu GTX1080ti GPU passthrough, some old binding version few weks ago was working with GPU (manually installed) but now 0.1.63 is not.
It works on my windows machine RTX3090 no problem.
Current Behavior
Im using this binding via https://github.com/ParisNeo/lollms-webui
Load binding, load model, get error
 ******************* Building Binding from main Process *************************
Loading binding llama_cpp_official install ON
-------------- llama_cpp_official binding -------------------------------
This is the first time you are using this binding.
Collecting llama-cpp-python (from -r /home/sd2/gpt4all-ui-andzejsp/env/lib/python3.10/site-packages/lollms/bindings_zoo/llama_cpp_official/requirements.txt (line 1))
  Downloading llama_cpp_python-0.1.63.tar.gz (1.5 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.5/1.5 MB 36.1 MB/s eta 0:00:00
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Collecting llamacpp (from -r /home/sd2/gpt4all-ui-andzejsp/env/lib/python3.10/site-packages/lollms/bindings_zoo/llama_cpp_official/requirements.txt (line 2))
  Downloading llamacpp-0.1.14-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (243 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 243.4/243.4 kB 413.3 MB/s eta 0:00:00
Requirement already satisfied: typing-extensions>=4.5.0 in ./env/lib/python3.10/site-packages (from llama-cpp-python->-r /home/sd2/gpt4all-ui-andzejsp/env/lib/python3.10/site-packages/lollms/bindings_zoo/llama_cpp_official/requirements.txt (line 1)) (4.6.3)
Requirement already satisfied: numpy>=1.20.0 in ./env/lib/python3.10/site-packages (from llama-cpp-python->-r /home/sd2/gpt4all-ui-andzejsp/env/lib/python3.10/site-packages/lollms/bindings_zoo/llama_cpp_official/requirements.txt (line 1)) (1.24.3)
Collecting diskcache>=5.6.1 (from llama-cpp-python->-r /home/sd2/gpt4all-ui-andzejsp/env/lib/python3.10/site-packages/lollms/bindings_zoo/llama_cpp_official/requirements.txt (line 1))
  Downloading diskcache-5.6.1-py3-none-any.whl (45 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 45.6/45.6 kB 311.6 MB/s eta 0:00:00
Building wheels for collected packages: llama-cpp-python
  Building wheel for llama-cpp-python (pyproject.toml) ... done
  Created wheel for llama-cpp-python: filename=llama_cpp_python-0.1.63-cp310-cp310-linux_x86_64.whl size=344998 sha256=09ec04e3ab9e2ebac120ad6fa2302bb7258f6dc2d781cea4b6291a58892c5c3e
  Stored in directory: /tmp/pip-ephem-wheel-cache-4pq9u4na/wheels/68/c9/cb/ebc9d1bf7e7651737b43dcf027d408f21465c5fea38aa306ed
Successfully built llama-cpp-python
Installing collected packages: llamacpp, diskcache, llama-cpp-python
Successfully installed diskcache-5.6.1 llama-cpp-python-0.1.63 llamacpp-0.1.14
Installed successfully
ggml_init_cublas: found 1 CUDA devices:
  Device 0: NVIDIA GeForce GTX 1080 Ti
Binding loaded successfully
 ******************* Building mounted Personalities from main Process *************************
* english/generic/lollms
Loading from /home/sd2/gpt4all-ui-andzejsp/env/lib/python3.10/site-packages/lollms/personalities_zoo/english/generic/lollms
selected : 0
 ************ Personalities mounted (Main process) ***************************
Checking discussions database... ok
 ******************* Building Binding from generation Process *************************
Loading binding llama_cpp_official install ON
Binding loaded successfully
Loading model : /home/sd2/gpt4all-ui-andzejsp/models/llama_cpp_official/baize-v2-13b.ggmlv3.q4_0.bin
llama.cpp: loading model from /home/sd2/gpt4all-ui-andzejsp/models/llama_cpp_official/baize-v2-13b.ggmlv3.q4_0.bin
llama_model_load_internal: format     = ggjt v3 (latest)
llama_model_load_internal: n_vocab    = 32000
llama_model_load_internal: n_ctx      = 2048
llama_model_load_internal: n_embd     = 5120
llama_model_load_internal: n_mult     = 256
llama_model_load_internal: n_head     = 40
llama_model_load_internal: n_layer    = 40
llama_model_load_internal: n_rot      = 128
llama_model_load_internal: ftype      = 2 (mostly Q4_0)
llama_model_load_internal: n_ff       = 13824
llama_model_load_internal: n_parts    = 1
llama_model_load_internal: model size = 13B
llama_model_load_internal: ggml ctx size =    0.09 MB
WARNING: failed to allocate 0.09 MB of pinned memory: initialization error
llama_model_load_internal: using CUDA for GPU acceleration
llama_model_load_internal: mem required  = 5627.80 MB (+ 1608.00 MB per state)
llama_model_load_internal: allocating batch_size x 1 MB = 512 MB VRAM for the scratch buffer
llama_model_load_internal: offloading 20 repeating layers to GPU
llama_model_load_internal: offloaded 20/43 layers to GPU
llama_model_load_internal: total VRAM used: 3916 MB
Please open your browser and go to http://<IP_ADDRESS>:9600 to view the ui
debug mode:false
...................................................CUDA error 3 at /tmp/pip-install-jwx8ttxm/llama-cpp-python_d1fa921b54e942bab84294b2d6c7e011/vendor/llama.cpp/ggml-cuda.cu:2268: initialization error
Client eshyddBljK-YW35tAAAB connected
- Loading discussion
    Recovered json data
    Discussion id :1

I tried pip install llama-cpp-python --force-reinstall --upgrade --no-cache-dir but it dont recognize my GPU, atleast it  dont show in console
What else can i try? Im no pythonist, so please help me

another thing i noticed that i have cuda 11.5, while windows is working with 11.7
sd2@sd2:~/gpt4all-ui-andzejsp$ nvcc --version
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2021 NVIDIA Corporation
Built on Thu_Nov_18_09:45:30_PST_2021
Cuda compilation tools, release 11.5, V11.5.119
Build cuda_11.5.r11.5/compiler.30672275_0

more progress
i installed cude as per guide, wanted to get 11.7 but it installed 12.1
https://developer.nvidia.com/cuda-11-7-0-download-archive?target_os=Linux&target_arch=x86_64&Distribution=Ubuntu&target_version=22.04&target_type=deb_network
wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64/cuda-ubuntu2204.pin

sudo mv cuda-ubuntu2204.pin /etc/apt/preferences.d/cuda-repository-pin-600

sudo apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64/3bf863cc.pub

sudo add-apt-repository "deb https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64/ /"

sudo apt-get update

sudo apt-get -y install cuda

And after reboot i lost nvcc
sd2@sd2:~/gpt4all-ui-andzejsp$ nvcc
Command 'nvcc' not found, but can be installed with:
sudo apt install nvidia-cuda-toolkit
sd2@sd2:~/gpt4all-ui-andzejsp$ sudo apt install nvidia-cuda-toolkit
[sudo] password for sd2:
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 libcuinj64-11.5 : Depends: libnvidia-compute-495 (>= 495) but it is not going to be installed or
                            libnvidia-compute-495-server (>= 495) but it is not installable or
                            libcuda.so.1 (>= 495) or
                            libcuda-11.5-1
 libnvidia-ml-dev : Depends: libnvidia-compute-495 (>= 495) but it is not going to be installed or
                             libnvidia-compute-495-server (>= 495) but it is not installable or
                             libnvidia-ml.so.1 (>= 495)
 nvidia-cuda-dev : Depends: libnvidia-compute-495 (>= 495) but it is not going to be installed or
                            libnvidia-compute-495-server (>= 495) but it is not installable or
                            libcuda.so.1 (>= 495) or
                            libcuda-11.5-1
                   Recommends: libnvcuvid1 but it is not installable
E: Unable to correct problems, you have held broken packages.
sd2@sd2:~/gpt4all-ui-andzejsp$

But good news is that binding is working:
Upgrading configuration... ******************* Building Binding from generation Process *************************
Loading binding llama_cpp_official install ON
Binding loaded successfully
Loading model : /home/sd2/gpt4all-ui-andzejsp/models/llama_cpp_official/airoboros-13b-gpt4.ggmlv3.q4_0.bin
llama.cpp: loading model from /home/sd2/gpt4all-ui-andzejsp/models/llama_cpp_official/airoboros-13b-gpt4.ggmlv3.q4_0.bin
llama_model_load_internal: format     = ggjt v3 (latest)
llama_model_load_internal: n_vocab    = 32000
llama_model_load_internal: n_ctx      = 2048
llama_model_load_internal: n_embd     = 5120
llama_model_load_internal: n_mult     = 256
llama_model_load_internal: n_head     = 40
llama_model_load_internal: n_layer    = 40
llama_model_load_internal: n_rot      = 128
llama_model_load_internal: ftype      = 2 (mostly Q4_0)
llama_model_load_internal: n_ff       = 13824
llama_model_load_internal: n_parts    = 1
llama_model_load_internal: model size = 13B
llama_model_load_internal: ggml ctx size =    0.09 MB
llama_model_load_internal: using CUDA for GPU acceleration
llama_model_load_internal: mem required  = 5627.80 MB (+ 1608.00 MB per state)
llama_model_load_internal: allocating batch_size x 1 MB = 512 MB VRAM for the scratch buffer
llama_model_load_internal: offloading 20 repeating layers to GPU
llama_model_load_internal: offloaded 20/43 layers to GPU
llama_model_load_internal: total VRAM used: 3916 MB
....................................................................................................
llama_init_from_file: kv self size  = 1600.00 MB
AVX = 1 | AVX2 = 1 | AVX512 = 0 | AVX512_VBMI = 0 | AVX512_VNNI = 0 | FMA = 1 | NEON = 0 | ARM_FMA = 0 | F16C = 1 | FP16_VA = 0 | WASM_SIMD = 0 | BLAS = 1 | SSE3 = 1 | VSX = 0 |
Model created successfully

OK
Starting message generation bylollms
Received message : are cats dogs?
Generating message...
llama_tokenize: too many tokens
Cats are cats are cats are cats are cats are cats are cats are cats are cats are cats are cats are cats are cats are cats are cats are cats are cats are cats are cats are cats are cats are cats are cats are cats are cats are cats are cats are cats are cats are cats are cats are cCanel request received
Stop generation received
Finished executing the generation
atsGeneration canceled
Canel request received
Stop generation received

## Done Generation ##

## Done ##

+---------------------------------------------------------------------------------------+
| Processes:                                                                            |
|  GPU   GI   CI        PID   Type   Process name                            GPU Memory |
|        ID   ID                                                             Usage      |
|=======================================================================================|
|    0   N/A  N/A      1035      G   /usr/lib/xorg/Xorg                            4MiB |
|    0   N/A  N/A      2538      C   python                                      250MiB |
|    0   N/A  N/A      2539      C   python                                     5858MiB |
+---------------------------------------------------------------------------------------+
Fri Jun 16 15:20:07 2023
+---------------------------------------------------------------------------------------+
| NVIDIA-SMI 530.30.02              Driver Version: 530.30.02    CUDA Version: 12.1     |
|-----------------------------------------+----------------------+----------------------+
| GPU  Name                  Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf            Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|                                         |                      |               MIG M. |
|=========================================+======================+======================|
|   0  NVIDIA GeForce GTX 1080 Ti      On | 00000000:00:10.0 Off |                  N/A |
| 30%   51C    P2               77W / 320W|   6122MiB / 11264MiB |     22%      Default |
|                                         |                      |                  N/A |
+-----------------------------------------+----------------------+----------------------+

Closing. Please reopen if the problem is reproducible with the latest llama-cpp-python which includes an updated llama.cpp


rename folder

TITLE
Description
Description of the pull request changes and motivation.
Type of change
Please delete options that are not relevant.

[ ] New feature
[ ] Bug fix
[ ] Optimization

Checklist

[ ] Linked to Github Issue
[ ] Unit tests added
[ ] This change requires new documentation.

[ ] Documentation has been added/updated.

[ ] This change is an Optimization

[ ] Benchmarks added/run

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (9a22a9d) 95.44% compared to head (1fe6ed1) 95.44%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #749   +/-   ##
=======================================
  Coverage   95.44%   95.44%
=======================================
  Files         139      139
  Lines       31367    31367
=======================================
  Hits        29938    29938
  Misses       1429     1429

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


Ollama 0.4.0 will produce a large number of blocks in output usage.

What is the issue?
Ollama 0.4.0 will produce a large number of blocks in output usage.

OS
macOS
GPU
Apple
CPU
Apple
Ollama version
0.4.0

Thanks for the report - tracking this in #7290


BMI160 with SS12D00G3 and 503759

So I see on the official Doc that BMI160 is the current go-to IMU for DIY Slime So I wonder is there a tray for this setup rn? I see the one for 503759 with SS22F32 but not SS12D00G3.

As described in the documentation there is currently an experimental tray for the bmi 160.
It’s in the untested folder.
But it’s only for specific components.
The fusion files are included so you can easily edit the original in a few clicks as well.


Adopt NavPage UI component

Depends on https://github.com/containers/podman-desktop/issues/6907
See also https://github.com/containers/podman-desktop/issues/5757

Blocked by https://github.com/containers/podman-desktop-extension-ai-lab/issues/1205


Breaking Changes Bucket

This issue will be used to track small breaking changes, some of which should be performed before the next major version.

[ ] GAST - rename Flat -> Alternative
[x] api.d.ts get rid of IAnyORAlt
[x] Decrease default maxLookahead to 3
[x] Removed ingnoredIssues from the IParserConfig
[x] Remove Parser class (only CstParser and EmbeddedActionsParser)
[x] Evaluate Deprecating Nested Rules (#809)
[ ] TokenType properties API cleanup (#1041)
[x] Remove static performSelfAnalysis methods.

https://github.com/SAP/chevrotain/commit/ab895292423b9ec6fdd0dcd8ca387cf3b25559fd

https://github.com/SAP/chevrotain/pull/1163

Enough breaking changes for 7.0


[BUG][TESTS] The tests are failing

The tests in the repository are failing,

see, https://github.com/syedalimohsinbukhari/mpyez/commit/502f946f08f858ac8f5f1c454401b5d9f1f9ff4d


[SR-2025] Added defaults to swift-build help section

Fixes https://bugs.swift.org/browse/SR-2025
Happy to change the ASCII art style if you have suggestions.

LGTM

I pushed one more change to clarify that --clean works even without specifying a clean mode, as opposed to the other flags which require a value. /cc @modocache

LGTM, thanks!


customValue support for VNester and route elements

This enhancement is motivated by the code example here from #32 to use VNester and sync bottom nav bar and nested tab bar with routes while preserving state.
While the code example from the linked comment above works, you have to repeat the whole VNester and the widgetBuilder (only varying the currentIndex in the constructor to the widget). This gets pretty cumbersome if you have more complex nested routes with VGuard or as the nesting level goes 3-deep in a more complex app.
The reason why the whole VNester has to be repeated in the example is that there is no way to associate with the child widget the tab index (even a mixin to Widget won't work, as the actual child widget is wrapped in a Builder and cannot be accessed directly from the child parameter passed to the widgetBuilder function).
This PR adds the concept of an optional customValue dynamic value to VRouteElement, and then an optional second type of widgetBuilder that will take (child, customValue) instead of just (child). VNester is enhanced to then search for and provide the "nearest" customValue on the matched route to the child to the widgetBuilder (logic to do this only happens if widgetBuilder has the new type -- the old type is still accepted for backwards compatibility as well). This simplifies the code example to the following:

Show modified "advanced" example that uses `customValue`
import 'package:flutter/material.dart';
import 'package:vrouter/vrouter.dart';

void main() {
  runApp(
    VRouter(
      debugShowCheckedModeBanner: false,
      routes: [
        VNester(
          path: '/',
          widgetBuilder: (child, customValue) =>
              MyScaffold(child, currentIndex: customValue as int),
          nestedRoutes: [
            VWidget(
              path: null,
              key: ValueKey('Home'),
              customValue: 0,
              widget: HomeScreen(),
              stackedRoutes: [
                VNester(
                  path: null,
                  widgetBuilder: (child, customValue) =>
                      MyTabs(child, currentIndex: customValue as int),
                  nestedRoutes: [
                    VWidget(
                        path: 'red',
                        customValue: 0,
                        widget:
                            ColorScreen(color: Colors.redAccent, title: 'Red')),
                    VWidget(
                        path: 'green',
                        customValue: 1,
                        widget: ColorScreen(
                            color: Colors.greenAccent, title: 'Green')),
                  ],
                ),
              ],
            ),
            VWidget(
              path: 'profile',
              customValue: 1,
              widget: ProfileScreen(),
              stackedRoutes: [
                VWidget(path: 'settings', widget: SettingsScreen())
              ],
            ),
          ],
        ),
      ],
    ),
  );
}

class BaseWidget extends StatefulWidget {
  final String title;
  final String buttonText;
  final String to;

  BaseWidget({required this.title, required this.buttonText, required this.to});

  @override
  _BaseWidgetState createState() => _BaseWidgetState();
}

class _BaseWidgetState extends State<BaseWidget> {
  bool isChecked = false;

  @override
  Widget build(BuildContext context) {
    return Material(
      child: Center(
        child: Column(
          mainAxisSize: MainAxisSize.min,
          children: [
            Text(widget.title),
            SizedBox(height: 50),
            ElevatedButton(
              onPressed: () => context.vRouter.to(widget.to),
              child: Text(widget.buttonText),
            ),
            SizedBox(height: 50),
            Checkbox(
              value: isChecked,
              onChanged: (value) => setState(() => isChecked = value ?? false),
            ),
          ],
        ),
      ),
    );
  }
}

class MyScaffold extends StatefulWidget {
  final Widget child;
  final int currentIndex;

  const MyScaffold(this.child, {required this.currentIndex});

  @override
  _MyScaffoldState createState() => _MyScaffoldState();
}

class _MyScaffoldState extends State<MyScaffold> {
  List<Widget> tabs = [Container(), Container()];

  List<String> tabsLastVisitedUrls = ['/', '/profile'];

  @override
  Widget build(BuildContext context) {
    // Populate the tabs when needed
    tabs[widget.currentIndex] = widget.child;

    // Populate tabs last visited url
    tabsLastVisitedUrls[widget.currentIndex] = context.vRouter.url;

    return Scaffold(
      body: IndexedStack(
        index: widget.currentIndex,
        children: tabs,
      ),
      bottomNavigationBar: BottomNavigationBar(
        currentIndex: widget.currentIndex,
        onTap: (value) => context.vRouter.to(tabsLastVisitedUrls[value]),
        items: [
          BottomNavigationBarItem(icon: Icon(Icons.home), label: 'Home'),
          BottomNavigationBarItem(icon: Icon(Icons.settings), label: 'Profile'),
        ],
      ),
    );
  }
}

class HomeScreen extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return BaseWidget(
        title: 'Home', buttonText: 'Go to Color Tabs', to: '/red');
  }
}

class SettingsScreen extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return BaseWidget(title: 'Settings', buttonText: 'Pop', to: '/profile');
  }
}

class ProfileScreen extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return BaseWidget(
        title: 'Profile',
        buttonText: 'Go to Settings',
        to: '/profile/settings');
  }
}

class MyTabs extends StatefulWidget {
  final Widget child;
  final int currentIndex;

  const MyTabs(this.child, {required this.currentIndex});

  @override
  _MyTabsState createState() => _MyTabsState();
}

class _MyTabsState extends State<MyTabs> with SingleTickerProviderStateMixin {
  late final tabController = TabController(
    initialIndex: widget.currentIndex,
    length: tabs.length,
    vsync: this,
  );

  // We use this as the index to easily fetch the new widget when in comes into view
  int get tabControllerIndex =>
      tabController.index + tabController.offset.sign.toInt();

  List<Widget> tabs = [Container(), Container()];

  @override
  Widget build(BuildContext context) {
    // Sync the tabController with the url
    if (!tabController.indexIsChanging &&
        tabControllerIndex != widget.currentIndex)
      tabController.animateTo(widget.currentIndex);

    // Populate the tabs when needed
    tabs[widget.currentIndex] = widget.child;
    tabs = List.from(tabs); // Needed so that TabBarView updates its children

    return Scaffold(
      appBar: AppBar(
        title: const Text('Colors'),
        bottom: TabBar(
          controller: tabController,
          tabs: const [Tab(text: 'Red'), Tab(text: 'Green')],
        ),
      ),
      body: NotificationListener<ScrollNotification>(
        onNotification: (_) {
          // Syncs the url with the tabController
          if (tabControllerIndex != widget.currentIndex)
            context.vRouter.to(tabControllerIndex == 0 ? '/red' : '/green');
          return false;
        },
        child: TabBarView(
          controller: tabController,
          children: tabs,
        ),
      ),
    );
  }
}

class ColorScreen extends StatefulWidget {
  final Color color;
  final String title;

  const ColorScreen({required this.color, required this.title});

  @override
  _ColorScreenState createState() => _ColorScreenState();
}

class _ColorScreenState extends State<ColorScreen>
    with AutomaticKeepAliveClientMixin<ColorScreen> {
  bool isChecked = false;

  @override
  Widget build(BuildContext context) {
    super.build(context);

    return Container(
      color: widget.color,
      child: Center(
        child: Column(
          mainAxisSize: MainAxisSize.min,
          children: [
            Text(widget.title),
            SizedBox(height: 50),
            ElevatedButton(
              onPressed: () => context.vRouter.to('/'),
              child: Text('Pop'),
            ),
            SizedBox(height: 50),
            Checkbox(
              value: isChecked,
              onChanged: (value) => setState(() => isChecked = value ?? false),
            ),
          ],
        ),
      ),
    );
  }

  @override
  bool get wantKeepAlive => true;
}

However, it is causing an issue where after navigating back and forth between different nested routes now that there is only a single VNester, flutter (2.8.0) throws the error:
════════ Exception caught by widgets library ═══════════════════════════════════
Duplicate GlobalKey detected in widget tree.
════════════════════════════════════════════════════════════════════════════════

(Note that there is a RenderIndexedStack exception getting thrown sometimes too, but that wasn't happening in the full-scale app, it was just the Duplicate GlobalKey exception that was occurring whenever changing the route to a different tab at the same "nesting level" as the current route.)
And inspecting the debug label of the GlobalKey, it is the global key of the top-most level VNester. Using multiple VNesters like the original example (even with customValue) doesn't have this problem, so it doesn't seem like the customValue changes cause this directly, but it might be something unexpected with how this is working now that only a single VNester is needed at each level. I'm not a flutter expert (yet!), and so was hoping @lulupointu you might have some insights why this might be happening / how to fix it.
I'd also love your feedback on the general direction of this PR as well! At first I tried to add a custom value chain (similar to name) in VRoute, but this was complex and also was difficult to know exactly which customValue should be passed to widgetBuilder (especially when there are multiple nested VNester). This PR is the second attempt that is simpler where it just searches the element list (which does have only the list of child route elements at the point of VNester, so it was both simpler and worked with all levels of nesting).
In the meantime, I made a custom VRouteElementBuilder that generates the multiple VNester (one for each tab) so that it removes boilerplate / duplicate code, and still works with the current vRouter as released. In case it's useful to anyone:

Show code for TabbedNester
class TabbedNesterEntry {
  final List<VRouteElement> nestedRoutes;
  final List<VRouteElement> stackedRoutes;

  TabbedNesterEntry(
    this.nestedRoutes, {
    this.stackedRoutes = const <VRouteElement>[],
  });
}

class TabbedNester extends VRouteElementBuilder {
  final String? path;
  final Widget Function(Widget child, int currentTabIndex) widgetBuilder;

  /// The route(s) that should be associated with each tab entry.
  /// Each tab has one entry in this list.
  /// Each entry in this list is either a single VRouteElement,
  /// a list of VRouteElements (becomes nestedRoutes in the VNester
  /// specifically for this tab), or a TabbedNesterEntry (allowing full
  /// specification of both the nestedRoutes and stackedRoutes).
  final List<dynamic> entries;

  /// Set the alias to be the same as the path if you want to avoid
  /// animating between tabs within this route.
  final List<String> aliases;

  TabbedNester({
    required this.path,
    required this.widgetBuilder,
    required this.entries,
    this.aliases = const [],
  });

  @override
  List<VRouteElement> buildRoutes() {
    var routes = <VRouteElement>[];
    for (int i = 0; i < entries.length; i++) {
      var nestedRoutes = const <VRouteElement>[];
      var stackedRoutes = const <VRouteElement>[];
      if (entries[i] is TabbedNesterEntry) {
        var e = entries[i] as TabbedNesterEntry;
        nestedRoutes = e.nestedRoutes;
        stackedRoutes = e.stackedRoutes;
      } else if (entries[i] is List<VRouteElement>) {
        nestedRoutes = entries[i] as List<VRouteElement>;
      } else if (entries[i] is VRouteElement) {
        nestedRoutes = <VRouteElement>[entries[i] as VRouteElement];
      } else {
        throw UnsupportedError("Unknown type of TabbedNester entry #$i");
      }
      routes.add(VNester(
        path: path,
        widgetBuilder: (child) => widgetBuilder(child, i),
        nestedRoutes: nestedRoutes,
        stackedRoutes: stackedRoutes,
      ));
    }
    return routes;
  }
}

I'm having this exact problem and I'm grateful there is some serious work to improve it.

I believe this might have something to do with this comment? https://github.com/lulupointu/vrouter/issues/77#issuecomment-851869374


[backport] Fix flaky test of _modified_xlogx

Backport of #8483

[automatic post] Jenkins, test this please.

Jenkins CI test (for commit 0355803ccdd7d831533ee174bc36e94021ea81b4, target branch v6) succeeded!


lavamoat-tofu Error: unknown ast node type when trying to get name: "PrivateName"

happens when going through @fastify/http-proxy
Error: unknown ast node type when trying to get name: "PrivateName"
at getNameFromNode (/app/node_modules/lavamoat-tofu/src/util.js:46:11)

specifically this is in undici which uses private fields.

I installed and required the module. That was enough to trigger the error afair.


fix spot dir nan bug

Objective
fix error with pbr shader's spotlight direction calculation when direction.y ~= 0
Solution
in pbr_lighting.wgsl, clamp 1-x^2-z^2 to >= 0 so that we can safely sqrt it

bors r+


Update OMEnvironment yaml to have images as variable

Images in the OMEnvironment yaml embedded in the deploy-oms.sh script currently has hard coded images. These need to be variable to be able to create different options.

Should allow for two versions. Professional and Enterprise.
Professional : cp.icr.io/cp/ibm-oms-professional
Enterprise: cp.icr.io/cp/ibm-oms-enterprise


Use tmp callbacks

We disabled tmp callbacks because of memory leaks in openssl_binding.rs.
Use them again.

There is no need to use the callbacks, using set_tmp_rsa is just fine.

With the latest openssl crate we will have to write custom bindings as this feature was removed: https://github.com/sfackler/rust-openssl/issues/1529


Windows Ink demo scenario 9 replay malfunctioned

In Windows SimpleInk Demo, scenario 9 specifically, when I tried to apply an InkToolBar to customize the strokes, there appear to be two bugs:

When the replay is finished, the InkToolBar won't bind with the new InkCanvas that we newed during runtime.
When the strokes are customized, the replay progress won't show the colors, different types of pen, etc until a stroke was drawn on the screen. like this:

For the first bug, we simply give the InkToolBar a Name="inkToolBar", and bind it with the canvas again after StopReplay or OnReset is called.
For the second bug, I don't know how to deal with it due to my limited knowledge of Windows Ink.
Is there any hint that you guys can give me so that I can fix it in my program?
Thank you.

I think I've kinda found a way to fix bug No.2:
Before we parse the stroke to be drawn to stroke builder, or before the function CreateStrokeFromInkPoints was called, we need to extract the inkAttributes from the stroke and pass it as a parameter to stroke builder.
The first two lines are the work that we need to do:
auto inkDrawingAttributes = stroke->DrawingAttributes;
strokeBuilder->SetDefaultDrawingAttributes(inkDrawingAttributes);
strokeBuilder->CreateStrokeFromInkPoints(initialPoints, float3x2::identity());


Improve enum handling in from_object

Add return type annotation for from_object
Fixes #84

Out of curiosity (for learning):
Why BookModel (test_core.py line 470) is not a dataclass too?
Is there any problem or something to consider?


Fixing path parsing to include previously set path on client url

This PR fixes path parsing, so that new paths are appended to previously declared paths on the endpoint url.
This helps ensure proper functioning for cases where the host is declared as: {endpoint}/foo so that the /foo is not lost upon request creation.

Fixes https://github.com/Azure/autorest.go/issues/440


Not a bug, but a proposal for an upgrade/feature on migrations

As I said in the title, this is not a bug, but a proposal (didn't know where to write this that would be seen.
Now, on my project I have a big database (not in terms of data but in terms of tables and columns in those tables), and I also have a lot of indexes.
I noticed today that I need to write in a migration class
$this->createIndex('name', 'table', ['columns'])
after creating a new table, what I'm thinking should be a good idea is to add a possibility for method chaining on "createTable" function where I wouldn't need to enter table name for every index.
Or perhaps another parameter in createTable function that would easily let me add indexes in one place.

How would the syntax look like?

Maybe something like
$this->createTable('tableName', [     'id' => $this->primaryKey(),     'column' => $this->string() ], 'some options', [     'index1' => ['column1', 'column2'],     'index2' => ['column3'] ]);
OR
$this->createTable('tableName', [     'id' => $this->primaryKey(),     'column' => $this->string() ], 'some options')->index('index1', ['column1', 'column2'])->index('index2', 'column3');

Formatting is easy: https://guides.github.com/features/mastering-markdown/

Second options looks interesting...

I personally like first option better, but whatever you make is okay with me.

$this->createTable('tableName',
        [
            'id' => $this->primaryKey(),
            'column' => $this->string()
        ]
)->createIndex(
        ['index_one', 'column1'],
        ['index_two', ['column1', 'column2']],
        ['index_three', ['column1', 'column2']],
)->createForeignKey(
        ['FK_name_one', 'column1', 'table1', 'column'],
        ['FK_name_two', 'column2', 'table2', 'column']
);

How about something like this?
$this->createTable('tableName', [
    'id' => $this->primaryKey(),
    'column' => $this->string()->index(),
]);

I'm for
$this->createTable('tableName', [
    'id' => $this->primaryKey(),
    'name' => $this->string()->index('indexName'),
    'topic_id' => $this->integer()->foreignKey('indexName', 'referencedTable', 'referencedColumn'),
]);

Great ideas, but what about complex indexes?

We already have createIndex() for complex indexes.

I'm in favor for chaining like @kjusupov exampled. This fits with the current way of constructing the migrations.

I'm in favor for chaining like @kjusupov exampled. This fits with the current way of constructing the migrations.

This syntax does not give you any real benefits, it creates only another way to do the same thig (which usually decrease readability).

I'm with @rob006 on this one, his example is quite good.

The syntax proposed by @rob006 allows sqlite3 to create foreign keys at the same time that the table, which is the only way to add a foreign key in sqlite3 so far, although I am working on adding that feature to yii2/sqlite3:  #15007

@kjusupov

$this->createTable('tableName',
        [
            'id' => $this->primaryKey(),
            'column' => $this->string()
        ]
)->createIndex(
        ['index_one', 'column1'],
        ['index_two', ['column1', 'column2']],
        ['index_three', ['column1', 'column2']],
)->createForeignKey(
        ['FK_name_one', 'column1', 'table1', 'column'],
        ['FK_name_two', 'column2', 'table2', 'column']
);

The only issue I have with this approach is that you'd need to remember the parameters for createForeignKey() etc (unless you use an IDE that can tell you the parameters).
A better approach I think would be to make it mandatory to include the keys in the array, e.g:
$this->createForeignKey([
    'column' => 'user_id',
    'references' => 'id',
    'on' => 'user',
    'onDelete' => 'cascade',
]);

Note in this example, I didn't include the FK name - this should be optional and auto-generated (based on column and table name) if it isn't included.

A better approach I think would be to make it mandatory to include the keys in the array, e.g:

Now you need to remember keys names, and IDE will not help you here...

You can already add plain string lines like this to add an index:
$this->createTable('tableName', [
    'id' => $this->primaryKey(),
    'name' => $this->string(),
    'topic_id' => $this->integer(),
    'KEY topic_id(topic_id)',
    'FOREIGN KEY ... REFERENCES ...',
]);

So we can have a schemabuilder class that would build those strings in DBMS specific syntax.