text:
修复沙盒漏洞

相关 ISSUE: （ISSUE 链接地址）
#568
1、升级点 （清晰准确的描述升级的功能点）

MIP.sandbox.strict.MIP.sandbox 指向 MIP.sandbox.strict
MIP.sandbox.strict.MIP.util 只开放 platform\customStorage\jsonParse\string

2、影响范围 （描述该需求上线会影响什么功能）

所有用到 mip-script 的站点可能会有影响

3、自测 Checklist

单测全覆盖

4、需要覆盖的场景和 Case

[ ] 是否覆盖了 sf 打开 MIP 页
[ ] 是否验证了极速服务 MIP 页面效果

5、自测机型和浏览器

[ ] 是否覆盖了 iOS 系统手机
[ ] 是否覆盖了 Android 系统手机
[ ] 是否覆盖了 iPhone 版式浏览器（比如 QQ、UC、Chrome、Safari、安卓自带浏览器）
[ ] 是否覆盖了手百

Pull Request Test Coverage Report for Build 1059

0 of 0   changed or added relevant lines in 0 files are covered.
2 unchanged lines in 1 file lost coverage.
Overall coverage decreased (-0.03%) to 94.542%

Files with Coverage Reduction
New Missed Lines
%

src/util/templates.js
2
94.52%

Totals

Change from base Build 1029:
-0.03%

Covered Lines:
3754

Relevant Lines:
3890

💛  - Coveralls

authors: clark-t coveralls


text:
Kill chrome driver before running a test

Running a test with the local chrome driver will fail when the previous test is interrupted.
To make the test process more stable, first kill the chrome driver before running the test.

Solved in commit 0f13b38a360107459bd57d155634675e73a12528 in slightly different way.
Each instance of the driver will get an unique process name, this way it's possible to start multiple instances of the Chrome Driver.

source: gharchive/issue

license: mit

license_type: permissive

license_source: bigquery


text:
libpcap: Add patch to fix build target dependency

because debian patch replaced 'libpcap.so' target to '$(SHARDLIB)' target to set soname as 0.8.
Here are details about libpcap soname:
https://people.debian.org/~rfrancoise/libpcap-faq.html

Thanks!
Could you propose this fix also to meta-debian?

source: gharchive/pull-request

authors: hiraku-wfs mozoko

repo: miraclelinux/meta-emlinux

license: MIT

license_source: github-api


text:
Compose Settings from multiple BaseSettings classes

to approach this issue: https://github.com/miracum/ahd2fhir/blob/master/ahd2fhir/kafka_setup.py#L48

Brilliant, thank you so much. Looks much cleaner! I guess technically it's a breaking change though, since the external configuration needs to be changed (including the readme.md). But personally, I am all for it.

Could you also update the readme.md's section on Kafka with the new settings names as part of this PR? https://github.com/miracum/ahd2fhir#kafka-settings
Other than that looks good to me.

Hey, glad that you like it! I'll update the README.

I noticed that pydantics BaseSettings supports only one level of prefix nesting (see here).
A fix would be to set the full prefix on the second-level objects:
class KafkaProducerSettings(BaseSettings):
    compression_type: str = "gzip"

    class Config:
        env_prefix = "kafka_producer_"

Seems reasonable to me!

authors: chgl uklft


text:
Implement cloud functions for sending email

Currently, the Conact page uses netlify forms to send emails. A more vendor-neutral option would be prefferable.
With the rise of cloud functions, I think a simple javascript function to send mail using nodemailer or something like that could be easily implemented. This could then be ran by one of the many hosting providers as most of them offer free functions (Netlify, Vercel, Supabase offers functions too)

The added value of having an edge function handling emails as opposed to netlify forms:

automated response back to sender
discord notification
custom email templates

Expected workflow:

user submits contact request
an email from noreply@mirceanton.com is sent to the user to notify them that the request went through
an email is sent to contact@mirceanton.com with the details
(optional) a discord notification sent to me about it
user is redirected to some thank you page with a button to go back to the site


text:
Minor improvements in efficiency

To make the overlap faster in general, you should add a flag whether you want the indexes lexsorted in the end. This will be the biggest speed win.
In general, my PR is not going to improve the efficiency much, but for the case where you overlap a few intervals against a giant reference, I think my implementation will be much faster. This is because you avoid concatenating and transposing all the self-overlaps. If you check the overlap of a few intervals against a full gencode GFF, 99.99% of the results will be self overlaps.
Another possible win is to exclude all the intervals in the subject that come before the first query start or after the last query end. In general, this is not going to improve the speed much (or at all) but for the cases where you overlap a few hundred intervals against a giant interval set, it might matter a lot. This I did not do, btw, but you'd just:
starts2 = starts2[starts2 > ends1.max()]
ends2 = ends2[ends2 < starts1.min()]

I don't care if you accept this PR or not, I was mostly playing around with the code to understand the algorithm better :) I like it a lot.

oh, just saw that. I'm going to look into it right now! (hopefully i didn't reinvent the wheel with my most recent commit)

Following your observation and advice, I introduced the flag to make sorting optional. Thank you!!
Re: self-overlaps, I had to work on that too, because a major slowdown that @mimakaev ran into (he reported it on slack). Please, take a look at the latest commits in the develop branch!

authors: endrebak golobor

repo: mirnylab/bioframe


text:
Insufficient Stock Error for Digital  Product Type

What I'm trying to achieve
I want to checkout for digital type of product irrespective of country of shipping address and without worrying about
inventory.
Currently i want to offer online E-Learning course which user can buy across world.
I don't want to setup any warehouse or its inventory as it doesn't make sense for Digital Type Product.
Now when i am checking out on Storefront, its throwing error saying "Not enough Quantity" ( as Saleor core checkout if failing due to  InsufficientStock  Exception in check_stock_quantity(variant, country, quantity)
I have also verified these boolean fields. . product_type.is_digital = True, product_type.is_shipping_required = False
Steps to reproduce the problem

Create Digital Product Type.
Create Product with Digital Product type  and don't assign quantity on any warehouse.
Checkout the product on Storefront

What I expected to happen
I should be able to checkout without any InsufficientStock exception for Digital Type of products.
Screenshots

https://prnt.sc/tzj3vw
System information
Operating system:
Linux

ProductVariant model has a field track_inventory. Can you see what value is set for that field in your product variant? When it's set to false than the quantity checks should be bypassed in checkout and it would work as you expect. This value defaults to true at the model level, but maybe it should be changed in case of digital products.

Hi @maarcingebala , Yes, track_inventory is set to false.
Problem which i was able to figure out is InsufficientStock exception is thrown before the variant.track_inventory check.
Current code : function: saleor/warehouse/availability.py: check_stock_quantity

stocks = Stock.objects.get_variant_stocks_for_country(country_code, variant)
    if  not stocks:
        raise InsufficientStock(variant).   ### Exception is thrown here..

    if variant.track_inventory and quantity > _get_available_quantity(stocks):
        raise InsufficientStock(variant)

This should fix the problem:
    if variant.track_inventory:
        stocks = Stock.objects.get_variant_stocks_for_country(country_code, variant)
        if not stocks:
            raise InsufficientStock(variant)

        if quantity > _get_available_quantity(stocks):
            raise InsufficientStock(variant)

Kindly suggest if this change should fix or it requires more changes?

At a first glance, it looks like it should solve the issue but it would need to be tested. If we apply this change and creating an order works well for digital products, we would have to also test that order fulfillment works well and it is not trying to decrease stock for these products (it shouldn't but it will be good to test).

Can you provide a PR with this fix and maybe some test for that? If not I'll add it to our tasks list but cannot promise when it will be tackled.

@maarcingebala I will create the PR with some tests.

@maarcingebala Created PR: https://github.com/mirumee/saleor/pull/6018
For order fulfillment, Testcase saleor/order/tests/test_fulfullments_actions.py::test_create_fulfillments_with_variant_without_inventory_tracking_and_without_stock is passing successfully. So i haven't  created any new testcase.

Great! We'll take a look at the changes and will get back if anything more is needed.

repo: mirumee/saleor


text:
Consider requiring PostgreSQL

We don't want to rush it but the team seems to be convinced that requiring PostgreSQL may be a good idea. It would allow us to use hstore type columns instead of the current generic JSON field (which really is a text field and cannot be filtered or aggregated upon).
Compatibility: We require Django 1.8 and that's when most of django.contrib.postgres appeared. Not sure if there are good reasons to use Saleor with another database given that we perform most optimizations working with PostgreSQL. One downside is being unable to test locally with SQLite which is often expected. With good Docker support we should be able to make it a non-issue.

Requiring PostgreSQL for deployment would be great, but as for losing the ability to use SQLite in my development environment I'm not so keen.

Have you tried to use docker to get a working PostgreSQL instance for your project?

I haven't yet, I haven't needed to deploy anywhere.

I mean to try and use Docker for local development. docker-compose is a great tool that can get you started in no time.

@mikeres0 For dev I like to run postgres in docker. For example:
docker run --name saleor-postgres -p 6432:5432 -e POSTGRES_PASSWORD=postgres -e POSTGRES_USER=postgres -e POSTGRES_DB=saleor -d postgres

It creates working db on port 6432. If I mess it up or just want to have clean DB, I remove container and create new one.

@patrys @krzysztofwolski I'll give this a go guys, cheers

authors: krzysztofwolski mikeres0 patrys


text:
Fix very slow category index render with many discounts for #1314

This PR has some improvements for #1314

Codecov Report

Merging #1318 into master will increase coverage by 0.02%.
The diff coverage is 100%.

@@            Coverage Diff            @@
##           master   #1318      +/-   ##
=========================================
+ Coverage   70.37%   70.4%   +0.02%
=========================================
  Files         117     117
  Lines        6158    6164       +6
  Branches      786     788       +2
=========================================
+ Hits         4334    4340       +6
  Misses       1661    1661
  Partials      163     163

Impacted Files
Coverage Δ

saleor/discount/models.py
89.36% <100%> (+0.35%)
:arrow_up:

Continue to review full report at Codecov.

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

This looks like a candidate for prefetch_related instead of a secondary caching layer. With prefetch_related calls to relation.all() become very cheap.

OK, I'll experiment and see what happens. The thing is the real issue is not the SQL queries, at least according to django debug toolbar. It shows SQL queries take ~200ms. All this time is spent creating python objects or something like that.
The first call to sale.categories.all() will make a second DB query to actually fetch the categories. Subsequent calls to sale.categories.all() will use this already fetched data, and there will be no queries to the database.
But, in this particular case when there are  a lot of discounts, products and product variants even using this cached data to construct new QuerySet objects adds up. The algorithm calculating the discounts for products has exponential time which is the main reason why there is such a drastic slowdown with not so much data.
This is also confirmed by the fact that once I added caching to (products/categories).all() the next thing that popped up was the pgettext call translating the message  in NotApplicable constructor:
        raise NotApplicable(
            pgettext(
                'Voucher not applicable',
                'Discount not applicable for this product'))

I'm closing this PR for now, as we're rebuilding the storefront using GraphQL and React and we want to tackle optimization at the API level.

authors: codecov-io maarcingebala patrys zaro


text:
Trouble setting up the project

Steps to reproduce on Ubuntu L18.04:

use git to clone the project locally
create variables.env in root directory, setting host to localhost:3000(since my nodejs starts at 3000)
change the window.location.hostname variable to localhost:3000 as well
change the proxy address to localhost:3000
This results in a bad request in Ubuntu with NodeJS v10 and a Request Header Too Long error in windows NodeJS v14
Am I doing something wrong?

Project is based on create-react-app and its running on port 3000 so you cant have that and nodejs on same port
also HOST should be your local ip on port 5000 if you choose that port for nodejs (its already running on port 5000)
HOST=http://192.168.0.21:5000
and put same thing for  window.location.hostname

and you should run npm run dev in root directory

HI, I have solved the issue by correcting my MongoDB connection URL. Thank you for clarifying

authors: MarchingVoxels misa-j

repo: misa-j/social-network


text:
Can't use filefield with S3 storage backend

Using this setting:
DEFAULT_FILE_STORAGE = 'storages.backends.s3boto.S3BotoStorage'

I'm getting
NotImplementedError at /forms/submit/
This backend doesn't support absolute paths.

I wonder if it's really necessary to return the filepath in the handle_uploaded_files() function, since a StoredUploadedFile field is save in form.cleaned_data for later sending and saving.

From what I can remember — I needed the files later to be be used as an attachment for sending email submissions via email. See: https://github.com/mishbahr/djangocms-forms/blob/master/djangocms_forms/forms.py#L357

You seem to approach the uploaded files from the fields, while when using a FormView as you do, the files are available in form.files already. Any reason why you took this approach?
I'd like to rewrite it a bit, but don't want to overlook something.

I'm more than happy for you to refactor bits.
Just looking through the code.. can't really remember why I did it this way.

I slightly refactored the email attachment logic last night. Now we get the files form request.FILES . Please try this, and let me know.
— Mishbah

Hi mishbahr. Thank you for your work. I was doing the same this morning, and since I'm trying to improve on my programming skill, I would care if you have a look at it. I've made a pull new PR15, but it doesn't automerge with the changes you've done.
I think my patch particularly solves my problem I had with an S3 storage class which doesn't provide a .path method. So in my case, your solution wouldn't work. I'm going to comment on your code to open up discussion. Again, I'm not an experienced contributor, but I'd like to very much improve. Let me know what you think.

Hmm. looks like we both did very similar thing. I removed the bit where I was trying to access the file path.. and as for attachments.. I'm looping through request.FILES instead of form.files as per doc here: https://docs.djangoproject.com/en/1.8/topics/http/file-uploads/#basic-file-uploads
Please try using my latest commit and see if it works with S3 Storage. If not .. I'll try to resolve the merge conflict. Thanks

UPDATE:  I have just tried my code using django-storages-redux==1.3 with:
DEFAULT_FILE_STORAGE = 'storages.backends.s3boto.S3BotoStorage'

Its uploads to S3 bucket just fine. However the email attachment seems to 0 Bytes :-(

Yes. I fixed this. One moment.
On 7 October 2015 at 15:49, Mishbah Razzaque notifications@github.com
wrote:

UPDATE: I have just tried my code using django-storages-redux==1.3 with:
DEFAULT_FILE_STORAGE = 'storages.backends.s3boto.S3BotoStorage'
Its uploads to S3 bucket just fine. However the email attachment seems to 0
Bytes :-(
—
Reply to this email directly or view it on GitHub
https://github.com/mishbahr/djangocms-forms/issues/14#issuecomment-146201217
.

--
Dries Desmet
URGA | creatieve communicatie
Zuiderlaan 69
8790 Waregem
t 056 61 41 94
m 0477 19 41 13
dries@urga.be
www.urga.be

It's because Django's file object returns an empty bytestring when the file object is not open yet. I'm not sure if this is expected behaviour. It should probably return an exception rather than just a zero length bytestring. the #16 PR runs for me now.

btw, I wondered why you create a hash for file names at all. Is that because they wouldn't get overwritten? Doesn't Django create a new filename anyway if it already exists? I also noticed that you generate a has only once for every file field, which means filenames uploaded within the same form would have the same hash. Intended?

Just committed fully working code :-)
As far as using a hash in filename -- its not based on filename but rather just a UUID appended to filename. So I'm hoping it will be unique per file.

If you'd like it to be unique per file, you should probably put it within the for loop for every file field in handle_uploaded_files. No?

btw, I've sent you a google chat invitation. Thought that would talk easier. Couldn't see your name in django-cms chatroom either. My nichname is TrioTorus.

You are correct!
Fixed in 88dda1fea8f61c61686e40058f58307ab58d0d31
Thanks

Happy to help. I'm delighted you made this plugin, and now it works with S3!
On 7 October 2015 at 16:21, Mishbah Razzaque notifications@github.com
wrote:

You are correct!
Fixed in 88dda1f
https://github.com/mishbahr/djangocms-forms/commit/88dda1fea8f61c61686e40058f58307ab58d0d31
Thanks
—
Reply to this email directly or view it on GitHub
https://github.com/mishbahr/djangocms-forms/issues/14#issuecomment-146209146
.

--
Dries Desmet
URGA | creatieve communicatie
Zuiderlaan 69
8790 Waregem
t 056 61 41 94
m 0477 19 41 13
dries@urga.be
www.urga.be

I'll push it to PyPi :-)

authors: driesdesmet mishbahr

repo: mishbahr/djangocms-forms


text:
Pass obs normalizer to defend policy

Update the train_against_easy.py script to pass the observation normalizer to the DefendGen function correctly.

Haha I literally just made a branch to address this 5 minutes ago!

repo: mit-ll-trusted-autonomy/pyquaticus


text:
changing environment variable to correct name

The huggingface token should be under HUGGING_FACE_HUB_TOKEN, not HF_TOKEN for huggingface authentication. Changes are made to reflect this.

This PR is not complete. I missed a couple changes. Will tear this down and add a new one.


text:
Update to latest CA bundles

Closes #63

LGTM

authors: mitchellh sethvargo

repo: mitchellh/vagrant-installers


text:
[FALSE-POSITIVE] saudi-k.com

Domains or links
Please list any domains and links listed here which you believe are a false positive.
saudi-k.com
More Information
How did you discover your web site or domain was listed here?

Website was hacked

Have you requested removal from other sources?
Please include all relevant links to your existing removals / whitelistings.
sophos
avira
webroot
eset
Netcraft
:exclamation:
We understand being listed on a Phishing Database like this can be frustrating and embarrassing for many web site owners. The first step is to remain calm. The second step is to rest assured one of our maintainers will address your issue as soon as possible. Please make sure you have provided as much information as possible to help speed up the process.
Send a Pull Request for faster removal
Users who understand github and creating Pull Requests can assist us with faster removals by sending a PR to mitchellkrogza/phishing repository, on the falsepositive.list file

https://github.com/mitchellkrogza/phishing/blob/main/falsepositive.list
Please include the same above information to help speed up the whitelisting process.

Dear Team,
Please update on this request.
Thank you.
@funilrys @mitchellkrogza


text:
menshealth.com

Match found in list.34.hosts.ubuntu101.co.za.domains:
menshealth.com
www.menshealth.com

As this domain is also blocked by famous list, I choose not to whitelist this.

authors: funilrys xxcriticxx


text:
host=localhost not possible with docker mac

Not sure if anyone else has experienced this same issue.
I am using the docker-compose modeldb installation on a mac, and unable to connect the docker-machine to localhost.  Here's another forum discussing the issue: https://forums.docker.com/t/using-localhost-for-to-access-running-container/3148
As a workaround, I used this script for the [path to modeldb directory] that find/replaces all the instances of localhost in the routing files.
sed -i -e 's/localhost/<docker-machine address>/g' server/src/main/resources/reference.conf
sed -i -e 's/localhost/<docker-machine address>/g' server/src/main/resources/reference-docker.conf
sed -i -e 's/localhost/<docker-machine address>/g' server/src/main/resources/reference-test.conf
sed -i -e 's/localhost/<docker-machine address>/g' client/syncer.json
sed -i -e 's/localhost/<docker-machine address>/g' frontend/util/check_thrift.js
sed -i -e 's/localhost/<docker-machine address>/g' frontend/util/thrift.js
sed -i -e 's/localhost/<docker-machine address>/g' client/python/modeldb/basic/Structs.py

For , do: $ docker-machine ls
NAME      ACTIVE   DRIVER       STATE     URL                         SWARM   DOCKER        ERRORS
default   -        virtualbox   Running   tcp://192.168.99.100:2376           v17.05.0-ce

After that I was able to add new projects to the docker/modeldb.
I can branch and submit a pull request.  Or, is there a better way?  Please advise.

@justinanderson

Hi @soellingeraj, it sounds like you're using the older Docker Toolbox instead of Docker for Mac. If your system supports it, I recommend switching to Docker for Mac. It doesn't use virtualbox anymore and so removes many of the headaches like port forwarding involved with Docker development on a Mac.
If you use Docker for Mac, it will forward all exposed container ports to localhost automatically. docker-compose up should leave you with a web server reachable at http://localhost:3000/ and a docker-machine ls that looks like this:
NAME      ACTIVE   DRIVER       STATE     URL   SWARM   DOCKER    ERRORS
default   -        virtualbox   Stopped                 Unknown

If you need to run Docker Toolbox, I suggest setting up port forwarding for the virtualbox VM used by docker-machine, as detailed in this Stack Overflow answer.

thank you.  that worked.
you can close this one.

authors: justinanderson mpvartak soellingeraj

repo: mitdbg/modeldb


text:
Integrate mitmproxy contentviews

first PR for this issue, can you tell me more about the content generator?

Content views:
https://github.com/mitmproxy/mitmproxy/blob/d97fe767dc7b8ea47f0e170c6f002c506f606d57/mitmproxy/contentviews.py#L621-L632
https://github.com/mitmproxy/mitmproxy/blob/d97fe767dc7b8ea47f0e170c6f002c506f606d57/mitmproxy/contentviews.py#L117-L135

The content generator yields lists of (style, text) tuples, where each list represents a single line.

In a nutshell, a generator is a sequence you can iterate over. The main difference compared to a list is that generators are computed lazily. See: https://jeffknupp.com/blog/2013/04/07/improve-your-python-yield-and-generators-explained/
>>> import pprint
>>> from mitmproxy import contentviews
>>> view = contentviews.ViewURLEncoded()
>>> description, generator = view(b"foo=42&bar=43&baz=44")
>>> description
'URLEncoded form'
>>> generator
<generator object format_dict at 0x041DE1E0>
>>> lines = list(generator)
>>> pprint.pprint(lines)
[[('header', 'foo: '), ('text', '42')],
 [('header', 'bar: '), ('text', '43')],
 [('header', 'baz: '), ('text', '44')]]

The style is normally just "text", but it can also be "highlight", "offset" or "header". This is probably best solved by giving the span a matching className.

i am struggeling with the sticky contentview options, currently its not working, but the rest should be fine

Can you resolve the merge conflicts on this please?

This looks good. Let's get this in a mergable state ASAP so that we can move that into master and do smaller iterations there! :smiley:

repo: mitmproxy/mitmproxy


text:
asadiqbal08/Update xPro references

fixes: #10
Updated .html and .scss from xPro references.

@arslanashraf7 I guess there is another story for that https://github.com/mitodl/mitxonline-theme/issues/12

@arslanashraf7 I guess for point#1, there is another story for that #12

@asadiqbal08 , I didn't notice that ticket exists. But point#2,3 I think still belongs to this PR.

repo: mitodl/mitxonline-theme


text:
Epic: Support Program Requirements

We already have some initial support for programs in the form of a Program and ProgramEnrollment and want to expand on that to support ecommerce specifically for MicroMasters programs more thoroughly.

[x] A Program should be able to specify required Courses
[x] A Program should be able to specify elective Courses
[x] Program progress / completion tracking
[x] Program Certificates

Far Future

[ ] A Course should be able to specify prerequisite Courses

I checked all the boxes except for the "far future" one.

authors: pdpinch rhysyngsun

repo: mitodl/mitxonline


text:
The RPC server is unavailable.

Hello,
I like this project very much. I don't know how to solve this problem. I hope you can help me.
look at it

As you can see, I opened the RPC service, but I still couldn't perform this operation.

Another problem is that my server uses redhunter, which prompts when I load pstools that the permissions aren't enough, and I've tried to modify the permissions, but it doesn't work.

If there is a systemic language problem, I think I was wrong from the beginning.

Look forward to your reply

If this issue still exists after upgrading to the most recent version of Caldera, feel free to re-open this issue or create a new one. Until then, this issue is being closed due to lack of activity.

repo: mitre/adversary


text:
Switch to a node-based IR

Building on PR #41, this change refactors the logic in op.cpp, eval_llvm.cpp and eval_cuda.cpp to switch to a node-based IR.
In particular:

The very large generic function jit_var_new_op() was transformed into a set of operation-specific functions like jit_var_add(), jit_var_fma(). These produce an abstract IR representations, whose codegen-specific bits are now part of the corresponding backends. Splitting the generic function leads to code that is easier to understand and likely easier to compile as well.

The somewhat wordy pattern jit[c]_var_new_x was changed to the shorter jit[c]_var_x, throughout the codebase where x is usually an action.

It is now impossible to create statement-type variables (string-based IR) through the public API. However, internally, there are still a bunch of places that create such variables (CUDA textures, printf, ray tracing, ...). Eventually it will be nice to get rid of these as well, but let's do it in another PR (this one is already way too large)

The PR rolls in a few other minor changes:

Dr.Jit must know the LLVM version to generate the right set of intrinsics (which change between versions). To do this properly, it now tries harder to detect the version version. When all fails, it uses a fallback that resolves symbols known to only exist in specific LLVM versions, which is good enough for inferring the major version.

It removes the managed and managed-read-only CUDA memory types that we never used. They are only poorly supported on Windows and have a bunch of performance pitfalls.

It improves the formatting of some routines (dr.whos(), dr.graphviz()) that had bit-rotted somewhat.

Analogous to the LLVM backend, the CUDA and OptiX backends were reorganized into a parts related to dynamic API resolution-specific bits ({cuda,optix}_api.{h,cpp}) and the rest (_core.cpp)

I renamed eval_{cuda,llvm}.cpp to {cuda,llvm}_eval.cpp to follow the naming convention of the other files.

There was quite a bit of complex code in the memory allocation cache for propagating allocations between different threads that is no longer needed now that each device has a central queue. All of that could be removed, which will hopefully make it easier to support additional backends in the future.

It turns out that LLVM still had a per-thread queue, which wasn't consistent with how the CUDA backend works. I changed it so that there is also a global queue that different threads submit to. (The minor performance benefits of a per-thread queue are outweighted by the difficulty of getting it to work correctly when mitsuba loads scenes in parallel)

(Updated.)

I did an interactive rebase to squash some sub-commits and integrated your feedback. I added one more minor change (https://github.com/mitsuba-renderer/drjit-core/pull/52/commits/a3c7e5bef28e06dfe79e42dba3917645992241ab) to change the printf_async operation from textual IR into abstract IR.

repo: mitsuba-renderer/drjit-core


text:
Read/Write arbitrary string.

Use for checking the original type information.

Do not support.

repo: mitsuse/serial-go


text:
ERROR: Detected a package name collision

This bug happened to me when I added qthttpserver to an installation. Without qthttpserver everything installs fine.
List cmd:
$ aqt list-qt linux desktop --modules 6.4.2 gcc_64
debug_info qt3d qt5compat qtcharts qtconnectivity qtdatavis3d qthttpserver qtimageformats qtlanguageserver qtlottie qtmultimedia qtnetworkauth qtpdf qtpositioning qtquick3d qtquick3dphysics qtquicktimeline qtremoteobjects qtscxml qtsensors qtserialbus qtserialport qtshadertools qtspeech qtvirtualkeyboard qtwaylandcompositor qtwebchannel qtwebengine qtwebsockets qtwebview
Install cmd:
$ aqt install-qt -O /opt/Qt linux desktop 6.4.2 gcc_64 --m qt5compat qtcharts qthttpserver qtimageformats qtlottie qtmultimedia qtquicktimeline qtspeech qtwebchannel qtwebsockets qthttpserver
INFO    : aqtinstall(aqt) v3.1.0 on Python 3.10.6 [CPython GCC 11.3.0]
WARNING : Specified Qt version is unknown: 6.4.2.
ERROR   : Detected a package name collision
Traceback (most recent call last):
File "/usr/local/lib/python3.10/dist-packages/aqt/installer.py", line 177, in run
args.func(args)
File "/usr/local/lib/python3.10/dist-packages/aqt/installer.py", line 400, in run_install_qt
qt_archives: QtArchives = retry_on_bad_connection(
File "/usr/local/lib/python3.10/dist-packages/aqt/helper.py", line 165, in retry_on_bad_connection
return function(base_url)
File "/usr/local/lib/python3.10/dist-packages/aqt/installer.py", line 401, in
lambda base_url: QtArchives(
File "/usr/local/lib/python3.10/dist-packages/aqt/archives.py", line 300, in init
self._get_archives()
File "/usr/local/lib/python3.10/dist-packages/aqt/archives.py", line 365, in _get_archives
self.get_archives_base(f"qt{self.version.major}{self._version_str()}{self._arch_ext()}", self._target_packages())
File "/usr/local/lib/python3.10/dist-packages/aqt/archives.py", line 361, in _target_packages
target_packages.add(module, package_names)
File "/usr/local/lib/python3.10/dist-packages/aqt/archives.py", line 94, in add
assert package_name not in self._packages_to_modules, "Detected a package name collision"
AssertionError: Detected a package name collision
ERROR   : aqtinstall(aqt) v3.1.0 on Python 3.10.6 [CPython GCC 11.3.0]
Working dir: /
Arguments: ['/usr/local/bin/aqt', 'install-qt', '-O', '/opt/Qt', 'linux', 'desktop', '6.4.2', 'gcc_64', '--m', 'qt5compat', 'qtcharts', 'qthttpserver', 'qtimageformats', 'qtlottie', 'qtmultimedia', 'qtquicktimeline', 'qtspeech', 'qtwebchannel', 'qtwebsockets', 'qthttpserver'] Host: uname_result(system='Linux', node='4a4d7c6111e3', release='5.15.0-53-generic', version='#59-Ubuntu SMP Mon Oct 17 18:53:30 UTC 2022', machine='x86_64')
===========================PLEASE FILE A BUG REPORT===========================
You have discovered a bug in aqt.
Please file a bug report at https://github.com/miurahr/aqtinstall/issues
Please remember to include a copy of this program's output in your report.

This is definitely a CLI bug, but there's an easy workaround. You have the module qthttpserver listed twice in your command. If you remove one of the duplicates, your command should work properly.

#633 should fix this, if you want to try it. You should be able to put qthttpserver into the module list as many times as you want and it should still work.
The CI runs are failing right now due to an issue with tox; I'm not sure what the problem is, but it exists in the master branch as well.

Hi!
I tried the fix and yes it is working now.

authors: ddalcino vkuznetsovgn

repo: miurahr/aqtinstall


text:
Add explanation of --config flag in CLI docs

This adds the -c | --config flag to the CLI section of the documentation.
This problem was discovered while investigating #488. It does not attempt to fix that issue.

Thank you for the fix. merged.

authors: ddalcino miurahr


text:
Rollback metrics versions

The new version has problems through AWS ELBs.

Thanks!

authors: calumlean neilprosser

repo: mixradio/mr-clojure


text:
Links to URLs ending in brackets are truncated

URLs like https://en.wikipedia.org/wiki/Set_(mathematics) which end with a bracket seem to get truncated by Mistletoe. It seems to grab a URL by searching for the first ) character, omitting brackets and any following characters. For instance:
$ mistletoe
mistletoe [version 0.5.4] (interactive)
Type Ctrl-D to complete input, or Ctrl-C to exit.
>>> [link](https://en.wikipedia.org/wiki/Set_(mathematics))
...

link)

I'm not sure if this is a serious issue---after all, we can encode the bracket in the URL as %29. For what it's worth, GitHub's flavour of markdown seems to be happy with URLs ending in (at least one) bracket. The string [link](https://en.wikipedia.org/wiki/Set_(mathematics)) results in link, and all is well.

Ah, should be fixed in 2706db3. The problem was caused by a lazy matching character in the regex, because I was trying to solve the problem of multiple links in a paragraph. Disallowing whitespaces (as I should have done from the beginning, derp..) in URLs bypasses this problem.
mistletoe [version 0.5.5] (interactive)
Type Ctrl-D to complete input, or Ctrl-C to exit.
>>> [link](https://en.wikipedia.org/wiki/Set_(mathematics))
...

link

This fix will be included in the next pypi release, so please use the dev branch if you need it working now. Thanks for the bug report!

authors: DMRobertson miyuchina

repo: miyuchina/mistletoe


text:
add reporter feature

add three reporter
Related #23

status ok

repo: mizunashi-mana/node-sonparser


text:
Question: why would you need to store state that isn't in the url?

Should the user expect to get a different page when they visit a url each time?

Sure. See for example the Pinterest example in React Router.

authors: ntucker taion

repo: mjackson/history


text:
Track metadata about the day

As a stats keeper, I want to track details about the day, so that I can provide context to the launch outputs.
For example, tracking what is submitted in the VGS Ops Data Return (stats) for each day (weather, staffing, awards)

Will be worth adding the MT state as well, but unsure if we are reporting this back on the GUR anymore?


text:
Command line error: No input files found

Hello!
The compilation work but the watch no.

My version :
"mjml": "^4.0.5"
I'm on windows with Git Bash.

hey @lefuturiste, thanks for reporting. It's a known issue, we're going to fix it very soon in v4.1.0.
I'm closing this one to the benefit of the already-opened issue: https://github.com/mjmlio/mjml/issues/1171

Oh, now i know that i must have file "index.mjml" in directory before this entering this command?

authors: klimov-rv lefuturiste ngarnier

repo: mjmlio/mjml


text:
MJ-column issue when mobile rendering is used

Hello there,
I've been trying to setup a template with some buttons with a text overlay, and I came up with the following code.
    <mj-column width="25%">
      <mj-image width="133px" src="http://static.evensi.com/business-square.png" />
      <mj-text align="center">
Business
</mj-text>
    </mj-column>

The css class declared at the top are properly used, but the issue I've experiencing is related the layout once on the mobile view. The 25% width of the column is somewhat ignored and not coded in the final HTML. As a a result of this I have the screen rendering a list of boxes (I've 6 of them as per the above), piled up vertically in a non elegant way.
Anybody that can help me figuring out what's wrong?
Thanks

Hi @Evensier
You should take a look at https://mjml.io/documentation/#mjml-group it keeps columns inside  mj-group as inline in mobile
I'm closing this issue, feel free to reopen if it doesn't work for you

I've tried that already, even before posting this issue, but things are getting overlapped with the design above.

mj-table could work for this, if I'm understanding the issue correctly
Kind Regards,
:----------------------------:
Dale McConnell
On 21 July 2017 at 16:43, Evensier notifications@github.com wrote:

I've tried that already, even before posting this issue, but things are
getting overlapped with the design above.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/mjmlio/mjml/issues/752#issuecomment-317019874, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AKxLOFvvQt5ZD5TlQCCcy0ylpjhEeg5bks5sQLj_gaJpZM4OfZOI
.

You might need to do 2 group of 50/50
mj-group
mj-column x2 50%
mj-group
mj-column x2 50%
image could be too wide to allow you 4 column as mobile

Ok sort of getting what I need, although the mj-group doesn't expose any css-class property. Any idea on how to add some style there?

mj-group does support css-class like every other element in the body

@iRyusa true, but for whatever reason the MJML compiler add some inline style that override the class behaviour.
Any idea on how to avoid that?
I've created a fiddle here with part of the code I've written. Would love some advice to understand what I'm doing wrong
https://jsfiddle.net/syLdxd1e/
Thanks for the help.

authors: Evensier dalefish iRyusa


text:
[FIX] Watch wrong files on CLI

Should fix #2823 soon

@iRyusa mind releasing a patch for this? Thank you for your work! :pray:

Should be available in 5.x branch

authors: dargmuesli iRyusa


text:
Question about the adapters pattern

Considering my current understanding of the adapters pattern - waiting to stand corrected - we're going to define adapter mapping trees.
Will it exclusively go in one way, ie:
from django.db.models import Person
# add returns a clone of the payload, so we're instanciating 2 payloads here
# because the FormView adapter's post_add() will add(Form adapter, clone=False)
# if it's not already there ?
p = Payload.factory(instance=Person()).add('django.views.ModelFormView')
# executing a step returns a clone of the payload, but we don't care:
# we have an adapter mapping on data, a request, and we want a response
assert p.steps.response(request=request).response

The tutorial demonstrates how the above would be possible, but it might look like this (not tested code, obviously clumsy):

import Person model
make a payload with an empty instance,
because it's a model, factory will add the django model adapter, which has post_add():

introspect the payload,
map payload.instance._meta.fields to keys of the Payload corresponding to field names
with the appropriate adapters for each field
ie. payload.map.name.adapters == [StringAdapter(max_length=255)]
add validate and clean steps

add the modelformview adapter on the person payload

add the form adapter on the personpayload,
introspect the payload, and map keys corresponding form fields to model fields
ie. payload.map.name.adapters == [StringAdapter(max_length=255), TextFieldAdapter(label="my verbose name")]
add validate and clean steps on the person payload
add a render step
add the template adapter on the person,

which adds a render step with a default template name
that will be able to see other adapter's render outputs

add a response step which to orchestrate other steps,

but needs payload.request, and sets payload.response
in a clone as usual when a step is executed
unless clone=False, for calling steps from within steps

execute the response step by adding request to the payload

modelformview adapter response will try to execute all prior steps,
if no errors are added by clean() step then process() step will save
if no errors response() will if errors on validate step show the form again, otherwise redirect to the detail view, if errors were added during process who knows and honnestly i leave it up to you what the default behaviour will be since it should be so easy to override not only the method but the default adapter registered for ModelFormView !!

Or, will it allow to build a nested adapter map, and then be able to generate a model class with another adapter ?
class Hobby(adapters.Payload):
    name = Payload(adapters=[StringAdapter()])

class Person(adapters.Payload):
    hobbies = Payload(map=[HobbyAdapter()])
    class Meta:
        adapters = [OnlyAllowHobbiesToBe('archery', 'django', 'music')]

p = Person().add('django.db.models.Model')
# custom step by django model adapter, optinal, sets payload.model if not already present
p.steps.modelize().model

Another possibility is to make everything an adapter, which can have adapters who know about their parent, in which case steps also are adapters, just they orchestrate the adapters which are in a mapping structure, and defining a step is just defining a method which may depend on methods priorly executed.
Sorry if this doesn't make any sense please correct me ;)
If that makes sense to you then you probably understand why i consider this million $ worth, in terms of refactoring, and code reusability.

Closing this for now it's not supported

repo: mjtamlyn/django-adapters


text:
Refactor duplicated code in tests, remove duplicated references from test projects

Fix #158, merge after #188

:x: Build ConfuserEx 407 failed (commit https://github.com/mkaring/ConfuserEx/commit/59830d5eb4 by @KvanTTT)

:x: Build ConfuserEx 409 failed (commit https://github.com/mkaring/ConfuserEx/commit/4a8592482f by @KvanTTT)

:x: Build ConfuserEx 410 failed (commit https://github.com/mkaring/ConfuserEx/commit/93caef267e by @KvanTTT)

:x: Build ConfuserEx 411 failed (commit https://github.com/mkaring/ConfuserEx/commit/48f4be13a2 by @KvanTTT)

authors: AppVeyorBot KvanTTT

repo: mkaring/ConfuserEx


text:
bug: ModuleNotFoundError: No module named 'mkdocstrings_handlers'

Description of the bug
When i try to build the doc i get "ModuleNotFoundError: No module named 'mkdocstrings_handlers'". This is a fresh installation and a new empty mkdocs project and i still get this error as soon as i had a class or a function.
To Reproduce
 ```
 pip3 install mkdocs
 pip3 install mkdocstring
 mkdocs new docs
 cd docs
 mkdocs build
 ```

Full traceback
Full traceback
INFO    -  Cleaning site directory
INFO    -  Building documentation to directory:
           /home/sam/Documents/project/project/has/docs/site
WARNING -  A relative path to 'subfolder/functions.md' is included in the
           'nav' configuration, which is not found in the documentation
           files.
WARNING -  A relative path to 'functions.md' is included in the 'nav'
           configuration, which is not found in the documentation files.
ERROR   -  Error reading page 'index.md': No module named
           'mkdocstrings_handlers'
Traceback (most recent call last):
  File "/home/sam/.local/bin/mkdocs", line 8, in <module>
    sys.exit(cli())
  File "/home/sam/.local/lib/python3.9/site-packages/click/core.py", line 1157, in __call__
    return self.main(*args, **kwargs)
  File "/home/sam/.local/lib/python3.9/site-packages/click/core.py", line 1078, in main
    rv = self.invoke(ctx)
  File "/home/sam/.local/lib/python3.9/site-packages/click/core.py", line 1688, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/home/sam/.local/lib/python3.9/site-packages/click/core.py", line 1434, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/home/sam/.local/lib/python3.9/site-packages/click/core.py", line 783, in invoke
    return __callback(*args, **kwargs)
  File "/home/sam/.local/lib/python3.9/site-packages/mkdocs/__main__.py", line 286, in build_command
    build.build(cfg, dirty=not clean)
  File "/home/sam/.local/lib/python3.9/site-packages/mkdocs/commands/build.py", line 322, in build
    _populate_page(file.page, config, files, dirty)
  File "/home/sam/.local/lib/python3.9/site-packages/mkdocs/commands/build.py", line 175, in _populate_page
    page.render(config, files)
  File "/home/sam/.local/lib/python3.9/site-packages/mkdocs/structure/pages.py", line 271, in render
    self.content = md.convert(self.markdown)
  File "/home/sam/.local/lib/python3.9/site-packages/markdown/core.py", line 357, in convert
    root = self.parser.parseDocument(self.lines).getroot()
  File "/home/sam/.local/lib/python3.9/site-packages/markdown/blockparser.py", line 117, in parseDocument
    self.parseChunk(self.root, '\n'.join(lines))
  File "/home/sam/.local/lib/python3.9/site-packages/markdown/blockparser.py", line 136, in parseChunk
    self.parseBlocks(parent, text.split('\n\n'))
  File "/home/sam/.local/lib/python3.9/site-packages/markdown/blockparser.py", line 158, in parseBlocks
    if processor.run(parent, blocks) is not False:
  File "/home/sam/.local/lib/python3.9/site-packages/mkdocstrings/extension.py", line 124, in run
    html, handler, data = self._process_block(identifier, block, heading_level)
  File "/home/sam/.local/lib/python3.9/site-packages/mkdocstrings/extension.py", line 195, in _process_block
    handler = self._handlers.get_handler(handler_name, handler_config)
  File "/home/sam/.local/lib/python3.9/site-packages/mkdocstrings/handlers/base.py", line 459, in get_handler
    module = importlib.import_module(f"mkdocstrings_handlers.{name}")
  File "/usr/lib/python3.9/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen importlib._bootstrap>", line 972, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
  File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen importlib._bootstrap>", line 984, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'mkdocstrings_handlers'

Expected behavior
Since i put a class in index.md, i expect the site to be generated correctly.
Environment information
python3 -m mkdocstrings.debug  # | xclip -selection clipboard

System: Linux-5.10.0-26-amd64-x86_64-with-glibc2.31
Python: cpython 3.9.2
Environment variables:

PYTHONPATH: :/home/sam/Documents/Project/project

Installed packages:

mkdocstrings v0.24.0

Additional context

Duplicate of #623, #647

You mean i have to install mkdocstrings-python with pip?

Yes :)

authors: cldtech pawamoy

repo: mkdocstrings/mkdocstrings

license: ISC


text:
share buttons not working

hello
thank you for your great work and sharing it
I installed your plugin on my website copying link and embed code work perfectly but not social buttons : I tried them all
here's an url to check https://videos.arabeevideo.com/watch/p127-royal-enfield-cont
is it possible to add custom embed code ?

You can pass custom embed code as embedCode property in the plugin options object.

Would you be kind and provide an example of share button implementation (fb or smth)? 😸

Take a look at https://neuron-digital.github.io/wjplayer/examples/mp4.html

I'm not very comfortable with js programming neither with videojs , but seems like this is a customized player with many advanced featured
I took a look into the source code , seems you packed plugins together , is it possible to add other plugins like playlist or context menu to your player?

@tunmsk videojs has that already. He improved it with his own plugin.
Check on https://github.com/videojs/video.js

authors: kenanbalija mkhazov tunmsk

repo: mkhazov/videojs-share


text:
Insert result set resulting in "pyodbc.ProgrammingError: ('String data, right truncation: length 8 buffer 4', 'HY000')" error.

I am using pyodbc 4.0.26 version. Inserting result-set (containing a decimal result) with "fastexecutemany" set to TRUE results in "pyodbc.ProgrammingError: ('String data, right truncation: length 8 buffer 4', 'HY000')" error.

Please provide a minimum reproducible example and/or an ODBC trace, along with the name and version of the ODBC driver you are using.

SQL.LOG
Hi, I have attached the ODBC trace.
Below are the versions of Software I am using
Python Version: 3.7
pyodbc version: 4.0.26
DB: Teradata
Driver: Teradata 15.10.01.03
OS: Win10

The previous version of the issue title indicates that you are using "fastexecutemany". Does the error go away if you use fast_executemany=False (the default)? If so, then the Teradata ODBC driver may simply not support "parameter arrays", the internal ODBC feature that allows fast_executemany=True to work.

Yes. It works when fast_executemany= False.  I have used fast_executemany = True on the same Teradata driver for other tables. It worked. I am having issue for this one table. could it be an issue in the data I am inserting? the data I am inserting is extracted from a VSAM file (Mainframe).

The error

pyodbc.ProgrammingError: ('String data, right truncation: length 8 buffer 4', 'HY000')

clearly indicates that a string parameter value is overflowing the space allocated to it. Are you passing the decimal parameter values as strings? If so, can you try passing those parameter values as Decimal instead of str, e.g., Decimal('3.14') instead of '3.14'?

Yes. I am passing decimal parameter values as string. I passed those values as decimal. It worked.  Thanks so much for your inputs.

You're welcome. Glad to hear that you got it working. You can close this issue now.

authors: dvarna gordthompson

repo: mkleehammer/pyodbc


text:
open method not visible when using WKZombie in Objective C project

Hi, after adding WKZombie to my podfile and adding @import WKZombie;, I can invoke some methods on the WKZombie.shareInstance, e.g. dump, setTimeoutSeconds, but the essential open method is not visible for some reasons.
Would you have any hints on how to solve this?
thanks.

Hi @billylo1 Thanks for reporting this. You're right, there seems to be an issue with the extensions not being visible in Objective C code. I'll look into it.

Thanks!  Looking forward to it!

Sorry for the confusion! I forgot that Swift generic functions are not supported by Objective-C. So this is the correct behaviour. However, you should be able to add a Swift file to your Objective-C project (Mix and Match) and use WKZombie in there. Hope that helps!

I did try that.  Importing the WKZombie-swift.h to make WKZombie visible to the objective C code.  But I can't find a way to invoke "open".  Are you able to make it work in Xcode?

Just add a Swift file (e.g. Test.swift) to your project and simply add "import WKZombie". Create a class/function, do all the headless browsing there and hand the result back to your Objective-C code.

repo: mkoehnke/WKZombie


text:
Refactor cardano-db-sync code and add tests

Closes #67
~Note: this PR breaks cardanow-ts nix package: in particular the checkPhase is no longer passing: it seems the the mocking is not working as expected~

how the derivation build is not failing if tests are failing? I don't see where you disabled them and if I run nix build locally I see that some tests are executed

the first draft had that, but  I managed to fix that so we are currently testing things in CI, good catch

probably not the end of the world since we are talking about tests anyway but is the as unknown as Mock thing unavoidable? Or perhaps it's something commonly done in Typescript? (forgive my ignorance)

Not sure honestly, I'm not a TS expect neither, I'll drop a todo commit so we can look into this better later

The idea is that we start docker during the tests because we need a database? I can't understand how it's mocked otherwise. Perhaps this is why the derivation check phase fails? (running docker in a derivation sandbox may be non trivial)

No we are not, we are only mocking the TS code, docker is not involved

repo: mlabs-haskell/cardanow


text:
[Bug] Unable to recognize vocab.json, merges.txt tokenizer format

🐛 Bug
according to #31 , mlc-llm should already support vocab.json, merges.txt tokenizer formats.
But when I try to inference CausalLM/72B-preview-llamafied-qwen-llamafy I run into the error that can't find the tokenizer
>>> from mlc_chat import ChatModule
>>> cm = ChatModule(model="/home/alphaarea/models/CausalLM-7B-DPO-alpha-q0f16", model_lib_path="/home/alphaarea/models/CausalLM-7B-DPO-alpha-q0f16/CausalLM-7B-DPO-alpha-q0f16-cuda.so")
[2024-01-03 14:04:58] INFO model_metadata.py:55: Total memory usage: 9917.13 MB (Parameters: 5462.51 MB. KVCache: 1024.00 MB. Temporary buffer: 3430.62 MB)
[2024-01-03 14:04:58] INFO model_metadata.py:64: To reduce memory usage, tweak `prefill_chunk_size`, `context_window_size` and `sliding_window_size`
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/alphaarea/.conda/envs/mlc-llm-20240103/lib/python3.11/site-packages/mlc_chat/chat_module.py", line 774, in __init__
    self._reload(self.model_lib_path, self.model_path, user_chat_config_json_str)
  File "/home/alphaarea/.conda/envs/mlc-llm-20240103/lib/python3.11/site-packages/mlc_chat/chat_module.py", line 988, in _reload
    self._reload_func(lib, model_path, app_config_json)
  File "tvm/_ffi/_cython/./packed_func.pxi", line 332, in tvm._ffi._cy3.core.PackedFuncBase.__call__
  File "tvm/_ffi/_cython/./packed_func.pxi", line 263, in tvm._ffi._cy3.core.FuncCall
  File "tvm/_ffi/_cython/./packed_func.pxi", line 252, in tvm._ffi._cy3.core.FuncCall3
  File "tvm/_ffi/_cython/./base.pxi", line 182, in tvm._ffi._cy3.core.CHECK_CALL
  File "/home/alphaarea/.conda/envs/mlc-llm-20240103/lib/python3.11/site-packages/tvm/_ffi/base.py", line 481, in raise_last_ffi_error
    raise py_err
  File "/workspace/mlc-llm/cpp/llm_chat.cc", line 1532, in mlc::llm::LLMChatModule::GetFunction(tvm::runtime::String const&, tvm::runtime::ObjectPtr<tvm::runtime::Object> const&)::{lambda(tvm::runtime::TVMArgs, tvm::runtime::TVMRetValue*)#1}::operator()(tvm::runtime::TVMArgs, tvm::runtime::TVMRetValue*) const
  File "/workspace/mlc-llm/cpp/llm_chat.cc", line 553, in mlc::llm::LLMChat::Reload(tvm::runtime::TVMArgValue, tvm::runtime::String, tvm::runtime::String)
  File "/workspace/mlc-llm/cpp/tokenizers.cc", line 63, in mlc::llm::TokenizerFromPath(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)
tvm._ffi.base.TVMError: Traceback (most recent call last):
  3: mlc::llm::LLMChatModule::GetFunction(tvm::runtime::String const&, tvm::runtime::ObjectPtr<tvm::runtime::Object> const&)::{lambda(tvm::runtime::TVMArgs, tvm::runtime::TVMRetValue*)#1}::operator()(tvm::runtime::TVMArgs, tvm::runtime::TVMRetValue*) const
        at /workspace/mlc-llm/cpp/llm_chat.cc:1532
  2: mlc::llm::LLMChat::Reload(tvm::runtime::TVMArgValue, tvm::runtime::String, tvm::runtime::String)
        at /workspace/mlc-llm/cpp/llm_chat.cc:553
  1: mlc::llm::TokenizerFromPath(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)
        at /workspace/mlc-llm/cpp/tokenizers.cc:63
  0: _ZN3tvm7runtime6deta
  File "/workspace/mlc-llm/cpp/tokenizers.cc", line 63
TVMError: Cannot find any tokenizer under: /home/alphaarea/models/CausalLM-7B-DPO-alpha-q0f16

Here is the mlc-chat-config.json generated by mlc_chat gen_config, which looks like it already recognizes the tokenizer file. But it doesn't work in practice
{
  ...
  "tokenizer_files": [
    "vocab.json",
    "merges.txt",
    "tokenizer_config.json"
  ],
  "version": "0.1.0"
}

To Reproduce

Several of CausalLM's models use the same tokenizer format, which can be reproduced by downloading the smallest model CausalLM/7B-DPO-alpha

convert, gen_config and compile

MODEL_PATH='/home/alphaarea/models/CausalLM-7B-DPO-alpha'
MLC_QUANT='q0f16'
MLC_DEV='cuda'
MLC_SHARDS=4
MODEL_ARCH='llama'
MODEL_TEMP='gpt2'
MODEL_NAME=${MODEL_PATH##*/}
MODEL_OUTPUT=$MODEL_PATH'-'$MLC_QUANT
MODEL_LIB=$MODEL_NAME'-'$MLC_QUANT'-'$MLC_DEV'.so'

mlc_chat convert_weight --quantization $MLC_QUANT --model-type $MODEL_ARCH --output $MODEL_OUTPUT $MODEL_PATH
mlc_chat gen_config --quantization $MLC_QUANT --model-type $MODEL_ARCH --conv-template $MODEL_TEMP --tensor-parallel-shards $MLC_SHARDS --output $MODEL_OUTPUT $MODEL_PATH
mlc_chat compile --device $MLC_DEV --output $MODEL_OUTPUT/$MODEL_LIB $MODEL_OUTPUT/mlc-chat-config.json

run  in python

from mlc_chat import ChatModule
cm = ChatModule(model="/yourpath/CausalLM-7B-DPO-alpha-q0f16", model_lib_path="/yourpath/CausalLM-7B-DPO-alpha-q0f16/CausalLM-7B-DPO-alpha-q0f16-cuda.so")

Expected behavior
TVMError: Cannot find any tokenizer under: /yourpath/CausalLM-7B-DPO-alpha-q0f16
Environment

Platform: CUDA
Operating system: Ubuntu 22.04.3 LTS
Device: Tesla P100
How you installed MLC-LLM: python3 -m pip install --pre -U -f https://mlc.ai/wheels mlc-chat-nightly-cu121 mlc-ai-nightly-cu121
How you installed TVM-Unity: pip
Python version: 3.11
GPU driver version: 545.23.08
CUDA/cuDNN version: 12.1

Currently we support the following tokenizers:

SentencePiece
HuggingFace
RWKV world
Byte-level BPE

See the tokenizer finding logics here for more details: https://github.com/mlc-ai/mlc-llm/blob/main/cpp/tokenizers.cc. The tokenizer-related files exist (vocab.json, merges.txt and tokenizer_config.json) don't match any of the patterns in our tokenizer detection, and that's why an error is reported.
Not super familiar with the tokenizer part - could you share which tokenizer it is? Please feel free to contribute if you are interested!

I've figured it out, the models I've been able to run without problems in the past have the tokenizer_class LlamaTokenizer or  LlamaTokenizerFast in tokenizer_config.json. But the CausalLM-72B is GPT2Tokenizer. And I had a similar problem when I trying Nous-Capybara-34B, whose tokenizer_class is YiTokenizer.
Does HuggingFace tokenizers support mean only LlamaTokenizer and LlamaTokenizerFast in currently?
In the future, will the common tokenizer supported by transformers.AutoTokenizer be more easily supported by mlc-llm?

I do think fundamentally we support full HuggingFace tokenizers because we compile its full source in rust: https://github.com/mlc-ai/tokenizers-cpp with some wrapping logic:

Rust wrapper: https://github.com/mlc-ai/tokenizers-cpp/blob/main/rust/src/lib.rs#L106-L130
Expose Rust wrapper in C++: https://github.com/mlc-ai/tokenizers-cpp/blob/main/src/huggingface_tokenizer.cc#L84

It would be awesome if you'd love to contribute adding the related wrappers to tokenizers-cpp!

Ah I just noticed that GPT2Tokenizer is actually byte-level BPE tokenizer, which is supported already. We only need to figure out what the missing file add_tokens.json is used for

I saw a blog explaining this file. Let me know if it's helpful! https://blog.rfox.eu/en/Programming/How_to_run_your_own_LLM_GPT.html

I'll see if there's a way of generating an added_tokens.json during gen_config, just like how we currently convert tokenizer.model to tokenizer.json there.
https://github.com/mlc-ai/mlc-llm/blob/main/python/mlc_chat/interface/gen_config.py#L132-L153
Meanwhile we might have to do it manually.

@CharlieFRuan I tried to add an added_tokens.json with an empty json string "{}", but got another error from our tokenizer wrapper complaining about merges.txt:
thread '<unnamed>' panicked at 'Invalid merges.txt file.', src/lib.rs:63:21
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
fatal runtime error: failed to initiate panic, error 5

This line in our tokenizer wrapper tries to split each line in merges.txt into two pieces, separate by " ", which fails at the last line which only contains:
å

Note that the merges.txt file is different from GPT2's official one.

OK I know how to make this work now! @alphaarea There are two things you will want to patch up:

Add an added_tokens.json which contains an empty json object: "{}"
Replace the truncated merge.txt with QWen's official one.

OK I know how to make this work now! @alphaarea There are two things you will want to patch up:

Add an added_tokens.json which contains an empty json object: "{}"
Replace the truncated merge.txt with QWen's official one.

Very thanks, I successfully run CausalLM/7B-DPO-alpha follow your way. English and Chinese both run good.
And I compare the mergers.txt from CausalLM/7B-DPO-alpha and vonjack/Qwen-LLaMAfied-HFTok-7B-Chat. The front half of them is exactly the same. But the CausalLM/7B-DPO-alpha's mergers.txt is short, and looks like having a incomplete ending. The last line only has one character å. I deleted the line and try to run it, can't believe it work well. Seems no different with when use mergers.txt from vonjack/Qwen-LLaMAfied-HFTok-7B-Chat.
Is this due to an error in the file provided by CausalLM itself?

When I use the same way on CausalLM/72B-preview-llamafied-qwen-llamafy, it didn't have the same effect. It output broken characters, looks like the tokenizer is still having error.
So I ran the test all over again, I noticed a warning appeared when starting the convert_weight
[2024-01-06 11:57:23] WARNING utils.py:25: Unused extern parameters: model.layers.0.self_attn.k_proj.bias, model.layers.0.self_attn.o_proj.bias, model.layers.0.self_attn.q_proj.bias, model.layers.0.self_attn.v_proj.bias, model.layers.1.self_attn.k_proj.bias...

(Incomplete, the warning is very long)
Is this the reason why the model outputs broken characters? Other than that I haven't encountered any other warning messages

CausalLM is not a popular model, I'm not sure if there's something wrong with the model itself.
If manager determines that these errors are caused by the CauseLM's non-standard llama model itself, please close the issues.

authors: CharlieFRuan alphaarea junrushao

repo: mlc-ai/mlc-llm


text:
[Bug] Unsupported gpu architecture 'compute_89'

🐛 Bug
I got this error while building the model.
Compilation error:
nvcc fatal   : Unsupported gpu architecture 'compute_89'
I didn't encounter it before. After I commented https://github.com/mlc-ai/mlc-llm/pull/686 , the error was resolved.

What's your cuda version? I guess we are trying to build sm89 while your local nvcc does not support it.
We should not enable fatbin by default cc @MasterJH5574

The problem should be solved if you upgrade to CUDA 11.8. Meanwhile, we would fix it and turn off by default

Thanks @Cydia2018 for reporting! With #716 we will be good to go.

#716 gets merged. Please open an issue again if the issue persists :-)


text:
Detect SVG when XML declaration is missing

Hello,
I'm currently working on a project that relies heavily on file-format to handle images by it's media type accordingly.
I've just finished implementation for SVG support in our app and, while testing, the crate failed to detect correctly that our logo is a SVG. The main reason is that it lacks the <?xml declaration, so the code never reaches this part.
After looking in our (source) SVGs, I found that there are many cases:

some of them contains <?xml declaration;
some of them contains xmlns attribute on <svg>;

The key point of this issue that, as per this doc, <?xml is optional unless the encoding is not UTF-8 or UTF-16.
While I made a patch for our needs (and willing to finish up the PR), I wanted to open this issue to talk about other SVG versions and how it can be treated better for wider / more general use.

Hello,
Thanks for your PR!
Indeed, some XML-based formats such as SVG may not be detected. After some research, it turns out that XML 1.0 has an optional declaration whereas with XML 1.1 it is mandatory.
Ideally, I will have to deal with all XML-base formats when they do not have an XML declaration. I will comment directly on your PR for SVG.

Hi,
The patch will be available in version 0.17 later this week.

Hi,
I'm a bit late because I also wanted to resolve #21 for version 0.17.
I'm going to do a bit of code review, the release should arrive very soon!

Version 0.17.0 published including this fix!
Thanks!

authors: mmalecot petru-tazz

repo: mmalecot/file-format


text:
samsung UE40F6400 volume control

hi everyone, how do i turn on volume control. thank you

Volume is implemented but doesn't show up at the moment. It however shows up in the homebridge accessories tab for me. I still have to figure out why iOS isn't showing the speaker service.

hi, I also see it as accessories in Homebridge but not on ios. thank you

I have the theory that iOS requires some other characteristics like CurrentMediaState before it will show the volume characteristics. Unfortunately I didn't find any more documentation concerning this topic in the hombridge docs or apples homekit documentation yet.

I just figured out that I can control the volume with the iPhone hardware buttons when in control center -> remote -> tv selected on top... I still don't know how to toggle mute in the remote app however. The source for this info also says that the home app just doesn't show the tv speaker accessory like other apps do. I might add an option to add a "lightbulb" accessory or so to be able to control the volume/mute directly in the home app like other plugins do.

the native accessory of apple tv 4 has volume control ... maybe you can investigate on that side ...
Gastón

El 29 jul. 2020, a la(s) 05:20, Martin Mende notifications@github.com escribió:

I just figured out that I can control the volume with the iPhone hardware buttons when in control center -> remote -> tv selected on top... I still don't know how to toggle mute in the remote app however. The source for this info also says that the home app just doesn't show the tv speaker accessory like other apps do. I might add an option to add a "lightbulb" accessory or so to be able to control the volume/mute directly in the home app like other plugins do.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.

Maybe it will help
https://developer.apple.com/documentation/mediaplayer/mpvolumeview
Gastón

El 29 jul. 2020, a la(s) 05:32, Gastón Groel ggroel@icloud.com escribió:
the native accessory of apple tv 4 has volume control ... maybe you can investigate on that side ...
Gastón

El 29 jul. 2020, a la(s) 05:20, Martin Mende notifications@github.com escribió:

I just figured out that I can control the volume with the iPhone hardware buttons when in control center -> remote -> tv selected on top... I still don't know how to toggle mute in the remote app however. The source for this info also says that the home app just doesn't show the tv speaker accessory like other apps do. I might add an option to add a "lightbulb" accessory or so to be able to control the volume/mute directly in the home app like other plugins do.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.

in node-red Linked service "TelevisionSpeaker" e Characteristic :
{
"VolumeControlType":1,
"VolumeSelector":true
}
so I see it in the control center with output {"RemoteKey":4} UP; {"RemoteKey":5} DOWN; {"RemoteKey":7}DX; {"RemoteKey":6} SX
IF YOU CAN USE IT

now works!!!

Nice... A more fine grained volume control is not accessible in iOS yet unfortunately. However it is implemented theoretically in this plugin. I hope iOS 14 will bring volume controls for tv's.

authors: ggroel mmende simoneras


text:
Gorelease with Homebrew

Adding .goreleaser.yml setup to use Homebrew

Codecov Report

Merging #3 (b8a35cb) into main (c383555) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main       #3   +/-   ##
=======================================
  Coverage   86.11%   86.11%
=======================================
  Files           1        1
  Lines         108      108
=======================================
  Hits           93       93
  Misses          9        9
  Partials        6        6

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 c383555...b8a35cb. Read the comment docs.

authors: codecov-commenter mmiranda

repo: mmiranda/markdown-index


text:
Lecture Request: Seperate coure or module for Installing Kubernetes cluster

Your Workstation
Windows 10 Laptop, 16 GB RAM, 8 core i7 CPU
What happened?
Would like to see a course on Kubernetes installation on various scenarios from bare metal, cloud, virtualization, single master, multi master. Managing multiple cluster etc...
Relevant log output
No response

Hello
Please see the following:

https://github.com/kodekloudhub/certified-kubernetes-administrator-course/tree/master/kubeadm-clusters
https://github.com/kodekloudhub/certified-kubernetes-administrator-course/tree/master/managed-clusters/eks

For general questions not directly related to this repo, please use our forum here https://community.kodekloud.com/

repo: mmumshad/kubernetes-the-hard-way


text:
Week 3 walkthrough 4

This PR marks the completion of Step 4 of the Walkthrough for Week 3. Further commits on this branch will reflect feedback directly on this PR and feedback given on the Week 3 Step 3 PR.
*Now that Week 3 Step 3's PR has been approved, I am requesting review of this PR.

Sounds good! I'll do that & open a new pull request in reply


text:
Plot not show

Hi, I am running mne(v = 1.0) on VScode(Jupyter notebook) on macOS with M1 chip. I wanted to plot the raw data in the new qt-browser. But it only popped up the window, but no time series showed
And the error message showed ImportError("Unable to load OpenGL library", *err.args)

Hello @ts-mindyourmind, how did you install mne-qt-browser? Could you please paste the output of
import mne
mne.sys_info()

I assume you didn't install the PyOpenGL package? It's recommended on macOS.

can you try with
raw.plot(scalings="auto")
?
Alex
Message ID: @.***>

Did you install PyOpenGL?
Also your mne-qt-browser is slightly outdated, the latest version is 0.3.0; the latest MNE version is 1.0.1

yes, I have installed PyOpenGL. And i upgraded the mne and qt-browser just now. still not working.
still appreciate your help!

okay, i will switch to a new environment and try again.
Thanks again!

@ts-mindyourmind Could your problem be resolved? If so, I will close this issue.

Yes, it has been solved. Thank you!
On 12 May 2022, at 15:13, Martin Schulz @.@.>> wrote:
@ts-mindyourmindhttps://github.com/ts-mindyourmind Could your problem be resolved? If so, I will close this issue.
—
Reply to this email directly, view it on GitHubhttps://github.com/mne-tools/mne-qt-browser/issues/115#issuecomment-1125047457, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ARK5HDRYPZJR3YRURDVKG4LVJUGXZANCNFSM5THP62RA.
You are receiving this because you were mentioned.Message ID: @.***>

authors: agramfort hoechenberger marsipu ts-mindyourmind

repo: mne-tools/mne-qt-browser


text:
Update README.md branch1

Task name:
Description:
Documentation changes required: (Y/N)
Added unit tests: (Y/N)
Attached related issue: (Y/N)
Checklist:

[ ] Task version was bumped - please check instruction how to do it
[ ] Checked that applied changes work as expected

All good

repo: moadmct/azure-pipelines-tasks


text:
Subgraphs

Define components of graph

graph {
    edge 'A', 'B'
    subgraph {
        edge 'C', 'D'
        subgraph {
            edge 'X', 'Y'
        }
    }
    edge 'Y', 'Z'
}

When a vertex or edge is added it is added to parent subgraphs and main graph (may need listeners)
graphs are maps
subgraph is a graph
subgraph can have subgraphs
if vertex or edge is missing an entry it will check all parent graphs for entry and return found value
vertex or edge can be in multiple subgraphs
subgraph is always same type as main graph (share type variable)
subgraphs can be
if a named subgraph is used inside other subgraphs what is the behavior. How does grapgviz do it?

Graph {
    subgraph {
        color = 'blue'
        edge 'A', 'B'
    }
}

Edge and vertices will be blue.

In graphviz

If a default attribute is defined using a node, edge, or graph statement, or by an attribute assignment not attached to a node or edge, any object of the appropriate type defined afterwards will inherit this attribute value. This holds until the default attribute is set to a new value, from which point the new value is used. Objects defined before a default attribute is set will have an empty string value attached to the attribute once the default attribute definition is made.

repo: moaxcp/graph-dsl


text:
debug maestro-e2e-output not being present when tests fail

The artifacts stopped appearing.

Looks like it's caused by https://github.com/mobile-dev-inc/maestro/pull/2007. Sigh, GitHub Actions, the hopeless abomination.

repo: mobile-dev-inc/maestro


text:
Comments from Maxx Dekkers

Comments received from Maxx Dekkers (SEMIC Group), Email on July 21th, 2023:

Property: Visibility status
Could dct:accessRights not be used here? From the definition of this property at DCMI combined with the use of the EU vocabulary Access right it seems that that Dublin Core property would be able to serve the need.

Property: Data Model Schema
Could dct:conformsTo not be used here? The definition of DCAT includes a usage note for this property that seems to align quite well with the definition of your mobilitydcapap:dataModelSchema.
My general comment here is that if you define ‘local’ properties where you could possibly reuse existing properties, you understand that those data will not be understandable to others outside your domain. So if you share catalogue records with a more general DCAT(-AP) implementation, the access restrictions are no longer maintained. For the distributions the information provided for dataModelSchema will be lost while it could still be useful for the user.

Property: Legal Framework
In the section on Controlled Vocabularies, there is a link to https://eur-lex.europa.eu/eli-register/eu_publications_office.html as the mandatory controlled vocabulary for the property legal framework. However, that link does not point to a controlled set of terms identifying particular legal documents, but points to information on the description schema for legal documents so I think it doesn’t fit there. Maybe the only thing necessary is to add to the usage note of the property that it is recommended to use ELI to refer to legislation whenever possible. By the way, ELI is not only used for European legislation; many countries already use it for national legislation, see https://eur-lex.europa.eu/eli-register/implementation.html.

Class: Assessment
One problem I see here is that you have mappings from two different semantic definitions to the same property (oa:hasBody) – although they really only differ in the expression of the information. First of all, this approach makes it impossible for an application that receives the data to distinguish between them, unless it looks at the encoding. Secondly, there are quite some restrictions on the use of a Literal as value on oa:hasBody. So, no language tag and only plain text allowed. Otherwise you’re encouraged to use oa:TextualBody. So, you could have a single property oa:hasBody with range rdfs:Resource with the usage note that, in case you don’t have a URL to point to, textual information can be included using the Embedded Textual Body construction, which allows you to specify text formats and languages which might be relevant for multilingual purposes.

Regarding 2:
Peter Lubrich:
In fact, "dct:conformsTo" might be used "to indicate the model, schema, ontology, view or profile that this representation of a dataset conforms to".
However, we introduced multiple properties under the class Distribution, that describe the technical format:

format  dct:format
data model mobilitydcatap:dataModel
data model version mobilitydcatap:dataModelVersion
data model schema mobilitydcatap:dataModelSchema
grammar mobilitydcatap:grammar

-> Such differentiation is very specific to the transportation domain, and we want to have such clear differentiation !
-> We could now replace each of our proprietary properties above ("mobilitydcat-ap:...") with "dct:conformsTo".
-> But then we would lose our intended differentiation    !
-> On the other side, Maxx is right, any information from our proprietary properties might get lost when exchanging metadata with non-transportation portals!
Your opinions?

Regarding 3:
I
Peter Lubrich:
The question here is: Is the ELI system a controlled vocabulary or not?
Either way, we want to have it used for our property "mobilitydcatap:legalFramework".
Suggestion:

Add a hint in the usage note next to the property, linking to ELI, as suggested by Maxx.
Still list the ELI in our section "Controlled vocabularies to be used", (so it doesn't get ignored), but also mention here that this is not a real Controlled Vocab!

Regarding the "visibilty status":
The idea behind was that data describtions could be unfinished, on hold or in generak not published.
For statistics on data set this field has a hugh benefit for the NAPs.
For operating the API for data exchange this is the filter to destinguish "sendable" or not.
But it is not necessary to be in the DCAT-AP Profile if obly published data descritions are exchanged.

Regarding 2 Data format "dct:conformsTo"
The information around the data format, encoding, used schema and so on are very important for data user and data services!!
Therefore we should have this differentiation.
If we exchange meta data with other portals, it is up to the harvesting portal how they handle the more information.

Regarding 4:
I agree with Maxx' suggestion:  we will only use one single property oa:hasBody, and make an additional usage note about (optional)textual information

Regarding 1:
I responded to Maxx as follows:
_Well, when you look closely at the EU vocabulary for "Access right", it seems to controll the access to content data, whereas the meta data is exchanged in any case. In contrast, we wanted to controll the access/visibility of meta data. So, "Access right" seems not to be the right replacement for our proposed property.
However, the only options for our property are  "true" (=metadata is exchanged) or "false" (=metadata is not exchanged). The latter one is not relevant, as this metadata stays (temporarily) within the data platform. In thise sense, the "metadata visibility" is not a information to be exchanged, but more a platform-internal information. So, well will give up the "Visibility status" for now.
We may re-introduce it at a later time, as they are some use cases with "limited" or "restricted" metadata visibility (in transportation, many (meta)data is considered non-open!). This means that only selected receivers can see the metadata, or that some receivers can only see partial metadata.  We will discuss this later._

Regarding 1:
We got a response by Makx as follows:
I understand you want to look at this later. As this information is not going to be exchanged but rather used for the data platform itself, it could indeed be considered at a later stage. However, contrary to what you wrote, the CatalogRecord  gives information about the metadata, so asserting dct:accessRights on CatalogRecord will give the visibility of the metadata, not of the content. To describe the visibility of the content, you would use the property dct:accessRights on dcat:Dataset.
->Conlusion: for mobilityDCAT-AP v1.0, the proposal is to take out the "visibility status" property. We might consider this again for v2.0, when we have a clearer picture about use cases of restricted metadata visibility.

Regarding 2:
We got a response by Makx as follows:
Making these properties subproperties of dct:conformsTo indeed allows other DCAT implementations to understand what the general meaning of these properties is, so this makes sense. One additional comment is that, if we understand correctly, the dataModelVersion and dataModelSchema properties describe characteristics of the data model and not of the distribution, so it would be more correct to define those as properties of a separate entity, for example a class mobilitydcatap:DataModel, which could be a subclass of dct:Standard.
->Conlusion: I really like the proposal to introduce a new class "mobilitydcatap:DataModel".
This class will be the range of property "mobilitydcatap:dataModel" (so far, it has the generic range "skos:Concept").
This class will be a sub-class of class "dct:Standard".
This class have two optional properties:

"owl:versionInfo" (formerly proposed as proprietary property "mobilitydcatap:dataModelVersion")
"mobilitydcatap:dataModelSchema" (as sub-property of "dct:conformsTo")

Regarding 3:
We got a response by Makx as follows:
In the work on High-Value Datasets, a property dcatap:applicableLegislation (applied to the DCATAP HVD extension here) was defined that has the same meaning as your property mobilitydcatap:legalFramework. You could use the more general property from the dcatap namespace.
->Conlusion: we change the property from "mobilitydcatap:legalFramework" to "dcatap:applicableLegislation"

My conclusion for topics 1,2,3 above would also result in a modified UML diagram as follows.
For example, note the new class "mobilitydcatap:dataModel" in the upper-right corner.

I took over all proposals under "conclusions" above for point 1,2,3,4.

authors: BWitsch peterlubrich

repo: mobilityDCAT-AP/mobilityDCAT-AP


text:
🛑 PizzaRiing Web is down

In f9f6a0f, PizzaRiing Web (https://pizzariing.uy) was down:

HTTP code: 0
Response time: 0 ms

Resolved: PizzaRiing Web is back up in 06c1dbc.

repo: mobilitysol/monitorweb


text:
🛑 RequetePizza Web is down

In 6c2525d, RequetePizza Web (https://requetepizza.com) was down:

HTTP code: 0
Response time: 0 ms

Resolved: RequetePizza Web is back up in b24d2b8.


text:
[18.09 backport] bridge: disable IPv6 router advertisements

Please consider backporting this fix for CVE-2020-13401. Thanks!
Signed-off-by: Samuel Karp skarp@amazon.com
(cherry picked from commit 153d0769a1181bf591a9637fd487a541ec7db1e6)
Signed-off-by: Sam Whited sam@samwhited.com

18.09 is no longer maintained

I know, sadly we still have to use the bump_18.09 branch at work and don't have a way to migrate off of it yet.

/cc @adamparco

authors: AkihiroSuda SamWhited thaJeztah

repo: moby/libnetwork


text:
linux jumbox doesn't have Az CLI  installed

After logging on to linux jumbox using bastion, az --version failed. It should have gotten installed since the init script is setup to install it. Perhaps the init script is not working as expected.

fixed issue - replaced bash script of linux vm configuration with a cloud-init script. Linux VM needs to be deleted before redeploying the resources.

closed issue

authors: mocelj utkarshayachit

repo: mocelj/azbatch-starter-connectivity


text:
normalize suite and test titles

This has bugged me since forever.
Some suites and tests have titles like #foo or .foo and some which correspond to a function have parens (#foo()) and some don't.
let's make sure this is consistent across the tests.  I propose doing away with any leading or trailing punctuation

Elsewhere I've seen # used to distinguish instance methods from static methods and parentheses used to distinguish methods from properties or around arguments where multiple overloads on different arguments are available. If we don't have any of that stuff, just non-overloaded instance methods, then we should be good getting rid of most of that syntax.

that’s a jsdoc convention. it’ll be further confused by the private field syntax on he horizon.
imo we should be decoupling the tests from the implementation as much as possible.  The goal being that refactors won’t result in a bunch of broken tests. I’ll try to come up with an example of what that looks like.

s/he/the. sorry GH on mobile sux

authors: ScottFreeCode boneskull

repo: mochajs/mocha


text:
First unit test always slower than the others.

Prerequisites

[x] Checked that your issue isn't already filed by cross referencing issues with the common mistake label
[x] Checked next-gen ES issues and syntax problems by using the same environment and/or transpiler configuration without Mocha to ensure it isn't just a feature that actually isn't supported in the environment in question or a bug in your code.
[x] 'Smoke tested' the code to be tested by running it outside the real test suite to get a better sense of whether the problem is in the code under test, your usage of Mocha, or Mocha itself
[x] Ensured that there is no discrepancy between the locally and globally installed versions of Mocha. You can find them with:
node node_modules/.bin/mocha --version(Local) and mocha --version(Global). We recommend avoiding the use of globally installed Mocha.

Description
For some reason the first unit test of my test suit is always slower than the others. When executing the tests in my console I get something like:
 √ unit test A (483ms)
 √ unit test B
But in the code if I change the unit test B to above the unit test A, I get this:
 √ unit test B (470ms)
 √ unit test A
For some reason the first unit tests gets always slower and because of that I think, the reason of being slow in not my code, but something in Mocha. At the same time I have others tests suits that are testing other code and it works fine, so I'm confused. Maybe is not Mocha, but due to not being sure, I need to ask if you have an idea of what can be happening.
The test is something like this:
let target = require('...');

describe('Module of unit tests', function () {
  this.timeout(1000);
  before(function () {
    ...
    target = proxyquire('...', {
      'node-chartist': sinon.stub().resolves('...'),
      'ws': function(){
        return {
          'close': function(){ /*Do nothing*/ },
          'send': function(){ /*Do nothing*/ },
          'on': function(arg, callback){
            ...
          }
        };
      }
    });
  });

  //Warning happens here
  it('unit test A', function () {
    ...
    target();
    ...
  });

  //If this unit test goes above unit test A, this will be the one to get the warning.
  it('unit test B', function () {
    ...
    target();
    ...
  });
})

Steps to Reproduce
I tried to reproduce in other projects without success, so I doubt you will be able to do it, but what I'm doing is:

Execute tests suit with unit test A above.
Execute tests suit with unit test B above.

Expected behavior: [What you expect to happen]
Don't get any warning about the time in both cases.
Actual behavior: [What actually happens]
The first unit test gets always a warning about the time.
Reproduces how often: [What percentage of the time does it reproduce?]
Around 90% of the times.
Versions
node v6.11.4
npm 3.10.10
mocha 4.0.1
sinon 4.1.2
chai 3.5.0
proxyquire 1.8.0
Additional Information
I used fiddler to make sure that while executing the unit tests, none network request was being made for the outside, to make sure that the delay is not caused by any network request.
I also debugged the code that the unit test is testing and I really don't see any reason for the delay in any case.

One thing worth trying is copying everything that's common to the two tests, except for any assertions, into a before hook to see if simply running the same sort of stuff in another place makes the first place it runs of any sort slower, rather than the first test specifically.
It's possible that the code, even if it's not necessarily slow in general, is initializing something the first time that then gets saved in some way (e.g. Node's require cache, or filesystem-level caches of data from the disk, or a reuse optimization built into some library code), or that the JavaScript engine looks for optimizations in the code after it runs once, or something like that. You could also put it outside the testsuite altogether, although that's less likely to work -- for a few types of caches, that would have more chance of the cache running out somewhere in between loading the test files and actually running this particular file's tests (on the other hand, if a before hook worked and outside the testsuite didn't, that might narrow down what sort of caching or optimization is responsible...).
(And on a completely different note, more workaround than solution -- for anyone who just wants to suppress the time warning, there's the slow option to go with the timeout option.)

Hi ScottFreeCode,
Thanks for the response, it was very usefull. The problem was happening because I am making some stubs with proxyquire and by default the npm modules are loaded even when stubbed. In my case I have a module called node-chartist that was being loaded during the first unit test and that is why it was slower than the others.
To solve this problem I had to use the method noCallThru() of proxyquire which make proxyquire don't load any original dependencies.
Thanks for the help.
Kind regards,
Daniel Serrão

Glad I could help you get that figured out! Let us know if there's anything else you need.

authors: ScottFreeCode danielserrao


text:
Unable to update mocha to 8.3.1: fsevents@patch - Cannot apply hunk #1

Prerequisites

[x] Checked that your issue hasn't already been filed by cross-referencing issues with the faq label
[x] Checked next-gen ES issues and syntax problems by using the same environment and/or transpiler configuration without Mocha to ensure it isn't just a feature that actually isn't supported in the environment in question or a bug in your code.
[x] 'Smoke tested' the code to be tested by running it outside the real test suite to get a better sense of whether the problem is in the code under test, your usage of Mocha, or Mocha itself
[x] Ensured that there is no discrepancy between the locally and globally installed versions of Mocha. You can find them with: node node_modules/.bin/mocha --version(Local) and mocha --version(Global). We recommend that you not install Mocha globally.

Description
I'm trying to update mocha from version 8.2.1 to 8.3.1. Mocha is installed as dev dependency.
Steps to Reproduce
Set version 8.3.1 in package.json and run yarn or use upgrade-interactive or use yarn add mocha --dev.
Expected behavior:
Mocha 8.3.1 should be installed.
Actual behavior: [What actually happens]
Error occurred:
➤ YN0066: │ fsevents@patch:fsevents@npm%3A2.3.2#builtin<compat/fsevents>::version=2.3.2&hash=127e8e: Cannot apply hunk #1 (set enableInlineHunks for details)

Versions

The output of mocha --version and node node_modules/.bin/mocha --version: 8.2.1
The output of node --version:  12.18.3
Your operating system

name and version: Windows 10
architecture (32 or 64-bit): 64-bit

Your shell (e.g., bash, zsh, PowerShell, cmd): Powershell
Your browser and version (if running browser tests): -
Any third-party Mocha-related modules (and their versions): yarn 2.3.3.
Any code transpiler (e.g., TypeScript, CoffeeScript, Babel) being used (and its version): -

I searched for this error and found many issues from 2020, but all of them were resolved somehow. So not sure why it occurred for me especially on Windows.

@juergba you might be right about optional. It looks like the chain is: mocha requires chokidar and chokidar requires fsevents, but optionally.
I have no idea why yarn 2 tries to install optional dependency and flag --ignore-optional does not work as per this issue.
I'll raise another issue for yarn team.
Thanks.

Update: it was a yarn issue. It looks like issue was fixed in yarn 2.4.1. We updated yarn to 2.4.0 - issue was in place, but after ipdating yarn to 2.4.1 everything is fine.
Hope this will help someone.


text:
Coverage for node tests

This PR does the following:

Add nyc, istanbul-combine and coveralls as dependencies
Adds an environment switch in the Makefile on COVERAGE=true, where coverage gathered from the test-node target and sub-targets
Adds an npm coverage script that runs make test with COVERAGE=true for local coverage collection
Adds coverage collection on travis for node 7
Posts coverage report to coveralls

closes #2620 #2351
Thanks to @c089 for getting the basic setup in the Makefile working

Changes Unknown when pulling 820d61639a95e808d58ea73f0860f7e139b2b7da on Munter:coverage-report into ** on mochajs:master**.

authors: Munter coveralls


text:
How do we mock flow/shared flow?

Description
Hello,
I'd like to test that myDependency2.someFun() is called when receiving a value from myDependency1.myFlow which is a Flow<Unit>.
class MyClass(
	private val coroutineScope: CoroutineScope,
	private val myDependency1: MyDependency1,
	private val myDependency2: MyDependency2,
) : MyClassInterface, CoroutineScope by coroutineScope {

	init {
		launch(coroutineContext) {
			myDependency1.myFlow.collect {
				myDependency2.someFun()
			}
		}
	}
}

Attempt
@Mock
private val myDependency1 = mock(MyDependency1::class)

@Mock
private val myDependency2 = mock(MyDependency2::class)

private val myFlow = MutableSharedFlow<Unit>()

...

"my test" {
    given(myDependency1).getter(myDependency1::myFlow)
				.whenInvoked()
				.thenReturn(myFlow)
    val myClass = MyClass(this, myDependency1, myDependency2)

    myFlow.emit(Unit)

    verify(myDependency2).function(myDependency2::someFun)
				.wasInvoked(exactly = 1.time)
}

Result (error)
A mock of type MyDependency2 was not invoked the expected number of times.

    Expected 1 invocations of someFun()
    Actual: 0

        No invocation on the mock were recorded.

Turns out this was not an issue about Mockative.
Closing this issue.

repo: mockative/mockative


text:
Wrong experiment annotation for Modelica.Mechanics.Translational.Examples.Accelerate

Reported by beutlich on 2 May 2012 11:28 UTC
Model Modelica.Mechanics.Translational.Examples.Accelerate has experiment keyword for Diagram annotation by mistake. See attached diff file for a simple fix.

Migrated-From: https://trac.modelica.org/Modelica/ticket/734

Comment by dietmarw on 2 May 2012 11:37 UTC
Thanks, it is already fixed in trunk in 8ae903717121f7689a300c0c9d66e2eee3820845.

Comment by beutlich on 2 May 2012 11:47 UTC
Fix should also be also included to /maintenance/3.2 branch.

Comment by dietmarw on 2 May 2012 11:58 UTC
Good point! Fix applied in 2aa9f4f0743210f1cc8e136b3ec95e03db13a1d5 for maintenance/3.2

repo: modelica/Modelica


text:
Using modelmapper 2.3.8 with java.lang.ClassNotFoundException

I am running with org.modelmapper:modelmapper:2.3.8 from Maven Central at https://search.maven.org/search?q=g:org.modelmapper
When I attempt to run the ModelMapper inside an assembler (see below),
`public class AccountAssembler implements DtoEntityAssembler<AccountEntity, AccountDto> {
private static final AddressAssembler addressAssembler = new AddressAssembler();
private static final PhoneAssembler phoneAssembler = new PhoneAssembler();
public AccountEntity toEntity(AccountDto account) {
ModelMapper mapper = new ModelMapper();
mapper.createTypeMap(AccountDto.class, AccountEntity.class)
.addMapping(AccountDto::getAccountId, AccountEntity::setAccountId)  // Integer
.addMapping(AccountDto::getAddress, AccountEntity::setAddress)
.addMapping(AccountDto::getBookerAccountKey, AccountEntity::setBookerAccountKey) // String
.addMapping(AccountDto::getEmail, AccountEntity::setEmail) // String
.addMapping(AccountDto::getKey, AccountEntity::setKey) // String
.addMapping(AccountDto::getMap, AccountEntity::setMap) // String
.addMapping(AccountDto::getName, AccountEntity::setName) // String
.addMapping(AccountDto::getWebsite, AccountEntity::setWebsite); // String
return mapper.map(account, AccountEntity.class);
}
public AccountDto toDto(AccountEntity account) {
ModelMapper mapper = new ModelMapper();
mapper.createTypeMap(AccountEntity.class, AccountDto.class)
.addMapping(AccountEntity::getAccountId, AccountDto::setAccountId)
.addMapping(AccountEntity::getAddress, (dest, v) -> dest.setAddress(addressAssembler.toDto((AddressEntity) v)))
.addMapping(AccountEntity::getBookerAccountKey, AccountDto::setBookerAccountKey)
.addMapping(AccountEntity::getEmail, AccountDto::setEmail)
.addMapping(AccountEntity::getKey, AccountDto::setKey)
.addMapping(AccountEntity::getMap, AccountDto::setMap)
.addMapping(AccountEntity::getName, AccountDto::setName)
.addMapping(AccountEntity::getWebsite, AccountDto::setWebsite);
return mapper.map(account, AccountDto.class);
}
}`
I get the following root cause in my stack trace:
Caused by: java.lang.ClassNotFoundException: sun.reflect.ReflectionFactory not found by modelmapper [18]
I am using the Apache Felix framework. From my research, I understand that the sunb.reflect is not publicly available. I don't know how to work around this currently. Are there any ideas?
I am currently running Java 8 and want to upgrade to the most recent Java version at a future time. I will remain running within a Java framework like Felix or similar.
Any ideas how to get around this would be greatly appreciated.

I think this issue is related to this one: https://github.com/modelmapper/modelmapper/issues/426

Can you check if latest modelmapper can reproduce this issue? Thanks!

I am not the thread owner. Nevertheless I cannot reproduce the issue in the latest release (2.4.0). I was able to completly remove the jdk.unsupported attribute.
Thank you!

Thanks for the feedback! I will close the issue. Please feel free to reopen this issue or create a new one if this issue was still reproducible.

repo: modelmapper/modelmapper