text:
iOS Client Stuck on DM when switching from LTE to WiFi

Summary
Was in the middle of a DM with someone else, phone was on LTE. During the middle of the DM, phone connected to WiFi. While still in the DM I exited the Mattermost App (double clicked home button and closed the app). Later in the day I re-opened the MM app and was stuck in the previous DM and could not navigate out of it.
Environment Information

Device Name: iPhone 5s
OS Version: 10.3.3
Mattermost App Version: 1.2.0 (Build 49)
Mattermost Server Version:  4.2.0 (Build 4.2.0)

Steps to reproduce
Was not able to reproduce except for 1 time as described above.
Expected behavior
Should be able to exit DM and not be stuck.
Observed behavior
From in app error reporting, was emailed back to oppen issue ticket:
Current User Id: yfien7wkbireme9ioz1r7ffobh
Current Team Id: igf7n7mpxjbtxj1tumn8xeqauc
Server Version: 4.2.0 (Build 4.2.0)
App Version: 1.2.0 (Build 49)
App Platform: ios

Errors:
Date: Wed, 13 Sep 2017 01:32:55 GMT
Message: Network request failed
Stack trace:
onerror@file:///var/containers/Bundle/Application/13016A74-118C-4BDE-B9FB-2468230BB564/Mattermost.app/main.jsbundle:431:6987
value@file:///var/containers/Bundle/Application/13016A74-118C-4BDE-B9FB-2468230BB564/Mattermost.app/main.jsbundle:421:1505
value@file:///var/containers/Bundle/Application/13016A74-118C-4BDE-B9FB-2468230BB564/Mattermost.app/main.jsbundle:420:6394
value@file:///var/containers/Bundle/Application/13016A74-118C-4BDE-B9FB-2468230BB564/Mattermost.app/main.jsbundle:420:2974
value@file:///var/containers/Bundle/Application/13016A74-118C-4BDE-B9FB-2468230BB564/Mattermost.app/main.jsbundle:346:1285
value@file:///var/containers/Bundle/Application/13016A74-118C-4BDE-B9FB-2468230BB564/Mattermost.app/main.jsbundle:326:2883
file:///var/containers/Bundle/Application/13016A74-118C-4BDE-B9FB-2468230BB564/Mattermost.app/main.jsbundle:326:824
value@file:///var/containers/Bundle/Application/13016A74-118C-4BDE-B9FB-2468230BB564/Mattermost.app/main.jsbundle:326:2284
value@file:///var/containers/Bundle/Application/13016A74-118C-4BDE-B9FB-2468230BB564/Mattermost.app/main.jsbundle:326:796
value@[native code]

Date: Sat, 16 Sep 2017 07:26:25 GMT
Message: Custom emoji have been disabled by the system admin.
Stack trace:

Date: Sat, 16 Sep 2017 17:18:44 GMT
Message: Network request failed
Stack trace:
onerror@file:///var/containers/Bundle/Application/13016A74-118C-4BDE-B9FB-2468230BB564/Mattermost.app/main.jsbundle:431:6987
value@file:///var/containers/Bundle/Application/13016A74-118C-4BDE-B9FB-2468230BB564/Mattermost.app/main.jsbundle:421:1505
value@file:///var/containers/Bundle/Application/13016A74-118C-4BDE-B9FB-2468230BB564/Mattermost.app/main.jsbundle:420:6394
value@file:///var/containers/Bundle/Application/13016A74-118C-4BDE-B9FB-2468230BB564/Mattermost.app/main.jsbundle:420:2974
value@file:///var/containers/Bundle/Application/13016A74-118C-4BDE-B9FB-2468230BB564/Mattermost.app/main.jsbundle:346:1285
value@file:///var/containers/Bundle/Application/13016A74-118C-4BDE-B9FB-2468230BB564/Mattermost.app/main.jsbundle:326:2883
file:///var/containers/Bundle/Application/13016A74-118C-4BDE-B9FB-2468230BB564/Mattermost.app/main.jsbundle:326:824
value@file:///var/containers/Bundle/Application/13016A74-118C-4BDE-B9FB-2468230BB564/Mattermost.app/main.jsbundle:326:2284
value@file:///var/containers/Bundle/Application/13016A74-118C-4BDE-B9FB-2468230BB564/Mattermost.app/main.jsbundle:326:796
value@[native code]

Possible fixes
Was able to fix by disabling WiFi and restarting the app. I was no longer stuck in the DM. I then re-enabled WiFi and everything worked as expected.
Side note: Please feel free to ask me server related questions, I'm the server admin for a ~100+ user team.

looks to me that the phone was in a weird state as you said you're not able to repro this.
Anyway we are currently doing some refactor around the connecting state and channel switching to improve performance, perhaps that will prevent it from happening again.
As you can understand is really difficult to reproduce this without concrete steps and by the logs that you shared I can only see that the network was disconnected while making a request to the server, but if it happens to you again please don't hesitate to tell us.

This issue is fixed in the latest version so I'll close it off here for now.  Please feel free to open a new issue if the problem still exists after upgrading to the latest version.

source: gharchive/issue

authors: enahum ionbasa lindy65

repo: mattermost/mattermost-mobile


text:
[MM-18765] remove lifecycle methods from settings

Summary
MM-18765 Remove deprecated lifecycle methods from settings screens
Ticket Link
Fixes https://mattermost.atlassian.net/browse/MM-18765
Fixes https://github.com/mattermost/mattermost-server/issues/12354
Checklist

[ ] Added or updated unit tests (required for all new features)
[ ] Has UI changes
[ ] Includes text changes and localization file updates

Device Information
This PR was tested on: iPhone 11 (13.1) Simulator
Screenshots

@enahum i expected your comments, mi amigo. 😄
I have to admit, I'm not up on my reasoning between using getDerivedState vs not using. I know it's a static method which does not have access to class vars and methods, thus things have to refactor a bit.  Is that your thoughts too? Or do you have more?

@rahimrahman from the react docs

This method exists for rare use cases where the state depends on changes in props over time. For example, it might be handy for implementing a  component that compares its previous and next children to decide which of them to animate in and out.

So I think it should only be used when there is no other way or if applying the changes after the component updates is too late.

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

Not stale.  Sorry, I was on vacation and just got home today.

Hi @rahimrahman thanks for the heads up! Removed the stale label. Hope you had a nice vacation :)

Building app in separate branch.

Building app in separate branch.

Successfully building:
https://circleci.com/gh/mattermost/mattermost-mobile/9124
https://circleci.com/gh/mattermost/mattermost-mobile/9123

Successfully building:
https://circleci.com/gh/mattermost/mattermost-mobile/9124
https://circleci.com/gh/mattermost/mattermost-mobile/9123

Artifact links:
https://9124-70265724-gh.circle-artifacts.com/0/~/mattermost-mobile/Mattermost_Beta.apk
https://9123-70265724-gh.circle-artifacts.com/0/~/mattermost-mobile/Mattermost_Beta.ipa

Artifact links:
https://9124-70265724-gh.circle-artifacts.com/0/~/mattermost-mobile/Mattermost_Beta.apk
https://9123-70265724-gh.circle-artifacts.com/0/~/mattermost-mobile/Mattermost_Beta.ipa

Failed to delete ref. @mattermost/core-build-engineers have been notified. Error:
DELETE https://api.github.com/repos/mattermost/mattermost-mobile/git/refs/heads/build-pr-4596: 422 Reference does not exist []

source: gharchive/pull-request

authors: enahum jasonblais mattermod rahimrahman

license_type: permissive

license_source: github-api


text:
Prevent perpetual conflicts in generated manifest files

No ticket - this is more of an open discussion.
Ever since we included hashes in the manifest files, we get constant merge conflicts there.

We don't want to remove the source file from the repository - it would affect source analysis tools, "naked" go test, etc.
.gitignore does not appear to ignore them if they are already in the repo

We should all ignore further changes to these 2 files, and I only found a way to do it locally:
git update-index --assume-unchanged server/manifest.go
git update-index --assume-unchanged webapp/src/manifest.js

If anyone knows how to do it centrally on the repository itself, and effectively .gitignore without removing - please comment. @mickmister @jfrerich @crspeller

If the files are ignored, we're not uploading changes made to them, right? What happens when we commit a new change and then package and release that version? The packaged plugin won't have the updated manifest file, and jira info won't give us what we need in the wild?
Or when the CI builds and packages the plugin, the manifest files will get updated?
I guess I'm a little fuzzy about how the CI and packaging works. :)

Let my try to understand the general idea here. I see that it's usefull to get the current hash. But why are you checking it in and including it in manifest.go? Why not just get the hash on build time?

The ^^ git commands don't really seem todo much for me, my local changes still show up dirty.
I think it's ok to have the committed files with have empty strings or a fixed value, since the only real way to build is to make, and that updates the constants anyway. We can't just git rm the files and .gitignore them locally, and I have not found a better way yet. Will look some more.
I'd like to keep this PR open for discussion, until we find a solution. Having to re-checkout the files prior to each commit - which is what I started doing to keep them clean of changes/conflicts is effectively accomplishing the same, but laboriously.

@hanzei we are generating all values every time make runs. The issue is, is we remove these files from the repo and rely on running make to generate them, then the committed source tree will not be compile-able on its own. So we should have something committed. Then, how do you ignore all of your local changes to a committed file? .gitignore does not appear to apply in this case.

Sorry for beeing unrelenting here, but why is Hash part of manifest and not just a global variable set on complie time, like in the server?

I get the problem you are trying to fix with this PR. I'm just wondering if we can avoide the problem altogether.

You're right, that'd be a better way, I'll change to that, unless @cpoile has other considerations.

@cpoile @hanzei ready for re-review

@cpoile I believe there will always be the correct hash available when the plugin is running. When we compile for release, the hash will automatically be created and included.
The only time the hash would be wrong is when we're running tests, where we have not compiled the correct hash beforehand.

@hanzei I can't tell if you've approved or not. If you have, can you merge? Thanks!

@levb hah... ahh... We need to solve the merge conflict. I'll try to do that manually here.

I'm working on it

LOL, and I was about to jump in and fix the merge conflict! :)

We are really hard to get this merged soon :laughing:

:)

authors: cpoile hanzei levb mickmister

repo: mattermost/mattermost-plugin-jira


text:
MM-41724: skip on close tour tip

Summary
close will now skip the current tutorial. Previously close would glitch-hide then reshow the next tip. Clicking on the backdrop is unchanged and hides the tour tip without removing the dot (can reopen by clicking the dot.)

Ticket Link

https://mattermost.atlassian.net/browse/MM-41724

Checklist

Item
Y / N / NA [^1]

Telemetry updated?
Y

Gated by experimental feature flag?
N

Unit/E2E tests updated?
N

[^1]: Yes / No / Not Applicable.

@calebroseland More E2E test failures. Not sure if they are related or not.

authors: calebroseland crspeller

repo: mattermost/mattermost-plugin-playbooks


text:
WIP: [PLT-7364] Ability to Direct Message yourself

I need some help to test and find if this is good in terms of code.
@jasonblais can help me here?
Server PR: https://github.com/mattermost/mattermost-server/pull/7696
Webapp PR: https://github.com/mattermost/mattermost-webapp/pull/186
Summary
Ability to Direct Message yourself
Ticket Link
Jira: https://mattermost.atlassian.net/browse/PLT-7364
GitHub: https://github.com/mattermost/mattermost-server/issues/7618

tested, dont need this change here, closing...

repo: mattermost/mattermost-redux


text:
Update NOTICE.txt

(This is the automated NOTICE.txt update for April 2019)

Copyright year update

cherry picked 8d6411d5eabb6abbce97d3e3e22c20ccc607b845 into release 5.10 branch

authors: cpanato danmaas


text:
[MM-48088]:  Ability to migrate from Monthly to Cloud Pro Annual

Summary

Allow users to switch from a monthly plan to a yearly plan on the purchases modal. The user can input how many seats of the yearly plan they would like to purchase on the input field (has to a value greater than/equal to the current number of users in the workspace).
Ticket Link

https://mattermost.atlassian.net/browse/MM-48088
https://mattermost.atlassian.net/browse/MM-46547
Related Pull Requests

Has server changes (please link here)
Has mobile changes (please link here)

Screenshots

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.

authors: emmyni mattermod

repo: mattermost/mattermost-webapp


text:
E2E: Quick fix for flaky tests

Summary
Quick fix for flaky tests

added scroll to view in case the target element is out of viewing window
logout a user when needed since we're reusing cookies
added more assertion before the main assertion, instead of adding unnecessary arbitrary wait time
type exact text to match target item

Ticket Link
none
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] Updated E2E tests

@deanwhillier No worries and thanks!


text:
MM-17752 Fix channel_updated WS event not dispatching

Summary
The function was updated to be a redux action but we were still calling it normally.
Ticket Link
https://mattermost.atlassian.net/browse/MM-17752

I didn't realize there was already a ticket for this. I already submitted a PR for it earlier
https://github.com/mattermost/mattermost-webapp/pull/3478
Funny that our fixes are almost identical though

haha nice dejavu

Wow, it even looks like we both went through the same things with trying to test it

authors: ali-farooq0 hmhealey jwilander


text:
[MM-26533] signup: add redirect to verifaction link

Summary
This PR adds redirection link to the create user link query so that it can be added to the verification link for e-mail verification. Detailed explanation can be found in the ticket.
Ticket Link
https://mattermost.atlassian.net/browse/MM-26533

@esethna Anything specific you wanted me to review for this PR?

@jasonblais not specifically, just assigned you given it's in your community epic

authors: esethna isacikgoz jasonblais


text:
Add menu

Summary

Ticket Link

Related Pull Requests

Has server changes (please link here)
Has mobile changes (please link here)

Screenshots

Release Note

Hello @tweeak,
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.
Per the Mattermost Contribution Guide, we need to add you to the list of approved contributors for the Mattermost project.
Please help complete the Mattermost contribution license agreement?
Once you have signed the CLA, please comment with /check-cla and confirm that the CLA check is green.
This is a standard procedure for many open source projects.
Please let us know if you have any questions.
We are very happy to have you join our growing community! If you're not yet a member, please consider joining our Contributors community channel to meet other contributors and discuss new opportunities with the core team.

/check-cla

Thanks for the PR @tweeak! Can we get you to sign the CLA here for us before we review your changes?
http://www.mattermost.org/mattermost-contributor-agreement/

/check-cla

Removing cloud test server for maintenance reason. Please feel free to add it again if needed.

Ready for first QA/UX spin as well as i fix the test and my favourite type errors:)

Most of the complexities are stemming from the mobile view animations. In order for the submenu to push the parent to the left on mobile we need to keep track of both menu's open and active states. After I had a conversation with @hmhealey and @zefhemel it became clear that the mobile web view will be eventually deprecated. It doesn't make sense to keep the complexity of the component for the mobile view. So until the view is deprecated, we will have a simplified version of the mobile animations, the submenu will drag on top of the main, without pushing it aside.
I will close the PR and reopen with the simplified structure shortly. Everyone who would like to review, i will post the link here shortly.

new PR https://github.com/mattermost/mattermost-webapp/pull/10614

authors: devinbinnie mattermod nevyangelova stylianosrigas tweeak


text:
Does not display background  in Fullscreen mode (see jsbin example)

http://jsbin.com/vigatep/edit?html,output
Should it work in Fullscreen mode, if not, can you explain why not?

In case relevant: Using chomium version 50.0.2661.102 Ubuntu 16.04

Hello,
I cannot seem to replicate these results on my Mac using latest Chrome. By Fullscreen are you referring to http://output.jsbin.com/vigatep or native fullscreen?

Hi,
Can you run the code outside of jsbin and click the control bar Fullscreen icon. Can you still see the white square?

Just checked latest Firefox 46.0.1 for ubuntu 16.4 and same result - no white square displayed.

Does this only happen for you on fullscreen? Do you have any styles for video.js (not just this plugin) that makes video z-index higher when fullscreen?

Yes, only fails in videojs initiated Fullscreen mode. Works correctly in F11 key initiated fullscreen.
No extra styles, all code is shown in .HTML file and is identical to your original plugin code.

Can you run the .HTML file as is and confirm you can still see the white square in native (videojs initiated) Fullscreen mode when using Mac?

Sorry I understand the issue now, the white div is not overlaying over the top of the video because you are using the videos native 'fullscreen' button. The browser then makes the video fullscreen and overlays on top of everything - just like a normal video fullscreen.

Good, so, should your plugin show the white div or not in this Fullscreen mode - in your opinion?

Not, as this is for a background element of a page rather than to override the native fullscreen display of video.

OK.... So in what way is the videojs control bar () different to this background white square (), since the control bar is obviously still visible in Fullscreen mode?  Should they not be treated the same way within videojs? After all, they are both just Components within the videojs hierarchy.
Is this a logical argument or am I misunderstanding  something about the composition of videojs?

Could you raise this point with videojs guys, please.

authors: matthojo videojs-user

repo: matthojo/videojs-Background

license: mit

license_source: bigquery


text:
can not find iphone devices which I plugged into my mac

actually I want to use this command line tool to capture video of my iphone which I plugged into my mac when I do some manipulations on it, but after I execute videosnap in my mac: ./video -l, it only list my facetime HD camera, but no my iphone, but I can see my iphone when I open quicktime, any suggestions,thanks.

So the reason for this is, I still haven't updated videosnap to use the AVFoundation framework.  The command is still using the old QTKit libraries.
I had started an av-foundation branch a while ago, but many things have got in the way and I haven't had the time i'd like to devote to this. As soon as it's release I'll update this issue to notify you..

+1 for this request -- found videosnap as I was looking for an alternative to the broken and abandoned xrecord project... https://github.com/WPO-Foundation/xrecord/issues . Please let us know if you add ios recording!  I often capture ios videos for bug reports and I'd love to automate this!

Sorry I have had time to work on this project for a while, pull requests are always welcome!

https://stackoverflow.com/a/32703158
It seem to work somehow with this patch:
#import <CoreMediaIO/CMIOHardware.h>
int main(int argc, const char * argv[]) {
    @autoreleasepool {
        CMIOObjectPropertyAddress prop = {
            kCMIOHardwarePropertyAllowScreenCaptureDevices,
            kCMIOObjectPropertyScopeGlobal,
            kCMIOObjectPropertyElementMaster
        };
        UInt32 allow = 1;
        CMIOObjectSetPropertyData(kCMIOObjectSystemObject, &prop, 0, NULL, sizeof(allow), &allow);
}

Thanks @muuuh for this suggestion!
I've just released v0.0.5, you should now be able to capture from any attached iOS device!
Here's an example capture from my iPhone X at -p High quality

Hi, the videosnap -l command does not list my connected iPhone i am using the latest version.
Attaching the logs below if it helps, do let me know if i am doing something wrong of if there are some permissions to be enabled/disabled either on the device or the mac.
Punits-MacBook-Pro:bin punitgupta$ videosnap -l
Found 1 available video devices:
* FaceTime HD Camera

(base) Punits-MacBook-Pro:videosnap-main punitgupta$ videosnap -h
VideoSnap (0.0.6)

Record video and audio from a capture device

You can specify which device to capture from, the duration, encoding and a delay
period (before capturing starts). You can also disable audio recording.
By default videosnap will capture both video and audio from the default capture
device at 30fps, with a Medium quality preset and a short (0.5s) warm-up delay.

If no duration is specified, videosnap will record until you cancel with [Ctrl+c]
You can also use videosnap to list attached capture devices by name.

  usage: videosnap [options] [file ...]
example: videosnap -t 5.75 -d 'Built-in iSight' -p 'High' my_movie.mov

  -l          List attached capture devices
  -w x.xx     Set delay before capturing starts (in seconds, default 0.5s)
  -t x.xx     Set duration of video (in seconds)
  -d device   Set the capture device (by name, use -l to list attached devices)
  --no-audio  Don't capture audio
  -v          Turn ON verbose mode (OFF by default)
  -h          Show help
  -p          Set the encoding preset (Medium by default)
                High
                Medium (default)
                Low
                640x480
                1280x720

As you can see the version is 0.0.6.
The Version of Mac OS i am trying this on is Big Sur 11.2.2.
Something I've noticed is that if I launch Quicktime Player, select New Movie Recording and select my device as a Camera source, then my device is listed when i run the " videosnap -l " command.

I've replicated the issue here, same problem; and if I close Quicktime Player, the device is no longer listed.
I've re-opened this issue for now.
When I have some time available I'll try to investigate further.

Hi! 🙂   Sadly, I encountered this issue too.
Connected iOS devices are not listed using videosnap -l (while QuickTime is running), although I can see them listed in QuickTime video sources.
MacBook Air (M1, 2020)

Hey @matthutchinson, I know you are probably quite busy lately as we all are, but this is a huge opportunity to fix a problem potentionaly affecting hundreds of M1 chip Mac users.
You can really make a difference by enabling iOS device screen recording more efficient for many of the Mobile Toolkit users as well as all of those using your Videosnap tool on latest Macbooks.
Please take a quick look at this issue, maybe there is a simple hotfix just waiting for your action.
Thank you for your time and all your priceless contributions to our community.

I'll try to investigate this weekend, or early next week.

Still having some intermittent issues with this.. looking into it further

Hi @matthutchinson so there are still some issues on M1 after all. I am not able to capture any recording. See the verbose output below:
(caught signal: [2])
(stopping recording)
(finished writing to movie file)
(stopping capture session)

Failed to capture any video
(reason: Cannot Record)

Are there any steps we can take to fix this, or everything we can do is to hope that Apple will resolve this somehow?
Also i think that this issue should be reopened, since it is not resolved for now.

So the issue title/description here is based around

can not find iphone devices which I plugged into my Mac

That should now be resolved on M1 and Intel Macs.  Capturing from a connected iPhone on an M1 Mac is currently broken, so we need another issue for that.  Capturing from a connected webcam should work tho.
Can you pls create another issue and describe what's happening ... i.e. what command you're running and the output with -v flag on.

Alright, im on it. 🤝

authors: IntergalacticPenguin brooksc guptapunit krisdyZJU matthutchinson muuuh vrbajiva

repo: matthutchinson/videosnap


text:
Updates to README.md

Updates to README.md to include previously undocumented availability of ts-repeat-start and ts-repeat-end directives.

Thank you!

:+1:

authors: aborchew mattiash

repo: mattiash/angular-tablesort


text:
Add flag for request body

Feature: -b http_body where http_body is the body of the requests being sent.
Relates to #3
If -m POST|PATCH|PUT is set, then we need someway of specifying the http body.

I put up a PR to implement this, https://github.com/mattjegan/wtfuzz/pull/9

authors: dbradf mattjegan

repo: mattjegan/wtfuzz

license: MIT


text:
Group month view events does not allow drag and drop

I configure the control to  group events like in the demo "Group month view events" and i  enabled the draggable property to  a event, when i try to drag and drop the event the  on-event-times-changed is not fired and the event is not drop.

Ah that's because I omitted a few things from the custom template. You will need to adapt the full template from here: https://github.com/mattlewis92/angular-bootstrap-calendar/blob/master/src/templates/calendarMonthCell.html

Thank you very  much


text:
Unhandled rejection TypeError

[22:51:04] [-log:] em-cli is doing REALLY hard to initialize your repo ...
Unhandled rejection TypeError: undefined is not a function
at C:\Users\she\AppData\Roaming\npm\node_modules\ember-rocks\src\commands\create.js:166:7
at tryCatcher (C:\Users\she\AppData\Roaming\npm\node_modules\ember-rocks\node_modules\bluebird\js\main\util.js:2
4:31)
at Promise._settlePromiseFromHandler (C:\Users\she\AppData\Roaming\npm\node_modules\ember-rocks\node_modules\blu
ebird\js\main\promise.js:466:31)
at Promise._settlePromiseAt (C:\Users\she\AppData\Roaming\npm\node_modules\ember-rocks\node_modules\bluebird\js
main\promise.js:545:18)
at Promise._settlePromises (C:\Users\she\AppData\Roaming\npm\node_modules\ember-rocks\node_modules\bluebird\js\m
ain\promise.js:661:14)
at Async._drainQueue (C:\Users\she\AppData\Roaming\npm\node_modules\ember-rocks\node_modules\bluebird\js\main\as
ync.js:79:16)
at Async._drainQueues (C:\Users\she\AppData\Roaming\npm\node_modules\ember-rocks\node_modules\bluebird\js\main\a
sync.js:89:10)
at Async.drainQueues (C:\Users\she\AppData\Roaming\npm\node_modules\ember-rocks\node_modules\bluebird\js\main\as
ync.js:14:14)
at process._tickCallback (node.js:419:13)

I will look into it. Thanks

Indeed! it is a problem. I will roll in a fix soon.

@mattma thanks,and how can I compile my handlebars templates and concat into a templates.js without wrapping amd by using gulp-htmlbars?

In your generated ember-rocks project root folder, open gulpfile.js
Search for task buildhbs
gulp.task('buildhbs', function () {
  return gulp.src(clientFolder + '/app/templates/**/*.hbs')
    .pipe($.htmlbars({
      isHTMLBars:       true,
      templateCompiler: require('./client/assets/vendors/ember/ember-template-compiler')
    }))
    .pipe($.wrapAmd({
      deps:         ['exports'],          // dependency array
      params:       ['__exports__'],        // params for callback
      moduleRoot:   'client/app/',
      modulePrefix: 'rocks/'
    }))
    .pipe($.replace(
      /return export default/, 'return __exports__["default"] ='
    ))
    .pipe($.concat('templates.js'))
    .pipe(gulp.dest(clientFolder + '/assets/build/'));
});

So in here gulp-wrap-amd module is actually wrapped output code into the amd format. Feel free to replace or remove to whatever you like.

@mattma  thanks.
In the past,I compiled by using gulp-ember-template-compiler and it works well with ember<1.9and handlebars<2.0.Now,I compile by using gulp-htmlbars,but it doesn't work with `ember#1.11.0.why?
//templates.js by using gulp-ember-template-compiler
Ember.TEMPLATES['application'] = Ember.Handlebars.template({"compiler":[6,">= 2.0.0-beta.1"],"main":function(depth0,helpers,partials,data) {
  var stack1, buffer = '';//...
Ember.TEMPLATES['main'] = Ember.Handlebars.template//...
Ember.TEMPLATES['main/index'] = Ember.Handlebars.template//...
//templates.js by using gulp-htmlbars as your gulpfile.js
define("application",["exports"],function(__exports__){
return __exports__["default"] = Ember.HTMLBars.template((function() {
  return {
    isHTMLBars: true,
    blockParams: 0,
    cachedFragment: null,
    hasRendered: false,//...
define("main",["exports"],function(__exports__)//...
define("main/index",["exports"],function(__exports__)//...

Have you read this post? I think it should answer your question.
If you look at the code that you have attached in your questions, you should see the output of Ember.Handlebars.template, now with Ember@1.10.0, you could drop the handlebars.js, and use htmlbars via the new syntax Ember.HTMLBars.template

@mattma thanks.I have resolved the problem.and  published a plugin named gulp-ember-template which could compile the handlebars for ember.js>1.11.0.

@surpmillet Finally get some time today to resolve this issue. Going to submit the patch soon.
I did not go in-depth on your plugin. First, it is a great initiative to issue a new plugin. Here is a few things that you need to consider,

gulp eco system, one plugin does one thing, does really good. Not used to solve your own particular problem.

gulp eco system, if someone else already have a solution to solve something, use that one.

gulp-htmlbars is what I wrote which used in ember-rocks has 100% code coverage and full unit tests. Currently, by default it works for handlebars file out of box. I am sure that we could tweak it to suite your specific use case without authoring another plugin.

@surpmillet Could you take the latest 0.9.3 version of Ember Rocks, verify the bug has been fixed? If it does, close it.
Thanks.

@surpmillet Just gonna close it since I had not heard anything from you. Well, if it is still an issue, please, reopen it. Thanks.

@mattma OK,thanks for your help

authors: mattma surpmillet

repo: mattma/ember-rocks


text:
Split vm code into three additional files

No code change on on split commit
Added CanAddr check for Addr
Major update to env_test, 99% coverage of env
Updated interrupt tests to remove sleep wait

Cool!

repo: mattn/anko


text:
WebSockets error: TypeError: null is not an object (evaluating 'res.status')

WebSockets always throw errors when attempting to connect:
129 |                 message: (ws, msg) => router.handleWebSocket(ws).message(msg),
130 |             },
131 |             async fetch(req, server) {
132 |                 let ctx = new Context(req, server);
133 |                 const res = await router.handle(ctx);
134 |                 return res.status === 404 ? notFoundHandler(ctx) : res;
                             ^
TypeError: null is not an object (evaluating 'res.status')
      at node_modules/baojs/dist/bao.js:134:24

All I've done here is setup a simple websocket connection:
app.ws("/ws/room", {
  close(ws) {
  },
  message(ws, msg) {
  },
  open(ws) {
  },
});

It looks like the route handler doesn't create any Response object, but the fetch() method expects one to always be present.
Bao version: 0.2.1
Bun verions: 1.0.18

This pull request #30 will fix that issue.


text:
License for derivatives

Hello, @mauricio
First, thank you for the great work! I'm using in production for some time :)
I have ported some of the code from this repo to my new project on Kotlin1.1, repo is here: https://github.com/KotlinPorts/pooled-client/
I'm stupid when it comes to legal stuff, what do I have to specify in license in files that are derivatives?
/**
 * This file contents derive from from https://github.com/mauricio/postgresql-async
 */

I don't think you do, the project is licensed under an Apache license, so the code is free to do whatever.

Ok, thank you, I'll just leave notes in README's and some of corresponding files.

authors: ivanpopelyshev mauricio

repo: mauricio/postgresql-async


text:
TimeAndDateSpec should test LocalTime printing/encoding

Prepared statement should be used so that the encoder is actually tested.
This should demonstrate issue #142.

You can actually see the exception in the Travis CI build log for the failed build.


text:
Xcode not linking with  LANProperties.o

Hi,
I am trying to incorporate MMLANSCAN library into my existing project, but it shows the following error, when I try to add the MMLANSCAN folder
Error
Undefined symbols for architecture arm64:
"_CNCopySupportedInterfaces", referenced from:
+[LANProperties fetchSSIDInfo] in LANProperties.o
"_CNCopyCurrentNetworkInfo", referenced from:
+[LANProperties fetchSSIDInfo] in LANProperties.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Could you please help me to get out of this :-(

sorry for the wrong window but anyways i solved the issue
https://stackoverflow.com/questions/21792893/ios-wemo-sdk-architecture-issues

repo: mavris/MMLanScan


text:
upload with default "picotool" method (actually "rp2040load") hangs without delay between "load" and "reboot"

My system

board: Adafruit Feather RFM95 (but I suspect this isn't important)
platformio version: 6.1.15 (what pip install gives me)
earlephilhower version: 3.8.0 (what I get from maxgerhardt/platform-raspberrypi.git)
OS: Ubuntu 24.04 (Noble), Linux 6.8.0-31 (not sure this matters either)

The issue
I originally opened the issue at https://github.com/earlephilhower/arduino-pico/issues/2153 but I think it now belongs here, if not even further down (e.g. in rp2040load). You can chase that link for all kinds of gory details, but to make a long story short, this sequence:

reset / power-on the rp2040
load firmware with pio run -t upload
load firmware AGAIN (modified or not) with pio run -t upload
... claims success, but leads to a hanging USB port, a zombie USB filesystem, and a board that's stuck somewhere. Sometimes after a minute or two the board will recover, sometimes not. Attempting to reload firmware again fails, as the serial port can't be found and the USB filesystem can't be used.

Analysis
This loading method seems to work reliably:

stty 1200 < /dev/$PORT && sleep 5 && cp .pio/build/$PROJECT/firmware.uf2 /media/$USER/RPI-RP2

These wedge in the same way as pio run -t upload does:

stty 1200 < /dev/$PORT && sleep 2 && picotool load -v .pio/build/$PROJECT/firmware.elf && picotool reboot
stty 1200 < /dev/$PORT && sleep 2 && ~/.platformio/packages/tool-rp2040tools/rp2040load -v -D .pio/build/trivial_test/firmware.elf

In the picotool one, adding a sleep 2 between load and reboot seems to make it reliable?

stty 1200 < /dev/$PORT && sleep 2 && picotool load -v .pio/build/$PROJECT/firmware.elf && sleep 2 && picotool reboot

wut
This is probably a bug in... the bootloader ?? the linux USB stack that somehow gets tweaked by the bootloader ?? picotool and/or rp2040load ?? maybe even the earlephilhower core ?? which is all perhaps tweaked by the timing of the way this platformio integration does things ???

I have learned: rp2040load is just a little wrapper that runs picotool load and picotool reboot, so no wonder it behaves similarly. So the real story here is that picotool load / picotool reboot rapid fire causes firmware to wedge and the board to just sit there and USB to hang.
This COULD be worked around at the platformio integration level with a sleep or something, but... since it seems like nobody else is suffering from this??... maybe better try to address it at the root???...

Reproduced this with the Pico SDK alone. Will complain against them, closing out here! Sorry for the bother!

repo: maxgerhardt/platform-raspberrypi


text:
Add FontAwsome

Adding FontAwsome as icon library would be great for more variety.

Are you referring to https://fontawesome.com/download ?

Okay, I added it

You'll be able to use it in the next release.

I've added this in release 1.7.2 so I'm going to close this issue.


text:
"first" mode on "find" causes exception if no elements found

Describe the bug
When using the find method on the Soup class, and there are no results found, an exception is thrown if you used mode="first".
To Reproduce
Code to reproduce the behaviour:
from gazpacho import Soup
s = Soup("
test
")
s.find("a", mode="first")

Expected behavior
It should return None.
Environment:

OS: Linux - Ubuntu
Version: 19.10

Additional context
None

Fixed in 0.9.2! Thanks for the Issue!! 🤙

authors: maxhumber psyonara

repo: maxhumber/gazpacho


text:
Remove debug log prints

Data table is a little too chatty in debug mode.

I'd prefer that to be configurable, tables can be slow to build

Ah, I guess I must have pretty simplistic tables. I can adjust the PR to place the print(s) behind a verbose flag

PR updated!

Changed it to default on and global variable (rather than constructor param). Can be turned off via entry point:
void main() {
  runApp(MyApp());
  dataTableShowLogs = false;
}

Awesome, thanks!

authors: maxim-saplin saltedpotatos


text:
Moving To Another Project Make library Not working unless restart the app !!

testLanguage.zip
Hi Guys ,
First of all your library was working with me Perfect before
but now it's not that why i guess this happen with Xcode 7 release  ? ,
ur project work Correctly but when Moving To Another Project Make library Not working unless Restart the app .
this my Project you can Try it
https://www.mediafire.com/?v6le4xcm2qc2k11
PS : I see the isuee #2  and i added the required localization files but still problem exist .
Thanks

Same is with me.

@maximbilan  can you please take a look
Thanks

it's work finally !
Solution is Make  PCH Header on the new project and import inside it  the Define File
import "Defines.h"

This demo is not working in Swift file. In LocationManager.m file, below code isn't executing

(void)saveLanguageByIndex:(NSInteger)index
{
if (index >= 0 && index < ELanguageCount)
{
NSString *code = LanguageCodes[index];
[[NSUserDefaults standardUserDefaults] setObject:code forKey:LanguageSaveKey];
[[NSUserDefaults standardUserDefaults] synchronize];
#ifdef USE_ON_FLY_LOCALIZATION
[NSBundle setLanguage:code]; //This line isn't executing in Swift.
#endif
}
}

Please help me to resolve this issue.

@hardik06  u need to create Prefix Header file and set the path in Project Setting

@AhmedShammala Thank you so much. It's working now.


text:
Removing Univalence Dependency in Curry Equivalence Proof

@stschaef and I ran into some univalence propagation issues in Profunctor because of assuming univalence in earlier proofs.
Repackaged some proofs to explicitly construct the equivalence, and also got a general proof of equivalences composing that didn't rely on NatIsotoPath or vice versa. Removes the univalence requirement, allowing Profunctor to simply be defined using curryF

Do we get a stronger property with univalence? Like that these representability notions are Path-equal?

I'm not sure, I don't think I have a good enough grasps on paths to answer that. However, if we do need that stronger notion, I think we can add Univalence as an additional assumption detached from these proofs and get that result in a separated module?

That's true. The main downside is that it might be easier to prove the version where we additionally assume univalence.
But the upstream cubical lib works with univalence as a separate assumption so for this proof it makes sense to follow their style

authors: GenericMonkey maxsnew

repo: maxsnew/multi-poly-cats


text:
Add GitHub Actions

I recently announced ha-blueprint:

With formatting (black + isort for python, prettier for js)

It’ll go ahead and pull it, format it, and amend the changes to the last commit.

With lint

JS: Run ESLint to catch syntax errors
Python: It runs Hassfest (to catch invalid integrations), HACS (to catch invalid HACS integrations), and flake8 (to catch invalid python).

https://community.home-assistant.io/t/made-a-custom-integration-or-card-ive-created-an-all-in-one-github-action-for-you/235041
This makes it so it auto-checks for HACS, and ESLint so you won't have to worry about it being invalid.

Hey thanks for this PR but I'm not sure how this is going to help here.
Card is written in TS so ESLint is not needed - syntax errors are caught at the build time.
Is there anything else what your action can catch in case of the lovelace cards?

Forgot to change the text. It can run prettier too.

Maybe it makes more sense for integrations but here it is little bit useless. So sorry but I think I won't use it - it would be just waste of computation power

Well, it doesn't cost you anything, and for public repositories GitHub Actions has an unlimited quota.

But what is the point of doing it? Just because it is free for you it doesn't mean it doesn't cost money someone. GH has to pay for computation power (electricity, machines, service etc). If everyone starts using random actions, without any reason, eventually GH will start running out of the quota and they may decide to cut the free Actions for public repos.
Please do not send such PRs to random repos, just because they are related to HA. I believe that your Action can be helpful for some of them (like integrations) but for plugins/cards written in TS it doesn't give any value.

I get your point.

Just curious, is there anything making you particularly upset? Your tone of voice indicates that you're angry.

Maybe I was too harsh saying that it doesn't give any value. Prettier can be helpful actually but I wasn't (am not) aware how does it work exactly here.
So if someone sends PR, with badly formatted code, will it automatically fix it and send update?

Well, once you merge it, it amends the last commit. There's plenty of other GitHub Apps that have the ability to create a PR on the PR, and this GitHub Action doesn't do it.

Ok thanks for the info. Anyway I think this project is too small - TBH I don't expect many PRs coming so I don't mind fixing formatting or asking someone to do it.

Got it. Thanks for letting me know.

authors: KTibow maxwroc

repo: maxwroc/github-flexi-card


text:
fusibile error

fusibile was successfully made, but the following error occurred when running test.py.
Run depth map fusion & filter ./fusibile -input_folder ./output/dtu1115/_1536x1152/scan1/points_mvsnet/ -p_folder ./output/dtu1115/_1536x1152/scan1/points_mvsnet/cams/ -images_folder ./output/dtu1115/_1536x1152/scan1/points_mvsnet/images/ --depth_min=0.001 --depth_max=100000 --normal_thresh=360 --disp_thresh=0.1 --num_consistent=2.0 -color_processing Segmentation fault (core dumped)

Tips: You should revise CUDA_NVCC_FLAGS in CMakeLists.txt according the gpu device you used. We set -gencode arch=compute_70,code=sm_70 instead of -gencode arch=compute_60,code=sm_60 with V100 GPUs. For other GPU types, you can follow
1080Ti
-gencode arch=compute_60,code=sm_60
2080Ti
-gencode arch=compute_75,code=sm_75
3090Ti
-gencode arch=compute_86,code=sm_86
V100
-gencode arch=compute_70,code=sm_70
More compile relations could be found in here

Yeah, I have already modified the CUDA_NVCC_FLAGS. My GPU is 3090, so I changed it to -gencode arch=compute_86,code=sm_86, but the error still occurs, and I don't know how to resolve it.

I'm using a 2080Ti and configured it according to this requirement,
but it appears: ”sh: 1: ./fusibile: Permission denied“

Hello, as per your suggestion, I tried, but still get an error
sh: 1: ./fusibile: Permission denied

Hello, thank you, follow your advice, I tried it, this one is useful.
--fusibile_exe_path ./fusibile/fusibile

authors: JX-Github-web JadeWeigh ewrfcas

repo: maybeLx/MVSFormerPlusPlus


text:
[#37] Explicitly handle transactions in the runner

Closes #37 .

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 97.37%. Comparing base (0c55577) to head (a971f55).
Report is 49 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #38      +/-   ##
==========================================
+ Coverage   96.89%   97.37%   +0.48%
==========================================
  Files           8       24      +16
  Lines         193      991     +798
==========================================
+ Hits          187      965     +778
- Misses          6       26      +20

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

authors: codecov-commenter swrichards

repo: maykinmedia/django-setup-configuration


text:
Inconsistent behavior with possibly corrupt data file

I have a data file which is possibly corrupt and is causing issues when certain commands are used.
In the main calling application, the application throws:-
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> LiteDB.LiteException: Timeout. Database is locked for more than
00:01:00.
  at LiteDB.LockService.Read () [0x0006b] in <0e7fe05a592849968cfe23dfc2a26585>:0
  at LiteDB.LiteEngine+<Find>d__9.MoveNext () [0x000a7] in <0e7fe05a592849968cfe23dfc2a26585>:0
  at LiteDB.LiteEngine+<Find>d__13.MoveNext () [0x001e4] in <0e7fe05a592849968cfe23dfc2a26585>:0
  at LiteDB.LiteCollection`1+<Find>d__17[T].MoveNext () [0x000ba] in <0e7fe05a592849968cfe23dfc2a26585>:0
  at System.Linq.Enumerable.SingleOrDefault[TSource] (System.Collections.Generic.IEnumerable`1[T] source) [0x00041] in <e7730c8b584547118b212a24053f001c>:0
  at LiteDB.LiteCollection`1[T].FindById (LiteDB.BsonValue id) [0x00033] in <0e7fe05a592849968cfe23dfc2a26585>:0

When I try to open the file in LiteDB.Shell, I can only see the data (which is all there) if I don't do a show collections first:-
# mono LiteDB.Shell.exe
Welcome to LiteDB Shell

Getting started with `help`, `help full` or `help <command>`

> open /opt/data/data.litedb
> show collections
objects
> db.objects.find
Your datafile did not terminate properly during the writing process. Reopen the file
> close
> open /opt/data/data.litedb
> show collections
objects
> db.objects.find
Your datafile did not terminate properly during the writing process. Reopen the file
> close
> open /opt/data/neon/data.litedb
> db.objects.find
[1]: {"_id": [ALL DATA HERE]

I tried opening the file using LiteDbExplorer, and it throws:-
LiteDB.LiteException: Your datafile did not terminate properly during the writing process. Reopen the file
   at LiteDB.LockService.DetectDatabaseChanges()
   at LiteDB.LockService.Read()
   at LiteDB.LiteEngine.<Find>d__9.MoveNext()
   at LiteDB.LiteEngine.<Find>d__13.MoveNext()
   at LiteDB.LiteCollection`1.<Find>d__17.MoveNext()

Is there a way to ensure the correct exception is thrown? e.g. "Your datafile did not terminate properly during the writing process"
I am unable to have my application take appropriate corrective action unless I know what the problem is.
Also, is there a way to detect what sort of corruption has happened? This seems to be related to an index or header, as the data is all there and accessible.
And, if this corruption is detectable, is it repairable?
I am opening this particular file with the default connection string (i.e. only supplying file path)
I am using LiteDB 4.1.4 on .NET 4.6.2. Using Mono on Linux and native on Windows.

@omfgicbf Just a quick question, have you tried reading/upgrading the (possibly corrupted) database using v5?

@JensSchadron I have tried v5 on at least one of the (different types of) corrupted databases I have, and it does seem to work. However, your question would probably be more appropriate on #1048 or #851, as the point I'm making above is about being able to accurately identify when corruption occurs, not how to recover from it afterwards (although that is also a core issue)

Further to this, I've used the LiteEngine.Recovery method (as at commit f392bbb) and this seems to recover the file, however, there is are no reported errors. All I get is:-
Document recovery count: 904

It seems whatever the type of corruption, it is trivial and recoverable, however, at this point not detectable, which is a still a problem.
This means instead of running a "verify" method when I first open my database, I have to either wait for an exception somewhere in the data access code, or assume that the database is corrupted and recover (and then have to rename/move) every time I start my program.
There seems to be some confusion around these errors, as they are similar to ones that were reportedly caused by concurrency issues in v3, and in some cases before a fix introduced in v4.1.2.
I've found #641, #879, #992, #994, #1115, #1135, #1193 and #1194 where this issue is raised, on versions on or after v4.1.2, which means either the concurrency issue is not resolved, or more likely, this is not the cause in these cases and there is a real issue with database consistency after compromised writes.

I've tracked down at least where the issue is occurring, though not why.
In my case, I have a corrupt file that has a collection page with an index (_id) that has an invalid FreeIndexPageID value; it is one more than the last page in the file (in this case FreeIndexPageID is 153 where the last page in the file is 152).
As this page ID is more than the number of pages, FileDiskService.ReadPage reads past the end of the file and returns an empty array.
BasePage.ReadPage returns an EmptyPage because the pageType byte is zero, and PageService.GetPage tries to cast this to an IndexPage (which is what it's expecting) and fails with the InvalidCastException.
What's not clear yet is why journaling is not working properly and why an interrupted write (during an Insert) is causing this invalid FreeIndexPageId value.

Hi @omfgicbf, this error was the reason to me rewrite all v5 storage engine, using now WAL. When I release v4, I tried to fix this same problem in v3... and no one can reproduce to me this error. I tried lots to fix and I believe can be concurrency, big operations (with disk persist during execution) or cache managment. And I review all this sources but don't where is the problem. I will talk with @JensSchadron about some ideas that I have to fix this in v4...

Hi @mbdavid, thanks for the update.
In my case at least, I don't believe this is a concurrency issue. I have a single thread responsible for pulling items from a BlockingCollection and writing them to the database.
I've been trying to work out how the order of writing to disk might cause the issue I've seen (a collection page with indexes that point to incorrect page id's), perhaps this might be a clue to where the problem is? (i.e. updating the collection page first but a failure occurs before the other pages are moved?). I'm still trying to work out how all that works.
What I have noticed is the following in TransactionService.PersistDirtyPages (assuming journalling is enabled):-

write the journal
1a) write all pages at end of file
1b) flush
set header recovery flag true
write dirty pages (header page first)
set header recovery flag false, write the header page
flush

Given that flushing the cache does not guarantee the order in which blocks are written to the underlying device, a power-fail during these steps:-

during (1) no issue(?); extra pages exist at the end of the file, but the last page marker has not been updated(?).
during (2) as with (1); the header is not written until after (3) starts.
during (3) an issue; we've overwritten some pages, but despite the fact we wrote the header page first, we don't know for sure it went to disk.
during (4) an issue; because we haven't flushed yet, even if this write succeeds, we don't know all the blocks in (3) went to disk.
after (5) we're all good... flush confirmed that blocks went to disk.

If we added Flush calls in between 2, 3 and 4, this might help preserve consistency, as a call to FileStream.Flush(true) would block until the data had been confirmed written to disk by the OS (NOTE: the normal caveats about device-based cache still apply)

I asked about this on twitter because I've tried many single file NoSql DB's in the past, and EVERY single one of them claiming to be thread safe, suffered from corruption problems.
I too had them all on on BlockingCollections in a producer/consumer pattern to ensure threading issues weren't a problem, but no luck, they still get corrupt.
I was hoping that LiteDB would be better, and hopefully it may, but having to wonder if your DB is corrupt is not a prescription for a solid product for customers.
I wish you guys good luck!

Went over the entire issue list and in addition to the issues that @omfgicbf already listed, I've also found #801 #1000 #1083 and if we include older versions as well then these issues might be related as well #272 #449 #464 #470 #639

I've been doing some troubleshooting around what causes the DB to get into this inconsistent state. I found something odd, which I hope will be helpful.
In Xamarin if I spin up multiple threads and have them all access the DB at the same time (reads & writes) then corruption is almost immediate (InvalidCastExceptions). However, the exact same code in a .NET Core console app and the database remains consistent, although it runs really slow. Sample here.

@dmariogatto I have thousands of mobile devices running my application under Xamarin, but only Android is affected according to my console and not iOS

authors: JensSchadron dmariogatto johannes-fetz mbdavid omfgicbf samcov

repo: mbdavid/LiteDB


text:
Please rename the repository and remove binary files

To be able to package pyocd for distributions, the tarball produced by python3 setup.py sdist needs significant mangling to remove the binary files which have no source and to rename the entire directory to lowercase only.
Please can the pyOCD directory be renamed to lowercase?
Please can the binaries and elf files not be included in the release?

Hi @codehelp. Thanks for raising these issues. And my apologies in advance, I know nearly nothing about Debian packages.
Why can't binaries be included in the package? The binaries are required for the automated functional tests (test/ directory). How do other Python packages that have binaries such as executable or shared libraries within the Python package deal with this?
Renaming the main pyOCD package to all lowercase is already included for discussion in the list of things to possibly fix for cleaning up the API naming conventions. But it would be a big breaking change, and no decision has been made yet. (I'm in favour of it. Good to hear this feedback from the community.)
But I'm curious why an all lowercase name is required when packaging? And how that affects users since code would not be compatible with pyOCD installed via pip, etc.
cc @c1728p9 @sg-

The most important problem, for me, with the binaries in the git source tree is simply this: Why should I trust these binaries? Just because they exist in a git source tree tells me nothing about how safe it is to run those binaries on my system. I have no reason to trust random binaries on github - indeed I have every reason to not trust them simply because it is github - the wild west of source code.
All the files in a binary Debian package in the main archive must be completely built solely from the source code of that package (without going off to the internet to get mystery blobs). Currently, the presence of the binaries means that I have to build packages just for Linaro and I can't use the normal Debian infrastructure to build and distribute the package. The current pyocd package could go into "non-free" in Debian but that isn't a good place to be, packages are not automatically built on upload, some users don't enable it and it doesn't reflect the actual licensing of the pyocd source code.
I'm not aware of other Python packages which have prebuilt binaries within the source code. Normally, a python package which is a binding for a shared library will simply depend on the shared library although pypi is unable to cope with such things. The shared library would already exist, built from it's source code, as a separate source package.
Alternatively, the source package providing the shared library can also provide a python binding, as Guest FS does: https://tracker.debian.org/pkg/libguestfs - python3-guestfs is built from the same source code that builds the libguestfs0 shared library. (Note that python packages which depend on the python bindings from GuestFS also cannot use pypi because pypi has no understanding of non-pypi dependencies. Not all python code can live in pypi.)
Equally, it's not good for contributors to pyocd to come across mysterious binaries in a git source tree. Git isn't efficient at handling binaries, contributors know nothing about the providence of those binaries and there are risks to running binaries for which the source code is not available. pyocd isn't just about developer boxes and developer machines. People are trying to use pyocd in a production environment - admins get very upset with binary files of unknown providence causing an unknowable risk. Does pyocd even check the integrity of the binaries before glibly using them? Just because they exist in a particular filesystem path is no guide to the security or integrity of these mysterious blobs. There is a security hole worthy of a CVE right there, ready and waiting.
There are other ways of running automated tests - as it is the pyocd packages will not run the current tests anyway. I simply cannot trust the binaries in the git tree. A better solution would be to provide these in a Docker with clear traceability of how the original files were built (by providing logs of the build of the binaries, e.g. inside another docker) so that the community can have some assurance of what is intended to be in those binaries. Publish sha256sums of the built files, show that those checksums are checked when the binaries are installed into their own docker and again when the binaries are used by pyocd - everytime they are used by pyocd.
If pyocd wants to retain these binaries, I would suggest:

Build the binaries in a docker image and publish the full build logs as well as the docker image, for reproducibility.
During the build, create sha256sum (MD5sum optionally too) checksums of all binaries which are to be used later. Publish those checksums alongside the docker image.
Cryptographically sign the checksum files (just as distributions sign their checksum files on the mirrors). Publish the fingerprint of the key so that the community can verify the signatures themselves. Otherwise, the checksum files are no more trustworthy than the existing binaries.
Build a second docker image which pulls in these binaries and checks the checksums and verifies the cryptographic signature on the checksum files. This docker is then used for the automated tests and contains at least a README, preferably the complete build log, with links back to the first docker image and instructions on how to rebuild that first docker and how to verify the binaries.
Every time pyocd accesses these binary files, it must verify the files against those checksums and fail noisily if anything is wrong. (Just as admins can verify the files provided from packages by checksums in case of a security intrusion.)
pyocd gets renamed and added to Debian with no binaries in github but with documentation on how to run the automated tests using docker.

As for renaming the binary, this is simply Debian Policy and there is no prospect of changing this for a little package like pyocd. Other packages all use lowercase, even big projects like PostgreSQL and GuestFS. This isn't just Debian, other distributions have similar policies.
Overall, it would be a big change but it is a change which helps community usage of pyocd. For now, pyocd is a pain to handle because I have to both remove the security risk binaries and I have to rename the files in the tarball produced by python3 setup.py sdist or downloaded from a git tag. I then have to build it manually and provide infrastructure to host the binaries outside Debian. That all adds delays to the process of testing and deploying new versions of pyocd in production labs to do CI on IoT devices.
Renaming the directory doesn't affect users that badly, it's not as if pyocd gets imported into other python libraries or scripts - most users simply call the scripts (which are already lowercased) like /usr/bin/pyocd-flashtool.
(I realise now this would have been easier if I'd filed two separate issues).

Please keep in mind that these are firmware binaries that run on a microcontroller dev board, not on a host system. It's a very different context, and there is little to no value from any attack. However, I understand the concerns with binaries that have no provenance. We will discuss internally what mitigations may be possible. (I'll also digest your suggestions more thoroughly once we get past demands related to TechCon.) Thanks.

Btw, you realize that the flash algos for each of the target MCUs (under pyOCD.target.*) are another set of binaries? They happen to be stored as int lists in the Python code, but could just as easily be .bin files accessed as package resources. Same threat scope as the test binaries. But the flash algos are required for pyOCD to be able to perform one of its key functions, programming target flash.
In the near-term, we will be moving to using CMSIS-Packs as the primary target support vehicle. CMSIS-Packs contain flash algos in .FLM files, which are simply binary ELF files with a different extension. Users will download Packs using one of the various Pack Manager tools (Keil, IAR, GNU MCU Eclipse, etc), then pyOCD will read the .FLM file(s) from the Pack.

The flash algos in target/ like target_CC3220SF.py are fine as source code - these are target-specific references and addresses which only make sense as static data. The data is presented in a form which allows modification and that is what matters. These are included in the package. The files in binaries/ is not included in the package, neither are the files in elf_files.
I understand about the firmware binaries being for separate boards, the difference in context is familiar from issues I have with scripts destined to run on a DUT but packaged in LAVA.
I've tried experimenting with simple changes to MANIFEST.in but setuptools insists on always including binaries/ and elf_files/ into the tarball coming from python3 setup.py sdist. Whilst it is acceptable (for distribution & packaging) to remove these binaries from the tarball of the pyocd release, I do see that it would not make sense to remove these entirely or put these into a separate git repo for "pyocd-data" as that would be too much of a barrier for running the pyocd tests upstream. As it is, the pyocd tests won't be able to run on the packaged pyocd. That isn't a problem, it's just inevitable in how pyocd needs to operate. I can set the Debian CI to add the upstream git repo to the packaged code and then run the tests.
So, I'll repackage each released tarball to drop binaries/ and elf_files/ directories, that's an extra step in the packaging but is do-able. I'll drop the request to remove those directories from the released tarball.
It would still be nice to rename the pyOCD directory to pyocd at some point. I'll rename the description of this issue.

Closing, as #433 renamed the pyOCD package to pyocd.

authors: codehelp flit

repo: mbedmicro/pyOCD


text:
Tweak timing of screens-by-alert self refresh job

Asana task: ad hoc
Various tweaks/fixes to the screens-by-alert data source and logic, now that it's generally working.
The self-refresh job will now work the same in every environment—how often it runs, and which screens it considers to be out-of-date, are no longer based on any config value.

Change self-refresh job to consider any screen that hasn't had an update in the last 30 seconds as in need of a refresh.
Change self-refresh job to run every 35 seconds.
Change /api/screens_by_alert to respond with a map of screen lists for all alerts in the V3 API if no ids query param is included in the request. (Server consults the V3 API to get list of alerts for the lookup, instead of using the list supplied in the request)

[ ] Tests added?

Oop just noticed the CI failure on this. Not sure why we're failing to fetch/parse config during test; my changes should be unrelated to this. I'll try rebasing off of latest master to see if that resolves it.

repo: mbta/screens


text:
Cmake error

When I tried to install on user directory (on Ubuntu20.04),
I faced this error.
I configured as like this:
cmake --build mc-rtc-superbuild/build --config RelWithDebInfo
--------------------------------------------------------------------------------
Workspace configuration appears valid.
--------------------------------------------------------------------------------
[build] Error: The file ~/src/rhps1/generate_robot_description/robot_description_template/package.xml is an invalid package.xml file. See below for details:

Package name "@ROBOT_DESCRIPTION_NAME@" does not follow naming conventions
Package version "@ROBOT_DESCRIPTION_VERSION@" does not follow version conventions
Invalid email "@ROBOT_DESCRIPTION_MAINTAINER_EMAIL@" for person "@ROBOT_DESCRIPTION_MAINTAINER_NAME@"
CMake Error at /home/tako/src/mc-rtc-superbuild/cmake/scripts/cmake-with-prefix.cmake:20 (execute_process):
  execute_process failed command indexes:

    1: "Child return code: 1"

Hi @tabinohito
Did you solve this? I don't think the RHPS1 package is meant to be built in a catkin workspace but I'm not sure why it's trying to in the first place

The problem was temporarily resolved, but has recurred.
I am currently trying to UPDATE mc-rtc to 2.4.0.
At that time, I am getting an error because it tries to build my other source code on its own.
So, is there any way to specify a folder to ignore it?

So, is there any way to specify a folder to ignore it?

superbuild does not build anything it doesn't explicitly control except if you add packages in a catkin workspace it thinks it controls

When I try to build a Baseline Walking Controller, I get an error because the qp solver is built without being specified.
- ENABLE_QLD: OFF
- ENABLE_QUADPROG: OFF
- ENABLE_LSSOL: OFF
- ENABLE_JRLQP: OFF
- ENABLE_QPOASES: OFF
- ENABLE_OSQP: OFF
- ENABLE_NASOQ: OFF
- ENABLE_HPIPM: OFF
- ENABLE_PROXQP: OFF
- ENABLE_QPMAD: OFF
CMake Error at CMakeLists.txt:95 (message):
  None of the QP solvers are enabled.  Enable at least one QP solver.

This error occurs when using the cmake argument to configure the settings.
So what should I do in these cases?

Hi @tabinohito
Are you using https://github.com/mc-rtc/superbuild-extensions to add BaselineWalkingController to your build? This should enable all solvers (except LSSOL optionally)

Thank　you!
I was able to resolve this problem.

authors: gergondet tabinohito

repo: mc-rtc/mc-rtc-superbuild


text:
Sound increment of 10

When changing the sound settings, there is a message that you can hold shift to have volume go up or down in increments of 10, but it still goes up and down 1 at a time when you hold shift.

Hi @Duck999, I believe this is a duplicate of issue #11, which was resolved earlier today. It should be functional in the next build.

Closing for now

authors: Duck999 mcanterb zslayton

repo: mcanterb/JRGSS


text:
Fix spelling error in README.md

Fix "bioinfarmatics" to "bioinformatics".

Thanks @johnw424 !

repo: mcapuccini/spark-tutorial


text:
🛑 ChatGenie Client API is down

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

HTTP code: 0
Response time: 0 ms

Resolved: ChatGenie Client API is back up in d2f0fab.


text:
🛑 ChatGenie Client API is down

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

HTTP code: 0
Response time: 0 ms

Resolved: ChatGenie Client API is back up in fb75050.


text:
🛑 ChatGenie Client API is down

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

HTTP code: 0
Response time: 0 ms

Resolved: ChatGenie Client API is back up in dadfba7.


text:
🛑 ChatGenie Client API is down

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

HTTP code: 0
Response time: 0 ms

Resolved: ChatGenie Client API is back up in a493b2b.


text:
🛑 ChatGenie Client API is down

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

HTTP code: 0
Response time: 0 ms

Resolved: ChatGenie Client API is back up in 2b02186.


text:
🛑 ChatGenie Client API is down

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

HTTP code: 0
Response time: 0 ms

Resolved: ChatGenie Client API is back up in 677000a.


text:
🛑 ChatGenie MiniApp API is down

In 79b22eb, ChatGenie MiniApp API ($CHATGENIE_BOT_API) was down:

HTTP code: 404
Response time: 240 ms

Resolved: ChatGenie MiniApp API is back up in 4673b1b.


text:
🛑 ChatGenie Client API is down

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

HTTP code: 0
Response time: 0 ms

Resolved: ChatGenie Client API is back up in 74545d2 after 9 minutes.


text:
🛑 ChatGenie Client API is down

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

HTTP code: 0
Response time: 0 ms

Resolved: ChatGenie Client API is back up in 4e2b548 after 9 minutes.


text:
🛑 ChatGenie Client API is down

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

HTTP code: 0
Response time: 0 ms

Resolved: ChatGenie Client API is back up in a0af9b2 after 28 minutes.


text:
🛑 ChatGenie Client API is down

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

HTTP code: 0
Response time: 0 ms

Resolved: ChatGenie Client API is back up in 24a7686 after 9 minutes.


text:
🛑 ChatGenie Client API is down

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

HTTP code: 0
Response time: 0 ms

Resolved: ChatGenie Client API is back up in 9a3eaf6 after 46 minutes.


text:
🛑 ChatGenie Client API is down

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

HTTP code: 0
Response time: 0 ms

Resolved: ChatGenie Client API is back up in a9b8be3.


text:
🛑 ChatGenie Client API is down

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

HTTP code: 0
Response time: 0 ms

Resolved: ChatGenie Client API is back up in 6853210 after 1 hour, 12 minutes.


text:
🛑 ChatGenie Client API is down

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

HTTP code: 0
Response time: 0 ms

Resolved: ChatGenie Client API is back up in dda27b1.


text:
🛑 ChatGenie Client API is down

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

HTTP code: 0
Response time: 0 ms

Resolved: ChatGenie Client API is back up in f5ad37e.


text:
🛑 ChatGenie Client API is down

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

HTTP code: 0
Response time: 0 ms

Resolved: ChatGenie Client API is back up in 189d47a.


text:
🛑 ChatGenie Client API is down

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

HTTP code: 0
Response time: 0 ms

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


text:
🛑 ChatGenie Client API is down

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

HTTP code: 0
Response time: 0 ms

Resolved: ChatGenie Client API is back up in 9e73aff.


text:
🛑 ChatGenie Client API is down

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

HTTP code: 0
Response time: 0 ms

Resolved: ChatGenie Client API is back up in 757503c.


text:
Ident not found error. Please take a look.

description: ValidatingWorker
tags: [ p1, smoke ]
actions:

description: Click on Update button
action: org.getopentest.selenium.Click
args:
locator: $data("locators/Repository").UpdateBtn

script: $delay(20000);

description: Verify TaxId box visibility
action: org.getopentest.selenium.AssertElementVisible
args:
locator: $data("locators/Login").LoginPage.taxId
$checkpoint: true
$screenshot: true

description: Clear Value from TaxID field
action: org.getopentest.selenium.ClearContent
args:
locator: $data("locators/Login").LoginPage.taxId
$screenshot: true

description: Enter Value in TaxID field
action: org.getopentest.selenium.SendKeys
args:
locator: $data("locators/Login").LoginPage.taxId
text: $data("TestData")[0].taxId
$screenshot: true

description: Clear Value from DOB field
action: org.getopentest.selenium.ClearContent
args:
locator: $data("locators/Login").LoginPage.dob
$screenshot: true

description: Enter Value in DOB field
action: org.getopentest.selenium.SendKeys
args:
locator: $data("locators/Login").LoginPage.dob
text: $data("TestData")[0].dob
$screenshot: true

description: Remove focus from dob field
action: org.getopentest.selenium.Click
args:
locator: $data("locators/Login").LoginPage.ClickonWindow

script: $delay(20000);

description: Click on Validate worker Button
action: org.getopentest.selenium.Click
args:
locator: $data("locators/Login").LoginPage.ValidateBtn
$screenshot: true

script: $delay(20000);

description: Check Lookup result
action: org.getopentest.selenium.ReadElementText
args:
locator: $data("locators/Login").LoginPage.LookupResult
$localData:
LookupResult: $output.text

description: Validate Lookup result

script: |
if ($localData.LookupResult == "No Worker found") {
$runAction("org.getopentest.selenium.Click",
{
locator: { xpath: "//span[contains(text(),'Manual Lookup')]" },
$screenshot: true
})
$runAction("org.getopentest.selenium.SendKeys",
{
    locator: { xpath: "//input[@id='fname']" },
    text: "absc",
    $screenshot: true

})

$runAction("org.getopentest.selenium.SendKeys",
{
    locator: $data("locators/ManualLookup").WorkerLastName,
    text: "xyz",
    $screenshot: true

})

$runAction("org.getopentest.selenium.SendKeys",
{
    locator: $data("locators/ManualLookup").Assignment,
    text: "3425",
    $screenshot: true

})

$runAction("org.getopentest.selenium.SendKeys",
{
    locator: $data("locators/ManualLookup").EmpID,
    text: "H1116",
    $screenshot: true

});

$runAction("org.getopentest.selenium.Click",
{
    locator: $data("locators/ManualLookup").SearchBtn,
    $screenshot: true
})

$runAction("org.getopentest.selenium.ReadElementText",
{
    locator: {xpath: "//*[@id='existinghgcnf']/table/tbody/ng2-smart-table/table/tbody/tr/td"},

      $localData:
      ManualLookupResult: $output.text

})

   if ($localData.ManualLookupResult == "No Worker found") {
    $runAction("org.getopentest.selenium.NavigateTo",
    {
        url: "http://192.168.200.98:8780/CAFPortal/#/login"

    });

    } else {
      $runAction("org.getopentest.selenium.NavigateTo",
      {
          url: "http://192.168.200.98:8780/CAFPortal/#/login"

      })
    }

} else {
$runAction("org.getopentest.selenium.Click",
{
    locator: { xpath: "//*[@id='autolookup']/table/tbody/ng2-smart-table/table/tbody/tr/td[1]/ng2-smart-table-cell/table-cell-view-mode/div/custom-view-component/ng-component/div/div"},
    $screenshot: true
})

 $runAction("org.getopentest.selenium.Click",
{
    locator: { xpath: "//*[@id='detail']/modal-container[2]/div/div/app-caf-workerlookup-validation/div[2]/div[1]"},
    $screenshot: true
})

 $runAction("org.getopentest.selenium.Click",
{
    locator: { xpath: "//button[@class='btn btn-sm btn-danger'][contains(text(),'Close')]"},
    $screenshot: true
});

}

script: $delay(50000);

LOGS :
aused by: javax.script.ScriptException: :50:6 Expected ident but found {
{
^ in  at line number 50 at column number 6
at jdk.nashorn.api.scripting.NashornScriptEngine.throwAsScriptException(NashornScriptEngine.java:467)
at jdk.nashorn.api.scripting.NashornScriptEngine.compileImpl(NashornScriptEngine.java:534)
at jdk.nashorn.api.scripting.NashornScriptEngine.compileImpl(NashornScriptEngine.java:521)
at jdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:399)
at jdk.nashorn.api.scripting.NashornScriptEngine.eval(NashornScriptEngine.java:155)
at javax.script.AbstractScriptEngine.eval(Unknown Source)
at org.getopentest.base.TestActor.evalScript(TestActor.java:1413)
... 10 more
Caused by: jdk.nashorn.internal.runtime.ParserException: :50:6 Expected ident but found {
{
^
at jdk.nashorn.internal.parser.AbstractParser.error(AbstractParser.java:292)
at jdk.nashorn.internal.parser.AbstractParser.error(AbstractParser.java:277)
at jdk.nashorn.internal.parser.AbstractParser.expectDontAdvance(AbstractParser.java:348)
at jdk.nashorn.internal.parser.AbstractParser.expect(AbstractParser.java:335)
at jdk.nashorn.internal.parser.AbstractParser.getIdentifierName(AbstractParser.java:499)
at jdk.nashorn.internal.parser.Parser.propertyName(Parser.java:2242)
at jdk.nashorn.internal.parser.Parser.propertyAssignment(Parser.java:2294)
at jdk.nashorn.internal.parser.Parser.objectLiteral(Parser.java:2155)
at jdk.nashorn.internal.parser.Parser.primaryExpression(Parser.java:1988)
at jdk.nashorn.internal.parser.Parser.memberExpression(Parser.java:2511)
at jdk.nashorn.internal.parser.Parser.leftHandSideExpression(Parser.java:2372)
at jdk.nashorn.internal.parser.Parser.unaryExpression(Parser.java:3147)
at jdk.nashorn.internal.parser.Parser.assignmentExpression(Parser.java:3353)
at jdk.nashorn.internal.parser.Parser.argumentList(Parser.java:2588)
at jdk.nashorn.internal.parser.Parser.leftHandSideExpression(Parser.java:2375)
at jdk.nashorn.internal.parser.Parser.unaryExpression(Parser.java:3147)
at jdk.nashorn.internal.parser.Parser.expression(Parser.java:3282)
at jdk.nashorn.internal.parser.Parser.expressionStatement(Parser.java:1150)
at jdk.nashorn.internal.parser.Parser.statement(Parser.java:967)
at jdk.nashorn.internal.parser.Parser.statement(Parser.java:863)
at jdk.nashorn.internal.parser.Parser.statementList(Parser.java:1013)
at jdk.nashorn.internal.parser.Parser.getBlock(Parser.java:531)
at jdk.nashorn.internal.parser.Parser.getStatement(Parser.java:555)
at jdk.nashorn.internal.parser.Parser.ifStatement(Parser.java:1187)
at jdk.nashorn.internal.parser.Parser.statement(Parser.java:890)
at jdk.nashorn.internal.parser.Parser.sourceElements(Parser.java:773)
at jdk.nashorn.internal.parser.Parser.program(Parser.java:709)
at jdk.nashorn.internal.parser.Parser.parse(Parser.java:283)
at jdk.nashorn.internal.parser.Parser.parse(Parser.java:249)
at jdk.nashorn.internal.runtime.Context.compile(Context.java:1286)
at jdk.nashorn.internal.runtime.Context.compileScript(Context.java:1253)
at jdk.nashorn.internal.runtime.Context.compileScript(Context.java:625)
at jdk.nashorn.api.scripting.NashornScriptEngine.compileImpl(NashornScriptEngine.java:532)
... 15 more

I need your help on this code. Mainly in this part
$runAction("org.getopentest.selenium.ReadElementText",
{
locator: {xpath: "//*[@id='existinghgcnf']/table/tbody/ng2-smart-table/table/tbody/tr/td"},
  $localData:
  ManualLookupResult: $output.text

})
if ($localData.ManualLookupResult == "No Worker found") {
$runAction("org.getopentest.selenium.NavigateTo",
{
url: "http://192.168.200.98:8780/CAFPortal/#/login"
});

anything on this

This is a JavaScript syntax erorr. Not sure if there are other errors in your code, but one that I can quickly spot is this:
$runAction("org.getopentest.selenium.ReadElementText",
  {
    locator: { xpath: "..." },
    $localData:
      ManualLookupResult: $output.text
  })

This is JavaScript code and not YAML, so objects have to be specified using JSON, which means that curly braces, comas and double quotes are not optional anymore. In your case, the value of the localData property has to include the curly braces:
$runAction("org.getopentest.selenium.ReadElementText",
  {
    locator: { xpath: "..." },
    $localData: {
      ManualLookupResult: $output.text
    }
  })

repo: mcdcorp/opentest


text:
Can we start the actor and server from Jenkins and stop after test execution completes?

Can we start the actor and server through Jenkins and stopped after execution is  completed?

Yes, this is possible by figuring out the process IDs for the server and actor and using the kill command on Linux/Mac and taskkill on Windows to terminate the processes. This was a bit harder to do before OpenTest 1.2.2, but if you upgrade to version 1.2.2, the server and actor PIDs are stored in their working directories in the server.pid and actor.pid file, respectively. You can use the values stored in those file to kill the processes.
For Windows:
set /p PID= < ACTOR_WORKING_DIR\actor.pid
taskkill /pid %PID% /f

set /p PID= < SERVER_WORKING_DIR\server.pid
taskkill /pid %PID% /f

For Linux/Mac:
kill $(cat ACTOR_WORKING_DIR/actor.pid)

kill $(cat SERVER_WORKING_DIR/server.pid)

Once i start the Server/Actor form Jenkins , the build is not getting completed ,can you please provide some solution or recommendation.

You mean to say that you are starting a test session which doesn't finish executing? What's the command line you are using to start the test session? Please provide more detail and context with your questions, so people have what they need to come up with a useful answer.

I have created a free style project in the jenkins and in the "Execute windows Batch command" i have give the below
cd C:\Users\XXXX\opentest\Project1\server
opentest server
cd C:\Users\XXXX\opentest\Project1\actor-web
opentest actor
opentest session create --template "POC"
when i run the build, the server gets initiated,

Basically the Requirement is to start the server and actor automatically, when the session is created.

When you are running the server and the actor you must use the start command, so the server and actor processes are started in the background. You are currently starting them normally, which means that, as soon as you're running the opentest server command, your pipeline is waiting indefinitely for the server to stop (which never happens). To run the server and actor as background processes, you can do something like
start /b opentest server

Look at the documentation of the start command and experiment with it to make it do exactly what you need.

Got It..Thank You


text:
include prompt in token count

Include prompt tokens in token count. Should avoid errors like those of #102 .

very nice catch

authors: alanpog mckaywrigley

repo: mckaywrigley/chatbot-ui


text:
Some more cleanup

Please note fix: remove https option. I see future problems with having two names for the same option when useland modules start forwarding options upstream to undici and all of a sudden they have overlap of tls and https and unexpectedly lose options. Removes this ambiguity by just having one of the options.

(lgtm)

authors: mcollina ronag

repo: mcollina/undici


text:
PG&E Changed Data Providers

PG&E changed software providers for their smart meter system which means that the SmarterMeter crawling code will need to be rewritten to work with the new system.
I haven't started on this yet but would be open to having someone else contribute this.

I started fixing this last night. I probably broke all the unit tests and it doesn't work correctly because the new provider returns an entire month's worth of data. The entire framework expects a single day right now.
Here's a link to the first commit:
https://github.com/kruton/smartermeter/commit/2f11bd58eee1c928f414c52f2f4e6114e1a3083a

authors: kruton mcolyer

repo: mcolyer/smartermeter


text:
Won't build in 3.4 SDK

I get an xcode compile error in the 3.4.G.A when using this module. Compiles fine after removing it.
:(

Any update on this? 3.5 out now.

I tried to build the android sdk following you receipt. I have copied and edited the build.properties and build.xml. Now this step:
~/Library/android-sdk/tools/android update project -p ~/Library/pebble-android-sdk/PebbleKit/

this gives me:
Error: /Users/fuerst/Library/pebble-android-sdk/PebbleKit/ is not a valid project (AndroidManifest.xml not found).

That's OK, in this folder is not this manifest. The filename after  p is my downloaded pebble-sdk.
Any ideas?

authors: AppWerft jasonkneen

repo: mcongrove/TitaniumPebble


text:
Open albums in Music.app?

Hey! First of all, awesome tool, great work.
I'm wondering if there's a way to open an album in Music.app (Apple Music or Library view), without starting to play it. I have an app that opens a bunch of albums by link but Apple frequently changes the links without adding redirects to old links, so it would be great to open an album by name.
Thank you!
Jonah

Hi Jonah- thanks!  Did you open this issue because you want this functionality added to the script?  I'm not totally sure it is in scope with the original goal being more of a controller, but here is an AppleScript snippet that should do what you want, with In Rainbows as an example:
tell application "Music"
	activate
	set theAlbum to "In Rainbows"
	set albumTracks to (every track whose album is theAlbum)
	if (count of albumTracks) > 0 then
		set firstTrack to item 1 of albumTracks
		reveal firstTrack
	end if
end tell

AppleScript won't be able to query for an album outside of your Library, but this should work for any album saved to your Library (regardless of if it is downloaded).  If you want something that can query outside of your Library, you'll need to look into the (Apple Music API)[https://developer.apple.com/documentation/applemusicapi].

Oh that's so awesome! Exactly what I wanted, thanks so much.

Oh that's so awesome! Exactly what I wanted, thanks so much.

authors: jonahclarsen mcthomas

repo: mcthomas/Apple-Music-CLI-Player


text:
ESP-01 Support?

Hello!
What is neccessary to compile the Example for ESP-01 with 1MB?
Directly compile without changes bring the ESP-01 in a reboot loop. Doens't matter what is set for configpin.
How can be debuged where the Problem with ESP-01 is?
Thanks!

Hello!
You are absolut right. The Proble was the configpin. I set it to 14 - something unusable, but i don't need it, and because there are not enough GPIO impossible too to use. Well it is possible to remove the Receive so to have a Reset-Pin... It is a Option. But Reset And IR-Receive and Send is not possible, in IMHO.
Theoreticaly RX and TX can be missused for Reset, but then the Serial Output sholud be disabled.
IR-Receiver i set and connected to GPIO 0, Send-LED to GPIO0.
Other change i make was, to use a N-Mosfet like 2N7000, because a normal NPN-Transistor works like pull-down resistor on GOIP2 and then ESP-01 doesn't boot. With 2N7000 the problem is gone. (I removed the Basis Resistor and connected the Gate directly to the ESP)
On GPIO0 i must connect a 10k Pull-Up Resistor - without the ESP-01 would not boot too (because the IR-Recevier act as Pull-Down).
I'm not sure if this is the best Solution to use a cheap ESP-01 but it works.
Ofcourse there are disadnvatgaes:

no Reset Pin like described
Serial connection stop to work after connect to WiFi(?!). Maybe because at ESP-01 GPIO1 is in the same time TX. And in this Moment when it is set Serial connection stops working. It is enough to see, that the setup process is successfully. So for me it is ok so.

This is my more or less quick and dirty solution. May be somone is interesting in this descitption to use the very cheap ESP-01, which is more then enough for IR-Blaster. ;-)
Greetings!

Thanks for sharing
If you want to organize all the changes you made into a bullet list I'll put it on the wiki for others trying to get it to work with the cheaper ESP-01

I was able to install on Esp-01 after changing pinout configuration. After configuring it to to connect to my wifi router, it goes into boot loop. I had set reset pin to pin 14 because I wanted to use available 2 gpio's for reciever and sender (gpio 0 & 2).  Serial output says pin 14 was set to pin 1. But, pin 1 & 3 are required for serial communication. Is there anyway I can make it work on esp-01.

authors: mdhiggins nixnotwin quark72


text:
can't get manual.py to work

hey. Newb here.
I've installed all the prereqs, except Requests[security] my macOS env reports that doesn't exist.
(sickbeard_mp4_automator) andy@MozzersMini sickbeard_mp4_automator-master % pip install requests[security]
zsh: no matches found: requests[security]

The error I get on running manual is to do with guessit. Can anyone help me?
Thanks
Manual processor started.
Python 64-bit 3.7.7 (default, Mar 10 2020, 15:43:33)
[Clang 11.0.0 (clang-1100.0.33.17)].
Guessit version: 1.0.3.
/Users/andy/sickbeard_mp4_automator/sickbeard_mp4_automator/bin/python
Loading config file /Users/andy/sickbeard_mp4_automator/config/autoProcess.ini.
Enter path to file:
#: /Users/andy/Downloads/Torrents/Complete/\ Dune1984Extended1080Pblurayremuxavcdtshdma51Rarbg.mp4
Traceback (most recent call last):
  File "manual.py", line 384, in <module>
    main()
  File "manual.py", line 372, in main
    tagdata = getInfo(path, silent=silent, tmdbid=args.get('tmdbid'), tvdbid=args.get('tvdbid'), imdbid=args.get('imdbid'), season=args.get('season'), episode=args.get('episode'))
  File "manual.py", line 112, in getInfo
    tagdata = guessInfo(fileName, tvdbid=tvdbid, tmdbid=tmdbid, imdbid=imdbid, season=season, episode=episode)
  File "manual.py", line 157, in guessInfo
    guess = guessit.guessit(fileName)
AttributeError: module 'guessit' has no attribute 'guessit'

You’re using a very old version of guessit
Guessit version: 1.0.3.
Update to the latest version

not sure how that happened, this is a brand new install. Ho hum.
thanks for the help. All working now. :-)


text:
Post process scripts called with renamed filename

My post process scripts are getting called with filenames such as 'Episode.rnm.mp4'
The rest of the SMA process is working, but this causes post processing to fail.

In what way is it failing?

Trying to post process 'Episode.rnm.mp4' instead of the actual file 'Episode.mp4'

To add more detail, my post processing scripts are asynchronous in nature.
One triggers plex_autoscan which seems to actually work ok with the 'rnm' file name, but I think it's just coincidental luck due to the timing of the final rename and Plex actually scanning the directory.
Another script queues the file to be uploaded to gdrive. This one fails because when the actual upload is attempted, the file no longer has the 'rnm' in the filename.

Got it that's very helpful
I've added 2 options that should help address this
084ff183e452e7fb47614aea6a9a8983f7275f63
First one is to just make this new .rnm thing optional since it is only needed for very specific workflows (ones where codec information is included in the name and will change during the conversion)
I also added an option to have the script wait for post-process scripts to finish which will prevent this asynchronous issue in the event that the above rename feature is desired
Both of these default to False so with that update it should revert back to normal for you
force-rename in Sonarr/Radarr sectiosn
wait-post-process in Converter section
I'll update the wiki shortly

Wiki updated

d41c270a8e080c4bc53040228b08aa2948b5c944
The wait-post-process feature will be temporarily enabled if the force-rename feature is enabled for postSonarr/postRadarr workflows regardless of user setting to prevent this asynchronous issue you had as well

Tested and working as expected. Thanks!

authors: bbobrian mdhiggins


text:
Bulk Processing - Specify TVDB ID

Is there a way to specify a TVDB ID for individual folders when doing bulk processing? I'm processing my entire TV folder at the moment and it's going fine except for one series (Cops, which it's mismatching to a series called C.O.P.S.), and it gives me the following on every file:

Failed to connect to TVDB, trying again in 20 seconds.
Traceback (most recent call last):
File "E:\MP4Automator\tvdb_mp4.py", line 40, in init
self.seasondata = self.showdata[self.season]
File "E:\MP4Automator\tvdb_api\tvdb_api.py", line 117, in getitem
raise tvdb_seasonnotfound("Could not find season %s" % (repr(key)))
tvdb_seasonnotfound: Could not find season 28

Not a huge deal, as I can go back and manually specify the ID on that series, but it takes up considerable time with the number of episodes I have. Can I put something in the series folder that tells the script what the TVDB ID is? If not, I'd recommend this as a feature (look for #####.tvdbid file in series folder or something).
Edit: Just found another issue with this. If I re-run a batch processing job on the folder containing this series, it deletes all of the metadata that I put in the files by running with a specific TVDB ID.

This has been fixed with manual.py, you can now override the TVDBID via command line parameters

authors: grokdesigns mdhiggins


text:
Code block problem

hey , I need
```
```
instead of
```autoauto```

This has been resolved in v0.10.0. Thanks for the feedback!

repo: mdickin/vscode-markdown-shortcuts


text:
Feature Request: Ad-free (paid) version?

Great plugin. Would like to remove ads (and not have to use an adblocker instead), is there a paid, ad-free version available now or in the future?

Ads removed because I hated banners. Will address monetization some other time.

authors: jeffmcneill mdjekic


text:
Add OpenAPI spec file

Add an OpenAPI spec file to document the client interface.

There's a  JetBrains OpenAPI plugin, but it seems to be broken for the latest IDE versions. Use the online SwaggerEditor to validate the spec file.

Issue resolved by commit c236d3e4423212868581a59db7c3ada472562caa.

repo: mdklatt/httpexec


text:
Belgium BBAN check fix

The Belgian BBAN check has an issue when the checksum digits are exactly "97". This is because the BBAN calculation is done using the "account number" mod 97; normally, this would result in a checksum digit of "00", but the standard in that case uses "97" instead.
Updated the checksum calculation to handle this case, plus updated the related unit test.
Relevant links:

https://github.com/globalcitizen/php-iban/issues/39 (section on Belgium)
https://www.ecbs.org/Download/Tr201v3.9.pdf , p31

All Belgian financial institutions apply the same modulus-based validation method.
The check digits are calculated by dividing the first 10 digits by 97. If the
remainder is 00, then the check digits are 97. Otherwise the check digits are the
remainders.

@mdomke this was an issue we did notice ourselves. Thanks for having a look!

Relates to #51

Thank you very much!

authors: mdomke mhemeryck

repo: mdomke/schwifty


text:
[BUG] Disappearing image with using Rich Text copy-and-paste on a URL/markdown-styled image

This issue can be created easily on the live demo

Create a markdown-styled image in the document by either A) clicking on the image icon and adding the image from URL; or B) going into markdown mode and adding an image with ![](). (example image: https://picsum.photos/200/300)
On the rich text preview, copy the image
Paste the image elsewhere in the document

The image disappears, but you will see a new image toolbar. If you check the markdown, you will find <img  src="..." width="0" height="0" />

This is fixed in the latest release.

authors: petyosi rissois

repo: mdx-editor/editor


text:
Any option to toggle automatic slide change?

Hi. I couldn't see any auto-change option, have I missed it? If this feature's not implemented, are you planning to do it in the future?

Hey @barisunver,
for now an interval option is not implemented, because I want to keep the slider as lean as possible and I thought something like an interval is not really often needed in this kind of sliders.
I think mostly interval is used by classic image slideshows, however if there are enough people who really need this feature I would think about implementing it.
Shouldn`t be too much effort anyways. Do you actually have a use case where you need exactly this feature?
cheers Max

I'd appreciate this feature. :+1:
For now, it can be done with a setInterval, no? Like this:
setInterval(function () {
  lory(simple).next;
});

Thanks @caiotarifa for the codepen and the instructions how it can be done for now.
I think I will implementiert this feature when Im back home in 10 days and will let you know.
@barisunver, for now you have to do it like @caiotarifa did it.
Thanks
Max

Is there any resolution about his?

Did you end up baking this in to the core, or no?

Is it in the plans still?

+1 for this feature

authors: JacobDB andreasvirkus barisunver caiotarifa erperejildo meandmax

repo: meandmax/lory


text:
chore(android): implement Exponential Backoff for events API

Description
Introduced exponential backoff for Events API retries to handle transient failures. The exponential backoff is applied when a client error (4xx) is encountered, allowing the request to be retried with increasing delays. Note: For Error 429 (Rate Limit Error) I haven't considered it as Client Error so it won't be counted in retry.
Changes Made

Currently retryLimit is set as 3. We might want to change this as per product requirements
Use Thread.sleep() for 200 ms, 400 ms, 800 ms waiting period before new API call
Add retry functionality in sendMultiPartRequestWithRedirects() fun in  HttpUrlConnectionClient class
Add/ Update Test cases

Related issue
Closes (https://github.com/measure-sh/measure/issues/893)

@Joaquin144 thanks a lot for the effort.
Our event export algorithm has changed quite a lot since this task was created and needs more thought on what we want to achieve. Apologies that the issue did not have enough details for you to know. Let me give some context:
Event export is attempted every few seconds via PeriodicEventExporter and also each time when the app goes to background or when the app crashes.
The idea for this task was to delay/reject subsequent requests if the previous had failed. and also  respecting the retry-after header if returned by the server. We don't need to retry the request in the HttpUrlConntectionClient itself as the request will be eventually retried anyways.
Let me add the details of what is expected in more detail and update the issue if you want to take another shot at this. Thanks again 🙇

Our event export algorithm has changed quite a lot since this task was created and needs more thought on what we want to achieve. Apologies that the issue did not have enough details for you to know. Let me give some context:
Event export is attempted every few seconds via PeriodicEventExporter and also each time when the app goes to background or when the app crashes.

Thanks @abhaysood for explanation
I'll follow this issue #893 If in case there is anything further needed to be done, I'll be happy to be part of it.
For now I will close this PR

repo: measure-sh/measure


text:
Fix some typos and errors 📝

😉

Coverage remained the same at 74.487% when pulling f81746358194d4031e6301732ef04902d15f229e on soul-wish:master into 9993131c77fd37044469c5ab93c0efbbf475845d on mediaelement:master.

authors: coveralls soul-wish

repo: mediaelement/mediaelement