text:
does  lets-plot support embeded in java and scala

lets-plot is very powerful, but I write scala code almost ,so I wanna know does lets-plot is support  kotlin/scala mixed code project

Hi, since both Kotlin and Scala run on the JVM and have good interoperability, you can, technically,  use it in mixed projects.
However, some of Kotlin's DSL-style syntax will be lost in scale (like the "+" operator).
So a simple plot in Kotlin:
letsPlot(data) + geomPoint {
    x = "hwy"
    y = "cty"
    color = "make"
}

Becomes more verbose in Scala:
letsPlot(data).plus(new geomPoint(
  mapping = { mapping =>  // In Kotlin this would be a function with receiver: PointMapping.() -> Unit.
        // Not even sure Scala will pickup the receiver type form Kotlin's functional type with receiver.
    mapping.x = "hwy"
    mapping.y = "cty"
    mapping.color = "make"
  }
))

Hi, since both Kotlin and Scala run on the JVM and have good interoperability, you can, technically, use it in mixed projects.
However, some of Kotlin's DSL-style syntax will be lost in scale (like the "+" operator). So a simple plot in Kotlin:
letsPlot(data) + geomPoint {
    x = "hwy"
    y = "cty"
    color = "make"
}

Becomes more verbose in Scala:
letsPlot(data).plus(new geomPoint(
  mapping = { mapping =>  // In Kotlin this would be a function with receiver: PointMapping.() -> Unit.
        // Not even sure Scala will pickup the receiver type form Kotlin's functional type with receiver.
    mapping.x = "hwy"
    mapping.y = "cty"
    mapping.color = "make"
  }
))

thanks ,if I use lets-plot in scala-sbt project, could you tell me  which lets-plot module package dependencies should use ,because to many module

You will need to add lets-plot-kotlin-jvm and lets-plot-batik dependencies as shown here: https://github.com/JetBrains/lets-plot-kotlin/blob/master/USAGE_BATIK_JFX_JS.md#jvm-swing-batik .
To get started, it might be a good idea to check out the lets-plot-mini-apps and try running a simple app here: https://github.com/alshan/lets-plot-mini-apps/blob/main/jvm-swing-batik-app/build.gradle.kts .

You will need to add lets-plot-kotlin-jvm and lets-plot-batik dependencies as shown here: https://github.com/JetBrains/lets-plot-kotlin/blob/master/USAGE_BATIK_JFX_JS.md#jvm-swing-batik .
To get started, it might be a good idea to check out the lets-plot-mini-apps and try running a simple app here: https://github.com/alshan/lets-plot-mini-apps/blob/main/jvm-swing-batik-app/build.gradle.kts .

Ok ,Very thanks, I will try it

authors: alshan mullerhai

repo: JetBrains/lets-plot


text:
Add Kurukshetra University, Kurukshetra

University Website - https://kuk.ac.in/
Engineering Department Website - https://www.uietkuk.ac.in/
Info - Student email exists with the University domain, not from the department.
University Offers -

Bachelors of Technology in Computer Science  - 4 yr
Master of Technology in Computer Science - 2 yr
Bachelors of Science (Major Computer Science) - 3 yr
Masters of Science (Major Computer Science) - 2 yr
Bachelor of Computer Application - 3 yr (Deptt. DCSA)
Masters of Computer Application - 3 yr  (Deptt. DCSA)
PhD in Computer Science Related Fields

and many courses can be found on the website

@merrcury Pull request merged. Thank you!

source: gharchive/pull-request

authors: merrcury philipto

repo: JetBrains/swot

license: MIT

license_type: permissive

license_source: github-api


text:
Add files via upload

Adding qualifizierung.at for BBRZ Austria

@DerHerrMike Pull request merged. Thank you!

authors: DerHerrMike philipto


text:
Add Duy Tan University

Add domain for Duy Tan University: https://duytan.edu.vn/

@huuthang6 I am sorry, the domain dtu.edu.vn is removed from our trusted domains list because it was abused in the past. If you are the student of this school, please enroll to GitHub Student Developer Program. Then apply for JetBrains educational subscription with your GitHub account (GitHub tab at https://www.jetbrains.com/shop/eform/students).


text:
Create liberty.txt

Liberty University

@rsawan I am sorry, the domain liberty.edu is removed from our trusted domains list because it was abused in the past. If you are the student of this school, please enroll to GitHub Student Developer Program. Then apply for JetBrains educational subscription with your GitHub account (GitHub tab at https://www.jetbrains.com/shop/eform/students).

authors: philipto rsawan


text:
Create marun.txt

Added Marmara University

@ltaylanl I have to close this request without merging, because you requested to add a non-existent domain to this repository: Host marun.Marmara.tr not found: 2(SERVFAIL) Please ensure that you are familiar with this repository rules located at the bottom of this page and submit a new request with the correct information. Thank you for your understanding!

authors: ltaylanl philipto


text:
Add Turing Institute to list of valid domains

ATI homepage
Enrichment year-long placement for students
Evidence of valid email domain

@tomogwen I am sorry, this domain seems to represent a purely research institution, not a specific single university or a college. If the students from founding universities of The Alan Turing Institute need free licenses, they can get them with request referring to their student status of their alma mater.
Research institutes can purchase the regular licenses for JetBrains tools. If you wish, please feel free to request a 50% academic discount by email to sales@jetbrains.com. Thank you!
I have to close this request without merging.
Thank you for your understanding!

authors: philipto tomogwen


text:
Add Andela

Andela is a Four years Technical Leadership program to help raise Tech Leaders in Africa. They currently operate campuses in Lagos, Nigeria and Nairobi, Kenya.

@andela-sakande I am sorry, but andela.com looks like a recruting company, not a university or a college. Please give us a link to an official four-years educational program offered by your organization, and it will take some more time to decide if the organization qualifies JetBrains Student Program requirements. Thank you.

https://andela.com/apply

@andela-sakande Thank you for the clarification! Pull request merged.

authors: andela-sakande philipto


text:
Make the mod configurable.

Making the mod configurable is nice. People will like other additions more than others.
Ability to enable/disable each feature.
Eg:
-locking access to ancient city behind the ender dragon
-change ore distributions easily
-change Minecart rail top speeds
-ability to ice-boat
-etc...
This mod has some great additions, the last thing to do is to give us some choice on how many of them we want to add!

I just saw that, theres game-rules.
Does anyone know what the gamerule is for locking the ancient city behind dragon killing?

source: gharchive/issue


text:
Add "try all" button to the failing screen

This should help users recover if they can no
longer access the current selected server.

(CI is failing due to lack of translation for new strings.  Please review; then we'll get translations and confirm CI passes before merging.)

repo: Jigsaw-Code/Intra

license_source: bigquery


text:
AzureBlobCache plugin use redirect instead to rewrite

Hi, just installed AzureBlobCache plugin. It work well, but with one remark.
When I access images, I all time redirected to CDN url. That mean if my image already in cache, server will redirect me to Azure CDN url.
This is extra round trip, and also issue with SEO for images.
Is it possible to not use redirect, but make call for image to azure blob via API, get image stream, and then copy it to output stream of response?
In this case we will have clean SEO for images, and without extra redirect.
What was an idea to use redirect?
Thanks,

Hi there,
Could you clarify in what way this would be a SEO issue?
If I were to request the urls directly from the CDN Google would treat that in the same way as my 302 redirect from the request url. (I use 302 because if the source file is updated with the same name, the request url could be the same but the CDN url would be different.)
There's no extra round trip; the url is intercepted and redirected. I have to use a url hosted within the currently running application for all image requests because there is no way to intercept an outgoing request to another domain.

Hi,
I agree that 302 redirect will work from SEO point.
But, if you have on a page i.e. 100 images => browser will be redirected 100 times. I also understand that if we will user real pull CDN it is not an a problem, but if we not use CDN at all. Or if your container should be private?
It also difficult to tell  how it (redirects) will influence on overall performance of website.
Why you not use API or webrequest to get cache stream from server and write it to response?
Will code bellow make sence?
    public void RewritePath(HttpContext context)
    {
        HttpWebRequest httpWebRequest = (HttpWebRequest)WebRequest.Create(this.cachedRewritePath);
        httpWebRequest.Method = "HEAD";

        using (HttpWebResponse httpWebResponse = (HttpWebResponse)httpWebRequest.GetResponse())
        {
            //get image stream from cloud
            Stream ourStram = httpWebResponse.GetResponseStream();

            ourStram.CopyTo(context.Response.OutputStream);
        }
    }

Interesting... Would you have the opportunity to fork and test this?
I'm incredibly busy just now so you would most probably be faster than me.

Sure, this weekend I will try to play with it.
Will keep you informed.

Brilliant! Thanks for your input :smile:

Hi,
This code example are working well. At least I was able to see my image in browser without redirect.
You can see my fork (https://github.com/abadyl/ImageProcessor).

Just my 2 cents from a lurker - to me, this seems like it's going to add extra overhead and possible lag - it seems to me that you're effectively copying the contents of a file from one server (the cache) to another (your server) and then shuffling them to the client - wouldn't it be more efficient for the client to be told to pull the contents directly from the caching server?

Yes, overhead will be in compare to redirect.
But,

If you use CDN, then this is not issue at all (the same for redirect)
In my example it is more easy configure caching policy (expiration time on CDN). So you have more control over it. If you use Redirect, you will  need update caching settings of each blob after it need to be changed.
When you use default disk cache, it is also transfer (copy) from file stream to network stream.
What, if your container will be private. Then you just can use API to get stream instead of GET request.

To summarize,
Both variants will work. Both have pros and cons.
In our project point 2 is very important, this is why I am looking for alternative solution.
It is also option to have 2 plugins, one with redirect and one with stream copy (like proxy).

Please note that replacing the 302 with the stream will switch the burden of downloading the image from the client to the server. I don't think it's a great idea. The original question si basically "why are you using the power of a cdn to its full potential ?".

Yes, this is clear. And with CDN enabled it will be done only first time. All other requests for the same image will be loaded from CDN.
I.E.
You can use redirect when you don't have CDN enabled
or You can use stream copy when you have CDN enabled and need more control over blobs  (for more easy cache control/expiration management, security management)
P.S. I also not fully sure that most popular search engines treat 302 redirect correctly (as 302, but not as 301).
Goal of created issue not to replace redirect, but have alternative variant for serving cached images.
If speak about real example, in blobs we already have more than 12000 images. When CDN will be enabled we need to be sure that cache control set up correctly. So, we don't want to go through all images, we want to control it in one place. As result variant with redirect not work well for us.

I'm sorry, I'm not an expert on CDN or SOE (I've more worked on Windows apps lately), but I thought the following:

the interest of a CDN are:

to minimize the bandwidth on your servers, and instead host static content on other servers
to provide users with a very-wide-bandwidth server to download their contents (the CDN being optimized for BW)
to allow the client to cache locally their image, in case they happen to load the same file from a different website, like the Jquery files from Google's CDN (obviously not very relevant here)

the main search engines (Google, Yahoo, Bing) are perfectly capable of handling properly any kind of redirect, and in fact probably treat redirects differently than one would assume
the SEO impact of an image is pretty low, or even nil, because it's more the alt and surrounding text that are used to describe it (I'm not very sure about that, correct me if I'm wrong)

All in all, I have trouble understanding the point, and the benefits, of such a feature. Obviously, if it's an option, there is no real harm (except to the project's complexity), but I'm not sure of the interest.

@abadyl you have finished your work on your fork ? Have you made a pull request ? It seems you're not the only one interested in this feature (see #178)
PS: I have since understood the interest of this feature, since @gnpretorius has explained it to me :smile: (basically, I thought it worked inversely of what it does).

Hi,
It is now only in my fork. I did't create pull request because I wasn't sure (based on comments above) if it is nice feature to be integrated to imageprocessor.
So, will send pull request this week,
Best regards.
Alexey

Thanks!
I really didn't understand the point of your modifications, until the explanation at #178 .
I'd like @gnpretorius to check out your PR and see if it solves his problem.

Hi @abadyl
The code here looks good. Should we make this configurable? Some people might want to keep the redirect behaviour?
@cosmo0, let me know your thoughts?
G

I'm sure setting this as an option would be awesome, if it solves both your problems :smile:

:+1: on optional. Add it to the cache settings. Btw loving the interest and collaboration!

Added in version 1.0.4
I've added the extra configuration to the docs to show how to switch to the new behaviour.
http://imageprocessor.org/imageprocessor-web/plugins/azure-blob-cache/#config
Thanks one and all for your persistence and contribution. It is is very much appreciated :+1:

I was not sure if i should ask here or Stack Overflow but i posted a question about this on Stack Overflow and well nobody has answered so i thought i might ask here :)
http://stackoverflow.com/questions/35550998/optimal-settings-for-serving-images-with-imageprocessor-azureblobcache
Maybe someone else need more clarification!
Thanks for a great framework!

I feel like there is no good solution for now. The main problem is the SEO issue mentionned by the original poster @abadyl. Who says SEO says "the only solution is to maintain a list of UserAgent string". Because the rest of the ImageProcessor/AzureBlobStorage stream is optimal and should not be modified.

authors: JimBobSquarePants abadyl cosmo0 gnpretorius leye0 olaj robertjf

repo: JimBobSquarePants/ImageProcessor


text:
Add Replicate demo and API

Hey @Jingkang50! 👋
This pull request adds another demo to your model, which runs inside a Docker environment using an open source tool called Cog to make this process easier. View it here: https://replicate.com/cjwbw/openpsg
Replicate also have an API, so people can easily run your model from their code:
import replicate
model = replicate.models.get("cjwbw/openpsg")
model.predict(image="...")

If you'd like to modify the Replicate page (e.g. Example Gallery), let me know and I can transfer ownership to your account.
In case you're wondering who I am, I'm from Replicate, where we're trying to make machine learning reproducible. We got frustrated that we couldn't run all the really interesting ML work being done. So, we're going round implementing models we like. 😊

LGTM

Thank you sooo much @chenxwh for helping to build the cool demo! Your work and your organization Replicate sounds super cool! Let us review your PR then!

@c-liangyu Ideally the first output.png shall be replaced with a GIF that you are currently developing. How about finish it first and kindly ask @chenxwh to revise a little bit? Thanks!

Hi @Jingkang50,
Thanks for the interest in our work! This PR is more like a demonstration how models can be hosted on Replicate, authors are more than welcome to take the ownership of the page and modify the demo however they like :) I can transfer the page to your account on Replicate If you like, then with cog installed you can update any further changes to the demo anytime. Let me know!

Thank you @chenxwh for your contribution! Really appreciate it!

authors: Jingkang50 c-liangyu chenxwh


text:
govern vs can / cannot

Hi,
What is the difference between the properties on the perimeter class 'govern' and 'can'. You seem to use them interchangeably in different documentation.
Example 'can'
createPerimeter({
  purpose: 'article',

  can: {
    read: () => true

    // only admin or moderator can update articles
    update(article) {
      return this.isAdmin() || (this.isCreator(article) && this.isModerator());
    },

    // if user can update articles then she can also destroy them
    destroy(article) {
      return this.isAllowed('update', article);
    }
  },

Example 'govern'
export default new BasePerimeter({
  purpose: 'bye',
  govern: {
    'can route': () => true,
    'can viewParagraph': function () {
      return this.isAdmin();
    },
  },
});

Thanks,

Hey @richardwhatever,
they both are basically the same. Initially there was only govern object , but I found it little bit harder to write/read, so I added can.
Pick whatever you like more. I personally prefer can

authors: JiriChara richardwhatever

repo: JiriChara/vue-kindergarten

license: mit


text:
Python Versioning

Implements Equality and Ordering Operations for Python Pep-440 Versions as described in the image below:

Intergrates very nicely with @Kiwifuit's #18 Where His version requirement code can be supplemented by my system

@Allstreamer in lines 133 and 134, where are Derivative and derivative respectively?
Here's a link to the lines in question

Can you elaborate on what you mean by where

Ah misread the question at first

My IDE cannot resolve lines 133 and 134 in your code for some reason

Check main.rs & Cargo.toml. There their usage is denfined

You forgot to include all changes In your branch

authors: Allstreamer Kiwifuit


text:
[BUG]interval这个配置参数我按照格式配置了，如：interval = 2023-08-01|2023-09-01 可是还是下载全部的，这参数到底应该怎么配置呢

描述出现的错误
遇到bug先在issues中搜索，没有得到解决方案再提交。
对出现bug的地方做清晰而简洁的描述。
bug复现
复现这次行为的步骤：
1.首先更改了什么什么
2.点击了什么什么
3.“……”
截图
如果适用，添加屏幕截图以帮助解释您的问题。
桌面（请填写以下信息）：
-操作系统：[例如windows10 64bit]
-vpn代理：[例如开启、关闭]
-项目版本：[如1.4.2.2]
-py版本：[如3.11.1]
-依赖库的版本：[出错的库版本号]
附文
在此处添加有关此问题的其他备注。

实测没问题，你修改完配置文件后保存了吗

从新下载新版本，删除旧版本，问题解决

repo: Johnserf-Seed/TikTokDownload


text:
Explore UI update

🗃 Github Issue Or Explanation for this PR. (What is it supposed to do and Why is needed)
#763
✅ Checklist

[x] Github issue details are up to date for people to QA.
[x] I have tested all my changes.

🕵♂ Notes for Code Reviewer
UI fixes.
get seeds and Hypha DHO cards need more complex work.
🙈 Screenshots
👯♀ Paired with
"nobody"

screen shots pls?

authors: RaulUrtecho gguijarro-c-chwy


text:
🛑 Pterodactyl panel is down

In 890b4c4, Pterodactyl panel ($PTERO_PANEL_URL) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Pterodactyl panel is back up in dbe036a after 20 minutes.

repo: JonnyIslandNetwork/status-page


text:
vetter squilt not installing

yp ERR! find Python
gyp ERR! find Python Python is not set from command line or npm configuration
gyp ERR! find Python Python is not set from environment variable PYTHON
gyp ERR! find Python checking if "python" can be used
gyp ERR! find Python - "python" is not in PATH or produced an error
gyp ERR! find Python checking if "python2" can be used
gyp ERR! find Python - "python2" is not in PATH or produced an error
gyp ERR! find Python checking if "python3" can be used
gyp ERR! find Python - "python3" is not in PATH or produced an error
gyp ERR! find Python checking if the py launcher can be used to find Python 2
gyp ERR! find Python - "py.exe" is not in PATH or produced an error
gyp ERR! find Python checking if Python is C:\Python27\python.exe
gyp ERR! find Python - "C:\Python27\python.exe" could not be run
gyp ERR! find Python checking if Python is C:\Python37\python.exe
gyp ERR! find Python - "C:\Python37\python.exe" could not be run
gyp ERR! find Python
gyp ERR! find Python **********************************************************
gyp ERR! find Python You need to install the latest version of Python.
gyp ERR! find Python Node-gyp should be able to find and use Python. If not,
gyp ERR! find Python you can try one of the following options:
gyp ERR! find Python - Use the switch --python="C:\Path\To\python.exe"
gyp ERR! find Python   (accepted by both node-gyp and npm)
gyp ERR! find Python - Set the environment variable PYTHON
gyp ERR! find Python - Set the npm configuration variable python:
gyp ERR! find Python   npm config set python "C:\Path\To\python.exe"
gyp ERR! find Python For more information consult the documentation at:
gyp ERR! find Python https://github.com/nodejs/node-gyp#installation
gyp ERR! find Python **********************************************************
gyp ERR! find Python
gyp ERR! configure error
gyp ERR! stack Error: Could not find any Python installation to use
gyp ERR! stack     at PythonFinder.fail (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-python.js:307:47)
gyp ERR! stack     at PythonFinder.runChecks (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-python.js:136:21)
gyp ERR! stack     at PythonFinder. (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-python.js:225:16)
gyp ERR! stack     at PythonFinder.execFileCallback (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-python.js:271:16)
gyp ERR! stack     at exithandler (child_process.js:315:5)
gyp ERR! stack     at ChildProcess.errorhandler (child_process.js:327:5)
gyp ERR! stack     at ChildProcess.emit (events.js:314:20)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:274:12)
gyp ERR! stack     at onErrorNT (internal/child_process.js:468:16)
gyp ERR! stack     at processTicksAndRejections (internal/process/task_queues.js:80:21)
gyp ERR! System Windows_NT 10.0.19041
gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "rebuild" "--release"
gyp ERR! cwd C:\Users\hmeme\Desktop\CalypsoBot-develop\node_modules\better-sqlite3
gyp ERR! node -v v14.8.0
gyp ERR! node-gyp -v v5.1.0
gyp ERR! not ok
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! better-sqlite3@7.1.1 build-release: node-gyp rebuild --release
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the better-sqlite3@7.1.1 build-release script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\hmeme\AppData\Roaming\npm-cache_logs\2020-11-17T19_52_29_704Z-debug.log
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.1.3 (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! better-sqlite3@7.1.1 install: prebuild-install || npm run build-release
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the better-sqlite3@7.1.1 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above

please help

The error message contains instructions how to fix it. Did you do that?

Closing due to inactivity

authors: JoshuaWise Prinzhorn it456-gif


text:
Incorrect peer dependencies

Hi @JoviDeCroock, thank you for creating this amazing tool. I'm using it with Snowpack fine without @prefresh/babel-plugin, looks like it shouldn't be a peer dependency? Am I correct?

Correct, it did before but we pulled that into the package itself.

Thank you, I'll make a PR then.

repo: JoviDeCroock/prefresh


text:
XML To Java

Xml to java is not working

This is fixed, thanks for letting me know

test comment


text:
For a 0.2.5 release

#31

Codecov Report

Merging #32 (d908f77) into master (c7c065b) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master      #32   +/-   ##
=======================================
  Coverage   86.88%   86.88%
=======================================
  Files           1        1
  Lines         122      122
=======================================
  Hits          106      106
  Misses         16       16

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

authors: ablaom codecov-commenter


text:
Package erroring on precomplie

(@v1.6) pkg> st
Status `~/.julia/environments/v1.6/Project.toml`
  [b13ce0c6] LibSndFile v2.4.0

julia> versioninfo()
Julia Version 1.6.0-DEV.1324
Commit ae789ca1df* (2020-10-24 01:55 UTC)
Platform Info:
  OS: macOS (x86_64-apple-darwin18.7.0)
  CPU: Intel(R) Core(TM) i5-4258U CPU @ 2.40GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-11.0.0 (ORCJIT, haswell)
Environment:
  JULIA_EDITOR = code
  JULIA_NUM_THREADS =

The package crashes when precompiled even in an empty environment.
julia> using LibSndFile
[ Info: Precompiling LibSndFile [b13ce0c6-77b0-50c6-a2db-140568b8d1a5]
ERROR: LoadError: LoadError: UndefVarError: record_compiletime_preference not defined
Stacktrace:
  [1] getproperty
    @ ./Base.jl:26 [inlined]
  [2] load_preference(uuid::Base.UUID, key::String, default::String)
    @ Preferences ~/.julia/packages/Preferences/SHSJJ/src/Preferences.jl:31
  [3] macro expansion
    @ ~/.julia/packages/Preferences/SHSJJ/src/Preferences.jl:58 [inlined]
  [4] get_provider()
    @ FFTW ~/.julia/packages/FFTW/kKdEk/src/providers.jl:10
  [5] top-level scope
    @ ~/.julia/packages/FFTW/kKdEk/src/providers.jl:21
  [6] include(mod::Module, _path::String)
    @ Base ./Base.jl:389
  [7] include(x::String)
    @ FFTW ~/.julia/packages/FFTW/kKdEk/src/FFTW.jl:1
  [8] top-level scope
    @ ~/.julia/packages/FFTW/kKdEk/src/FFTW.jl:17
  [9] include
    @ ./Base.jl:389 [inlined]
 [10] include_package_for_output(pkg::Base.PkgId, input::String, depot_path::Vector{String}, dl_load_path::Vector{String}, load_path::Vector{String}, concrete_deps::Vector{Pair{Base.PkgId, UInt64}}, source::String)
    @ Base ./loading.jl:1225
 [11] top-level scope
    @ none:1
 [12] eval
    @ ./boot.jl:360 [inlined]
 [13] eval(x::Expr)
    @ Base.MainInclude ./client.jl:446
 [14] top-level scope
    @ none:1
in expression starting at /Users/aviks/.julia/packages/FFTW/kKdEk/src/providers.jl:21
in expression starting at /Users/aviks/.julia/packages/FFTW/kKdEk/src/FFTW.jl:1
ERROR: LoadError: Failed to precompile FFTW [7a1cc6ca-52ef-59f5-83cd-3a7055c09341] to /Users/aviks/.julia/compiled/v1.6/FFTW/PvIn2_ICs2c.ji.
Stacktrace:
  [1] error(s::String)
    @ Base ./error.jl:33
  [2] compilecache(pkg::Base.PkgId, path::String, internal_stderr::Base.TTY, internal_stdout::Base.TTY)
    @ Base ./loading.jl:1360
  [3] compilecache(pkg::Base.PkgId, path::String)
    @ Base ./loading.jl:1313
  [4] _require(pkg::Base.PkgId)
    @ Base ./loading.jl:1033
  [5] require(uuidkey::Base.PkgId)
    @ Base ./loading.jl:926
  [6] require(into::Module, mod::Symbol)
    @ Base ./loading.jl:913
  [7] include
    @ ./Base.jl:389 [inlined]
  [8] include_package_for_output(pkg::Base.PkgId, input::String, depot_path::Vector{String}, dl_load_path::Vector{String}, load_path::Vector{String}, concrete_deps::Vector{Pair{Base.PkgId, UInt64}}, source::String)
    @ Base ./loading.jl:1225
  [9] top-level scope
    @ none:1
 [10] eval
    @ ./boot.jl:360 [inlined]
 [11] eval(x::Expr)
    @ Base.MainInclude ./client.jl:446
 [12] top-level scope
    @ none:1
in expression starting at /Users/aviks/.julia/packages/DSP/q9iEF/src/DSP.jl:1
ERROR: LoadError: Failed to precompile DSP [717857b8-e6f2-59f4-9121-6e50c889abd2] to /Users/aviks/.julia/compiled/v1.6/DSP/OtML7_ICs2c.ji.
Stacktrace:
  [1] error(s::String)
    @ Base ./error.jl:33
  [2] compilecache(pkg::Base.PkgId, path::String, internal_stderr::Base.TTY, internal_stdout::Base.TTY)
    @ Base ./loading.jl:1360
  [3] compilecache(pkg::Base.PkgId, path::String)
    @ Base ./loading.jl:1313
  [4] _require(pkg::Base.PkgId)
    @ Base ./loading.jl:1033
  [5] require(uuidkey::Base.PkgId)
    @ Base ./loading.jl:926
  [6] require(into::Module, mod::Symbol)
    @ Base ./loading.jl:913
  [7] include
    @ ./Base.jl:389 [inlined]
  [8] include_package_for_output(pkg::Base.PkgId, input::String, depot_path::Vector{String}, dl_load_path::Vector{String}, load_path::Vector{String}, concrete_deps::Vector{Pair{Base.PkgId, UInt64}}, source::String)
    @ Base ./loading.jl:1225
  [9] top-level scope
    @ none:1
 [10] eval
    @ ./boot.jl:360 [inlined]
 [11] eval(x::Expr)
    @ Base.MainInclude ./client.jl:446
 [12] top-level scope
    @ none:1
in expression starting at /Users/aviks/.julia/packages/SampledSignals/WU1nF/src/SampledSignals.jl:4
ERROR: LoadError: Failed to precompile SampledSignals [bd7594eb-a658-542f-9e75-4c4d8908c167] to /Users/aviks/.julia/compiled/v1.6/SampledSignals/lW2gH_ICs2c.ji.
Stacktrace:
  [1] error(s::String)
    @ Base ./error.jl:33
  [2] compilecache(pkg::Base.PkgId, path::String, internal_stderr::Base.TTY, internal_stdout::Base.TTY)
    @ Base ./loading.jl:1360
  [3] compilecache(pkg::Base.PkgId, path::String)
    @ Base ./loading.jl:1313
  [4] _require(pkg::Base.PkgId)
    @ Base ./loading.jl:1033
  [5] require(uuidkey::Base.PkgId)
    @ Base ./loading.jl:926
  [6] require(into::Module, mod::Symbol)
    @ Base ./loading.jl:913
  [7] include
    @ ./Base.jl:389 [inlined]
  [8] include_package_for_output(pkg::Base.PkgId, input::String, depot_path::Vector{String}, dl_load_path::Vector{String}, load_path::Vector{String}, concrete_deps::Vector{Pair{Base.PkgId, UInt64}}, source::Nothing)
    @ Base ./loading.jl:1225
  [9] top-level scope
    @ none:1
 [10] eval
    @ ./boot.jl:360 [inlined]
 [11] eval(x::Expr)
    @ Base.MainInclude ./client.jl:446
 [12] top-level scope
    @ none:1
in expression starting at /Users/aviks/.julia/packages/LibSndFile/kDrKU/src/LibSndFile.jl:1
ERROR: Failed to precompile LibSndFile [b13ce0c6-77b0-50c6-a2db-140568b8d1a5] to /Users/aviks/.julia/compiled/v1.6/LibSndFile/yIqel_ICs2c.ji.
Stacktrace:
  [1] error(s::String)
    @ Base ./error.jl:33
  [2] compilecache(pkg::Base.PkgId, path::String, internal_stderr::Base.TTY, internal_stdout::Base.TTY)
    @ Base ./loading.jl:1360
  [3] compilecache(pkg::Base.PkgId, path::String)
    @ Base ./loading.jl:1313
  [4] _require(pkg::Base.PkgId)
    @ Base ./loading.jl:1033
  [5] require(uuidkey::Base.PkgId)
    @ Base ./loading.jl:926
  [6] require(into::Module, mod::Symbol)
    @ Base ./loading.jl:913
  [7] eval
    @ ./boot.jl:360 [inlined]
  [8] eval
    @ ./Base.jl:39 [inlined]
  [9] repleval(m::Module, code::Expr, #unused#::String)
    @ VSCodeServer ~/.vscode/extensions/julialang.language-julia-1.3.27/scripts/packages/VSCodeServer/src/repl.jl:157
 [10] (::VSCodeServer.var"#69#71"{Module, Expr, REPL.LineEditREPL, REPL.LineEdit.Prompt})()
    @ VSCodeServer ~/.vscode/extensions/julialang.language-julia-1.3.27/scripts/packages/VSCodeServer/src/repl.jl:123
 [11] with_logstate(f::Function, logstate::Any)
    @ Base.CoreLogging ./logging.jl:491
 [12] with_logger
    @ ./logging.jl:603 [inlined]
 [13] (::VSCodeServer.var"#68#70"{Module, Expr, REPL.LineEditREPL, REPL.LineEdit.Prompt})()
    @ VSCodeServer ~/.vscode/extensions/julialang.language-julia-1.3.27/scripts/packages/VSCodeServer/src/repl.jl:124
 [14] #invokelatest#2
    @ ./essentials.jl:707 [inlined]
 [15] invokelatest(::Any)
    @ Base ./essentials.jl:706
 [16] macro expansion
    @ ~/.vscode/extensions/julialang.language-julia-1.3.27/scripts/packages/VSCodeServer/src/eval.jl:34 [inlined]
 [17] (::VSCodeServer.var"#53#54")()
    @ VSCodeServer ./task.jl:395

Turns out I had a pre-release version of julia installed. Works fine with v1.6.2


text:
Add support for EPSG:27700

ERROR: LoadError: ArgumentError: EPSG/ESRI code for the ESRI ID "British_National_Grid" not found in dictionary.
Please check https://github.com/JuliaEarth/CoordRefSystems.jl/blob/main/src/strings.jl
If you know the EPSG/ESRI code of a given ESRI WKT string, please submit a pull request.

I'm reading this shape file from here at the the UK Office for National Statistics (ONS): LAD_DEC_2023_UK_BGC.shp.
Google tells me the British National Grid is EPSG:27700.

We added the code and corresponding type as discussed in https://discourse.julialang.org/t/esri-code-for-british-national-grid-not-known-by-geoio/117641
I will leave this issue open because we still need to work on a final missing feature to make conversions 100% correct.


text:
DicomDir Pet CT

Hello I have some anonymized Dicom fileset of FDG PET/CT (CT data + data from PET - nuclear medicine) I would like to  it into tensor/ tensors for further work and processing . Is it possible using this package or some other julia package ? If not , and You will point me in a direction how to achieve it I will try to contribute to create such functionality.
The File  in a link below
https://drive.google.com/drive/folders/1jxJr2IdhozgSXKLutHt-eLfI9Jv2ihSZ?usp=sharing

This package can load the Dicom files, but any further processing will require additional packages.
The shared data appears to have folders with multiple series. These are not supported by the package, but this can be remedied by defining a few supporting functions
using DICOM

function load_dicom(dir)
    dcms = dcmdir_parse(dir)
    loaded_dcms = Dict()
    # 'dcms' could contain data for different series, so we have to filter by series
    unique_series = unique([dcm.SeriesInstanceUID for dcm in dcms])
    for (idx, series) in enumerate(unique_series)
        dcms_in_series = filter(dcm -> dcm.SeriesInstanceUID == series, dcms)
        pixeldata = extract_pixeldata(dcms_in_series)
        loaded_dcms[idx] = (; pixeldata = pixeldata, dcms = dcms_in_series)
    end
    return loaded_dcms
end

function extract_pixeldata(dcm_array)
    if length(dcm_array) == 1
        return only(dcm_array).PixelData
    else
        return cat([dcm.PixelData for dcm in dcm_array]...; dims = 3)
    end
end

The dicom files inside a folder can then be loaded by using load_dicom defined above, e.g.
dcms = load_dicom("./sample1/DICOM/20110611/03240000")

and the pixeldata can be accessed by:
dcms[1].pixeldata # Empty
dcms[2].pixeldata # Empty
dcms[3].pixeldata # Scout
dcms[4].pixeldata # CT
dcms[5].pixeldata # PET

In the above example, the Dicom folder contained five series which is why dcms had the keys 1, 2, 3, 4, 5, with each number representing an individual series.

It looks like the CT and PET scans are already registered, but the CT scan dimensions are 512x512x425 while the PET scan is 200x200x68. In case it is helpful, here are a few steps that could be done to bring the PET and CT data into the same space by using information from the DICOM header along with the Interpolations package.
(Disclaimer: I can't guarantee that the code will correctly do what it claims to do)
Assuming that the CT data will be downsampled to match the PET data, the following functions can be employed:
using Interpolations

# This ensures that first slice has lowest position, and last slice has highest position
# This assumption is required for `get_gridpoints()` to return correct slice locations
function sort_slices(scan)
    slicelocations = [dcm.SliceLocation for dcm in scan.dcms]
    if issorted(slicelocations)
        return scan
    elseif issorted(slicelocations; rev = true)
        pixeldata = reverse(scan.pixeldata; dims = 3)
        dcms = reverse(scan.dcms)
        return (; pixeldata, dcms)
    end
    error("Could not sort scan")
end

function get_gridpoints(scan)
    @assert ndims(scan.pixeldata) == 3
    dcm = first(scan.dcms)
    # [!] I might have gotten the x and y backwards below
    # but this might not matter if nx = ny
    (ox, oy, oz) = dcm.ImagePositionPatient
    (dx, dy) = dcm.PixelSpacing
    dz = dcm.SliceThickness
    (nx, ny, nz) = size(scan.pixeldata)
    x = ox:dx:ox+dx*(nx-1)
    y = oy:dy:oy+dy*(ny-1)
    z = oz:dz:oz+dz*(nz-1)
    return (x, y, z)
end

function interpolate_to(input, target)
    targetgrid = get_gridpoints(target)
    inputgrid = get_gridpoints(input)
    itp = LinearInterpolation(inputgrid, input.pixeldata, extrapolation_bc = Line())
    return itp((targetgrid)...)
end

Wrapping it all together:
dcms = load_dicom("./sample1/DICOM/20110611/03240000")
ct = sort_slices(dcms[4])
pet = sort_slices(dcms[5])
interp_ct = interpolate_to(ct, pet)

# The following arrays should have the same dimensions and can be used for further processing
pet_voxels = pet.pixeldata
ct_voxels = interp_ct

Thank You For Help !!


text:
CVodeFree has correct type but gets called incorrectly

CVodeFree takes a pointer to a void* mem object from CVodeCreate, not the object itself.
So the correct call is
ccall((:CVodeFree, Sundials.libsundials_cvodes), Void, (Ptr{Ptr{Void}},), &mem)

not as it is called now if you try to pass mem to it:
CVodeFree(mem)
==> ccall((:CVodeFree, Sundials.libsundials_cvodes), Void, (Ptr{Ptr{Void}},), mem)

This bug leads to unexpected segfaults when freeing resources. CVodeFree looks like this:
SUNDIALS_EXPORT void CVodeFree(void **cvode_mem);

I just gave you commit access. Could you submit PRs for this and the other issues you have filed?

Could you also review the outstanding PRs?

I tested the call above with a customized version of the code posted by rs1909 in #24, and it works great. How difficult is it to fix the CVodeFree call?

@christianhaargaard : I think you can just call it like that
cvode_mem = Sundials.CVodeCreate(Sundials.CV_BDF, Sundials.CV_NEWTON)
...
Sundials.CVodeFree([cvode_mem])

At least this is the approach taken in #29, which is/was supposed to fix #24.

Thanks! I was getting a little sad seeing as I have to solve my ODE a couple of hundred times :-)

Should be fixed by #57. Please reopen if you this is still a problem.

authors: ViralBShah acroy christianhaargaard ikirill


text:
Cannot build WinRPM on windows 10

Version 0.5.0-dev+2224 (2016-01-20 18:55 UTC)
Commit 275c7e8 (2 days old master)
x86_64-w64-mingw32
hi, I installed julia on my windows 10 just now, and running into the following problem. Is this a bug? I cannot decide and don't know how to fix it. Thanks!
julia> Pkg.add("HDF5")
INFO: Installing WinRPM v0.1.13
INFO: Removing Docile v0.5.23
INFO: Removing FileIO v0.0.3
INFO: Building WinRPM

Please submit a bug report with steps to reproduce this fault, and any error mes
sages that follow (in their entirety). Thanks.
Exception: EXCEPTION_ILLEGAL_INSTRUCTION at 0x221f503a -- unknown function (ip:
00000000221F503A)
while loading C:\Users\lizz\.julia\v0.5\WinRPM\src\WinRPM.jl, in expression star
ting on line 501
unknown function (ip: 00000000221F503A)
jl_apply_generic at /home/Administrator/buildbot/slave/package_win6_2-x64/build/
src\gf.c:1947
[inline] at C:\Users\lizz\.julia\v0.5\LibExpat\src\LibExpat.jl:141
xp_parse at C:\Users\lizz\.julia\v0.5\LibExpat\src\LibExpat.jl:300
jl_apply_generic at /home/Administrator/buildbot/slave/package_win6_2-x64/build/
src\gf.c:1947
update at C:\Users\lizz\.julia\v0.5\WinRPM\src\WinRPM.jl:153
__init__ at C:\Users\lizz\.julia\v0.5\WinRPM\src\WinRPM.jl:41
unknown function (ip: 000000002214CA64)
jl_apply_generic at /home/Administrator/buildbot/slave/package_win6_2-x64/build/
src\gf.c:1947
[inline] at /home/Administrator/buildbot/slave/package_win6_2-x64/build/src\juli
a.h:1576
jl_eh_restore_state at /home/Administrator/buildbot/slave/package_win6_2-x64/bui
ld/src\module.c:623
jl_eval_module_expr at /home/Administrator/buildbot/slave/package_win6_2-x64/bui
ld/src\toplevel.c:210
jl_toplevel_eval_flex at /home/Administrator/buildbot/slave/package_win6_2-x64/b
uild/src\toplevel.c:425
jl_parse_eval_all at /home/Administrator/buildbot/slave/package_win6_2-x64/build
/src\ast.c:747
jl_load_ at /home/Administrator/buildbot/slave/package_win6_2-x64/build/src\topl
evel.c:575
include at .\boot.jl:262
jl_apply_generic at /home/Administrator/buildbot/slave/package_win6_2-x64/build/
src\gf.c:1922
include_from_node1 at .\loading.jl:401
jl_apply_generic at /home/Administrator/buildbot/slave/package_win6_2-x64/build/
src\gf.c:1922
do_call at /home/Administrator/buildbot/slave/package_win6_2-x64/build/src\inter
preter.c:66
eval at /home/Administrator/buildbot/slave/package_win6_2-x64/build/src\interpre
ter.c:214
jl_toplevel_eval_flex at /home/Administrator/buildbot/slave/package_win6_2-x64/b
uild/src\toplevel.c:546
[inline] at /home/Administrator/buildbot/slave/package_win6_2-x64/build/src\juli
a.h:1576
jl_eh_restore_state at /home/Administrator/buildbot/slave/package_win6_2-x64/bui
ld/src\builtins.c:590
eval at .\boot.jl:265
jl_apply_generic at /home/Administrator/buildbot/slave/package_win6_2-x64/build/
src\gf.c:1922
[inline] at .\sysimg.jl:14
require at .\loading.jl:332
unknown function (ip: 0000000021E96257)
jl_apply_generic at /home/Administrator/buildbot/slave/package_win6_2-x64/build/
src\gf.c:1922
eval_import_path_ at /home/Administrator/buildbot/slave/package_win6_2-x64/build
/src\toplevel.c:369
jl_toplevel_eval_flex at /home/Administrator/buildbot/slave/package_win6_2-x64/b
uild/src\toplevel.c:444
jl_parse_eval_all at /home/Administrator/buildbot/slave/package_win6_2-x64/build
/src\ast.c:747
jl_load_ at /home/Administrator/buildbot/slave/package_win6_2-x64/build/src\topl
evel.c:575
include at .\boot.jl:262
jl_apply_generic at /home/Administrator/buildbot/slave/package_win6_2-x64/build/
src\gf.c:1922
include_from_node1 at .\loading.jl:401
jl_apply_generic at /home/Administrator/buildbot/slave/package_win6_2-x64/build/
src\gf.c:1922
do_call at /home/Administrator/buildbot/slave/package_win6_2-x64/build/src\inter
preter.c:66
eval at /home/Administrator/buildbot/slave/package_win6_2-x64/build/src\interpre
ter.c:214
jl_toplevel_eval_flex at /home/Administrator/buildbot/slave/package_win6_2-x64/b
uild/src\toplevel.c:546
[inline] at /home/Administrator/buildbot/slave/package_win6_2-x64/build/src\topl
evel.c:415
jl_toplevel_eval_flex at /home/Administrator/buildbot/slave/package_win6_2-x64/b
uild/src\toplevel.c:481
[inline] at /home/Administrator/buildbot/slave/package_win6_2-x64/build/src\juli
a.h:1576
jl_eh_restore_state at /home/Administrator/buildbot/slave/package_win6_2-x64/bui
ld/src\builtins.c:590
[inline] at .\sysimg.jl:14
evalfile at .\loading.jl:417
evalfile at .\loading.jl:417
jl_apply_generic at /home/Administrator/buildbot/slave/package_win6_2-x64/build/
src\gf.c:1947
anonymous at .\none:14
cd at .\file.jl:57
jl_apply_generic at /home/Administrator/buildbot/slave/package_win6_2-x64/build/
src\gf.c:1947
anonymous at .\none:9
open at .\iostream.jl:114
jl_apply_generic at /home/Administrator/buildbot/slave/package_win6_2-x64/build/
src\gf.c:1947
do_call at /home/Administrator/buildbot/slave/package_win6_2-x64/build/src\inter
preter.c:66
eval at /home/Administrator/buildbot/slave/package_win6_2-x64/build/src\interpre
ter.c:214
jl_toplevel_eval_flex at /home/Administrator/buildbot/slave/package_win6_2-x64/b
uild/src\toplevel.c:546
[inline] at /home/Administrator/buildbot/slave/package_win6_2-x64/build/src\topl
evel.c:415
jl_toplevel_eval_flex at /home/Administrator/buildbot/slave/package_win6_2-x64/b
uild/src\toplevel.c:481
[inline] at /home/Administrator/buildbot/slave/package_win6_2-x64/build/src\juli
a.h:1576
jl_eh_restore_state at /home/Administrator/buildbot/slave/package_win6_2-x64/bui
ld/src\builtins.c:590
eval at .\boot.jl:265
jl_apply_generic at /home/Administrator/buildbot/slave/package_win6_2-x64/build/
src\gf.c:1922
[inline] at .\sysimg.jl:14
process_options at .\client.jl:222
_start at .\client.jl:301
unknown function (ip: 0000000020D0C424)
jl_apply_generic at /home/Administrator/buildbot/slave/package_win6_2-x64/build/
src\gf.c:1922
true_main at /home/Administrator/buildbot/slave/package_win6_2-x64/build/ui\repl
.c:515
wmain at /home/Administrator/buildbot/slave/package_win6_2-x64/build/ui\repl.c:6
26
__tmainCRTStartup at /usr/src/debug/mingw64-x86_64-runtime-4.0.2-1/crt\crtexe.c:
334
mainCRTStartup at /usr/src/debug/mingw64-x86_64-runtime-4.0.2-1/crt\crtexe.c:214

BaseThreadInitThunk at C:\WINDOWS\system32\KERNEL32.DLL (unknown line)
RtlUserThreadStart at C:\WINDOWS\SYSTEM32\ntdll.dll (unknown line)
ERROR: Build process failed.
 in build! at .\pkg\entry.jl:554
 [inlined code] from .\dict.jl:483
 in build at .\pkg\entry.jl:573
 in resolve at .\pkg\entry.jl:489
 in edit at .\pkg\entry.jl:414
 in anonymous at .\task.jl:435
 in sync_end at .\task.jl:401
 [inlined code] from .\task.jl:410
 in add at .\pkg\entry.jl:57
 in add at .\pkg\entry.jl:78
 in anonymous at .\pkg\dir.jl:31
 in cd at .\file.jl:57
 in cd at .\pkg\dir.jl:31
 [inlined code] from .\pkg\dir.jl:25
 in add at .\pkg.jl:83
 in eval at .\boot.jl:265

julia>

probably the same as https://github.com/JuliaLang/WinRPM.jl/issues/63, LibExpat is broken on nightly. Use release Julia for now.

release version is okay. Thanks!

authors: innerlee tkelman


text:
Add Hessian calculation support

Hessian calculation is defined the same way as other calculation types
AtomsCalculators.hessian(system, calculator)
# or
AtomsCalculators.calculate(AtomsCalculators.Hessian(), system, calculator)

@generate_interface macro can be used to help define the calculator interface. Also, test_hessian function has been added to help testing the interface.
So, basically this is a very simple addition of Hessian to the interface.
@cortner, @mfherbst, @rkurchin, @jgreener64

Thanks for starting this. I think a hessian should be an AbstractMatrix{<: SMatrix} - see my comment above.

Forces are AbstractVector{<:SVector}, you can use e.g. reinterpret(Float64, f) to get it into AbstractVector{<:Number}.
In my opinnion we should use this definition to define the AbstractMatrix{<:Number} definition for Hessian.
For cell vector Hessian, it can be build from position Hessian. Secondly we don't have AtomsBase system structure that uses fractional coordinates.

thanks for reminding me about this. I am strongly opposed to using inconsistent formats here. If forces are vector(vector) then hessians must be matrix(matrix). reinterpret doesn't really play a role here in my view.

For cell vector Hessian, it can be build from position Hessian

I have not seen this before. My first instinct is that this cannot be true. Please text me on Zulip to explain how.

If we want to add Hessian to AD tools (Zygote, ForwardDiff, etc.), we need to use use AbstractMatrix{<:Number} formatting. So, we would need to add conversion layer, if we go for Matrix{Matrix} format. And it would need to include permutation in the conversion. So, from my point, the Matrix{Matrix} format is the inconsistent one.
The other issue is that Matrix{Matrix} times Vector{Vector} is not a BLAS operation, and you would need to perform permutation in order to get it to use BLAS calls. For me this big enough reason alone to not have Matrix{Matrix} format in the first place.
For cell vector Hessian you are correct. My version would only work, if atoms don't see their own images.

I think you are confusing two different hessians. For linear algebra you need the hessian w.r.t. degrees of freedom. Here we are implementing the hessian with respect to positions. They are not always the same.

I'd like to return to this and propose a compromise. In JuLIP I actually had two hessian implementations: (1) pos_hessian and (2) hessian. The first was the block-matrix format that I prefer for consistency reasons. The second was with respect to DOFs.
A final point: Hessians are expensive to compute. The conversion will almost never be the overhead. Maybe for some some very simple empirical potentials, but in those cases we should definitely not perform global AD. I actually do not believe that we will ever compute the global hessian using ForwardDiff. We will compute the local site-energy hessian using ForwardDiff and then write that into the global hessian. Therefore there is no conversion overhead as suggested above.

based on discussions in other repos, can we pleaes add prototypes for block_hessian and for hessian and possibly also a conversion utility?

authors: cortner tjjarvinen


text:
computational thinking link is kaputt

https://computationalthinking.mit.edu/Spring21/week1/ returns 404

thanksssyouy

authors: fonsp theogf

license: Unlicense


text:
New version: DoubleFloats v1.3.8

Registering package: DoubleFloats
Repository: https://github.com/JuliaMath/DoubleFloats.jl
Created by: @JeffreySarnoff
Version: v1.3.8
Commit: 1b9a464a90339c9b5e61437223c1bbd68b8bc023
Reviewed by: @JeffreySarnoff
Reference: https://github.com/JuliaMath/DoubleFloats.jl/commit/1b9a464a90339c9b5e61437223c1bbd68b8bc023#commitcomment-140321295
Description: math with more good bits

[merge approved]

authors: JeffreySarnoff JuliaRegistrator

repo: JuliaRegistries/General


text:
New version: NFLTables v0.1.2

Registering package: NFLTables
Repository: https://github.com/KyleSJohnston/NFLTables.jl
Created by: @KyleSJohnston
Version: v0.1.2
Commit: c2d9c1ea109859c28e56e6962022e0d982edb0fe
Reviewed by: @KyleSJohnston
Reference: https://github.com/KyleSJohnston/NFLTables.jl/commit/c2d9c1ea109859c28e56e6962022e0d982edb0fe#commitcomment-38195255

No need to merge this. (I had to read the comment several times to understand the problem. I think I can resolve it now.)

authors: JuliaRegistrator KyleSJohnston


text:
New version: VectorizationBase v0.19.15

Registering package: VectorizationBase
Repository: https://github.com/JuliaSIMD/VectorizationBase.jl
Created by: @chriselrod
Version: v0.19.15
Commit: a55b65bbc894e20858777f34938ac410f2c074c4
Git reference: master

block

authors: JuliaRegistrator chriselrod


text:
New package: JqData v0.0.1

Registering package: JqData
Repository: https://github.com/hzgzh/JqData.jl
Created by: @hzgzh
Version: v0.0.1
Commit: d29fbd2755d60fbc1dfefe5755a92e1d6bcab1fd
Git reference: master

https://github.com/JuliaRegistries/General/pull/8748#issuecomment-581772617

authors: JuliaRegistrator fredrikekre


text:
tagbot creates tags on forks when upstream made a release

Just got a notification on my Flux fork https://github.com/johnnychen94/Flux.jl/releases I guess this is unexpected?

Oops, yeah that really should not be happening.
I think the best thing to do is to check that the URL in the registry matches the repo where TagBot is running.

repo: JuliaRegistries/TagBot


text:
Division error due to CpuId.cpucores() == 0

Since CpuId.cpucores() == 0
https://github.com/m-j-w/CpuId.jl/issues/56
this produces a division error on precompilation
https://github.com/JuliaSIMD/CPUSummary.jl/blob/6b35f33fc3cf51c27c481e67ff4d373b33d03e08/src/x86.jl#L30

julia> using CPUSummary
[ Info: Precompiling CPUSummary [2a0fbf3d-bb9c-48f3-b0a9-814d99fd7ab9]
ERROR: LoadError: DivideError: integer division error
Stacktrace:
  [1] div
    @ ./int.jl:288 [inlined]
  [2] div
    @ ./div.jl:316 [inlined]
  [3] div
    @ ./div.jl:40 [inlined]
  [4] #1
    @ ~/depot/packages/CPUSummary/BzuIZ/src/x86.jl:30 [inlined]
  [5] ntuple(f::CPUSummary.var"#1#2"{Tuple{Int32, Int32, Int32}}, n::Int64)
    @ Base ./ntuple.jl:19
  [6] top-level scope
    @ ~/depot/packages/CPUSummary/BzuIZ/src/x86.jl:30
  [7] include(mod::Module, _path::String)
    @ Base ./Base.jl:419
  [8] include(x::String)
    @ CPUSummary ~/depot/packages/CPUSummary/BzuIZ/src/CPUSummary.jl:1
  [9] top-level scope
    @ ~/depot/packages/CPUSummary/BzuIZ/src/CPUSummary.jl:46
 [10] include
    @ ./Base.jl:419 [inlined]
 [11] include_package_for_output(pkg::Base.PkgId, input::String, depot_path::Vector{String}, dl_load_path::Vector{String}, load_path::Vector{String}, concrete_deps::Vector{Pair{Base.PkgId, UInt64}}, source::Nothing)
    @ Base ./loading.jl:1554
 [12] top-level scope
    @ stdin:1
in expression starting at ~/depot/packages/CPUSummary/BzuIZ/src/x86.jl:29
in expression starting at ~/depot/packages/CPUSummary/BzuIZ/src/CPUSummary.jl:1
in expression starting at stdin:1


text:
Selection of rows whose elements take on certain values

I often want to restrict my large dataset to some smaller subset, where that set is determined by a particular list of values. The only way to do so that I could see is with some horrible chain of things like
goodrows = df[:key1].==val1 || df[:key1].==val2...
goodrows = goodrows && (df[:key2].==val1 || df[:key2].==val2)...
littledf = df[goodrows,:]

etc.
This was unbearable, so I wrote this little function:
function restrict(df, dict)
    keylist=[x for x in keys(dict)]
    goodidx=ones(Bool,size(df,1))
    for key in keylist
        if (typeof(dict[key])=="ASCIIString") || (typeof(dict[key])=="UTF8String")
            vals = [dict[key]]
        else
            vals=dict[key]
        end
        littlegoodidx=zeros(Bool,size(df,1))
        for val in vals
            littlegoodidx |= (df[key].==val)
        end
        goodidx &= littlegoodidx
    end
    return df[goodidx,:]
end

This lets you index on keys, so the above would be
littledf = restrict(df,[:key1=>[val1,val2...],:key2=>[val1,val2...]])

Since I use this function a bajillion times a day, I thought I might ask if a) this function should be included in the DataFrames package and b) if I'm just stupid and something like this already exists and simply isn't well documented.

I think this is probably a unique enough case to not warrant something in this package itself. Your restrict function seems fine for a limited case, or @tshort's solution using findin is about as concise.


text:
Preserve aspect ratio and make size changeable

Depends on https://github.com/JuliaWGPU/WGPUCanvas.jl/pull/5

tested the example included and on cube and splat.jl examples. works on my side. Thanks.

I will merge this after wrapping error as commented here https://github.com/JuliaWGPU/WGPUCanvas.jl/pull/5#discussion_r1527462294. Let me know its conflicting with anything.

Thank you @ut112002 and @VarLad. I really appreciate it.


text:
Performance issue in heavily saturated usage

It's unclear whether there is something fundamental in OpenSSL.jl or HTTP.jl's usage of it, but we noticed in a RelationalAI workload that executed thousands of concurrent requests (GET, PUT, etc.) to cloud storage that there was slowdown in these heavily saturated scenarios.

Any chance of getting and sharing profile data ?

I don't; we have an extremely large/complicated benchmark that involves a 128-node cluster doing thousands of cloud storage requests where we noticed the slowdown. I'm hoping to have time to work on this in the next month or two.

Resolved by https://github.com/JuliaWeb/OpenSSL.jl/pull/20

authors: grlap quinnj


text:
Fid metrics

Dear author,
I would like to conduct training and testing on the dataset I created by myself. However, I've encountered some problems. Your algorithm relies on the FID (Frechet Inception Distance) metric, and it seems that it needs to load a pre-trained model. There are only models trained on specified datasets like RICO and PublayNet. I traced back to previous papers through your paper, but it ultimately pointed to a paper without publicly available code. So, how should I solve this problem?
musig = torch.load(f'./pretrained/FIDNet_musig_val_{dataset.lower()}.pt', map_location='cpu'）

Hi,
Thank you for your question. If you want to calculate the FID for your own dataset, you will unfortunately need to train your own FID network. I mention some details about that in issue #4, but you can find an example here: https://github.com/CyberAgentAILab/layout-dm/blob/main/src/trainer/trainer/fid/train.py.

authors: JulianGuerreiro molu-ggg

repo: JulianGuerreiro/LayoutFlow


text:
add context based handlers for ptb12

I just added the use_context parameter to the creation of the Updater, to be able to use the new handlerfunc(update, context) style. The bool variable is read from the bots config in settings.py
DJANGO_TELEGRAMBOT = {
    ...
    'BOTS' : [
        {
           'TOKEN': xxx',
           'CONTEXT': True, # pass context to handler fucntions func(update, context)
          ...

If not set it stays False, which is also the default if no use_context is given. So this should be downwards compatible, at least for older bot code. The kwarg probably raise an error for older ptb versions.
Howerver, should be easy to except that case and adjust the example project. Let me know when you want me to do that.

Codecov Report

Merging #37 into master will increase coverage by 0.17%.
The diff coverage is 66.66%.

@@            Coverage Diff             @@
##           master      #37      +/-   ##
==========================================
+ Coverage   41.84%   42.02%   +0.17%
==========================================
  Files           9        9
  Lines         325      326       +1
==========================================
+ Hits          136      137       +1
  Misses        189      189

Impacted Files
Coverage Δ

django_telegrambot/apps.py
52.26% <66.66%> (+0.24%)
: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 55aa268...332a828. Read the comment docs.

authors: codecov-io lukruh

repo: JungDev/django-telegrambot


text:
Add import/export RTs to routing zone resource/datasources

This PR adds support for import_route_targets and export_route_targets to:

resource apstra_datacenter_routing_zone
data source apstra_datacenter_routing_zone
data source apstra_datacenter_routing_zones

In addition, it deprecates the filter attribute from data source apstra_datacenter_routing_zones, and introduces filters.
Closes #406

As far as I can see this enhancement has not been included in v0.39.0. Can you confirm the estimated version and date for its inclusion? Thanks in advance!

@coterv You're absolutely right. It should have been in yesterday's release. We'll get that sorted soon.

authors: chrismarget-j coterv

repo: Juniper/terraform-provider-apstra


text:
BREAKING CHANGE to CT resource schema: Change primitives from set to map

Problem Statement
Connectivity Templates are implemented as trees of ep-endpoint-policy nodes. Our previous implementation of CT resources persisted the ID of the root node (the specific ep-endpoint-policy node which represents the whole CT) through edits, but did not persist the IDs of branch and leaf nodes within the tree. Edits to an existing CT modified IDs deep inside the tree. These changes had adverse effects to applied CTs which required follow-on modifications like configuring IP addresses on point-to-point logical links.
Schema Change
CT primitives used to be stored as sets, each with a name attribute. Now they are maps, keyed by the primitive name.
Old Style
resource "apstra_datacenter_connectivity_template_loopback" "example" {
  blueprint_id = local.blueprint_id
  name         = "old style"
  bgp_peering_ip_endpoints = [
    {
      name         = "neighbor_a" # <==== primitive name is an attribute
      neighbor_asn = null
      bfd_enabled  = true
      ipv4_address = "192.168.10.10"
    },
  ]
}

New Style
resource "apstra_datacenter_connectivity_template_loopback" "example" {
  blueprint_id = local.blueprint_id
  name         = "new style"
  bgp_peering_ip_endpoints = {
    neighbor_a = { # <=================== primitive name is the map key
      neighbor_asn = null
      bfd_enabled  = true
      ipv4_address = "192.168.10.10"
    },
  }
}

Details
Preventing ID churn deep within the tree of CT primitives requires us to keep track of the IDs of those primitives. In the old style config, primitives were members of sets, and those sets could nest a few layers deep.
Because set elements are dereferenced by their value, we can't put Computed attributes (the IDs) into an object which represents a set element. Adding the ID would change the value, destroying the old element, and creating a new one. Terraform would complain.
The new scheme solves that problem by keeping the primitives as (nested) maps. Maps elements are referenced by their key, so Computed values do not cause a problem.
We now keep the pipeline (upstream), policy, and batch (downstream) IDs for each primitive, and re-use these values during Update().

Closes #977


text:
Gallium.breakpoint_on_error() not working

Dear Juno Team,
it would be awesome to be able to jump to errors for debugging. Gallium has a breakpoint for this, settable with Gallium.breakpoint_on_error(), however despite I read Juno would use Gallium, this does not work unfortunately.
In my current workspace after activating the breakpoint I run something errorful. However instead of jumping to the position in the code where the error happened, the I get a new error which seems to relate to Gallium itself
KeyError: key Ptr{Void} @0x0000000064f34730 not found
 in pop!(::Dict{Ptr{Void},Gallium.Hooking.Hook}, ::Ptr{Void}) at dict.jl:726
 in unhook(::Ptr{Void}) at Hooking.jl:476
 in breakpoint_on_error_hit(::Gallium.Hooking.Hook, ::Gallium.X86_64.ExtendedRegs) at Gallium.jl:938
 in _callback(::Ptr{Void}) at Hooking.jl:289
 in callback(::Ptr{Void}) at Hooking.jl:326

Gallium needs to release an update for it to work. So I'd call it an upstream problem. But Keno is working on a v0.6-compatible release instead of trying to fix a release first. That is probably a decent idea at this point.

Yeah, this is a Gallium bug; once the 0.6 compatible version is out, I'll probably spend some time on a rework of the Juno debugger integration.

authors: ChrisRackauckas pfitzseb schlichtanders


text:
Uncaught TypeError: Cannot read property 'match' of undefined

This is on master of ink & julia-client:
/Users/solver/Projects/julia-client/lib/misc/paths.coffee:54
Hide Stack Trace
TypeError: Cannot read property 'match' of undefined
    at ChildProcess.<anonymous> (/Users/solver/Projects/julia-client/lib/misc/paths.coffee:54:18)
    at emitTwo (events.js:87:13)
    at ChildProcess.emit (events.js:172:7)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)

Can you try the latest commit?
cc @simondanisch

that works :)
But this still doesn't:

Ah ok but that's a different kind of issue. The errors to console is for when you run a script via Ctrl-Shift-Enter and will eventually be the default for that. Inline eval always gives an inline result.

Where does that setting come from anyways? It isn't on master.
I do think showing errors in the console should be the default when evaling a script, so I've made that change here.

To clarify, when I say default I just mean we'll stop supporting the error-notifications thing completely – but that won't happen until we have better support for notifying the user of new output.

True, but we had errors piped to the console before, and that broke since then for non-internal errors.

So it looks like this now:

I accidentally pushed that commit to the 0.5 branch. Should be master now, right?

Ah, I see. Yeah we should delete v0.5.

Done.
I do have an idea for some mini-notifications and stuff like that, hopefully I get to playing a bit with it soonish.

Yeah that'd be cool. I was considering perhaps a toast-esque UI that collects on the bottom left-to-right? (I'm sure you have your own ideas anyway).

This is fixed for me!

Great, closing then.

authors: MikeInnes SimonDanisch dlfivefifty pfitzseb

repo: JunoLab/atom-julia-client


text:
[Request] Countdown timer

{prefix}countdown [date] - output {x} days{x} hours {x} minutes {x} seconds
example
!countdown 05.07.2017 - x days, x hours, x minutes, x seconds

gfr

repo: Just-Some-Bots/MusicBot


text:
Bot wont play more than 2 songs

So yeah as i said if i write !play and add more than 2 songs links it will play only the first one and will ignore the last one. When i just installed the bot it worked but when i restarted pc it fucked up :(.
Help please.

I had the same problem, and some other, and updated the dependencies to fix all of those. Seems like the a new version of youtube_dl (as of 2017.02.28), fixed all my problems. Worth a try.

Try updating your dependencies:

Windows: Open update_deps.bat
Linux: Run python3.5 -m pip install --upgrade -r requirements.txt
Mac: Open update_macdeps.command in Terminal

authors: jaydenkieran pshyco69 tehknox


text:
Add Healthcheck After Deploys

Harvey never actually checks to ensure your container is running, instead it simply tries to run a container.
There should be functionality to allow Harvey to do a healthcheck on the container prior to marking a deploy/full pipeline successful. This will ensure it didn't start up and immediately exit.

ffb2f22d8513e5c7d34455230e7b4f9ae4d61884 closes this.


text:
[Feature] Scanner: easy way to detect when device is no longer available

The Scanner should provide a way to determine when a device is no longer available, because it has been turned off or is no longer in range.
As I understand it, at least on Android, the right way to do this is to scan again, and determine from the new scan if any devices are no longer present relative to the previous scan.
See https://stackoverflow.com/questions/33033906/how-to-detect-when-a-ble-device-is-not-in-range-anymore.

I'm reluctant to implement such a feature in Kable since I believe that should be considered "no longer available" comes down a lot to the needs of the app that is using Kable.
Additionally, I think implementing such logic app-side should be fairly straight forward?
Something to the effect of (pseudo code):
val pass1 = withTimeout(11.seconds) {
    scanner.advertisements.toList()
}
val pass2 = withTimeout(11.seconds) {
    scanner.advertisements.toList()
}
val noLongerAvailable = pass1 - pass2

Thanks I'll experiment with this. If it does work, then what do you think about a utility method on advertisements like scanOneInterval()? That would abstract away the low-level detail of the 10.24 seconds that covers one advertising interval.

I'm reluctant to add such a utility method only because (as far as I understand) advertisement interval is customizable (on the peripheral side), so some firmware might use a more frequent interval while others use less, and 10.24 is just the maximum — so the naming scanOneInterval may not be accurate for all peripherals.
The timeout could be configurable and default to 10.24, but that becomes a lot of code for something that is fairly simple to implement on the consumer side?
Ultimately, I appreciate the suggestion and always open to further discussion (I'm just cautious about growing the API unnecessarily).

This approach works but there are a few complexities to keep in mind.

You can't use toSet directly, as (at least for my device) each AndroidAdvertisement is not equal, even though its the same address. Mapping to the address field of the advertisement is needed for the set comparison.

Obvious in hindsight but caused some problems initially: BLE devices stop advertising when they are connected. Therefore, we can't assume an already connected device is "gone" relative to the current device when it is no longer present in the advertisements.

I went with an approach that looks something like this. My peripheral advertises every 250 ms so a 1 second chunk time was sufficient, and this approach does not require multiple separate scans:
      var visibleAddresses = emptySet<String>()
      // any peripherals already connected from other app state
      var connectedAddresses = setOf(...)

      scanner.advertisements
         // custom implementation
         // see https://github.com/Kotlin/kotlinx.coroutines/issues/1302
        .chunked(100, 1.seconds)
        .map { it.associateBy { it.address } }
        .distinctUntilChanged()
        .collect { ads ->
          val removed = lastAddresses - connectedAddresses - ads.keys
          val added = ads.keys - lastAddresses
          if (added.isNotEmpty() || removed.isNotEmpty()) {
            lastAddresses = ads.keys
          }
        }

If you are curious about my implementation of chunked I can share it.
I don't feel this is trivial to do for an application consumer, so to me it makes sense to have some of this logic in Kable. However, I understand not wanting to expand the API surface. Feel free to close this issue.

I see. You've definitely exposed more complexity than I had original anticipated.
I'll keep the issue open, as it allows others to discover the feature request and 👍 if they too would find it useful. That would at least gauge interest.
I'm still on the fence as to if it should be added to Kable, especially with needing a custom (chunked) operator, makes for a potentially larger maintenance burden. Lots of tradeoffs to consider. Regardless, I would appreciate you sharing your chunked implementation, it would prove useful if later we do decide to add this feature.

@rocketraman if you're up for creating a PR, I'd be happy to have the feature live in a separate module/artifact that consumers can optionally pull into their projects.

authors: rocketraman twyatt

repo: JuulLabs/kable


text:
Early validation testing

WIP

Very cool. Great job!
General feedback:

Do we need koap/js_tests/package-lock.json?

It's crazy big and looks like it would result in a lot of version control churn

We could probably get away with fewer tests, since a lot of functionality will be tested by Kotlin unit tests

I'd imagine we only need a couple of tests just to validate the API surface works as expected from JS, right?

Probably not? Might need someone with more npm experience to answer that.

Mmm. Not sure I agree. This effort is really testing a new product, which is why we're taking this approach anyway--an undercurrent of fear that something will go wrong in the transpilation and/or programmer error as a result of that process. Sure, you've got tests covering the Kotlin end, but they'll do little to protect the validity of this product. The way I'm approaching it, then, is just regarding it as its own thing that needs to have all the angles covered.

an undercurrent of fear that something will go wrong in the transpilation

The Kotlin unit tests are transpiled when testing the JS target. So we already do test the JS transpiled code with our Kotlin unit tests.
The problem arrises with name mangling that occurs and can make the public API surface malformed. My understanding is that the tests written directly in JS (not transpiled) are to validate that the API surface has the shape that was expected.

The problem arrises with name mangling that occurs and can make the public API surface malformed. My understanding is that the tests written directly in JS (not transpiled) are to validate that the API surface has the shape that was expected.

^this
These tests were inspired by the initial published artifacts being unusable from JS. There are certain Kotlin language features (e.g. enums, overloading) that do not provide JS interop by default (yet). The intention is to validate that the published artifacts bridge to JS with a usable API.

Do we need koap/js_tests/package-lock.json?

Conventional wisdom is to always commit the lock file for JS projects to ensure dependency matching for any npm packages that are loosely versioned in package.json. For unit tests in this situation I'd say that rule should be thrown out the window with tremendous enthusiasm.

The problem arrises with name mangling that occurs and can make the public API surface malformed. My understanding is that the tests written directly in JS (not transpiled) are to validate that the API surface has the shape that was expected.

^this
These tests were inspired by the initial published artifacts being unusable from JS. There are certain Kotlin language features (e.g. enums, overloading) that do not provide JS interop by default (yet). The intention is to validate that the published artifacts bridge to JS with a usable API.

But in that case I still don't see the need to not test thoroughly. As:
"There are certain Kotlin language features (e.g. enums, overloading) that do not provide JS interop by default (yet)"
We would want to be catching any of these sorts of things. And
"The Kotlin unit tests are transpiled when testing the JS target."
Maybe I'm not fully understanding, but couldn't those unit tests--themselves--be a point of failure since they're being transpiled as well?
Besides all this, what does having less coverage gain us? A little bit of time?

I'd imagine we only need a couple of tests just to validate the API surface works as expected from JS, right?

Yes. Primarily to validate that the published API has clean JS interop is the goal. This may become unnecessary if every file with public symbols can cleanly compile with @file:JsExport added.
The secondary function is a more subjective analysis. It is very easy to write idiomatic Kotlin that results in supremely ugly JS API which hinders adoption. This is probably better achieved via a demo application though so the use cases can been seen in-situ.

What do people think about a linter rule that enforces @file:JsExport for any file that has public symbols? Any unsupported language features would fail compilation and force the developer to tweak the API such that is it 100% javascript compatible.

What do people think about a linter rule that enforces @file:JsExport for any file that has public symbols? Any unsupported language features would fail compilation and force the developer to tweak the API such that it is 100% javascript compatible.

Sounds good to me. 👍

Fantastic work!
Just some minor comments:

Perhaps the koap/js_tests directory should be renamed to tsTests (since it's technically Typescript)
Migrate from bash script to Gradle task

For the js_tests dir name change, kinda depends on how you look at it. My intention with the "js" was that I'm testing the js output--not that these are--in and of themselves--js tests. So maybe the best name is something like, "koap-js-tests?"

The koap- prefix on koap-js-tests feels redundant.
Technically you are testing from the perspective of Typescript, so tsTests feels appropriate to me; but also fine w/ js prefix if you'd prefer.
I suggested camel case as it's standard convention for JVM and Kotlin projects, so is more familiar; but being that this isn't being processed by the Kotlin toolchain, I'm fine with alternate naming conventions.

The koap- prefix on koap-js-tests feels redundant.
Technically you are testing from the perspective of Typescript, so tsTests feels appropriate to me; but also fine w/ js prefix if you'd prefer.
I suggested camel case as it's standard convention for JVM and Kotlin projects, so is more familiar; but being that this isn't being processed by the Kotlin toolchain, I'm fine with alternate naming conventions.

I see what you're saying, but I named it based on what's being tested instead of what the tests are written in--which I think would be more descriptive since tsTests doesn't offer up the purpose of the tests? That's how I'm looking at it, but I can change it if you like.

I see what you're saying, but I named it based on what's being tested instead of what the tests are written in--which I think would be more descriptive since tsTests doesn't offer up the purpose of the tests? That's how I'm looking at it, but I can change it if you like.

Good call. With that in mind, maybe we should call it apiTests or api-tests. Then we're actually describing what the intent of the test suite is (to test/validate the API surface).

Wonder if we should setup ESLint for all the typescript stuff. Here's a great article to able to do so. You can add lint and fix npm scripts in your package that could theoretically run before each commit. Or before a build in the CI/CD pipeline.

Wonder if we should setup ESLint for all the typescript stuff. Here's a great article to able to do so. You can add lint and fix npm scripts in your package that could theoretically run before each commit. Or before a build in the CI/CD pipeline.

I've got it added, but what rule set do we want to use?

@Phoenix7351 can you also update the PR title and description when you get a change. Thanks!

authors: Phoenix7351 davidtaylor-juul earthtosid twyatt

repo: JuulLabs/koap


text:
gif的demo

虚拟机上成功,手机上成功,手机上需要配置自行配置http权限,由于示例是http地址,而不是https
android:networkSecurityConfig="@xml/network_security_config"
android:usesCleartextTraffic="true"

视频内容来源于网络,如有侵权,可告知,本人删除,

感谢你的反馈
---原始邮件---
发件人: "ioveBean"<notifications@github.com>
发送时间: 2020年5月1日(周五) 凌晨2:51
收件人: "Jzvd/JiaoZiVideoPlayer"<JiaoZiVideoPlayer@noreply.github.com>;
抄送: "Subscribed"<subscribed@noreply.github.com>;
主题: [Jzvd/JiaoZiVideoPlayer] gif的demo (#128)
虚拟机上成功,手机上成功,手机上需要配置自行配置http权限,由于示例是http地址,而不是https
android:networkSecurityConfig="@xml/network_security_config"
android:usesCleartextTraffic="true"
视频内容来源于网络,如有侵权,可告知,本人删除,
You can view, comment on, or merge this pull request online at:
  https://github.com/Jzvd/JiaoZiVideoPlayer/pull/128
Commit Summary
gif的demo
File Changes
 A     jiaoziGifDemo.zip     (0)

Patch Links:
https://github.com/Jzvd/JiaoZiVideoPlayer/pull/128.patch
https://github.com/Jzvd/JiaoZiVideoPlayer/pull/128.diff
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.

authors: ioveBean lipangit

repo: Jzvd/JiaoZiVideoPlayer


text:
NetKAN: "Could not find KSPChromaControl entry in zipfile to install"

I'm getting the above mentioned error when using netkan to compile the following file:
{
    "spec_version"    : 1,
    "identifier"      : "KSPChromaControl",
    "$kref"           : "#/ckan/github/cguckes/ksp-chroma",
    "license"         : "GPL-3.0",
    "name" : "KSP Chroma Control",
    "abstract" : "Lights up your keyboard to show you all the functions your vessel actually has.",
    "resources" : {
        "homepage" : "https://github.com/cguckes/ksp-chroma",
        "repository"  : "https://github.com/cguckes/ksp-chroma"
    }
}

my zip file contains just one folder (the one it claims not to find). Do I need to restructure my zip file?

In local testing I don't run into any issues.
For the abstract you should make very clear that users require Synapse (Razor Synapse I imagine?). You must also specify KSP compatibility via either a single ksp_version or a range via ksp_version_min and ksp_version_max.

I added all the changes you requested, but I'm still getting the error

1214 [1] FATAL CKAN.NetKAN.Program (null) - Could not find KSPChromaControl entry in zipfile to install

I attached the file. If you can netkan it without much trouble I'd appreciate if you could add it for me. Thanks in advance :-)

repo: KSP-CKAN/CKAN-meta


text:
KerbalConstructionTime-RP-0-Config

@NathanKell this netkan points at the RP-0 and there are a bunch of CKANs indexed from it. Has something changed?

It's obsolete now that KCT supports loading configs from other mods.

Awesome. I'll send a PR to remove it.

repo: KSP-CKAN/NetKAN


text:
[Bug] Mod conflict (Spectra and Green Skull Revived)

Background

Operating System: latest win10
CKAN Version: latest
KSP Version: latest

Have you made any manual changes to your GameData folder (i.e., not via CKAN)?
no
Problem
Describe the bug
The mods Spectra and Green Skull Revived should not have a conflict, yet the installation fails.
Steps to reproduce
Install either mod first, then the other, see the error as per the error code below
Expected behavior
both mods should install together, there should not be incompatibility (?)
Screenshots (if applicable)
CKAN error code (if applicable):
About to install...

 * Green Skull Revived 1.0.1 (cached)

Oh no! We tried to overwrite a file owned by another mod!
Please try a `ckan update` and try again.

If this problem re-occurs, then it maybe a packaging bug.
Please report it at:

https://github.com/KSP-CKAN/NetKAN/issues/new

Please including the following information in your report:

File      : GameData/TextureReplacer/Default/EVAvisor.dds
Installing Mod : GreenSkullRevived 1.0.1
Owning Mod: Spectra
CKAN Version   : v1.26.10
Your GameData has been returned to its original state.
Error during installation!
An unknown error occurred, please try again!

Might be a file included in Spectra by accident. "EVA visor" sounds like something that belongs in a suit pack, but not a planet enhancement pack.

I made a cross post to this bug to the respective mod owners on ksp forums, not sure if it's a CKAN issue but decided to post here as well. thanks!

They look pretty different:

(left is Spectra, right is GreenSkull)
So there appears to be a functional conflict here after all; Spectra will make your EVA visors look one way, Green Skull will make them look another way.

OK so I've looked into this a bit myself. Issue was both on Spectra mod and how it's configured on CAN. Suggestions aka I figured out the following:

Spectra should have Kopernicus as a Supported Mod on CKAN (not a requirement)
Spectra should be a selection for both Environmental Visual Enhancements Config Files and Scatterer Config Files as well as the Sunflare component for Scatterer during installation via CKAN and have these mods as a Requirement
Spectra should have Green Skull Revived as a conflicting mod for now (that EVA visor is not mentioned by the mod owner but it does conflict) until the mod owner either removes that file or confirms the conflict and mentions the visor in the installation notes (see below)

Now besides the above, I am unfamiliar with Texture Replacer and how it's supposed to be handled via CKAN with other mods so not sure to confirm whether it's actually required or not for that mod and if CKAN handles that part correctly.

authors: HebaruSan bofhgr


text:
Add ModularFlightIntegrator as FAR dependency

For FAR 0.15

Build failed with:
Could not find a part of the path "/home/jenkins/workspace/PR builder - NetKAN metadata/NetKAN/dummy_ksp/Ships/@thumbs/SPH/FAR Blitzableiter.png".
Build step 'Execute shell' marked build as failure

Hrmm?

Could be, need someone who knows how the process is ran to answer though. I will try to get a computer back up tonight and look closer.

Well, FAR 0.15 is already in CKAN without the dependency and has already caused quite a few issues and angsting. Whatever the issue is, it doesn't actually block package installation.

authors: Dazpoet dbent


text:
Mechjeb2 - add support for current KSP

The new release of Mechjeb2 supports 1.8 to 1.12.
This should be the last required update of NetKAN for MJ.

Looks good, thanks for the update!

authors: DasSkelett sarbian


text:
Feature/notice view

📚 개요

"맛집 구현 추가" PR 리뷰 반영하여 수정했습니다.
공지사항 뷰를 추가하다가 리뷰를 반영한거라 코드가 일부 추가되어있습니다.
NoticeView는 아직 미완성상태입니다.

🕐 리뷰 예상 시간

5m

❗❗ 중요한 변경점(Option)

리뷰가 비교적 꼼꼼히 이루어져야할 부분이나 파일을 여기다 적어주거나
해당 로직에 직접 코멘트를 달아도 좋습니다
해당 기능에 대한 테스트 방법과 사진은 첨부해주시는 걸 권장합니다!!!

@choiseoo
브랜치도 지워주세요
하단에 버튼있습니다~

@choiseoo
브랜치도 지워주세요
하단에 버튼있습니다~

지우면 제가 만들어논 따른 코드들도 날아가게 되는거 아닌가요 ...??

@choiseoo
브랜치도 지워주세요
하단에 버튼있습니다~

@choiseoo 브랜치도 지워주세요 하단에 버튼있습니다~

지우면 제가 만들어논 따른 코드들도 날아가게 되는거 아닌가요 ...??

authors: Ji-InPark choiseoo


text:
fix: ensure operator can delete Jobs

Prior to this commit, changing the kwasm.sh/kwasm-node from
true to false caused the operator to fail with a RBAC error.

User "system:serviceaccount:kwasm:kwasm-operator" cannot delete resource "jobs" in API group "batch" in the namespace "kwasm"

Good catch, LGTM!

repo: KWasm/kwasm-operator


text:
change accent glyphs to be non-combining

Safari has issues with placing combining glyphs in the right spot and it's easier to do it manually with non-combining accents.

I believe we already have non-combining glyphs for everything except the \vec accent (and those listed in #2).

Oops, based on the code (see class accent-hungarian), I think we're also missing a non-combining glyph for \H.

authors: edemaine kevinbarabash

repo: KaTeX/katex-fonts


text:
🛑 Lavalink is down

In dee2cbb, Lavalink (https://lidalavalink.kadantte.repl.co/metrics) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Lavalink is back up in 1d70b29.

repo: Kadantte/candy-up


text:
[Feature] Docs

how to install and setup? important gotchas?

how to install and setup? important gotchas?

The python & NodeJS packages aren't released yet.

repo: Kaliiiiiiiiii-Vinyzu/patchright


text:
README.md and LICENSE and .gitnore

Hi,
It seems that the repo doesn't have a README.md and LICENSE and .gitnore. So It would be useful to have those files for new contributors to know what the project is about and etc...

Hi! Not sure what you mean, it does have README and LIcense. Is the apache license more suitable for the project than an MIT?
Other than that I think we have everything. .gitignore I have, but maybe it's been removed so not sure?

Hi,
I created this issue 5 days ago. So this is outdated.
I am sorry for the confusion.
With best regards,
Ranuga

Okay I see, no worries!

authors: KalleHallden Programmer-RD-AI


text:
Add support for #version

In GLSL this is a preprocessor directive that declares which version of GLSL the shader is using.

FWIW: currently in naga, the preprocessor just ignores #version ..., passing it on to be handled by the later stage with lexer/parser, see https://github.com/gfx-rs/naga/blob/587dc01a2cc43fdf4637f1bf6d2b75b703e9f681/src/front/glsl/preprocess.rs#L90

With a combined pp/lex, I guess it should return a 'Version' token.
How to deal with the rest of the line? GLSL would have e.g. #version 450 core, should that be Version(450, "core")? What about HLSL/WGSL (guess WGSL doesn't have #version - at least yet)

The rest of the line could maybe be done with Version(Vec<Token>) if we want it really customizable? Then we could provide sub-parsers for the regular GLSL version etc.

authors: Kangz pjoe

repo: Kangz/glslpp-rs


text:
Finished dungeon search with no seeds.

Somewhy the seed cracker doesn't work. I have tried with every single category but nothing works.
The dungeons are intact

Your screenshot doesn't embed.
First, did you enable the dungeons finder? If so, then what kind of configuration does the map you're playing on have? Is it all 100% vanilla? Does one seed control all of the generation of the overworld, or are there multiple seeds for structures, biomes, etc.?

authors: GurkisXD InfoTeddy

repo: KaptainWutax/SeedCracker


text:
Slack issues

I've tried using it in https://app.slack.com/ but it doesn't work.
The extension opens a frame with this content:

I can see that new lines are synced to the text field conversation, but then, no content is added to the text field.

Thanks for the heads-up about the issue with Slack.
Here's the deal:

Slack's input fields are a mess. Unlike Gmail or Github that use standard contenteditable elements, Slack's implementation is non-standard and doesn't play nicely with third-party extensions. It would need a lot of reverse-engineering and custom handling.

Since Slack is proprietary, any change they make could break our integration, meaning more time and effort just to keep it working.

Before I dive into this rabbit hole, can you tell me if you’d actually use Slack with this extension if I manage to get it working? Or are you just exploring its capabilities?
By the way, instead of trying to get this working, you might want to check out emacs-slack. Personally, I use a fork of it, isamert/emacs-slack, and it works like a charm.

Thank you so much for your response.
Unfortunately, I’m unable to use any third-party Slack clients (such as Emacs) because, in the corporate environment, these are typically blocked.

Before I dive into this rabbit hole, can you tell me if you’d actually use Slack with this extension if I manage to get it working? Or are you just exploring its capabilities?

To be honest, I’m primarily exploring your extension. I currently use https://github.com/tecosaur/emacs-everywhere, which allows me to use Emacs from any input field at the OS level, including in Chrome or other apps like Slack. I was particularly interested in the sync feature of your extension, but I’m not sure if it would be something I’d continue using. Please feel free to prioritize this issue at the end of the backlog.
Thank you again for taking the time to answer.

repo: KarimAziev/chrome-emacs


text:
Parameter to prevent documents from being replaced

Similar to the document-level immutable constraint, add a new constraint (e.g. cannotReplace) that prevents a document from being replaced but that does not prevent it from being deleted.
Related to #31.

Resolved by https://github.com/Kashoo/synctos/pull/40.

authors: OldSneerJaw ziemek

repo: Kashoo/synctos


text:
first pass at verify_fingerprint

Not yet ready to merge but starting a PR now to incorporate any early feedback. Thanks for any review!

Please go ahead!
But you need to make tests also

@asvetlov Thanks so much for reviewing! Definitely wanted to add tests, just wanted to make sure I wasn't on the wrong track first, but so glad to here I wasn't! Just pushed a new patch with tests. I wasn't able to get them to run locally though, so I'm sure they'll need a little more work. Would you mind taking a peek at the latest patch?

Pushed another improved version. Now with passing tests! \O/
Please let me know if there's anything left to do before this is good to merge.
Thanks again for reviewing!

Oh, and I meant to point out, I added the DER-encoded version of sample.crt as sample.crt.der so you could verify shasum sample.crt.der gives the same thing I set fpgood to on this line. But if you think it's unnecessary I can take it out of the patch.

(accidentally made some comments with the wrong account and had to delete them, sorry!)

authors: asvetlov jab requiredfield

repo: KeepSafe/aiohttp


text:
Make the question about desired behavior in the bug issue template look like English

Motivation
Which issue does this fix? Fixes #issue number
No issue is fixed by this. Only those who create bugs are asked in English to describe the correct behavior.
Checklist

[ ] Code follows coding conventions held in this repo
[ ] Automated tests have been added
[ ] Tests are passing
[ ] Docs have been updated (if applicable)
[ ] Temporary settings (e.g. variables used during development and testing) have been reverted to defaults

How to test
If manual testing is required, what are the steps?

could you please make the change here?

authors: petrsvihlik vilemj-Viclick

repo: Kentico/cloud-sample-app-net


text:
Add detailed error message for secure access configuration

Brief bug description
Attempting to run gatsby build (or npm run build) on a project that has Secure Access enabled in Kentico Kontent, but is not reflected in the source configuration results in a failed build with not detail about the error.
> <project name>@1.1.1 build C:\projects\<client>\<project name>
> gatsby build

success open and validate gatsby-configs - 0.155s
success load plugins - 0.435s
success onPreInit - 0.004s
success delete html and css files from previous builds - 0.019s
success initialize cache - 0.008s
success copy gatsby files - 0.076s
success onPreBootstrap - 0.028s

 ERROR #11321  PLUGIN

"@kentico/gatsby-source-kontent" threw an error while running the createSchemaCustomization lifecycle:

not finished createSchemaCustomization - 0.549s

Repro steps

Open/create a Gatsby project that uses Kentico Kontent in Visual Studio Code.
Open the Kontent application and navigate to Project Settings > API Keys
Under the Secure access heading, use the feature toggle to enable secure access.
In Visual Studio Code, open a terminal and run the project with either gatsby build or npm run build. The result will be the error message above.

Expected behaviour
The source plugin should report the message back from the API to inform the developer of the issue when the valid access token is missing.
Test environment

Platform/OS: Windws 10 Pro (x64)
Browser: Chrome
Version: Latest (Version 80.0.3987.149 (Official Build) (64-bit))

Additional context
The only way I resolved the issue (turning off secure access) was by attempting to query the delivery API with Postman as follows:
curl --location --request GET 'https://deliver.kontent.ai/<projectId>/items'

This resulted in the following response which was enough to diagnose the issue:
{
  "message": "Missing or invalid access token. Please include the valid access token value in the Authorization header field as an HTTP bearer authorization scheme.",
  "request_id": "|8d2ddfd377d5f743a0db71398d68aa2a.82412a41_",
  "error_code": 3,
  "specific_code": 0
}

Hey @mattnield, thanks fit submitting the issue.
I have briefly look into the code and it looks fine.
Could you please set your env variable "DEBUG": "gatsby:*" while running build? It should provide the logging for the identification.
In the meanwhile, I will set up a playground to check the secure API works.

I have created a showcase with a secured API configured development environment as well as build work as expected.
Please check the configuration format:
https://github.com/Simply007/gatsby-source-kontent-secure-api/blob/master/gatsby-config.js#L12

That is the same issue right?
https://stackoverflow.com/questions/60831012/error-running-gatsby-build-with-kentico-kontent

Could you also send the config file format?
There might be some limitations in the configuration with a secured + preview combination (@Enngage).

That is the same issue right?
https://stackoverflow.com/questions/60831012/error-running-gatsby-build-with-kentico-kontent

Yes - that's the one.

Could you please set your env variable "DEBUG": "gatsby:*" while running build? It should provide the logging for the identification.

I don't know how to do that, to be honest. Is that in the gatsby.config?
I don't doubt that the secure access works, it more a case of it not being enabled in my gatsby project, but someone enabled it in Kontent.

It is just the environment variable.
If you are using dotenv package, just add new record
DEBUG="gatsby:*"

And run i.e. npm run build/yarn build if you have a script defined in your packages.json:
"build": "gatsby build"

Or you could use i.e. cross-env package and alter your script:
https://www.npmjs.com/package/cross-env
"build": "cross-env DEBUG="gastby*"gatsby build"

Maybe just a hint:
I would double-check propagating the environment variables to the configuration (gatsby-config)
: https://www.gatsbyjs.org/docs/environment-variables/#server-side-nodejs
If you are using visual studio code, you could use configuration we have in the gatsby starter project
https://github.com/Kentico/gatsby-starter-kontent/blob/master/.vscode/launch.json
The one with the name "Gatsby develop" started gatsby develop command (also with the Debug ENV variable).
You could also change the argument to "build" and remove development NODE_ENV variable and debut build script.
Just place the breakpoint to gatsby config and check that all values are in place for plugin configuration.

Alright. Setting the environment variable would not work - gatsby is simply not using information from exception out of the box.
I have found a way to propagate the error messages to the log.
I have submitted a feature request for that:
#116

repo: Kentico/gatsby-source-kontent


text:
Section controller's implementation breaks naming convention

Brief bug description
What went wrong?
The identifier at TwoColumnFourtySixtySectionController - MedioClinic.SectionFourtySixty.TwoColumn breaks the naming convention set for the project, (e.g., MedioClinic.Section.TwoColumnSixtyFourty).

Fixed via https://github.com/Kentico/training-kentico-k12/commit/2877ac975167b647164a43283ac1dc5decffce0d#diff-c6cfe4591f46eaf956a12ce37a083cd5

authors: JanLenoch lukas-xb


text:
Support windows and make the tests pass

Hello potential contributor,
I am currently working on making MeiliSearch compile on Windows. The only remaining dependency to update seems to be heed.
In this pull request I use a fork of the lmdb-sys crate that seems to compile on Windows. The issue is that even with this fork I am not able to find where I am wrong and why I get this error message. I don't have a Windows computer at hand and would be glad if someone could help me tackle this :)
Will be fixed when https://github.com/mozilla/lmdb-rs/pull/74 is merged.
Closes #24.

I'm willing to help debug this issue.

Ho! Thank you @maroider !
I wanted to make heed work on Windows, I added the support of windows file descriptors in lmdb-sys (on linux its an int, on Windows its a pointer). I tried to make the tests pass but its hard to debug when you don't have the Windows machine at hand.
So, here you are, helping me tackle this issue with your Windows machine I presume? 😃
Would it be possible to clone the repository, checkout the support-windows branch and try to understand where I "miss typed" a file name, please?
Thank you very much!

I'd like to help too. @maroider please let me know if you need some assistance

Thank you @gentoid for your help :)

The issue originates in EnvOpenOptions::open.
Removing path.cannonicalize()?; and adding path.to_path_buf(); makes the test suite pass.
The offending line was introduced in bab25b727b85bc7369222a031d9e704d185dcabf. Could you perhaps shed some light on why the path is cannonicalized here, @Kerollmops?

Thank you for this great debug.
I originally canonicalized the path to make sure that a environment is correctly identified by its path and not by a relative path (i.e. ../folder1/../folder1/db must be equal to ../folder1/db).
This way I can be sure that not to different types of data are read from the same environment.
I originally thought that LMDB prohibited opening the same environment multiple times with the same program but it seems like mozilla/lmdb-rkv doesn't handle this issue.
So, I think that it is still needed to ensure a same environment is not opened with different database types, if we are not able to create canonicalized paths on Windows, we will make it work on unix systems at least.

Ok, so thanks to you I search in the codebase of the mozilla/rkv database based on LMDB and found out how they work around the Windows Path problem.
https://github.com/mozilla/rkv/blob/7da5bd021decb82e163b3cbd1e5b8d84ec354aa2/src/manager.rs#L46-L58
I will rebase this PR on master and make the required changes.
Thank you for your help @maroider and @gentoid !

Awesome, it compiles thanks to you and this workaround!
The only remaining thing is that my other PR is merged and I will be able to release a new heed version that works on Windows!

authors: Kerollmops gentoid maroider

repo: Kerollmops/heed


text:
Add a wiki: ENA Wiki

Link to origin wiki: https://enajoelg.fandom.com/
Link to destination (independent) wiki: https://ena.wiki.gg/
Origin (fandom.com) wiki is officially deprecated. Destination (wiki.gg) wiki outright replaces it.
Source: https://enajoelg.fandom.com/f/p/4400000000000038366

Thanks for the submission! Added in v3.5.0, now available on both Chrome and Firefox.

authors: KevinPayravi mkacct

repo: KevinPayravi/indie-wiki-buddy