Flex 170 GPU ollama unbale to detect GPU and sycl-ls also not detecting it !!!

I am testing old ollama bin file with llama2:7b model on Intel Flex 170 GPU:
I have followed new ipex-llm documentation for driver install and rest steps, but when i am running ollama serve it doesn't detect GPU also i see some dll error when ollama serve run.
Attaching ollama serve log in issue :
ollama_serve_flex_170.log
spandey2@IMU-NEX-EMR1-SUT:~/LLM_SceneScape_ChatBot$ sudo xpu-smi discovery
+-----------+--------------------------------------------------------------------------------------+
| Device ID | Device Information                                                                   |
+-----------+--------------------------------------------------------------------------------------+
| 0         | Device Name: Intel(R) Data Center GPU Flex 170
|
|           | Vendor Name: Intel(R) Corporation                                                    |
|           | SOC UUID: 00000000-0000-0000-dc8d-d308092ec026                                       |
|           | PCI BDF Address: 0000:29:00.0                                                        |
|           | DRM Device: /dev/dri/card1                                                           |
|           | Function Type: physical                                                              |
+-----------+--------------------------------------------------------------------------------------+
spandey2@IMU-NEX-EMR1-SUT:~/LLM_SceneScape_ChatBot$ sycl-ls
[opencl:acc:0] Intel(R) FPGA Emulation Platform for OpenCL(TM), Intel(R) FPGA Emulation Device OpenCL 1.2  [2<IP_ADDRESS>.12_195853.xmain-hotfix]
[opencl:cpu:1] Intel(R) OpenCL, INTEL(R) XEON(R) PLATINUM 8580 OpenCL 3.0 (Build 0) [2<IP_ADDRESS>.12_195853.xmain-hotfix]
Modelfile :
FROM llama2:latest
PARAMETER num_gpu 999
PARAMETER temperature 0
PARAMETER num_ctx 4096
PARAMETER use_mmap false
Ollama serve log:
time=2024-04-18T23:44:00.314+02:00 level=INFO source=gpu.go:285 msg="Searching for GPU management library libze_intel_gpu.so"
time=2024-04-18T23:44:00.315+02:00 level=INFO source=gpu.go:331 msg="Discovered GPU libraries: [/usr/lib/x86_64-linux-gnu/libze_intel_gpu.so.1.3.27642.40]"
time=2024-04-18T23:44:00.345+02:00 level=INFO source=gpu.go:377 msg="Unable to load oneAPI management library /usr/lib/x86_64-linux-gnu/libze_intel_gpu.so.1.3.27642.40: oneapi vram init failure:<PHONE_NUMBER>"
time=2024-04-18T23:44:00.345+02:00 level=INFO source=cpu_common.go:11 msg="CPU has AVX2"
time=2024-04-18T23:44:00.345+02:00 level=INFO source=routes.go:1044 msg="no GPU detected"
[GIN] 2024/04/18 - 23:45:10 | 200 |     120.449µs |       <IP_ADDRESS> | HEAD     "/"
[GIN] 2024/04/18 - 23:45:10 | 200 |    1.357185ms |       <IP_ADDRESS> | GET      "/api/tags"
time=2024-04-18T23:46:49.533+02:00 level=INFO source=cpu_common.go:11 msg="CPU has AVX2"
time=2024-04-18T23:46:49.533+02:00 level=INFO source=cpu_common.go:11 msg="CPU has AVX2"
time=2024-04-18T23:46:49.533+02:00 level=INFO source=llm.go:77 msg="GPU not available, falling back to CPU"
loading library /tmp/ollama1871007333/cpu_avx2/libext_server.so
llm_load_print_meta: LF token         = 13 '<0x0A>'
llm_load_tensors: ggml ctx size =    0.11 MiB
llm_load_tensors: offloading 0 repeating layers to GPU
llm_load_tensors: offloaded 0/33 layers to GPU
llm_load_tensors:        CPU buffer size =  3647.87 MiB
..................................................................................................
llama_new_context_with_model: n_ctx      = 4096
llama_new_context_with_model: freq_base  = 10000.0
llama_new_context_with_model: freq_scale = 1
llama_kv_cache_init:        CPU KV buffer size =  2048.00 MiB
llama_new_context_with_model: KV self size  = 2048.00 MiB, K (f16): 1024.00 MiB, V (f16): 1024.00 MiB
llama_new_context_with_model:        CPU input buffer size   =    16.02 MiB
llama_new_context_with_model:        CPU compute buffer size =   308.00 MiB
sudo xpu-smi stats -d 0                                                                                IMU-NEX-EMR1-SUT: Thu Apr 18 23:49:41 2024
+-----------------------------+--------------------------------------------------------------------+
| Device ID                   | 0                                                                  |
+-----------------------------+--------------------------------------------------------------------+
| GPU Utilization (%)         | 0                                                                  |
| EU Array Active (%)         | N/A                                                                |
| EU Array Stall (%)          | N/A                                                                |
| EU Array Idle (%)           | N/A                                                                |
|                             |                                                                    |
| Compute Engine Util (%)     | 0; Engine 0: 0, Engine 1: 0, Engine 2: 0, Engine 3: 0              |
| Render Engine Util (%)      | 0; Engine 0: 0                                                     |
| Media Engine Util (%)       | 0                                                                  |
| Decoder Engine Util (%)     | Engine 0: 0, Engine 1: 0                                           |
| Encoder Engine Util (%)     | Engine 0: 0, Engine 1: 0                                           |
| Copy Engine Util (%)        | 0; Engine 0: 0                                                     |
| Media EM Engine Util (%)    | Engine 0: 0, Engine 1: 0                                           |
| 3D Engine Util (%)          | N/A                                                                |
+-----------------------------+--------------------------------------------------------------------+
| Reset                       | N/A                                                                |
| Programming Errors          | N/A                                                                |
| Driver Errors               | N/A                                                                |
| Cache Errors Correctable    | N/A                                                                |
| Cache Errors Uncorrectable  | N/A                                                                |
| Mem Errors Correctable      | N/A                                                                |
| Mem Errors Uncorrectable    | N/A                                                                |
+-----------------------------+--------------------------------------------------------------------+
| GPU Power (W)               | 43                                                                 |
| GPU Frequency (MHz)         | 2050                                                               |
| Media Engine Freq (MHz)     | 1025                                                               |
| GPU Core Temperature (C)    | 87                                                                 |
| GPU Memory Temperature (C)  | N/A                                                                |
| GPU Memory Read (kB/s)      | N/A                                                                |
| GPU Memory Write (kB/s)     | N/A                                                                |
| GPU Memory Bandwidth (%)    | 0                                                                  |
| GPU Memory Used (MiB)       | 31                                                                 |
| GPU Memory Util (%)         | 0                                                                  |
| Xe Link Throughput (kB/s)   | N/A                                                                |
+-----------------------------+--------------------------------------------------------------------+

Hi Shailesh, I didn't see any gpu device from sycl-ls in your log. Could you please check your oneapi installation and remember to source /opt/intel/oneapi/setvars.sh?

Issue was libllama_bigdl_core.so was missing in /usr/lib folder, But there are 2 important issues we are seeing :
a) why we need to create Modelfile with below parameters:
FROM llama2:latest
PARAMETER num_gpu 999
PARAMETER temperature 0
PARAMETER num_ctx 4096
PARAMETER use_mmap false
As older version of ollama was working without modelfile and we don't need to set it to GPU, it was running all layers to GPU.
b) The Loading of model by ollama serve takes 50 seconds and response takes 20 seconds ? why
Make model and same ollama serve on Arc GPU 770 [16 GB GPU memory , same as Flex 170] does loading in 10 seconds or less and response is 1-2 seconds

Hi @shailesh837,

You may switch to our latest release version of Ollama by using the command pip install --pre --upgrade ipex-llm[cpp]. In this version, libllama_bigdl_core.so is no longer required.
In the latest version of Ollama, it is not necessary to set PARAMETER num_gpu 999 in the Model file. The usage remains the same as in the previous versions.
Please ensure that Ollama is running on a GPU device. We will investigate the causes of the reduced performance on Flex170.


Load my playlist

Can I load my play list in this app?

Yes, but code should be change.

Yes, but code should be change.

Work fine on android version 8.1.0, But the list is not loading  on android version 11, Help me.
thanks


Shading appears incorrect on some RGB images

The shading of new image tiled on rgb images appears altered from original image.

This is caused by omero dynamic display range adjustment. Issue closed.


Change license to ISC

There is no reason for Microsoft to align itself with the institution of MIT. The ISC License is a functionally equivalent license approved by the Free Software Foundation and is compatible with Node core's license. The ISC License is the preferred license of OpenBSD, among other projects.

is a functionally equivalent license

So what is the benefit of changing the license if it provides the same rights to users and coverage to the producer?

Does adopting a license really imply alignment?

There is no reason for Microsoft to align itself with the institution of ISC. The MIT License is a functionally equivalent license...

For people who were active in open source advocacy, defense of civil rights online, intellectual property reform, and online privacy in the oughties, Aaron Swartz was a hero. Unfortunately, his activism led to a situation with MIT that motivated his suicide. For people who care about these issues, there is still great sensitivity with anything associated with MIT.
I recommend this story about Aaron's father and MIT owning up to its part in his son's suicide.
Boston Magazine: "Losing Aaron" by Janelle Nanos
The MIT license is an affirmation of MIT. While the institution has enabled many great things, it has also greatly contributed to one of the greatest losses of my generation. It fought a leader of ideals that I still care about and when it won, humanity lost. The ISC license is functionally equivalent without institutional baggage.

I don't see then need to distance oneself from the people who wrote the MIT license, in order to distance oneself from the people at MIT that Aaron Schwartz was involved in.
MIT was founded 1861, it would be quite difficult to distance oneself from everything that they were involved in.

Equating the use of the MIT license with the circumstances around Aaron's death is ... odd. The MIT license is perfectly suitable.

Someones death is a very weird reason to not use a certain license...

Keep the MIT license please.

Terrible reason to move off MIT..

Close this please. Keep politics out of code, it doesn't belong here. OSS is a poor medium to be an activist about completely unrelated things.

The Aaron Swartz bit is a really interesting argument for using ISC over MIT. I hadn't heard that before. (I'm fine either way though- to me they are equivalent. Maybe ISC is more politically correct these days...)

The Aaron Swartz bit is a really interesting argument for using ISC over MIT. I hadn't heard that before. (I'm fine either way though- to me they are equivalent. Maybe ISC is more politically correct these days...)

I'm really curious about this: why is this a good argument? Why is this even an argument?

it's not...  MIT legalese is more specific about sharing/forking/selling/derivatives than ISC and therefore is a better license (imho).  I use it a lot as well.  Bringing up a political/personal reference on why the license should be changed (that has nothing to do with the license) is a straw-man.

A lot of very big Projects in the PHP Ecosystem use MIT very successfully and without problems yet.
Its well known by many open source contributors and is also often preferred from from big corporations.


fix: validate deploying module rather than entire schema

when deploying a module, we will only validate the deploying module's schema (but do so within the context of the greater schema).
this change prevents issues where a schema error outside of the deploying module prevents the deploy from succeeding—causing issues like #1211. now in combination with the buildengine logic, a change in the upstream module that breaks a downstream module will not prevent the upstream module from deploying (if the module still has a valid standalone schema). the deploy will succeed and then the subsequent deploy triggered for the downstream module will fail if the schema change from its dependency breaks it.
fixes #1211

I wonder if we should "un"deploy any broken modules so that the cluster isn't in an inconsistent state. This will be unnecessary in the future because we'll allow multiple versions to be active at once, and broken state will also be prevented on a "real" full deploy anyway, so probably not necessary


Add metadata when existing

This change will allow to load an Interactive Book (use the example from h5p.org to test)
Without this line the h5p plugin is returning the error contentData.metadata.title is not defined.
Sending the content of the file h5p.json as metadata property in the default content fixes this problem

I have found this:
https://github.com/h5p/h5p-php-library/blob/c79f97a16fd8c6fc0232c10d5bed5b94502ee9e9/h5p.classes.php#L5095-L5338
This seems to validate the metadata section for correctness. So this should basically list the fields allowed there.
I'd like to know however, where this is filled from normally?

The example on h5p.org receives the following data:
"contents": {
  "cid-441940": {
    "library": "H5P.InteractiveBook 1.3",
    "jsonContent": "... data ...",
    "fullScreen": "1",
    "exportUrl": "https://h5p.org/sites/default/files/h5p/exports/berries-28-441940.h5p",
    "embedCode": "<iframe src=\"https://h5p.org/h5p/embed/439596\" width=\":w\" height=\":h\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\" allow=\"geolocation *; microphone *; camera *; midi *; encrypted-media *\" title=\"Interactive Book\"></iframe>",
    "resizeCode": "<script src=\"https://h5p.org/sites/all/modules/h5p/library/js/h5p-resizer.js\" charset=\"UTF-8\"></script>",
    "mainId": "439596",
    "url": "https://h5p.org/node/439596",
    "contentUserData": [
      {
        "state": "{}"
      }
    ],
    "displayOptions": {
      "frame": true,
      "export": true,
      "embed": true,
      "copyright": true,
      "icon": true,
      "copy": false
    },
    "metadata": {
      "license": "U",
      "defaultLanguage": "en",
      "title": "Interactive Book"
    },
    "styles": [
      "https://h5p.org/sites/default/files/css/css_bMHOAOsE_VNgQ7Rdq4HBFLUdokpvr2HwVp7lcocHONc.css"
    ],
    "scripts": [
      "https://h5p.org/sites/default/files/js/js_vI0RW8kBTvnzMF86mtLZ1uBbfiJAd4rFKlj5qgjvXnY.js"
    ]
  }
}

Comparing that with our code in vue-h5p so far: We're handling the styles and scripts properties differently, fine. And we are missing mainId and contentUserData which is also fine, I think.
The key differences are:

displayOptions.copy - we are missing that so far. Could add that as a prop, too.
metadata

Hi, sorry I did not provide much info about this problem. Maybe I should have opened an issue and discuss there.
I am implementing this vue-h5p package and I am testing with different h5p packages, I am going to test with more packages in the following days and weeks, so I could report more example packages with similar error in the future.
About the nature of metadata nature, the only think I can say is that this seems to be the content of h5p.json but without the whole dependencies.
About displayOptions this seems related with the Runtime H5P player on h5p.com. Since our vue-h5p player is handling this in a different way, I do not think this property is needed (maybe we can send it as empty object to avoid similar problems in the future with undefined references.

No, worries - just keep putting up PRs, that's fine by me :)
In any case, feel free to close my PRs and create your own commits based on my PR.

Thanks - that's very much welcome. And thanks a lot for contributing!
I am using an internal fork from this repo on my project, but I will try to report all issues I find

I just tried setting copy: true in the code and then launching the example. This adds a "Copy" option when you click on "re-use". So it does in fact do something in the vue-h5p case, too. Whether that's useful or not will be up to whoever uses the component. But I'd like to provide kind of a complete interface for what h5p provides.
Then it totally makes sense to add it as well

In any case, feel free to close my PRs and create your own commits based on my PR.

Did so in #98.


MRTK3- Following Unity Package Upgrades are Stable

Hello! I wanted to report that the following Unity package upgrades to MRTK3 are quite stable. We have had imported them to our own project a while back without errors. Hope this helps out those that might be interested in having the latest versions.
MRTK Graphics Tools 0.50
https://github.com/microsoft/MixedReality-GraphicsTools-Unity
MR OpenXR 1.8.0
https://github.com/microsoft/OpenXR-Unity-MixedReality-Samples/releases/tag/v1.8.0
From MixedRealityPackages folder copy the 1.8.0 tar.gz to your projects \ExternalDependencies and upgrade via Package Manager.
Unity OpenXR 1.70
com.unity.xr.openxr
Oculus XR Plugin 3.30
com.unity.xr.oculus
Burst Compiler 1.8.4
com.unity.burst
XRI 2.3.1
Note: You should try out the new XR Device Simulator. Its awesome!
<EMAIL_ADDRESS>

Make sure to make a new Branch and backup before upgrading!


ETH-Precision PATCH profile returns nothing

When doing a PATCH on profile to save moderator info, nothing is returned.
The data below was sent, and the status of the call was 200, but nothing was returned which causes an error in the client. We expect at least {} to be returned on calls.
This is happening on ethereum-master 257a3e84
{
  "moderator": false,
  "moderatorInfo": {
    "fee": {
      "feeType": "PERCENTAGE",
      "percentage": 5
    },
    "description": "test",
    "termsAndConditions": "test",
    "languages": [
      "en-US"
    ]
  }
}

@jjeffryes I think this is out of date since the call has changed.
{
"moderator": false,
"moderatorInfo":{
"fee":{
"feeType":"PERCENTAGE",
"fixedFee":{
"bigAmount": "0",
"amountCurrency": {
"code":"USD",
"divisibility": 2
}
},
"percentage": 5
},
"description": "test",
"termsAndConditions":"asdf",
"languages":[
"en-US"
]
}
}

@hoffmabc I'm not sure what you mean, I have the latest code for the desktop and server, it is not sending a fixed fee object, and is getting nothing as a response.

This is fixed on ethereum master


Use RLock while reading data in DNS proxy

This change changes locking behaviour in GetRules and CheckAllowed
DNSProxy methods to read lock, which should allow concurrent DNS traffic
handling goroutines to get the data they need from the proxy faster.

/test

Since all failures are flakes that don's seem to be connected to the change, seems safe to mark as ready-to-merge

Added a release note. User has confirmed that this resolves their memory "leak" issue. Nice work!


Outliner: Check that we have a self argument before we ask for it

rdar://57849479

@swift-ci Please test

LGTM


Project Setup

Hi,
I tried to run your project but this lib is missing.
libgetdns.6.dylib
Please help. Thanks

The project is currently just a template to help others understand the complications of initializing the DNS network extension. There is no resolution code in there yet so it won't do anything other than absorb your DNS requests.
It was used for demonstrating the "managed device" requirement for this feature in a radar that I had asked Apple if they could remove.
I just checked in a fix to the project that removes this unused library but it still won't do anything.
See https://dnsdisco.com/iOS-dns-proxy-post.html

Commit reference fa6c0c2b3ab5125aa5ea5c6356531e3592d1c8f2


while build a ami image in aws using packer i got a error like (failed to parse the template:invalid character):error parsing json

can u look into once .find the below json
{
"builders" : [{
    "type": "amazon-ebs",
    "access_key": "accesskey",
    "secret_key": "secretkey",
    "region": "us-east-2",
    "owners": "amazon",
    "instance_type": "t2.micro",
    "source_ami": "ami-0fc20dd1da406780b",
    "ami_name": "myimage",
     "ssh_username" : "ubuntu"

 }]

}

hi gopichandu,
Remove owners from builders section.

Error (Error parsing json: invalid character) occurs, when we miss comma after key=value pair.
you missed comma after "type": "amazon-ebs".
After removing owners key=value pair, code which you have provided is working fine.
Check weather you have saved changes in  your file or not and validate  the file.

Hii dhana,
Please check already I kept a cama at type: amazon-ebs.please once check
above  my packer template.iam facing same issue.
Regards,
Gopi.t
On Thu, Feb 13, 2020, 1:40 PM dhana9000<EMAIL_ADDRESS>wrote:

hi gopichandu,
Remove owners from builders section.
[image: image]
https://user-images.githubusercontent.com/58977739/74412308-218f7500-4e63-11ea-97e7-6e71590c7902.png
Error (Error parsing json: invalid character) occurs, when we miss comma
after key=value pair.
you missed comma after "type": "amazon-ebs".
After removing owners key=value pair, code which you have provided is
working fine.
Check weather you have saved changes in your file or not and validate the
file.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/QT-DevOps/DevOpsIssues/issues/740?email_source=notifications&email_token=ANJ5JHSUPX5USN2ODEW4VRLRCT56NA5CNFSM4KULLFX2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOELTZQYI#issuecomment-585603169,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ANJ5JHQOQDHP2IZNTZMVHSLRCT56NANCNFSM4KULLFXQ
.

plz share the latest file.

now its working fine thanks for quick responce

You are welcome, pls close this issue.


Update fflib_SObjectMocks.cls

Editing SObjectMocks after Issue #37 was closed/merged

Hmmm thanks for this, but strictkly speaking the methods should clall the record method methods. I also really need to setup a CI build for this repo to stop breaking changes like the last PR getting in, i'll sort this! Sorry about this in the meantime, i'll merge this PR anyyway.

+1 to a CI build!!!!!  ;-)

Getting around to updating this to call the mocks code. (should of realized but was just going for a quick fix!)
Is the purpose of methods to pass in new records or a new list of records?
mocks.verifyMethodCall( this, 'registerNew', records );

or
mocks.verifyMethodCall( this, 'registerNew', new List<SObject>(records) );

thanks!

Normally this class would have been generated from the Apex Mocks Generator tool, so its whatever it would have generated. You could try running it and seeing what it outputs. The repo for the Apex Mocks tool is here.
My guess though would be an unmodified passthrough of the parameters....so this version...
 mocks.verifyMethodCall( this, 'registerNew', records );


MPI Split Memory Error

Expected Behavior
Providing --split-memory-limit keyword should mitigate memory requirements
Current Behavior
Works only with standard MMSeqs2 compiled version, but not with MPI compiled version.
Steps to Reproduce (for bugs)
Working on 60gb machine with 8cpus (each with 2 hyper threads)
${MMSeqs_bin}/mmseqs createDB in.fasta inDB
${MMSeqs_bin}/mmseqs cluster inDB cluDB tmp --min-seq-id 0.6 -c 0.7 -e 1e-10 --split-memory-limit 3G
Replacing {MMSeqs_bin} with {MMSeqs_non_MPI_bin} results in correct behavior without crashing
MMseqs Output (for bugs)
mmseqs linclust inDB cluDB tmp --min-seq-id 0.6 -c 0.7 -e 1e-10
--split-memory-limit 500
linclust inDB cluDB tmp --min-seq-id 0.6 -c 0.7 -e 1e-10 --split-memory-limit 500
MMseqs Version:                         aa175d63658d9aa2e908325a6fd40e9dbb260c9a-MPI
Cluster mode                            0
Max connected component depth           1000
Similarity type                         2
Threads                                 16
Compressed                              0
Verbosity                               3
Substitution matrix                     nucl:nucleotide.out,aa:blosum62.out
Add backtrace                           false
Alignment mode                          2
Allow wrapped scoring                   false
E-value threshold                       1e-10
Seq. id. threshold                      0.6
Min alignment length                    0
Seq. id. mode                           0
Alternative alignments                  0
Coverage threshold                      0.7
Coverage mode                           0
Max sequence length                     65535
Compositional bias                      1
Realign hits                            false
Max reject<PHONE_NUMBER>
Max accept<PHONE_NUMBER>
Include identical seq. id.              false
Preload mode                            0
Pseudo count a                          1
Pseudo count b                          1.5
Score bias                              0
Gap open cost                           11
Gap extension cost                      1
Zdrop                                   40
Alphabet size                           nucl:5,aa:21
k-mers per sequence                     21
Spaced k-mers                           0
Scale k-mers per sequence               0
Adjust k-mer length                     false
Mask residues                           0
Mask lower case residues                0
k-mer length                            0
Shift hash                              67
Split memory limit                      500M
Include only extendable                 false
Skip repeating k-mers                   false
Rescore mode                            0
Remove hits by seq. id. and coverage    false
Sort results                            0
Remove temporary files                  false
Force restart with latest tmp           false
MPI runner
Set cluster mode SET COVER.
beignet-opencl-icd: no supported GPU found, this is probably the wrong opencl-icd package for this hardware
(If you have multiple ICDs installed and OpenCL works, you can ignore this message)
MPI Init
Rank: 0 Size: 1
kmermatcher inDB tmp/9757835994511295515/pref --sub-mat nucl:nucleotide.out,aa:blosum62.out --alph-size nucl:5,aa:13 --min-seq-id 0.6 --kmer-per-seq 21 --spaced-kmer-
mode 0 --kmer-per-seq-scale 0 --adjust-kmer-len 0 --mask 0 --mask-lower-case 0 --cov-mode 0 -k 0 -c 0.7 --max-seq-len 65535 --hash-shift 67 --split-memory-limit 500M
--include-only-extendable 0 --ignore-multi-kmer 0 --threads 16 --compressed 0 -v 3
kmermatcher inDB tmp/9757835994511295515/pref --sub-mat nucl:nucleotide.out,aa:blosum62.out --alph-size nucl:5,aa:13 --min-seq-id 0.6 --kmer-per-seq 21 --spaced-kmer-
mode 0 --kmer-per-seq-scale 0 --adjust-kmer-len 0 --mask 0 --mask-lower-case 0 --cov-mode 0 -k 0 -c 0.7 --max-seq-len 65535 --hash-shift 67 --split-memory-limit 500M
--include-only-extendable 0 --ignore-multi-kmer 0 --threads 16 --compressed 0 -v 3
Database size: 62947276 type: Aminoacid
Reduced amino acid alphabet: (A S T) (C) (D B N) (E Q Z) (F Y) (G) (H) (I V) (K R) (L J M) (P) (W) (X)
Not enough memory to process at once need to split
[=================================================================] 100.00% 62.95M 2m 27s 641ms
Process file into 51 parts
Can not allocate memory
Error: kmermatcher died

However, for the non MPI version, it works fine. The only difference from normal behavior is possibly the top part of these errors:
Sequence 45461797 does not contain any sequence for key 62885869!
Sequence 45461798 does not contain any sequence for key 62886128!
[=================================================================] 100.00% 461.84K 2s 387ms
Sequence 45461799 does not contain any sequence for key 62888288!
Add missing connections
[=================================================================] 100.00% 45.46M 1s 608ms
Time for read in: 0h 0m 28s 571ms
Total time: 0h 0m 40s 655ms
Size of the sequence database: 45461840
Size of the alignment database: 45461840
Number of clusters: 44582196
Writing results 0h 0m 16s 390ms

Your Environment
Version with error: aa175d63658d9aa2e908325a6fd40e9dbb260c9a-MPI
Version without error: 14014cd0ec50049f796f153ea8a72164ff4b8b45
Both are self compiled on the same operating system (Debian 9 Stretch).
uname -mrs gives
Linux 4.19.0-0.bpo.6-amd64 x86_64
Running on 8 core 60gb machine (with 2 hyperthreads).
Thank you!

To use MMseqs2 MPI you need to call mmseqs2 using mpirun but there is no need to use MPI on a single machine. MMseqs2 will use all cores in default.

I get the same type of error when using the parallel MPI version with "RUNNER=mpirun -np 8" . I only encountered this error while testing. I ideally would like to use a cluster configuration but will not be able to if this error persists.


Error when reading saved StatisticalMeshModel file

Hello, I am interested in your approach. However, I'm having some problems with it and would like to ask for your guidance!
Specifically, after I generate a StatisticalMeshModel based on a referenceMesh and a DiscreteLowRankGaussianProcess, I use StatismoIO.writeStatismoMeshModel to save as an h5 model file. Then I read that StatisticalMeshModel in another file showing No valid HDF5 signature found.

The same problem occurs when I try to read and write an existing h5 model file.

Do you have any ideas on how to solve this problem? Or is there something wrong in my code？

Hi @AgentKu, in newer versions of Scalismo, the direct .h5 writing has been removed to remove a dependency on an external Java library.
The model is written out in h5json format.
Example:
StatismoIO.writeStatisticalTriangleMeshModel3D(pdm, new File("pdm.h5.json"))
val pdmRead = StatismoIO.readStatisticalTriangleMeshModel3D(new File("pdm.h5.json")).get

It is, however, still possible to read valid .h5 files Scalismo.
In your example, you should not .get when writing the model.
If you want to convert the saved h5json to an h5 file, you can use an external library, e.g., https://hdf5-json.readthedocs.io/en/latest/tools/h5json.html.


CIS 4.1.5 ensure kubelet config has permissions set to 600

How to categorize this PR?

/area compliance
/kind enhancement
What this PR does / why we need it:
According to chapter 4.1.5 of the CIS Kubernetes Benchmark v1.10 the kubelet config permissions must be set to 600.

/ok-to-test
cc @AleksandarSavchev

/retest-required

/retest-required


The screen compiled by Windows using torch is gray

Which model is this with?

Lots have changed about compiling, closing this for now.


[release/1.7 backport] testutil: avoid conflict with continuity/testutil

Backports fix #10901 to release 1.7.
Currently any upstream consumers importing libraries both containerd 1.7 and the newest continuity (v0.4.4) will experience the same issue, so without this fix an upgrade is impossible.

Assuming the backport is accepted, do we also want to backport this to release/1.6? I see that 1.6 still uses v0.3.0 of continuity but since this error will appear if the upstream consumer uses continutiy v0.4.4 it might still be worth backporting to 1.6. Open to discuss this.

Vangrant tests failing setup from some dependency things, AFAIK this isn't related to my change?
Integration test failures are TestContainerdRestart, TestSnapshotterSuite, and TestContainerOutput. The first two exist already in the latest version (https://github.com/containerd/containerd/actions/runs/11334593317) so I think it's ok?

Will need #10965 to be merged to fix vagrant


Updated logic in Plan.num_answered_questions to allow for Phase context

Fixes #2095 .
Addresses an issue with the progress bar 'answered questionscount when a plan is for a template with multiple phases. Updated thenum_answered_questions` method to accept a Phase so that it can return either the total number of questions answered for the entire plan or a specific section.

makes sense @xsrust. Will update the model's relationships

Updated the models by adding the association shortcut as suggested. Also updated the name of is_valid? to answered? which seems more Rails-ish.


SFB to Teams upgrade- Dialpad, Chat functionality appearance

While we migrate a SFB user to Teams with different workloads e.g. Chat, Meeting, enterprise voice, there is no consistent time after which these tabs will appear in Teams client; is there a way to validate how many migration requests are in queue and when same will be executed

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

ID: 41ddf8ce-fda9-ee9d-d96a-801f9a2f66b7
Version Independent ID: 9aa5a49f-c440-95a8-83a1-9d38bdaeda39
Content: Known issues for Microsoft Teams
Content Source: Teams/Known-issues.md
Service: msteams
GitHub Login: @LolaJacobsen
Microsoft Alias: lolaj

@tmaheshwar Thank you for submitting feedback and contributing to the docs. We are currently investigating this.

I'd go with the :
Get-CsMeetingMigrationStatus -SummaryOnly

https://docs.microsoft.com/skypeforbusiness/audio-conferencing-in-office-365/setting-up-the-meeting-migration-service-mms
##Aditional information:

https://docs.microsoft.com/en-us/skypeforbusiness/hybrid/move-users-from-on-premises-to-teams
https://docs.microsoft.com/en-us/microsoftteams/migration-interop-guidance-for-teams-with-skype

@tmaheshwar
Thank you for submitting feedback. We understand that this issue has been resolved.
Please feel free to re-open this issue if there is a specific area of the docs that we can improve or make better. Thank you.


add equiv in readme and docstring

I just added the equivalence symbol in the readme and the docstring.

Codecov Report

Merging #11 (134813c) into main (b8241dd) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main      #11   +/-   ##
=======================================
  Coverage   96.87%   96.87%
=======================================
  Files           3        3
  Lines          96       96
=======================================
  Hits           93       93
  Misses          3        3

Impacted Files
Coverage Δ

src/macro.jl
97.01% <ø> (ø)

Continue to review full report at Codecov.

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


swift2

can support swift2.0?

The winter is... Oops... AlecrimCoreData version 4 is coming with Swift 2 support and many other improvements. And it will come with a rewritten and greatly improved context management. Expect many new protocols  too (instead classes everywhere).
However, even with the new features and code style changes due to the Swift 2, you should not need to make big changes in your existing code.
Soon. :-)

Is there any branch where can be 4.0 development version downloaded?

The Swift language became usable for production, I believe, after version 1.2. All projects that I tried before the launch of this Swift version had to be postponed, due to the large amount of change or workarounds needed, until the language becomes more stable. It looks like the Swift 2 will be ready the first time in its release. But we're still in beta.
Version 4 of AlecrimCoreData is being developed and tested internally. Once I feel that there will be no more big changes in Swift language, I will make public the version 4 branch. I hope to be able to do this very soon.

Thanks for the updates and insight. I imagine protocol extensions is going to make the attributes, queries, and other source code beautiful :D

For sure. POP* goes my heart! :-)
*Protocol Oriented Programming

I just want to mention that we can help with implementing the changes for "changable" swift 2.
If this would not be a "master" branch then I think it's only understandable that things may not work and are bound to change. Waiting here for your release :) currently I can't help because I don't even know the architecture of 4.0 version.
BTW - I think tha POP is kind of a scamm :) so really looking if you would be able to implement this in a manner that have obvious benefits VS the OOP approach.

That sounds like a good idea, even if it doesn't compile. Maybe even making the name of the branch even more explicit like "unready". If the branch is up, not only will it hopefully encourage collaboration on the v4 version, but perhaps feed breakthoughs or upgrade paths back to the main branch.
PS -- dude, if POP doesn't blow your mind you're definitely missing something. It's resolves multiple inheritance without the baggage and provides vast extensibility with minimal impact.

Have this read: http://faq.sealedabstract.com/structs_or_classes/
And share your thoughts.

Well...
--
Short version:
About the "Structs x Classes x Protocols" discussion, very good articles. Thank you, guys. :-)
Divergent views are great and I wish that many people could read your reviews here and also the mentioned articles to take their own conclusions too.
I hope to make public the ACD4 development version until the end of this month, but it is not a promise. Rather, it is a possibility.
--
Long version:
About the "Structs x Classes x Protocols" discussion, very good articles. Thank you, guys. :-)
I believe that hammer, screwdriver and pliers exist for a reason and each has its purpose and function. Swift and other languages have several tools. Each is good or bad depending on usage (even the language itself). Languages come and go, but nothing replaces having solid fundamentals of software development and programming architecture. I do not think it is "all or nothing". Some do it, they believe the new pattern of the moment should be used everywhere, even where there is no place to use it.
About the protocols (and protocol extensions) in Swift, they are very powerful and if they are well used they can take chances and solutions far beyond. As well as classes and structs if well used too. Of course, protocol extensions are more subject to side effects.
My concern is precisely this "all or nothing" thing. I know that many people who are learning to program in a new language or new environment use the style of programming adopted in open source libraries as example. Some libraries in the early Swift were "playground oriented programming" (because the difficulties of the language as it was at the time, developer lack of technical knowledge or even by taste) and until this day I see people programming that way because they think this is the "correct" way to write code in Swift.
Some developers who are considered "gods" between the community do very good things and do very bad things too, but several other programmers can not distinguish between them and follow everything they say. Instead of blindly following, I try to learn and find what I believe is the best way for me. I do not know what is the "correct" way to write a program in Swift or in any other language. I'm learning and I will always be learning. I am not one of these "gods" nor I wish to be. I love to learn and, because this love, I hope to not only learn, but also contribute using what I think I learned. Some may find good things, some may find bad things, but the important thing to find is the movement and the learning of both parties.
About the version 4 of AlecrimCoreData: I'm seeking a balance between the resources used. Also looking to make an architecture that endures to fads while incorporating the very modern and good things from Swift. I use this library (as well as other internal "Alecrim" libraries) on a daily basis. I'm a library user as well and I think it must have a minimum of consistence and usability before going public, even in the this early development stage.

OK... Classes, structs, protocols and protocol extensions for everyone. :-)
A sneak peek:
import AlecrimCoreData
import Cocoa
import CoreData
import Foundation

//
//  AlecrimCoreData.h
//  AlecrimCoreData
//
//  Created by Vanderlei Martinelli on 2014-06-24.
//  Copyright (c) 2014, 2015 Alecrim. All rights reserved.
//

//! Project version number for AlecrimCoreData.
var AlecrimCoreDataVersionNumber: Double
extension NSString : StringType {
}

extension NSManagedObject {
    func inDataContext(dataContext otherDataContext: DataContextType) throws -> Self?
}

extension String : StringType {
}

extension NSManagedObjectContext : DataContextType {
}

prefix func !(left: NSPredicate) -> NSPredicate

prefix func !<A : AttributeType where A.ValueType : BooleanType>(left: A) -> NSComparisonPredicate

func !=<A : NullableAttributeType, V where A.ValueType : Equatable, A.ValueType == V>(left: A, right: V?) -> NSComparisonPredicate

func !=<L : AttributeType, R : AttributeType where L.ValueType : Equatable, L.ValueType == R.ValueType>(left: L, right: R) -> NSComparisonPredicate

func !=<A : AttributeType, V where A.ValueType : Equatable, A.ValueType == V>(left: A, right: V) -> NSComparisonPredicate

func &&(left: NSPredicate, right: NSPredicate) -> NSPredicate

func <<L : AttributeType, R : AttributeType where L.ValueType : Comparable, L.ValueType == R.ValueType>(left: L, right: R) -> NSComparisonPredicate

func <<A : AttributeType, V where A.ValueType : Comparable, A.ValueType == V>(left: A, right: V) -> NSComparisonPredicate

func <<<A : AttributeType, V : ForwardIndexType where A.ValueType == V>(left: A, right: Range<V>) -> NSComparisonPredicate

func <<<A : AttributeType, V where A.ValueType == V>(left: A, right: [V]) -> NSComparisonPredicate

func <=<L : AttributeType, R : AttributeType where L.ValueType : Comparable, L.ValueType == R.ValueType>(left: L, right: R) -> NSComparisonPredicate

func <=<A : AttributeType, V where A.ValueType : Comparable, A.ValueType == V>(left: A, right: V) -> NSComparisonPredicate

func ==<A : AttributeType, V where A.ValueType : Equatable, A.ValueType == V>(left: A, right: V) -> NSComparisonPredicate

func ==<L : AttributeType, R : AttributeType where L.ValueType : Equatable, L.ValueType == R.ValueType>(left: L, right: R) -> NSComparisonPredicate

func ==<A : NullableAttributeType, V where A.ValueType : Equatable, A.ValueType == V>(left: A, right: V?) -> NSComparisonPredicate

func ><L : AttributeType, R : AttributeType where L.ValueType : Comparable, L.ValueType == R.ValueType>(left: L, right: R) -> NSComparisonPredicate

func ><A : AttributeType, V where A.ValueType : Comparable, A.ValueType == V>(left: A, right: V) -> NSComparisonPredicate

func >=<L : AttributeType, R : AttributeType where L.ValueType : Comparable, L.ValueType == R.ValueType>(left: L, right: R) -> NSComparisonPredicate

func >=<A : AttributeType, V where A.ValueType : Comparable, A.ValueType == V>(left: A, right: V) -> NSComparisonPredicate

protocol Aggregable : Queryable {
    var dataContext: DataContextType { get }
    var entityDescription: NSEntityDescription { get }
}

extension Aggregable {
    func count() -> Int
}

extension Aggregable {
    func any() -> Bool
    func some() -> Bool
    func none() -> Bool
}

extension Aggregable {
    func toFetchRequest() -> NSFetchRequest
}

struct Attribute<T> : AttributeType, NamedAttributeType {
    let ___name: String
    init(_ name: String)
    init(_ name: String, _ parentAttribute: NamedAttributeType)
}

extension Attribute where T : CollectionType {
    var count: AlecrimCoreData.Attribute<Int> { get }
}

/// An attribute that has a name, an associated value type and that can not be compared to nil.
protocol AttributeType : NamedAttributeType {

    /// The associated value type.
    typealias ValueType
}

extension AttributeType where Self.ValueType : Equatable {
    func isEqualTo(value: Self.ValueType) -> NSComparisonPredicate
    func isEqualTo<T : AttributeType where T.ValueType == Self.ValueType>(otherAttribute: T) -> NSComparisonPredicate
    func isNotEqualTo(value: Self.ValueType) -> NSComparisonPredicate
    func isNotEqualTo<T : AttributeType where T.ValueType == Self.ValueType>(otherAttribute: T) -> NSComparisonPredicate
}

extension AttributeType where Self.ValueType : Comparable {
    func isGreaterThan(value: Self.ValueType) -> NSComparisonPredicate
    func isGreaterThan<T : AttributeType where T.ValueType == Self.ValueType>(otherAttribute: T) -> NSComparisonPredicate
    func isGreaterThanOrEqual(value: Self.ValueType) -> NSComparisonPredicate
    func isGreaterThanOrEqual<T : AttributeType where T.ValueType == Self.ValueType>(otherAttribute: T) -> NSComparisonPredicate
    func isLessThan(value: Self.ValueType) -> NSComparisonPredicate
    func isLessThan<T : AttributeType where T.ValueType == Self.ValueType>(otherAttribute: T) -> NSComparisonPredicate
    func isLessThanOrEqual(value: Self.ValueType) -> NSComparisonPredicate
    func isLessThanOrEqual<T : AttributeType where T.ValueType == Self.ValueType>(otherAttribute: T) -> NSComparisonPredicate
}

extension AttributeType where Self.ValueType : StringType {
    func isLike(value: Self.ValueType) -> NSComparisonPredicate
}

extension AttributeType {
    func isIn(values: [Self.ValueType]) -> NSComparisonPredicate
}

extension AttributeType where Self.ValueType : ForwardIndexType {
    func isBetween(range: Range<Self.ValueType>) -> NSComparisonPredicate
}

extension AttributeType where Self.ValueType : BooleanType {
    func not() -> NSComparisonPredicate
}

extension AttributeType where Self.ValueType : StringType {
    func contains(value: Self.ValueType) -> NSComparisonPredicate
    func contains<T : AttributeType where T.ValueType == Self.ValueType>(otherAttribute: T) -> NSComparisonPredicate
    func beginsWith(value: Self.ValueType) -> NSComparisonPredicate
    func beginsWith<T : AttributeType where T.ValueType == Self.ValueType>(otherAttribute: T) -> NSComparisonPredicate
    func endsWith(value: Self.ValueType) -> NSComparisonPredicate
    func endsWith<T : AttributeType where T.ValueType == Self.ValueType>(otherAttribute: T) -> NSComparisonPredicate
}

extension AttributeType where Self.ValueType : StringType {
    func matches(regularExpressionString: String) -> NSComparisonPredicate
}

extension AttributeType where Self.ValueType : CollectionType {
    func any(predicateClosure: (Self.ValueType.Generator.Element.Type) -> NSComparisonPredicate) -> NSComparisonPredicate
    func some(predicateClosure: (Self.ValueType.Generator.Element.Type) -> NSComparisonPredicate) -> NSComparisonPredicate
    func all(predicateClosure: (Self.ValueType.Generator.Element.Type) -> NSComparisonPredicate) -> NSComparisonPredicate
    func none(predicateClosure: (Self.ValueType.Generator.Element.Type) -> NSComparisonPredicate) -> NSPredicate
}

class DataContext : NSManagedObjectContext {
    required init(concurrencyType: NSManagedObjectContextConcurrencyType, dataContextOptions: AlecrimCoreData.DataContextOptions)
    convenience init(dataContextOptions: AlecrimCoreData.DataContextOptions = default)
    convenience init(parentDataContext: AlecrimCoreData.DataContext)
    required init?(coder aDecoder: NSCoder)
}

final class DataContextOptions {
    let managedObjectModelURL: NSURL?
    let persistentStoreURL: NSURL?
    var storeType: AlecrimCoreData.StoreType
    var configuration: String?
    var options: [NSObject : AnyObject]
    var stringComparisonPredicateOptions: NSComparisonPredicateOptions
    init(managedObjectModelURL: NSURL, persistentStoreURL: NSURL)
    init(managedObjectModelURL: NSURL)
    init(persistentStoreURL: NSURL)
    init()
    init(managedObjectModelBundle: NSBundle, applicationGroupIdentifier: String)
    init(managedObjectModelBundle: NSBundle)
    init(applicationGroupIdentifier: String)
}

protocol DataContextType {
    func executeFetchRequest(request: NSFetchRequest) throws -> [AnyObject]
    func countForFetchRequest(request: NSFetchRequest, error: NSErrorPointer) -> Int
    func insertObject(object: NSManagedObject)
    func deleteObject(object: NSManagedObject)
    func refreshObject(object: NSManagedObject, mergeChanges flag: Bool)
}

/// An attribute that has a name.
protocol NamedAttributeType {

    /// This property has undercores as prefix to not conflict with entity property names.
    var ___name: String { get }
}

struct NullableAttribute<T> : NullableAttributeType, AttributeType, NamedAttributeType {
    let ___name: String
    init(_ name: String)
    init(_ name: String, _ parentAttribute: NamedAttributeType)
}

/// An attribute that has a name, an associated value type and that can be compared to nil.
protocol NullableAttributeType : AttributeType {
}

extension NullableAttributeType where Self.ValueType : Equatable {
    func isEqualTo(value: Self.ValueType?) -> NSComparisonPredicate
    func isNotEqualTo(value: Self.ValueType?) -> NSComparisonPredicate
}

protocol Queryable {
    var offset: Int { get set }
    var limit: Int { get set }
    var batchSize: Int { get set }
    var predicate: NSPredicate? { get set }
    var sortDescriptors: [NSSortDescriptor]? { get set }
}

extension Queryable {
    func skip(count: Int) -> Self
    func take(count: Int) -> Self
}

extension Queryable {
    func sortByAttribute(attribute: NamedAttributeType, ascending: Bool = default) -> Self
    func sortByAttributeName(attributeName: String, ascending: Bool = default) -> Self
    func sortUsingSortDescriptor(sortDescriptor: NSSortDescriptor) -> Self
}

extension Queryable {
    func filterUsingPredicate(predicate: NSPredicate) -> Self
}

enum StoreType {
    case SQLite
    case InMemory
}

protocol StringType {
}

struct Table<T : NSManagedObject> : TableType, Aggregable, Queryable {
    let dataContext: DataContextType
    let entityDescription: NSEntityDescription
    var offset: Int
    var limit: Int
    var batchSize: Int
    var predicate: NSPredicate?
    var sortDescriptors: [NSSortDescriptor]?
    init(dataContext: DataContextType)
}

extension Table : SequenceType {
    func generate() -> IndexingGenerator<[T]>
}

protocol TableType : Aggregable, Queryable, SequenceType {
    typealias Entity : NSManagedObject
}

extension TableType {
    func orderByAscending<A : AttributeType, V where A.ValueType == V>(@noescape orderingClosure: (Self.Entity.Type) -> A) -> Self
    func orderByDescending<A : AttributeType, V where A.ValueType == V>(@noescape orderingClosure: (Self.Entity.Type) -> A) -> Self
}

extension TableType {
    func orderBy<A : AttributeType, V where A.ValueType == V>(@noescape orderingClosure: (Self.Entity.Type) -> A) -> Self
    func thenBy<A : AttributeType, V where A.ValueType == V>(@noescape orderingClosure: (Self.Entity.Type) -> A) -> Self
    func thenByAscending<A : AttributeType, V where A.ValueType == V>(@noescape orderingClosure: (Self.Entity.Type) -> A) -> Self
    func thenByDescending<A : AttributeType, V where A.ValueType == V>(@noescape orderingClosure: (Self.Entity.Type) -> A) -> Self
}

extension TableType {
    func filter(@noescape predicateClosure: (Self.Entity.Type) -> NSPredicate) -> Self
}

extension TableType {
    func count(@noescape predicateClosure: (Self.Entity.Type) -> NSPredicate) -> Int
}

extension TableType {
    func any(@noescape predicateClosure: (Self.Entity.Type) -> NSPredicate) -> Bool
    func some(@noescape predicateClosure: (Self.Entity.Type) -> NSPredicate) -> Bool
    func none(@noescape predicateClosure: (Self.Entity.Type) -> NSPredicate) -> Bool
}

extension TableType {
    func first(@noescape predicateClosure: (Self.Entity.Type) -> NSPredicate) -> Self.Entity?
}

extension TableType {
    func first() -> Self.Entity?
}

extension TableType {
    func createEntity() -> Self.Entity
    func deleteEntity(entity: Self.Entity)
    func refreshEntity(entity: Self.Entity, mergeChanges: Bool = default)
}

extension TableType {
    func firstOrCreated(@noescape predicateClosure: (Self.Entity.Type) -> NSComparisonPredicate) -> Self.Entity
}

extension TableType {
    func toArray() -> [Self.Entity]
}

func ||(left: NSPredicate, right: NSPredicate) -> NSPredicate

func ~=<A : AttributeType, V where A.ValueType : StringType, A.ValueType == V>(left: A, right: V) -> NSComparisonPredicate

vmartinelli
This "all or nothing" thing is why I'm so skeptical about POP in the first place.

@vmartinelli nice! Things really cleaned up with the extensions, even the generated models! Really, really liking it :+1:
@ert4i thx for the article. It had some really harsh criticism which was actually pretty refreshing. I think @vmartinelli hit on something really important (besides "all or nothing" approach)... There are a few players when it comes to programming techniques: 1) the language itself 2) libraries 3) frameworks 4) and finally applications that consume all of the above.
With this in mind...I may be oversimplifying things...but I think it comes down to state vs. no-state. If you have entities coming from the database, then classes make total sense. For utilities, then structs and now protocol-extensions seem like an awesome fit. This is why I think the Apple Swift team is advocating protocol-extensions so much because they are drinking their own kool-aid. Using protocol-extensions in the language itself and its native utilities make absolute total sense and I fully support them going crazy with it. It makes us consumers of the language able to easily extend deep parts of the core language without getting invasive.
For frameworks and applications, this where things get really complicated and become a mixture of states, no-states, utilities, helpers, etc. A balance as @vmartinelli mentioned is key for a framework like ACD since there are so many layers with different roles. Managing state adds a whole other dimension that OOP was designed to handle. POP is a brilliant idea to handle (almost) everything else.

WIP is now available on v4_swift2 branch. :D

Thanks for this.. the code is very very clean and lots of nice rafactoring!! Great work!

Thank you. Now we can start writing the framework as it would be since the first version. :-)

I'm in the process of trying to convert a project from Xcode 6 to 7. I grabbed the 'develop' branch and built the framework for iOS. The ACDGen tool fails with "an unspecified error has occurred".
Have you tried Xcode 7 beta 6 yet? Do you have a new ACDGen?
Thanks so much. This is a fantastic tool :)

@mikevbaker Thank you. :-) About using the framework, The release/4.0-beta.1 branch will be merged soon. Meanwhile you can use the source from this branch when compiling with Xcode 7 and Swift 2. Please try again and let me know if you have success.

@mikevbaker Update: it was merged into develop branch now.


Private cluster

Adding changes to run on OCI OKE

Adding changes to run on OCI OKE

This was opened by mistake. @sshulgin70 will create a PR from his fork.


Analysis: Insights and documentation of Octant Epoch 5 results

What is it?
Publish an end of year retrospective for analysis and insights through Epoch 5 (see here and here for previous posts)

Create Epoch 05 collection
Upload funding data for missing Epochs (4 and 5)
Author blog post (Octant in 2024)

Collection added to oss-d: https://github.com/opensource-observer/oss-directory/blob/main/data/collections/octant-05.yaml


wandb 10.x creates symlinks, which require administrator privileges on Windows

wandb version: 10.7
Python version: 3.8.5
OS: Win 10
Problem
Since the upgrade to wandb10.x it started to create symlinks. This is inconvenient for Windows users, as requires to run my IDE (VS Code) with administrator privileges -- few more clicks to do so.
Traceback
wandb: WARNING Symlinked 0 file into the W&B run directory, call wandb.save again to sync new files.
Traceback (most recent call last):
  File "c:/Users/Asus/Desktop/Garment-Pattern-Estimation/nn/train.py", line 129, in <module>
    trainer.fit(model)  # Magic happens here
  File "c:\Users\Asus\Desktop\Garment-Pattern-Estimation\nn\trainer.py", line 88, in fit
    start_epoch = self._start_experiment(model)
  File "c:\Users\Asus\Desktop\Garment-Pattern-Estimation\nn\trainer.py", line 154, in _start_experiment
    self.experiment.init_run(self.setup)
  File "c:\Users\Asus\Desktop\Garment-Pattern-Estimation\nn\experiment.py", line 48, in init_run
    wb.save(os.path.join(wb.run.dir, '*.json'))
  File "C:\Users\Asus\anaconda3\envs\Garments\lib\site-packages\wandb\sdk\wandb_run.py", line 919, in save
    os.symlink(abs_path, wandb_path)
OSError: [WinError 1314] A required privilege is not held by the client: 'C:\\Users\\Asus\\Desktop\\Garment-Pattern-Estimation\\wandb\\run-20201016_172608-2v7x9f8u\\files\\wandb-metadata.json' -> 'wandb\\run-20201016_172608-2v7x9f8u\\files\\wandb\\run-20201016_172608-2v7x9f8u\\files\\wandb-metadata.json'

Additional comment
I'm not entirely sure, but I have a suspicion that those symlinks are related to another issue -- there is a strange subdirectory in the run directory files with a path like this MyProject/wandb/<rundirname>/files/wandb/<rundirname>/files (duplicate path??). This is also visible in the traceback final paths.

A quick fix is to write the file a file directly into wandb.run.dir and then call save which will bypass the symlink.  In a future release we'll switch to copying instead of symlinking.

I have a similar problem can you please clarify more about this fix of wandb.run.dir

Hey @mohamedr002 we'll be releasing a version of the library on Tuesday of next week that fixes this issue in windows.  Regarding wandb.run.dir:
import shutil
shutil.copy("C://path/to/file.h5", os.path.join(wandb.run.dir, "file.h5"))

Will copy a file to the wandb directory which is automatically synced and would bypass he symlink issue.

@vanpelt Hi, this still hasn't been patched yet or am I wrong? Because I still get  "OSError: symbolic link privilege not held" when calling wandb.save()

Hey @hobogalaxy we didn't push a symlinking fix to wandb.save in the last release.  For now I suggest either writing your files directly to wandb.run.dir and then calling wandb.save, or manually copying the files into wandb.run.dir before calling wandb.save.

A quick fix is to write the file a file directly into wandb.run.dir and then call save which will bypass the symlink. In a future release we'll switch to copying instead of symlinking.

Thanks for your response, but what can I do if I am syncing tensorboard, will I do this for each file I save from tensorboard?

If you just set the logdir for your tensorboard writers to wandb.run.dir it will not attempt to symlink anything.

save_model_path = wandb.run.dir+wandb.run.name+".pt"
torch.save(save_state_dict,save_model_path)
wandb.save(save_model_path)
Exception has occurred: OSError [WinError 1314] A required privilege is not held by the client: 'C:\\code\\flow_change\\wandb\\run-20201207_005152-rbk0gfx9\\filesfanciful-salad-27.pt' -> 'C:\\code\\flow_change\\wandb\\run-20201207_005152-rbk0gfx9\\files\\filesfanciful-salad-27.pt'   File "C:\code\flow_change\train.py", line 214, in <module>     wandb.save(save_model_path)
Seem to be getting the error dispite using run.dir and then saving with that path

Following code works fine for me on windows 10.
torch.onnx.export(net, inputs, config.onnx_model_path)
shutil.copy(
    config.onnx_model_path,
    os.path.join(wandb.run.dir, os.path.basename(config.onnx_model_path)),
)
wandb.save(config.onnx_model_path)

In the past year we've majorly reworked the CLI and UI for Weights & Biases. We're closing issues older than 6 months. Please comment to reopen.

I stumbled upon this problem when calling "wandb.save".
Here is a solution for all symlink related problems: https://www.scivision.dev/windows-symbolic-link-permission-enable/
in short: add your user (or "Everyone") rights to create symlinks.
Python 3.8 (which is mentioned in the manual) is not required, python 3.7 worked for me

I can confirm that I'm still experiencing an issue in wandb 0.16.5
wb.save(filepath, base_path=filepath.parent, policy='now')
  File "C:\Users\mariako\anaconda3\envs\train\lib\site-packages\wandb\sdk\wandb_run.py", line 371, in wrapper_fn
    return func(self, *args, **kwargs)
  File "C:\Users\mariako\anaconda3\envs\train\lib\site-packages\wandb\sdk\wandb_run.py", line 361, in wrapper
    return func(self, *args, **kwargs)
  File "C:\Users\mariako\anaconda3\envs\train\lib\site-packages\wandb\sdk\wandb_run.py", line 1936, in save
    return self._save(
  File "C:\Users\mariako\anaconda3\envs\train\lib\site-packages\wandb\sdk\wandb_run.py", line 2000, in _save
    target_path.symlink_to(source_path)
  File "C:\Users\mariako\anaconda3\envs\train\lib\pathlib.py", line 1403, in symlink_to
    self._accessor.symlink(target, self, target_is_directory)
OSError: [WinError 1314] A required privilege is not held by the client: '\\local\\path\\data_split.json' -> 'wandb\\wandb\\run-20240410_150558-23vhj6ln\\files\\data_split.json'

WinError 1314

@mjmikulski i'm a little surprised that you are hitting this error on windows 11, as it suppose to support symlinks without administrative privileges, based on the documentation.


Add demo link

Surprisingly, the domain was available. https://www.secureheaders.com/
This makes for a good demo of actually using a couple external JS libraries/fonts/etc... with a CSP too.
Please submit design critiques here 😉

people with disabilities can't use this website, because the contrast is too poor.

Are you by any chance seeing this version? (Just noticed my experiement with a CSS background texture looks revolting in safari 😢)

I know people with disabilities, and I'm supporting them and coding with them. The problem in your screenshot is the white-black-texture with the normally black text colo(u)r, but additionally it is the coloring. The red parts are very hard to see with this background.

Here's what the page is actually meant to look like ;p (screencap before was safari version)

I'll make whatever changes necessary to accommodate those who might not be able to read it so well though.
RE the white black texture – it should be really subtle (that was the intent anyway), I'll turn it off completely if it's still no good in this screenshot though.
RE the red text, I can turn off the syntax highlighting on the top box – what colours would you recommend as a replacement. Perhaps if you could recommend two (I'll probably manually style it so that the header name and value are different colours).
Lastly, how is the bottom section? I can make the text bigger/different colours if necessary.

The color of the first box is okay-ish, but they are things to improve: It worries why only the last-part of the header is styled red or not complete file names(i.e. google analytics link)(same with the blue color).
The color of the second box is quite bad, because the baby-blue color is closely to being recognized as purely white on a white background, if they even can be recognized.
Maybe you can take a look in a theme for your editor/ide with high contrast and check what they use?

Thanks for those suggestions.

It worries why only the last-part of the header is styled red [...]

The strange highlighting was down to the syntax highlighting script I put on the site (mainly for the bottom box) – it couldn't figure out the language in the top box I guess, hence the weirdness.
I've now turned that off and styled the top box manually.
I've also slightly darkened the blue colour in the bottom box.
Here's what I've got so far.

I found this website for checking color contrast, I wonder whether you thought its recommendations are good? http://leaverou.github.io/contrast-ratio/
If so, I'll try have a play with some different colour schemes on there later today to try and get something much more readable.

That's a good checker. Thanks for using these suggestions. :)

I've aimed to score at least 8 on each of the individual background/foreground colour pairs on that site.
Some that I thought were really readable turned out to have very low scores too, e.g.:

So that made for a good learning experience for me!
I've pushed a new version of the site, though you might have to wait a little for the caches to all update. You'll can you let me know if any foreground colours don't go well together? (as I've only been able to check them individually against the background on that site).
Here's a screencap

They're quite good, but maybe you can expose the namespace delimiter (\ in hello\world\my\namespace) a little bit more!

How's this instead?

It's fine from the point of view of readability, but personally, I think it's confusing. Why is the variable same-colored as the classname?

Why is the variable same-colored as the classname?

Heh, not my choice :p can you recommend a better syntax highlighter (using highlight js at present).

Err... Unfortunately I can't.


fix getting_started custom form section

Problem
I tried to follow the docs to create a custom form for a resource.
The proposed method to override on the get_form_kwargs is not receiving the form instance but rather the form type.
Solution
I don't know if an update changed the behaviour but seems like get_import_data_kwargs is the method that actually has access to form instance and passes the kwargs to the resource import methods

Thanks for raising this.  I just downloaded and tried with the example App.  What happens is that the form instance is passed here, and then in get_form_kwargs(), the author value is added to the kwargs.  This then is added to the context so that when the 'confirm' screen is rendered it has the 'author' field:

I think this is the correct behaviour (although in the example app, the import is not filtered at all).

Thanks for the quick reply and happy new year.
Indeed the form is properly loading.
What i struggle to find out is how to get author in a ManyToMany widget.
My current solution includes:

overriding the get_import_data_kwargs and adding in kwargs the author
overriding the before_import_row to add in the row the author
get from row the author in my ManyToMany widget's clean function


Fix broken build for melodic. Use official ros docker image.

Essentially revert #1021 as image seems to be fixed
Signed-off-by: Bo Chen<EMAIL_ADDRESS>

fixes #1379 #1334

Looks good. As mentioned), the only reason we had introduced that base image was as a hotfix to reduce build times of Melodic that exceeded the limit of Travis.
As a follow-up we could consider whether some dependencies still need to be built from source all the time in CI or if sth. smarter could be done.

ok, so it passed the build in travis, so I'm going to merge it


Option To Remove Print Statements

It looks like there's a number of debug logs that show up in the console. Any way we can include a flag property as part of AnyLinkPreview to disable these?

Hey @herrchmafi
I have added your point to the list, It will be available in my immediate version.
Cheers!

Hey @herrchmafi
What version of the package you were using, I see all the debug logs were commented in the latest version. I think you are old version of the plugin.
Kindly update to the latest

@sur950 Switched over to 2.0.6! Looks like there's a couple logs in the exception handling. Any way you can update to
handle these cases or is there something on my end (looks to be a part of the widget itself)?
Here's my console logs:
Thanks for responding!

Is the image that you are getting from meta data is valid link. Meaning, is it accessible in the browser?


Fix: Crash when no emote set is given for 7tv

This pull request includes changes to the bot/emotes.py file to improve the handling and retrieval of 7tv channel emotes. The most important changes involve refactoring the get_7tv_channel_emotes method and updating the main function to include 7tv emotes.
Improvements to emote retrieval:

bot/emotes.py: Refactored the get_7tv_channel_emotes method to handle cases where the channel does not have 7tv emotes by returning a default empty list.

Updates to main function:

bot/emotes.py: Updated the main function to print the number of 7tv channel emotes retrieved, in addition to the existing channel emotes.

lmao github copilot usefull for something

I believe the catch_error decorator already handles this case by catching key errors and returning an empty list

I believe the catch_error decorator already handles this case by catching key errors and returning an empty list

yup, your last commit 07c1114
seemed to already have fixed this issue and is making this pr obsolete.


Use the latest version on getting started page

Hi @vishr 2nd PR, and just fix on getting started page, to use the latest version according to echo README.MD. if you agree with my opinion, I will update the whole.

@nipeharefa Please go ahead!


Update scala-library, scala-reflect to 2.13.10

Updates

org.scala-lang:scala-library
org.scala-lang:scala-reflect

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

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

Or, add this to slow down future updates of this dependency:
dependencyOverrides = [{
  pullRequests = { frequency = "@monthly" },
  dependency = { groupId = "org.scala-lang" }
}]

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

Superseded by #592.


Add AirPort Utility v5.6.1 Launcher Latest

After making all changes to the cask:

[x] brew cask audit --download {{cask_file}} is error-free.
[x] brew cask style --fix {{cask_file}} reports no offenses.
[x] The commit message includes the cask’s name and version.

Additionally, if adding a new cask:

[x] Named the cask according to the token reference.
[x] brew cask install {{cask_file}} worked successfully.
[x] brew cask uninstall {{cask_file}} worked successfully.
[x] Checked there are no open pull requests for the same cask.
[x] Checked the cask was not already refused in closed issues.
[x] Checked the cask is submitted to the correct repo.

Thank you for the submission, @luisspuerto, but I think we’re going to pass on this one.
Making the decision on the grounds of this appearing to be too obscure (which is a documented policy). It was never submitted nor requested before, which from the age this appears to have, is an indication of lack of interest. That coupled with the lack of confidence the website transpires, what the app does, and how niche it is.
I’m still going to comment on how the cask should’ve been improved, for future reference.

Thanks a lot for the comments on how the cask has to be summited.
I also thought that probably was a problematic app to have in homebrew-cask, but finally I wanted to give it a run, even for the sake of try to submit a cask for the first time and see the process.
I'll try to reply to your comments. Thanks a lot, again, for taking the time to make.

The purpose of this app / script if to be able to run an old version of the Apple Airport Utility in the modern versions of the macOS. Some people prefer this older version basically because it is more rich-festured that the new one provided in the modern versions of the macOS. For instance, you can change the hostname of the Time Capsules in this version, while in the modern ones you can't.
Again, I understand that perhaps it is not the specific type of apps that you have in homebrew-cask, but it's definitely an utility that some os us has to use from time to time.
Perhaps I can talk with the developer to crear things a little bit.
Anyhow, thanks for your time.


Shader applied to Spine node not working in official v. 4.0

cocos2d-x version: cocos2d-x-4.0
devices test on: iPhone, Win32
developing environments

NDK version:
Xcode version: 12.0, 11.7
VS version: 2019
browser type and version:

Steps to Reproduce:

Add a predefined shader to any skeletonNode in cpp-tests. For instance in SpineTest.cpp, add the following code in CoinExample::init() right before the call to scheduleUpdate(). While the sprite is properly rendered in grayscale, the Spine node in unaffected. In versions 3.17.x this functionality worked as expected.

auto program = backend::Device::getInstance()->newProgram(
positionTextureColor_vert,
grayScale_frag);
auto programState = new backend::ProgramState(program);
skeletonNode->setProgramState(programState);
auto sprite = Sprite::create("Images/grossini.png");
sprite->setPosition( Vec2(_contentSize.width/2 +100, _contentSize.height/2) );
sprite->setProgramState(programState);
addChild(sprite);

Shaders applied to Spine nodes do now work anymore in official v. 4.0, this is a known issue documented in https://discuss.cocos2d-x.org/t/cocos2d-4-0-create-shader-for-spine-animation/51480.
A relevant PR has been created at  https://github.com/cocos2d/cocos2d-x/pull/20584

Good news

Does engine-x works?
Does the official v4 caused by Custom Shader?

Engine-x behavior is identical to official v4, i.e. shaders are not working when applied to Spine nodes.
I'm not sure the issue is caused exclusively by custom shaders, in the above code snippet I'm using a predefined shader.

ok, I will check later

I have checked the official spine runtimes v4 implementation, it's not support custom programstate currently

I think there are two issues here, one has to do with the Spine runtime currently not supporting custom program state (for which Spine developers need to merge the PR fix) and the other with the fact that batching is altogether disabled for custom program types in the Cocos2d-x engine code (CCTrianglesCommand.cpp).

Yes, so I create a PR to re-enable custom program state batch draw

The PR may only improve batch draw and all program was compiled just in use time, for spine, you may needs send issue to official spine-runtimes: https://github.com/EsotericSoftware/spine-runtimes

There's already a PR for that issue: https://github.com/EsotericSoftware/spine-runtimes/pull/1763

spine-custom-shader.zip
with the latest master of engine-x, the custom shader should works, see:

The test case is set spine animation HSV: https://github.com/c4games/engine-x/blob/master/tests/cpp-tests/Classes/SpineTest/SpineTest.cpp#L337

And I also send a PR to spine-runtimes: https://github.com/EsotericSoftware/spine-runtimes/pull/1787/files

Thanks! @halx99,  I pulled the latest from master and applied your Spine runtime patch and now shaders work beautifully on Spine nodes.  I think this issue is considered closed unless you want to wait for the Spine team to merge your PR.

Out of curiosity, have you tested displaying more than one of the same spine animation on the screen, but each spine animation uses a different custom shader or different shader uniform values?  For instance, with the HSV test case, display multiple spine animations, each having the custom HSV shader with different HSV value set for each one.  Does it work?

I will check later

@rh101 I have checked, it's display same because two spine animation merged to 1 draw batch, so needs to implement custom shader like your's setBatchId

Fair enough.  I was hoping there was a better way to handle the batching without using the IDs, but I can't think of any other way at the moment.

@rh101 Hi, I use uniformID to diff final matID, see: https://github.com/c4games/cocos-re/pull/246

Wouldn't XXH32 be processing intensive depending on the data contained in the vertex and uniform buffers?
void ProgramState::updateUniformID()
{
#ifdef CC_USE_METAL
    XXH32_reset(_uniformHashState, 0);
    XXH32_update(_uniformHashState, _vertexUniformBuffer, _vertexUniformBufferSize);
    XXH32_update(_uniformHashState, _fragmentUniformBuffer, _fragmentUniformBufferSize);
    _uniformID = XXH32_digest(_uniformHashState);
#else
    _uniformID = XXH32(_vertexUniformBuffer, _vertexUniformBufferSize, 0);
#endif
#endif
}
}

I've never used it, so just wondering if it would be slow the larger the buffers are.

I think the uniform buffer size depends on shader complexity and usually it small than 256 bytes, the XXH32 so fast could be ignore, I checked the full FBO test case, the fps still fast than official v4 in my machine

cocos-re (30fps)
official-v4(27fps)

We also can provide setUniformID manually for user to avoid calculate uniformID with uniform buffer automatically, what do you think about?

We also can provide setUniformID manually for user to avoid calculate uniformID with uniform buffer automatically, what do you think about?

That would be a good idea, in case the performance is affected by the XXH32 calculation.


Using WebDAVNav Server on Mac but can't get it to download

Hi - I've installed WebDAVNav server on my Mac, set up the share but can't get the plugin to auto download any backups.
I think I've got the plugin configured correctly

Any ideas?
Thanks.

Without any error message, there isn't much to say about this.


updateUsersNearby sent before results to searchChatsNearby

Docs say that updateUsersNearby is sent ~60s after results for searchChatsNearby is received.  However, sometimes (after searching same location for the second or third time), I see updateUsersNearby event just before results for searchChatsNearby is sent.
updateUsersNearby@users_nearby value is identical to chatsNearby@users_nearby received as result for searchChatsNearby.
Is it ok behaviour?  I'm using TDLib 1.6.4
Thanks

This is expected behavior. updateUsersNearby can be received any time after first searchChatsNearby call. The description means that without repeated calls to searchChatsNearby every 60 seconds the list of users nearby will become empty soon.


Not getting @here in routes

I'm trying to write a plugin that listens for someone to use '@here' in a channel. It would then compare them against a specific group, and if they're not in that group give them a polite private message asking them not to notify everyone in the channel. The issue I'm having is it seems that @here isn't getting handled like normal text is. I created a test route that simply echoed any text back it heard, and it did fine until @here was used. I then see this stack trace
Slack API call to chat.postMessage returned an error: no_text.
Full backtrace:
/var/bundle/ruby/2.3.0/gems/lita-slack-1.8.0/lib/lita/adapters/slack/api.rb:99:in call_api' /var/bundle/ruby/2.3.0/gems/lita-slack-1.8.0/lib/lita/adapters/slack/api.rb:59:in send_messages'
/var/bundle/ruby/2.3.0/gems/lita-slack-1.8.0/lib/lita/adapters/slack.rb:43:in send_messages' /var/bundle/ruby/2.3.0/gems/lita-4.7.1/lib/lita/robot.rb:129:in send_messages'
/var/bundle/ruby/2.3.0/gems/lita-4.7.1/lib/lita/message.rb:93:in `reply'
Is this a slack issue(not sending that message through their bot api) or something on the lita side? I'm not finding much searching around for other people trying to do this.
Thanks

Hi @kendrickm we've been doing something similar with our bot. We're listening for the @channel and then posting a message based on that. You're welcome to see how we're doing it here

@RandomlyKnighted Thanks for the suggestion. I just tried that out and it looks like @channel works, but @here doesn't. I'm wondering if Slack doesn't view a bot user as 'here' when it builds a list of users to send the message to?


guidebook additions

About the PR

Media

[x] I have added screenshots/videos to this PR showcasing its changes ingame, or this PR does not require an ingame showcase

Changelog

:cl:

add: added a guidebook entry for robotics.

first PR, am I doing this right?

first PR, am I doing this right?

I recommend falling the git guide here to make a proper pull request. You've uploaded the files through the website, which is not allowed as per contribution guidelines. You should be making changes on your local branch, committing them, and then pushing the commit to make a pr.

first PR, am I doing this right?

I recommend falling the git guide here to make a proper pull request. You've uploaded the files through the website, which is not allowed as per contribution guidelines. You should be making changes on your local branch, committing them, and then pushing the commit to make a pr.

oh ok


type alias does not work with classes

I defined a class:
    export class TCommand<TSender, TParam, TThis>
    {
    }

and created an alias for the closed type:
 export type Command = TCommand<any, any, any>;

now when i try:
 export class NextCommand extends Command {
 }

the compiler says: Error	1	Cannot find name 'Command'
but i can write
  var cmd: Command = null;

without errors,
Expected: to allow using this type alias for inheritance purposes.

  var cmd = new MOD.mvvm.Command();

Does not work too. The same Error!

The problem here is extends needs a value to use at run time.  The generated code will look something like:
var NextCommand = (function (_super) {
    __extends(NextCommand, _super);
    function NextCommand() {
        _super.apply(this, arguments);
    }
    return NextCommand;
})(Command);  /// notice Command is not defined.

So you can only extend from value. the type alias Command is just an alias, another name you can use in the TS code to refer to type NextCommand and does not exist in the generated code, this is why you can use it in a type position, e.g. var cmd: Command, as this has no implication at run-time.
you can achieve what you want by creating a new class, something like:
class Command extends TCommand<any, any, any> { }

// then this works
export class NextCommand extends Command {
}

// and this:
var cmd = new MOD.mvvm.Command();

for more information about what is value vs. what is type see: https://github.com/Microsoft/TypeScript-Handbook/blob/master/pages/Declaration Merging.md#basic-concepts

@mhegazy
Thanks for yor reply. It was not a problem if typescript would create a true alias.
That means instead of "Command" put in that  place TCommand - because "Command"  is only an alias for TCommand. We need replacements, not a new definition "Command" in the compiler's output.

if you want an alias for both value and type use import:
export import Command = MOD.mvvm.TCommand;

for your request, see #2559

@mhegazy
Is this would work too?
export import Command = MOD.mvvm.TCommand;<any,any,any>

yes.

@mhegazy
No it dos not work with generic parameters

No it does not work with generic parameters in TCommand

Please see #2559 .


make controlled base gate an instance.

Summary
Change a controlled gate's base_gate method to be an instance of the base gate instead of a class.
Details and comments

This should have included a release note to document the breaking change. I'll add it as part of https://github.com/Qiskit/qiskit-terra/pull/3798 since we're close to the release


Added crypto market, stock screener and social sentiment support.

Hey, appreciate the wrapper. Added a few more things. I'll probably add more in the future. Let me know if you need anything changed -- I know some of the Crypto code is a little sloppy.

@mccabe93 Thank you for your contribution!


Soft DTW with Cython implementation

Hi @keonlee9420 , have you tried the Cython version of Soft DTW from this repo
https://github.com/mblondel/soft-dtw
Is it available to apply for Parallel Tacotron 2 ?  I am trying that repo because the current batch is too small when using CUDA implement of @Maghoumi .

I just wonder that @Maghoumi in https://github.com/Maghoumi/pytorch-softdtw-cuda claims that experiment with batch size

But when applying for Para Taco, the batch size is too small, are there any gap?

Hi @v-nhandt21 , thanks for the sharing. The soft-dtw in this repo is based on several existing repos and what you shared is one of them. But mblondel's implementation doesn't support batching and Maghoumi's doesn't have Jacobean part to be used as a final loss, and most importantly, both are not supporting Manhattan distance. I implemented it based on Maghoumi's soft-dtw for batching with CUDA, adapting with Manhattan distance and the algorithm described in the section 4.2 of Parallel tacotron2 paper. The main reason for the small batch size is that we didn't have 'the custom differentiable diagonal band operations' which is mentioned in the same section with no details.

Hi @v-nhandt21 , thanks for the sharing. The soft-dtw in this repo is based on several existing repos and what you shared is one of them. But mblondel's implementation doesn't support batching and Maghoumi's doesn't have Jacobean part to be used as a final loss, and most importantly, both are not supporting Manhattan distance. I implemented it based on Maghoumi's soft-dtw for batching with CUDA, adapting with Manhattan distance and the algorithm described in the section 4.2 of Parallel tacotron2 paper. The main reason for the small batch size is that we didn't have 'the custom differentiable diagonal band operations' which is mentioned in the same section with no details.

Thank keonlee, I just found the problem when test Maghoumi with different batch size

The complexity seems to be T^2. So now we have to wait for the custom from Google ? :))


NEW UPDATE 9DECEMBER

Guys is there going to be a new update for the bot??

#853 #855

Any temporary fix for InvalidPassword?

Means you failed to login too many times. Try again in an hour.


Various improvements to Ledger's support

Changes tracked here: https://github.com/LedgerHQ/app-bitcoin-new/issues/70

Making the PR upstream


DCSC Request - Kamal Das

Please can you provide some more context to this issue? It looks like a test. I am closing this issue for the mean time.


brightcove subtitles broken

Checklist

[x] I'm reporting a broken site support
[x] I've verified that I'm running youtube-dl version 2<IP_ADDRESS>
[x] I've checked that all provided URLs are alive and playable in a browser
[x] I've checked that all URLs and arguments with special characters are properly quoted or escaped
[x] I've searched the bugtracker for similar issues including closed ones

Verbose log
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: [u'-v', u'--all-subs', u'https://www.metopera.org/link/8601ccf66b394032b83d5776cab34177.aspx?upc=811357019405']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2<IP_ADDRESS>
[debug] Python version 2.7.16 (CPython) - Darwin-18.7.0-x86_64-i386-64bit
[debug] exe versions: ffmpeg 4.2.2, ffprobe 4.2.2, rtmpdump 2.4
[debug] Proxy map: {}
[generic] 8601ccf66b394032b83d5776cab34177: Requesting header
[redirect] Following redirect to https://www.metopera.org/season/on-demand/opera/?upc=811357019405
[brightcove:met] None: Downloading webpage
[brightcove:met]<PHONE_NUMBER>001: Downloading webpage
[brightcove:met]<PHONE_NUMBER>001: Downloading webpage
[brightcove:new]<PHONE_NUMBER>001: Downloading JSON metadata
[brightcove:new]<PHONE_NUMBER>001: Downloading m3u8 information
[brightcove:new]<PHONE_NUMBER>001: Downloading m3u8 information
[debug] Default format spec: bestvideo+bestaudio/best
[debug] Invoking downloader on u'https://hlsak-a.akamaihd.net/76009399001/5524254127001/76009399001_5524254127001_5524054113001.m3u8'
[download] La Traviata-5524054113001.mp4 has already been downloaded
[download] 100% of 3.79GiB
[debug] ffmpeg command line: ffprobe -show_streams 'file:La Traviata-5524054113001.mp4'
[ffmpeg] Fixing malformed AAC bitstream in "La Traviata-5524054113001.mp4"
[debug] ffmpeg command line: ffmpeg -y -loglevel 'repeat+info' -i 'file:La Traviata-5524054113001.mp4' -c copy -f mp4 '-bsf:a' aac_adtstoasc 'file:La Traviata-5524054113001.temp.mp4'

Description
Subtitle downloading is now inconsistent with brightcove sites. I've been downloading metopera.org free streams for a few weeks now (FYI I've paid for a year's subscription to support their work) and recently subtitles aren't being downloaded. Similar problems show up with sfopera.org free streams.

youtube-dl have no brightcove:met extractor, no support for custom versions.


introduce heartbeat check to fallback host support

We are currently processing the client request to a given host, without knowing whether it is alive or not.

If the host happens to be down, this can lead to a long wait before the ConnectionAbortedError is raised
(see current implementation of process_request)

We should instead heartbeat the host first, and if it is alive, process the request.

This can be simply achieved by running a requests.get() on the host selected by our HostResolver with a set timeout parameter.

No longer applicable, not a valid solution to the the issue at hand. Will come back & search for an alternative..


VarianceAggregationFunction NULL support.

Add NULL support for the following aggregation functions.

STDDEVPOP
STDDEVSAMP
VARPOP
VARSAMP

Fix a bug when all the values are NULL the function should return NULL (not Double.NEGATIVE_INFINITY).

Codecov Report

Merging #11365 (950fcaa) into master (e4220ec) will decrease coverage by 47.26%.
The diff coverage is 0.00%.

@@              Coverage Diff              @@
##             master   #11365       +/-   ##
=============================================
- Coverage     61.50%   14.24%   -47.26%
+ Complexity     6512      494     -6018
=============================================
  Files          2233     2233
  Lines        120084   120102       +18
  Branches      18223    18233       +10
=============================================
- Hits          73853    17112    -56741
- Misses        40828   101575    +60747
+ Partials       5403     1415     -3988

Flag
Coverage Δ

integration1
?

integration2
0.00% <0.00%> (ø)

java-11
?

java-17
14.24% <0.00%> (-47.11%)
:arrow_down:

java-20
14.63% <0.00%> (-46.74%)
:arrow_down:

temurin
14.24% <0.00%> (-47.26%)
:arrow_down:

unittests1
?

unittests2
14.63% <0.00%> (-0.01%)
:arrow_down:

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Changed
Coverage Δ

...gregation/function/AggregationFunctionFactory.java
0.00% <0.00%> (-81.36%)
:arrow_down:

...regation/function/VarianceAggregationFunction.java
0.00% <0.00%> (-79.69%)
:arrow_down:

... and 1389 files with indirect coverage changes
:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more


Make parameter login_hint optional

GET-Parameter &login_hint is only set if it has a value.
The server I am using does not play nicely if there is a &login_hint= at the end of the Query-String.

thanks for this.


Add watsonx to third party models

Why are these changes needed?
Adds support for IBM WatsonX via litellm
Related issue number
None
Checks

[ ] I've included any doc changes needed for https://ag2ai.github.io/ag2/. See https://ag2ai.github.io/ag2/docs/Contribute#documentation to build and test documentation locally.
[ ] I've added tests (if relevant) corresponding to the changes introduced in this PR.
[ ] I've made sure all auto checks have passed.

Fixed formatting, should pass all checks


Exceptions in Spring native app are not being returned to lambda as response instead the lambda is timing out.

Hi,
I am using Spring cloud function version 3.2.1 and Spring native 0.11.1 to build a native image using GRAALVM. I am deploying the native zip in AWS lambda function with 'Custom runtime on Amazon Linux 2' as Runtime.
My function has to throw an ResponseStatusException in case of bad requests and i defaulted it in the sample for the sake of simplicity.
@Component
public class AddFunction implements Function<String, String> {
@Override
public String apply(String user){
if (true) {
throw new ResponseStatusException(HttpStatus.BAD_REQUEST, "errorResponse");
}
return "Added user";
}
When I run this as a spring boot application / upload the jar with java11 runtime in lambda , I am getting 400 bad request response as expected. Whereas when I build a native linux image and run it through bootstrap in lambda, I can see that ResponseStatusException is printed in stack trace(logs) but the lambda is continuing to run and timing out. I want the native application to return the 400 bad request as a response to lambda like the regular jar.
Attaching the sample project to reproduce the issue, zip file I used as source in lambda and also screenshots of
demo.zip
the logs

demo-zip.zip

@olegz Could you please have a look to check if something should be done on our side?

Thanks @sdeleuze
@olegz Please let me know if you need any additional information in reproducing this.

@sdeleuze @olegz
We are facing the same issue. Please let us know what you're able to find

Similar issue is handled earlier by Spring cloud function.
https://github.com/spring-cloud/spring-cloud-function/issues/716
And the solution was to throw an exception if your response is not of the type API gateway. We are doing the same but when we add Spring AOT on top and convert it to Native image ,it goes into a loop and timeout instead of returning the exception

Can you please upgrade to s-c-function 3.2.3? I believe the problem has been addressed

Hi Olegz,
Thanks for looking into this, but sadly 3.2.3 did not solve the issue. Please be noted that the java version is always working as expected. It is only the native image run through bootstrap in lambda causing this issue.

Ok, thank you for the confirmation and demo. I will look at it in few days

@atyamlalithya , your ZIP file must corrupted as there is no valid project in it

Regardless, I see the issue. Actually it doesn't appear to have anything to do with native, rather general custom runtime issue - https://github.com/spring-cloud/spring-cloud-function/issues/841
Will let you know when addressed

Closing it as the underlying issue has been fixed and will be available in 3.2.4 of s-c-function.
We may release it actually next week


Using src_filter with only one item in the list of argument causes a fatal build error on Windows

[X ] Bug report. If you’ve found a bug, please provide information below.

Configuration
Operating system: Windows 10
PlatformIO Version (platformio --version): 2.9.1
Description of problem
Using src_filter with only one item in the list of argument causes a fatal build error on Windows.
Steps to Reproduce

Create a new project with platform teensy, framework arduino, board teensy31.
Create a sub-folder folder1 with one simple main.cpp in it
Edit the platformio.ini file and add src_filter = +<folder1/>

Actual Results
C:\Users\thomas\Documents\GitHub\test> platformio run
[05/08/16 20:18:44] Processing mybaseenv (platform: teensy, src_filter: +<folder1/>, f
ramework: arduino, board: teensy31)
-------------------------------------------------------------------------------------
The system cannot find the file specified.
============================ [ ERROR ] Took 0.03 seconds ============================

With -v the results are slightly different:
C:\Users\thomas\Documents\GitHub\test> platformio run -v
[05/08/16 20:18:49] Processing mybaseenv (platform: teensy, src_filter: +<folder1/>, f
ramework: arduino, board: teensy31)
-------------------------------------------------------------------------------------
.
============================ [ ERROR ] Took 0.03 seconds ============================

Expected Results
Project should build without error on Windows, as it does on Travis.
If problems with PlatformIO Build System:
See also full project here: https://github.com/sarfata/platformio-bug-srcfilter
The content of platformio.ini:
[env:mybaseenv]
platform = teensy
framework = arduino
board = teensy31
# will not work with platformio 2.9.1
src_filter = +<folder1/>

Source file to reproduce issue:
#include <Arduino.h>

void setup() {
  Serial.begin(115200);
}

void loop() {
  Serial.println("looping...");
  delay(1000);
}

Additional info

Just adding some text at the end of the line (for example a comment or a folder that does not exist) is enough to workaround the issue.
Tested under Linux and the error does not happen there. See travis build report.
Tested in the command line and in Atom with same results.

Thanks a lot for the detailed report! 👍
The bug is linked with SCons command parser. I'll think how to fix it.

:+1: Thanks for the quick fix!


Disambiguate operator arguments named like variables

In the presence of a global variable named x and operator whose argument is named x (e.g. Operator(x) == x*2), TLC interprets x inside the operator's expression as the operator's argument, while TLAWeb interprets it as the global variable.

Just to clarify, I am assuming you referring to a case like the following:
---- MODULE operator_name_clash_test ----
EXTENDS Naturals

VARIABLES x

Op(x) == x + 2

Init == x = 0
Next == x' = Op(x)

====

TLC treats this as an error, since it cannot disambiguate between the variable x and the argument x to operator Op. It appears, though, that the web explorer currently (and incorrectly) allows this.
Is this the type of behavior you are referring to?

Here's a reproducer:
------------------------- MODULE operator_name_clash_test ------------------------------
EXTENDS Naturals

Intersect(s, x) ==
    IF s \intersect x # {} THEN 1 ELSE 2

VARIABLES x, v

Init ==
    /\ x = 0
    /\ v = 0

Next ==
    /\ v' = Intersect(1..2, 3..4)
    /\ UNCHANGED x

vars == <<x, v>>
Spec == /\ Init /\ [][Next]_vars

-------------------------------------------------------------------------------

===============================================================================

Note the Intersect operator is declared before the variables. In this case, TLC doesn't treat this as an error and interprets the x in Intersect as {3, 4}. TLAWeb fails an internal assertion instead, and some initial stack trace inspection suggests that it treats x as the variable (natural number), rather than the operator's argument (set).

Thanks! Yes, VARIABLE name clashes seem to work as expected now. Want to keep this open for CONSTANT declarations, or close this one and fork a dedicated one for visiblity?

Keep it open for now. I'll try to address this for CONSTANT declarations soon.

CONSTANT declarations currently handled appropriately. See note and test in ee50d39, though.


 But hey, I got 2 of the 3 letters right, so that's something?

(And I can't spell "embarrassing", either!)