text:
Python wheel server

This PR adds a linux version of BlindAI and a Python wheel to execute this server. A simulation mode support was added as well to the client.
The Python wheel was mainly made to facilitate the test of BlindAI, allowing to run a local copy of the server in a Google Colab/Jupyter Notebook environment. Considering that the python wheel will not run BlindAI in an SGX environment, the simulation mode is necessary to test this version of the server.
Running the server is very simple, once the wheel is installed:
import blindai_preview_server

srv = blindai_preview_server.start() # start the server
blindai_preview_server.stop(srv) # stop the server

This PR includes the necessary CI steps to build automatically the wheel and the server when a new tag is available.

Closing since #16 is merged.

authors: JoFrost clauverjat

repo: mithril-security/blindai-preview


text:
Sealing update

Description
Sealing added

Closing as part of the input-output-rework branch.

source: gharchive/pull-request

authors: JoFrost casssi

repo: mithril-security/blindai

license_type: permissive

license_source: github-api


text:
support full alpha tcp connection

Description
add a filter to non-tcp connections for full alphabetics tcp connection
this depends of first word in tcp payload
after split by whitespace and checking length of that
Checklist

[x] I have updated tests where applicable.
[x] I have added an entry to the CHANGELOG.

In fact, this also applies to the SSH protocol.
However, the case I encountered was in reverse engineering an Android app that sent the information after Base64 encoding =)))

Yes, you're right. Decision-making based on fixed characteristics in HTTP requests is better.

repo: mitmproxy/mitmproxy

license: mit

license_source: bigquery


text:
Use once_cell instead of lazy_static

The motivation is that console already uses once_cell, so this should in theory decrease the total number of dependencies.
Note: The formatting has changed, do you happen to use some rustfmt flags? if so it would be better if you have a .rustfmt.toml file.

The formatting changed because rustfmt usually doesn't work inside calls to macros, and you moved those constants out of macro context. So that's a good thing. Makes sense to me to make this change, thanks!

I see, thanks as well

(Note that #319 moves lazy_static to be for examples only, so if I figure out the regression it introduced we'll be able to do without once_cell for the library itself.)

authors: djc sigmaSd

repo: mitsuhiko/indicatif


text:
Use improved syntax file from https://github.com/vim-python/python-syntax

This copies the syntax file from vim-python/python-syntax, which improves syntax highlighting.
closes #3

Better yet, use https://github.com/vim-python/python-syntax

Thanks for the tip, @renstrom . It appears that vim-python/python-syntax is the most actively-maintained fork ATM. I've updated this PR to use that instead.
@mitsuhiko Please let me know if there are any blockers to getting this merged.

Doesn't that defeat the purpose of the repo here? The entire point is that you don't have to set the version of the language.

I don't think it defeats the purpose. The syntax file from vim-python/python-syntax is the best I've seen, and even though you can explicitly specify a Python version, it works out-of-the-box for both versions (I'm currently using it in both Py2 and Py3 codebases).
The value of this repo is that it combines syntax highlighting and pep8 indentation, and consequently is easily integrated by vim-polyglot. If this is merged, I would be able to remove my special-casing for Python (see https://github.com/sloria/dotfiles/blob/9b34d1a4ec4ad4942419b7e93ac60027159240ec/roles/vim/files/vimrc#L147-L154).

authors: mitsuhiko renstrom sloria

repo: mitsuhiko/vim-python-combined


text:
Mixpanel not tracked in certain country on Android

We are facing the problem that mixpanel events are not tracked from users who are located in United Kingdom. Yesterday we certainly used our application and surely events must be sent, but no events with country United Kingdom or from this certain user cannot be found in boards. All other events that are tracked by developers who are located in Kazakhstan, or tracked by Google Play testers (maybe bots) who probably located in United States, can be seen in boards. For our native application on iOS this problem is not faced. On Android we implemented everything correctly as stated in Developers Documentation. Please, give any possible reasons, any suggestions. Thanks

@yerlansarsenov Please contact support@mixpanel.com for help troubleshooting this issue.

source: gharchive/issue

authors: jaredmixpanel yerlansarsenov

repo: mixpanel/mixpanel-android


text:
iOS privacy manifest

Starting May 1, Apple will require iOS submissions to the App Store to have privacy manifests describing the use of required reason APIs: https://developer.apple.com/news/?id=3d8a9yyh.
Could you add the required privacy manifest for the lib? I've seen that mixpanel-swift has added the manifest in version 4.2.2: https://github.com/mixpanel/mixpanel-swift/issues/620. So updating mixpanel-swift is possibly enough to solve the issue.

@zihejia would you be able to take a quick look at this issue? It's important because the Apple deadline of May 1 is approaching.

Has this been updated?

Any news about this? We need this update soon

I need this update too

Version 3.0.0 includes our iOS Swift SDK v4.2.4, which now supports the Privacy manifest file.

authors: KavyaShrivastava gabrielguilhoto gsantiago willianlemes zihejia

repo: mixpanel/mixpanel-react-native


text:
Readme.mdのインストール欄に「STUフォントが必要」って書いた方がいいかも

プログラム本体とは一切関係が無いですが...
鳥居くん製作のSTUフォントを入れないと、鳥居マークが「;」になっちゃいますね。
＃万人が使うものでも無いし、端折ってもいいのかも知れませんが。

フォント自体はfontディレクトリの中に入っている（/font/STU XVIII.ttfですよね？）
HTML側からそれを参照するようにすれば良いはず？

STU XVIII.ttfへの参照は、下記のCSSファイルの@font-faceで行っているのですが、それが効いていないということになります。
https://github.com/miyax0227/myxQuizHex/blob/master/css/hex-long.css
原因は調査しますが、暫定措置はローカルシステムへのインストールの手順追加ですかね…
別のCSSで記載しているMigmixフォントへの参照はいかがでしょうか？

このコメント欄もmarkdownなんですね。一番下のコメントは強調したかったわけではなく、コメント的な意味合いの「#」です。

このコメント欄もmarkdownなんですね。

そうなんですよー
Markdownが割と好きな私としてはありがたいのですが。
という話はさておいて。
ローカルでいじってたら何となく原因が分かってきたので、ちょろっと修正してプルリク出します。

別のCSSで記載しているMigmixフォントへの参照はいかがでしょうか？

こっちは参照が効いていそうです。:smiley::thumbsup:

Pull Requestをmasterに反映しました。
こちらのローカル環境で試験して解消したことを確認しましたのでクローズします。
ありがとうございました。


text:
fix: Make limiting depth in traverse() actually work

Due to a typo (inverted comparison), the test for the traversal depth would always fail. Fix that typo and add test coverage.

Thanks, typo fixed.

Merged, thank you!

authors: asb pbodnar

repo: miyuchina/mistletoe


text:
Multiple instances will unpublish each others subscriptions

Version: v0.49.0
Problem
We have multiple serverless stacks running inside a docker container. Also there's a localstack instance within the same docker-compose environment. Each sls stack has the following configuration:
serverless-offline-sns:
  debug: true
  port: 4002
  host: 0.0.0.0
  sns-subscribe-endpoint: backend-${self:custom.stack}
  sns-endpoint: http://localstack:4575

The problem with this set up is that when booting up each serverless-offline-sns instance (inside each stack) will unpublish each other's subscriptions, based on the startup order of the containers.
Possible solution
Unpublishing is done based on port, but the sns-subscribe-endpoint is not taken into account. A possible solution would be to add this to the .filter statement in unsubscribeAll method of index.ts.
Locally I have fixed it by letting each stack listen on a different port. But thought I'd propose my findings here.

Thanks for the bug report, happy to accept a pull request on this with the .filter added.

Maybe this is related: https://github.com/mj1618/serverless-offline-sns/issues/99
The problem is that when a sls offline start service A, B and C, and latter i kill B, service A will fail to publish to C because B was not unsubscribed when killed...

Thank you I have merged chichicuervo's fix

authors: JrSchild mj1618 ricardovf


text:
removed overloaded definitions in all.mj

so that sorting can be done by identifier alone, no parameters needed

The problem here is that this test case is valid MiniJava (from a syntactic point of view) and should therefore be accepted by the parser. Although complicates the pretty printer (but nobody cares about the correct sorting in the pretty printer anyway).


text:
document.addEventListener vs window.addEventListener

There seems to be a slight change in how events are captured between version react-router 0.13 (I'm updating from) to the current version. The way event listeners are bound seems to be different. The event listener is now being bound to the window object, i.e. window.addEventListener, but this doesn't capture events that are captured by Turbolinks.
Earlier version of react-router would work well with Turbolinks, which uses document object to add its event listeners. I believe this is the cause of this issue I reported on React Router.  The event listener on document seems to be triggered first and not letting the event bubble up to the window object...or something. As a result, I'm seeing this code fail when the route update is triggered by Turbolinks:
history.listen(location => console.log(location.pathname))

Has anyone come across this situation before? I'm curious why Router.run callback used to work, but listen callback does not, when history is changed by another library.

I figured this out. The trick was to force replace the location of this module with the browser location. I think my difficulty was misunderstanding how pushState works. I assumed pushState would trigger a popready event, but it doesn't. Only browser actions like go does that. Hence the history module doesn't update its location when another module does pushState and you have to simulate it. In case anyone else comes across this issue, the integration between Turbolinks and history looks like this:
import { Router, browserHistory } from 'react-router'
const histo = syncHistoryWithStore(browserHistory, store)

$(() => {
  histo.replace(window.location)
})

histo.listen(loc => {
  // Configure React Router
  const app = <Provider store={store}>
    <Router history={histo}>
      {routes}
    </Router>
  </Provider>;
  // Render the React App
  const root = document.getElementById('App');
  if (root) {
    render(app, root);
  }
})

repo: mjackson/history


text:
Responsive Image only 250px width?

Describe the bug
On large mobile Devices image in a two column layout is only 250px wide. i can see the 250px on the  in the generated html output. why is it there? why isn't it 100%? where can i change it?
To Reproduce
Steps to reproduce the behavior:

Create a file with this MJML code: <mj-section padding="0">      <mj-column>        <mj-text mj-class="headline2" css-class="columns-two-text-image_title"> Content Bock #2 </mj-text>        <mj-text css-class="columns-two-text-image_text"> Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. </mj-text>      </mj-column>      <mj-column>        <mj-image src="http://go.powerschool.com/rs/861-RMI-846/images/HE Newsletter Winter Webinar v3.jpeg" alt="Peopleadmin" align="center" css-class="columns-two-text-image_image" />      </mj-column>    </mj-section>
See error

Expected behavior
100% wide like on desktop view
MJML environment (please complete the following information):

OS: Big Sur
MJML Version 4.8.1
MJML App 3.0.3

Screenshots

mj-image has a fluid-on-mobile attribute for this behavior. cf https://documentation.mjml.io/#mj-image it relies on a media query for this so support may vary.

wow was searching for something like "250px" and found nothing.

The size will depend on the column size to avoid overflow issue in Desktop Outlook. It's a simple column width - (left+right padding) - (left+right border)

authors: iRyusa nicmare

repo: mjmlio/mjml

license: MIT


text:
[mj-section] background images not appearing on Outlook

Describe the bug:
I want to create an MJML email with sections that have a background image. The images work on Gmail and in-browser mail viewers, but not on Outlook or the Microsoft Mail application. [mj-image] DOES work on all email browsers.
To Reproduce:
Steps to reproduce the behavior:

Create a file with this MJML code:

`

<mj-section>
  <mj-column>

  </mj-column>
</mj-section>
<mj-section background-size="cover" background-url="https://images.squarespace-cdn.com/content/v1/56bbdac627d4bd726408b6e6/c45286cc-6503-4f92-bc63-a41219cc341a/nelson_image.jpg" background-repeat="no-repeat" full-width="false">
  <mj-column width="100%">
    <mj-text padding-top="70px" color="white" font-size="18px" align="center" line-height="1"> WHERE KIWIS LOVE TO LIVE</mj-text>
    <mj-text color="white" font-size="68px" align="center"> Nelson</mj-text>
    <mj-button padding-bottom="70px" font-family="Helvetica" background-color="rgba(0,0,0,0)" border="2px solid #fff" color="white" href="https://www.english-school.ac.nz/nelson"> FIND OUT MORE </mj-button>
  </mj-column>
</mj-section>

`

Follow your preferred method for rendering and sending the email - I have tried copy & pasting the rendered email into Gmail, as well as sending the HTML through putsmail. Both result in the same issue.
Send the email
Open the email with an Outlook application, or a Microsoft Mail application.
The images that should be shown in the background of [mj-section] do not appear.

Expected behavior:
The images in the background of an [mjml-section] should show on all mail browsers.
MJML environment :

OS: Windows 11 Home 64-bit
MJML Version: 4.12.0
MJML tool used: MJML application

Email sending environment:

Putsmail]
Copy / pasting rendered HTML into Gmail

Affected email clients (for rendering issues):

Email Client: Outlook, & Microsoft Mail applications

Screenshots:
Expected:

What it shows in Outlook:

The windows 10/11 mail client isn't in our test scope (not available in email on acid). I think there's a fallback if you put a background-color but I don't remember if it's specific to mj-hero or mj-section or both.

authors: ElectricPowerHouse iRyusa


text:
Programmatically creating mjml

Right, this isn't an issue so much as a request for some advice. Thanks in advance to anybody who takes the time to read! 👍
What I am trying to do:
Storing email templates as an array of 'email modules' (as JSON in my database). Then, when it is time to send an email, the program will convert the JSON into mjml, which will then be converted into html, which can then be sent off to Mailjet (or wherever).
For example (simplified) - an email stored in the db:
emailTemplateOne: [
  {type: 'header', value: 'This is a header'},
  {type: 'text', value: 'This is some text to be sent'}
]

When it is time to send, this should translate to:
<mjml>
  <mj-body>
    <mj-container>
      <mj-section>
	<mj-column>
	  <mj-text>

This is a header

	  </mj-text>
	  <mj-text>
             This is some text to be sent
	  </mj-text>
	</mj-column>
      </mj-section>
    </mj-container>
  </mj-body>
</mjml>

How I am currently trying (and failing) to do this:
I've using react to generate the mjml similar to this:
import React from 'react';
import { mjml2html, elements } from 'mjml';
const { _mjmlBody, _mjmlContainer, _mjmlSection, _mjmlColumn, _mjmlText } = elements;

let createMjml = function (arrayOfComponents) {
  let parsedComponents = arrayOfComponents.map((component) => {
	switch (component.type) {
		case "header":
			return (
				<mj-text>

{component.value}

				</mj-text>
			);
                  case "text":
			return (
				<mj-text>
					{component.value}
				</mj-text>
			);
		default:
			return (
Default case fired
);
	}
  });

  return (
	<mjml>
		<mj-body>
			<mj-container>
				<mj-section>
					<mj-column>
						{parsedComponents}
					</mj-column>
				</mj-section>
			</mj-container>
		</mj-body>
	</mjml>
  )
};

So when it is time to send an email from the database:
const createEmailBody = function (arrayOfComponents) {
	console.log(arrayOfComponents); //make sure the right JSON is going in
	let mjmlBody = createMjml(arrayOfComponents); //convert components into mjml
	console.log(mjmlBody); //ensure right mjml coming out
	let htmlOutput = mjml2html(mjmlBody); //convert mjml to html
	console.log(htmlOutput); //ensure right html coming out
	return htmlOutput;
};

let htmlToSend = createEmailBody(/*JSON Object from database goes here*/)

Errors/issues
When creating the mjml, something is going wrong... Not sure what it is or how to fix it.

If I hard code the mjml (passing in an mjml string), then works perfectly as expected
If I wrap the above function with " ` " - and the dynamic bit with ${parsedComponents()} - then, rather than parsing the components I simply get [object, object] within the mjml and html output

Output of the createMjml function below (rather than the mjml, this is what I am getting).
{ '$$typeof': Symbol(react.element),
I20161128-13:32:44.851(8)?   type: 'mjml',
I20161128-13:32:44.851(8)?   key: null,
I20161128-13:32:44.851(8)?   ref: null,
I20161128-13:32:44.852(8)?   props:
I20161128-13:32:44.852(8)?    { children:
I20161128-13:32:44.852(8)?       { '$$typeof': Symbol(react.element),
I20161128-13:32:44.852(8)?         type: 'mj-body',
I20161128-13:32:44.853(8)?         key: null,
I20161128-13:32:44.853(8)?         ref: null,
I20161128-13:32:44.853(8)?         props: [Object],
I20161128-13:32:44.854(8)?         _owner: null,
I20161128-13:32:44.854(8)?         _store: {} } },
I20161128-13:32:44.854(8)?   _owner: null,
I20161128-13:32:44.855(8)?   _store: {} }

Questions:

What are the glaring errors with how I am doing things above?
Does anyone have any pointers/code examples on how to programmatically create mjml?

Thanks again - if you've read this far and can help I really appreciate it. End goal is to create an npm package that allows for anyone to drop in a simple email editor with minimalist building blocks for their users to create emails.

Hi there @HemalR ,
You're passing JSX ( translated to React Element ) to MJML and it doesn't know how to process it.
However there's an undocumented feature that you can use. You can pass JSON to mjml2html and it will work as expected but you can't use any mj-head elements. Check https://github.com/mjmlio/mjml/issues/324#issuecomment-230318635 for an example 👍

Trying it out now. Thanks for taking the time to respond!

For anyone who wants to try the json method, be sure to add an additional mjml tag outside of mj-body
console.log(mjml2html({
  'tagName': 'mjml',
  'attributes': {},
  'children': [
    {
      tagName: 'mj-body',
      attributes: {},
      children: [{
        tagName: 'mj-container',
        attributes: {},
        children: [{
          tagName: 'mj-section',
          attributes: {},
          children: [{
            tagName: 'mj-column',
            attributes: {},
            children: [{
              tagName: 'mj-text',
              attributes: {},
              content: 'Youhou \o/'
            }]
          }]
        }]
      }]
    }
  ]
}))

authors: HemalR iRyusa kunKun-tx


text:
Add Travis CI

Based on #84. See the diff based on #84
Adds continuous integration via https://travis-ci.org/

@mjohnston Would you mind enabling https://travis-ci.org/ for your repo? Right now it'll just run ESLint, (via npm test) but I'm also planning on testing the bundle command

Done

authors: elliottsj mjohnston

repo: mjohnston/react-native-webpack-server


text:
Client

Do we still have issues with getting user input client side without timing out? I haven't had that issue so far on my client but it's very likely it would happen on different client scripts.

No activity


text:
pyODBC doesn't look for unixODBC, instead looks for iODBC

Each time I try to create a connection with pyodbc, it gives me the following error:
---------------------------------------------------------------------------
Error                                     Traceback (most recent call last)
<ipython-input-12-607f0d66e615> in <module>()
      1 pyodbc.connect(
----> 2     'DRIVER=FreeTDS;'
      3     'SERVER= MyServerIP;'
      4     'PORT=1433;'
      5     'DATABASE= DatabaseName;'

Error: ('00000', '[00000] [iODBC][Driver Manager]dlopen(FreeTDS, 6): image not found (0) (SQLDriverConnect)')

What concerns me is the reference to the iODBC driver, because I installed unixODBC and I thought it was supposed to default to that (as of 3.0.10).
This python code that I used:
import pyodbc

pyodbc.connect(
    'DRIVER=FreeTDS;'
    'SERVER=MyServerIP;'
    'PORT=1433;'
    'DATABASE= DatabaseName;'
    'UID=MyUsername;'
    'PWD=MyPassword')

I installed pyodbc through conda install pyodbc, and have confirmed it's version 3.0.10.
I should add:

I've reproduced identical results on three separate Macs
I've confirmed good installs of unixODBC and FreeTDS by establishing good connections through isql and tsql commands from the Terminal

The choice between iODBC and unixODBC is made at compile time by the setup.py file.  I wish this was not the case, but the two projects both provide a core library and they are compiled very differently.
There is a commit on 2015-04-24 which removes iODBC since Apple no longer supports it, so someone must have gone out of their way to build it like that.
I'm not sure what version you are on, but have you tried installing it via pip instead?  I was providing binary wheels for OS X for Yosemite that are backwards compatible with 10.6.  Please try that and let me know if that works.

I was actually able to solve my issue by rolling back to pyODBC version
3.0.9.  The only thing I can think is that whoever uploaded it to the
anaconda.org repository must have edited the setup.py file to specify
iODBC.  While that’s obviously not your issue, it’s the version anaconda
uses by default, so anyone using a mac and the anaconda python distribution
is going to run into the problem.
Thanks for getting back to me, I have my specific issue solved.  Hope you
don’t keep hearing about this, it was a pain to figure out.
Rich
--
Richard Holohan
On June 29, 2016 at 6:00:41 PM, Michael Kleehammer (notifications@github.com)
wrote:
The choice between iODBC and unixODBC is made at compile time by the
setup.py file. I wish this was not the case, but the two projects both
provide a core library and they are compiled very differently.
There is a commit on 2015-04-24 which removes iODBC since Apple no longer
supports it, so someone must have gone out of their way to build it like
that.
I'm not sure what version you are on, but have you tried installing it via
pip instead? I was providing binary wheels for OS X for Yosemite that are
backwards compatible with 10.6. Please try that and let me know if that
works.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/mkleehammer/pyodbc/issues/125#issuecomment-229502393,
or mute the thread
https://github.com/notifications/unsubscribe/ALyMEnnaYYl00DOPR5R3_T8Bw-NRpuQ5ks5qQusGgaJpZM4I7WrD
.

I was receiving this message with Anaconda pyodbc 3.0.10 on Python 3.5.2 Anaconda:
pyodbc.DataError: ('22021', '[22021] ERROR: invalid byte sequence for encoding "UTF8": 0xe0 0x81 0xb3;\nError while executing the query (7) (SQLExecDirectW)')
I built an Anaconda Python 3.4.5 environment with Anaconda pyodbc 3.0.9. The error was not encountered.

I tried a pip install of pyodbc of 3.0.10 into my Anaconda package space. This pip version of pyodbc is working as expected. I left a posting on the Anaconda Google Group about the problem.

authors: mkleehammer rholohan sculpturearts

repo: mkleehammer/pyodbc


text:
Account setup

This pull request is to fulfill technical deliverable 1, "Using the Google Drive API, the Android app will allow the user to authorize their Google account so the app can upload content."
Find a short video demo of this code here: https://youtu.be/HKnuS_gt0T4

Thanks for the feedback. Let me know if there is anything else to improve.
Also I wanted to note that this branch doesn't really have tests because I thought any tests for drive sign-up would be difficult to setup and fragile/inconsistent. I've written tests for the other parts of the setup which are in a different branch.

Awesome!! You can merge it.

authors: jelcaf mkyl

repo: mkyl/Physical-Web-CMS-Android


text:
Phi-2 speed is limited by memory on 8GB Macs

Currently Phi-2 inferences at ~20s/tok on an 8GB machine, in spite of using ~10-20% of CPU/GPU at any given time. Bigger machines see much, much faster inference speeds. Imo, this points to the model being memory bound (although it uses ~5.4GB in fp16). I believe this will be solved by support for quantized models in MLX, but maybe somebody will see an obvious optimization in the model in the mean time.

Oh interesting, Phi-2 only uses 5.4 GB during inference? Your implementation must be super efficient then 😆 thank you for your Phi-2 PR by the way!!
I thought it would be around 5.6 GB for the weights alone, and much more for the activations and KV cache -- perhaps there is swapping?
I got GPT-2 1.5B working on MLX in float32. With my M1 Pro 16GB, it generates at approx 0.06 seconds per token, but it uses ~10GB of RAM
https://github.com/dx-dtran/gpt2-mlx

On my M1 Pro 16GB, I'm getting a decently fast 18 tokens per second. When you mentioned ~20s/tok, you mean 20 seconds for a single token right?
I'm getting 56% CPU utilization and 94% GPU utilization as measured by Activity Monitor

Yup, 20 seconds per token. That a 16GB machine has flipped stats and such high CPU/GPU utilization I think confirms the fact that it’s a memory issue.
Perhaps the reported memory usage for me in activity monitor is only 5.4GB because the rest is being paged.

Anybody can tell me why my ph-2 doesn't output good response to my prompt? Is it because it lacks fine-tuning and not ready to chat? Or is there any thing I missed during installation or usage process? Thanks.

@iamwhatsall What response do you get to the default prompt?

Any link for .npz for phi-2 already shared on HF ?
Thanks, hopefully can test this soon

If you run python convert.py it will automatically download the weights and convert them to .npz. It will automatically save them in a file called weights.npz.

@jbarrow thanks

@iamwhatsall What response do you get to the default prompt?

@jbarrow probably you are swapping which is somewhat surprising given the model size is not that big / should easily fit.  It's possible the max working set for a given token is >8GB but for a small prompt / only generating a few tens of tokens I wouldn't expect that.
Just FYI looking at total memory use isn't always that helpful as MLX is greedy. It will take up whatever memory it can and hold it for future allocations even if it isn't actively using it.
One thing to look at is the swap usage. Does it go way up when the model starts generating?

@iamwhatsall can't see your screenshot, maybe try uploading again..

Sorry about my last post. Here is the screenshot. Thanks.

@jbarrow you could try replacing the generation loop with this to see if it reduces memory pressure:
    for token, _ in zip(generate(prompt, model, args.temp), range(args.max_tokens)):
        mx.simplify(token)
        if token == tokenizer.eos_token_id:
            break
        s = tokenizer.decode(token.item())
        print(s, end="", flush=True)

Let me know if it helps and we can update the example.

@iamwhatsall are you using the latest mlx-exmaples/phi2/? It looks like you are missing the code to stop generating at the end of sentence token. Maybe try pulling the repo. I get more reasonable output for the same prompt:
[INFO] Generating with Phi-2...
Instruct:Introduce yourself please.\nOutput: Hello, my name is Alice and I am a student at Wonderland High. I like to read books, play chess, and bake cookies. I am looking forward to meeting you all and learning new things.

@iamwhatsall are you using the latest mlx-exmaples/phi2/? It looks like you are missing the code to stop generating at the end of sentence token. Maybe try pulling the repo. I get more reasonable output for the same prompt:
[INFO] Generating with Phi-2...
Instruct:Introduce yourself please.\nOutput: Hello, my name is Alice and I am a student at Wonderland High. I like to read books, play chess, and bake cookies. I am looking forward to meeting you all and learning new things.

It works! Thanks a lot. But I still expect it to generate better response than this. Maybe this is not the best prompt to make it show its real power :)

@awni Swap space used goes from about 800MB to ~4GB when the model is generating (even with the new loop). Not sure it helped overall speed.

python phi2.py --prompt "Instruct:Why is the sky blue?.
\nOutput: "  --max_tokens 1024
@jbarrow using a m2pro 32gb. im just seeing same output for swap (up to 3gb for few seconds) as @awni. its fast and responsive

Quantized weights fix this! Speed is now very good. Excellent job @awni!

authors: awni bigsnarfdude dx-dtran iamwhatsall jbarrow x4080

repo: ml-explore/mlx-examples


text:
Crash when quitting during generation

@davidkoski menioned this in https://github.com/ml-explore/mlx-swift/issues/139, and I encountered it today: Quitting the app while generating text will result in a crash. You can easily reproduce this with LLMEval from mlx-swift-examples.

This is a tricky one -- you need to make sure there is no eval activity going on when you exit, including asyncEval.  I think this means something like:

hook into the app shutdown mechanism and stop evaluations
a way to stop the LLM eval
a way to wait for any existing LLM eval to be done, including asyncEval

authors: DePasqualeOrg davidkoski

repo: ml-explore/mlx-swift


text:
Unable to submit form

Unable to submit proseminar application form on connect.commons.mla.org
Priority because site linked to in today's MLA Newsletter

Workaround is in place in production. The purpose of this ticket investigate the ninja forms problem with setting up a "submit after date” condition.

tracked in trello

authors: modelm rekmla terrainsvagues

repo: mlaa/commons


text:
NSCocoa verbose message on High Sierra

savefolder generates this on 10.13.1:
objc[48700]: Class FIFinderSyncExtensionHost is implemented in both /System/Library/PrivateFrameworks/FinderKit.framework/Versions/A/FinderKit (0x7fff9e81fa70) and /System/Library/PrivateFrameworks/FileProvider.framework/OverrideBundles/FinderSyncCollaborationFileProviderOverride.bundle/Contents/MacOS/FinderSyncCollaborationFileProviderOverride (0x10fd3fcd8). One of the two will be used. Which one is undefined.

So does opening single or multiple picker dialogs.  Basically whichever one is invoked for the first time throws this.

This might be related to #45

authors: fuzzyweapon mlabbe

repo: mlabbe/nativefiledialog

license: Zlib


text:
Add cublas offload

This PR upstreams the cuBLAS offload from https://github.com/octoml/mlc-llm/pull/8. It adds a flag --use-cublas to enable cublas offloading on CUDA target.
cc @masahi

Just curious - does cuBLAS help with performance, compared with existing solutions?

Yes, for q0f16, cuBLAS is faster on GEMM while being slightly slower on GEMV, compared to dlight on A10G. I haven't run extensive benchmark though.
Time elapsed: encoding 0.02986598014831543 seconds, decoding 0.02873826026916504 secs
Profiling...
======================= Encoding Profiling =======================
Name                                              Time (ms)   Count   Total time (ms)   Pct (%)   Memory (MB)     Bandwidth (GB/s)  Shape
fused_relax_permute_dims_relax_matmul5_cublas     0.3679      32      11.7732           40.90     172.30          457.3380          (22016, 4096), (1, 6, 4096), (1, 6, 22016)
fused_relax_permute_dims_relax_matmul3_cublas     0.2219      32      7.1016            24.67     96.19           423.2659          (12288, 4096), (1, 6, 4096), (1, 6, 12288)
fused_relax_permute_dims_relax_matmul6_cublas     0.1936      32      6.1965            21.52     86.17           434.5816          (4096, 11008), (1, 6, 11008), (1, 6, 4096)
fused_relax_permute_dims_relax_matmul4_cublas     0.0718      32      2.2974            7.98      32.09           436.5567          (4096, 4096), (1, 6, 4096), (1, 6, 4096)
fused_relax_permute_dims_relax_matmul2_cublas     0.5275      1       0.5275            1.83      250.07          462.9144          (32000, 4096), (1, 1, 4096), (1, 1, 32000)
split1                                            0.0076      32      0.2430            0.84      0.28            36.1646           (1, 6, 12288), (1, 6, 4096), (1, 6, 4096), (1, 6, 4096)
fused_relax_nn_attention1_cutlass1                0.0064      32      0.2052            0.71      0.20            29.7389           (1, 6, 32, 128), (1, 6, 32, 128), (1, 6, 32, 128), (8192,), (1, 6, 32,
 128)
fused_rms_norm_cutlass                            0.0029      65      0.1895            0.66      0.10            34.0250           (1, 6, 4096), (4096,), (1, 6, 4096)
add                                               0.0025      64      0.1621            0.56      0.14            54.2295           (1, 6, 4096), (1, 6, 4096), (1, 6, 4096)
fused_split2_silu1_multiply1                      0.0027      32      0.0850            0.30      0.38            138.9805          (1, 6, 22016), (1, 6, 11008)
cast                                              0.0028      1       0.0028            0.01      0.18            63.3435           (1, 1, 32000), (1, 1, 32000)
take1                                             0.0025      1       0.0025            0.01      250.05          97072.3327        (32000, 4096), (6,), (6, 4096)
slice                                             0.0025      1       0.0025            0.01      0.05            21.6407           (1, 6, 4096), (1, 1, 4096)
Total time: 28.7888 ms

======================= Decoding Profiling =======================
Name                                              Time (ms)   Count   Total time (ms)   Pct (%)   Memory (MB)     Bandwidth (GB/s)  Shape
fused_relax_permute_dims_relax_matmul1_cublas     0.3639      32      11.6441           42.03     172.05          461.7408          (22016, 4096), (1, 1, 4096), (1, 1, 22016)
fused_relax_permute_dims_relax_matmul_cublas      0.2057      32      6.5823            23.76     96.03           455.9147          (12288, 4096), (1, 1, 4096), (1, 1, 12288)
fused_relax_permute_dims_relax_matmul_relax_add1_cublas0.1929      32      6.1718            22.28     86.04           435.6315          (4096, 11008), (1, 1, 11008), (1, 1, 4096), (1, 1, 4096)
fused_relax_permute_dims_relax_matmul_relax_add_cublas0.0715      32      2.2869            8.26      32.02           437.5976          (4096, 4096), (1, 1, 4096), (1, 1, 4096), (1, 1, 4096)
fused_relax_permute_dims_relax_matmul2_cublas     0.5275      1       0.5275            1.90      250.07          462.9298          (32000, 4096), (1, 1, 4096), (1, 1, 32000)
fused_relax_nn_attention_cutlass1                 0.0063      32      0.2020            0.73      0.13            20.5509           (1, 1, 32, 128), (1, 7, 32, 128), (1, 7, 32, 128), (8192,), (1, 1, 32,
 128)
fused_rms_norm1_cutlass                           0.0029      65      0.1908            0.69      0.02            7.7971            (1, 1, 4096), (4096,), (1, 1, 4096)
fused_split_silu_multiply                         0.0029      32      0.0916            0.33      0.06            21.4793           (1, 1, 22016), (1, 1, 11008)
cast                                              0.0028      1       0.0028            0.01      0.18            64.4343           (1, 1, 32000), (1, 1, 32000)
take                                              0.0026      1       0.0026            0.01      250.01          92175.2449        (32000, 4096), (1,), (1, 4096)
Total time: 27.7025 ms

Time elapsed: encoding 0.06117057800292969 seconds, decoding 0.028194904327392578 secs
Profiling...
======================= Encoding Profiling =======================
Name                                              Time (ms)   Count   Total time (ms)   Pct (%)   Memory (MB)     Bandwidth (GB/s)  Shape
NT_matmul7                                        0.6386      32      20.4359           33.98     172.30          263.4748          (1, 6, 4096), (22016, 4096), (1, 6, 22016)
fused_NT_matmul8_add1                             0.5641      32      18.0511           30.01     86.22           149.2631          (1, 6, 11008), (4096, 11008), (1, 6, 4096), (1, 6, 4096)
NT_matmul5                                        0.4258      32      13.6248           22.65     96.19           220.6164          (1, 6, 4096), (12288, 4096), (1, 6, 12288)
fused_NT_matmul6_add1                             0.2127      32      6.8059            11.32     32.14           147.5767          (1, 6, 4096), (4096, 4096), (1, 6, 4096), (1, 6, 4096)
fused_NT_matmul4_cast                             0.5248      1       0.5248            0.87      250.13          465.4880          (1, 1, 4096), (32000, 4096), (1, 1, 32000)
split1                                            0.0066      32      0.2127            0.35      0.28            41.3290           (1, 6, 12288), (1, 6, 4096), (1, 6, 4096), (1, 6, 4096)
fused_relax_nn_attention1_cutlass1                0.0064      32      0.2041            0.34      0.20            29.8980           (1, 6, 32, 128), (1, 6, 32, 128), (1, 6, 32, 128), (8192,), (1, 6, 32,
 128)
fused_rms_norm_cutlass                            0.0029      65      0.1915            0.32      0.10            33.6701           (1, 6, 4096), (4096,), (1, 6, 4096)
fused_split2_silu1_multiply1                      0.0027      32      0.0868            0.14      0.38            136.0084          (1, 6, 22016), (1, 6, 11008)
take1                                             0.0025      1       0.0025            0.00      250.05          97464.8252        (32000, 4096), (6,), (6, 4096)
slice                                             0.0025      1       0.0025            0.00      0.05            21.5820           (1, 6, 4096), (1, 1, 4096)
Total time: 60.1426 ms

======================= Decoding Profiling =======================
Name                                              Time (ms)   Count   Total time (ms)   Pct (%)   Memory (MB)     Bandwidth (GB/s)  Shape
NT_matmul2                                        0.3574      32      11.4356           41.85     172.05          470.1597          (1, 1, 4096), (22016, 4096), (1, 1, 22016)
NT_matmul                                         0.2005      32      6.4149            23.48     96.03           467.8148          (1, 1, 4096), (12288, 4096), (1, 1, 12288)
fused_NT_matmul3_add                              0.1898      32      6.0734            22.23     86.04           442.6889          (1, 1, 11008), (4096, 11008), (1, 1, 4096), (1, 1, 4096)
fused_NT_matmul1_add                              0.0746      32      2.3877            8.74      32.02           419.1238          (1, 1, 4096), (4096, 4096), (1, 1, 4096), (1, 1, 4096)
fused_NT_matmul4_cast                             0.5246      1       0.5246            1.92      250.13          465.6577          (1, 1, 4096), (32000, 4096), (1, 1, 32000)
fused_relax_nn_attention_cutlass1                 0.0063      32      0.2016            0.74      0.13            20.5854           (1, 1, 32, 128), (1, 7, 32, 128), (1, 7, 32, 128), (8192,), (1, 1, 32,
 128)
fused_rms_norm1_cutlass                           0.0030      65      0.1939            0.71      0.02            7.6722            (1, 1, 4096), (4096,), (1, 1, 4096)
fused_split_silu_multiply                         0.0028      32      0.0889            0.33      0.06            22.1390           (1, 1, 22016), (1, 1, 11008)
take                                              0.0025      1       0.0025            0.01      250.01          97582.6683        (32000, 4096), (1,), (1, 4096)
Total time: 27.3231 ms

authors: junrushao yelite

repo: mlc-ai/mlc-llm


text:
Proposal: new properties ml:annotationOfField and ml:format especially useful for bounding boxes.

ml:annotationOfField shows the field in the ml:RecordSet that is being annotated, e.g. in this example the bounding box is the annotation for an image.
ml:format is the format of the bounding box, as per Keras bounding box format: XYXY, XYWH, etc.

Other types (like sc:AudioObject) will need additional properties.

Offline-discussions with Omar and Pierre:

format should go in extract.format (new property).
The relation object->label is represented by https://schema.org/additionalProperty on the object (here the image): "annotatedBy": "label"

repo: mlcommons/croissant


text:
Build Engine failed

Hi,
I am trying to run the MLPerf benchmark for resnet50 on NVIDIA Xavier NX with CUDA 10.2
Getting below error while building engine,
jetson@yahboom:~/projects/inference_results_v2.0/closed/NVIDIA$ make run RUN_ARGS="--benchmarks=resnet50 --scenarios=offline" make[1]: Entering directory '/home/jetson/projects/inference_results_v2.0/closed/NVIDIA' [2023-06-13 01:59:19,037 main.py:770 INFO] Detected System ID: KnownSystem.Xavier_NX [2023-06-13 01:59:22,040 main.py:108 INFO] Building engines for resnet50 benchmark in Offline scenario... [2023-06-13 01:59:22,048 main.py:117 INFO] Building DLA engine for Xavier_NX_resnet50_Offline [2023-06-13 01:59:22,140 ResNet50.py:39 INFO] Using workspace size: 1073741824 [TensorRT] INFO: [MemUsageChange] Init CUDA: CPU +346, GPU +0, now: CPU 385, GPU 6745 (MiB) [2023-06-13 01:59:24,017 builder.py:106 INFO] Using DLA: Core 0  [2023-06-13 01:59:27,339 rn50_graphsurgeon.py:448 INFO] Renaming layers [2023-06-13 01:59:27,340 rn50_graphsurgeon.py:459 INFO] Renaming tensors [2023-06-13 01:59:27,341 rn50_graphsurgeon.py:728 INFO] Adding Squeeze [2023-06-13 01:59:27,342 rn50_graphsurgeon.py:763 INFO] Adding Conv layer, instead of FC [2023-06-13 01:59:27,345 rn50_graphsurgeon.py:784 INFO] Adding TopK layer [2023-06-13 01:59:27,345 rn50_graphsurgeon.py:801 INFO] Removing obsolete layers [2023-06-13 01:59:28,972 ResNet50.py:96 INFO] Unmarking output: topk_layer_output_value [TensorRT] WARNING: DynamicRange(min: -128, max: 127). Dynamic range should be symmetric for better accuracy. [2023-06-13 01:59:28,973 builder.py:176 INFO] Building ./build/engines/Xavier_NX/resnet50/Offline/resnet50-Offline-dla-b32-int8.lwis_k_99_MaxP.plan [TensorRT] WARNING: Default DLA is enabled but layer topk_layer is not supported on DLA, falling back to GPU. [TensorRT] INFO: [MemUsageSnapshot] Builder begin: CPU 868 MiB, GPU 7107 MiB [TensorRT] INFO: Reading Calibration Cache for calibrator: EntropyCalibration2 [TensorRT] INFO: Generated calibration scales using calibration cache. Make sure that calibration cache has latest scales. [TensorRT] INFO: To regenerate calibration cache, please delete the existing one. TensorRT will generate a new calibration cache. [TensorRT] INFO: ---------- Layers Running on DLA ---------- [TensorRT] INFO: [DlaLayer] {ForeignNode[conv1...fc_replaced]} [TensorRT] INFO: ---------- Layers Running on GPU ---------- [TensorRT] INFO: [GpuLayer] topk_layer [TensorRT] ERROR: 2: [eglUtils.cpp::operator()::99] Error Code 2: Internal Error (Assertion (eglCreateStreamKHR) != nullptr failed.) Process Process-1: Traceback (most recent call last):   File "/usr/lib/python3.8/multiprocessing/process.py", line 315, in _bootstrap     self.run()   File "/usr/lib/python3.8/multiprocessing/process.py", line 108, in run     self._target(*self._args, **self._kwargs)   File "/home/jetson/projects/inference_results_v2.0/closed/NVIDIA/code/main.py", line 123, in handle_generate_engine     b.build_engines()   File "/home/jetson/projects/inference_results_v2.0/closed/NVIDIA/code/common/builder.py", line 207, in build_engines     buf = engine.serialize() AttributeError: 'NoneType' object has no attribute 'serialize'   Traceback (most recent call last):   File "code/main.py", line 772, in <module>     main(main_args, DETECTED_SYSTEM)   File "code/main.py", line 744, in main     dispatch_action(main_args, config_dict, workload_id, equiv_engine_setting=equiv_engine_setting)   File "code/main.py", line 553, in dispatch_action     launch_handle_generate_engine(*_gen_args, **_gen_kwargs)   File "code/main.py", line 92, in launch_handle_generate_engine     raise RuntimeError("Building engines failed!") RuntimeError: Building engines failed! Makefile:692: recipe for target 'generate_engines' failed make[1]: *** [generate_engines] Error 1 make[1]: Leaving directory '/home/jetson/projects/inference_results_v2.0/closed/NVIDIA' Makefile:686: recipe for target 'run' failed make: *** [run] Error 2
When I try to build it with
make run RUN_ARGS="--benchmarks=resnet50 --scenarios=offline --gpu_only"
It working fine, But as I am running on gpu only performance are not matching.
Can somebody please help me resolve the above error.
Thanks in advance.

Based on the logs and the behavior the error came from the DLA.
There are some similar questions asked in the Jetson forum

https://forums.developer.nvidia.com/t/internal-error-assertion-failed-eglcreatestreamkhr-nullptr/68405.
https://forums.developer.nvidia.com/t/eglcreatestreamkhr-error-when-running-tf-trt/199931
My guess is some of the SWs are not installed correcly. It would be more helpful if you can provide the link you used to install TensoRT/CUDA/cuDNN and the L4T image you flashed.

authors: khushbuKinara nvyihengz


text:
Add MOSAIC task

Closes https://github.com/mlcommons/mobile_app_open/issues/162

I'll update the link to the new tasks file after https://github.com/mlcommons/mobile_models/pull/34 is merged.


text:
setSelectedRows([]) should clear active cells

When calling setSelectedRows on grid with an empty array, the selected rows in the grid is removed. But the previous selected cell is still marked as active, even though the row containing the cell is not longer selected.

The problem here is that if I click on a row, then call grid.setSelectedCells([]) in javascript console for example, then click on the same row again, it does not select or highlight the row because it was already "active".  Those concepts really are connected, it won't select a row that is already active.

as suggested above, call
grid.setSelectedRows([]);
grid.resetActiveCell();
both selection and active cell will be reset.

grid.resetActiveCell(); throws JS error: currentEditor is null with latest slickgrid

this is probably fixed, along with many other issues, in my new master repo, which you should be using anyway. if it's not fixed, raise an issue over there.

I tried your new master repo, but still this issue exists. I posted there too.
thanks

repo: mleibman/SlickGrid


text:
Add negotiation card fields to report

Sub task of #463 to just add the remaining QAS and dev resource requirement fields to the report and re-order some others

Addressed in #466

repo: mlte-team/mlte


text:
Fix Android popup shown twice bug in example

Overview
Let's update the example so that fellow developers do not have to spend time finding out why the Android popup is "shown twice".
Test Plan
It is just example adjustment according to well known workaround :)

Thank you!

authors: mmazzarolo skaldo


text:
Search keeps failing

Any ideas why I would be getting this? Config is valid but did update the program and recreate the config yet still have the same issue.
`info: [6/1904] Searching for Pokemon.Detective.Pikachu.2019.2160p.UHD.Blu-ray.Remux.HEVC.HDR10.TrueHD.Atmos.7.1-SURFINBIRD
(node:842794) UnhandledPromiseRejectionWarning: TypeError: Intl.ListFormat is not a constructor
at findOnOtherSites (/usr/local/lib/node_modules/cross-seed/dist/src/pipeline.js:42:18)
(node:842794) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:842794) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
fiala06@s61415:~$ ^C`

I think that means your node version is out of date

Thanks seems like that was it!  Updated to v14.18.1 and so far its working.

repo: mmgoodnow/cross-seed


text:
Channels only created on startup

If a channel is created after the proxy has started, it won't appear in /list

Project is archived

repo: mmichie/luckystrike


text:
Font Awesome 5 SVG with JS - Huge File Size

I'm currently using v4.6.0 and was looking to upgrade to the latest version (4.11.1). I noticed that Font Awesome 5 SVG with JS file (which is used in this project) is about 700KB and even the gzipped version is about 290KB.
Isn't the huge file size an issue for a handful of icons that can be downloaded individually and self-hosted?
In the current version, Font Awesome woff2 file that gets downloaded is about 70KB, and even that is a concern to me. I counted that my site was using fewer than 20 icons and I was planning to hand-pick them and serve just those. I did that already in another project.

Not sure. This is a question you should ask the maintainers of Font Awesome. The SVG in JS version is what they recommend.
https://fontawesome.com/how-to-use/

Good idea. I'll post my issue to the FA team and close this issue. Thanks.

Font Awesome's size continues to grow as it adds more icons. It's now at v5.7.1 and 1.1MB (and 453KB gZipped). I think it'd be good to look at alternative ways to display the icons. The webfonts/CSS method is a lot smaller.

@coliff Happy to look at a PR if you want to swap out the SVG/JS version with the CSS/webfont one. I know there have been issues (#1457) with JavaScript in the menu executing slowly. As far as I can tell those issues started after switching to the JS version of FontAwesome.
I'd be curious to see if going back to the CSS/webfont version speeds up the page load some and fixes it.

authors: coliff deepfriedbrain mmistakes

repo: mmistakes/minimal-mistakes


text:
feat: add rtl support

This is an enhancement or feature.

Summary
It will add RTL support for languages like Arabic, Persian, etc.
Context
Is this related to any GitHub issue(s)? yes, Closes mmistakes/minimal-mistakes#3903

Closing in favor of https://github.com/mmistakes/minimal-mistakes/pull/4886


text:
Only the exact match ch is detected by eog, misc and stim_channel of read_raw_edf

Describe the bug
eog, misc, and stim_channel of read_raw_edf are used to assign the channel type for each channel.
Currently, only the exact matched channel can be detected.
Nevertheless, some tutorials, such as Sleep stage classification from polysomnography (PSG) data - MNE 0.24.1 documentation, assume partial match and the results may differ from what is expected.
stim_channel is checked by _check_stim_channel.
eog and misc is checked directly in_get_info.
I'm not sure if this is a bug or intentional behavior.
The behavior of some programs may change if this is changed to an exact match.
(If the EDF file contains a long name channel whose part matches another stim/misc/eog channel...)
If this is intentional behavior, these tutorials should be fixed.
Otherwise, these codes should be updated to allow the partial match.
Steps to reproduce
import mne

files = mne.datasets.sleep_physionet.age.fetch_data(subjects=[0], recording=[1])
raw = mne.io.read_raw_edf(files[0][0], eog=['eog'], stim_channel='marker', misc=['rectal'])
for c, t in zip(raw.ch_names, raw.get_channel_types()):
    print(f'{c}: {t}')

Expected results
EEG Fpz-Cz: eeg
EEG Pz-Oz: eeg
EOG horizontal: eog
Resp oro-nasal: eeg
EMG submental: eeg
Temp rectal: misc
Event marker: stim

Actual results
EEG Fpz-Cz: eeg
EEG Pz-Oz: eeg
EOG horizontal: eeg
Resp oro-nasal: eeg
EMG submental: eeg
Temp rectal: eeg
Event marker: eeg

All channels show eeg (default type).
Additional information
mne.sys_info():
Platform:       Linux-5.4.144+-x86_64-with-Ubuntu-18.04-bionic
Python:         3.7.12 (default, Jan 15 2022, 18:48:18)  [GCC 7.5.0]
Executable:     /usr/bin/python3
CPU:            x86_64: 2 cores
Memory:         12.7 GB

mne:            0.24.1
numpy:          1.21.5 {blas=openblas, lapack=openblas}
scipy:          1.4.1
matplotlib:     3.2.2 {backend=module://ipykernel.pylab.backend_inline}

sklearn:        1.0.2
numba:          0.51.2
nibabel:        3.0.2
nilearn:        Not found
dipy:           Not found
cupy:           Not found
pandas:         1.3.5
mayavi:         Not found
pyvista:        Not found
pyvistaqt:      Not found
ipyvtklink:     Not found
vtk:            Not found
PyQt5:          Not found
ipympl:         Not found
mne_qt_browser: Not found
pooch:          v1.6.0

I think we should update the tutorial – these parameters are meant to match exact names only. Note that you can always re-assign channels types after reading with mne.rename_channels(), which is more flexible because it also accepts a callable or a dict.

Thanks. It's fine for me the usage is confirmed.
Thank you for the rename function, too.

Yes, I can do at least for the sleep stage classification part
and will try to find others if exist.

It seems no other documents have the problem.
(some uses read_raw_edf(stim_channel=, but they seem full names of the channels)

good catch. It's great if you can send a PR.

Message ID: @.***>

authors: agramfort cbrnr rcmdnk

repo: mne-tools/mne-python


text:
Bvef files

I propose the following PR which aims at solving the problem raised in #4070

looks clean !
can you add an entry to what's new page?

Codecov Report

Merging #4109 into master will increase coverage by <.01%.
The diff coverage is 87.5%.

@@            Coverage Diff             @@
##           master    #4109      +/-   ##
==========================================
+ Coverage   86.11%   86.11%   +<.01%
==========================================
  Files         350      350
  Lines       63561    63569       +8
  Branches     9691     9692       +1
==========================================
+ Hits        54737    54745       +8
  Misses       6138     6138
  Partials     2686     2686

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 e945956...57c5c4b. Read the comment docs.

thx @jbschiratti
congrats for the first PR !

Hi @jbschiratti
I am coming across this PR many years later, and I am wondering:

where does the 85 factor come from when defining pos?
how do you know that theta and phi are in degrees and they ought to be converted to radians?
Do you know which coordinate system BrainVision uses? Because after running this code, the coordinate system is the FIFF HEAD coordinate system ... so we must know something about converting from one to the other :thinking:

for convenience, the relevant part of your code is pasted below:
    pol = np.deg2rad(np.array(theta))
    phi = [float(s.text) for s in root.findall("./Electrode/Phi")]
    az = np.deg2rad(np.array(phi))
    pos = _sph_to_cart(np.array([np.ones(len(az)) * 85., az, pol]).T)

I'd be very happy if you could take some time to explain :-)
See also previous attempts to solve this mystery: https://github.com/mne-tools/mne-python/pull/4531/files#r305528241
cc @jasmainak @drammock

I doubt we can provide much details on this with @jbschiratti (was a post
doc in my lab)
Disclaimer we have never been users of brainvision / brain products
ourself. Just tried
to make it work for people.
So anything you find broken and can be fixed, as long as it can be tested
and documented,
is very welcome.

authors: agramfort codecov-io jbschiratti sappelhoff


text:
MRG, FIX: Fix reading transforms

Closes #7308

Thx @larsoner

authors: agramfort larsoner


text:
FIX: eloreta labels

What does this implement/fix?
eLORETA couldn't be applied to labels.
Additional information
I am not familiar with eLoreta, so someone who is needs to check this but it does make _assemble_kernel self consistent.

errors are unrelated. thx @bloyl

authors: agramfort bloyl


text:
WIP: Database and table visualization

Description
Implements Datastore into the project along with allowing the upload of mock data via CSV file. All datastore entries are uploaded through the SetDatastore function and retrieved via the GetDatastore function. The data is visualized to the end user by accessing the /tables page on the project website.
Checklist:

[x] Code follows the style guidelines
[ ] Code commented in relevant places
[ ] Changes to necessary documentation
[ ] Basic manual testing performed after deploying app

Too many fines, can you may be synch up with Melba's changes?

Removed the vendor folder which was causing the extra files.

I tried to change the base to Melba's branch and it shows there is no diff, so looks like all of this is already merged to Melba. So we just close it then.

Datastore Attributes
| Key | ID | Sources | Destination | Protocol | Size |
|-----|----|---------|-------------|----------|------|
|     |    | String  | String      | String   | Long |


text:
Feat/allow passing answer from @on to @after hook

This PR addresses the feature discussed here, allowing the response sent inside the @on to be passed to the @after hook for further processing (avoiding the use of temp variables). The feature enables the @after decorator to accept an inject_response parameter, which can be used to control whether the response from the _on_action handler is passed to the _after_action handler, and guarantees backwards compatibility.
@OrangeTux , @tropxy, @HugoJP1, @mdwcrft would like to know you guy's feedback on this.

I don't have anything against this PR. I leave it up to the new maintainers to approve and merge it.
I'll have a call with the new maintainers this Friday and I'll bring this PR to the table.

authors: OSkrk OrangeTux

repo: mobilityhouse/ocpp


text:
Using static contextTypes is confusing

normally having a class like
class SomeComponent extends Component {
   static contextTypes = {
     router: PropTypes.object.isRequired
   }
   render() {
     return
Something

   }
}

works normally but trying to use @inject and @observable on it will no longer work. I see that instead of contextTypes using SomeComponent.wrappedComponent.contextTypes = { } works but it doesn't seem very good style. Is there no way to pickup the fact that there was a static contextType on the class about to wrapped?

Yeah I think it should be possible to mix in. Feel free to PR. Although
note that in edge cases it can lead to very subtle bugs when not using the
static keyword:
@inject class SomeComponent extends Component {
}
SomeComponent.contextTypes = { somethign } // break inject context types
Op za 4 nov. 2017 om 02:14 schreef Andreas Richter <notifications@github.com

:

normally having a class like
class SomeComponent extends Component {
static contextTypes = {
router: PropTypes.object.isRequired
}
render() {
return Something
}
}
works normally but trying to use @Inject https://github.com/inject and
@observable https://github.com/observable on it will no longer work. I
see that instead of contextTypes using
SomeComponent.wrappedComponent.contextTypes = { } works but it doesn't seem
very good style. Is there no way to pickup the fact that there was a static
contextType on the class about to wrapped?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/mobxjs/mobx-react/issues/354, or mute the thread
https://github.com/notifications/unsubscribe-auth/ABvGhI_NW_AELT_0dqiyjIO2QXakZTD0ks5sy7qAgaJpZM4QR1sz
.

Closing, since contextTypes will disappear anyway

authors: mweststrate richtera

repo: mobxjs/mobx-react


text:
remove "unit tests in serial mode" job

This is a continuation of #4319. There's a job in .travis.yml that should be removed, since unit tests get run in serial mode by default again.

Hello @boneskull !  The job that you are talking is this?

script: MOCHA_PARALLEL=0 npm start test.node.unit
name: 'Latest Node.js (unit tests in serial mode)'

if not can you give me a hint? I would like to help :)

@boneskull Please check fix to this issue here : #4342

fixed by #4342

authors: Devjeel boneskull gerardolgvr juergba

repo: mochajs/mocha


text:
Multiple reporter output

Discussed at OpenJS collaborators summit.
We want "Flexible output streams" -- where a user can choose one or more streams for any given reporter.
The first step is to propose a reasonable user-facing API

I’m a little disappointed there are no comments from others here. I can’t be the only one who wants this feature?
Our CI tool uses the Xunit reporter, and we also use lcov, and now I’m looking at writing a reporter that can send Carbon events to build Grafana charts (because some CI tools don’t do this for me).
But we have a hundred modules, and stuffing all of these through mocha-multi is going to be a lot of tedious work to get right.

For the config files it should be fairly straightforward to allow reporter[s] to be a map:
`“reporters”: {
“lcov”: {
“outputfile”: “build/lcov.xml”
}
}
and send distinct options to each reporter.
The command like is a little trickier since you would need multiple —reporterOptions or another format for providing them and I don’t know how yargs would like that.
`

I can’t be the only one who wants this feature?

This was also asked for in #3902. And there are a few 👍s. So let's continue the discussion if anybody is interested:

How would specifying reporters on the CLI look? Reporter options?
How about in a config file?

https://www.npmjs.com/package/mocha-multi looks like a good reference to answer those questions.

There's also NodeJS built-in test runner to consider, but the configuration options there are limited to only the output stream.
https://nodejs.org/api/test.html#multiple-reporters

Mocha is basically a copy of RSpec. If memory serves, RSpec used multiple copies of the same command line parameter to configure each reporter.
I'm not saying you should do it exactly like this, but the general idea:
https://github.com/rspec/rspec-core/issues/213

I've been interested in this feature for the past few years, but didn't comment before, so now I am in the hopes of renewing the discussion.
My team and I are running Mocha tests in CI across dozens of codebases (microservices, however they have grown somewhat large). We require human-readable test results (spec reporter), as well as JUnit (for GitLab), as well as code coverage (via c8). So far, we found no way of generating all of this in one run, so I wrote a tool that performs two consecutive runs on every CI run:

The first displays the live spec reporter output, so any failures can be immediately understood.
The second uses the JUnit reporter and also generates coverage.

This works, except for two downsides:

Flaky tests may cause the first run to pass while the second run fails, or hangs with proper output at all.
The CI takes twice as much time to run, wasting developer time and also electricity.

The only way I see to properly solve this is by using the spec and JUnit reporters simultaneously in a single run (which could also have coverage collected), but this needs to be supported by Mocha.
I don't consider patching node_modules or manipulating Mocha internals a viable solution. Neither is migrating to the Node.js test runner, as it has its own collection of DX problems, and would require lots of work in our case.

I've been interested in this feature for the past few years, but didn't comment before, so now I am in the hopes of renewing the discussion.
My team and I are running thousands of Mocha tests in CI across dozens of codebases. We require human-readable test results (spec reporter), as well as JUnit (for GitLab), as well as code coverage (via c8). So far, we found no way of generating all of this in one run, so I wrote a tool that performs two consecutive runs on every CI run:

The first displays the live spec reporter output, so any failures can be immediately understood.
The second uses the JUnit reporter and also generates coverage.

This works, except for two downsides:

Flaky tests may cause the first run to pass while the second run fails, or hangs with proper output at all.
The CI takes twice as much time to run, wasting developer time and also electricity.

The only way I see to properly solve this is by using the spec and JUnit reporters simultaneously in a single run (which could also have coverage collected), but this needs to be supported by Mocha.
I don't consider patching node_modules or manipulating Mocha internals a viable solution. Neither is migrating to the Node.js test runner, as it has its own collection of DX problems, and would require lots of work in our case.
I would gladly help with the implementation and/or design work, if the Mocha project leads can reconsider the status of this feature request.

In addition to https://www.npmjs.com/package/mocha-multi (mentioned above) there's also https://github.com/stanleyhlng/mocha-multi-reporters which we could use as an example for how people accomplish this today.

Regarding how to implement, some tools support repeating the same flag multiple times to provide multiple values. It would be a little difficult to get this right for mocha. Unfortunately the arguments DevEx is... well it is what it is.
Perhaps a simpler solution would be a new flag that is mutually exclusive with the old arguments, and fix it there.
Mocha-multi is okay, but it used to have a terrible bug where it would return 0 error code even if the tests failed. Which has cost me collectively days of drama at work. The fact that it needs to exist at all is galling, the fact that it did it incorrectly for a long time is just insult to injury.

authors: JoshuaKGoldberg blimmer craigtaub jdmarshall leandroaguiar-lr meyfa


text:
report error on page 82

通过store.getState()总能够读取当整个状态树的数据

多了个 “当”，应修正为：“通过store.getState()总能够读取整个状态树的数据”

2017.6重印版更正了这个错误。

authors: jarone mocheng

repo: mocheng/react-and-redux


text:
Check KeyPath Sendability when Swift 6 is released

The indexes currently use @unchecked Sendable as a workaround.

Doesn't seem to work in Swift 6 either 😔

repo: mochidev/CodableDatastore


text:
Call for new maintainers

Over the past year or so it has become clear to me that I have lost most if not all my drive to work on this project. What started as an exciting project of using different technologies to solve an ancient problem for a new platform, has become more than a chore. I am proud of the work I have accomplished on Mockative, proud of the success of the project in reaching a lot of developers, and proud to have participated in the evolution of Kotlin Multiplatform, but as the issues keep piling up so do my feelings of neglect and dread for Mockative.
Since Mockative still has a significant userbase, instead of sunsetting the project entirely, I am calling for new maintainers to take over the project, so if you would like to pick up the torch and lead Mockative into the era of Kotlin 2, please leave a comment here or contact me at nillerr@gmail.com to discuss the details.
There is a single cost associated with Mockative, which is the mockative.io domain name coming in at around $40 / year up for renewal in about 2 months.

I would gladly take over. I'm not sponsoring you for much at the moment, but $40/year is still cheaper year-to-year 😅
I greatly enjoy using your library and was just checking in on any new updates as I was about to set up another project to use mockative. I have only read about developing KSP plugins – never developed one myself, so I would appreciate any help you're willing to give on that front.

Hi @TSampley
After much consideration, I have returned to the project to put in the effort required to support Kotlin 2. I would still love to have more people contribute to the project, so if you have ideas feel free to submit them. Also, if you'd like input on your own KSP journey don't hesitate to contact me on #kotlinlang at https://kotlinlang.slack.com/team/U0N1TJZH8

authors: Nillerr TSampley

repo: mockative/mockative


text:
Fix mdmd test

I think this got broken with the latest version of synchronicity, which removes create_async

@prbot approve

Oh sorry, thought I had fixed this already

authors: erikbern freider

repo: modal-labs/modal-client


text:
🛑 Flame is down

In 342f8a7, Flame ($FLAME_URL) was down:

HTTP code: 500
Response time: 930 ms

Resolved: Flame is back up in b11e309.


text:
🛑 Grafana is down

In 269778e, Grafana ($GRAFANA_URL) was down:

HTTP code: 403
Response time: 5448 ms

Resolved: Grafana is back up in 7d09896.


text:
🛑 Tautulli is down

In 4895239, Tautulli (https://tautulli.modem7.com/tautulli) was down:

HTTP code: 403
Response time: 7199 ms

Resolved: Tautulli is back up in 24d76be.


text:
🛑 Bazarr is down

In 072b7de, Bazarr ($BAZARR_URL) was down:

HTTP code: 500
Response time: 729 ms

Resolved: Bazarr is back up in 1c7eb66.


text:
Logging: INFO lines for initializing logging are repeated

The initial lines of the terminal output are repeated fourfold:
16:24:12-INFO-Path` for logging: /home/###/Workspaces/oemo-flex/experiment_1/005_results_postprocessed/FlexMex1_10/oemoflex.log
16:24:12-INFO-Used oemof version: 0.3.2
16:24:14-INFO-Path for logging: /home/###/Workspaces/oemo-flex/experiment_1/005_results_postprocessed/FlexMex1_10/oemoflex.log
16:24:14-INFO-Used oemof version: 0.3.2
16:24:20-INFO-Path for logging: /home/###/Workspaces/oemo-flex/experiment_1/005_results_postprocessed/FlexMex1_10/oemoflex.log
16:24:20-INFO-Used oemof version: 0.3.2
16:24:20-INFO-Path for logging: /home/###/Workspaces/oemo-flex/experiment_1/005_results_postprocessed/FlexMex1_10/oemoflex.log
16:24:20-INFO-Used oemof version: 0.3.2

This goes further: initializing (paths, UseCase name etc.) are repeated in all the steps (perprocessing, infer, optimization, postprocessing) of a UseCase.
Better centralize and call initializing statements from each step (in case they have to work stand-alone – ?).

Yes, that is indeed an issue. A solution would be to define logging in the run_all script. I am not sure what effect that would have on the case where you run one script standalone.

Not necessary any more since the processing steps are called centrally by Snakemake (each in a separate python session, no central script) and no multiple import occurs.

authors: jnnr unndreay

repo: modex-flexmex/oemo-flex


text:
BUG: GrouperNotFound for TimeGrouper with df.group_by()

Modin version checks

[X] I have checked that this issue has not already been reported.

[X] I have confirmed this bug exists on the latest released version of Modin.

[X] I have confirmed this bug exists on the main branch of Modin. (In order to do this you can follow this guide.)

Reproducible Example
import modin.pandas as pd
data = {'id': [1,2],'time_stamp': ["2022-03-24 23:53:09", "2022-03-24 21:53:09"], 'count':[5,5]}
data_frame = pd.DataFrame(data)
data_frame['time_stamp'] = pd.to_datetime(data_frame['time_stamp'])
print(data_frame.dtypes)
daily = data_frame.groupby(pd.Grouper(key='time_stamp', freq='D')).mean().reset_index()
print(daily)

Issue Description
Issue is thrown with the newest Modin version when installed from Github Master.
Expected Behavior
Modin should group data and aggregate data by date.
Pandas gives the following output for daily:
time_stamp   id  count
0 2022-03-24  1.5    5.0
Error Logs
Traceback (most recent call last):
File "/jupyter/performance_queries/test.py", line 6, in
customer_list_df = my_pe.extract_data("system",["2084aa60-0d42-11eb-b15a-9f52e7d4f854"],"SYSTEM","daily")
File "/jupyter/performance_queries/performance_extraction.py", line 65, in extract_data
granularity_df = self.__granularity(aggregated_df, granularity)
File "/jupyter/performance_queries/performance_extraction.py", line 136, in __granularity
granularity_df = data_frame.groupby([pd.Grouper(key='timestamp', freq='D'),'system_id','customer_id']).mean().reset_index()
File "/usr/local/lib/python3.9/site-packages/modin/logging/logger_decorator.py", line 128, in run_and_log
return obj(*args, **kwargs)
File "/usr/local/lib/python3.9/site-packages/modin/_compat/pandas_api/latest/dataframe.py", line 116, in groupby
return self._groupby(
File "/usr/local/lib/python3.9/site-packages/modin/logging/logger_decorator.py", line 128, in run_and_log
return obj(*args, **kwargs)
File "/usr/local/lib/python3.9/site-packages/modin/pandas/dataframe.py", line 509, in _groupby
raise KeyError(next(x for x in names if x not in self))
KeyError: TimeGrouper(key='timestamp', freq=, axis=0, sort=True, dropna=True, closed='left', label='left', how='mean', convention='e', origin='start_day')
Installed Versions
INSTALLED VERSIONS
commit           : 7871c7bc5adeeaca9b6fc4b88482be8b18333faa
python           : 3.9.10.final.0
python-bits      : 64
OS               : Linux
OS-release       : 5.14.0-70.26.1.el9_0.x86_64
Version          : #1 SMP PREEMPT Fri Sep 2 16:07:40 EDT 2022
machine          : x86_64
processor        : x86_64
byteorder        : little
LC_ALL           : None
LANG             : en_US.UTF-8
LOCALE           : en_US.UTF-8
Modin dependencies
modin            : 0.15.0+171.g7871c7bc
ray              : 2.0.0
dask             : 2022.01.1
distributed      : 2022.01.1
hdk              : None
pandas dependencies
pandas           : 1.5.0
numpy            : 1.23.2
pytz             : 2022.2.1
dateutil         : 2.8.2
setuptools       : 53.0.0
pip              : 21.2.3
Cython           : 0.29.32
pytest           : None
hypothesis       : None
sphinx           : None
blosc            : None
feather          : None
xlsxwriter       : None
lxml.etree       : 4.6.5
html5lib         : None
pymysql          : 1.0.2
psycopg2         : 2.9.3
jinja2           : 3.1.2
IPython          : 8.4.0
pandas_datareader: None
bs4              : 4.11.1
bottleneck       : None
brotli           : None
fastparquet      : None
fsspec           : 2022.7.1
gcsfs            : None
matplotlib       : 3.5.3
numba            : None
numexpr          : None
odfpy            : None
openpyxl         : None
pandas_gbq       : None
pyarrow          : 6.0.1
pyreadstat       : None
pyxlsb           : None
s3fs             : None
scipy            : 1.9.0
snappy           : None
sqlalchemy       : 1.4.40
tables           : None
tabulate         : 0.8.10
xarray           : None
xlrd             : None
xlwt             : None
zstandard        : None
tzdata           : None

Updated Issue for reproducible code

@benaurelschill thanks for reporting this issue. Your script reproduces the error for me. I'm taking a look to see what's going wrong and whether this can be fixed quickly.

The chain of events producing the bug:

we don't compute drop correctly in modin.pandas.DataFrame._groupby when the by is a Grouper object. In the case from the reproducer, we should know we're going to drop the one column in the Grouper object
Because self._drop is wrong, _internal_by thinks there are no by columns: https://github.com/modin-project/modin/blob/621bc10e16c21ca4270a4c2a25aa05f814f2686b/modin/pandas/groupby.py#L377
... although even if self._drop were correct, _internal_by might not be able to deduce the by columns from the grouper.
When dropping non-numeric columns, we assume we can drop the non-numeric key column, because we don't think it's in the by: https://github.com/modin-project/modin/blob/621bc10e16c21ca4270a4c2a25aa05f814f2686b/modin/pandas/groupby.py#L1078-L1089
We try to do the groupby by defaulting to pandas because of the Grouper, and the key column is missing.

It looks like we need to fix _drop and the _internal_by.
Meanwhile, doing groupby on timestamp, but without a grouper, fails, but that's separate issue #5099. #5099 might be a dependency for fixing this bug, too.
@benaurelschill the modin contributors will try to fix this bug soon. Meanwhile, you can work around this bug by doing the entire groupby step in pandas, then converting the result to modin, e.g. as follows (for details see #896):
daily = pd.DataFrame(data_frame._to_pandas().groupby(pd.Grouper(key='time_stamp', freq='D')).mean().reset_index())

authors: benaurelschill mvashishtha

repo: modin-project/modin


text:
Can somebody provide an example of the Vite + Vue 2 + Composition Api

I am preparing to use this project to build the Vite + Vue 2.6 + Composition API project.
But what you see in Vue Example are all Vue3 use cases.
I have to say, the actual application should be more Vue2 projects. Because governance of old code can be trickier, we prefer to use the product directly.
I also tried using @originjs/vite-plugin-federation, but the project didn't work in Vite4. It seems that their maintainers are quite busy and have a lot of problems that are still not being addressed.
When I was ready to switch to this package, I was in trouble with the dependency package choice due to the lack of a corresponding example. For example: esbuild plug-in selection, configuration items to be opened.
Can anyone provide a simple example project?

Hi @He110te4m you are right, all the examples are with Vue 3. Can you prepare and share a basic repo with Vue 2 + composition API?
I will try to solve your needs

Hi @He110te4m you are right, all the examples are with Vue 3. Can you prepare and share a basic repo with Vue 2 + composition API? I will try to solve your needs

Of course, I've created a minimal repo for the Vue 2 + Vite + Composition API. The repository contains typescript and responsive variables for Vue, but no module federation.

Thanks, that's a good first step 💪 I will investigate

Well, I hope the investigation goes well. Let me know if you need any support.

Hello @gioboa , is there any progress in this work now?

In my local machine I have few errors in the build process, I am working to solve them

Hello, @gioboa . Is there a project I can preview now? Or is it a conclusion that supports Vue2?
In fact, I have not much time to wait. When will we know? I have to keep the project on schedule.

I will work on this next week if I have time

I spent more than 4h to create a working POC but I still have some issue.
did you try this vue2 example?
https://github.com/module-federation/module-federation-examples/tree/master/vue2-in-vue3

I spent more than 4h to create a working POC but I still have some issue. did you try this vue2 example? https://github.com/module-federation/module-federation-examples/tree/master/vue2-in-vue3

No, I didn't.
This is an example of webpack, and what I really need is an example of Vite.
During this time I tried Vue 2.6 or Vue 2.7 for Module Federation and also had some problems.
It seems that Vue uses remote as a component of SSR, but Vue 2.6 is not friendly to SSR support.
Vite plug-in repository, there are still SSR bug unaddressed, it was archived.
When I tried 2.7, I encountered a vite plugin that returned HTML, causing es-module-shim to fail.
I tried to bypass the request with the 'skip' option, but the error occurred before 'skip' took effect, and I failed.
At the end, I tried to build the component/page as a Lib and load it as an asynchronous component in host, and I failed.
In fact, maybe I should think about replacing the build tool. Vue 2 has a terrible experience with Vite microservices.

I investigated more and I have a semi working example.
I can't figure out how to load dynamic component with Vue2 🤔
any suggestions are welcome

I create the POC
@He110te4m here you have a working Vue2 Module federation example with Vite
https://github.com/gioboa/vue-microfrontend-demo/tree/vue2_implementation

I created the POC @He110te4m here you have a working Vue2 Module federation example with Vite https://github.com/gioboa/vue-microfrontend-demo/tree/vue2_implementation

Thank you very, very much. I'll take a look.

I'm happy to hear that 😉

repo: module-federation/vite


text:
Beware the androidx.security:security-crypto is deprecated

Info found here:
Jetpack security crypto library
also found some info on how to proceed in the future for the maintainers and users
securing-the-future-navigating-the-deprecation-of-encrypted-shared-preferences
I don't mean this Issue to be a spam or something.

The fix for this issue will be discussed in #769

authors: juliansteenbakker talamaska


text:
Added minimum sdk requirement on AndroidManifest

Currently flutter supports a minimum SDK version of 16 and all plugins should be able to match it, anything lower than that will probably cause some unwanted issues. We need to add those into Android Manifest and properly document it.

Hi Li,
The plugin requires minimum version of 18 as it uses KeyStore.

On 9 Jul 2019, at 2:02 AM, LI DONGZE notifications@github.com wrote:
Currently flutter supports a minimum SDK version of 16 and all plugins should be able to match it, anything lower than that will probably cause some unwanted issues. We need to add those into Android Manifest and properly document it.

You can view, comment on, or merge this pull request online at:
https://github.com/mogol/flutter_secure_storage/pull/61
Commit Summary

Added minimum sdk requirement on AndroidManifest

File Changes

M android/src/main/AndroidManifest.xml (5)

Patch Links:

https://github.com/mogol/flutter_secure_storage/pull/61.patch
https://github.com/mogol/flutter_secure_storage/pull/61.diff

—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.

Hi Li, The plugin requires minimum version of 18 as it uses KeyStore.
…
On 9 Jul 2019, at 2:02 AM, LI DONGZE @.***> wrote: Currently flutter supports a minimum SDK version of 16 and all plugins should be able to match it, anything lower than that will probably cause some unwanted issues. We need to add those into Android Manifest and properly document it. --------------------------------------------------------------- You can view, comment on, or merge this pull request online at: #61 Commit Summary - Added minimum sdk requirement on AndroidManifest File Changes - M android/src/main/AndroidManifest.xml (5) Patch Links: - https://github.com/mogol/flutter_secure_storage/pull/61.patch - https://github.com/mogol/flutter_secure_storage/pull/61.diff — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

Yes. Thanks for pointing that out.

Hi German, Could you approve this please? Thanks.

Hi Li, The plugin requires minimum version of 18 as it uses KeyStore.
…
On 9 Jul 2019, at 2:02 AM, LI DONGZE @.***> wrote: Currently flutter supports a minimum SDK version of 16 and all plugins should be able to match it, anything lower than that will probably cause some unwanted issues. We need to add those into Android Manifest and properly document it. --------------------------------------------------------------- You can view, comment on, or merge this pull request online at: #61 Commit Summary - Added minimum sdk requirement on AndroidManifest File Changes - M android/src/main/AndroidManifest.xml (5) Patch Links: - https://github.com/mogol/flutter_secure_storage/pull/61.patch - https://github.com/mogol/flutter_secure_storage/pull/61.diff — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

Hi German, Could you review this please? Thanks.


text:
kickstarting breaks

Hi there.
Centos 7
node v5.8.0
npm 3.7.3
Command 'slush kickstart'  breaks with error:
/usr/lib/node_modules/slush-kickstart/slush/defaults.js:37
authorName: user.name || '',
^
TypeError: Cannot read property 'name' of undefined

Hi,
i think i know why happened this issue, so we need to test small new code in this file [ slush/default.js ]
so just change this code: [https://github.com/mohamdio/slush-kickstart/blob/v1.0.2/slush/defaults.js#L30]
if (fs.existsSync(configFile)) {
        user = iniparser.parseSync(configFile).user || {};
}

to
user = fs.existsSync(configFile) ? iniparser.parseSync(configFile).user : {};

and tell me if this solved the issue or not ? to make update about that.
regards

Hi,
I'm just the messenger, not a contributor.
Testing and publishing is your job I think.
Btw: the above mentioned function is called 'setDefautls()'. That's a bit silly. Should be 'setDefaults()' I assume.

Okay, i tested and updated the package to v1.0.3, so you can update it now by doing that:
npm install -g slush-kickstart
or
npm update -g
this update will solve the issue
thanks for your feedback

Don't forget to update your repo. I don't see any updates.

I already updated the repo and npm package also, check out :
https://github.com/mohamdio/slush-kickstart/commit/2fc7ca6c19b69c70af9a46b0e0ada908e8a80d30
https://www.npmjs.com/package/slush-kickstart
so did you tried package again ? or you didn't get the new update ?
regards

Ok, sorry... Just saw you updated. I'll try and let you know.

so the new update solve this issue .. right ?

authors: mohamdio violacase

repo: mohamdio/slush-kickstart


text:
条例リンク

例の条例が通ったらリンクを入れる

リンクは https://www.pref.kagawa.lg.jp/somugakuji/kenpo/2020index/2020/0324gj24.pdf

repo: mohemohe/react-kagawa-pref

license: WTFPL


text:
Update scala-collection-compat to 2.1.6

Updates org.scala-lang.modules:scala-collection-compat from 2.1.2 to 2.1.6.
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

Ignore future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "org.scala-lang.modules", artifactId = "scala-collection-compat" } ]

labels: library-update, semver-patch

Superseded by #33

authors: aquamatthias moia-pipeline

repo: moia-dev/teleproto


text:
PosixPath Atrribute Error in Utils.py

encountered in google colab.
i havent checked whether the error reproduces in other environment, so just will keep it just a notice in issue.
code
!cd drive/MyDrive/deepbiosphere/ && python src/deepbiosphere/Download_GBIF_Data.py \
--gbif_user XXXXX --gbif_email XXXXXXXX --organism plant --start_date 2015 --end_date 2022

error message
Traceback (most recent call last):
  File "/usr/lib/python3.10/pkgutil.py", line 417, in get_importer
    importer = sys.path_importer_cache[path_item]
KeyError: PosixPath('/content/drive/MyDrive/deepbiosphere/src/deepbiosphere')

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/content/drive/MyDrive/deepbiosphere/src/deepbiosphere/Download_GBIF_Data.py", line 2, in <module>
    from deepbiosphere.Utils import paths
  File "/content/drive/MyDrive/deepbiosphere/src/deepbiosphere/__init__.py", line 9, in <module>
    for (_, module_name, _) in iter_modules([package_dir]):
  File "/usr/lib/python3.10/pkgutil.py", line 129, in iter_modules
    for i in importers:
  File "/usr/lib/python3.10/pkgutil.py", line 421, in get_importer
    importer = path_hook(path_item)
  File "<frozen importlib._bootstrap_external>", line 1632, in path_hook_for_FileFinder
  File "<frozen importlib._bootstrap_external>", line 1504, in __init__
  File "<frozen importlib._bootstrap_external>", line 182, in _path_isabs
AttributeError: 'PosixPath' object has no attribute 'startswith'

workaround
in src/deepbiosphere/init.py
for (_, module_name, _) in iter_modules([str(package_dir)]):
#for (_, module_name, _) in iter_modules([package_dir]):

in setup.cfg, prior to pip install
pacakge_dir=
=src
to
package_dir =
=src

Good catch! Unfortunately default module importation in python was a bit ugly in older versions of Python and I never got around to cleaning up the package importation to the newer pyproject.toml package setup. I'll leave this issue open for now as a reminder to fixing it at some point!

repo: moiexpositoalonsolab/deepbiosphere


text:
Feature/filters

Closing issue

[X] Issue number #27

Checklist for this pull request

[x] Get costumers by query object
[x] Get orders by query object
[x] Get webhooks by query object
[x] Update README.md (the webhooks was not documented)

Tests

[x] Get costumers/orders/webhooks by query with no query (returns default result)
[x]  Get costumers/orders/webhooks by query as described in docs

Everything fixed at docs. Also executed npm run lint at this time.

repo: moip/moip-sdk-node


text:
Issues with responsive layout not "snapping in the place" after browser resize

Hi. This is maybe an odd question, but I experience , when resizing browser window, that all elements doesn't fluidly snap in place like they should. I suspect this has something to do with duplication of code and that I might be using Jeet in the wrong way. Has anyone else experienced this issue?
I know this probably isn't an issue, since no one sits around resizing a browser window when visiting a page, but fixing this would certainly get the functionality "under my skin" and thus understanding more of the techniques in use.
I might add that I'm using sass-mq as my breakpoint system. Maybe I'm using this wrong?
Last but not least; I don't suspect anyone knowing what the hell I'm talking about and it's probably difficult to diagnose it without code, but someone might have experienced this too? :dancer:
Thanks

I have not experienced this problem first hand myself. Care to explain the steps that lead you to finding this?

This has been fixed, user mistake. Case closed. You can close thread :) Thanks for the followup.

authors: braxtonfair coffeeneed

repo: mojotech/jeet


text:
Migrate to tslint:recommended

tslint.json
{
"extends": "tslint:recommended"
}

Duplicate of #6

authors: DanielTWalther DominicBoettger

repo: molecuel/database


text:
Issue #3886: Microsoft 2-digit years prior to 1/1/1970.

Two RFC2822 unit tests failed only in Microsoft browsers (IE11 and Edge) because they regard 2-digit, years prior to 1/1/1970, as invalid. The solution is to translate 2-digit years to 4-digits consistent with the rules defined in the RFC.

@TracyGJG it looks like you bundled all your suggested changes into one commit, maybe you need to use git branches more appropriately.
Also can you provide a bit more info on this IE11/Edge issue, what happens, what is supposed to happen, when is it an issue. I'm seeing some core parsing code changes -- these need to be done extremely carefully.

@ichernev, I accept the comment regarding my use of Git.
The issue with the Microsoft web browsers is that RFC2822 dates with 2-digit years in the range 00-69 are regarded as invalid. This is not the case with Chrome and should be accepted as valid according to the specification.
Date.parse('1 Jan 69') // Edge15: NaN, Chrome60: -31536000000
Date.parse('1 Jan 70') // 0, same on both browsers.
Date.parse('1 Jan 71') // 31536000000, same on both browsers.
Date.parse('1 Jan 99') // 915148800000, same on both browsers.
Date.parse('1 Jan 00') // Edge15: NaN, Chrome60: 946684800000

This kind of issue exemplifies why Moment is important.

Pull Request withdrawn.

authors: TracyGJG ichernev

repo: moment/moment


text:
chore(main): release 0.5.5

:robot: I have created a release beep boop
0.5.5 (2024-03-26)
Bug Fixes

remove constructor doc comments (#33) (afa32f1)

This PR was generated with Release Please. See documentation.

:robot: Release is at https://github.com/momentohq/drupal-cache/releases/tag/v0.5.5 :sunflower:

repo: momentohq/drupal-cache


text:
🛑 haccp is down

In 57a327f, haccp (https://www.haccp.or.kr) was down:

HTTP code: 400
Response time: 1130 ms

Resolved: haccp is back up in ad785c8 after 10 minutes.


text:
🛑 haccp is down

In e8943d6, haccp (https://www.haccp.or.kr) was down:

HTTP code: 400
Response time: 1284 ms

Resolved: haccp is back up in bc30f02 after 27 minutes.


text:
pachydermoperiostosis vs. primary hypertrophic osteoarthropathy

I am looking for clarification on these two terms: primary hypertrophic osteoarthropathy MONDO:0016620 and pachydermoperiostosis MONDO:0009799
On the Pachydermo. term, I see X-ref SCTID: 88220006 is a Mondo equivalent term. It looks like SNOMED themselves say this term is SYN with primary hypertrophic osteoarthropathy (at least per the UMLS display of these terms) and the MESH concept
D010004 also uses the terms interchangeably. (https://www.ncbi.nlm.nih.gov/mesh/?term=D010004)

The OMIM PS for Hypertropic osteoarthropathy, primary - PS259100 and the Orphanet MIM x-refs on ORPHA:2796 seem to conflict on the defining subset of conditions of the these two terms. http://www.orpha.net/consor/cgi-bin/OC_Exp.php?Expert=2796 (Cranio-osteoarthropathy being the outlier) As such, I'm getting two different Mondo terms as valid matches for a single UMLS CUI : C0029411.
@ahamosh and @ana-rath-orphanet @Orphanet (and anyone else who is more clinically educated than I am!) Can we get a consensus if these are synonyms (as implied by SNOMED and MESH) or if we can consider renaming so we get distinct SCTIDs for the ORPHANet subset? (Note: there is Pachydermoperiostosis-familial, UMLS CUI C0542418 which X-refs SCTID 254133005, but even that SCTID conflates Familial hypertrophic osteoarthropathy with familial pachydermoperiostosis, so it's kind of lousy work-around to actually clarifying the terms)

What I read in OMIM is that familial hypertrophic osteoarthropathy is synonymous with familial pachydermoperiostosis.  There are 2 responsible genes.  Variants in SLCO2A1 cause both dominant and recessive disease, variants in HPGD cause dominant disease.  The phenotypic manifestations range from bone and skin thickening, to bone only or skin only.
Cranioosteoarthropathy is a separate condition due to biallelic mutation in the HPGD.

C0029411 is equiv to 'primary hypertrophic osteoarthropathy' and marked as a subClassOf on 'hypertrophic osteoarthropathy, primary, autosomal recessive, 1'.

authors: ahamosh kanems nicolevasilevsky

repo: monarch-initiative/mondo


text:
Remove mentions of monerooutreach.org

At https://www.getmonero.org/get-started/faq/#vulnerabilities and if it is linked on other pages.
The website seems blank/down and no longer maintained https://gitlab.com/monerooutreach

https://github.com/monero-project/monero-site/issues/2228 tracks it

repo: monero-project/monero-site


text:
Fix broken link

You could put a link like https://www.binance.com/en/crypto/buy/EUR/XMR, but I don't like this approach, because the URL might break again in the future, it forces the English language in the URL, and you have to pick a currency.

would like this closed in favor of #2223
@jorgesumle please see #2223

I agree! Fuck Binance

authors: jorgesumle nahuhh


text:
BCMath is unmaintained

The bcmath extension has not had a maintainer since 2004 [ref].
This is currently preventing us from upgrading to 4.0, since our policy prevents us from enabling the bcmath extension.
Would it be possible to make the bcmath extension an optional requirement? I'd be happy to submit a PR.

You can declare that bcmath exists in config.platform or install a bcmath polyfill like https://github.com/phpseclib/bcmath_compat

Great suggestions @arokettu. But I leave this issue open for ow. I agree with @pevdh, making bcmath required while it is actually unmaintained deserves our attention. Maybe @Ocramius can help so shed us his thoughts on this remark.

ext-bcmath is maintained as part of php-src: https://github.com/php/php-src/tree/3fb7198034c0f2ed49eeb71f9757b58aaa26260d/ext/bcmath
It receives regular updates, and is not unmaintained?

authors: Ocramius arokettu frederikbosch pevdh

repo: moneyphp/money


text:
fix(mongos): solve memory leak on server reconnection

In reconnectProxies of mongos, the closure of the serverDescriptionChanged event handler references the old _server instance, preventing old disconnected server instances from being cleaned by GC.
Has noticeable effect on memory usage after a large amount of disconnections.
Solution: bind the emit function to its parameters without declaring a function which would inherit the closure.
Can be tested by changing the test in mongodb-core\test\tests\unit\mongos\reconnect_tests.js to take heapdumps.
Attached 2 heapdumps, with and without the fix. When opened in chrome dev-tools, the version without the fix contains a larger amount of Server instances, retained by serverDescriptionChanged event.
heapdumps.zip

@mbroadst Hi, can you please give me feedback for my PR? Is everything ok with my fix?

@itayalfia we're just missing a test case here, I'm working on putting one together locally. Will get back to you shortly, thanks!

@itayalfia I see, this is just a matter of a left-over event listener really. We don't need a test, but I think the preferred solution is to add:
_server.removeAllListeners('serverDescriptionChanged');

on L117, after  _server.destroy(); Could you make that change? We'll merge it in as soon as that's in, thanks!

authors: itayalfia mbroadst

repo: mongodb-js/mongodb-core


text:
Process is not killing itself on fatal error (docker)

I am using docker (via OpenShift) with Mongo Connector and elastic2-doc-manager in their latest versions.
Everything is ok until I am getting for any reason ReadTimeoutError because one of the requests to the Elastic took more than 10sec.
In this case, the mongo-connector should send a SIGNAL to kill itself, It will help the Docker restart automatically (recover) and try to continue from the last oplog entry.
In my case, I noticed that the connector was "stuck" in this error for about 20 hours, And when I restarted it manually the connector failed to trace in time the changes happened in the MongoDB (there are about 20,000 updated per hour).

Can you post the trackback you're seeing in the logs? Also what version of mongo-connector and elastic-doc-manager are you running?

I am using elastic2-doc-manager version 0.3.0 and mongo-connector`s version from the latest commit on master branch.
Looks like a missing exception in the wrap_exceptions for ConnectionTimeout.
I just created a related issue mongodb-labs/elastic2-doc-manager#44 and opened a pull request.
Should handle this.

Mapping the error to OperationFailed would cause mongo-connector to ignore the error and not exit. The real issue is that the elastic doc manager does not handle timeouts on its Elasticsearch client. That error should currently be uncaught and mongo-connector should exit. It should not be "stuck". Can you post the ReadTimeoutError error message or stacktrace that you're seeing?

I can`t export the traceback but, The error is: ReadTimeoutError: HTTPConnectionPool(host='hostname', port=9200): Read Time out. (read timeout=10)
Maybe it is not exit because I used --continue-on-error ? But it even did not continue... just got stuck

Have there been any updates on this? I'm still seeing this issue!

authors: ShaneHarvey nzapponi ozbarshalom

repo: mongodb-labs/mongo-connector