text:
What is the ~/bin/bash symlink used for?

I'm just sieving through this project to make my own dotfiles, and i can't figure out what the bash symlink in ~/bin is used for.
It's getting added to PATH in .bash_profile, but what does that enable? Is there a reason why it needs to be added to the path?
After installing bash v4 with homebrew, it still needs to be added to /etc/shell manually, so i'm not sure what value this symlink is adding. Everything seems to work just fine without it??
Really appreciate it!

If I run bash or bash --help or bash -c $cmd I want to use the brew-installed version of bash, not the old Bash v3 that OS X ships with.

I thought as much, but bash --version reports 4.3.42(1)-release even without the bash symlink in ~/bin, which made me question whether it's even needed?
echo $BASH_VERSION will always report the old Bash v3 that ships with OS X, regardless of the symlink being present or not.
It's only until you add /usr/local/bin/bash to /etc/shell and run chsh -s /usr/local/bin/bash that the $BASH_VERSION changes to 4.3.42(1)-release.

I automated that whole bit like so in my brew.sh:
if ! grep '/usr/local/bin/bash' /etc/shells; then
  echo '/usr/local/bin/bash' | sudo tee -a /etc/shells;
  chsh -s /usr/local/bin/bash;
fi;

@jeffbyrnes Use fgrep -q or grep -F -q, so output does not occur on the if statement. sudo echo '/usr/local/bin/bash' >> /etc/shells, not sure why you would use tee for that.

Ah, nice! @jeffbyrnes you thought about opening a PR for this?

Ah, nice! @jeffbyrnes you thought about opening a PR for this? Also, does that mean that ~/bin/bash isn't needed anymore?

@KingScooty I haven‘t, but I certainly can. Gonna be on the train in about an hour, so I’ll try to remember to open one once I settle in.

@Tatsh

sudo echo '/usr/local/bin/bash' >> /etc/shells — not sure why you would use tee for that.

Because the sudo echo … version doesn’t work. You’re running echo as super user  but it’s the >> that needs it.

authors: KingScooty Tatsh jeffbyrnes mathiasbynens

repo: mathiasbynens/dotfiles


text:
Support Unicode 9 prepended concatenation marks

It’s still a proposal for now, but hey. http://blog.unicode.org/2015/11/new-character-property-for-prepended.html Prepended_Concatenation_Mark

Just curious... it looks like Prepended_Concatenation_Marks were added in Unicode 8 (ref)? I do see mention of these marks in Unicode 9, but I can't tell if any new ones were added.
And on that note... the package.json for this library is still using Unicode 8, shouldn't it be updated for v9?

http://unicode.org/reports/tr29/#Table_Combining_Char_Sequences_and_Grapheme_Clusters

source: gharchive/issue

authors: Mottie mathiasbynens

repo: mathiasbynens/esrever

license: mit

license_type: permissive

license_source: bigquery


text:
Mode tutorial of mode

Mode tutorial of mode with example questions and math contest questions.

http://ec2-34-200-244-39.compute-1.amazonaws.com/boards/5/topics/28/
Better to add a math contest example

repo: mathincubator/mathlib

license_source: github-api


text:
\mathcal uses incorrect font in Client side MathJax modes

Issue Summary
As described in https://phabricator.wikimedia.org/T375932 LaTeX input like $\mathcal A$ uses different fonts than it used with MathJax-node
With a preprocessing script the LaTeX input is converted into MathML of this form
<mi>𝒜</mi>

To support MathJax we also added the classes
<mi data-mjx-variant="-tex-calligraphic" mathvariant="script">𝒜</mi>

which might have been contra productive?
Which seems to be recommended. The MathJax rendering looks more like $\mathscr A$
Steps to Reproduce:

Login to https://en.wikipedia.beta.wmflabs.org/
Select Client Side Math rendering in the preferences https://en.wikipedia.beta.wmflabs.org/wiki/Special:Preferences#mw-prefsection-rendering-math
Goto https://en.wikipedia.beta.wmflabs.org/wiki/T375932

See that it works with FF but fails with Chrome.
Technical details:

MathJax Version: 3.2.2
Client OS: Mac OS X 10.8.4
Browser: Firefox 130.0.1

I am using the following MathJax configuration:
https://github.com/wikimedia/mediawiki-extensions-Math/blob/db81c960623d346ca8f43fb91ca3da92f868ea29/modules/ext.math.mathjax.js#L7
( function () {
	'use strict';
	const extensionAssetsPath = mw.config.get( 'wgExtensionAssetsPath' );
	window.MathJax = {
		loader: {
			// see https://docs.mathjax.org/en/latest/input/mathml.html
			load: [ '[mml]/mml3' ],
			// see https://docs.mathjax.org/en/latest/options/startup/loader.html
			paths: {
				mathjax: extensionAssetsPath + '/Math/modules/mathjax/es5'
			}
		}
	};
}() );

and loading MathJax via
<script src="/w/extensions/Math/modules/mathjax/es5/input/mml.js" charset="UTF-8"></script>
<script src="/w/extensions/Math/modules/mathjax/es5/input/mml/extensions/mml3.js" charset="UTF-8"></script>

Supporting information:

Please supply a link to a (live) minimal example page, when possible:

https://en.wikipedia.beta.wmflabs.org/wiki/T375932

If your issue is with the display of the mathematics produced by MathJax, include a screen snapshot that illustrates the problem, when possible.

See also https://phabricator.wikimedia.org/T375932 for more screenshots

Check your browser console window for any error messages, and include them here.
None

Include the MathJax configuration you are using, and the script tag that loads MathJax itself.

			load: [ '[mml]/mml3' ],

The underlying problem is that the Unicode Math Alphanumerics block includes only one script variant, and the choice of the variant to use is up to the fonts.  Most seem to use a Roundhand style (as in \mathscr), so the Chancery form (\mathcal) is absent.  (The STIX2 Math fonts have the Chancery version.)
Since the MathML mathvariant has only one script value, that makes it difficult to implement both \mathscr and \mathcal.  MathJax uses data-mjx-variant="-tex-calligraphic" to overcome this difficulty, but since MathML renderers don't know about this attribute, MathJax adds mathvariant="script" to at least get a script variant (whichever one the font implements).
Note, however, that MathJax uses <mi data-mjx-variant="-tex-calligraphic" mathvariant="script">A</mi> not <mi data-mjx-variant="-tex-calligraphic" mathvariant="script">𝒜</mi>.  This is because the MathML specification indicates that the Math Alphanumeric values are not to be influenced by CSS styles or mathvariant settings (see end of the third paragraph of the description of mathvariant in the specification):

Note that the appearance of a mathematical alphanumeric symbol character should not be altered by surrounding mathvariant or other style declarations.

That is, if you do
<mi mathvariant="bold">𝔄</mi>

you get the non-bold Fraktur capital A U+1D504, not the bold one at U+1D56C.  I suspect the main reason for that is when the mathvariant is on an mstyle element, lik
<mstyle mathvariant="bold">
  <mi>x<mi>
  <mo>+</mo>
  <mi> 𝔄</mi>
</mstyle>

The U+1D504 will not bin inadvertently changed to bold, while the other characters will.
In any case, since you are specifying the character U+1D49C explicitly (not just A), the mathvariant and data-mjx-variant won't change the result.  So you get the font's U+1D49C character, which for the MathJax fonts is the Roundhand version, not the Chancery one.
Note that MathML-Core has removed the mathvariant attribute from its specification, except for the mi element, where only mathvariant="normal" is allowed (to avoid the automatic italicization that is done for single-character content).  See the mi section of the specification.  Unfortunately, that means you can't use <mi data-mjx-variant="-tex-calligraphic" mathvariant="script">A</mi> to get this to work in both MathML-Core and MathJax.
The MathML-Core documentation notes that the issue exists (in the second note of this section of the specification).  It suggests two different potential solutions, both being font dependent.  The first is to use variant selectors U+FE00 and U+FE01 to specify Chancery and Roundhand respectively.  I don't know whether browsers actually implement this or not; testing in Safari, Chrome, and Firefox on  MacOS suggests they do not.  Also, for <mi>&#x1D49C.</mi>, I get the Chancery version (from STIX2) in Firefox and Chrome, but the Roundhand version in Safari.  As I said, it is font dependent.  In any case, MathJax doesn't support the variant selectors, either.
The second suggestion is to use font features and the font-variant-alternatives CSS property, but again, that is font dependent, and MathJax doesn't support that, either.  I haven't checked what the browser support for that is.
So there seems to be no direct way to reliably get both \mathscr and \mathcal to work in MathML-Core.  A cross-browser solution that works with both MathML-Core and MathJax seems out of reach at the moment.
In any case, MathJax is producing the correct output for the MathML you are using.

Thank you for enlightening me! In general, this makes a lot of sense. However, this brings one backdoor to my mind.

So there seems to be no direct way to reliably get both \mathscr and \mathcal to work in MathML-Core. A cross-browser solution that works with both MathML-Core and MathJax seems out of reach at the moment.

We don't have \mathscr as an option. It's not safelisted in the texvc grammar. Is there a way (maybe via an input filter) to make MathJax display \mathcal like \mathsrc?

Is there a way (maybe via an input filter) to make MathJax display \mathcal like \mathsrc?

Well, you could replace the Roundhand script characters by the Chancery ones in MathJax's font definitions. That can be done in the MathJax startup ready() function as follows:
window.MathJax = {
  remapChars(v1, v2, base, map, font) {
    const c1 = v1.chars;
    const c2 = v2.chars;
    for (let i = 0; i < 26; i++) {
      const data1 = c1[map[i] || base + i] || [];
      const data2 = c2[0x41 + i];
      if (data1.length === 0) c1[base + i] = data1;
      [0, 1, 2].forEach(j => data1[j] = data2[j]);
      data1[3] = {...data2[3], f: font, c: String.fromCharCode(0x41 + i)};
    }
  },
  startup: {
    ready() {
      MathJax.startup.defaultReady();
      const variant = MathJax.startup.document.outputJax.font.variant;
      const map = {1: 0x212C, 4: 0x2130, 5: 0x2131, 7: 0x210B, 8: 0x2110, 11: 0x2112, 12: 0x2133, 17: 0x211B};
      MathJax.config.remapChars(variant.normal, variant['-tex-calligraphic'], 0x1D49C, map, 'C');
      MathJax.config.remapChars(variant.normal, variant['-tex-bold-calligraphic'], 0x1D4D0, {}, 'CB');
    }
  }
};

This replaces the original script (Roundhand) data with the calligraphic (Chancery) character definitions, so that the Unicode Math Alphanumeric script characters will be displayed as Chancery characters.  That means the Roundhand variant is no longer available.  I think that is what you were asking for.

This exactly matches what I understand was desired. Thank you so much.

authors: dpvc physikerwelt

repo: mathjax/MathJax


text:
Firefox Writes Global Timeline "Backwards" On Load

Firefox, and only Firefox, seems to disregard the .before() and .after() functions in jQuery, publishing posts from the timeline at the top of the column regardless of their publication order. A better way of filling the timeline is needed here.

This has been completely resolved. Yay!


text:
Compatibility with MO

Not necessarily an issue with zEdit, but when running zEdit through MO v2.0.8.2, I am unable to save the esp due to failure to create directory.

failure to create directory.

Can you expand?  There should be no directory created when plugins are saved by zEdit.  It just saves plugins into the data directory.  MO should detect the saved plugins and move them to overwrite.

http://i.imgur.com/CMDu7Am.png the issue happens even when I try outside of MO as well. I'm unable to save any changes.

Sounds like an issue with file system permissions.  The only directory that gets created when files are saved is the directory for backups.

Resolved with Megaloblast on Discord.  Fix will be included in the next build.  If you're experienced this issue and need a a build before then, grab this (this build only includes a fix for saving plugins, it's otherwise identical to v0.0.1).

authors: matortheeternal megaloblast

repo: matortheeternal/zedit


text:
Fix panics due to closed channel in some tests

A number of tests start goroutines that write into channels when completed, however the tests would close the channel if it exited early (e.g. due to a timeout).
Instead, make the goroutine that writes into the channel the one that closes it.
This does mean that the goroutines will continue past the end of the test (?), but they did that before too. I am wondering if there is a better way of doing these things...

I suppose the right thing to do is to have the goroutine check a "signal channel" after it completes long-running operations (such as /sync) to make sure that it should continue execution before writing to channels.

I suppose that might make sense for the one goroutine that is multiple statements, but I don't see the benefit for the others (like the one in the example)?

(merging now to unblock fixing flakey tests)

source: gharchive/pull-request

repo: matrix-org/complement


text:
Allow talks with no Q&A to disable it

so the bot doesn't shout

@kittykat For WEDF, do any of the talks have Q&A? Currently all JSON-schedule talks will have Q&A disabled; I'd have to add in support for Q&A if it's desired.

@reivilibre Sander confirmed no Q&A rooms

see https://github.com/matrix-org/conference-bot/pull/135

for this year: Q&A availability will be determined by Room ID — D.* and M.test will have Q&A

authors: kittykat reivilibre squahtx

repo: matrix-org/conference-bot


text:
ERROR mas_listener::server: error shutting down connection: Socket not connected (os error 107)

I've configured the MAS exactly following the documentation, found the "metrics" issue here and changed "none" to "prometheus", so MAS starts. But always shortly after the start, I'm getting repeated error messages:
2023-09-22T12:18:06.012090Z  INFO cli.run.init: mas_cli::commands::server: Starting task worker worker_name="7lvKv8JSRD"
2023-09-22T12:18:06.076241Z  INFO cli.run.init: mas_cli::commands::server: Listening on http://[::]:8082 with resources [Discovery, Human, OAuth, Compat, GraphQL { playground: true }, Assets { path: "./share/assets/" }]
2023-09-22T12:18:06.079178Z  INFO cli.run.init: mas_cli::commands::server: Listening on http://[::]:8083 with resources [Health]
2023-09-22T12:18:15.781569Z ERROR mas_listener::server: error shutting down connection: Socket not connected (os error 107)
2023-09-22T12:18:25.785975Z ERROR mas_listener::server: error shutting down connection: Socket not connected (os error 107)
2023-09-22T12:18:35.787174Z ERROR mas_listener::server: error shutting down connection: Socket not connected (os error 107)
2023-09-22T12:18:45.788918Z ERROR mas_listener::server: error shutting down connection: Socket not connected (os error 107)

The ports 8082 and 8083 (8080 and 8081 are already used by bridges) are free, and after starting MAS I see that 8082 and 8083 are happily used as listeners from MAS.
So I have no clue what these error messages want to tell me.
Also, when opening Element-Web I'm always getting:
Es gab ein Problem bei der Kommunikation mit dem Heim-Server. Bitte versuche es später erneut.(M_UNRECOGNIZED)
But I guess as long as the errors above are showing up, MAS is not working properly.
Either there is an issue, or something is still undocumented ...

This should probably be clearer in the documentation, but in the section about setting up a reverse proxy in front of it, it mentions that a few Matrix C-S API should be handled by MAS
See the last paragraph here: https://matrix-org.github.io/matrix-authentication-service/setup/reverse-proxy.html#example-nginx-configuration
The errors spitting out are I think unrelated, but something I need to investigate

@sandhose I have a proxy in front, my HAProxy. But no relation to this error, if MAS does not run there's nothing to proxy ;-)

My point is, in your setup, /_matrix/client/v3/login (and a few other endpoints) should not be handled by Synapse, they should be handled by MAS.
This is a requirement for "legacy" (non-OIDC-native clients including Element Web) to work with MAS

@sandhose Indeed the passing of the endpoints to MAS was missing, MAS is now called and the registration / authentication flow looked good up to a point where I grant the permissions for the Element-Web client. Then ... #1864

I think I captured most of the issues you had in other issues?

#1940
#1941

And I think the logs you had were mostly resolved by #1814 and #1775

authors: jacotec sandhose


text:
Docker image does not contain register-guest helper

I think it only copies the main matrix-static binary into the image.

I'm not up to date on how such helpers are normally handled in dockerland, would it be loaded into the same image even though the only way to run it would be to mangle the entrypoint at runtime?

repo: matrix-org/matrix-static


text:
Undefined function

profile_load_custom_fields in src/Plugin/Infrastructure/MoodleFunctionBasedMatrixUserIdLoader.php is not found. Probably it needs to be escaped and the /user/profile/lib.php needs to be required.

Hi @andremenrath, sorry for not getting to this earlier. Would you want to make a PR for this?

authors: andremenrath axelsimon


text:
Add templateImage parameter

Added a templateImage parameter as discussed in Slack.
This allows Mac OS X to change the styling in the StatusBar to fit the different themes better.

👍

We should add a tutorial plugin to show how to use images too.

Alright, I try to think of one and make a pull request

Pull request: https://github.com/matryer/bitbar-plugins/pull/290

authors: ibutra iosdeveloper

repo: matryer/bitbar


text:
Autoclose closes "never-close" tags [Issue when loading configs]

Certain tags, like <input />, do not have a closing tag, but autoclose-html closes them anyway (despite them being configured as never-close tags!), in the improper format:
Instead of closing like
<input />
or even just leaving the tag be, it closes the tag like
<input></input>
Which browsers can generally autocorrect, but is probably not best practice...

And yes, <input> is configured as a never-close tag.

Determined this to be a config loading issue, with atom.config.observe. Gonna try to fix.

Seems to be an Atom bug? Submitted Issue #21642 on Atom.

repo: mattberkowitz/autoclose-html


text:
Upgrade of this tool

Full upgrade

Closed ZKF-1316

Closes ZKF-1316

repo: matter-labs/zksync-tool-locker

license: MIT


text:
[MM-15389] Prevent installing 32bit on 64bit and vise versa

This PR configures the Desktop app MSI installers to prevent installation on non-matching-bit systems, i.e. the 32-bit installer won’t install on 64-bit systems.

This issue has been automatically labelled "stale" because it hasn't had recent activity.
A core team member will check in on the status of the PR to help with questions.
Thank you for your contribution!
/cc @jasonblais @hanzei

Closing in favour of a single branch based off of release-test-msi for all MSI related updates to make further updates more manageable. New PR pending.

authors: deanwhillier mattermod

repo: mattermost/desktop


text:
Added sphinx-tabs extension

This PR adds a maintained public Sphinx extension called sphinx-tabs to enable the ability to develop product documentation content in a tabbed format. We've locked this extension down to the current 3.2.0 version.

When this extension is merged into master, I will close the initial POC of this functionality implemented via https://github.com/mattermost/docs/pull/5042

repo: mattermost/docs


text:
MM-31341 Use first metadata info for inline md images

Summary
When an inline image url contains some query strings, the metadata for the image doesn't match the link thus the image was not showing, with this PR if the link does not match the one in the metadata, we will then use the first image available in the metadata to be displayed.
PR also takes care of black images on top of a black background.
Ticket Link
https://mattermost.atlassian.net/browse/MM-31341
https://mattermost.atlassian.net/browse/MM-25811

Building app in separate branch.

Successfully building:
https://circleci.com/gh/mattermost/mattermost-mobile/14347
https://circleci.com/gh/mattermost/mattermost-mobile/14346

Artifact links:
https://14347-70265724-gh.circle-artifacts.com/0/tmp/artifacts/Mattermost_Beta.apk
https://14346-70265724-gh.circle-artifacts.com/0/tmp/artifacts/Mattermost_Beta.ipa

Hi @enahum The image is now being displayed but compared to webapp, the background and sizing look different. Not sure if this is expected.

Mobile
Webapp

@josephbaylon that is actually expected, we have always needed to render the inline images into its own line

authors: enahum josephbaylon mattermod

repo: mattermost/mattermost-mobile


text:
Android fix

Summary
Fixes android 13 notification permission request and unsigned builds
NONE

/cherry-pick release-2.0

Cherry pick is scheduled.

authors: enahum mattermost-build


text:
MM-49862 - remove no longer needed webapp calls to action and pulsating dots

Summary
This PR removes two no longer needed calls to action: Message Actions pulsating dot and New badge on the forward button. Also adds a condition for the custom status pulsating dot and update status post button where these two are just going to be shown once the user creation time has passed 7 days.
Ticket Link
https://mattermost.atlassian.net/browse/MM-49862
Related Pull Requests
n/a
Screenshots
Before:

After:

The only change for this one is that won't show during the first seven days after user creation

Release Note
NONE

E2E tests not automatically triggered, because PR has no approval yet. Please ask a developer to review and then try again to attach the QA label.

Migrated to https://github.com/mattermost/mattermost-server/pull/22699

authors: mattermost-build pvev

repo: mattermost/mattermost-webapp


text:
MM-13342: Fix dividers showing when menu section is empty.

Summary
Fix dividers showing when menu section is empty.
This fix is a little ugly - it checks the children-of-children are not
null to work around connected components themselves not being null but
having the actual component within being null.
Ticket Link
https://mattermost.atlassian.net/browse/MM-13342
Checklist

[x] Ran make check-style to check for style errors (required for all pull requests)
[x] Ran make test to ensure unit and component tests passed
[x] Added or updated unit tests (required for all new features)

If you're wanting to avoid adding that extra introspection, perhaps we could actually fix this using CSS? If you look here, we already use .divider + .divider to hide the dividers for empty sections other than the first, so we can add .divider:firstChild to hide that first one as well.

I don't think that will work, as we're not successfully hiding any of the dividers currently with the CSS. This fix targets all the unnecessary ones, not just the first one. Then again my CSS-foo isn't great so maybe I'm misunderstanding it?

Sigh. Looks like this was a duplicate ticket anyway and Asaad has fixed it here https://github.com/mattermost/mattermost-webapp/pull/2152

I've merged and cherry picked that PR, so we could test again now to see if it's still an issue

Looks fixed to me now with Asaad's changes. Closing this PR.

authors: grundleborg hmhealey


text:
M14126 Message Draft Pencil Icon - No text, only file attachment

Summary
Added e2e test to validate message draft with attachment after switching channel.
Ticket Link
Fixes https://github.com/mattermost/mattermost-server/issues/10274

@saturninoabril Could you please review

@composednitin Sure, will do that, thanks

@thekiiingbob  could you please review again

@saturninoabril could you please review it again

@composednitin And just sync with master please. :)


text:
[MM-17200] Add render methods for new guest messages

Ticket Link
https://mattermost.atlassian.net/browse/MM-17200
Related Pull Requests

Has server changes
Has redux changes

The ticket only refers to the system post that appears when a guest is added to a channel by another user, but these PRs add a new message to the system post that appears when a guest joins a channel (for example, through an invitation).
@wiersgallak can you please confirm this second change?

Checked that the test failure is caused by mattermost-redux not pointing to the right commit, should be fixed when the redux PR is merged.

Thanks @wiersgallak! Updated

Re-assigned QA review to Rohitesh, as he and Ogi are QA point people on guest accounts.

(Sorry; closed with a bad tab/Enter combo and re-opened. :) )

authors: lindalumitchell mgdelacroix


text:
MM32642 - increase invite others visibility

Summary
MM32642 - increase invite others visibility - These PR adds enhancements to the channels intros to improve the user experience and add more visibility to the call to action for inviting new members to workspaces.
Ticket Link
https://mattermost.atlassian.net/browse/MM-32642
Related Pull Requests
MM-Redux: https://github.com/mattermost/mattermost-redux/pull/1395
Screenshots

@pablovelezvidal @ethervoid I believe this was not included in the cloud branch either. Could you confirm ? If so, this needs to be cherry picked to be included in the March 24th release.

/cherry-pick cloud

Cherry pick is scheduled.

authors: ethervoid marianunez mattermod pablovelezvidal


text:
fix: Subscription title in system console billing is singular

Summary
Fixes a typo. Subscription title should be singular in the System Console billing page for cloud accounts.
Ticket Link
https://mattermost.atlassian.net/browse/MM-30538
Screenshots
Title now reads "Subscription"

Release Note
Fixed System Console billing subscription title to be singular

Hello @neallred,
Thanks for your pull request! A Core Committer will review your pull request soon. For code contributions, you can learn more about the review process here.

authors: mattermod neallred


text:
hide accordion items with status 'OK'

Summary
title says it all. Items that have status 'ok' or 'none' get hidden from the AccordionCard. They still get counted in the overall score.
Ticket Link
n/a
Related Pull Requests
n/a
Screenshots
n/a
Release Note
NONE

@BenCookie95 gentle ping on this one.


text:
Is there any way to get access to the error that's swallowed in readFromSecureStore?

https://github.com/matthewpalmer/Locksmith/blob/49b08bf8fa16ff8d7ce41609a2adbc6b5237f65f/Source/Locksmith.swift#L495

https://github.com/matthewpalmer/Locksmith/blob/49b08bf8fa16ff8d7ce41609a2adbc6b5237f65f/Source/Locksmith.swift#L498

https://github.com/matthewpalmer/Locksmith/blob/49b08bf8fa16ff8d7ce41609a2adbc6b5237f65f/Source/Locksmith.swift#L484

https://github.com/matthewpalmer/Locksmith/blob/49b08bf8fa16ff8d7ce41609a2adbc6b5237f65f/Source/Locksmith.swift#L481

authors: benron slizeray

repo: matthewpalmer/Locksmith


text:
Cannot extract meter value - Kamstrup Multical 401

I hope you vcan help me. I have a Kamstrup Multical 401 and trying to use your script. I have tried to place de IR head at every possible way at the meter but the following warning keeps appearing. In MQTT i see the topic but no values.
[2022-10-05 21:27:18 daemon.py init:  41 - INFO - initializing daemon]
[2022-10-05 21:27:18 mqtt_handler.py connect:  43 - INFO - Connected to MQTT at: 192.168.2.98:1883]
[2022-10-05 21:27:18 mqtt_handler.py connect:  45 - INFO - with username pi, QoS level = 1 and retain = False]
[2022-10-05 21:27:18 kamstrup_meter.py close: 126 - DEBUG - Closed serial port]
[2022-10-05 21:27:18 kamstrup_meter.py open: 118 - DEBUG - Opened serial port]
[2022-10-05 21:27:20 kamstrup_meter.py rd: 131 - DEBUG - Rx timeout]
[2022-10-05 21:27:20 kamstrup_meter.py readparameter: 198 - WARNING - No response from meter]
[2022-10-05 21:27:22 kamstrup_meter.py rd: 131 - DEBUG - Rx timeout]
[2022-10-05 21:27:22 kamstrup_meter.py readparameter: 198 - WARNING - No response from meter]
[2022-10-05 21:27:24 kamstrup_meter.py rd: 131 - DEBUG - Rx timeout]
[2022-10-05 21:27:24 kamstrup_meter.py readparameter: 198 - WARNING - No response from meter]
[2022-10-05 21:27:26 kamstrup_meter.py rd: 131 - DEBUG - Rx timeout]
[2022-10-05 21:27:26 kamstrup_meter.py readparameter: 198 - WARNING - No response from meter]
[2022-10-05 21:27:26 kamstrup_meter.py close: 126 - DEBUG - Closed serial port]
[2022-10-05 21:27:26 mqtt_handler.py publish:  55 - INFO - Publishing 'kamstrup/values'	'{}'	to 192.168.2.98:1883]
[2022-10-05 21:27:26 daemon.py run:  84 - INFO - Waiting 1 minute(s) for the next meter readout]
This is my configuration file:
mqtt:
host: 192.168.2.98
port: 1883
client: kamstrup402
topic: kamstrup
qos: 1
retain: False
authentication: True
username: pi
password: [password]
serial_device:
com_port: /dev/serial/by-id/usb-Silicon_Labs_CP2102_USB_to_UART_Bridge_Controller_0001-if00-port0
kamstrup:
parameters:
- energy
- volume
- temp1
- temp2
poll_interval: 1
i hope anyone has an idea what i am doing wrong. Thanks in advance.

Hi,
Are you sure that your meter is "awake"? You can do so by pressing the button. It will remain active for 30 minutes and remains active if a valid IR signal is received.

From: madradrakie @.>
Sent: Wednesday, October 5, 2022 9:36:54 PM
To: matthijsvisser/kamstrup-402-mqtt @.>
Cc: Subscribed @.***>
Subject: [matthijsvisser/kamstrup-402-mqtt] Cannot extract meter value - Kamstrup Multical 401 (Issue #7)
I hope you vcan help me. I have a Kamstrup Multical 401 and trying to use your script. I have tried to place de IR head at every possible way at the meter but the following warning keeps appearing. In MQTT i see the topic but no values.
[2022-10-05 21:27:18 daemon.py init: 41 - INFO - initializing daemon]
[2022-10-05 21:27:18 mqtt_handler.py connect: 43 - INFO - Connected to MQTT at: 192.168.2.98:1883]
[2022-10-05 21:27:18 mqtt_handler.py connect: 45 - INFO - with username pi, QoS level = 1 and retain = False]
[2022-10-05 21:27:18 kamstrup_meter.py close: 126 - DEBUG - Closed serial port]
[2022-10-05 21:27:18 kamstrup_meter.py open: 118 - DEBUG - Opened serial port]
[2022-10-05 21:27:20 kamstrup_meter.py rd: 131 - DEBUG - Rx timeout]
[2022-10-05 21:27:20 kamstrup_meter.py readparameter: 198 - WARNING - No response from meter]
[2022-10-05 21:27:22 kamstrup_meter.py rd: 131 - DEBUG - Rx timeout]
[2022-10-05 21:27:22 kamstrup_meter.py readparameter: 198 - WARNING - No response from meter]
[2022-10-05 21:27:24 kamstrup_meter.py rd: 131 - DEBUG - Rx timeout]
[2022-10-05 21:27:24 kamstrup_meter.py readparameter: 198 - WARNING - No response from meter]
[2022-10-05 21:27:26 kamstrup_meter.py rd: 131 - DEBUG - Rx timeout]
[2022-10-05 21:27:26 kamstrup_meter.py readparameter: 198 - WARNING - No response from meter]
[2022-10-05 21:27:26 kamstrup_meter.py close: 126 - DEBUG - Closed serial port]
[2022-10-05 21:27:26 mqtt_handler.py publish: 55 - INFO - Publishing 'kamstrup/values' '{}' to 192.168.2.98:1883]
[2022-10-05 21:27:26 daemon.py run: 84 - INFO - Waiting 1 minute(s) for the next meter readout]
This is my configuration file:
mqtt:
host: 192.168.2.98
port: 1883
client: kamstrup402
topic: kamstrup
qos: 1
retain: False
authentication: True
username: pi
password: a1connect!
serial_device:
com_port: /dev/serial/by-id/usb-Silicon_Labs_CP2102_USB_to_UART_Bridge_Controller_0001-if00-port0
kamstrup:
parameters:

energy
volume
temp1
temp2
poll_interval: 1

i hope anyone has an idea what i am doing wrong. Thanks in advance.
—
Reply to this email directly, view it on GitHubhttps://github.com/matthijsvisser/kamstrup-402-mqtt/issues/7, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AK4J3SUCARZUZNJO7PEGTJLWBXKFNANCNFSM6AAAAAAQ53QGB4.
You are receiving this because you are subscribed to this thread.Message ID: @.***>

hi matthijs. before i activate the script i press the button on the meter. i assume the 401 is working the same as the 402. i have tried for an hour to find the sweet spot but still no luck. it is also very hard to determine if the IR leds of the head are alligned perfectly

You can try the official software from kamstrup to verify if the meter will respond to those commands
See https://www.kamstrup.com/nl-nl/warmteoplossingen/slimme-warmtemeters/meter-software

You can try the official software from kamstrup to verify if the meter will
respons to those commands
See
https://www.kamstrup.com/nl-nl/warmteoplossingen/slimme-warmtemeters/meter-software
Op wo 5 okt. 2022 21:45 schreef madradrakie @.***>:

hi matthijs. before i activate the script i press the button on the meter.
i assume the 401 is working the same as the 402. i have tried for an hour
to find the sweet spot but still no luck. it is also very hard to determine
if the IR leds of the head are alligned perfectly
—
Reply to this email directly, view it on GitHub
https://github.com/matthijsvisser/kamstrup-402-mqtt/issues/7#issuecomment-1268885487,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AK4J3SV2ORAOBV5QSAMRRMTWBXLGLANCNFSM6AAAAAAQ53QGB4
.
You are receiving this because you commented.Message ID:
@.***>

i have tried the official software but my meter, the kamstrup 401 is not listed. It starts with the 402. I'am really curious if someone has managed to get it working because thereis a sensor eye present on the 401.

I did have the same problem, but after reading the manual I found out that the communication is different between a M402 and M401. At the moment I can read the values from the meter (m401), but I'm still looking into the possibility to send it via Mqtt (no great coder myself). Maybe you can adapt (USB port) and try this bit of code if your IR is placed correctly and is working?:
`
import serial
from time import sleep
mc401 = serial.Serial(port='/dev/ttyUSB1', bytesize=serial.SEVENBITS, parity=serial.PARITY_EVEN, stopbits=serial.STOPBITS_ONE, timeout=2)
mc401.baudrate = 300
mc401.write(bytes("/#1", 'UTF-8'))
mc401.flush()
sleep(1)
mc401.baudrate = 1200
mc401.flushInput()
data = mc401.read(87).split()
try:
print(data[0], data[1], data[3], data[4], data[5], data[6], data[7])
except IndexError:
pass
`
The main problem that I encountered is that you must send a signal at 300 baudrate, but you can only receive at 1200 baudrate. I have used the signal /#1 as this gives back energy, volume, temp1, temp2, tempdiff.

hello matthijs. Nico to read that you got it working. Can you tell me what you mean by adapt and at which place i should place the code? The IR reader is connected with a raspberry pi. I am still learning everyday :-)

I have same issue with MutliCAL 602. It should be using same protocol "KMP" but it is just echoing the same values I'm sending to it. Any idea?

Hi,
I don't have the 602, so unfortunately I cant help you with that. But here are my thoughts:
If you receive the exact same message as the code sends, than its possible that you having issues with reflections. Which IR head are you using? You can try to put some paper between the IR head and the meter to diffuse the light a little. Or try some more positions with the meter head. When I was testing the code, I experienced that the official tooling was able to handles more 'noise'  than my code.

Thanks for the info. I actually noticed that it is echoing the data even if it is not sitting on the kamstrup meter? Should the script wait little before reading the data or maybe flush before reading 🤔Laith…On 7 Dec 2022, at 21.46, Matthijs @.***> wrote:
Hi,
I don't have the 602, so unfortunately I cant help you with that. But here are my thoughts:
If you receive the exact same message as the code sends, than its possible that you having issues with reflections. Which IR head are you using? You can try to put some paper between the IR head and the meter to diffuse the light a little. Or try some more positions with the meter head. When I was testing the code, I experienced that the official tooling was able to handles more 'noise'  than my code.
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: @.***>

I have a similar problem.
We have a Kamstrup MultiCAL 66C. According to the specifications, it works with:
300 baud req /300 baud reply, 1 start bit, 7 data bits, equal parity, 2 stop bits.
How can I change this because if I change this in kamstrup_meter.py to
baud rate = 300,
parity = serial.PARITY_EVEN,
bytesize = serial.SEVENBITS,
I get this error within 4 seconds :
Traceback (most recent call last):
File "/tmp/test/kamstrup-402-mqtt/daemon.py", line 92, in
main()
File "/tmp/test/kamstrup-402-mqtt/daemon.py", line 89, in main
daemon.run()
File "/tmp/test/kamstrup-402-mqtt/daemon.py", line 81, in run
values = self.heat_meter.run()
File "/tmp/test/kamstrup-402-mqtt/kamstrup_meter.py", line 114, in run
value = self.readparameter(int(str(kamstrup_402_params[parameter]), 0))
File "/tmp/test/kamstrup-402-mqtt/kamstrup_meter.py", line 205, in read parameter
elif ((receivedMessage[0] != 0x3f) or
IndexError: byte array index out of range
What do I need to change to make the communication work properly?

It looks like you don't receive any data from the meter since the received Message array is empty.

Sorry verkeerde error. This is the correct error.
Traceback (most recent call last):
File "/opt/test/kamstrup-402-mqtt/daemon.py", line 92, in
main()
File "/opt/test/kamstrup-402-mqtt/daemon.py", line 88, in main
daemon = KamstrupDaemon()
File "/opt/test/kamstrup-402-mqtt/daemon.py", line 69, in init
self.heat_meter = kamstrup(serial_cfg["com_port"], kamstrup_cfg["parameters"])
File "/opt/test/kamstrup-402-mqtt/kamstrup_meter.py", line 97, in init
bytesize = serial.SEVENTBITS,
AttributeError: module 'serial' has no attribute 'SEVENTBITS'

So if no data comes in, the application gives an error?

You are using an invalid parameter name. See
https://pyserial.readthedocs.io/en/latest/pyserial_api.html
It should be serial.sevenbits.

From: Obelix74Git @.>
Sent: Friday, December 16, 2022 10:13:47 PM
To: matthijsvisser/kamstrup-402-mqtt @.>
Cc: Matthijs @.>; Comment @.>
Subject: Re: [matthijsvisser/kamstrup-402-mqtt] Cannot extract meter value - Kamstrup Multical 401 (Issue #7)
Sorry verkeerde error. This is the correct error.
Traceback (most recent call last):
File "/opt/test/kamstrup-402-mqtt/daemon.py", line 92, in
main()
File "/opt/test/kamstrup-402-mqtt/daemon.py", line 88, in main
daemon = KamstrupDaemon()
File "/opt/test/kamstrup-402-mqtt/daemon.py", line 69, in init
self.heat_meter = kamstrup(serial_cfg["com_port"], kamstrup_cfg["parameters"])
File "/opt/test/kamstrup-402-mqtt/kamstrup_meter.py", line 97, in init
bytesize = serial.SEVENTBITS,
AttributeError: module 'serial' has no attribute 'SEVENTBITS'
—
Reply to this email directly, view it on GitHubhttps://github.com/matthijsvisser/kamstrup-402-mqtt/issues/7#issuecomment-1355617360, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AK4J3SUNSEYUU66QVUD3IFDWNTLQXANCNFSM6AAAAAAQ53QGB4.
You are receiving this because you commented.Message ID: @.***>

Did you guys get this working? I have a 401, and put the meter over the reader at the bottom right. It seems to be seated properly, and tried all kinds of positions, but no reading. I also clicked the enter/play button on the reader.

Did you guys get this working? I have a 401, and put the meter over the reader at the bottom right. It seems to be seated properly, and tried all kinds of positions, but no reading. I also clicked the enter/play button on the reader.
For info I am using this reader, as it was suggested by someone. It should be working I think? https://www.aliexpress.com/item/1005003509520122.html

Hello Alekslyse. I got it working with for the 401 meter.   I used the following code:
https://github.com/matthijsberk/M401-irreader
See for more information:
https://github.com/matthijsberk/M401-irreader/issues/2

authors: Obelix74Git alekslyse laithsaid madradrakie matthijsberk matthijsvisser


text:
x64 Detection using Get-ProcAddress

Within Invoke--Shellcode, things often fail on x86 systems. After some digging, it appears that $64BitCPU returns true; even on x86 systems.

Since $64BitCPU appears to always return true, I followed it down to see how $64BitCPU is being determined.

To test this, I copied Get-Win32Functions, Get-ProcAddress and Get-DelegatedType into a separate script. I then added  the logic within Invoke--Shellcode "$IsWow64ProcessAddr = Get-ProcAddress kernel32.dll IsWow64Process". When running this script, it always returns a value on x86, instead of null.
Here is the script:
function local:Get-Win32Functions
    {
        $Win32Functions = New-Object System.Object

        $OpenProcessAddr = Get-ProcAddress kernel32.dll OpenProcess
        $OpenProcessDelegate = Get-DelegateType @([UInt32], [Bool], [UInt32]) ([IntPtr])
        $OpenProcess = [System.Runtime.InteropServices.Marshal]::GetDelegateForFunctionPointer($OpenProcessAddr, $OpenProcessDelegate)
        $Win32Functions |  Add-Member NoteProperty -Name OpenProcess -Value $OpenProcess

        $VirtualAllocExAddr = Get-ProcAddress kernel32.dll VirtualAllocEx
        $VirtualAllocExDelegate = Get-DelegateType @([IntPtr], [IntPtr], [Uint32], [UInt32], [UInt32]) ([IntPtr])
        $VirtualAllocEx = [System.Runtime.InteropServices.Marshal]::GetDelegateForFunctionPointer($VirtualAllocExAddr, $VirtualAllocExDelegate)
        $Win32Functions |  Add-Member NoteProperty -Name VirtualAllocEx -Value $VirtualAllocEx

        $WriteProcessMemoryAddr = Get-ProcAddress kernel32.dll WriteProcessMemory
        $WriteProcessMemoryDelegate = Get-DelegateType @([IntPtr], [IntPtr], [Byte[]], [UInt32], [UInt32].MakeByRefType()) ([Bool])
        $WriteProcessMemory = [System.Runtime.InteropServices.Marshal]::GetDelegateForFunctionPointer($WriteProcessMemoryAddr, $WriteProcessMemoryDelegate)
        $Win32Functions |  Add-Member NoteProperty -Name WriteProcessMemory -Value $WriteProcessMemory

        $CreateRemoteThreadAddr = Get-ProcAddress kernel32.dll CreateRemoteThread
        $CreateRemoteThreadDelegate = Get-DelegateType @([IntPtr], [IntPtr], [UInt32], [IntPtr], [IntPtr], [UInt32], [IntPtr]) ([IntPtr])
        $CreateRemoteThread = [System.Runtime.InteropServices.Marshal]::GetDelegateForFunctionPointer($CreateRemoteThreadAddr, $CreateRemoteThreadDelegate)
        $Win32Functions |  Add-Member NoteProperty -Name CreateRemoteThread -Value $CreateRemoteThread

        $WaitForSingleObjectAddr = Get-ProcAddress kernel32.dll WaitForSingleObject
        $WaitForSingleObjectDelegate = Get-DelegateType @([IntPtr], [UInt32])
        $WaitForSingleObject = [System.Runtime.InteropServices.Marshal]::GetDelegateForFunctionPointer($WaitForSingleObjectAddr, $WaitForSingleObjectDelegate)
        $Win32Functions |  Add-Member NoteProperty -Name WaitForSingleObject -Value $WaitForSingleObject

        $CloseHandleAddr = Get-ProcAddress kernel32.dll CloseHandle
        $CloseHandleDelegate = Get-DelegateType @([IntPtr]) ([Bool])
        $CloseHandle = [System.Runtime.InteropServices.Marshal]::GetDelegateForFunctionPointer($CloseHandleAddr, $CloseHandleDelegate)
        $Win32Functions |  Add-Member NoteProperty -Name CloseHandle -Value $CloseHandle

        $GetLastErrorAddr = Get-ProcAddress kernel32.dll GetLastError
        $GetLastErrorDelegate = Get-DelegateType @() ([Uint32])
        $GetLastError = [System.Runtime.InteropServices.Marshal]::GetDelegateForFunctionPointer($GetLastErrorAddr, $GetLastErrorDelegate)
        $Win32Functions |  Add-Member NoteProperty -Name GetLastError -Value $GetLastError

        $NtCreateThreadExAddr = Get-ProcAddress NtDll.dll NtCreateThreadEx
        $NtCreateThreadExDelegate = Get-DelegateType @([IntPtr].MakeByRefType(), [UInt32], [IntPtr], [IntPtr], [IntPtr], [IntPtr], [Bool], [UInt32], [UInt32], [UInt32], [IntPtr]) ([UInt32])
        $NtCreateThreadEx = [System.Runtime.InteropServices.Marshal]::GetDelegateForFunctionPointer($NtCreateThreadExAddr, $NtCreateThreadExDelegate)
        $Win32Functions | Add-Member -MemberType NoteProperty -Name NtCreateThreadEx -Value $NtCreateThreadEx

        # A valid pointer to IsWow64Process will be returned if CPU is 64-bit
        $IsWow64ProcessAddr = Get-ProcAddress kernel32.dll IsWow64Process
        if ($IsWow64ProcessAddr)
        {
            $IsWow64ProcessDelegate = Get-DelegateType @([IntPtr], [Bool].MakeByRefType()) ([Bool])
            $IsWow64Process = [System.Runtime.InteropServices.Marshal]::GetDelegateForFunctionPointer($IsWow64ProcessAddr, $IsWow64ProcessDelegate)
            $Win32Functions |  Add-Member NoteProperty -Name IsWow64Process -Value $IsWow64Process
        }

        return $Win32Functions

    }

function Local:Get-ProcAddress
    {
        Param
        (
            [OutputType([IntPtr])]

            [Parameter( Position = 0, Mandatory = $True )]
            [String]
            $Module,

            [Parameter( Position = 1, Mandatory = $True )]
            [String]
            $Procedure
        )

        # Get a reference to System.dll in the GAC
        $SystemAssembly = [AppDomain]::CurrentDomain.GetAssemblies() |
            Where-Object { $_.GlobalAssemblyCache -And $_.Location.Split('\\')[-1].Equals('System.dll') }
        $UnsafeNativeMethods = $SystemAssembly.GetType('Microsoft.Win32.UnsafeNativeMethods')
        # Get a reference to the GetModuleHandle and GetProcAddress methods
        $GetModuleHandle = $UnsafeNativeMethods.GetMethod('GetModuleHandle')
        $GetProcAddress = $UnsafeNativeMethods.GetMethod('GetProcAddress')
        # Get a handle to the module specified
        $Kern32Handle = $GetModuleHandle.Invoke($null, @($Module))
        $tmpPtr = New-Object IntPtr
        $HandleRef = New-Object System.Runtime.InteropServices.HandleRef($tmpPtr, $Kern32Handle)

        # Return the address of the function
        Write-Output $GetProcAddress.Invoke($null, @([System.Runtime.InteropServices.HandleRef]$HandleRef, $Procedure))
    }

function Local:Get-DelegateType
    {
        Param
        (
            [OutputType([Type])]

            [Parameter( Position = 0)]
            [Type[]]
            $Parameters = (New-Object Type[](0)),

            [Parameter( Position = 1 )]
            [Type]
            $ReturnType = [Void]
        )

        $Domain = [AppDomain]::CurrentDomain
        $DynAssembly = New-Object System.Reflection.AssemblyName('ReflectedDelegate')
        $AssemblyBuilder = $Domain.DefineDynamicAssembly($DynAssembly, [System.Reflection.Emit.AssemblyBuilderAccess]::Run)
        $ModuleBuilder = $AssemblyBuilder.DefineDynamicModule('InMemoryModule', $false)
        $TypeBuilder = $ModuleBuilder.DefineType('MyDelegateType', 'Class, Public, Sealed, AnsiClass, AutoClass', [System.MulticastDelegate])
        $ConstructorBuilder = $TypeBuilder.DefineConstructor('RTSpecialName, HideBySig, Public', [System.Reflection.CallingConventions]::Standard, $Parameters)
        $ConstructorBuilder.SetImplementationFlags('Runtime, Managed')
        $MethodBuilder = $TypeBuilder.DefineMethod('Invoke', 'Public, HideBySig, NewSlot, Virtual', $ReturnType, $Parameters)
        $MethodBuilder.SetImplementationFlags('Runtime, Managed')

        Write-Output $TypeBuilder.CreateType()
    }

$var = Get-ProcAddress kernel32.dll IsWow64Process
$var

Here is the output:

From my understanding, this should return $null on x86 systems. I'm not sure if this has something to do with the fact that it is a VM. My test environment is a full patched win7 x86 box running on VMware fusion with a Mac host.
Let me know if clarification is needed.
Thanks!
Matt N.

sounds like a pull-request for Get-SystemInfo or { $processor = gwmi
win32_processor; $processor.architecture }

My system info powershell script has some logic you could use for this which could be found https://github.com/L1ghtn1ng/powershell-scripts/blob/master/systemInformation.ps1

@L1ghtn1ng because your logic is based on $env variables, the output will depend on which version of powershell you're running using. e.g. x86 powershell returns "32-bit" on a x64 machine.

Fair enough am still new to powershell and IIRC set has some logic and so does metasploit

Thanks for all the input, folks! I fixed the bug using the AddressWidth field of the Win32_Processor class while being mindful of multiple instances being returned as mentioned in issue #75. Pester tests passed when tested in Win 10 (64-bit) and Windows XP (32-bit).

repo: mattifestation/PowerSploit


text:
For windows using cygwin needed to modify command

/**
 * Get the command that is going to be executed.
 * @return {String}
 */
Rsync.prototype.command = function() {
    var a = this.executable();
    var b = this.args().join(' ');
    //todo: added chmod manually
    b = b + ' --chmod=ug=rwx --chmod=o=rx';
    return this.executable() + ' ' + b;
};

See commentin #34

repo: mattijs/node-rsync


text:
Multimodal emission probabilites?

Did you ever extend this package to include HDP priors for Gaussian Mixtures for the emission probabilities? I am trying to locate the acceptable probabilities for emission distributions, but can only find Gaussian.
Thanks

The distributions are mostly in pybasicbayes's distributions.py. To make a mixture that can be plugged into an HMM, you'd also want to use the MixtureDistribution class. Something like this:
from pybasicbayes.models import MixtureDistribution
from pybasicbayes.distributions import Gaussian

obs_distns = \
    [MixtureDistribution(
        alpha_0=5.,
        components=[Gaussian(**obs_hypparams) for _ in xrange(5)])
    for state in range(Nmax)]

By default those MixtureDistributions act like weak limit approximations to Dirichlet Process mixture models. If you want to make an HDP model (including multiple mixture models) you'll have to write the hierarchical prat yourself.
You can make mixtures of any of the distributions in pybasicbayes (and it's pretty easy to add new ones).

authors: mathDR mattjj

repo: mattjj/pyhsmm


text:
SSR

fixes #53
fixes #64

Coverage remained the same at 87.179% when pulling 27cdadab7d22c8078ff2e80daf7d8a31800006f2 on ssr into 75c2202fac7d15fcfc2b86d134386f6b7b3e030f on master.

Coverage remained the same at 87.179% when pulling 27cdadab7d22c8078ff2e80daf7d8a31800006f2 on ssr into 75c2202fac7d15fcfc2b86d134386f6b7b3e030f on master.

Coverage remained the same at 87.179% when pulling 3994f331702497e952e6197853ac678bce1bad88 on ssr into 75c2202fac7d15fcfc2b86d134386f6b7b3e030f on master.

Coverage remained the same at 87.179% when pulling 85e1a8f8a13d49b08479144c3169f3a27d1ef085 on ssr into 75c2202fac7d15fcfc2b86d134386f6b7b3e030f on master.

Coverage remained the same at 87.179% when pulling eecfe566ea81510585e15fad91e85eb4c56d627c on ssr into 75c2202fac7d15fcfc2b86d134386f6b7b3e030f on master.

authors: coveralls mattkrick

repo: mattkrick/cashay


text:
Select returns wrong value when SQL type is DATETIME

I use the following code:
In this code I insert into a database date 2 Jan 2020 and insert works correct as shows SQLite DB Browser.
After that I read data from database using SELECT and expect to get 2 Jan 2020. But I get 1 Jan 0001.
package main

import (
	"database/sql"
	"fmt"
	_ "github.com/mattn/go-sqlite3"
	"os"
	"time"
)

func InitDummyDB(path string) *sql.DB {
	db, err := sql.Open("sqlite3", path)
	if err != nil {
		panic(err)
	}
	if db == nil {
		panic("db is nil")
	}

	return db
}

func CreateDummyTable(db *sql.DB) {
	sqlTable := `
	CREATE TABLE IF NOT EXISTS items (
		ID INTEGER PRIMARY KEY, TimeT DATETIME); `

	res, err := db.Exec(sqlTable)
	if err != nil {
		panic(err)
	}
	fmt.Println(res)
}

func InsertDummyDate(db *sql.DB) {
	t1 := time.Date(2020, 1, 2, 3, 0, 0, 0, time.UTC)
	request, err := db.Prepare(`INSERT INTO items (TimeT) VALUES (?)`)
	if err != nil {
		panic(err)
	}
	_, rerr := request.Exec(t1.String())
	if rerr != nil {
		panic(rerr)
	}
}

func PrintDummyData(db *sql.DB) {
	rows, err := db.Query(`SELECT ID, TimeT FROM items ORDER BY ID`)
	if err != nil {
		panic(err)
	}

	defer rows.Close()
	for rows.Next() {
		var id int
		var readTime time.Time // 0001-01-01 00:00:00 +0000 UTC will be returned
		//var readTime string // string does not help: we get 0001-01-01T00:00:00Z

		err = rows.Scan(&id, &readTime)
		if err != nil {
			panic(err)
		}

		fmt.Println(id, readTime)
	}
}

func main() {
	remErr := os.Remove("dummy.db")
	if remErr != nil {
		fmt.Println(remErr)
	}
	db := InitDummyDB("dummy.db")
	CreateDummyTable(db)
	InsertDummyDate(db)
	PrintDummyData(db)
}

See https://www.sqlite.org/lang_datefunc.html
When you call time.String(), the output is "2020-01-02 03:00:00 +0000 UTC", which is not one of the supported formats. But if you change it to just request.Exec(t1), this library takes care of it so the resulting read works as expected.
(The problem here is that SQLite itself doesn't really support timestamps as a proper datatype. This library does a best effort to deal with them, but as you can see, it isn't perfect.)

It works now, thank you!

authors: lukinma rittneje


text:
added missing mode functionality

the mode option in the dsn did not work as expected, particularly when trying to open a database in read-only mode

@AshfordN Do you have an example of it not working correctly? The mode parameter is handled by SQLite itself and is basically applied on top of SQLITE_OPEN_READWRITE/SQLITE_OPEN_READONLY/SQLITE_OPEN_CREATE. Therefore, this change is not needed.

Well the database isn't actually read-only when you specify mode=ro

Coverage increased (+0.2%) to 51.639% when pulling 76ce3bd1fcd6db5f980a2403bdfd5be7755bcf43 on AshfordN:patch-1 into 53cff3fcebd1e177d04129dc131523635bc45d3d on mattn:master.

Please provide an example code segment where it does not work as expected.

The following code successfully inserts and updates a record in the database, using go1.13.1 on linux/amd64:
package main

import (
	"database/sql"
	"fmt"

	_ "github.com/mattn/go-sqlite3"
)

func main() {
	//open database
	db, err := sql.Open("sqlite3", "main.db?mode=ro")
	if err != nil {
		panic(err)
	}

	//attempt insert
	if _, err := db.Exec("INSERT INTO test(col1, col2) VALUES(1, 2)"); err != nil {
		fmt.Printf("Insert failed: %w\n", err)
	}

	//attempt update
	if _, err := db.Exec("UPDATE test SET col2 = 4 WHERE col1 = 1"); err != nil {
		fmt.Printf("Update failed: %w\n", err)
	}
}

See https://www.sqlite.org/uri.html. It should be sql.Open("sqlite3", "file:main.db?mode=ro").

Ok, this works, thanks.

authors: AshfordN coveralls rittneje


text:
Update amalgamation code

Fixes #926, #927

Codecov Report

Merging #940 (d33341f) into master (ab91e93) will decrease coverage by 0.13%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master     #940      +/-   ##
==========================================
- Coverage   46.80%   46.67%   -0.14%
==========================================
  Files          11       11
  Lines        1457     1457
==========================================
- Hits          682      680       -2
- Misses        640      641       +1
- Partials      135      136       +1

Impacted Files
Coverage Δ

sqlite3.go
52.84% <0.00%> (-0.23%)
:arrow_down:

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 ab91e93...d33341f. Read the comment docs.

Test fail on Windows since installing go-acc failed. But I tested this PR on Windows. So merging.

Thank you so much for the fast turnaround, really appreciate it! 🥳

@mattn thank you so much for the quick turnaround - author of go-acc here also (by chance). I can try and look into the Windows issue - specifically by adding a windows VM to the CI :)

authors: aeneasr codecov-io mattn neilalexander


text:
Status text placement

Describe the bug
Status text is off screen. This seems to have started immediately after following the most recent major game update.
To Reproduce
Steps to reproduce the behavior:

Install mod with mod manager
Run game

Expected behavior
Readable status text
Screenshots

Mods installed
jaYzZWjA0a
Extra
Unable to upload save and mod save data after trying to ZIP and upload.

Out of curiosity, what resolution are you using? Also is the "UI layout resolution reference height" (in Settings->Gameplay) different than the resolution's height?

This is 2560x1440p with a reference height of 900. This worked just fine prior to update, however with that being said I did also forget my reference height was so low (I enjoy the larger UI elements).
For now I've set the reference height to 1080 and everything is correctly visible again. I'd still appreciate using 900 but also don't mind just using 1080 as a workaround for this.
Thanks for your time. Feel free to close this, due to this reference heigh workaround :)

I'm definitely going to fix it, I'm just compiling a list of resolutions and ref heights to test before I release versions.

I think this should be fixed with the release from yesterday

Confirming this appears to be resolved. Thanks for your support!

authors: Cringely mattsemar

repo: mattsemar/dsp-personal-logistics


text:
Virtual textures are not supported

Hello. Here are some textures from the game The day before. Engine version UE5 5.2.1.0
I was never able to get anything adequate from these files, even through rawtex / texconv
thedaybefore_assets.zip

Hi, thanks for the report.
Do you have more infomation about your assets?
T_drum_kit_01_d.uasset says it's a 2d texture. and T_drum_kit_01_d.uexp says it's a 1024x1024 texture that have DXT1 format. Its DDS data should be 683KB at most but T_drum_kit_01_d.ubulk is 830KB. (Usually, the texture ubulk has only pixel data for DDS.)
Also, I can see PF_DXT1 twice in T_drum_kit_01_d.uexp. I've never seen like this before.
I assume that the day before uses a custom version of UE or a less well-known option.

no, unfortunately these files, the version of the game and what kind of game this is is the only thing I can give you, I’m very far from all this stuff with coding) if you need more examples... by the way, the game also contains ordinary textures that umodel was able to immediately convert to a readable format.

I confirmed that they are streaming virtual textures.
I got similar structures when I enabled the Virtual Texture Streaming option in Unreal Engine.
Presumably, their pixel data is subdivided into small pieces and stored in specific data structures.
But unfortunately, it's beyond my understanding. Idk how to convert them to the standard image formats.
So, I added an error message for virtual textures at 3d6ac1c2708fd9680d809740c628409dd904c717, and gave up to support your assets.

It’s a pity, I’m increasingly encountering these virtual textures, even though they were originally just an ordinary picture =(

I apologize in advance for a question that doesn't quite belong here, but could you give me some advice on how to properly set up the virtual texture generation in the unreal editor? I've exported the texture in png via Umodel, edited it in Photoshop and would like to create a uasset back from it directly in the editor. But I can't seem to set it up properly.

I always end up with a black texture instead of a picture.


text:
🛑 API announcement - PROD is down

In 0411e88, API announcement - PROD (https://announcement.prod.api.eflow.com.ar/swagger) was down:

HTTP code: 0
Response time: 0 ms

Resolved: API announcement - PROD is back up in a58b5a0.

repo: mauribesson/upptime


text:
PowerShell Error. You cannot call a method on a null-valued expression. At line:17154 char:5

Trying to get started using the tool. I'm getting this error when running DriverAutomationTool.exe Any idea how I can get past this? I could not find the PS1 file to look at the PowerShell code to troubleshoot this further. Also Microsoft is checked and grayed out and can't be unchecked.
[Start Up]
- Initialising Driver Automation Tool
- Loading required PowerShell modules
- Checking for preinstalled PS modules
- Importing module BitsTransfer
[Launching GUI]
[Azure Registy Settings Detected]
- Obtaining all Azure values from registry path HKLM:\SOFTWARE\MSEndpointMgr\DriverAutomationTool
- Setting values in the UI
You cannot call a method on a null-valued expression.
At line:17154 char:5
+ ...             $OSBuild = ($WindowsBuildHashTable.Item("$OSBuild")).Spli ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

Try clicking the Reset Tool button at the bottom left and setting only the settings needed.

The reset button worked for me.
Thanks for the tip

OK i have done the reset...
now i am getting...
Start-BitsTransfer : The server name or address could not be resolved
At line:1093 char:8

...             Start-BitsTransfer -Source $DellXMLCabinetSource -Destina ...

            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

CategoryInfo          : InvalidOperation: (:) [Start-BitsTransfer], Exception
FullyQualifiedErrorId : StartBitsTransferCOMException,Microsoft.BackgroundIntelligentTransfer.Management.NewBitsTransferCommand

authors: Get-SomeCofee chrisecklar jacqtscpl

repo: maurice-daly/DriverAutomationTool


text:
jsonb support to get read/write jsonb columns to/from play json

Starting a new project and jsonb looks very attractive.
Any pointers on how to deal with jsonb columns ?

Right now there is no support for jsonb as including support would require building a jsonb serializer and de-serializer, but we would definitely accept a PR that introduces it :)

I'd be happy to, even if I have to hire somebody to do it :)
So two questions:
1 - Is reading/writing jsonb currently possible at all ?
2 - How would I approach "building a jsonb serializer" ? I am not sure how good my scala is, but postgresql with jsonb and non-blocking play is what I want to use for this project.

Right now it will be read as string, not sure how PostgreSQL will produce a string out of it.
To include it you need to build an encoder and a decoder and register it [here](https://github.com/mauricio/postgresql-async/blob/master/postgresql-async/src/main/scala/com/github/mauricio/async/db/postgresql/column/PostgreSQLColumnEncoderRegistry.scala] and here.

Great, already something !
So at least I should be able to use play json support to parse/format the strings.
Thank you for a quick reply.

Hi
@webgress - did you do anything about this? I too want jsonb

ok -
So if you convert your json into a string before passing it across to posgres and if you parse it when it comes back there's nothing to do (which mauicio more or less said above). It works already
Thinking about it, there are many different json ASTs in the scala world. Any decision to write a decoder as part of this package would probably be a mistake - as you'd get in the way of the people with a different Json representation. So I'd suggest this doesn't need fixing.

Yeah, which is kind of what I'm thinking as well, we could include a way for you to provide your own JSON parser if you'd like to if people think it's necessary, but I'd rather not force people to use something, specially when there are many different solutions out there already and they aren't even remotely compatible between them.

authors: TimPigden mauricio webgress

repo: mauricio/postgresql-async


text:
Unable to use library with commons-io

My project has dependency on commons-io wich conflicts with your placed classes in ->
src/main/java/org/apache/commons/io/
You probably should use dependency commons-io:commons-io:2.6.
Add to VERSIONS.gradle after line 132
        commonsio: [group: 'commons-io', name:'commons-io', version: '2.6'],

To build.gradle in array oreoDependencies
    [configuration: "implementation", dependency: libs.commonsio],

And to array preoreoDependencies
    [configuration: "compile", dependency: libs.commonsio],

Have made a PR for this: https://github.com/mauron85/background-geolocation-android/pull/31

@mauron85 would it be possible to get this merged? Its interfering with expo's unimodules.

Almost year  - still waiting...
Next problem is going to be release of older version of mauron85/react-native-background-geolocation
Using version 0.5

@petrleocompel Just wanted to say thank you for posting this fix. I already spent so many hours trying to get the library to compile in release mode, and your PR finally helped me get it to work. Thank you for being here for this library since @mauron85 isn't even looking at it anymore.

There is "maintained" fork which implemented this. -> https://github.com/darron1217/background-geolocation-android/
And in react-native part https://github.com/darron1217/react-native-background-geolocation
I am closing this because it is 3 years later and no change.

authors: himat petrleocompel tankers746


text:
accuracy issues with points

Not necessarily an issue, but wanted to see if other folks are experiencing this kind of thing. May app uses the standard geolocation tools with Phonegap as well as this plugin for the background geolocations.  Everything is working reasonably well on android/iphone, except I have these random points with terrible accuracy, 20km+ out.
Is this normal? Is there something I can do with the settings to limit this?  My initial thought it to use location.accuracy to discard any bad points, but wanted to see if this is an issue I have with my setup overall.  Thanks!
Your Environment

Plugin version: most recent
Platform: iOS or Android
OS version: varies
Phonegap Build 5.2

Notice: this issue has been closed because it has been reported for branch 2.x or later. It could be already fixed in v3 or is not relevant anymore. You may reopen this issue if it has been closed in error.


text:
Partial reconfiguration

Your Environment

Plugin version: 2.3.2
Platform: iOS and Android
OS version: macOS HighSierra
Device manufacturer and model: Samsung S7
Cordova version (cordova -v): 7.1.0
Cordova platform version (cordova platform ls):
Plugin configuration options: all
Link to your project: na

Context

IMHO partial reconfiguration doesn't work as described. If I try debug: true object as a parameter debug is not started.
example
BackgroundGeolocation.configure({
debug: true
});
Expected Behavior

Partial reconfigure should work
Actual Behavior

IMHO partial reconfiguration doesn't work as described. If I try debug: true object as a parameter debug is not started.
example
BackgroundGeolocation.configure({
debug: true
});
Possible Fix

I hope there is a fix or I am doing it wrong.
Steps to Reproduce

Context

Debug logs

Just tested in on android and works as advertised. What are your expectations about toggle debug? Plugin must be started to see difference

Just realized your problem is plugin version 2.3.2. This feature is 3.0.0 only.

You are right. My version of the plugin is 2.3.3
Where is version 3.0 If I reinstall the plugin it is still 2.2.2

Op 20 dec. 2017, om 18:46 heeft Marián Hello notifications@github.com het volgende geschreven:
Closed #360 https://github.com/mauron85/cordova-plugin-background-geolocation/issues/360.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub https://github.com/mauron85/cordova-plugin-background-geolocation/issues/360#event-1396577998, or mute the thread https://github.com/notifications/unsubscribe-auth/AAZlp2x1HUmUUCe_Dylvj70z7FaCUwkzks5tCUgMgaJpZM4RIK2d.

Hi,
I found the 3.0.0 version of the plugin: 3.0.0-alpha.12 right?
If I remove the 2.3.2 version and install 3.0.0 my app doesn’t build anymore. Here the log of build proces:
(node:64674) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: /Users/pietcrombach/Development/Projecten/trinl/trinlfirebase/platforms/android/gradlew: Command failed with exit code 1 Error output:
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
/Users/pietcrombach/Development/Projecten/trinl/trinlfirebase/platforms/android/src/com/zencity/cordova/bgloc/LocationUpdateService.java:6: error: package org.apache.http does not exist
import org.apache.http.HttpResponse;
^
/Users/pietcrombach/Development/Projecten/trinl/trinlfirebase/platforms/android/src/com/zencity/cordova/bgloc/LocationUpdateService.java:7: error: package org.apache.http.client.methods does not exist
import org.apache.http.client.methods.HttpPost;
^
/Users/pietcrombach/Development/Projecten/trinl/trinlfirebase/platforms/android/src/com/zencity/cordova/bgloc/LocationUpdateService.java:8: error: package org.apache.http.entity does not exist
import org.apache.http.entity.StringEntity;
^
/Users/pietcrombach/Development/Projecten/trinl/trinlfirebase/platforms/android/src/com/zencity/cordova/bgloc/LocationUpdateService.java:9: error: package org.apache.http.impl.client does not exist
import org.apache.http.impl.client.DefaultHttpClient;
^
/Users/pietcrombach/Development/Projecten/trinl/trinlfirebase/platforms/android/src/com/zencity/cordova/bgloc/LocationUpdateService.java:662: error: cannot find symbol
DefaultHttpClient httpClient = new DefaultHttpClient();
^
symbol:   class DefaultHttpClient
location: class LocationUpdateService
/Users/pietcrombach/Development/Projecten/trinl/trinlfirebase/platforms/android/src/com/zencity/cordova/bgloc/LocationUpdateService.java:662: error: cannot find symbol
DefaultHttpClient httpClient = new DefaultHttpClient();
^
symbol:   class DefaultHttpClient
location: class LocationUpdateService
/Users/pietcrombach/Development/Projecten/trinl/trinlfirebase/platforms/android/src/com/zencity/cordova/bgloc/LocationUpdateService.java:663: error: cannot find symbol
HttpPost request = new HttpPost(url);
^
symbol:   class HttpPost
location: class LocationUpdateService
/Users/pietcrombach/Development/Projecten/trinl/trinlfirebase/platforms/android/src/com/zencity/cordova/bgloc/LocationUpdateService.java:663: error: cannot find symbol
HttpPost request = new HttpPost(url);
^
symbol:   class HttpPost
location: class LocationUpdateService
/Users/pietcrombach/Development/Projecten/trinl/trinlfirebase/platforms/android/src/com/zencity/cordova/bgloc/LocationUpdateService.java:677: error: cannot find symbol
StringEntity se = new StringEntity(params.toString());
^
symbol:   class StringEntity
location: class LocationUpdateService
/Users/pietcrombach/Development/Projecten/trinl/trinlfirebase/platforms/android/src/com/zencity/cordova/bgloc/LocationUpdateService.java:677: error: cannot find symbol
StringEntity se = new StringEntity(params.toString());
^
symbol:   class StringEntity
location: class LocationUpdateService
/Users/pietcrombach/Development/Projecten/trinl/trinlfirebase/platforms/android/src/com/zencity/cordova/bgloc/LocationUpdateService.java:691: error: cannot find symbol
HttpResponse response = httpClient.execute(request);
^
symbol:   class HttpResponse
location: class LocationUpdateService
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
11 errors
After reinstalling 2.00 version of the plugin these errors stay now. So what to do now?????

Op 20 dec. 2017, om 18:46 heeft Marián Hello notifications@github.com het volgende geschreven:
Closed #360 https://github.com/mauron85/cordova-plugin-background-geolocation/issues/360.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub https://github.com/mauron85/cordova-plugin-background-geolocation/issues/360#event-1396577998, or mute the thread https://github.com/notifications/unsubscribe-auth/AAZlp2x1HUmUUCe_Dylvj70z7FaCUwkzks5tCUgMgaJpZM4RIK2d.

You've installed wrong plugin. Probably this one https://www.npmjs.com/package/cordova-plugin-background-geolocation
I can tell because com/zencity/cordova/bg is not package name I'm using, but it exactly matches this one
https://github.com/ZenCity/cordova-plugin-background-geolocation/blob/master/src/android/LocationUpdateService.java#L1


text:
iOS 13.1 Beta - Geolocation not reported when app is in background

Seems like the geolocation is not reported when the app runs in background despite the "Always" permission is set
Your Environment

Plugin version: 3.0.6
Platform: iOS 13.1 beta
OS version:
Device manufacturer and model: IPhone 6s
Cordova version (cordova -v): 9.0.0 (cordova-lib 9.0.1)
Cordova platform version (cordova platform ls): ios 5.0.1
Plugin configuration options:
Link to your project:

Context
On iOS 13.1 when the user has checked in the settings of the app the "always" permission for the iOS, the location is not beeing recorded after one leaves the app (switches the app to background i.e.).
I can see that on the navtive Cordova Background Geolocation It this issue has been already raised and solved:
transistorsoft/cordova-background-geolocation-lt#952
Expected Behavior
The Geolocation should be properly sent even if the app is in the background
Steps to Reproduce

Turn on the "Always" geolocation permission (turned on from the settings page, not from the prompt - as it is no longer available in the iOS 13).
Start tracking the geolocation
Go to the desktop
After approx. 30 seconds the location arrow on the top bar will disappear and the geolocation requests will cease beeing sent to the server.
Going back to the application reenables sending of the geolocation requests

@mauron85 I am sorry for being pushy, but do you have a clue about this one? iOS 13 releases tomorrow, there might be a great impact if the background geoloc report would not work in the background. For now, the issue still persists.

It seems to be a general issue with iOS 13.

You dont get (not every time, but sometimes, cant say explicit when) the blue tracking icon
If the new authority confirm box (Only in foreground, Once, Never) you got  BackgroundGeolocation.AUTHORIZED, if the user select "only in foreground".
-- So the trackings stops in background without any response or callback etc. If you resume the app, you got the question from ios if you allowed every time in background and the tracking jumps from the last point in foreground to the current point

But i dont have any idea atm to solve the issue :/

@busaku Mhm, thank you for the reply, well, at least I am not the only one fighting this bug.

Is seems the issue happens only with ACTIVITY_PROVIDER, when using RAW_PROVIDER (and app has proper permissions) geolocation in background works fine.

Hello @tkondej how to change that setting?

@itcurves simply by specifying locationProvider, check the example https://github.com/mauron85/cordova-plugin-background-geolocation#example

@tkondej, I'm still having issues with background data sending to my server using RAW_PROVIDER - I currently use DISTANCE_FILTER_PROVIDER but I switched to RAW_PROVIDER for testing.  Both fail.  I was wondering if you could explain what you mean by "and app has proper permissions".  My app used to work prior to IOS13 so I was wondering if there is a new permission required for IOS13?

@stgraham2000 on iOS 13 you have to enable access to use "geolocation always" in application settings or by accepting additional prompt which popups when after locking and unlocking the phone, check this article for more details https://medium.com/@transistorsoft/ios-13-and-android-q-support-beb7595d2c24

@tkondej, interesting, I had the "always on" under permissions for most of the day and it appeared to be broken, but it looks like another thing to look out for is you need to go for a longer distance test run.   In earlier tests today I was probably only walking maybe 50m (around my office).  I just tried again by doing a short drive and the points were collected as I expected.  Before when I was testing on ios12 I could get points with a much shorter distance travelled.  This will be an interesting usability issue to address as the article you referenced also indicates.
It looks like this should still be possible to accomplish location updates while the permissions are set to "while in use":
https://developer.apple.com/documentation/corelocation/getting_the_user_s_location/handling_location_events_in_the_background
https://developer.apple.com/documentation/corelocation/cllocationmanager/1620568-allowsbackgroundlocationupdates
I will experiment with this in the morning and report back

Any news? :)

Unfortunately I took horrible notes on this investigation but I have fixed the problem and here are the changes I in the commit that fixed this:

Unfortunately, I took horrible notes on this investigation but I have fixed the problem and here are the changes I have in the commit that fixed this...

Went from version 3.0.0-alpha.50 to 3.1.0
Following is a snipped of the config changed:

startForeground: true,  # Unset prior
pauseLocationUpdates: false  # Unset prior
stationaryRadius: 10    # Used to be 50

Was using this.backgroundGeolocation.finish() at the end of the location handler.  I removed these.

I hope one of the above changes works for you.  Sorry I can't be of more help.

Hello, please look at my posts #684
In your config.xml be sure to add the following configuration under the iOs platform xml node:
        <config-file parent="UIBackgroundModes" target="*-Info.plist">
            <array>
                <string>fetch</string>
            </array>
            <array>
                <string>location</string>
            </array>
            <array>
                <string>processing</string>
            </array>
        </config-file>
        <edit-config file="*-Info.plist" mode="merge" target="NSLocationWhenInUseUsageDescription">
            <string>need location access to find things nearby</string>
        </edit-config>

that's equivalent to the following setup from Xcode

@jackie-d - Give a try to this plugin-
https://www.npmjs.com/package/cordova-plugin-bg-geolocation
https://github.com/Anuj-Raghuvanshi/cordova-plugin-bg-geolocation
This works, Thanks!

I have finally got this to work on a real device! the key change:
locationProvider: BackgroundGeolocation.RAW_PROVIDER
i,e, do NOT use ACTIVITY_PROVIDER as shown in the geolocation example in the docs as this doe NOT work in the background on IOS devices as explained here
https://github.com/mauron85/cordova-plugin-background-geolocation/blob/HEAD/PROVIDERS.md
I am not sure these are also required in the config.xml file under the 'ios platform' section as suggested above. I suspect the default already set by the plugin (i.e. 'location') might be sufficient.

@tfelici - Can you please share reference of your plugin if you have forked and made changes? I also facing same issue.

I have not done any fork. I am using the vanilla 3.1.0 version
Kind regards
Tom
On 11/09/2020 12:05, Anuj Singh wrote:

@tfelici https://github.com/tfelici - Can you please share reference
of your plugin if you have forked and made changes? I also facing same
issue.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/mauron85/cordova-plugin-background-geolocation/issues/619#issuecomment-691029600,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AB2PYTFAC43VNIMXLF3LQC3SFH76BANCNFSM4IU5AYGQ.

ok - after further tests I can confirm  this woks on IOS 13.7 on my daughter's iphone and ipad. Here are the relevant settings in BackgroundGeolocation.configure
BackgroundGeolocation.configure({
	locationProvider: BackgroundGeolocation.RAW_PROVIDER,
	desiredAccuracy: BackgroundGeolocation.HIGH_ACCURACY,
	pauseLocationUpdates: false, // need this for IOS I think (default was false anyhow but maybe not)
	stationaryRadius: 20,
	distanceFilter: 20, // docs say this is dinamically changed when locationProvider = DISTANCE_FILTER_PROVIDER
});

you do NOT need to add the extra lines
    <config-file parent="UIBackgroundModes" target="*-Info.plist">
        <array>
            <string>location</string>
        </array>
        <array>
            <string>processing</string>
        </array>
    </config-file>

unless you require to app to refresh other stuff in the background, other than location updates and posting

Hi, there are two ways to works geolocation in background, the first is as you commented with RAW_PROVIDER and the second is setting up in locationProvider: backgroundGeolocation.DISTANCE_FILTER_PROVIDER and call in your event location the method switchMode to force foreground and with this continue reporting in base to option.desiredAccuracy and option.distanceFilter

BackgroundGeolocation.on('location', function(location) {
// handle your locations here
// switch to FOREGROUND mode
BackgroundGeolocation.switchMode(BackgroundGeolocation.FOREGROUND_MODE);
})

But I have a question, in the two ways this works and I can see blue in the status bar that means an app is actively using your location.
My question is this can drain the battery? is not sending location until you reach your distance filter but this is always in the status bar. I hope anyone see this

authors: Anuj-Raghuvanshi Anuj-logiciel busaku diegojoel98 grabkipower itcurves jackie-d stgraham2000 tfelici tkondej


text:
Add search for ExpenseCategory to NetSuite Records

pulls in all categories from NetSuite

@ahuth @shirish-pampoorickal @AnnaMhairi

@shirish-pampoorickal comments addressed

repo: mavenlink-solutions/netsuite


text:
Diesel session store support

I noticed a discussion in tower-sessions between the maintainer of this repo and a contributor intending to add support for Diesel, which seems to have stalled at the end of last year.
I'd like to have support for Diesel, so am proposing to create a pull request with the relevant parts, if that would be welcome.
Please let me know if there's anything I might like to take into consideration.

We don't vendor session stores so please publish this as an independent crate.
There's a number of examples listed in the docs and README which you might reference.

Leaving a note here for others to find regarding diesel.
I spent about 2 hours looking into writing my own session store and evaluated it as not worth it, and will be migrating my project to sqlx instead, which seems generally better supported both by tower-sessions and other ecosystem projects I'm relying on (shuttle).
It was mentioned to me elsewhere that Diesel's has been losing support relative to sqlx/seaORM on the basis of one or more of:

of slow compilation times
inconsistent async support
slower developer experience than just writing compile-time checked SQL
a necessarily complex trait ecosystem creating friction for open source maintainers to support diesel

repo: maxcountryman/tower-sessions-stores


text:
having a problem without knowing how to fix this.

Hi. I am currently trying to use your imagePicker in my own project, but I get this error even in my test that I created with your code. Do you have any idea?

I have a problem in installing via cocoapods.
fingents-Mac-mini-3:HoneyBadger fingent$ pod install
Updating local specs repositories
CocoaPods 0.39.0.beta.4 is available.
To update use: gem install cocoapods --pre
[!] This is a test version we'd love you to try.
For more information see http://blog.cocoapods.org
and the CHANGELOG for this version http://git.io/BaH8pQ.
Analyzing dependencies
[!] Unable to satisfy the following requirements:

RMImagePicker (~> 0.1.4) required by Podfile

Here is the podfile. Appreciate your help.
Uncomment this line to define a global platform for your project
platform :ios, '6.0'
target 'HoneyBadger' do
pod "RMImagePicker","~> 0.1.4"
end
target 'HoneyBadgerTests' do
end

authors: alvinreuben luxis

repo: maxdrift/RMImagePicker


text:
Floating Section Header not scrolling with tableView after using MXParallaxHeader for the tableHeaderView

So I am facing this problem on my project. Somehow we must use UITableView with Plain Style and then dynamically adding table section header in to the tableView. And for the TableHeaderView of course I am using MXParallaxHeader. However, when I scroll the tableView up, my section header view got stock at the origin position while all cells are scrolling up. It is a very weird behavior I never seen before.  I know #65 asked the same question but there is no a correct response. Please help. Thank you

So I tried #65 solution again and it worked. Basically what you should do to make UITableView Section Header works with MXParallaHeader is to add UITableView into MXScrollView,  assign your MXParallaxHeader (View) to the scrollView.parallaheader.view. And then set the correct scrollView.contentSize otherwise it won't be scrollable. This works well for my project, but the upcoming issue is that scrollView.parallaheader.minimumHeight doesn't work in this case. If someone know the solution, please share. Thanks

@Tim77277 I did that like you say , it worked . But It have a problem, when I scroll the list to the bottom , I can't keep scroll down although I set scrollView.bounces = true and collectionView.bounces = true. Did you get this problem?

Same problem here

@Tim77277 I did that like you say , it worked . But It have a problem, when I scroll the list to the bottom , I can't keep scroll down although I set scrollView.bounces = true and collectionView.bounces = true. Did you get this problem?

Same problem here

repo: maxep/MXParallaxHeader


text:
Return value of getWaveform function

I tried your package, but when i used the function in the title, I get a boolean (true) instead of the image I expected to get. The getWaveformData function on the other hand return the expected waveform data. I used Version 1.2.0 of the library.
I used PHP 7.2.15 and the GD-Extension is enabled.

See the readme file and the PhpDoc for getWaveform() method:
/**
 * Get waveform from the audio file.
 * @param string $filename Image file name
 * @param int $width Width of the image file in pixels
 * @param int $height Height of the image file in pixels
 * @param bool $onePhase `true` to get positive values only, `false` to get both phases
 * @return bool Returns `true` on success or `false` on failure.
 * @throws \Exception
 */

getWaveform() saves the image to $filename and returns boolean (whether the operation succeded).

authors: Sebastian-Hirsch maximal

repo: maximal/audio-waveform-php


text:
Suggestion: Add multiple template with template selection

I think that you should make multiple differents templates, ones with categories, ones without, one without emojis, etc, and let us select it through the CLI (with a --template argument for example).
This would greatly improve this project!

I knew someone would ask 😃
I originally wanted this to be more of a DIY solution where you have the info and you can arrange it as you desire and do whatever with the output.
I would add multiple templates but there is so much info and so many ways to create changelogs and everyone wants it to be a certain way. so I only have one (opinionated) template by default and export all the info (sorted and unsorted) for people to create their own.
for example, in the default template, I put a link to the commit with the short hash. some like to have the link on the commit text, some like to put it on the end, some only like to put the hash but not a link, some people would prefer not to have it altogether. this would either require me to add every requested template, or create a templating language which is dynamic enough. I'd rather that language be javascript/typescript than creating my own.

Mh I see, but for example:
When I tried to modify this to only have only 1 "Changelog" category, I struggled a lot because code is very axed for multiple categories, maybe you should change this, like regrouping every part of the configuration in 1 ts file?

if you just want a list of commits, you can do something like:
// ghlog@0.2.x
const { _meta }= await getChangeLog(repo, base, head, config);
const changelog = `CHANGELOG

${ _meta.commits.all.map(({ message }) => `- ${message}` ).join("\n") }
`

// write `changelog` to file

I'm trying to think of a good way for how to structure the out put of getChangeLog() so that it's as flexible as possible.

Mh I see okay, I was just doing it badly!

authors: Ayfri maximousblk

repo: maximousblk/ghlog


text:
omegaconf.errors.ConfigAttributeError: Missing key ckpt

Thanks for the great work!
When I ran video_editing.sh, I got the following error.
I checked the sample.yaml and there is no ckpt part.
Am I missing something? The gardio app works fine.
(cinemo) C:\Users\toyxy\Cinemo>bash pipelines/video_editing.sh
C:\Users\toyxy\ANACON~1\envs\cinemo\Lib\site-packages\diffusers\utils\outputs.py:63: FutureWarning: `torch.utils._pytree._register_pytree_node` is deprecated. Please use `torch.utils._pytree.register_pytree_node` instead.
  torch.utils._pytree._register_pytree_node(
C:\Users\toyxy\ANACON~1\envs\cinemo\Lib\site-packages\huggingface_hub\file_download.py:1150: FutureWarning: `resume_download` is deprecated and will be removed in version 1.0.0. Downloads always resume when possible. If you want to force a new download, use `force_download=True`.
  warnings.warn(
C:\Users\toyxy\ANACON~1\envs\cinemo\Lib\site-packages\diffusers\models\modeling_utils.py:109: FutureWarning: You are using `torch.load` with `weights_only=False` (the current default value), which uses the default pickle module implicitly. It is possible to construct malicious pickle data which will execute arbitrary code during unpickling (See https://github.com/pytorch/pytorch/blob/main/SECURITY.md#untrusted-models for more details). In a future release, the default value for `weights_only` will be flipped to `True`. This limits the functions that could be executed during unpickling. Arbitrary objects will no longer be allowed to be loaded via this mode unless they are explicitly allowlisted by the user via `torch.serialization.add_safe_globals`. We recommend you start setting `weights_only=True` for any use case where you don't have full control of the loaded file. Please open an issue on GitHub for any issues related to this experimental feature.
  return torch.load(checkpoint_file, map_location="cpu")
Traceback (most recent call last):
  File "C:\Users\toyxy\Cinemo\pipelines\video_editting.py", line 198, in <module>
    main(OmegaConf.load(args.config))
  File "C:\Users\toyxy\Cinemo\pipelines\video_editting.py", line 87, in main
    state_dict = find_model(args.ckpt)
                            ^^^^^^^^^
  File "C:\Users\toyxy\ANACON~1\envs\cinemo\Lib\site-packages\omegaconf\dictconfig.py", line 355, in __getattr__
    self._format_and_raise(
  File "C:\Users\toyxy\ANACON~1\envs\cinemo\Lib\site-packages\omegaconf\base.py", line 231, in _format_and_raise
    format_and_raise(
  File "C:\Users\toyxy\ANACON~1\envs\cinemo\Lib\site-packages\omegaconf\_utils.py", line 899, in format_and_raise
    _raise(ex, cause)
  File "C:\Users\toyxy\ANACON~1\envs\cinemo\Lib\site-packages\omegaconf\_utils.py", line 797, in _raise
    raise ex.with_traceback(sys.exc_info()[2])  # set env var OC_CAUSE=1 for full trace
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\toyxy\ANACON~1\envs\cinemo\Lib\site-packages\omegaconf\dictconfig.py", line 351, in __getattr__
    return self._get_impl(
           ^^^^^^^^^^^^^^^
  File "C:\Users\toyxy\ANACON~1\envs\cinemo\Lib\site-packages\omegaconf\dictconfig.py", line 442, in _get_impl
    node = self._get_child(
           ^^^^^^^^^^^^^^^^
  File "C:\Users\toyxy\ANACON~1\envs\cinemo\Lib\site-packages\omegaconf\basecontainer.py", line 73, in _get_child
    child = self._get_node(
            ^^^^^^^^^^^^^^^
  File "C:\Users\toyxy\ANACON~1\envs\cinemo\Lib\site-packages\omegaconf\dictconfig.py", line 480, in _get_node
    raise ConfigKeyError(f"Missing key {key!s}")
omegaconf.errors.ConfigAttributeError: Missing key ckpt
    full_key: ckpt
    object_type=dict

Hi, thanks for your interest. I have fixed this bug. the parameter ckpt will not be used. You can follow this to change your code:
https://github.com/maxin-cn/Cinemo/blob/d0e99565dc60084f6afc6c8767463ffc5337b082/pipelines/video_editing.py#L90

authors: maxin-cn toyxyz

repo: maxin-cn/Cinemo


text:
Added name to list

Added name to list, please merge into master branch.

Hey Kevin,
I think this might the wrong repo. stevecif/git-demo eventually derives from this one but now lists a different class. Reach out to Steve to confirm.
If you're sure you want to merge into this one, please restage your changes and squash any intermediary commits. I'll close this request in the meantime.
Let me know if you need any help,
Max

Thanks. Will do.
On Wed, Jun 21, 2017 at 8:52 PM, Max Vu notifications@github.com wrote:

Hey Kevin,
I think this might the wrong repo. stevecif/git-demo
https://github.com/stevecif/git-demo eventually derives from this one
but now lists a different class. Reach out to Steve to confirm.
If you're sure you want to merge into this one, please restage your
changes and squash any intermediary commits. I'll close this request in
the meantime.
Let me know if you need any help,
Max
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/maxvu/git-demo/pull/4#issuecomment-310245037, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AbaZ-Xu6ueb1X8zV97QBbAm6J7D6t0aYks5sGbrrgaJpZM4OABph
.

authors: kevintmcg maxvu

repo: maxvu/git-demo


text:
Ansible playbook missing stuff

Trying to run the ansible-playbook command in the README.md, it seems to be missing most of its roles:
kaijen@daisy:~/ros_webrtc_ws/src/ros-webrtc/test/provision$ ansible-playbook -i 'localhost,' -c local -K dev.yml
SUDO password:
ERROR! the role 'chrome' was not found in /home/kaijen/research/ros_webrtc_ws/src/ros-webrtc/test/provision/roles:/home/kaijen/research/ros_webrtc_ws/src/ros-webrtc/test/provision:./roles
The error appears to have been in '/home/kaijen/ros_webrtc_ws/src/ros-webrtc/test/provision/dev.yml': line 16, column 5, but may
be elsewhere in the file depending on the exact syntax problem.
The offending line appears to be:
roles:

{role: chrome, become: yes}
^ here

@KaijenHsiao sorry, can u do:
~/code/ros-webrtc/test/provision$ ansible-galaxy install -r requirements.yml

just before you run:
~/code/ros-webrtc/test/provision$ ansible-playbook -i 'localhost,' -c local -K dev.yml

that should install dependent roles. i'll update the docs if that fixes the issue.

Ah, yup, that fixed it.  Thanks!

authors: KaijenHsiao aisch

repo: mayfieldrobotics/ros-webrtc


text:
Update README to make the wording friendlier

This PR comes with a small rephrasing of the README's "Motivation" section, making the overall text simper and friendlier.

Thanks for the pull request!


text:
Echo doesn't work

Hi!
I've created a vulnerable server using Tomcat9, Struts2 REST Showcase webapp (v2.5.12) and Ubuntu 16.04 in Docker -  and your exploit works like a charm (I can touch and rm files), however echo fails for me.
The good old ysoserial has some issues with complex commands (pipes and I/O redirection) also, but since you're using echo in your example, maybe I'm just missing something - do you have any ideas how to fix it?

Hi @2rcsanyi ,
Thanks for reporting!
It seems that piping and I/O redirections are not working properly in the current exploit payload.
I have updated the instructions and examples to use touch instead of echo.
I would say it would be better to drop a file-based payload on the box, then execute it.
It would be the easiest and most reliable way to do it in my opinion.
Thanks again!
Best,
Mazin


text:
[WCCMMUD] Majormud - Re-entering the game causes your character to drop half his stuff and lose some health

Module Information

Identifier WCCMMUD
Module Name Majormud
Version 1.11p

Describe the bug
Re-entering the game after a hangup causes your character to drop stuff on the group and lose some health.
To Reproduce
Steps to reproduce the behavior:

Create a character, enter the game, go to the armor shop, buy some gear, and equip all of it.
Ensure you are at full health.
Click the hangup button in Megamud. (or force disconnect the session via whatever your client is)
Reconnect and login to the game
See a bunch of your gear on the ground. Also see you are missing some health.

Expected behavior
You should re-enter the game with the same amount of health as you had, and still have your loot equipped.
Screenshots

Before disconnect above, after disconnect below

Software Information:

OS: mbbsemu docker
Telnet Client Majormud

Nevermind. Realized that there is a hangup penalty configured in the WCCMMUD.MSG file.

repo: mbbsemu/MBBSEmu


text:
🛑 Fanalitica is down

In 943cd6c, Fanalitica (https://www.fanalitica.com) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Fanalitica is back up in 0c3df13.


text:
[docs] Fill out the Home and Next Steps pages

The docs site could use some love on the landing page and the Next Steps page.

CC @aclayton555 for awareness

Once we have the first iteration of the community curation docs up on the scroll viewport, would be good to have a "return to curation docs" button within the standards pages to streamline navigation back to these.

Change "Contribute" tab to "Contribute to the Data Model"


text:
Twilight Forest Clock Bed?

I just hopped into Twilight Forest and a white Bed icon appeared over the game clock. I tried to see if it was an issue with the placement but it's attached directly to the clock. Is there a way to disable this icon?

The bed indicates that it's nighttime and therefore possible to sleep. You're right, I should probably add a way to disable it.

authors: BuddermanTheAmazing mccreery

repo: mccreery/better-hud


text:
🛑 ChatGenie Client API is down

In 613852f, ChatGenie Client API ($CHATGENIE_CLIENT_API) was down:

HTTP code: 0
Response time: 0 ms

Resolved: ChatGenie Client API is back up in 87351cf.


text:
🛑 ChatGenie Client API is down

In e7e02c6, ChatGenie Client API ($CHATGENIE_CLIENT_API) was down:

HTTP code: 0
Response time: 0 ms

Resolved: ChatGenie Client API is back up in 992a1c5.


text:
🛑 ChatGenie Client API is down

In 6c9065c, ChatGenie Client API ($CHATGENIE_CLIENT_API) was down:

HTTP code: 0
Response time: 0 ms

Resolved: ChatGenie Client API is back up in 77069b8.


text:
🛑 ChatGenie Client API is down

In 57e07d1, ChatGenie Client API ($CHATGENIE_CLIENT_API) was down:

HTTP code: 0
Response time: 0 ms

Resolved: ChatGenie Client API is back up in b544366.


text:
🛑 ChatGenie Client API is down

In 012a1e9, ChatGenie Client API ($CHATGENIE_CLIENT_API) was down:

HTTP code: 0
Response time: 0 ms

Resolved: ChatGenie Client API is back up in 4054172.


text:
🛑 ChatGenie Client API is down

In af05bfd, ChatGenie Client API ($CHATGENIE_CLIENT_API) was down:

HTTP code: 0
Response time: 0 ms

Resolved: ChatGenie Client API is back up in f3ca96a.


text:
🛑 ChatGenie MiniApp API is down

In 1c0602e, ChatGenie MiniApp API ($CHATGENIE_BOT_API) was down:

HTTP code: 404
Response time: 10224 ms

Resolved: ChatGenie MiniApp API is back up in 37c0bca.


text:
🛑 ChatGenie Client API is down

In 97d5a98, ChatGenie Client API ($CHATGENIE_CLIENT_API) was down:

HTTP code: 0
Response time: 0 ms

Resolved: ChatGenie Client API is back up in 1a0e67f.