text:
Question about "directory" environment option

In my addon, I am trying to change the default install location of mirage from "tests\dummy\mirage\" to "addon/mirage" or "app/mirage". (I want to ship out and install the mirage folders into my app) Is the directory option meant to move the physical location of the mirage folder or just internally?
What I have:
ENV['ember-cli-mirage'] = {
  directory: 'app/mirage'
};

Running:  ember g mirage-factory post --dummy
Creates: tests\dummy\mirage\factories\post.js

It is meant to lookup the physical location. Looks like the generator might not be respecting it in this case.
Could you explain more about your use case? When you say you want to ship out mirage and install it in your app?

@samselikoff basically I want to install mirage under my addon's app folder. Then in my app, I want to import these mirage files and use them along other factories and such. I think the issue I am facing has to do with line 16 in the blueprint. It basically ignores the directory option when the factory blueprint is being ran within an addon context. It will always generate the factory under the default path.
Here: https://github.com/miragejs/ember-cli-mirage/blob/master/blueprints/mirage-factory/index.js#L16

I see. Looks like it might be a bug, though I don't know if we've ever officially supported Mirage code alongside shipped addon code. (Mirage is usually added to addons to test them.)
If you put the files under /addon manually does it work? I.e. are your addon's users able to import + use the Mirage code?

I have provided for this in a issue that I have detailed https://github.com/miragejs/ember-cli-mirage/issues/1989 A PR will be forth coming that will include this importable method
Specifically it is the code in this file https://github.com/bgantzler/ember-cli-mirage/blob/serializer/exportMirage.js
You would import it and then put the following in your index.js of your addon
treeForApp(appTree) {
    let isDummyApp = this.app.name === 'dummy';
    if (isDummyApp) {
      return appTree;
    } else {
      return exportMirage(this, appTree);
    }
  },

This will export the mirage directory from the dummy app into the host application. You do not need to use the rename directory environment variable (this code tries to compensate if you did (not tested as I did not), but you wont need to with this)
NOTE:   The config.js of the mirage directory is NOT exported as I would assume the host app may have one of its own to provide additional end points. What I suggest in your addon is to rename your config to myAddon-conf.js (ex. choose a better name) and then have the config js look like the following
import myAddonConfig from './myAddon-config';

export default function() {
  // let dummy=1;
  this.config({routes: myAddonConfig});
}

We have been using this in my own app and addons and will be proposing a PR to ember-cli-mirage. If you try to implement it in the meantime, feel free to contact me if you have any issues

I hope the export is eventually included in a PR, but since it was struck from this one, here is the contents. If you create a file in the root of your addon named exportMirage.js, then use the following import and the treeForApp in index.js as described above
const exportMirage = require('./exportMirage');

Contents of exportMirage.js
'use strict';

const path = require('path'); // eslint-disable-line
let Funnel = require('broccoli-funnel'); // eslint-disable-line
let MergeTrees = require('broccoli-merge-trees'); // eslint-disable-line

const mirageDefaultDirectory = '/mirage';

let BroccoliDebug;
// let BroccoliDebug = require('broccoli-debug'); // eslint-disable-line

function _shouldIncludeMirageFiles(application, appMirageConfig) {
  if (process.env.EMBER_CLI_FASTBOOT) { // eslint-disable-line
    return false;
  }

  let environment = application.env;
  let enabledInProd = environment === 'production' && appMirageConfig.enabled;
  let explicitExcludeFiles = appMirageConfig.excludeFilesFromBuild;
  if (enabledInProd && explicitExcludeFiles) {
    throw new Error('Mirage was explicitly enabled in production, but its files were excluded '
      + 'from the build. Please, use only ENV[\'ember-cli-mirage\'].enabled in '
      + 'production environment.');
  }
  return enabledInProd || (environment && environment !== 'production' && explicitExcludeFiles !== true);
}

/**
 * Merge the Mirage directory with another tree
 *
 * @param application - the application we are merging into (should be 'this.app' from ember-cli)
 * @param tree - the tree to merge mirage into
 * @param addonMirageDirectory - The directory where mirage is in the addon if not the default directory tests/dummy/mirage
 * @returns {*}
 */
let exportMirage = function exportMirage(application, tree, addonMirageDirectory) { // eslint-disable-line
  let debugTree = BroccoliDebug
    ? BroccoliDebug.buildDebugCallback('exportMirage')
    : function(tree /*, name*/) {
      return tree;
    };

  let appMirageConfig = application.app.project.config(application.app.env)['ember-cli-mirage'] || {};

  let trees = [];

  if (_shouldIncludeMirageFiles(application.app, appMirageConfig)) {//only in dev and test

    let addonMirageDirectoryPath =
      path.join(application.root,
        addonMirageDirectory || path.join("tests", "dummy", mirageDefaultDirectory)
      );

    // debugger;
    let mirageTree = new Funnel(addonMirageDirectoryPath, {
      destDir: appMirageConfig.directory || mirageDefaultDirectory,
      allowEmpty: true,
      exclude: ['config.js']
    });

    trees.push(
      debugTree(mirageTree, 'mirageTree')
    );
  }

  trees.push(
    debugTree(tree, 'originalTree')
  );

  let mergedTrees = new MergeTrees(trees, {
    overwrite: true,
    annotation: application.app.modulePrefix
  });

  return debugTree(mergedTrees, 'mergedTrees');
};

module.exports = exportMirage; // eslint-disable-line

repo: miragejs/ember-cli-mirage


text:
Add init methods on StateProvider and UrlRouterProvider to be able to…

… reset their internal states
Simple ajout de méthodes pour réinitialiser les états internes. On merge dans legacy puisque c'est la branche qui correspond à 0.2.18, notre version actuelle.

LGTM! 👍

source: gharchive/pull-request

authors: pascalhamel remiprev

repo: mirego/ui-router

license: MIT

license_type: permissive

license_source: github-api


text:
What does saddle plot mean?

Hi ：
Thanks for developing such a powerful tool !
But I'm so confused  about the meaning of a saddle plot . I guess it may represent the genomic changes of A/B compartment . But I don't know how it works . Could you explain the biological significance which it represents ?
Thank you in advance !

Hi Qianzhao,
The saddle plot shows enrichment of interactions as a function of the compartment vector. The science behind the plot is described in our Nature Methods paper https://www.nature.com/articles/nmeth.2148
Max

source: gharchive/issue

authors: QianzhaoJ mimakaev

repo: mirnylab/cooltools


text:
Saleor 3038 tests for payments by adyen

I want to merge this change because I created test for adyen payments

PR intended to be tested with API branch:
Screenshots

Pull Request Checklist

[ ] This code contains UI changes
[ ] All visible strings are translated with proper context including data-formatting
[ ] Attributes [data-test-id] are added for new elements
[ ] Changes are mentioned in the changelog
[ ] The changes are tested in different browsers and in light/dark mode

Test environment config

API_URI=https://qa.staging.saleor.cloud/graphql/

Task linked: SALEOR-3038 Create tests for payments by Adyen

repo: mirumee/saleor-dashboard


text:
querying the "description" returns empty string

{
product(id: ...) {
  id
  description
  }
}

the description returns as an empty string, descriptionJson works though.

description_json needs to be migrated to description, here is an issue about it: https://github.com/mirumee/saleor/issues/5726

authors: LeOndaz maarcingebala

repo: mirumee/saleor


text:
更新了1.1 一直报错。

下午2:28	NullPointerException: null
下午2:28	NullPointerException: null
下午2:28	NullPointerException: null
下午2:32	NullPointerException: null
下午2:32	NullPointerException: null
下午2:33	NullPointerException: null

贴下详细的错误堆栈

@misakuo
null
java.lang.NullPointerException
	at com.taobao.weex.annotator.WeexAnnotator.match(WeexAnnotator.java:183)
	at com.taobao.weex.annotator.WeexAnnotator.verifyDataType(WeexAnnotator.java:117)
	at com.taobao.weex.annotator.WeexAnnotator.verifyVarAndFunction(WeexAnnotator.java:169)
	at com.taobao.weex.annotator.WeexAnnotator.checkAttributeValue(WeexAnnotator.java:218)
	at com.taobao.weex.annotator.WeexAnnotator.checkAttributes(WeexAnnotator.java:68)
	at com.taobao.weex.annotator.WeexAnnotator.checkStructure(WeexAnnotator.java:322)
	at com.taobao.weex.annotator.WeexAnnotator.annotate(WeexAnnotator.java:37)
	at com.intellij.codeInsight.daemon.impl.DefaultHighlightVisitor.a(DefaultHighlightVisitor.java:139)
	at com.intellij.codeInsight.daemon.impl.DefaultHighlightVisitor.visit(DefaultHighlightVisitor.java:102)
	at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.a(GeneralHighlightingPass.java:334)
	at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.a(GeneralHighlightingPass.java:274)
	at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.a(GeneralHighlightingPass.java:293)
	at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.a(GeneralHighlightingPass.java:296)
	at com.intellij.codeInsight.daemon.impl.analysis.XmlHighlightVisitor.analyze(XmlHighlightVisitor.java:747)
	at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.a(GeneralHighlightingPass.java:296)
	at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.a(GeneralHighlightingPass.java:296)
	at com.intellij.codeInsight.daemon.impl.DefaultHighlightVisitor.analyze(DefaultHighlightVisitor.java:86)
	at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.a(GeneralHighlightingPass.java:296)
	at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.a(GeneralHighlightingPass.java:268)
	at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.collectInformationWithProgress(GeneralHighlightingPass.java:207)
	at com.intellij.codeInsight.daemon.impl.ProgressableTextEditorHighlightingPass.doCollectInformation(ProgressableTextEditorHighlightingPass.java:82)
	at com.intellij.codeHighlighting.TextEditorHighlightingPass.collectInformation(TextEditorHighlightingPass.java:70)
	at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.b(PassExecutorService.java:434)
	at com.intellij.openapi.application.impl.ApplicationImpl.tryRunReadAction(ApplicationImpl.java:1026)
	at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.a(PassExecutorService.java:427)
	at com.intellij.openapi.progress.impl.CoreProgressManager.a(CoreProgressManager.java:494)
	at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:443)
	at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:54)
	at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.c(PassExecutorService.java:426)
	at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.run(PassExecutorService.java:402)
	at com.intellij.concurrency.JobLauncherImpl$VoidForkJoinTask$1.exec(JobLauncherImpl.java:154)
	at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289)
	at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1056)
	at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1692)
	at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:157)

@cooliean 出错的地方找到了，但是能不能给一个可以触发错误的we文件？我需要确定一下什么场景下会导致这个问题

@misakuo
我也不知道那个we可以促发呢。我加了Q群没有反应

@cooliean 335401226 之前写错号码了= =

authors: cooliean misakuo

repo: misakuo/weex-language-support

license: mit

license_source: bigquery


text:
🛑 Misskey.gg S3 is down

In 3ec641b, Misskey.gg S3 (https://sss.misskey.gg/sss/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Misskey.gg S3 is back up in d30f083 after 11 minutes.

repo: miss-key/uptime


text:
🛑 Prise de rendez-vous API is down

In e9bbed6, Prise de rendez-vous API (https://rdv-cfa.apprentissage.beta.gouv.fr/api) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Prise de rendez-vous API is back up in 852555a.

repo: mission-apprentissage/upptime


text:
🛑 Tableau de bord API is down

In 5466d2f, Tableau de bord API (https://cfas.apprentissage.beta.gouv.fr/api/healthcheck) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Tableau de bord API is back up in d150e2b.


text:
Portkey open source Gateway integration with Codestral

Portkey natively integrates with Codestral Instruct on both thecodestral.mistral and api.mistral URLs. Have showcased the api.mistral example here, and added the codestral.mistral example in the attached doc.
Portkey will give out-of-the-box observability over all Codestral requests and also help make the requests robust & reliable with features like fallbacks, load balancing, and more.

Hi @vrushankportkey, there is a conflict with the updated doc. Could you help resolve the conflict first? Thanks!

@sophiamyang done!

@sophiamyang just checking in :)

Hi @vrushankportkey, I think Portkey might be more relevant if we have an observability section in the future. Will you keep you updated. In the meantime, we'd love to move forward with Portkey cookbook. Could you update this PR: https://github.com/mistralai/cookbook/pull/33 from Portkey? Thanks!

authors: sophiamyang vrushankportkey

repo: mistralai/platform-docs-public


text:
Assign a "kulala" filetype

Hello,
Thank you very much for this plugin.
I was wondering if it’s possible to assign a custom file type like kulala-<ft> to the created buffer (kulala-json, kulala-xml...) and link it to the corresponding filetype in treesitter with vim.treesitter.language.register()
This way, it would be possible to use other plugins, such as Edgy, or set up autocmd events for it. With vim.treesitter.language.register, it will keep it's code highlights and all.
Thank you for your consideration.

You can set your preferred filetype for each Content-Type in the config, the registration of that new one in treesitter is than on your own.

Thanks!

authors: Grueslayer rachartier


text:
List by walking key path does not work in a loop

Describe the bug

From the forum: The list by walking key path block does not appear to work when placed in a lop.
Affects

[ ] Designer
[ ] Blocks editor
[x] Companion
[x] Compiled apps
[ ] Buildserver
[ ] Other... (please describe)

Expected behavior

The block should work as intended whether it is placed in a loop or not.
Steps to reproduce

Create a list containing some dictionaries
Create a loop over the length of the list
Construct a key path that includes the index and a walk all at level block
Run the code and see that nothing happens

After looking into this further, it appears that the issue has to do with how Kawa handles (or rather, doesn't) having a fully qualified static field referenced from code that is within a macro. The walk all at level block maps to com.google.appinventor.components.runtime.util.YailDictionary:ALL. This seems to work when the code is a a top level construct, but once you put it inside of the loop, Kawa throws an invalid syntax exception. I also tried to switch to using just YailList, since we define it as an alias within runtime.scm, but that also fails but due to the fact that Kawa maps it to a package instance rather than resolving the alias.

repo: mit-cml/appinventor-sources


text:
how to save ,  when runned python demo.py , edited face picture

how to save ,  when runned python demo.py , edited face picture

Hi, you can add a button to the UI to trigger saving the edited image.

Close due to inactivity.

repo: mit-han-lab/anycost-gan


text:
Camera stream loss

Hi, Did the image branch in the fusion model also calculate the loss,  similar to the calculation in LSS or other calculation methods? If so, where is the code?

Hi, yes it also calculates loss and if i am correct, you can check the implementation in the below file https://github.com/mit-han-lab/bevfusion/blob/main/mmdet3d/models/fusion_models/base.py

Hi,  I am not very familiar with transformer, also I saw the author mention that TransfusionHead can be replaced with CenterHead, so I mainly checked the CenterHead and compared it with the TransfusionHead.
In CenterHead, I found loss for calculating heatmap, reg, hei, dim, rot, but did not find any loss function related to the image branch, since TransfusionHead's output includes a dense heatmap. So I have some confusion about the loss.

repo: mit-han-lab/bevfusion


text:
RuntimeError: CUDA error: CUBLAS_STATUS_INVALID_VALUE when calling cublasGemmEx( handle, opa, opb, m, n, k, &falpha, a, CUDA_R_16F, lda, b, CUDA_R_16F, ldb, &fbeta, c, CUDA_R_16F, ldc, CUDA_R_32F, CUBLAS_GEMM_DFALT_TENSOR_OP)

I ran into this error when I tried to train, my cuda version is 11.3 and torch version is 1.10.1

I got the same error. Have you fixed it? @lingxe01

Same problem as #615 . Also, I solved it by downgrading my cuda environment from 11.3 to 11.1. See https://developer.nvidia.com/cuda-11.1.0-download-archive?target_os=Linux&target_arch=x86_64&Distribution=Ubuntu&target_distro=Ubuntu&target_version=2004&target_type=deblocal


text:
Can't teleport though open door

Hello, I have found some bug in the door BP, when I open the door and want to teleport through the door, I have to move my hand through the door first and after that, I can teleport further.
Another bug or maybe it's just my mistake, I have been working on archviz project and exported first test version, for some reason I cannot teleport there, ground just doesn't show any option for this. I'll look why I see it in the Editor and not in Win.EXE application.

Still unable to reproduce this issue (as mentioned in #10), please check the collision in your level to make sure there is nothing blocking the path

authors: mitchemmc sambuev

repo: mitchemmc/VRContentExamples


text:
Improve node selection handling in demo

Sync demo's selection HashSet<NodeIndex> with egui_graph crate's selection logic. The selection logic in the demo now doesn't need reimplementing and can just be derived.

Nice, just updated it to expose as is_node_selected method.


text:
400 No required SSL certificate was sent

fiddler，charles and mitmproxy They all failed!
eg:https://img.alicdn.com/imgextra/i1/759415648/O1CN016k9Bvh1rapU9jcmu0_!!759415648.png
我正在抓soul app，结果发现无法抓取https的数据，但是有些https是可以正确返回数据的

Quick Translate the question:

I'm intercepting packet for an Android App, it turns out a 400 error code, but it works for some domain.

Answer:
I think it is because the App is employed with Certificate Pinning, if fiddler, charles and mitmproxy all failed, that's not a bug of mitmproxy. Please read instructions from the above link for a possible workaround.

Quick Translate the question:

I'm intercepting packet for an Android App, it turns out a 400 error code, but it works for some domain.

Answer:
I think it is because the App is employed with Certificate Pinning, if fiddler, charles and mitmproxy all failed, that's not a bug of mitmproxy. Please read instructions from the above link for a possible workaround.

谢谢，后来在一个逆向大神的帮助下，用证书密钥才获取到数据。

authors: MatthewShao yilingsj

repo: mitmproxy/mitmproxy


text:
[web] dont mutate props

Props are frozen since React 0.14.
https://facebook.github.io/react/blog/2015/10/07/react-v0.14.html#breaking-changes

:+1:
This is why big PRs are bad. I fixed this in https://github.com/mitmproxy/mitmproxy/compare/react-higher-order-functions a few days ago as well. I just should have done what you have done here - thanks! :smiley:

authors: gzzhanghao mhils


text:
Fixed doc about domain whitelisting

This PR fixes the documentation about domains whitelisting. Previous pattern did not work, and solution was given by @mhils in #2994.
I don't think this should close this ticket as there should be a clear way to specify if the pattern should match the IP address and/or the domain, but at least, this PR prevents confusion and gives a workaround.

Yes, agreed on everything - thanks for taking the time to properly document the current workarounds. :cake:

authors: Tey mhils


text:
Integrate MDX

Integrate MDX on challenge pages based on https://nextjs.org/docs/pages/building-your-application/configuring/mdx

Changed requirements here.
MDX will not be the solution in this case, react-markdown will be used instead.

repo: mitxpro-dev/learnjs


text:
Support wasm components installation

implement #53

I do have some experience in working with WASM. If you want me to, I can "take over" this PR and try to get it to work...

I've got error when test build on CI environment on Linux in topic-support-wasm
https://github.com/miurahr/aqtinstall/pull/55/commits/ae8760f026f59fd5bbf6877c6502d3dc9c26691c
https://dev.azure.com/miurahr/github/_build/results?buildId=1109&view=logs&j=9a864fd9-6c8f-52ca-79ce-2aa6dca1a1de
2019-11-16T11:31:41.8609692Z wasm-ld: error: main.o: machine type must be wasm32
2019-11-16T11:31:41.8623820Z wasm-ld: error: moc_main.o: machine type must be wasm32
2019-11-16T11:31:41.8634577Z wasm-ld: error: main.o: machine type must be wasm32
2019-11-16T11:31:41.8644693Z wasm-ld: error: moc_main.o: machine type must be wasm32
2019-11-16T11:31:41.8664953Z wasm-ld: error: moc_main.o: machine type must be wasm32
2019-11-16T11:31:41.8668349Z wasm-ld: error: main.o: machine type must be wasm32
2019-11-16T11:31:41.8678717Z wasm-ld: error: main.o: machine type must be wasm32
2019-11-16T11:31:41.8690000Z wasm-ld: error: main.o: machine type must be wasm32
2019-11-16T11:31:41.8701022Z wasm-ld: error: main.o: machine type must be wasm32
2019-11-16T11:31:41.8737260Z wasm-ld: error: qsurfaceformat.o: machine type must be wasm32
2019-11-16T11:31:41.8957106Z wasm-ld: error: qguiapplication.o: machine type must be wasm32
2019-11-16T11:31:41.9053586Z wasm-ld: error: qwindow.o: machine type must be wasm32
2019-11-16T11:31:41.9106103Z wasm-ld: error: qscreen.o: machine type must be wasm32
2019-11-16T11:31:41.9201274Z wasm-ld: error: qopenglcontext.o: machine type must be wasm32
2019-11-16T11:31:41.9393896Z wasm-ld: error: qpainter.o: machine type must be wasm32
2019-11-16T11:31:41.9436595Z wasm-ld: error: qmatrix4x4.o: machine type must be wasm32
2019-11-16T11:31:41.9472874Z wasm-ld: error: qopenglfunctions.o: machine type must be wasm32
2019-11-16T11:31:41.9490761Z wasm-ld: error: qopenglpaintdevice.o: machine type must be wasm32
2019-11-16T11:31:41.9600458Z wasm-ld: error: qopenglshaderprogram.o: machine type must be wasm32
2019-11-16T11:31:41.9682049Z wasm-ld: error: qpluginloader.o: machine type must be wasm32
2019-11-16T11:31:41.9837749Z wasm-ld: error: too many errors emitted, stopping now (use -error-limit=0 to see all errors)
2019-11-16T11:31:41.9861248Z shared:ERROR: '/home/vsts/work/1/b/emsdk/upstream/bin/wasm-ld -o /tmp/emscripten_temp_6jlnfbi6/openglwindow.wasm --allow-undefined --lto-O0 openglwindow.o main.o -L/home/vsts/work/1/b/emsdk/upstream/emscripten/system/local/lib openglwindow.js_plugin_import.o -L/home/vsts/work/1/b/emsdk/upstream/emscripten/system/lib moc_openglwindow.o -L/home/vsts/.emscripten_cache/wasm-obj /home/vsts/work/1/b/Qt/5.14.0/wasm_32/plugins/platforms/libqwasm.a /home/vsts/work/1/b/Qt/5.14.0/wasm_32/lib/libQt5EventDispatcherSupport.a /home/vsts/work/1/b/Qt/5.14.0/wasm_32/lib/libQt5FontDatabaseSupport.a /home/vsts/work/1/b/Qt/5.14.0/wasm_32/lib/libqtfreetype.a /home/vsts/work/1/b/Qt/5.14.0/wasm_32/lib/libQt5EglSupport.a /home/vsts/work/1/b/Qt/5.14.0/wasm_32/plugins/imageformats/libqgif.a /home/vsts/work/1/b/Qt/5.14.0/wasm_32/plugins/imageformats/libqicns.a /home/vsts/work/1/b/Qt/5.14.0/wasm_32/plugins/imageformats/libqico.a /home/vsts/work/1/b/Qt/5.14.0/wasm_32/plugins/imageformats/libqjpeg.a /home/vsts/work/1/b/Qt/5.14.0/wasm_32/plugins/imageformats/libqtga.a /home/vsts/work/1/b/Qt/5.14.0/wasm_32/plugins/imageformats/libqtiff.a /home/vsts/work/1/b/Qt/5.14.0/wasm_32/plugins/imageformats/libqwbmp.a /home/vsts/work/1/b/Qt/5.14.0/wasm_32/plugins/imageformats/libqwebp.a /home/vsts/work/1/b/Qt/5.14.0/wasm_32/lib/libQt5Gui.a /home/vsts/work/1/b/Qt/5.14.0/wasm_32/lib/libqtlibpng.a /home/vsts/work/1/b/Qt/5.14.0/wasm_32/lib/libqtharfbuzz.a /home/vsts/work/1/b/Qt/5.14.0/wasm_32/lib/libQt5Core.a /home/vsts/work/1/b/Qt/5.14.0/wasm_32/lib/libqtpcre2.a /home/vsts/.emscripten_cache/wasm-obj/libc.a /home/vsts/.emscripten_cache/wasm-obj/libcompiler_rt.a /home/vsts/.emscripten_cache/wasm-obj/libc-wasm.a /home/vsts/.emscripten_cache/wasm-obj/libc++-noexcept.a /home/vsts/.emscripten_cache/wasm-obj/libc++abi-noexcept.a --whole-archive /home/vsts/.emscripten_cache/wasm-obj/libembind-rtti.a --no-whole-archive /home/vsts/.emscripten_cache/wasm-obj/libgl-webgl2.a /home/vsts/.emscripten_cache/wasm-obj/libdlmalloc.a /home/vsts/.emscripten_cache/wasm-obj/libpthread_stub.a /home/vsts/.emscripten_cache/wasm-obj/libc_rt_wasm.a --import-memory --import-table -mllvm -combiner-global-alias-analysis=false -mllvm -enable-emscripten-sjlj -mllvm -disable-lsr --strip-debug --export __wasm_call_ctors --export __data_end --export main --export malloc --export free --export setThrew --export __errno_location --export fflush --export emscripten_GetProcAddress --export strstr --export emscripten_webgl_make_context_current --export emscripten_webgl_get_current_context --export emscripten_builtin_free --export _get_environ --export emscripten_builtin_memalign --export memalign --export realloc --export _ZSt18uncaught_exceptionv --export __cxa_find_matching_catch --export __cxa_is_pointer_type --export __cxa_can_catch --export strlen --export _get_tzname --export _get_daylight --export _get_timezone -z stack-size=5242880 --initial-memory=16777216 --no-entry --global-base=1024' failed (1)
2019-11-16T11:31:42.0383260Z Makefile:222: recipe for target 'openglwindow.js' failed
2019-11-16T11:31:42.0384428Z make: *** [openglwindow.js] Error 1

What wrong?

Try again with not the latest emsdk, but the version officially supported by Qt: sdk-1.38.27-64bit
See https://doc.qt.io/qt-5/wasm.html for more details. Also I'd recommend you to try with Qt 5.13.2 instead of Qt 5.14, as that one has not been released yet and thus is potentially full of bugs.

wasm in Qt is only support sdk-1.38.27-64bit not latest.

now it seems working. Can I merge it?

repo: miurahr/aqtinstall


text:
Crash in UIView+MPHelpers.m line 21 [3.0.3]

An application build with 3.0.3 version of the library crashes in UIView+MPHelpers.m line 21
Device with iOS 8.3.0.
Crashed: com.apple.main-thread
0  CoreFoundation                 0x18350d898 CFGetTypeID + 72
1  UIKit                          0x18820598c _UICreateCGImageFromIOSurfaceWithOptionsAndRotation + 48
2  UIKit                          0x18833d95c -[UIView _drawViewHierarchyInRect:] + 188
3  UIKit                          0x18833dc04 __53-[UIView drawViewHierarchyInRect:afterScreenUpdates:]_block_invoke + 76
4  UIKit                          0x188347a18 +[_UIReplicantView _pendingSnapshotOfTarget:snapshotBlock:] + 348
5  UIKit                          0x18833db04 -[UIView drawViewHierarchyInRect:afterScreenUpdates:] + 284
6  MyApp       0x1001e5fd8 -[UIView(MPHelpers) mp_snapshotImage] (UIView+MPHelpers.m:21)
7  MyApp       0x1001ddbe0 -[Mixpanel presentSurveyWithRootViewController:] (Mixpanel.m:1346)
8  libdispatch.dylib              0x1953a1994 _dispatch_call_block_and_release + 24
9  libdispatch.dylib              0x1953a1954 _dispatch_client_callout + 16
10 libdispatch.dylib              0x1953a620c _dispatch_main_queue_callback_4CF + 1608
11 CoreFoundation                 0x1835e77f8 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 12
12 CoreFoundation                 0x1835e58a0 __CFRunLoopRun + 1492
13 CoreFoundation                 0x1835112d4 CFRunLoopRunSpecific + 396
14 GraphicsServices               0x18cbff6fc GSEventRunModal + 168
15 UIKit                          0x1880d6fac UIApplicationMain + 1488
16 MyApp       0x1000da4a0 main (main.m:14)
17 libdyld.dylib                  0x1953cea08 start + 4

Hi @michalcichon , does this crash happen consistently or a one off thing? If it's only a one off thing, I am curious if it is related to that device having very low memory when the crash occurred. If you are using Fabric or most other crash reporting you should be able to see the state of the device.

I think it is a one off thing but the device had enough memory to process: 1.68 GB free RAM. The device is not jailbroken and has 51.64 GB of storage. The application was 100% focused before crash.

Thanks for the feedback, we have a fix in mind and will look into it. Thanks!

Hi @michalcichon we've wrapped it in a @try @catch so it shouldn't crash if it gets an exception there anymore. See https://github.com/mixpanel/mixpanel-iphone/commit/42e5b1f8565e0b7616920c813158d6b08d26c2ad. Hope this helps!

authors: michalcichon pchien yarneo

repo: mixpanel/mixpanel-iphone


text:
Don't present Notifications on top of UIAlertController

This pull request fixes an issue explained in #268
Additionally it fixes an issue when Notifications and Surveys were prevented from being presented if a notifications has been failed to be presented before.

Any feedback please?
I'd like to note that this branch also fixes a bug (see the 3rd commit) and it's proven by unit tests.
Thanks in advance!

What do you guys think about it? I was hoping that unit tests will help to understand and verify the issue it fixes. Anything else I can do?
Thanks in advance!

I'd like to note that the last commit here actually fixes a bug. Do you want it to be extracted into a separate pull request?

Thanks @yas375

:+1: thank you!


text:
'Bottom' position rendering over field

Using 0.5.1, when setting position to 'bottom' ('top' works fine), I'm seeing the container overlap the input field, so the user can't see what's being typed. Tried to correct by adding some css, but no luck. Can the position of the container be adjusted easily?

Also experiencing this

I'm also seeing this issue.
I'm using Blaze with Meteor 1.5.x, and the Materialize library for styling.

authors: TristanWiley bmcgonag matt-moon

repo: mizzao/meteor-autocomplete


text:
Added support for seconds in coordinates

Hello,
can you check this code and merge it if it's OK, please? We need support for seconds in your repository on Packagist. :)
Thanks
Petr

Hi Petr,
thanks for your PR, I'll take a look.

2.0.1 with decimal seconds support in the coordinate parser is now available on Packagist 👍

authors: mjaschen petrknap

repo: mjaschen/phpgeo


text:
Git polling not detecting changes

The git polling log shows:
Started on Apr 17, 2015 4:18:00 PM
Using strategy: Default
[poll] Last Built Revision: Revision 7af9deed7b1dfc7fb33e0e1b1025c326b18ef826 (refs/remotes/origin/release/3.2.9)
using GIT_SSH to set credentials Linux-Client Key For Stash
 > /usr/bin/git --version # timeout=10
 > /usr/bin/git -c core.askpass=true ls-remote -h ssh://xxxx@xxxx.xxxxxx.com:7999/xxxxxx/xxxxx.git # timeout=10
Done. Took 1.6 sec
No changes

When I look at other projects they will have something like the following before the "Done. Took 1.6 sec" line:
[poll] Latest remote head revision on origin/develop is: 2d0036211e1c3b261c61d8d236ed56cec52416d2

I'm having the same issue, if I do 'git status' on the workspace of that specific branch it says that the HEAD is detached.

Yea, we're also using Stash.

This seems to be a bug in the Git plugin:
https://issues.jenkins-ci.org/browse/JENKINS-27332

authors: Kolky gorbeia khendricks

repo: mjdetullio/multi-branch-project-plugin


text:
Přidávání do jednoho CSV souboru

Jde o to, aby pak šlo data snáze hromadně vyhodnocovat.
Pokaždé, když se klikne na "Save report to CSV" ukládat kromě normálního reportu ještě přidat jeden řádek do dalšího souboru. Ten by měl vypadat nějak takhle:
http://nbviewer.ipython.org/urls/dl.dropbox.com/s/ot5k7gb7djkbln5/2015-konz-JK.ipynb?dl=0

Hotovo, ukládá se do souboru statsRecords.csv. Uložení se spustí kliknutím na jakékoliv tlačítko na uložení výsledků, přičemž se provede maximálně jednou za chod programu (aby nebyli duplikátní záznamy).

Chytré, to mě nenapadlo. Bezva.

authors: kunesj mjirik

repo: mjirik/lisa


text:
Cannot create bindings

Hi I did as you suggest in the wiki: https://github.com/mk-5/gdx-fireapp/wiki/iOS-Firebase-SDK-installation step4
When i try to create the bindings I get this error:
fatal error: 'FirebaseAnalytics/FirebaseAnalytics.h' file not found

More detailed:
2017-10-04 12:51:55:787 +0200 [main] DEBUG org.moe.natjgen.Main - NatJGen started
2017-10-04 12:51:56:466 +0200 [main] DEBUG org.moe.natjgen.Indexer - Clang options: [-arch, arm64, -x, objective-c, -fmessage-length=133, -std=c99, -fobjc-arc, -fpascal-strings, -DNS_BLOCK_ASSERTIONS=1, -DOBJC_OLD_DISPATCH_PROTOTYPES=0, -isysroot, /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk, -miphoneos-version-min=9.0, -I/var/folders/m0/mc2v3k1d16b5ftc1n59dmgz40000gn/T/NatJGen354660108793050899, -F/Users/tom/fireapp/ios-moe/xcode/Pods/FirebaseCore/Frameworks, -F/Users/tom/fireapp/ios-moe/xcode/Pods/FirebaseAnalytics/Frameworks/frameworks, -F/Users/tom/fireapp/ios-moe/xcode/Pods/FirebaseAuth/Frameworks/frameworks, -F/Users/tom/fireapp/ios-moe/xcode/Pods/FirebaseDatabase/Frameworks, -F/Users/tom/fireapp/ios-moe/xcode/Pods/FirebaseStorage/Frameworks/frameworks, -F/Users/tom/fireapp/ios-moe/xcode/Pods/FirebaseMessaging/Frameworks/frameworks, -F/Users/tom/fireapp/ios-moe/xcode/Pods/FirebaseCrash/Frameworks]
/var/folders/m0/mc2v3k1d16b5ftc1n59dmgz40000gn/T/tempfile7002671322241956770.m:3:9: fatal error: 'FirebaseAnalytics/FirebaseAnalytics.h' file not found
2017-10-04 12:51:57:347 +0200 [main] DEBUG org.moe.natjgen.Indexer - Indexing translation unit
2017-10-04 12:52:01:357 +0200 [main] DEBUG org.moe.natjgen.Indexer - Clang options: [-arch, armv7, -x, objective-c, -fmessage-length=133, -std=c99, -fobjc-arc, -fpascal-strings, -DNS_BLOCK_ASSERTIONS=1, -DOBJC_OLD_DISPATCH_PROTOTYPES=0, -isysroot, /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk, -miphoneos-version-min=9.0, -I/var/folders/m0/mc2v3k1d16b5ftc1n59dmgz40000gn/T/NatJGen354660108793050899, -F/Users/tom/fireapp/ios-moe/xcode/Pods/FirebaseCore/Frameworks, -F/Users/tom/fireapp/ios-moe/xcode/Pods/FirebaseAnalytics/Frameworks/frameworks, -F/Users/tom/fireapp/ios-moe/xcode/Pods/FirebaseAuth/Frameworks/frameworks, -F/Users/tom/fireapp/ios-moe/xcode/Pods/FirebaseDatabase/Frameworks, -F/Users/tom/fireapp/ios-moe/xcode/Pods/FirebaseStorage/Frameworks/frameworks, -F/Users/tom/fireapp/ios-moe/xcode/Pods/FirebaseMessaging/Frameworks/frameworks, -F/Users/tom/fireapp/ios-moe/xcode/Pods/FirebaseCrash/Frameworks]
/var/folders/m0/mc2v3k1d16b5ftc1n59dmgz40000gn/T/tempfile7002671322241956770.m:3:9: fatal error: 'FirebaseAnalytics/FirebaseAnalytics.h' file not found

This is the app I am working with to test: Simple gds app.
https://github.com/TomGrill/gdx-fireapp-test

Hi! Thanks for reporting!
and nice to meet you! I use some of your libs in my projects.
It is a problem with framework path inside firebase.nbc file.
Your Pods is installed inside
FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework -
and path inside firebase.nbc is:
FirebaseAnalytics/Frameworks/frameworks/FirebaseAnalytics.framework.
Is same issue for FirebaseStorage, FirebaseAuth, FirebaseMessaging
Please try to correct this paths - and then bindings will be generated.
I send pull-request to gdx-fireapp-test repo with it.
I don't know exactly why it was happen, and why this paths are different sometimes.
I will write a note about it at Wiki page until i figure out whats going on and i will  do some extra tests. If correct paths are without frameworks directory inside - i will correct firebase.nbc paths in repo.
Which version of Pods do you have? (just call pod --version in terminal)

pod --version: 1.3.1
Currently trying the PR

Ok, this are my resulsts.
Manually adjusting the correct paths did work. Not sure why the wrong paths appeared.
After I pulled your PR it still did not work. I adjusted the paths manually in the nbc windows and then everything went through. Kinda strange.
Maybe some invisible specialchars cause the problem because the manually working file is exactly the same you served with the PR.

Ok seems to work so far. I like the using the pod command, I will try to implement that in my extensions as well.

Mhmm yes, this is strange.
I installed pods via pod version 1.1.1.
I will do some tests with it, but at this point notes at wiki page must be enough.

The pods frameworks paths was corrected in the 1.2.0 release, so i close this issue.


text:
TimeoutError: The client socket has timed out after 1800s while trying to connect to (127.0.0.1, 57388)

Anyone meets this problem when training?
File "/data/anaconda3/lib/python3.8/site-packages/torch/distributed/distributed_c10d.py", line 595, in init_process_group
store, rank, world_size = next(rendezvous_iterator)
store, rank, world_size = next(rendezvous_iterator)
File "/data/anaconda3/lib/python3.8/site-packages/torch/distributed/rendezvous.py", line 257, in _env_rendezvous_handler
store = _create_c10d_store(master_addr, master_port, rank, world_size, timeout)
File "/data/anaconda3/lib/python3.8/site-packages/torch/distributed/rendezvous.py", line 188, in _create_c10d_store
return TCPStore(
TimeoutError: The client socket has timed out after 1800s while trying to connect to (127.0.0.1, 57388).
store = _create_c10d_store(master_addr, master_port, rank, world_size, timeout)
File "/data/anaconda3/lib/python3.8/site-packages/torch/distributed/rendezvous.py", line 188, in _create_c10d_store
return TCPStore(
TimeoutError: The client socket has timed out after 1800s while trying to connect to (127.0.0.1, 57388)

I have the same issue. Did you solve the problem?

我有同样的问题。你解决了问题吗？

I have the same issue too. Did you solve the problem?

repo: mk-minchul/AdaFace


text:
Update to Bootswatch 4?

With MkDocs 1.1, the built-in mkdocs theme will use Bootswatch 4. We'll either need to update the themes here or stop deriving from the mkdocs theme. However, one complication is that the Amelia and Readable themes don't seem to exist in Bootswatch 4. What should we do with those? Just delete them? Trying to update the theme CSS seems like a lot of work...
@waylan Any thoughts? I did a proof of concept with one theme and it seemed fairly straightforward, so as long as we're ok with killing Amelia and Readable, this shouldn't be too bad. Plus, we'd be able to (relatively) easily add all the new Bootswatch themes to this project...

I suppose another option would be for Amelia and Readable to stop inheriting from the mkdocs theme, though it might be better to just get rid of them to reduce the maintenance burden...

I see two options:

Drop support for the themes which Bootswatch dropped.
Keep the old themes.

I'm inclined to do the latter. We can just keep the old CSS and JS in those themes and document that they don't support newer Bootswatch stuff.

Another option might be to make a mkdocs-bootswatch3 package that just makes a copy of the old mkdocs theme and inherits from that. In addition to providing a long-term home for Amelia and Readable, this could be useful for people who can't use Bootstrap 4 for whatever reason (my understanding is that it breaks multi-level dropdowns in the navbar). It'd also provide a somewhat-nice solution to https://github.com/mkdocs/mkdocs/issues/1865, since any third-party theme out there inheriting from the mkdocs theme could instead inherit from mkdocs-classic or whatever we call it.

That seems like a reasonable alternative. However, I do not have the time to work on it. If you want to take it on, go ahead. When you get it set up, let me know and we can see about transferring it to a new repo under the mkdocs organization here on GitHub.

@waylan I'll try and get this set up in the coming week or two. It should be relatively straightforward, since with #55 merged, everything in this repo is fully-compatible with MkDocs 1.0.x as far as I can tell. I think it's just a matter of duplicating this repo, making a few bookkeeping changes, and copying the 1.0.x mkdocs theme in.

Ok, this is pretty much ready: https://github.com/jimporter/mkdocs-bootswatch/tree/bootswatch-4
I'll file a PR once #57 lands and I get the chance to clone this repo to make mkdocs-bootswatch-classic.

@waylan Ok, here's the repo for the "classic" versions of the themes: https://github.com/jimporter/mkdocs-bootswatch-classic
I haven't done anything with mkdocs-bootstrap, but I think I'll update it to Bootstrap 4 and then put the "classic" version in mkdocs-bootswatch-classic for simplicity...

Resolved in #58

authors: jimporter waylan

repo: mkdocs/mkdocs-bootswatch


text:
Allow to use regular expressions for redirects

Right now it only allows a 1-1 correspondance. Sometimes when migrating documentation you may find yourself that externally referenced links may be broken.
If this plugin allows you to select regular expressions, it removes the need of any external redirection, such as one you could do by yourself with nginx.

Also be interested in this.

+1 for our docs at https://docs.ultralytics.com

This is impossible to implement.
MkDocs just writes a bunch of HTML files, that's it.
In order to redirect 'old/*': 'new/$1', an infinite number of pages need to be generated - pages named old/a.html, old/b.html, old/c.html, ..., old/zzzzzz[...]zzzz.html.

Although if we think about it in the opposite direction--
'samples/eventing/$1': 'eventing/samples/(.*)'
then maybe there's something to it.
For every page eventing/samples/* that exists currently create a redirect-from page samples/eventing/$1

What about use of js? I think this could work for dynamic redirects?

Couldn't we use a script on the 404.html template, to perform the redirect using JavaScript?

Couldn't we use a script on the 404.html template, to perform the redirect using JavaScript?

Issue I see here is hosts that don't use the 404 page.
An example is codeberg pages. Their system would serve their own 404 instead of the 404.html of mkdocs.

Yeah, I was just investigating on the GitHub actions side (which is probably the vast majority of public MkDocs websites), and it works by just serving the 404.html page for any unknown path (and will always show a 404 HTTP status for it).
I am not clear if client-side redirects on 404 pages are respected in the same way as 30X codes (for Google's SEO purposes), but it's probably the best option we have to allow complex, regex-based redirects.

Looking into it more, it seems like even the existing mkdocs-redirects are (from Google's perspective) returning the wrong status code for a redirect, specifically a 200 (success) code.
Currently, we are avoiding the "duplicate content" issue by setting the <link rel="canonical" href="../target-of-redirect/">. It seems like Google does allow injecting canonical tags dynamically with JavaScript, but I slightly worry about the impact of setting a canonical tag on a page which returns 404 status.

authors: Andre601 JMuff22 djuarezg glenn-jocher oprypin thesuperzapper

repo: mkdocs/mkdocs-redirects


text:
mkdocs serve does not watch for changes in mkdocstrings

Usually when I view mkdocs-generated documenation during development, the server will watch for changes and the page will auto-reload when changes are detected. Using mkdocstrings, I have not seen this happening, and to view changes I have to kill the mkdocs serve process and restart it.

Hey, I noticed one bug due to an obscure Numpy bug.
If numpy is being imported by any of the modules being documented (or any of their dependencies), it will throw a RuntimeError exception:
[E 200304 13:33:06 ioloop:909] Exception in callback <bound method LiveReloadHandler.poll_tasks of <class 'livereload.handlers.LiveReloadHandler'>>
    Traceback (most recent call last):
      File "/home/jaime/.conda/envs/kinoml/lib/python3.7/site-packages/tornado/ioloop.py", line 907, in _run
        return self.callback()
      File "/home/jaime/.conda/envs/kinoml/lib/python3.7/site-packages/livereload/handlers.py", line 69, in poll_tasks
        filepath, delay = cls.watcher.examine()
      File "/home/jaime/.conda/envs/kinoml/lib/python3.7/site-packages/livereload/watcher.py", line 105, in examine
        func()
      File "/home/jaime/.conda/envs/kinoml/lib/python3.7/site-packages/mkdocstrings/plugin.py", line 85, in unload_and_rebuild
        builder()
      File "/home/jaime/.conda/envs/kinoml/lib/python3.7/site-packages/mkdocs/commands/serve.py", line 114, in builder
        build(config, live_server=live_server, dirty=dirty)
      File "/home/jaime/.conda/envs/kinoml/lib/python3.7/site-packages/mkdocs/commands/build.py", line 270, in build
        nav = config['plugins'].run_event('nav', nav, config=config, files=files)
      File "/home/jaime/.conda/envs/kinoml/lib/python3.7/site-packages/mkdocs/plugins.py", line 94, in run_event
        result = method(item, **kwargs)
      File "/home/jaime/.conda/envs/kinoml/lib/python3.7/site-packages/mkdocstrings/plugin.py", line 110, in on_nav
        root_object = self.documenter.get_object_documentation(import_string)
      File "/home/jaime/.conda/envs/kinoml/lib/python3.7/site-packages/mkdocstrings/documenter.py", line 310, in get_object_documentation
        module, obj = import_object(import_string)
      File "/home/jaime/.conda/envs/kinoml/lib/python3.7/site-packages/mkdocstrings/documenter.py", line 585, in import_object
        parent_module = importlib.import_module(parent_module_path)
      File "/home/jaime/.conda/envs/kinoml/lib/python3.7/importlib/__init__.py", line 127, in import_module
        return _bootstrap._gcd_import(name[level:], package, level)
      File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
      File "<frozen importlib._bootstrap>", line 983, in _find_and_load
      File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
      File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
      File "<frozen importlib._bootstrap_external>", line 728, in exec_module
      File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
      File "/home/jaime/devel/py/openkinome/kinoml/kinoml/core/complex.py", line 2, in <module>
        from .ligand import Ligand
      File "/home/jaime/devel/py/openkinome/kinoml/kinoml/core/ligand.py", line 3, in <module>
        from openforcefield.topology import Molecule
      File "/home/jaime/.conda/envs/kinoml/lib/python3.7/site-packages/openforcefield/topology/__init__.py", line 1, in <module>
        from openforcefield.topology.molecule import (
      File "/home/jaime/.conda/envs/kinoml/lib/python3.7/site-packages/openforcefield/topology/molecule.py", line 36, in <module>
        import numpy as np
      File "/home/jaime/.conda/envs/kinoml/lib/python3.7/site-packages/numpy/__init__.py", line 142, in <module>
        from . import core
      File "/home/jaime/.conda/envs/kinoml/lib/python3.7/site-packages/numpy/core/__init__.py", line 17, in <module>
        from . import multiarray
      File "/home/jaime/.conda/envs/kinoml/lib/python3.7/site-packages/numpy/core/multiarray.py", line 14, in <module>
        from . import overrides
      File "/home/jaime/.conda/envs/kinoml/lib/python3.7/site-packages/numpy/core/overrides.py", line 47, in <module>
        """)
    RuntimeError: implement_array_function method already has a docstring

I think this is due to the fact you reload all modules upon save to obtain the potentially new changes. Is there any way to whitelist numpy from this process?

Hm, I patched this in and seems to work. plugin.py at line 74:
    def on_serve(self, server, config, **kwargs):
        builder = list(server.watcher._tasks.values())[0]["func"]

        def unload_and_rebuild():
            diff = set(sys.modules.keys()) - self._sys
            log.info(
                f"mkdocstrings: Unloading modules loaded after mkdocstrings plugin was instantiated ({len(diff)} modules)"
            )
            for module in diff:
                if "numpy" in module:
                    continue
                del sys.modules[module]
            self.clear()
            builder()

        for element in self.config["watch"]:
            log.info(f"mkdocstrings: Adding directory '{element}' to watcher")
            server.watch(element, unload_and_rebuild)
        return server

Ultimately we won't need this module reloading hack (see https://github.com/pawamoy/mkdocstrings/issues/28#issuecomment-582141157), but until then I can accept this patch if you want to send a PR :slightly_smiling_face:

Submitted! :)

New architecture is almost ready. The data collection is done in a subprocess, with pytkdocs, and so this issue should be resolved, therefore I'm closing it. We'll open a new one if similar problem appear.

Still experiencing this issue

Hi @airtonix, please open a new issue with more info :slightly_smiling_face:

authors: airtonix cs01 jaimergp pawamoy

repo: mkdocstrings/mkdocstrings

license: ISC


text:
Athena - Simba driver. Connection string limit of 600 chars is too short

I can see from the code that there is a hard limit of 600 characters on the length of the connection string.
600 chars is generous, but when using the Simba ODBC driver with a DSN-less connection string, it's perfectly possible to exceed this limit.
I'm using STS assume role, so the driver requires a SessionToken value. Since this is about 300 characters long, it's very easy to breach the 600 char limit.
Can the buffer length be increased to say 1024??
And can the error message be updated from a simple 'too long' to include what the limit actually is.

The limit appears to be arbitrary --- nothing else in pyODBC places a limit of 600 characters on the connection string. Notably, there is an absence of fixed-size buffers or anything similar that could impose such limits.
PR #430 has removed the limit completely from pyODBC, please try it.
Note that driver managers and drivers may have their own limits (e.g. unixODBC's limit is 2K, and Windows' DM may have a limit of 1K)

@v-chojas thanks for such a quick response.
It's a while since there's been a release. I'm building a docker container and it would be a lot easier if this fix could be pulled in from an released package. Does @mkleehammer know when the next release is likely to be??

Just a note that the Windows article @v-chojas cited says

If an ODBC driver supports connection strings longer than 1024 characters, you can use a data source name (DSN) to exceed the maximum length limitation.

#430 was released in 4.0.24.
Thanks @v-chojas for the fix

authors: gordthompson mkleehammer stephenconnolly1 v-chojas

repo: mkleehammer/pyodbc


text:
Copper with firefox 52 on raspberry pi3

Hi,
For a school project i need to use Copper with firefox on a  raspberry Pi 3B with ubuntu mate.
To use Copper, i downgraded firefox to firefox 52. Then i followed instructions to install copper but any Add ons appear on firefox.
I don"t  what is wrong, so i need help...
Sorry if my english isn't very correct, i'm a french guy =)

Have you read https://github.com/mkovatsc/Copper#not-supported-by-firefox-56--webextensions-api?
The about:config steps are important ;)

yes i did.
What i`ve done :

Downgrade firerox to firefox 52.02(32 bit)
2.Download Copper directory
3.Create the copper@vs.inf.ethz.ch file like this (see image)

my Copper directory is in my Download directory, so i have edited the file like this :
~\Téléchargements\Copper\
5.Then I have allowed unsigned add-ons:

finally i restart firefox but i have this message in extensions field
you don't have any add-ons of this type installed

Have you disabled auto-updates? It updates very persistently if you are online.. maybe double-check your current version.
I haven't worked on this in a while. Double-check if the trailing slash in the path makes a different. And at some point, an "autoreg" file was needed. Maybe you can retry with version 55.

yes, auto-update is disable,my firefox is still in version 52.
I already tried with differents path...
~\Téléchargements\Copper\ and '~/Téléchargements/Copper/' but the issue is the same :/
i wanted to install version but i only found a 52 version for a raspbian system...

Finally i found the problem, my bad.
the copper@vs.inf.ethz.ch  file wasn't at the good place. I have installed it at ~/.mozilla/firefox/xxxxxxxx.default/ instead of ~/.mozilla/firefox/xxxxxxxx.default/extensions/.
Then have to replace back slash by normal slash for the path to the Copper sources.
Now Copper is available.

Hello Shellkan, I'm having the same problem as you are at the moment and I was just wondering what you did after typing the pico command to make the copper@vs.inf.ethz.ch file. I'm redirected into the GNU nano terminal and I was wondering if you changed the file or anything. Thanks for your help.

authors: Shellkan ameerhazo mkovatsc

repo: mkovatsc/Copper


text:
Inquiry about nn.Module's get_buffer, register_buffer, and register_parameter equivalents in mlx.

I am looking for functionalities equivalent to PyTorch's nn.Module methods: get_buffer(target), register_buffer(name, tensor, persistent=True), and register_parameter(name, param).
Requested Information

get_buffer(target) Equivalent:

Does MLX provide a method similar to PyTorch's get_buffer(target)? This method is used to retrieve a buffer by its name or type.

register_buffer(name, tensor, persistent=True) Equivalent:

This method is used to register a persistent buffer, typically a non-parameter tensor.

register_parameter(name, param) Equivalent:

This method is used to register a learnable parameter within a module.

If I may point you to #127 for the full reply.
In short, all member arrays are parameters. Arrays can be "frozen" to become buffers. Private members are treated as constants meaning that they are not returned neither by trainable_parameters() nor by parameters().
I will close the issue but feel free to reopen it if you think that my reply above doesn't cover your question.

@angeloskath Thank you for your prompt response, and I appreciate the information provided in #127. Regarding model parameters that need to be saved and restored in the state dict, an illustrative example of a buffer can be found in the _BatchNorm module. In this module, the running_mean, running_var, are registered as buffers and get updated by accumulating statistics from the data forwarded through the layer. this information in the running_mean, running_var are then used when doing inference or when the model in eval mode.  register_buffer(name, tensor) can be used in that case, WDYT?

repo: ml-explore/mlx


text:
2 tests failed for 0.0.6.dev20231223+f91f450

I just did a git pull and got 0.0.6.dev20231223+f91f450. Then I did:
env CMAKE_BUILD_PARALLEL_LEVEL="" pip install -e .
pip install ".[testing]"
python -m unittest discover python/tests
And I got failures:
======================================================================
FAIL: test_log_cosh_loss (test_nn.TestNN)
Traceback (most recent call last):
File ".../mlx/python/tests/test_nn.py", line 600, in test_log_cosh_loss
self.assertEqual(loss, 0.433781)
AssertionError: array(0.433781, dtype=float32) != 0.433781
======================================================================
FAIL: test_scans (test_ops.TestOps)
Traceback (most recent call last):
File ".../mlx/python/tests/test_ops.py", line 1307, in test_scans
self.assertTrue(mx.array_equal(c1[:, :, :-1], c2[:, :, 1:]))
AssertionError: array(false, dtype=bool) is not true

Ran 193 tests in 30.447s
FAILED (failures=2)

Could you share your OS?

For test_nn.py line 600, this test appeared to have 3 problems:

the loss returned an array of shape [], is this intended.
using .item(), like in pytorch, make it return a float. If (1) is intended, then this should be done and it is missing from the test
A strict equality test for a float may not be robust. Suggest using np.isclose or mx equivalent.

I am just starting out and maybe get some real project running, likely will stay away from the bleeding edge a bit.
but if mlx stepped in, I would be happy to help fix, as motivation to get up to speed.

Hmm, the same test failed for me also. Curious that the CI didn't catch it..
I don't see the scan failure. Is that one consistently failing for you?

@awni
OS: 13.5 (22G74)
and yes, I know I should start upgrading.

Hmm, the same test failed for me also. Curious that the CI didn't catch it..
I don't see the scan failure. Is that one consistently failing for you?

I only ran the test once before and it worked. that was before I did git pull today and it was last week I believed. Back then, I have run linear regression and MLP tutorial (MNIST) and they seemed ok.

ok, I don't know mlx did probably some op overloading, looks like you can compare with "==" for an array with shape [] and just a float. but since this stuff is float32, the test did a dicey thing using equality check. I did this instead and it worked:
np.allclose(loss, 0.433781)
so there likely not a big issue, it is a precision type mismatch kind of failure
but not sure about the 2nd test that failed, will check it out later.

Yes the second one is more concerning for me. I can't reproduce it, but I'm hoping its a consistent failure for you o/w there may be some nondeterminism which always makes things trickier

Yes the second one is more concerning for me. I can't reproduce it, but I'm hoping its a consistent failure for you o/w there may be some nondeterminism which always makes things trickier

I just reran:
python -m unittest discover python/tests
and indeed, this is not deterministic. I now only failed:
mlx/python/tests/test_nn.py", line 600, in test_log_cosh_loss
self.assertEqual(loss, 0.433781)
AssertionError: array(0.433781, dtype=float32) != 0.433781

Ran 193 tests in 23.375s
FAILED (failures=1)

ok, those related bunch of tests probably all suffered from this nondeterminism, I just ran another one and this time, something else failed (diff than before):
Traceback (most recent call last):
File "mlx/python/tests/test_ops.py", line 1318, in test_scans
self.assertTrue(mx.array_equal(c1, c2))
AssertionError: array(false, dtype=bool) is not true

to add more context if you want to debug with: my hardware is M2 Max with 96gb.

I found that the prob of failures will go up if I am running some model inference code in a VSCode jupyter notebook, such that all GPUs were apparently fully engaged. Just speculate this may be happening if gpu load or mem are under stress?
if I don't have such workload, I actually am not able to reproduce the test_ops.py once.

Interesting. Is it the same test that's failing for you? The slice test?
Namely:
Traceback (most recent call last):
File ".../mlx/python/tests/test_ops.py", line 1307, in test_scans
self.assertTrue(mx.array_equal(c1[:, :, :-1], c2[:, :, 1:]))
AssertionError: array(false, dtype=bool) is not true

Interesting. Is it the same test that's failing for you? The slice test?
Namely:
Traceback (most recent call last):
File ".../mlx/python/tests/test_ops.py", line 1307, in test_scans
self.assertTrue(mx.array_equal(c1[:, :, :-1], c2[:, :, 1:]))
AssertionError: array(false, dtype=bool) is not true

Its a diff one.
======================================================================
FAIL: test_scans (test_ops.TestOps)
Traceback (most recent call last):
File .../mlx/python/tests/test_ops.py", line 1318, in test_scans
self.assertTrue(mx.array_equal(c1, c2))
AssertionError: array(false, dtype=bool) is not true

CC @angeloskath looks like we might have some non-deterministic failure in the scan
@kechan do you see this when your run the tests standalone or just running the full python test suite?
Thanks for you help investigating it!

FWIW I am able to get the test on line 1302 to fail somewhat regularly. I inspected the differences and it looks like it's a numerical tolerance thing, usually fails for indices deeper in the scan and the differences are small.
For example these two fail with atol=1e-4, rtol=1e-4:
np=-0.988324761390686
mlx=-0.9881017208099365

It never fails if I change the tolerances to 1e-3..

It never fails if I change the tolerances to 1e-3..

I tried "python -m unittest test_ops.py" a few times without that heavy background workload, and its always ok now:

Ran 76 tests in 0.879s
OK

1e-3 looks like a very big tolerance. Since it passed 100% when I don't have that inference workload, it just doesn't smell right. Although I don't know details of the tests, they seemed to involve cumulative math ops? which probably will surface precision issues much more sensitively. Also, I am able to reproduce very regularly (almost certainty) if I have heavy model inference on the MPS/GPU.

Since it passed 100% when I don't have that inference workload, it just doesn't smell right.

This was not the case for me. It fails about 50% of the time with no heavy workload 🤔

Although I don't know details of the tests, they seemed to involve cumulative math ops? which probably will surface precision issues much more sensitively.

Yes it's a cumulative sum that's failing. Which is an operation which is pretty sensitive to the order of accumulation (which will be quite different for the parallel version).

1e-3 looks like a very big tolerance.

Yea, we should do some back of the envelope analysis to determine what's reasonable here. It might be too big, I'm not sure. The way it fails looks more like an accumulation of rounding errors (or some other systematic issue). It's often just under the tolerance and often just over, but never way under.

authors: awni kechan


text:
Typeclasses & Codegen

This is a refocused version of #8. I'm closing #8 and opening this to help refocus discussion, given that we've split out parts of #8 and almost all of the comments there are outdated in one way or another.
NOTE: I merged in #24 (because I need it to sanity check that things work here). Please direct all discussion of things in lambda-buffers-common to that PR.
NOTE: This needs some cleaning up, which I will do tomorrow. Please focus discussion on the substantive content of the PR and not on (e.g.) missing export lists or disabled warnings or whatever. I promise I'll catch most/all of those tomorrow :P
This PR contains an initial implementation of code generation and typeclass machinery. Here's a brief explanation of the modules:
Common

LambdaBuffers.CodeGen.Common.Compat contains functions for translating the lambda-buffers-common types into the representation used by the rest of the machinery in lambda-buffers-codegen
LambdaBuffers.CodeGen.Common.Match contains a function for determining whether one pattern instance is a substitution instance of another, which is used in several places.
LambdaBuffers.CodeGen.Common.Types contains the basic Pat pattern type used in several places.

Gen

LambdaBuffers.CodeGen.Gen.Generator contains the basic machinery for operating on patterns. This is adapted from an applicative parser implementation for succinctness, reusability of codegen components, and to provide an ergonomic interface when writing code generator functions.
LambdaBuffers.CodeGen.Gen.Generator.PP contains small formatting utilities (generally speaking relevant to Rust codegen) that abstract out of some common patterns encountered when writing the Rust example
LambdaBuffers.CodeGen.Gen.RustGen.RustTy contains an example implementation of a Rust code generator for types (not instances, see next item in list) using the machinery.
LambdaBuffers.CodeGen.Gen.RustGen.Instances.Eq contains an example implementation of a code generator for Eq instances in Rust

Resolve

LambdaBuffers.CodeGen.Resolve.Rules contains the basic data types used to represent instance rules, type classes, and constraints.
LambdaBuffers.CodeGen.Resolve.Solve contains basic constraint solving logic. On its own, this doesn't do anything particularly interesting, but is a core component of the deriver (see next list item)
LambdaBuffers.CodeGen.Resolve.Derive contains the deriving logic, which integrates the code generation and constraint solving tools in order to attempt to derive the instances indicated by users

The typeclass side of things is explained in painstaking detail in the typeclass documentation. Whatever we end up doing for typeclasses is going to have to look something like what I have here.
The codegen side of things, by contrast, was more brainstorm-ey and we might be able to do better. I think what I did ends up being more succinct/ergonomic/reusable than a naive implementation would but eh it needs some input from y'all.

ps @bladyjoker I don't understand how to use the new buildAbstraction nix function so I reverted to the old style for codegenBuild. Feel free to fix or lmk how the new thing works

repo: mlabs-haskell/lambda-buffers


text:
[Question] Why does the server ignore my request under speculative decoding?

❓ General Questions
main model: mistral-large-instruct-2407-q4f16_1
draft model: Mistral-7B-Instruct-v0.3-q4f16_1-MLC
I cannot use speculative decoding on my AMD GPU server. The server is running, but there is no response to any chat requests, and there are no any error outputs. no output similar to INFO:     192.168.1.4:34425 - "POST /v1/chat/completions HTTP/1.1" 200 OK. I have already updated ROCm to 6.2 and installed the latest pre-built mlcllm Python package.

but there is no response to any chat requests

Hi @Erxl do you mind providing a bit more context? Particularly it would be helpful if you can share some example code which you feel there is no response. On the other hand, if you don't use speculative decoding, does the server work well?

@MasterJH5574 我已经解决了这个问题，使用使用server mode代替默认的local mode就可以解决。

@Erxl Thanks for the update. Glad that it works out. Yes the local mode has a limited max batch size setting, and the speculative decoding won't enabled very effectively.

repo: mlc-ai/mlc-llm


text:
Regarding the final result of energy consumption calculation

@dsblank @Lothiraldan @ndevenish @mp15 @guylifshitz if i use the following way to record my energy consumption :
tracker.start()
start_time = time.time()
ppl = llama_eval(model, test_loader, device)
end_time = time.time()
tracker.stop()

During operation, There are two places that output energy_ Suggestion:
one is on the command line:
[codecarbon INFO @ 14:57:11] Energy consumed for RAM : 0.002054 kWh. RAM Power : 46.99779653549194 W
[codecarbon DEBUG @ 14:57:11] RAM : 47.00 W during 7.40 s [measurement time: 0.0005]
[codecarbon INFO @ 14:57:11] Energy consumed for all GPUs : 0.020180 kWh. Total GPU Power : 471.3557745071085 W
[codecarbon DEBUG @ 14:57:11] GPU : 471.36 W during 7.40 s [measurement time: 0.3941]
[codecarbon INFO @ 14:57:11] Energy consumed for all CPUs : 0.001864 kWh. Total CPU Power : 42.5 W
[codecarbon DEBUG @ 14:57:11] CPU : 42.50 W during 7.80 s [measurement time: 0.0001]
[codecarbon INFO @ 14:57:11] 0.024098 kWh of electricity used since the beginning.
[codecarbon DEBUG @ 14:57:11] last_duration=7.402188777923584
------------------------
[codecarbon DEBUG @ 14:57:11] We apply an energy mix of 544 g.CO2eq/kWh for China
[codecarbon DEBUG @ 14:57:11] EmissionsData(timestamp='2024-01-25T14:57:11', project_name='codecarbon', run_id='0a42768f-7357-4899-a9c6-201193dd2df1', duration=157.90563035011292, emissions=0.013118096917863411, emissions_rate=8.307554891347186e-05, cpu_power=42.5, gpu_power=471.3557745071085, ram_power=46.99779653549194, cpu_energy=0.0018641464490029552, gpu_energy=0.020179937255048408, ram_energy=0.002054339049231724, energy_consumed=0.02409842275328308, country_name='China', country_iso_code='CHN', region='', cloud_provider='', cloud_region='', os='Linux-5.15.0-91-generic-x86_64-with-glibc2.35', python_version='3.10.13', codecarbon_version='2.3.2', cpu_count=112, cpu_model='Intel(R) Xeon(R) Gold 6330 CPU @ 2.00GHz', gpu_count=4, gpu_model='4 x NVIDIA A40', longitude=113.722, latitude=34.7732, ram_total_size=125.32745742797852, tracking_mode='machine', on_cloud='N', pue=1.0)
[codecarbon DEBUG @ 14:57:11] We apply an energy mix of 544 g.CO2eq/kWh for China
[codecarbon DEBUG @ 14:57:11] EmissionsData(timestamp='2024-01-25T14:57:11', project_name='codecarbon', run_id='0a42768f-7357-4899-a9c6-201193dd2df1', duration=37.83032846450806, emissions=0.0031401651014669844, emissions_rate=8.300655132859997e-05, cpu_power=42.5, gpu_power=471.3557745071085, ram_power=46.99779653549194, cpu_energy=0.00044629870156447115, gpu_energy=0.00483430331188317, ram_energy=0.0004879958711441904, energy_consumed=0.005768597884591827, country_name='China', country_iso_code='CHN', region='', cloud_provider='', cloud_region='', os='Linux-5.15.0-91-generic-x86_64-with-glibc2.35', python_version='3.10.13', codecarbon_version='2.3.2', cpu_count=112, cpu_model='Intel(R) Xeon(R) Gold 6330 CPU @ 2.00GHz', gpu_count=4, gpu_model='4 x NVIDIA A40', longitude=113.722, latitude=34.7732, ram_total_size=125.32745742797852, tracking_mode='machine', on_cloud='N', pue=1.0)
[codecarbon DEBUG @ 14:57:13] ApiClient - Successful upload emission {'timestamp': '2024-01-25T14:57:11.858266+00:00', 'run_id': '0a42768f-7357-4899-a9c6-201193dd2df1', 'duration': 37, 'emissions_sum': 0.0031401651014669844, 'emissions_rate': 8.300655132859997e-05, 'cpu_power': 42.5, 'gpu_power': 471.3557745071085, 'ram_power': 46.99779653549194, 'cpu_energy': 0.00044629870156447115, 'gpu_energy': 0.00483430331188317, 'ram_energy': 0.0004879958711441904, 'energy_consumed': 0.005768597884591827} to https://api.codecarbon.io/emission

Another one in the output file emissions.csv:
2024-01-25T14:57:11,codecarbon,0a42768f-7357-4899-a9c6-201193dd2df1,157.90563035011292,0.0131180969178634,8.307554891347186e-05,42.5,471.3557745071085,46.99779653549194,0.0018641464490029,0.0201799372550484,0.0020543390492317,0.024098422753283,China,CHN,,,,Linux-5.15.0-91-generic-x86_64-with-glibc2.35,3.10.13,2.3.2,112.0,Intel(R) Xeon(R) Gold 6330 CPU @ 2.00GHz,4.0,4 x NVIDIA A40,113.722,34.7732,125.32745742797852,machine,N,1.0

I want to know which is the final result of energy consumption?

Hi, first of all it seems that you are sending results to the API (see doc about API here , please note that this data is sent to a public database that is used for the public dashboard. I can see from you stacktrace that you are using a project named codecabon but I do not know in which organisation this project is. If you know the organisation you're using you can check your results in the dashboard. If you don't know which organisation you used , the only way to handle Organization / Team / Projects for now is through OpenAPI doc, we're currently updating the python API Client so you can have CLI commands to do so.
On to your question now, the results in your emissions.csv file should be the same as those sent to the API , do you notice any differences ?

Hi, first of all it seems that you are sending results to the API (see doc about API here , please note that this data is sent to a public database that is used for the public dashboard. I can see from you stacktrace that you are using a project named codecabon but I do not know in which organisation this project is. If you know the organisation you're using you can check your results in the dashboard. If you don't know which organisation you used , the only way to handle Organization / Team / Projects for now is through OpenAPI doc, we're currently updating the python API Client so you can have CLI commands to do so.
On to your question now, the results in your emissions.csv file should be the same as those sent to the API , do you notice any differences ?

only have a little differences, now i think that it has no effect, Thanks

authors: LuisBlanche qxpBlog


text:
Nvidia Llama2_70B incorrect model hash

Hello, I'm getting an incorrect hash after downloading the model
Traceback (most recent call last):
  File "~/repos/training_results_v4.0/NVIDIA/benchmarks/llama2_70b_lora/implementations/nemo/scripts/download_model.py", line 28, in <module>
    assert directory_hash == "742093293d1c0c227cfe458365d32ab4"
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError

I tried to go ahead and train the model, but I get a tensor store error:
[rank0]: ValueError: FAILED_PRECONDITION: Error reading local file "tmp/tmp6e6zpd3l/model_weights/model.decoder.layers.mlp.linear_fc2.weight/63.0.0": Not enough data: expected at least 469762048; at byte 349175808 [source locations='tensorstore/internal/riegeli/array_endian_codec.cc:218\ntensorstore/driver/zarr/metadata.cc:484\ntensorstore/internal/cache/kvs_backed_chunk_cache.cc:62\ntensorstore/internal/cache/kvs_backed_cache.h:208']

You can see the sizes of the files here:
$ ls -lh
total 129G
-rw-r--r-- 1 usr.grp usr.grp  846 Oct 16 10:35 config.json
-rw-r--r-- 1 usr.grp usr.grp 1.2K Oct 16 10:35 convert.py
-rw-r--r-- 1 usr.grp usr.grp  240 Oct 16 10:35 generation_config.json
-rw-r--r-- 1 usr.grp usr.grp 4.4G Oct 16 10:39 model-00001-of-00029.safetensors
-rw-r--r-- 1 usr.grp usr.grp 4.4G Oct 16 10:39 model-00002-of-00029.safetensors
-rw-r--r-- 1 usr.grp usr.grp 4.7G Oct 16 10:39 model-00003-of-00029.safetensors
-rw-r--r-- 1 usr.grp usr.grp 4.7G Oct 16 10:53 model-00004-of-00029.safetensors
-rw-r--r-- 1 usr.grp usr.grp 4.4G Oct 16 10:39 model-00005-of-00029.safetensors
-rw-r--r-- 1 usr.grp usr.grp 4.4G Oct 16 10:54 model-00006-of-00029.safetensors
-rw-r--r-- 1 usr.grp usr.grp 4.4G Oct 16 10:52 model-00007-of-00029.safetensors
-rw-r--r-- 1 usr.grp usr.grp 4.7G Oct 16 10:55 model-00008-of-00029.safetensors
-rw-r--r-- 1 usr.grp usr.grp 4.7G Oct 16 10:55 model-00009-of-00029.safetensors
-rw-r--r-- 1 usr.grp usr.grp 4.4G Oct 16 10:52 model-00010-of-00029.safetensors
-rw-r--r-- 1 usr.grp usr.grp 4.4G Oct 16 10:52 model-00011-of-00029.safetensors
-rw-r--r-- 1 usr.grp usr.grp 4.4G Oct 16 10:52 model-00012-of-00029.safetensors
-rw-r--r-- 1 usr.grp usr.grp 4.7G Oct 16 10:53 model-00013-of-00029.safetensors
-rw-r--r-- 1 usr.grp usr.grp 4.7G Oct 16 10:39 model-00014-of-00029.safetensors
-rw-r--r-- 1 usr.grp usr.grp 4.4G Oct 16 10:39 model-00015-of-00029.safetensors
-rw-r--r-- 1 usr.grp usr.grp 4.4G Oct 16 10:39 model-00016-of-00029.safetensors
-rw-r--r-- 1 usr.grp usr.grp 4.4G Oct 16 08:31 model-00017-of-00029.safetensors
-rw-r--r-- 1 usr.grp usr.grp 4.7G Oct 16 08:32 model-00018-of-00029.safetensors
-rw-r--r-- 1 usr.grp usr.grp 4.7G Oct 16 08:32 model-00019-of-00029.safetensors
-rw-r--r-- 1 usr.grp usr.grp 4.4G Oct 16 08:31 model-00020-of-00029.safetensors
-rw-r--r-- 1 usr.grp usr.grp 4.4G Oct 16 08:32 model-00021-of-00029.safetensors
-rw-r--r-- 1 usr.grp usr.grp 4.4G Oct 16 08:32 model-00022-of-00029.safetensors
-rw-r--r-- 1 usr.grp usr.grp 4.7G Oct 16 08:33 model-00023-of-00029.safetensors
-rw-r--r-- 1 usr.grp usr.grp 4.7G Oct 16 08:32 model-00024-of-00029.safetensors
-rw-r--r-- 1 usr.grp usr.grp 4.4G Oct 16 08:32 model-00025-of-00029.safetensors
-rw-r--r-- 1 usr.grp usr.grp 4.4G Oct 16 08:32 model-00026-of-00029.safetensors
-rw-r--r-- 1 usr.grp usr.grp 4.4G Oct 16 08:32 model-00027-of-00029.safetensors
-rw-r--r-- 1 usr.grp usr.grp 4.7G Oct 16 08:33 model-00028-of-00029.safetensors
-rw-r--r-- 1 usr.grp usr.grp 3.6G Oct 16 08:32 model-00029-of-00029.safetensors
-rw-r--r-- 1 usr.grp usr.grp  70K Oct 16 08:31 modeling_llama.py
-rw-r--r-- 1 usr.grp usr.grp  46K Oct 16 08:31 model.safetensors.index.json
-rw-r--r-- 1 usr.grp usr.grp   24 Oct 16 10:35 README.md

I'm using huggingface_hub==0.24.0. Do you know what could be causing the issue? I've redownloaded the model several times.

Hello, I've tried with
huggingface_hub==:

0.20
0.23
0.24
0.25

Any advice appreciated as I am currently stuck in the FAILED_PRECONDITION: Error reading local file

We are aware of it, and a fix will be included in version 4.1. Based on the log you've provided, the model you downloaded appears to be correct. Could you please try running the following scripts and disregard the assertion error for now?

Hi Michal, thanks for getting back to me.
When I continue with the training and ignore the assertions I get the following tensorstore error:
[rank0]: ValueError: FAILED_PRECONDITION: Error reading local file "tmp/tmp6e6zpd3l/model_weights/model.decoder.layers.mlp.linear_fc2.weight/63.0.0": Not enough data: expected at least 469762048; at byte 349175808 [source locations='tensorstore/internal/riegeli/array_endian_codec.cc:218\ntensorstore/driver/zarr/metadata.cc:484\ntensorstore/internal/cache/kvs_backed_chunk_cache.cc:62\ntensorstore/internal/cache/kvs_backed_cache.h:208']

The main bit is this: mlp.linear_fc2.weight/63.0.0": Not enough data: expected at least 469762048; at byte 349175808. I thought this corresponded with the small safetensor mentioned above.
I had to update a lot of package versions to port this to aarch64. Do you know if I need a different version of tensorstore?

Could you try to replace the snapshot_download in the download_model script to the
snapshot_download(
    "regisss/llama2-70b-fused-qkv-mlperf",
    revision="647cb0c8858ddefd10231a20ddfa68e4eb5e850e",
    local_dir=args.model_dir,
    local_dir_use_symlinks=False,
    max_workers=8,
    allow_patterns=["*.safetensors", "*.json", "*.py"],
)

and rerun model downloading and conversion? Please make sure args.model_dir is empty when reruning

Thank you so much @michal2409 , I'll give that a go.


text:
Can electron be compatible?

Hello, first of all, thank you for the good template!
Is it possible to export nextjs for electron? 👀
It is quite impressive that this template uses capacitorjs.
How about supporting mobile and PC at the both time?

Oh... it already exists in capacitorjs...!
https://capacitor-community.github.io/electron/#/./getting-started/index
npm i @capacitor-community/electron
npx cap add @capacitor-community/electron
npx cap open @capacitor-community/electron

Awesome, let us know how it works.

authors: hm-lee mlynch


text:
Add the proximity info on ranging response

From #5.
Some useful stuff:

StackOverflow: estimating-distance-to-ibeacon-on-ios
[StackOverflow: understanding-ibeacon-distancing]
(http://stackoverflow.com/questions/20416218/understanding-ibeacon-distancing)
StackOverflow: measure-distance-to-ibeacon-from-android-device

Gonna implement this in a minute.

Landed on 1.1.5, might need some tuning.

hi,
I actually test react-native-ibeacon on IOS and this one on android.
I have access to and estimote beacons.
and the result from both app are really different.
With my phone next to each other and the beacons 5meter away approximately, i get this result :
//IOS:
[ { major: 32404,
    minor: 62922,
    uuid: 'B9407F30-F5F8-466E-AFF9-25556B57FE6D',
    accuracy: 10.83739327988672,
    rssi: -95,
    proximity: 'far' } ]

//ANDROID
distance: 1.1567290440348383
major: 32404
minor: 62922
proximity: "Near"
rssi: -80
uuid: "b9407f30-f5f8-466e-aff9-25556b57fe6d"

Do you know if we can use the same SDK on IOS and Android in order to have the same result, or at least something similar. :)

Do you know if we can use the same SDK on IOS and Android in order to have the same result, or at least something similar. :)

I'll do some research on the Estimote SDK, but in my opinion this library should continue using the Alt Beacons SDK since it supports almost every kind of beacons, Estimote included.
I also still need to do a lot of testing on aligning the results of this library with the iBeacons one (hope to do them this week).
However please keep in mind that the result will never be the same because it is strictly tied to the Android device and its specs (you can have different result even comparing two Android devices).
Regarding your test, the only two info you need to compare are rssi and proximity.
The rssi one shows the signal strength, the proximity one is an estimation of proximity that is calculated differently in iOS and Android. Take a look at the links in my first post for more info.
If you have any suggestion on how to tweak the proximity value don't hesitate and send a pull request/write a post here :)
P.S.: The distance parameter on Android seems strange... make sure to wait at lease 20/30 seconds before taking notes of the parameter because that result is "smoothed" and require some time to settle :)

I'm closing, feel free to re-open if needed!

authors: mmazzarolo wcastand

repo: mmazzarolo/react-native-beacons-android


text:
Collections page not displaying correctly

Description
Hi, I have been trying to use the collections feature of this them; I followed the documentation for it and created the portfolio example, however when i follow then link to the portfolio collection the page displayed shows the document its supposed to have but it has no format.
Attached below is a screen of the issue i get.

Environment

Minimal Mistakes version: 4.12 - I think its the latest, i just started using it.
Ruby gem or remote theme version:  2.5.0
Jekyll version: jekyll 3.5

Expected behavior

I was expecting to get a collection page such as pets or portfolio as it is in the current example in the documents.
Steps to reproduce the behavior

Basically i followed the steps in the documentation, in order to set the portfolio collection working.

I think you're missing the portfolio collection archive page. See this example.

Yes you are correct.
That completely solved the problem.
Thank you very much for your hard work.

authors: Alwurts mmistakes

repo: mmistakes/minimal-mistakes


text:
I'm make a mistake in _page.scss, and stucked.

I've made some change in _page.scss at.page__content part. Suddenly, my pages/posts content overwrite the left sidebar like this.
Here the screenshot

Oh I think, I solved the issue. It's okay. Thank you!


text:
Fails to build with Qt 5.5.1 (Ubuntu 16.04)

Fails to build in Ubuntu 16.04 with Qt 5.5.1, with the following error:
[ 70%] Building CXX object src/CMakeFiles/rclone-browser.dir/item_model.cpp.o
/<<PKGBUILDDIR>>/src/item_model.cpp: In function ‘void {anonymous}::advanceSpinner(QString&)’:
/<<PKGBUILDDIR>>/src/item_model.cpp:659:1: error: assuming signed overflow does not occur when assuming that (X - c) <= X is always true [-Werror=strict-overflow]
 }
 ^
cc1plus: all warnings being treated as errors
src/CMakeFiles/rclone-browser.dir/build.make:416: recipe for target 'src/CMakeFiles/rclone-browser.dir/item_model.cpp.o' failed
make[4]: *** [src/CMakeFiles/rclone-browser.dir/item_model.cpp.o] Error 1

You can go around this by adding -Wno-error=strict-overflow but I thought you might want to check it anyway. The complete build log is available here: https://launchpadlibrarian.net/304436289/buildlog_ubuntu-xenial-amd64.rclone-browser_1.0.0-1~webupd8~xenial0_BUILDING.txt.gz

Interesting, I tried compiling on 14.04 and 16.10 and didn't get any errors.
I'll fix the code later today.

Can you please try with latest commit c1ad5f8? It should now build fine on 16.04.

This fixes it, thank you! The issue was not occurring on my local machine, but in a Launchpad PPA (I uploaded Rclone Browser to a PPA to make it easy for UIbuntu / Linux Mint users to install it) repository which has some different defaults...

I was facing this problem on Arch Linux as well. The change suggested by @hotice fixed it.

authors: hotice maverickdas mmozeiko

repo: mmozeiko/RcloneBrowser

license: unlicense


text:
WIP: Fix pick finding for detectors above 9

If pairs [1, 1] was requested the code was matching to S1_D11. It now only matches to S1_D1

Codecov Report

Merging #175 into master will increase coverage by 0.01%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master     #175      +/-   ##
==========================================
+ Coverage   97.93%   97.94%   +0.01%
==========================================
  Files          34       34
  Lines         870      877       +7
==========================================
+ Hits          852      859       +7
  Misses         18       18

Impacted Files
Coverage Δ

mne_nirs/channels/_roi.py
94.44% <100.00%> (ø)

mne_nirs/channels/tests/test_roi.py
100.00% <100.00%> (ø)

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 1505578...6b55f1d. Read the comment docs.

authors: codecov-commenter rob-luke

repo: mne-tools/mne-nirs


text:
Hash mismatch error

When I try to download the spm dataset, this is the error I get.
`Automatically created module for IPython interactive environment
Local file appears to be complete (file_size == initial_size == 924932163)
:11: RuntimeWarning: Local file appears to be complete (file_size == initial_size == 924932163)
data_path = spm_face.data_path()
Error while fetching file https://files.osf.io/v1/resources/rxvq7/providers/osfstorage/59c0e343b83f6902538c4553?action=download&version=2&direct. Dataset fetching aborted.
RuntimeError                              Traceback (most recent call last)
 in ()
9 print(doc)
10
---> 11 data_path = spm_face.data_path()
12 subjects_dir = data_path + '/subjects'
~/Documents/Projects/MachineLearning/libraries/lib/python3.5/site-packages/mne/datasets/spm_face/spm_data.py in data_path(path, force_update, update_path, download, verbose)
~/Documents/Projects/MachineLearning/libraries/lib/python3.5/site-packages/mne/utils.py in verbose(function, *args, **kwargs)
726         with use_log_level(verbose_level):
727             return function(*args, **kwargs)
--> 728     return function(*args, **kwargs)
729
730
~/Documents/Projects/MachineLearning/libraries/lib/python3.5/site-packages/mne/datasets/spm_face/spm_data.py in data_path(path, force_update, update_path, download, verbose)
20     return _data_path(path=path, force_update=force_update,
21                       update_path=update_path, name='spm',
---> 22                       download=download)
23
24 data_path.doc = _data_path_doc.format(name='spm',
~/Documents/Projects/MachineLearning/libraries/lib/python3.5/site-packages/mne/datasets/utils.py in data_path(path, force_update, update_path, download, name, check_version, return_version, archive_name)
374         full_name = list()
375         for u, an, h, fo in zip(url, archive_name, hash, folder_orig):
--> 376             remove_archive, full = _download(path, u, an, h)
377             full_name.append(full)
378         del archive_name
~/Documents/Projects/MachineLearning/libraries/lib/python3.5/site-packages/mne/datasets/utils.py in download(path, url, archive_name, hash)
433             logger.info('Downloading archive %s to %s' % (archive_name, path))
434             fetch_file(url, full_name, print_destination=False,
--> 435                         hash=hash_)
436     return remove_archive, full_name
437
~/Documents/Projects/MachineLearning/libraries/lib/python3.5/site-packages/mne/utils.py in fetch_file(url, file_name, print_destination, resume, hash, timeout, verbose)
~/Documents/Projects/MachineLearning/libraries/lib/python3.5/site-packages/mne/utils.py in verbose(function, *args, **kwargs)
726         with use_log_level(verbose_level):
727             return function(*args, **kwargs)
--> 728     return function(*args, **kwargs)
729
730
~/Documents/Projects/MachineLearning/libraries/lib/python3.5/site-packages/mne/utils.py in fetch_file(url, file_name, print_destination, resume, hash, timeout, verbose)
1963                 raise RuntimeError('Hash mismatch for downloaded file %s, '
1964                                    'expected %s but got %s'
-> 1965                                    % (temp_file_name, hash_, md5))
1966         shutil.move(temp_file_name, file_name)
1967         if print_destination is True:
RuntimeError: Hash mismatch for downloaded file /home/krisha/mne_data/MNE-spm-face.tar.gz.part, expected 9f43f67150e3b694b523a21eb929ea75 but got 3eca4e4b6e5341dc2236903136b9d89a
`

Are you on latest master? It's possible the dataset was updated and you need the latest code to have the correct hash.

I downloaded the dataset directly from the website

It looks like 9f43f67150e3b694b523a21eb929ea75 is the correct hash (the one from master) so my suggestion won't help.
Can you try downloading using:
python -c "import mne; mne.datasets.spm_face.data_path(force_update=True, verbose=True)"

I just did this and it succeeded.

(you might need to remove the existing .part file)

I will try this.  Thanks a lot.

I tried doing it. Got the same error.
rifying hash 9f43f67150e3b694b523a21eb929ea75. Error while fetching file https://files.osf.io/v1/resources/rxvq7/providers/osfstorage/59c0e343b83f6902538c4553?action=download&version=2&direct. Dataset fetching aborted. Traceback (most recent call last):   File "<string>", line 1, in <module>   File "<string>", line 2, in data_path   File "/home/krisha/Documents/Projects/MachineLearning/libraries/lib/python3.5/site-packages/mne/utils.py", line 727, in verbose     return function(*args, **kwargs)   File "/home/krisha/Documents/Projects/MachineLearning/libraries/lib/python3.5/site-packages/mne/datasets/spm_face/spm_data.py", line 22, in data_path     download=download)   File "/home/krisha/Documents/Projects/MachineLearning/libraries/lib/python3.5/site-packages/mne/datasets/utils.py", line 376, in _data_path     remove_archive, full = _download(path, u, an, h)   File "/home/krisha/Documents/Projects/MachineLearning/libraries/lib/python3.5/site-packages/mne/datasets/utils.py", line 435, in _download     hash_=hash_)   File "<string>", line 2, in _fetch_file   File "/home/krisha/Documents/Projects/MachineLearning/libraries/lib/python3.5/site-packages/mne/utils.py", line 728, in verbose     return function(*args, **kwargs)   File "/home/krisha/Documents/Projects/MachineLearning/libraries/lib/python3.5/site-packages/mne/utils.py", line 1965, in _fetch_file     % (temp_file_name, hash_, md5)) RuntimeError: Hash mismatch for downloaded file /home/krisha/mne_data/MNE-spm-face.tar.gz.part, expected 9f43f67150e3b694b523a21eb929ea75 but got ab18152533bbf9b371a98f25dbe8bb04

That hash is different from the last one you got, which is strange. I don't know what could be causing this. The hash is even listed as 9f43f67150e3b694b523a21eb929ea75 on the osf.io website, consistent with what we have in the code and what I got minutes ago.
You can try downloading it directly from osf.io and checking the MD5sum. But so far this indicates to me a problem with your machine, internet connection, or something else local.

I have tried messing around with my server. However, that has not helped either. I will try a few other things.
Thanks!

I'm having the same error , did you figure it out? if so please help.

Did you try redownloading with something like:
python -c "import mne; mne.datasets.spm_face.data_path(force_update=True, verbose=True)"

authors: AbinS97 krishamehta larsoner

repo: mne-tools/mne-python


text:
Development environment installation

I was following the contributing guide and it wasn't clear how to have simultaneous mne (stable, user) environment and mne-dev environment in which I could make contributions.
I installed MNE (stable, user version) using installation guidelines:
 curl --remote-name https://raw.githubusercontent.com/mne-tools/mne-python/master/environment.yml
 conda env create -f environment.yml
 conda activate mne

Then, when I followed the contributing guide which says:
 cd <path_to_where_you_want_mne-python_source_code_installed>
 git clone git://github.com/mne-tools/mne-python.git
 cd mne-python
 python setup.py develop

So both environments had the same name (mne), instead of e.g. mne and mne-dev.
To fix it, I had to:

copy the .yml file (and rename it)
change the the environment name in the .yml file from mne to mne-dev

Ok, this seems to be a dubplicate of #6179

authors: ikojcic massich


text:
Choose output directory

Hello :)
First thanks for making this plugin. I just discovering it after having used datapage_gen and would like to check if it's better, but there are a few things which prevent me from switching to your plugin, so I'm opening this issue (and another one)
I'd like to be able to specify the output directory, because my site has 2 languages and I need to generate files for both english and french layouts, and out put in both the "en" and "fr" directories of my website structure.
As I understand it from the README the output is obviously the same if I use the same data file.
Thanks in advance.

I had a similar case with a site in both Arabic and English. I just made them separate collections, see:
https://github.com/mnyrop/sudanphoto/blob/ecd72e6a81fcf6879fa8e8090bf3419d381d587a/_config.yml#L27
In essence, naming the collections archive/en and archive/ar generate them to the directories en and ar within archive respectively. You would just have one data file (csv, json, or yaml) for each collection (e.g., archive-en.csv and archive-ar.csv:
_data/
|__ archive-en.csv
|__ archive-ar.csv
_archive/
|__en/
|____ page1.md
|____ page2.md
|__ar/
|____ page1.md
|____ page2.md

OK, sounds fair. Thanks for the reply :)

authors: AxelTerizaki mnyrop

repo: mnyrop/pagemaster


text:
进度条拖动之后歌词不能同步 并且字体会有显示不全的问题

如图1 测试过很多歌曲都是拖动进度条之后歌词没办法同步 图二的问题就是作曲人信息太多的情况下信息显示不全 上下会被挡住一部分 这个问题是大概率发生的 有时候会正常显示（备注：更换过字体 字体是Minecraft AE 是后期安装的 字体在压缩包里）
[[苦力怕论坛]Minecraft(同时支持中英文).zip](https://github.com/mo-jinran/Taskbar-Lyrics/files/10499285/Minecraft.zip)

后期安装的字体怎么更换啊，我安装的字体无法使用

要先知道字体叫什么 可以去字体文件夹里面找自己安装的字体 点击字体会跳出来这样的弹窗 以我的Minecraft AE字体举个例子，左上角的字体名称就是字体的名字（字体文件夹在C:\Windows\Fonts这个目录下面）

其次就是把字体名字输入到taskbar lyrics的更换字体一栏去 比如我的字体的名字就是Minecraft AE 直接复制粘贴丢进去（不要打错），点击应用，此时大概率任务栏是不会有歌词的，这个时候就要重启网易云，不行就多试几次，或者重启网易云后用可以使用的字体和安装的字体来回切换几次试试，基本上就可以使用了。如果上述方法还是不行就重启电脑，总能成功的

不要着急，新年休假，初八开始修

图一的问题我貌似无法复现

图二修好了，但是还没做滚动歌词

啊 明白了 等能正常使用插件的时候我再去看看

authors: NODT4109 mo-jinran xuanwohanser

repo: mo-jinran/Taskbar-Lyrics


text:
Popup blocked in Safari for pkce flow

I'm running into an issue where the popup from the authenticate call is being blocked by Safari.
I believe this only happens for the pkce flow in browsers that support Crypto.subtle.
This happens because Safari expects popups to be opened synchronously as the user clicks the page. The async CryptoUtils.deriveChallenge call inside buildWebOptions is called before the popup is open, therefore resulting in the popup being blocked

@moberwasserlechner Sorry for re-opening but it's still happening here https://codesandbox.io/p/sandbox/wizardly-leaf-jqfjxw?file=%2Fsrc%2FApp.vue%3A8%2C58
Are we doing something wrong?