fixes wrong path detection when url ends with /

Trailing / causes Path.GetDirectoryName to detect last path as directory instead of file.
Following code demonstrates the issue.
void Main()
{
	const string url = "https://docs.microsoft.com/en-us/aspnet/mvc/videos/";

	/*
	PATH
	C:\temp\cache\docs.microsoft.com\en-us\aspnet\mvc\videos

	FILENAME

	*/

	Parse(url);

	/*
	PATH
	C:\temp\cache\docs.microsoft.com\en-us\aspnet\mvc

	FILENAME
	videos
	*/

	Parse(url.TrimEnd(Path.AltDirectorySeparatorChar));
}

private void Parse(string url)
{
	const string defaultExtension = ".html";
	const string cachePath = @"C:\temp\cache\";

	var uri = new Uri(url);
	bool isAbsolutePathRoot = uri.AbsolutePath.Equals(Path.AltDirectorySeparatorChar.ToString());
	var suffix = (uri.Host + uri.AbsolutePath).Replace(Path.AltDirectorySeparatorChar, Path.DirectorySeparatorChar);
	string path = Path.Combine(cachePath, isAbsolutePathRoot
														 ? defaultExtension
														 : suffix);
	Path.GetDirectoryName(path).Dump("PATH");
	Path.GetFileName(path).Dump("FILENAME");
}

Hello @cilerler ,
Thank you for your contribution,
We will look at it during the weekend.
Best Regards,
Jonathan

Hello @cilerler ,
Your fix will be included in the release we will make this night or tomorrow morning.
We also added another fix, I believe ".htm" should be appended at the end of the file name also.
Best Regards,
Jonathan

Hello @cilerler ,
The v1.5.6-beta4 has been released.
It includes your pull adding the fix I made to add ".hml" at the end of the file name.
Thank a lot for your contribution
Best Regards,
Jonathan


Fix typo

Purpose
Fix typo.
Goals
Fix typo.
Approach
Replace camalCase with camelCase
User stories
N/A
Release note
N/A
Documentation
N/A
Training
N/A
Certification
N/A
Marketing
N/A
Automation tests
N/A
Security checks
N/A
Samples
N/A
Related PRs
N/A
Migrations (if applicable)
N/A
Test environment
N/A
Learning
N/A

Thanks for the contribution :)


Warning on fitsio header

Hi,
after having activated fermitools environment, we get the following warning
when calling a tool on our environment though all dependencies on cfitsio have been
avoided:
(/dsm/saplxglast/glast/fermitools/1.0.0)
[landriu@sappcb34] ~ > gtlike
WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).
Statistic to use (BINNED|UNBINNED) [UNBINNED] ^C
.../...
We have:
(/dsm/saplxglast/glast/fermitools/1.0.0)
[landriu@sappcb34] ~ > env | grep INC
(/dsm/saplxglast/glast/fermitools/1.0.0)
[landriu@sappcb34] ~ > env | grep FITS
(/dsm/saplxglast/glast/fermitools/1.0.0)
[landriu@sappcb34] ~ > env | grep fitsio
(/dsm/saplxglast/glast/fermitools/1.0.0)
[landriu@sappcb34] ~ >
.../...
as installed distribution shows as waited for :
(/dsm/saplxglast/glast/fermitools/1.0.0)
[landriu@sappcb34] ~ > ldd /dsm/saplxglast/glast/fermitools/1.0.0/bin/fermitools/gtlike | grep cfitsio
libcfitsio.so.5 => /dsm/saplxglast/glast/fermitools/1.0.0/bin/fermitools/../../lib/libcfitsio.so.5 (0x00007f923946c000)
The cfitsio library installed is :
[landriu@sappcb34] ~ > ls /dsm/saplxglast/glast/fermitools/1.0.0/lib/fitsio
/dsm/saplxglast/glast/fermitools/1.0.0/lib/libcfitsio.so
/dsm/saplxglast/glast/fermitools/1.0.0/lib/libcfitsio.so.5
/dsm/saplxglast/glast/fermitools/1.0.0/lib/libcfitsio.so.5.3.41
and header contains :
(/dsm/saplxglast/glast/fermitools/1.0.0)
[landriu@sappcb34] ~ > grep VERSION /dsm/saplxglast/glast/fermitools/1.0.0/include/*h | grep FITS
/dsm/saplxglast/glast/fermitools/1.0.0/include/fitsio.h:#define CFITSIO_VERSION 3.41
(/dsm/saplxglast/glast/fermitools/1.0.0)
Do you see  where could header VERSION 3.43 come from in this warning ?
Thanks

Sorry no one got back to you sooner, but this warning occurs because astropy uses a different version of CFITSIO than the version that the FSSC builds the conda binaries against. It shouldn't cause any issues with analysis.
We're looking into ways to handle it in a future release.  In the meantime, we've added a note on the Troubleshooting page.


refactor choreo-connect to apk

refactor choreo-connect to apk

Codecov Report
Patch coverage has no change and project coverage change: +45.56 :tada:

Comparison is base (16d99c4) 33.66% compared to head (bedde9a) 79.22%.

Additional details and impacted files
@@             Coverage Diff             @@
##             main    #1001       +/-   ##
===========================================
+ Coverage   33.66%   79.22%   +45.56%
===========================================
  Files         173       11      -162
  Lines       19039      592    -18447
  Branches     5706      257     -5449
===========================================
- Hits         6409      469     -5940
+ Misses      12512      123    -12389
+ Partials      118        0      -118

Flag
Coverage Δ

adapter
∅ <ø> (∅)

admin-domain-service
∅ <ø> (∅)

backoffice-domain-service
?

devportal-domain-service
?

idp-domain-service
79.22% <ø> (ø)

router
?

runtime-domain-service
?

Flags with carried forward coverage won't be shown. Click here to find out more.
see 162 files with indirect coverage changes
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.


[bug] A1/C6 durations should be separate from the main E/Q field buffs and are on a strict 12s timer - (Discord user: srl)

duplicate of #211


cabana: cheat engine search

Description
A proof of concept version of a "cheat-engine" like search feature in Cabana. To try it out, clone the branch and try doing a scan (Tools->Search)
Things I need to add:

undo scan (needs the full scan history which is going to be annoying)
combining similar bit ranges together or displaying them differently. right now if there is some padding between two messages it will display the same bit range with a bit of padding like 100 times
float/signed value support
big endian
more testing
add to "watch" (set of signals you can watch more closely, aside from the giant list)
add to signals button

Looking for feedback @deanlee

Added undo ability
Used a "basesignal", which is shared between "signal" and "searchsignal"
added "add to signals" button

first few scans are now kinda slow, probably because we are storing a lot more data for each signal now. probably some stuff we can do to optimize it

@deanlee this is ready for another review

Is there any particular reason you want to change the underlying structure of cabana::signal? I don't see a need for that. Let's change only the file tools/search.cc[h] if possible and not make any unnecessary changes in other files.
The current code implementation has performance issues. you might want to consider a more efficient approach.
also be careful to avoid the data copying. For example, code like auto events = can->events(messageID);  should be changed to const auto &events = can->events(messageID);

Is there any particular reason you want to change the underlying structure of cabana::signal? I don't see a need for that. Let's change only the file tools/search.cc[h] if possible and not make any unnecessary changes in other files.
The current code implementation has performance issues. you might want to consider a more efficient approach.
also be careful to avoid the data copying. For example, code like auto events = can->events(messageID);  should be changed to const auto &events = can->events(messageID);
The total number of lines of code in cabana is currently about 4000 lines. 600+ lines (more than 15%) is a bit too much to implement this feature. It would be nice if this could be done in fewer lines.

I wanted to reuse other code if possible (such as getting the value of a signal), but I didn’t want to have to store the other info related to a signal, like the signal name, so I thought a base class made sense. Do you have another suggestion?
It’s not ideal but it only takes 5-10 seconds for full scan. I can definitely multithread it but I’ve used it quite a bit myself without much issue.
I will take another look through my code and find data copying.
I can look at trimming it down a bit, but I would expect I can only remove maybe 100-150 lines

Regarding the number of lines, @jnewb1 is there a minimal set of changes here to get the infrastructure merged? Like maybe starting with only supporting a few scan types.

Is there any particular reason you want to change the underlying structure of cabana::signal? I don't see a need for that. Let's change only the file tools/search.cc[h] if possible and not make any unnecessary changes in other files.
The current code implementation has performance issues. you might want to consider a more efficient approach.
also be careful to avoid the data copying. For example, code like auto events = can->events(messageID);  should be changed to const auto &events = can->events(messageID);
The total number of lines of code in cabana is currently about 4000 lines. 600+ lines (more than 15%) is a bit too much to implement this feature. It would be nice if this could be done in fewer lines.

Search is using functions like:

getSignalRange
updateSigSizeParamsFromRange
get_raw_value
etc..., which would need an duplicate function in search.c/search.h if we don't share a base class.

Is there any particular reason you want to change the underlying structure of cabana::signal? I don't see a need for that. Let's change only the file tools/search.cc[h] if possible and not make any unnecessary changes in other files.
The current code implementation has performance issues. you might want to consider a more efficient approach.
also be careful to avoid the data copying. For example, code like auto events = can->events(messageID);  should be changed to const auto &events = can->events(messageID);
The total number of lines of code in cabana is currently about 4000 lines. 600+ lines (more than 15%) is a bit too much to implement this feature. It would be nice if this could be done in fewer lines.

2/3. removed more data copying, and performance is essentially instantaneous now, even on the early scan with hundreds of thousands of signals

resynced with master, and reduced line count to 477 by refactoring using functions rather than classes. IMO a little less pretty, but at least its smaller

don't change the underlying signal data structure just because some of fields are not needed in the search.think of it as a read only library header file instead of changing it arbitrarily. design your own data structure on this basis.
it's ok to copy and create you own get_raw_value in search.cc.
There still some problems in the current code need to be fixed before opening it for review, such as repeatedly assigning a value to start_bit, incorrectly using lower_bound to search for the next message, and not checking the return value correctly, the first line of the tableview should be put in the header, etc.

@jnewb1 Thank you very much for your time and this fantastic PR. However, this PR has been ongoing for a long time, and continuously reviewing and changing it may waste a lot of time. Therefore, I have submitted a new PR to implement this feature. https://github.com/commaai/openpilot/pull/28182  any suggestion? does it looks good to you?

Thanks @jnewb1, merged @deanlee's refactored version.

😆

@jnewb1 Thank you very much for your time and this fantastic PR. However, this PR has been ongoing for a long time, and continuously reviewing and changing it may take up more time. Therefore, I have submitted a new PR to implement this feature. #28182, does it looks good to you?

The more useful options are “changed” and “unchanged”.

The more useful options are “changed” and “unchanged”. Most of the time you won’t know the actual value

There are already a well-implemented activity colors module that used to track changed/non-changed/increasing/decreasing/constant changing bits and display theme with different colors.

The more useful options are “changed” and “unchanged”. Most of the time you won’t know the actual value

There is already a well-implemented activity colors module that used to track changed/non-changed/increasing/decreasing/constant-changing bits and display theme with different colors.

Well sure, but you can only look at one message at a time. Let me give you an example. I was looking for a signal on my Subaru, that was the “infotainment status” (a message that popped up on my infotainment screen that showed when LKAS was turning off due to not touching the steering wheel). What I did was whenever I saw the signal change while driving, I marked it with a user flag on the C3. Then when I got home, I did a search where I did “changed value” on all the flags, and “unchanged” in between the flags. I didn’t know the actual value that was used to store the message at all, I just knew it was changing. I was able to search the entire cars can bus that way. It turns out it wasn’t even a defined message yet. I don’t think the color activity monitor and the “changed/unchanged” are even comparable for this use case.

This requires comparing the snapshots of data from different times. (This is also what you did in this pr). but it's not good for other types of searching: all intermediate information between mouse clicks is lost.
The new findSignalDlg is not based on snapshot, but searches through all received messages. So for the time being it is not possible to provide this kind of data comparison. I think we need to implement such snapshot comparison separately rather than merging them together.

This requires comparing the snapshots of data from different times. (This is also what you did in this pr). but it's not good for other types of searching: all can events between clicks is ignored.
The new findSignalDlg is not based on snapshot, but searches through all cached messages. So for the time being it is not possible to provide this kind of data comparison in it. I think we may need to implement such snapshot comparison separately rather than merging them together.

Cheat engine uses snapshot based searching, and I think this use case is very similar to cheat engine. You won't know the "factor" or "offset" of a signal that you are looking for, or if its enum-like you won't know the enum values.


replace uses of list with array

kotlinjs seems to have a problem with lists. Either find out how to use lists with kotlinjs or replace every occurence with arrays

no longer relevant


reset button on tauri app doesnt reset registers (or at least the sp register)

Please provide a better description of the bug next time.
The issue is in App.js that callCallbacks is called conditionally since it is in checkAndHandleProgramCompletion  -- a solution might be to call callCallbacks in the reset function. Make sure to include it as a dependency in the dependency array wherever you put it.


Cleverbot Issue

After enabling >cleverbot and mentioning him and adding a message, for example "@bot hello" he will type but not send the actual message.
Here is the console view, not sure how to get the actual error log:
https://i.gyazo.com/65b60945e36510cd1fd08ae8345f1fb5.png

#1076

Closed how?


Pulsar on Raspberry Pi 2

Hi there,
I've download repository.pulsarunofficial-1.0.1.zip. From Kodi > System > Install from Zip got that addon enabled. But when I went to Get-Addons > repository.pulsarunofficial-1.0.1 > click on that I did not see Video Addon even I did a force to refresh, reboot my Raspberry. I did enable "Allow programs on other system to control XBMC" and "Allow programs on other system to control XBMC" as well. Do I miss anything?
Thanks

hi, i can't support alternative methods for installing pulsar.
if you want to be sure, download it from the releases page at  https://github.com/steeve/plugin.video.pulsar/releases


Implemented: centralized language switcher (#141)

Closes #141
Description:

Created a component for a language switcher.
taking the translate function as options in dxp from the app and exporting it from index.ts to use in the component

Steps to verify:
-- Language switch functionality.
-- No warnings in the app.

Closing as done through #173


Implement constrained generics

Update arithmetic operators to be generic functions where each param is constrained by number.  Make + an overloaded function so that it can be used with strings as well.  The string version also uses constrained generics.

Codecov Report
Attention: 17 lines in your changes are missing coverage. Please review.

Comparison is base (0b16a6a) 75.19% compared to head (220e709) 75.51%.

Files
Patch %
Lines

src/Escalier.TypeChecker/Env.fs
69.23%
16 Missing :warning:

src/Escalier.TypeChecker/Unify.fs
90.00%
1 Missing :warning:

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #54      +/-   ##
==========================================
+ Coverage   75.19%   75.51%   +0.31%
==========================================
  Files          14       14
  Lines        3624     3708      +84
  Branches      436      445       +9
==========================================
+ Hits         2725     2800      +75
- Misses        899      908       +9

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


Does not work with async files

Hi, I tried to implement it in my project and ran into a problem. Async components do not correctly handle and delete styles.
An error occurs during the build
WARNING: Stray reference to block import (styles). Imports are removed during rewrite so this will probably be a runtime error. (/Users/a.marchenko/Downloads/css-blocks-async/src/Strong.jsx:7:28)
When you run the error
ReferenceError: styles is not defined
Example repo - https://github.com/Tom910/css-blocks-async-broken

Mmm, you are right! We don't handle crawling dynamic imports. Thank you for the bug report and thank you for the failing repo!
The lazy workaround right now would be to explicitly add the async modules to your entries list. For the linked example repo, the following change to the config makes i twork
{
  "entry": ["./src/index.jsx", "./src/Strong.jsx"]
}

But, we do need to support async components more generally in the Webpack ecosystem. Right now we take a fairly naive approach to dependency crawling during analysis: we crawl and resolve ES6 imports at the top of your JSX files, starting with the files we discover in your entry config. This obviously misses all of Webpack's varied async module methods, which is what you're encountering.
I believe the correct fix for this is actually in the @css-block/webpack plugin. I think for the sake of DRY-ness we should keep the @css-blocks/jsx integration strictly concerned with what is statically analyzable in valid ES2017 code. We could add complexity to the jsx analyzer to enable it to crawl all the async module imports (and the cjs and amd equivalents) that Webpack supports, but this would be duplicate effort to what Webpack already does, and an absolute pain to maintain...
Currently, I'm thinking we would do one of two things:
Option 1: fetch all known async dependencies that are included for a given bundle from Webpack and add them to the list of entry points we pass to the analyzer. This is the automated version of the workaround for your specific example repo outlined above. This way we don't have to duplicate async dep crawling code in the jsx analyzer and can still ensure that we encounter all files during analysis.
Option 2: Remove any notion of dependency crawling in the JSX analyzer (currently just top level imports) and expect the template integration for JSX projects to handle all dependency tree resolution. The Webpack integration will explicitly call "analyze" for each bundle, passing it the complete list of file it contains. This second option slightly changes the documented relationship between build integrations and template integration and will have to be though out in more detail.
Both options require some pretty intimate knowledge of Webpack plugin APIs in order to implement! May take some exploration to find out what is the best solution.
Any other ideas? the Webpack integration is very much a WIP, and we don't use Webpack extensively at LinkedIn, so would love some help from a Webpack expert to help us bulletproof the integration 🙂

Loaders have a "pitch phase" and that's when you're supposed to do pre-work and dependency analysis. Webpack also has it's own dependency graph. We're not taking advantage of either of those. :(

We also don't support generic require() statements. If we get properly integrated with webpack's loading/dependency infrastructure I suspect all of this would be handled.

@Tom910 is it still open? I could work on this.


wasmer.sh example doesn't work

Hi
I cloned examples/wasmer.sh, added SDK and tried to run it.
It creates start of a terminal but then it throws uncaught error:
Uncaught (in promise) TypeError: Failed to fetch dynamically imported module: http://localhost:5173/node_modules/.vite/deps/index.mjs
Vite shows error:
The file does not exist at "/home/user/wasmer/examples/node_modules/.vite/deps/index.mjs" which is in the optimize deps directory. The dependency might be incompatible with the dep optimizer. Try adding it to `optimizeDeps.exclude`.
Searching in Vite's repo didn't show anything useful.
Ubuntu, Chrome.

It seems that npm i was not run in the examples. Closing the issue


Dynamic finders are not returning promises on error

Let's say I have this code:
var name = req.param('name');

User.findOneByName(name)
.then(function(user){
    if (!user) {
        res.notFound();
    }
    else {
        res.json(user);
    }
})
.catch(function(err){
    res.badRequest('Something went wrong!');
});

If I don't provide the call with the name parameter, the dynamic finder will just throw an exception instead of going through .catch.
If I run the same code but calling findOne instead of a dynamic finder, the catch code is executed.

Any luck with this?  Would be nice to see this resolved.


Stc to pandas with arrow

Fixed bit-width of ShortType
Added Python tests for use cases of toPandas()
Added more type conversion tests for Scala conversion, including Arrow json data files

cc  @icexelloss, I'll leave this open for a while to comment

Nice work!

:+1:


Demos

add the demo

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+1.07%) to 95.676%

Totals

Change from base Build<PHONE_NUMBER>:
1.07%

Covered Lines:
279

Relevant Lines:
287

💛  - Coveralls


About canUpdateDisplay() function

Hello, congratulations for your project.
I am trying to make a simpler project. I found this version of the project a bit confusing. Could you please share the write to screen function in a simpler way?

For writing to the screen, I would suggest taking a look at this: Info-Display.md and also at the small writeup on the wiki page here. Good understanding of ISO 15765-2 will probably make it easier to figure out and implement in your own application.
canUpdateDisplay() is only called when ESP32 detects the screen being written to by the radio unit (specifically, the first message). At this point there is few things that can be done:

wait for radio to finish sending its text and then send our own text (results in flashing "Aux")
prevent radio from updating the display by abusing flow control packets (will only work if we're faster than the display in acknowledging the transmission). This is the prettier option becuase "Aux" is not shown at all.

Updating the display is somewhat convoluted in the case of EHU32 because I opted to make it possible to update from various sources, make it flexible and memory safe (to the best of my ability). The functions operate on 1-byte buffers existing in the global scope: utf16buffer (formatted text, converted into UTF-16, with everything calculated, modified by utf8_conversion), CAN_MsgArray (utf16buffer split into packets as per ISO 15765-2, ready for transmission, modified by prepareMultiPacket).
The process of writing text to the display is as follows:

call prepareMultiPacket(utf8_conversion("string one", "string two", "string three"));
make sure the radio is not sending a message of its own,
transmit ONLY the first message from CAN_MsgArray (sendMultiPacket does this, sets the flag - CAN_MessageReady - for the main loop to act upon),
wait for the display to acknowledge with a flow control message (main loop does this based on the flag, waits for the message from the display with ID 0x2C1),
send rest of the messages from CAN_MsgArray (calling sendMultiPacketData does this until the packets do not contain the consecutive frame index)

It is also good practice to make sure the messages are sent successfully and aborting the transmission in case of even a single error.


WinUI 0.8

Update WinUI samples to version 0.8, probably add additional samples

[ ] 11 - Tasks and Asynchronous Programming, AsyncWindowsDesktopApp
[ ] 16 - Diagnostics and Metrics, WindowsAppAnalytics
[ ] 17 - Parallel Programming, WindowsAppTimer
[ ] 18 - Files and Streams, WinUIAppEditor
[ ] 22 - Localization
[ ] 28 - SignalR
[ ] 29 - Windows Apps
[ ] 30 - Patterns with XAML Apps
[ ] 31 - Styling Windows Apps

delay the update of the samples to the release of 0.8.0 (other than the package version update is not required 0.8)
unpackaged WinUI apps will be supported with Reunion 1.0.
Additional samples for:

app lifecycle (ß.8 preview, 1.0 release)
power state notification (0.8 preview, 1.0 release)
Windowing (1.0 release)

https://github.com/microsoft/ProjectReunion/blob/main/docs/roadmap.md


Added support of object initializers

This PR adds support of object initializers, so that it's possible to write new MyClass { MyProp = 5 }.

I fixed the formatting issues, and added the tests you suggested.
I like your plan to release the smaller changes before the lambda syntax PR, that way there's a fallback version in case something goes terribly wrong :)


Update min requirements

[x] ~Change NodeJS from v12 to v16 (since it's LTS)~ - fixed in #1025
[x] ~Change build target from es5 to es2016~ - fixed in #1037
[x] ~Add support for exports map~ - fixed #613

With this you may want to add npm install --legacy-peer-deps, so deprecated packages can be installed in v14+, else people will run into errors:
lightweight-charts>npm i
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving<EMAIL_ADDRESS>npm ERR! Found<EMAIL_ADDRESS>npm ERR! node_modules/tslint
npm ERR!   dev<EMAIL_ADDRESS>from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer<EMAIL_ADDRESS>from<EMAIL_ADDRESS>npm ERR! node_modules/tslint-eslint-rules
npm ERR!   dev<EMAIL_ADDRESS>from the root project

With this you may want to add npm install --legacy-peer-deps, so deprecated packages can be installed in v14+, else people will run into errors:

@h0wXD It looks like support for npm@7, not for nodejs v14 (by default nodejs v14 includes npm@6 which works fine at the moment - Latest LTS Version: 14.17.0 (includes npm 6.14.13) from https://nodejs.org/en/download/).

npm ERR! Could not resolve dependency:
npm ERR! peer<EMAIL_ADDRESS>from<EMAIL_ADDRESS>npm ERR! node_modules/tslint-eslint-rules
npm ERR!   dev<EMAIL_ADDRESS>from the root project

Yeap, problem with dependency in tslint-eslint-rules for tslint
Issure about this open from 2020 😢

@SlicedSilver looks like it is finished already and can be closed?

@SlicedSilver looks like it is finished already and can be closed?
Thanks :)


Model solution with zero growth?

If  I set the parameter g_y_annual=0.0, I find that the model does not find a SS solution.  I've attempted this with budget_balance=True/False under the closed economy specification.
This issue is to confirm this issue among others runs/configurations and to discuss solutions.

I find that the equilibrium interest rate is negative using the default parameters for test. But when I lower debt_ratio_ss to 0.5 from 1.0, it finds a solution (with a very, very low interest rate).

Ok - thanks for looking at that.
Relatedly, I've been working to make the production function a more general CES function.  Under certain parameterizations, when doing that I was also running into issues where a negative interest rate was found given the initial guesses and the root finder couldn't get out of the space and therefore the SS solution failed.
It sounds like the solution to both these problems to to ensure that initial guesses are "reasonable" in that they do not generate negatives for the factor prices or aggregate quantities.  We might also need to improve the methods to prevent the root finder from going to these spaces also.
cc @rickecon

Unlike you, I'm finding a solution when budget_balance=False. It starts out with a negative interest rate in the guess, but then finds its way to a (small) positive one and yields a steady state solution.

Closing.  My error must have been to some changes in branch I was working with.


feat(snippets): support npv ambience [ Rotating Cover Art ]

see glow for reference

Looks good. Is there a way to remove the background square on the bottom left image?


⚠ Bofrost.at has degraded performance

In 757016a, Bofrost.at (https://www.bofrost.at) experienced degraded performance:

HTTP code: 200
Response time: 1318 ms

Resolved: Bofrost.at performance has improved in 51bf090.


Include the required supertype in interface declarations

I'm thinking it may make sense if interface declarations have to include the required supertype, like:
@interface SomeInterface SomeType conditions docs

For interfaces without supertypes, like iteration, this would be Any
@interface IterationInterface Any conditions docs

Originally this was not included because the Any case is redundant. But now I think it might be nicely self documenting -
wherever there is Any its a trait only interface.
@gdalle any thoughts?

I like that idea! And it's probably a minor code change


Newlines on Windows

Not sure if this is an issue but I thought I would mention in case there is a way to prevent someone else having a similar issue?
I wanted to get a minimal example of Elm Markup working using reactor using Visual Studio Code ... but had an issue with the windows new-line characters being rejected as an error by Mark.compile.
The workaround was to use String.replace "\u{000D}\n" "\n"
I have included an copy of the error and the code example below.

module Main exposing (main)

import Browser exposing (sandbox)
import Html exposing (Html)
import Html.Attributes as Attr
import Mark
import Mark.Error

main : Program () Model Msg
main =
    sandbox
        { init = init
        , view = view
        , update = update
        }

type alias Model =
    {}

init : Model
init =
    {}

type Msg
    = NoOP

update : Msg -> Model -> Model
update msg model =
    model

view : Model -> Html.Html msg
view model =
    case Mark.compile document source of
        Mark.Success html ->
            Html.div [] [ html ]

        Mark.Almost { result, errors } ->
            Html.div []
                [ Html.div [] (viewErrors errors)
                , Html.div [] [ result ]
                ]

        Mark.Failure errors ->
            Html.div []
                (viewErrors errors)

viewErrors errors =
    errors
        |> List.map
            (\error ->
                let
                    { title, message, region } =
                        Mark.Error.toDetails error
                in
                Html.p []
                    [ Html.text (Debug.toString <| Mark.Error.toDetails error)
                    ]
            )

document =
    Mark.document
        (\meta ->
            Html.node "blah"
                []
                [ Html.h1 [] [ Html.text meta.title ]
                , Html.h1 [] [ Html.text meta.description ]
                , Html.h1 [] [ Html.text meta.author ]
                ]
        )
        metadata

metadata =
    Mark.record "Article"
        (\author description title ->
            { author = author
            , description = description
            , title = title
            }
        )
        |> Mark.field "author" Mark.string
        |> Mark.field "description" Mark.string
        |> Mark.field "title" Mark.string
        |> Mark.toBlock

source =
    """
|> Article
    author = Matthew Griffith
    description = How I learned to use elm-markup.
    title = How I Learned /elm-markup/
"""
        |> String.trim
        -- Without the following line it will error on Windows
        -- |> String.replace "\u{000D}\n" "\n"

I am running into more subtle errors with newlines. The sympoms are paragraphs and even blocks not being detected correctly, leading to errors that are hard to trace back to the newlines.
The most devious one I had was a block that took a Mark.string, but that got interpreted as Mark.text (presumably because the block was not detected as a block due to the newlines) and the content containing [FILE]. The error message told me that [FILE] was not a known annotation.
After I switched the newline format in VSCode from CRLF to LF (you can do that by clicking on "CRLF" in the bottom right corner and choosing the other one), everything works as expected.
This leads me to think that it might be possible and worth it to handle these different newline codes in elm-markup itself.

I am having the same issue. I am having trouble compiling even basic markup syntaxes such as basic string parsing


How to make a scrolling text box on mobile if Swiper JS autoheight:false and have height and width 100%?

.swiper-slide {
  overflow: auto;
}


Two mouse disambiguation errors

This process has worked for nearly every one of my samples, but there are two issues that have arisen with a handful of samples.
Traceback (most recent call last):
  File "/home/bwubb/bcbio-tools/bin/bcbio_nextgen.py", line 226, in <module>
    main(**kwargs)
  File "/home/bwubb/bcbio-tools/bin/bcbio_nextgen.py", line 43, in main
    run_main(**kwargs)
  File "/home/bwubb/bcbio-nextgen/anaconda/lib/python2.7/site-packages/bcbio/pipeline/main.py", line 39, in run_main
    fc_dir, run_info_yaml)
  File "/home/bwubb/bcbio-nextgen/anaconda/lib/python2.7/site-packages/bcbio/pipeline/main.py", line 82, in _run_toplevel
    for xs in pipeline.run(config, run_info_yaml, parallel, dirs, samples):
  File "/home/bwubb/bcbio-nextgen/anaconda/lib/python2.7/site-packages/bcbio/pipeline/main.py", line 209, in run
    samples = run_parallel("process_alignment", samples)
  File "/home/bwubb/bcbio-nextgen/anaconda/lib/python2.7/site-packages/bcbio/distributed/multi.py", line 28, in run_parallel
    return run_multicore(fn, items, config, parallel=parallel)
  File "/home/bwubb/bcbio-nextgen/anaconda/lib/python2.7/site-packages/bcbio/distributed/multi.py", line 86, in run_multicore
    for data in joblib.Parallel(parallel["num_jobs"])(joblib.delayed(fn)(x) for x in items):
  File "/home/bwubb/bcbio-nextgen/anaconda/lib/python2.7/site-packages/joblib/parallel.py", line 657, in __call__
    self.dispatch(function, args, kwargs)
  File "/home/bwubb/bcbio-nextgen/anaconda/lib/python2.7/site-packages/joblib/parallel.py", line 404, in dispatch
    job = ImmediateApply(func, args, kwargs)
  File "/home/bwubb/bcbio-nextgen/anaconda/lib/python2.7/site-packages/joblib/parallel.py", line 142, in __init__
    self.results = func(*args, **kwargs)
  File "/home/bwubb/bcbio-nextgen/anaconda/lib/python2.7/site-packages/bcbio/utils.py", line 51, in wrapper
    return apply(f, *args, **kwargs)
  File "/home/bwubb/bcbio-nextgen/anaconda/lib/python2.7/site-packages/bcbio/distributed/multitasks.py", line 38, in process_alignment
    return sample.process_alignment(*args)
  File "/home/bwubb/bcbio-nextgen/anaconda/lib/python2.7/site-packages/bcbio/pipeline/sample.py", line 113, in process_alignment
    bam.check_header(out_bam, data["rgnames"], data["sam_ref"], data["config"])
  File "/home/bwubb/bcbio-nextgen/anaconda/lib/python2.7/site-packages/bcbio/bam/__init__.py", line 128, in check_header
    _check_bam_contigs(in_bam, ref_file, config)
  File "/home/bwubb/bcbio-nextgen/anaconda/lib/python2.7/site-packages/bcbio/bam/__init__.py", line 172, in _check_bam_contigs
    % "\n".join(problems))
ValueError: Unexpected order, name or contig mismatches between input BAM and reference file:
Reference mismatch. BAM: 1 Reference: chr1
Reference mismatch. BAM: 2 Reference: chr2
Reference mismatch. BAM: 3 Reference: chr3
Reference mismatch. BAM: 4 Reference: chr4
Reference mismatch. BAM: 5 Reference: chr5
Reference mismatch. BAM: 6 Reference: chr6
Reference mismatch. BAM: 7 Reference: chr7
Reference mismatch. BAM: 8 Reference: chr8
Reference mismatch. BAM: 9 Reference: chr9
Reference mismatch. BAM: 10 Reference: chr10
Reference mismatch. BAM: 11 Reference: chr11
Reference mismatch. BAM: 12 Reference: chr12
Reference mismatch. BAM: 13 Reference: chr13
Reference mismatch. BAM: 14 Reference: chr14
Reference mismatch. BAM: 15 Reference: chr15
Reference mismatch. BAM: 16 Reference: chr16
Reference mismatch. BAM: 17 Reference: chr17
Reference mismatch. BAM: 18 Reference: chr18
Reference mismatch. BAM: 19 Reference: chr19
Reference mismatch. BAM: 20 Reference: chrX
Reference mismatch. BAM: 21 Reference: chrY
Reference mismatch. BAM: 22 Reference: chrM
Reference mismatch. BAM: X Reference: chr1_GL456210_random
Reference mismatch. BAM: Y Reference: chr1_GL456211_random
Reference mismatch. BAM: MT Reference: chr1_GL456212_random
Reference mismatch. BAM: GL000207.1 Reference: chr1_GL456213_random
Reference mismatch. BAM: GL000226.1 Reference: chr1_GL456221_random
Reference mismatch. BAM: GL000229.1 Reference: chr4_GL456216_random
Reference mismatch. BAM: GL000231.1 Reference: chr4_GL456350_random
Reference mismatch. BAM: GL000210.1 Reference: chr4_JH584292_random
Reference mismatch. BAM: GL000239.1 Reference: chr4_JH584293_random
Reference mismatch. BAM: GL000235.1 Reference: chr4_JH584294_random
Reference mismatch. BAM: GL000201.1 Reference: chr4_JH584295_random
Reference mismatch. BAM: GL000247.1 Reference: chr5_GL456354_random
Reference mismatch. BAM: GL000245.1 Reference: chr5_JH584296_random
Reference mismatch. BAM: GL000197.1 Reference: chr5_JH584297_random
Reference mismatch. BAM: GL000203.1 Reference: chr5_JH584298_random
Reference mismatch. BAM: GL000246.1 Reference: chr5_JH584299_random
Reference mismatch. BAM: GL000249.1 Reference: chr7_GL456219_random
Reference mismatch. BAM: GL000196.1 Reference: chrX_GL456233_random
Reference mismatch. BAM: GL000248.1 Reference: chrY_JH584300_random
Reference mismatch. BAM: GL000244.1 Reference: chrY_JH584301_random
Reference mismatch. BAM: GL000238.1 Reference: chrY_JH584302_random
Reference mismatch. BAM: GL000202.1 Reference: chrY_JH584303_random
Reference mismatch. BAM: GL000234.1 Reference: chrUn_GL456239
Reference mismatch. BAM: GL000232.1 Reference: chrUn_GL456359
Reference mismatch. BAM: GL000206.1 Reference: chrUn_GL456360
Reference mismatch. BAM: GL000240.1 Reference: chrUn_GL456366
Reference mismatch. BAM: GL000236.1 Reference: chrUn_GL456367
Reference mismatch. BAM: GL000241.1 Reference: chrUn_GL456368
Reference mismatch. BAM: GL000243.1 Reference: chrUn_GL456370
Reference mismatch. BAM: GL000242.1 Reference: chrUn_GL456372
Reference mismatch. BAM: GL000230.1 Reference: chrUn_GL456378
Reference mismatch. BAM: GL000237.1 Reference: chrUn_GL456379
Reference mismatch. BAM: GL000233.1 Reference: chrUn_GL456381
Reference mismatch. BAM: GL000204.1 Reference: chrUn_GL456382
Reference mismatch. BAM: GL000198.1 Reference: chrUn_GL456383
Reference mismatch. BAM: GL000208.1 Reference: chrUn_GL456385
Reference mismatch. BAM: GL000191.1 Reference: chrUn_GL456387
Reference mismatch. BAM: GL000227.1 Reference: chrUn_GL456389
Reference mismatch. BAM: GL000228.1 Reference: chrUn_GL456390
Reference mismatch. BAM: GL000214.1 Reference: chrUn_GL456392
Reference mismatch. BAM: GL000221.1 Reference: chrUn_GL456393
Reference mismatch. BAM: GL000209.1 Reference: chrUn_GL456394
Reference mismatch. BAM: GL000218.1 Reference: chrUn_GL456396
Reference mismatch. BAM: GL000220.1 Reference: chrUn_JH584304
Setting `bam_clean: picard` in the configuration can often fix this issue.

With the samples that receive this error, they are from a pre-aligned bam. They are aligned with the reference file that comes with GATK bundle. I am not sure if that would cause some sort of issue, but I believe I have had bcbio gernally work for bams aligned with that reference files before. Regardless, it is saying mismatchs with the prefix 'chr' which from my understanding is not GRCh37 format. Some of that might be the general multiprocessing errors when things break. Maybe I should try in single core mode, but it is not clear to me what the problem is.

Second issue happened in maybe three samples.
[2015-12-04T20:56Z] Index BAM file: 1205PRT#4p2+-sort.nsorted.disambiguatedSpeciesA.sorted-X_41196610_155270560-prep.bam
[2015-12-04T20:56Z] Select unmapped reads
[2015-12-04T20:56Z] Index BAM file: 1205PRT#4p2+-sort.nsorted.disambiguatedSpeciesA.sorted-nochrom-prep.bam
[2015-12-04T20:56Z] Select unanalyzed reads
[2015-12-04T20:57Z] Index BAM file: 1205PRT#4p2+-sort.nsorted.disambiguatedSpeciesA.sorted-noanalysis-prep.bam
[2015-12-04T20:57Z] Timing: variant calling
[2015-12-04T20:57Z] multiprocessing: variantcall_sample
[2015-12-04T20:57Z] Genotyping with VarDict: Inference
[2015-12-04T20:57Z] Error in scan(file, what, nmax, sep, dec, quote, skip, nlines, na.strings,  :
[2015-12-04T20:57Z]   line 1 did not have 34 elements
[2015-12-04T20:57Z] Calls: read.table -> scan
[2015-12-04T20:57Z] Execution halted
[2015-12-04T20:57Z] Uncaught exception occurred
Traceback (most recent call last):
  File "/home/bwubb/bcbio-nextgen/anaconda/lib/python2.7/site-packages/bcbio/provenance/do.py", line 21, in run
    _do_run(cmd, checks, log_stdout)
  File "/home/bwubb/bcbio-nextgen/anaconda/lib/python2.7/site-packages/bcbio/provenance/do.py", line 95, in _do_run
    raise subprocess.CalledProcessError(exitcode, error_msg)
CalledProcessError: Command 'set -o pipefail; unset R_HOME && export PATH=/home/bwubb/bcbio-nextgen/anaconda/bin:$PATH && export VAR_DICT_OPTS='-Xms750m -Xmx3500m -XX:+UseSerialGC -Djava.io.tmpdir=/home/bwubb/NGS/MelanomaTargeted/bcbio/data/1205PRT#4p2+/work/vardict/1/tx/tmpKZI1nU' && vardict-java -G /home/bwubb/bcbio-nextgen/genomes/Hsapiens/GRCh37/seq/GRCh37.fa -f 0.1 -N 1205PRT#4p2+ -b /home/bwubb/NGS/MelanomaTargeted/bcbio/data/1205PRT#4p2+/work/bamprep/1205PRT#4p2+/1/1205PRT#4p2+-sort.nsorted.disambiguatedSpeciesA.sorted-1_0_22385180-prep.bam -c 1 -S 2 -E 3 -g 4 /home/bwubb/NGS/MelanomaTargeted/bcbio/data/1205PRT#4p2+/work/vardict/1/1205PRT#4p2+-1_0_22385180-raw-unmerged-regions-regionlimit.bed | teststrandbias.R| var2vcf_valid.pl -N 1205PRT#4p2+ -E -f 0.1  | awk -F$'\t' -v OFS='\t' '{if ($0 !~ /^#/) gsub(/[KMRYSWBVHDX]/, "N", $4) } {print}' |  awk -F$'\t' -v OFS='\t' '$1!~/^#/ && $4 == $5 {next} {print}' | /home/bwubb/bcbio-tools/bin/vcfstreamsort | bgzip -c > /home/bwubb/NGS/MelanomaTargeted/bcbio/data/1205PRT#4p2+/work/vardict/1/tx/tmpKZI1nU/1205PRT#4p2+-1_0_22385180-raw.vcf.gz
Error in scan(file, what, nmax, sep, dec, quote, skip, nlines, na.strings,  :
  line 1 did not have 34 elements
Calls: read.table -> scan
Execution halted
' returned non-zero exit status 1
Traceback (most recent call last):
  File "/home/bwubb/bcbio-tools/bin/bcbio_nextgen.py", line 226, in <module>
    main(**kwargs)
  File "/home/bwubb/bcbio-tools/bin/bcbio_nextgen.py", line 43, in main
    run_main(**kwargs)
  File "/home/bwubb/bcbio-nextgen/anaconda/lib/python2.7/site-packages/bcbio/pipeline/main.py", line 39, in run_main
    fc_dir, run_info_yaml)
  File "/home/bwubb/bcbio-nextgen/anaconda/lib/python2.7/site-packages/bcbio/pipeline/main.py", line 82, in _run_toplevel
    for xs in pipeline.run(config, run_info_yaml, parallel, dirs, samples):
  File "/home/bwubb/bcbio-nextgen/anaconda/lib/python2.7/site-packages/bcbio/pipeline/main.py", line 229, in run
    samples = genotype.parallel_variantcall_region(samples, run_parallel)
  File "/home/bwubb/bcbio-nextgen/anaconda/lib/python2.7/site-packages/bcbio/variation/genotype.py", line 167, in parallel_variantcall_region
    "vrn_file", ["region", "sam_ref", "config"]))
  File "/home/bwubb/bcbio-nextgen/anaconda/lib/python2.7/site-packages/bcbio/distributed/split.py", line 32, in grouped_parallel_split_combine
    final_output = parallel_fn(parallel_name, split_args)
  File "/home/bwubb/bcbio-nextgen/anaconda/lib/python2.7/site-packages/bcbio/distributed/multi.py", line 28, in run_parallel
    return run_multicore(fn, items, config, parallel=parallel)
  File "/home/bwubb/bcbio-nextgen/anaconda/lib/python2.7/site-packages/bcbio/distributed/multi.py", line 86, in run_multicore
    for data in joblib.Parallel(parallel["num_jobs"])(joblib.delayed(fn)(x) for x in items):
  File "/home/bwubb/bcbio-nextgen/anaconda/lib/python2.7/site-packages/joblib/parallel.py", line 657, in __call__
    self.dispatch(function, args, kwargs)
  File "/home/bwubb/bcbio-nextgen/anaconda/lib/python2.7/site-packages/joblib/parallel.py", line 404, in dispatch
    job = ImmediateApply(func, args, kwargs)
  File "/home/bwubb/bcbio-nextgen/anaconda/lib/python2.7/site-packages/joblib/parallel.py", line 142, in __init__
    self.results = func(*args, **kwargs)
  File "/home/bwubb/bcbio-nextgen/anaconda/lib/python2.7/site-packages/bcbio/utils.py", line 51, in wrapper
    return apply(f, *args, **kwargs)
  File "/home/bwubb/bcbio-nextgen/anaconda/lib/python2.7/site-packages/bcbio/distributed/multitasks.py", line 138, in variantcall_sample
    return genotype.variantcall_sample(*args)
  File "/home/bwubb/bcbio-nextgen/anaconda/lib/python2.7/site-packages/bcbio/variation/genotype.py", line 252, in variantcall_sample
    call_file = caller_fn(align_bams, items, sam_ref, assoc_files, region, call_file)
  File "/home/bwubb/bcbio-nextgen/anaconda/lib/python2.7/site-packages/bcbio/variation/vardict.py", line 78, in run_vardict
    assoc_files, region, out_file)
  File "/home/bwubb/bcbio-nextgen/anaconda/lib/python2.7/site-packages/bcbio/variation/vardict.py", line 245, in _run_vardict_paired
    assoc_files, region, out_file)
  File "/home/bwubb/bcbio-nextgen/anaconda/lib/python2.7/site-packages/bcbio/variation/vardict.py", line 148, in _run_vardict_caller
    do.run(cmd.format(**locals()), "Genotyping with VarDict: Inference", {})
  File "/home/bwubb/bcbio-nextgen/anaconda/lib/python2.7/site-packages/bcbio/provenance/do.py", line 21, in run
    _do_run(cmd, checks, log_stdout)
  File "/home/bwubb/bcbio-nextgen/anaconda/lib/python2.7/site-packages/bcbio/provenance/do.py", line 95, in _do_run
    raise subprocess.CalledProcessError(exitcode, error_msg)
subprocess.CalledProcessError: Command 'set -o pipefail; unset R_HOME && export PATH=/home/bwubb/bcbio-nextgen/anaconda/bin:$PATH && export VAR_DICT_OPTS='-Xms750m -Xmx3500m -XX:+UseSerialGC -Djava.io.tmpdir=/home/bwubb/NGS/MelanomaTargeted/bcbio/data/1205PRT#4p2+/work/vardict/1/tx/tmpKZI1nU' && vardict-java -G /home/bwubb/bcbio-nextgen/genomes/Hsapiens/GRCh37/seq/GRCh37.fa -f 0.1 -N 1205PRT#4p2+ -b /home/bwubb/NGS/MelanomaTargeted/bcbio/data/1205PRT#4p2+/work/bamprep/1205PRT#4p2+/1/1205PRT#4p2+-sort.nsorted.disambiguatedSpeciesA.sorted-1_0_22385180-prep.bam -c 1 -S 2 -E 3 -g 4 /home/bwubb/NGS/MelanomaTargeted/bcbio/data/1205PRT#4p2+/work/vardict/1/1205PRT#4p2+-1_0_22385180-raw-unmerged-regions-regionlimit.bed | teststrandbias.R| var2vcf_valid.pl -N 1205PRT#4p2+ -E -f 0.1  | awk -F$'\t' -v OFS='\t' '{if ($0 !~ /^#/) gsub(/[KMRYSWBVHDX]/, "N", $4) } {print}' |  awk -F$'\t' -v OFS='\t' '$1!~/^#/ && $4 == $5 {next} {print}' | /home/bwubb/bcbio-tools/bin/vcfstreamsort | bgzip -c > /home/bwubb/NGS/MelanomaTargeted/bcbio/data/1205PRT#4p2+/work/vardict/1/tx/tmpKZI1nU/1205PRT#4p2+-1_0_22385180-raw.vcf.gz
Error in scan(file, what, nmax, sep, dec, quote, skip, nlines, na.strings,  :
  line 1 did not have 34 elements
Calls: read.table -> scan
Execution halted
' returned non-zero exit status 1

Brad;
Sorry about the problems. The first issue is due to a mismatch between your pre-aligned BAM and the reference genome you selected. It looks like the BAM was aligned against GRCh37 (1, 2, 3..) and the reference genome is hg19 (chr1, chr2, chr3...). You either need to select compatible genomes, or realign the inputs with bcbio to avoid the problem.
For the second issue, it looks like vardict is failing on some of the samples, so the post-processing R script is complaining about empty inputs. It's a bit hard to debug this remotely but happy to help more if you could reproduce with the failing command line and make the BAM file available:
unset R_HOME && export PATH=/home/bwubb/bcbio-nextgen/anaconda/bin:$PATH && export VAR_DICT_OPTS='-Xms750m -Xmx3500m -XX:+UseSerialGC && vardict-java -G /home/bwubb/bcbio-nextgen/genomes/Hsapiens/GRCh37/seq/GRCh37.fa -f 0.1 -N 1205PRT#4p2+ -b /home/bwubb/NGS/MelanomaTargeted/bcbio/data/1205PRT#4p2+/work/bamprep/1205PRT#4p2+/1/1205PRT#4p2+-sort.nsorted.disambiguatedSpeciesA.sorted-1_0_22385180-prep.bam -c 1 -S 2 -E 3 -g 4 /home/bwubb/NGS/MelanomaTargeted/bcbio/data/1205PRT#4p2+/work/vardict/1/1205PRT#4p2+-1_0_22385180-raw-unmerged-regions-regionlimit.bed | teststrandbias.R | var2vcf_valid.pl -N 1205PRT#4p2+ -E -f 0.1 > test.vcf

If you're running an older version of vardict-java it also might be worth doing a bcbio_nextgen.py upgrade --tools as there have been a couple of fixes recently for edge cases. Hope this helps.

Thanks. I will try the tools upgrade first then see about generating the command line error. The fist issue seems very odd to me. I have never used an hg19 fasta ever. The yaml specifies GRCh37 with an mm10 disambiguation. While the GrCh37 fasta I use is slightly different from the one provided with bcbio, the main chromosome numbering and order is the same. I guess the best thing to do would be to re-align with bcbio provided GRCh37 fasta and see if that fixes the issue. Thanks.

Brad;
Thanks for checking the issue. Apologies, despite the title of this issue it totally escaped my mind that you were doing disambiguation when replying. You definitely need to realign with disambiguation since it needs to perform alignment against both the original GRCh37 and mm10, then use this to make the determination about what aligns better to human. It's probably getting confused without alignment and starting to assess the mm10 genome. Hopefully doing alignment fixes that issue. Thanks again.

Ok I need to make sure I am executing this correctly. The posted command was missing a closing single quote, which I placed before the first pipe operator. However the test.vcf was empty except for the header lines.
Which bam file do your require, the *-prep.bam in the command? And what is the best way to make that available for you?

You definitely need to realign with disambiguation since it needs to perform alignment against both the original GRCh37 and mm10, then use this to make the determination about what aligns better to human.

Can you clarify that more? I changed my prealignment reference to the GRCh37.fa included with bcbio, but I still receive this error, despite that bams in other samples that were not prealigned having the 1 vs chr1 between the respective GRCh37 and mm10 reference.fa(s).
Are you saying I need to set aligner to bwa in the yaml, where as I currently have it set to false? Will that work if the file input is a bam? Thanks.

Perhaps you could do a samtools idxstats on one of your prealigned BAMs and post its output as well as the content of your yaml here for further discussion? Disambiguation is explained in the docs, so make sure to have a look if you haven't already.

Hi @bwubb,
disambiguation needs to align to both reference genomes to run properly, so the aligner needs to be turned on for it to run, bwa would be a good choice. I updated the docs to mention this here: http://bcbio-nextgen.readthedocs.org/en/latest/contents/configuration.html#alignment

Brad;
For the first problem, Rory is right on with the requirement for an aligner -- apologies to not have been more clear in my previous reply.
For your test run on the second problem -- it worked okay without generating any errors? Is this after upgrading VarDict? If so, you might want to try re-running the pipeline before sending anything along. The errors you saw previously could have been from an old version. If it's still failing consistently and you can identify a small test case that fails happy to look into that, but I hope the re-run will fix it.
'
Thanks much.

Thank you for the help. Im sorry my first issue was user error instead of a real issue. I thought aligner was only for aligning fastqs. Analysis was successful after resetting to bwa.
I am in the process of rerunning a sample suffering from issue #2 from scratch.

Issue #2 is still present. I upgraded to the latest developement, deleted the work dir, and reran the analysis with a single core.
[2015-12-22T05:21Z] Index BAM file: 1205PRT#3p2+-sort.nsorted.disambiguatedSpeciesA.sorted-noanalysis-prep.bam
[2015-12-22T05:21Z] Timing: variant calling
[2015-12-22T05:21Z] multiprocessing: variantcall_sample
[2015-12-22T05:21Z] Genotyping with VarDict: Inference
[2015-12-22T05:21Z] Error in scan(file, what, nmax, sep, dec, quote, skip, nlines, na.strings,  :
[2015-12-22T05:21Z]   line 1 did not have 34 elements
[2015-12-22T05:21Z] Calls: read.table -> scan
[2015-12-22T05:21Z] Execution halted
[2015-12-22T05:21Z] Uncaught exception occurred
Traceback (most recent call last):
  File "/home/bwubb/bcbio-nextgen/anaconda/lib/python2.7/site-packages/bcbio/provenance/do.py", line 21, in run
    _do_run(cmd, checks, log_stdout)
  File "/home/bwubb/bcbio-nextgen/anaconda/lib/python2.7/site-packages/bcbio/provenance/do.py", line 95, in _do_run
    raise subprocess.CalledProcessError(exitcode, error_msg)
CalledProcessError: Command 'set -o pipefail; unset R_HOME && export PATH=/home/bwubb/bcbio-nextgen/anaconda/bin:$PATH && export VAR_DICT_OPTS='-Xms750m -Xmx3500m -XX:+UseSerialGC -Djava.io.tmpdir=/home/bwubb/NGS/MelanomaTargeted/bcbio/data/1205PRT#3p2+/work/vardict/1/tx/tmpDSwATC' && vardict-java -G /home/bwubb/bcbio-nextgen/genomes/Hsapiens/GRCh37/seq/GRCh37.fa -f 0.1 -N 1205PRT#3p2+ -b /home/bwubb/NGS/MelanomaTargeted/bcbio/data/1205PRT#3p2+/work/bamprep/1205PRT#3p2+/1/1205PRT#3p2+-sort.nsorted.disambiguatedSpeciesA.sorted-1_0_22384017-prep.bam -c 1 -S 2 -E 3 -g 4 -Q 10 /home/bwubb/NGS/MelanomaTargeted/bcbio/data/1205PRT#3p2+/work/vardict/1/1205PRT#3p2+-1_0_22384017-raw-unmerged-regions-regionlimit.bed | teststrandbias.R| var2vcf_valid.pl -N 1205PRT#3p2+ -E -f 0.1  | awk -F$'\t' -v OFS='\t' '{if ($0 !~ /^#/) gsub(/[KMRYSWBVHDX]/, "N", $4) } {print}' |  awk -F$'\t' -v OFS='\t' '$1!~/^#/ && $4 == $5 {next} {print}' | /home/bwubb/bcbio-tools/bin/vcfstreamsort | bgzip -c > /home/bwubb/NGS/MelanomaTargeted/bcbio/data/1205PRT#3p2+/work/vardict/1/tx/tmpDSwATC/1205PRT#3p2+-1_0_22384017-raw.vcf.gz
Error in scan(file, what, nmax, sep, dec, quote, skip, nlines, na.strings,  :
  line 1 did not have 34 elements
Calls: read.table -> scan
Execution halted
' returned non-zero exit status 1
Traceback (most recent call last):
  File "/home/bwubb/bcbio-tools/bin/bcbio_nextgen.py", line 226, in <module>
    main(**kwargs)
  File "/home/bwubb/bcbio-tools/bin/bcbio_nextgen.py", line 43, in main
    run_main(**kwargs)
  File "/home/bwubb/bcbio-nextgen/anaconda/lib/python2.7/site-packages/bcbio/pipeline/main.py", line 39, in run_main
    fc_dir, run_info_yaml)
  File "/home/bwubb/bcbio-nextgen/anaconda/lib/python2.7/site-packages/bcbio/pipeline/main.py", line 82, in _run_toplevel
    for xs in pipeline(config, run_info_yaml, parallel, dirs, samples):
  File "/home/bwubb/bcbio-nextgen/anaconda/lib/python2.7/site-packages/bcbio/pipeline/main.py", line 146, in variant2pipeline
    samples = genotype.parallel_variantcall_region(samples, run_parallel)
  File "/home/bwubb/bcbio-nextgen/anaconda/lib/python2.7/site-packages/bcbio/variation/genotype.py", line 169, in parallel_variantcall_region
    "vrn_file", ["region", "sam_ref", "config"]))
  File "/home/bwubb/bcbio-nextgen/anaconda/lib/python2.7/site-packages/bcbio/distributed/split.py", line 32, in grouped_parallel_split_combine
    final_output = parallel_fn(parallel_name, split_args)
  File "/home/bwubb/bcbio-nextgen/anaconda/lib/python2.7/site-packages/bcbio/distributed/multi.py", line 28, in run_parallel
    return run_multicore(fn, items, config, parallel=parallel)
  File "/home/bwubb/bcbio-nextgen/anaconda/lib/python2.7/site-packages/bcbio/distributed/multi.py", line 86, in run_multicore
    for data in joblib.Parallel(parallel["num_jobs"])(joblib.delayed(fn)(x) for x in items):
  File "/home/bwubb/bcbio-nextgen/anaconda/lib/python2.7/site-packages/joblib/parallel.py", line 804, in __call__
    while self.dispatch_one_batch(iterator):
  File "/home/bwubb/bcbio-nextgen/anaconda/lib/python2.7/site-packages/joblib/parallel.py", line 662, in dispatch_one_batch
    self._dispatch(tasks)
  File "/home/bwubb/bcbio-nextgen/anaconda/lib/python2.7/site-packages/joblib/parallel.py", line 570, in _dispatch
    job = ImmediateComputeBatch(batch)
  File "/home/bwubb/bcbio-nextgen/anaconda/lib/python2.7/site-packages/joblib/parallel.py", line 183, in __init__
    self.results = batch()
  File "/home/bwubb/bcbio-nextgen/anaconda/lib/python2.7/site-packages/joblib/parallel.py", line 72, in __call__
    return [func(*args, **kwargs) for func, args, kwargs in self.items]
  File "/home/bwubb/bcbio-nextgen/anaconda/lib/python2.7/site-packages/bcbio/utils.py", line 51, in wrapper
    return apply(f, *args, **kwargs)
  File "/home/bwubb/bcbio-nextgen/anaconda/lib/python2.7/site-packages/bcbio/distributed/multitasks.py", line 143, in variantcall_sample
    return genotype.variantcall_sample(*args)
  File "/home/bwubb/bcbio-nextgen/anaconda/lib/python2.7/site-packages/bcbio/variation/genotype.py", line 254, in variantcall_sample
    call_file = caller_fn(align_bams, items, sam_ref, assoc_files, region, call_file)
  File "/home/bwubb/bcbio-nextgen/anaconda/lib/python2.7/site-packages/bcbio/variation/vardict.py", line 80, in run_vardict
    assoc_files, region, out_file)
  File "/home/bwubb/bcbio-nextgen/anaconda/lib/python2.7/site-packages/bcbio/variation/vardict.py", line 247, in _run_vardict_paired
    assoc_files, region, out_file)
  File "/home/bwubb/bcbio-nextgen/anaconda/lib/python2.7/site-packages/bcbio/variation/vardict.py", line 150, in _run_vardict_caller
    do.run(cmd.format(**locals()), "Genotyping with VarDict: Inference", {})
  File "/home/bwubb/bcbio-nextgen/anaconda/lib/python2.7/site-packages/bcbio/provenance/do.py", line 21, in run
    _do_run(cmd, checks, log_stdout)
  File "/home/bwubb/bcbio-nextgen/anaconda/lib/python2.7/site-packages/bcbio/provenance/do.py", line 95, in _do_run
    raise subprocess.CalledProcessError(exitcode, error_msg)
subprocess.CalledProcessError: Command 'set -o pipefail; unset R_HOME && export PATH=/home/bwubb/bcbio-nextgen/anaconda/bin:$PATH && export VAR_DICT_OPTS='-Xms750m -Xmx3500m -XX:+UseSerialGC -Djava.io.tmpdir=/home/bwubb/NGS/MelanomaTargeted/bcbio/data/1205PRT#3p2+/work/vardict/1/tx/tmpDSwATC' && vardict-java -G /home/bwubb/bcbio-nextgen/genomes/Hsapiens/GRCh37/seq/GRCh37.fa -f 0.1 -N 1205PRT#3p2+ -b /home/bwubb/NGS/MelanomaTargeted/bcbio/data/1205PRT#3p2+/work/bamprep/1205PRT#3p2+/1/1205PRT#3p2+-sort.nsorted.disambiguatedSpeciesA.sorted-1_0_22384017-prep.bam -c 1 -S 2 -E 3 -g 4 -Q 10 /home/bwubb/NGS/MelanomaTargeted/bcbio/data/1205PRT#3p2+/work/vardict/1/1205PRT#3p2+-1_0_22384017-raw-unmerged-regions-regionlimit.bed | teststrandbias.R| var2vcf_valid.pl -N 1205PRT#3p2+ -E -f 0.1  | awk -F$'\t' -v OFS='\t' '{if ($0 !~ /^#/) gsub(/[KMRYSWBVHDX]/, "N", $4) } {print}' |  awk -F$'\t' -v OFS='\t' '$1!~/^#/ && $4 == $5 {next} {print}' | /home/bwubb/bcbio-tools/bin/vcfstreamsort | bgzip -c > /home/bwubb/NGS/MelanomaTargeted/bcbio/data/1205PRT#3p2+/work/vardict/1/tx/tmpDSwATC/1205PRT#3p2+-1_0_22384017-raw.vcf.gz
Error in scan(file, what, nmax, sep, dec, quote, skip, nlines, na.strings,  :
  line 1 did not have 34 elements
Calls: read.table -> scan
Execution halted
' returned non-zero exit status 1

I hope I did not forget something...
Let me know what more I can do to help debug. Thank you.

Brad;
Sorry about the continued problems. vardict is having trouble with something in those files but unfortunately doesn't provide enough information in these error messages to help us debug. The R script fails because vardict is spitting out incorrect data so I guess we need to figure out the output. My suggestions for debugging are that you could send me this file off list and I could try to look at:
1205PRT#3p2+-sort.nsorted.disambiguatedSpeciesA.sorted-1_0_22384017-prep.bam

or you could look at the output of:
export VAR_DICT_OPTS='-Xms750m -Xmx3500m -XX:+UseSerialGC && vardict-java -G /home/bwubb/bcbio-nextgen/genomes/Hsapiens/GRCh37/seq/GRCh37.fa -f 0.1 -N 1205PRT#3p2+ -b /home/bwubb/NGS/MelanomaTargeted/bcbio/data/1205PRT#3p2+/work/bamprep/1205PRT#3p2+/1/1205PRT#3p2+-sort.nsorted.disambiguatedSpeciesA.sorted-1_0_22384017-prep.bam -c 1 -S 2 -E 3 -g 4 -Q 10 /home/bwubb/NGS/MelanomaTargeted/bcbio/data/1205PRT#3p2+/work/vardict/1/1205PRT#3p2+-1_0_22384017-raw-unmerged-regions-regionlimit.bed

to determine if something looks wrong.
Sorry to not have a more detailed idea of the problem but hope this helps some.


Add URL Scroll-To-Text Fragment feature

This looks like a pretty awesome feature that many people will want to use.
Chrome is shipping it now, but other browsers seem hesitant to implement it - most likely creating a complicated landscape of compatibility.

I think it makes a lot of sense to have this feature as an entry in caniuse.
Closes #5102

Thanks!

FYI: even though Chromestatus states this to be true I don't think it is. 👇 See screenshots of Chrome and Canary for the same URL (https://en.wikipedia.org/wiki/Cat#:~:text=As of 2017)
Chrome:

Chrome Canary:

@stefanjudis thanks for noting! I was pretty sure this would happen... @jpmedley something you could update? I assume it will be enabled in Chrome 81 instead?
https://www.chromestatus.com/feature/4733392803332096

Sorry for the late reply. I'll look into this.

The Chrome Status entry is incorrect. It should say Chrome 82.

Allright, thanks for checking it out!


have default breakdown in remove liquidity modal

show outcomes with 0 breakdown when user isn't approved and the estimate hasn't been run

fixed, show dash until user approves and if already approved tell user their portion of pool.


Deployment '' not found

This is related to Deployment not found #2251
Scenario:

Python 3.8.12
Azure Core Tools 4x
VS Code UI used to submit deployment to existing function app
Function app contains only HTTP request functions
Function is built in cloud (this setting was modified using the powershell command and has been verified in settings.json)
No settings in vscode extension modified
Requirements file indicates the following:

azure-functions
azure-identity
azure-keyvault-secrets
az.cli
datetime

Summary
During deployment through the VS code GUI the function app intermittently fails, citing that the deployment was not found. Searching the activity logs for any activity, including or excluding the returned deployment id, yields no results. I have confirmed that the storage account has a working key-based connection string in the app configuration in azure. The most reliable mitigation steps I have found so far are to manually stop the function app or otherwise wait several minutes to try redeploying after a failure.
Logs below:

5:48:05 PM AppName: Starting deployment...
5:48:06 PM AppName: Creating zip package...
5:48:06 PM AppName: Zip package size: 4.4 kB
5:48:08 PM AppName: Fetching changes.
5:48:09 PM AppName: Cleaning up temp folders from previous zip deployments and extracting pushed zip file /tmp/zipdeploy/382730b5-5589-4e96-b923-d7fb0ae27769.zip (0.00 MB) to /tmp/zipdeploy/extracted
5:48:11 PM AppName: Updating submodules.
5:48:12 PM AppName: Preparing deployment for commit id 'b7f00c51-a'.
5:48:12 PM AppName: PreDeployment: context.CleanOutputPath False
5:48:12 PM AppName: PreDeployment: context.OutputPath /home/site/wwwroot
5:48:12 PM AppName: Repository path is /tmp/zipdeploy/extracted
5:48:12 PM AppName: Running oryx build...
5:48:12 PM AppName: Command: oryx build /tmp/zipdeploy/extracted -o /home/site/wwwroot --platform python --platform-version 3.8 -p packagedir=.python_packages/lib/site-packages
5:48:14 PM AppName: Operation performed by Microsoft Oryx, https://github.com/Microsoft/Oryx
5:48:14 PM AppName: You can report issues at https://github.com/Microsoft/Oryx/issues
5:48:14 PM AppName: Oryx Version: 0.2.20210120.1, Commit: 66c7820d7df527aaffabd2563a49ad57930999c9, ReleaseTagName: 20210120.1
5:48:14 PM AppName: Build Operation ID: |Bqu4Kc9l2e4=.137a42a6_
5:48:14 PM AppName: Repository Commit : b7f00c51-ac8f-4dec-90de-e2236f9b13a3
5:48:14 PM AppName: Detecting platforms...
5:48:16 PM AppName: Detected following platforms:
5:48:16 PM AppName:   python: 3.8.12
5:48:16 PM AppName: Version '3.8.12' of platform 'python' is not installed.

Thank you for the detailed issue report.
Just to clarify, when you see this error, does the deployment actually fail, or is this a false negative?

Alex,
Thanks for your swift reply. It does actually fail. The function app remains unchanged in Azure.
From: Alex Weininger @.>
Sent: Thursday, June 9, 2022 3:15 PM
To: microsoft/vscode-azurefunctions @.>
Cc: Matthew Warren @.>; Author @.>
Subject: Re: [microsoft/vscode-azurefunctions] Deployment '' not found (Issue #3217)
Thank you for the detailed issue report.
Just to clarify, when you see this error, does the deployment actually fail, or is this a false negative?

Reply to this email directly, view it on GitHubhttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fmicrosoft%2Fvscode-azurefunctions%2Fissues%2F3217%23issuecomment-1151672952&data=05|01|mawarren%40microsoft.com|ebb6bf8ceb3b46b6b77808da4a6570b0|72f988bf86f141af91ab2d7cd011db47|1|0|637904096794129981|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|3000|||&sdata=IRF5tauAtmR2GQ82lRunp5HGPZX94t4r8oU%2BW9L1MZc%3D&reserved=0, or unsubscribehttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAXU7MHLXXMZNLZA5VPDRNL3VOJUEZANCNFSM5YLQKYUA&data=05|01|mawarren%40microsoft.com|ebb6bf8ceb3b46b6b77808da4a6570b0|72f988bf86f141af91ab2d7cd011db47|1|0|637904096794129981|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|3000|||&sdata=zvMFEj6b03mCKqmLrVV3rmVgPRgk6V1%2FJiDqAqBDtpQ%3D&reserved=0.
You are receiving this because you authored the thread.Message ID: @.***>

Fixed by https://github.com/microsoft/vscode-azurefunctions/pull/3254


Multi-Tenant support

Hi,
how to make this application work with the multi tenant. I selected the Multitenant option in manage azure portal for this app, just as try but that did not worked. there are other sample application which demo about multi-tenant but i could not understood it properly..
how to make this app multitenant

Have you seen the instructions on this page?
https://github.com/microsoftgraph/php-connect-rest-sample/wiki/How-to:-Make-my-Azure-web-application-multi-tenant
It could be that your App ID URI isn't a verified custom domain.

thanks james, it worked :+1:  wish you a very good day ahead..

I'm glad it worked. Thanks for following up.

i think you should also mention somewhere that this app supports multitenant and some instruction about it, i have found few application about the multitenant but they were little complicated..https://github.com/OfficeDev/O365-WebApp-MultiTenant and this https://github.com/Azure-Samples/active-directory-dotnet-webapp-multitenant-openidconnect


Makefile: Add all target.

"all" is a typical name for the default make target, so add it as an
alias for "default".  Then I can happily run "make clean all".

Build SUCCESS, see build http://<IP_ADDRESS>:8080/job/dev-tools/267/


LetterSpacing

This contains the implementation of LetterSpacing #98  and a example.
Im not sure the example worth to stay there, but at least you can use it as a line-break validator.
I choose to put computed letterSpacing value as Text inlines.element property because the letterSpacing value was also required in InlineManager.distanceToNextBreak. Which only had Text.inlines as available parameters right now.
It waste a bit of memory because every Text.inlines.element of a same Text has now the same value behind letterSpacing property. But I did not want to start nor to propose a refactoring of InlineManager.distanceToNextBreak
This is why updating the letterSpacing property might also require a parsingNeedsUpdate

Thanks a lot for your work, this is very clean.
There is things that I think could be improved with your implementation though:

it needs a parsingUpdate (as you mentioned), so it's a bigger performance hit.
you can't set it on the container, which would arguably be more convenient in some cases.

Firstly, in order to be able to set letterSpacing on a parent containing many Text components, you should fetch letterSpacing with _getProperty in MeshUIComponent.
Secondly I don't think we should need a parsing update here. We should be able to pass letters spacing to InlineManager without having to recompute all the letters dimensions.
This is where I propose to get the spacing value. You could do something like this:
const lp = inlineComponent.isText ? inlineComponent.getLetterSpacing() : 0;

I've update the PR with your suggestions.
I've overwritten the second fontSize case with letterSpacing.
I've just a question about the following :

This is where I propose to get the spacing value. You could do something like this:
const ls = inlineComponent.isText ? inlineComponent.getLetterSpacing() : 0;

Is that useful only because we can put pictures and icons which don't have to suffer from letterSpacing ? Because as this property is now available on blocks and text, if this is not set, it will defaults to zero anyway.

OK it looks good to me.

Is that useful only because we can put pictures and icons which don't have to suffer from letterSpacing ?

Well since the property propagates to children, I thought users might be annoyed that letterSpacing also has an effect on InlineBlocks when setting it on the root component. I'm not sure about this though, it's really a design decision. What do you think ?

I lack pratices with this library. I really just have used Text component for now, so I really can't tell.
The point behind that question was to understand a bit more 'why', and your response answered that.

Merged and published to NPM as v5.5.0, thanks a lot !

Unfortunately something went bad, and line-breaking is now wrong on all examples


now how to use the attack animation on the opponent?

Describe your problem here.
I was trying to find on the internet how to use the attack animation (of the enemy) on a .Lua Script. does anyone have any idea to make him start using the animation??
Are you modding a build from source or with Lua?
Lua
What is your build target?
Windows x64
Did you edit anything in this build? If so, mention or summarize your changes.
Nope, didn't even check it.

function onCreate()
--the middle value attack is nit the anim name in xml but the anim name in json like singUP
characterPlayAnim('dad', 'attack', true);
--this code makes it so the idle anim will not override the attack anim
setProperty('dad.specialAnim', true);
end


Chrome not launching in release mode

THere is ./local chromium  folder present but ,chrome is not launching in release mode desktop windows

i just solved it,For first time when launching puppeter ,must run as administartor mode,so that it can store with permissions


Spyder 5.4.1 not starting with BASH functions in environment

Problem Description
During start:
File "/home/xxx/.conda/envs/spy/lib/python3.10/site-packages/spyder/utils/environ.py", line 63, in get_user_environment_variables
    k, v = kv.split('=', 1)
ValueError: not enough values to unpack (expected 2, got 1)

Looking at my env there are multi-line "bash-functions" that crash the split. I cannot remove them easily as bash is my default shell and it recreates them.
Working fix:
spyder/utils/environ.py
def get_user_environment_variables():
    """
    Get user environment variables from a subprocess.

    Returns
    -------
    env_var : dict
        Key-value pairs of environment variables.
    """
    if os.name == 'nt':
        cmd = "set"
    else:
        cmd = "printenv"
    proc = run_shell_command(cmd)
    stdout, stderr = proc.communicate()
    res = stdout.decode().strip().split(os.linesep)
    env_var = {}
    for kv in res:
        try:
           k, v = kv.split('=', 1)
           env_var[k] = v
        except ValueError:
           continue

    return env_var

Related to https://github.com/spyder-ide/spyder/pull/20106
Surprised that it is not more urgent?

Hey @chhu, thanks for reporting. This is a duplicate of issue #20097 and it'll be fixed in our next version (5.4.2), to be released as soon as possible due to the severity of this bug.


[BUG] - Content is blinking when loopPages and contentLoadingPolicy are active

Describe the bug
Content is blinking when user scrolling through the list.
It happends only when
view
.loopPages()
.contentLoadingPolicy(.eager)

If you use just .loopPages() without .contentLoadingPolicy(.eager) the problem disappear.
To Reproduce
Simulated on the code below.
struct InfiniteExampleView: View {

    @StateObject var page1 = Page.withIndex(2)
    @StateObject var page2 = Page.first()
    @State var data1 = Array(0..<7)
    @State var isPresented: Bool = false
    var data2 = Array(0..<20)

    var body: some View {
        Pager(page: self.page2,
              data: self.data2,
              id: \.self) {
                self.pageView($0)
        }
              .contentLoadingPolicy(ContentLoadingPolicy.eager)
              .loopPages()
    }

    func pageView(_ page: Int) -> some View {
        ZStack {
            if page % 2 == 0 {
                Color.red
            } else {
                Color.blue
            }
        }
        .cornerRadius(5)
        .shadow(radius: 5)
    }
}

Environment:

Device iPhone8
SwiftUIPager 2.3.3

@Catah97 this is a known issue, loopPages and .eager policy.
Why do you need it to be eager? Remove the contentLoadingPolicy for a better performance

We would like to use Pager to shown ads in out app. Ad mean pictures that will cycling forever in the loop. These pictures are downloading from web and it could be nice to preload them all at once. The count of ads is low something between 3 to 10 so this should not be performance issue.

But it seem that default behavior that preload 5 ads will be enough for us. So I apologize for spam.


Data points being shifted when retrieving multiple series

I am seeing an issue where the data points for one series are being shifted to match the start time of another series that was requested.
For example, suppose I request from Graphite the sum of series x.y.z.* for time frame A to D.  Let's assume that Cyanite returns two matching series: x.y.z.foo and x.y.z.bar.  The graphite-cyanite plugin then loops through these two different paths for that time frame.
Now suppose that Cassandra only has data points for x.y.z.foo for a subset of that time.  Cyanite will respond with data points from an adjusted time frame of B to D.
Next the plugin requests the data points for x.y.z.bar.  This time Cassandra only has data points for time frame C to D.
The graphite-cyanite plugin is only remembering the adjusted time frame from the first path requested.  The data points for the second path are basically being shifted to match the start time of the first path instead of inserting null values for the larger time frame.
I think what needs to be done is to cache the adjusted start time for each series.  Once all of the data has been requested, the plugin needs to pick the earliest start time and insert null values accordingly.

I have made some changes to the CyaniteReader class that seems to fix this issue.  It basically back fills the series list to the request start time with null values.  Here is an updated fetch method from CyaniteReader:
    def fetch(self, start_time, end_time):
        data = requests.get(urls.metrics, params={'path': self.path,
                                                  'from': start_time,
                                                  'to': end_time}).json()
        if 'error' in data:
            return (start_time, end_time, end_time - start_time), []
        if len(data['series']) == 0:
            return

        tmpTime = data['from']
        while (tmpTime - data['step']) >= start_time :
            tmpTime = tmpTime - data['step']
            data['series'].get(self.path, []).insert(0, None)

        time_info = tmpTime, data['to'], data['step']
        return time_info, data['series'].get(self.path, [])


Include of external C code broken: add_include_file in Symtab.py unfinished

I use a statement similar to
cdef extern from "myfile.c":
      void myfunction(unsigned char arr[], unsigned char result[])

in my .pyx file.
This works fine in Cygwin (cython/cython3 0.25) but fails in Windows (cython 0.29) with a Type Error:
File "C:\Python37\lib\site-packages\Cython\Compiler\Nodes.py", line 499, in analyse_declarations
  env.add_include_file(self.include_file, self.verbatim_include, late)
TypeError: add_include_file() takes 2 positional arguments but 4 were given

The reason seems to be that in Compiler/Symtab.py, the signature of ModuleScope::add_include_file has been enhanced to 4 arguments:
https://github.com/cython/cython/blob/3bc22a95b4ff59ed7b19c92e531da0d37267822f/Cython/Compiler/Symtab.py#L1298
Unfortunately, Scope::add_include_file has not been adapted properly:
https://github.com/cython/cython/blob/3bc22a95b4ff59ed7b19c92e531da0d37267822f/Cython/Compiler/Symtab.py#L972
As soon as I modify Scope::add_include_file to just forward the new arguments, everything is working again.

Very nice, thank you.


Include search support for id, integer, and decimal fields.

This PR adds support for searching against id, integer, and decimal fields.
Closes #134

I just realized I might have done some extra work needlessly with this PR. I tried to add :integer and :decimal to search fields while they were already working apparently (casting to string). So this PR only adds the ability to search :id fields.


Please don't let EmulationStation languish!

EmulationStation is great! You rock for creating it. We love it! Not just raspberry pi users, but Linux users and other platforms. I still do a 'git pull' in my EmulationStation build dir every few weeks, just in case there's something new...
I get that life and priorities change, but how about adding some of the people who've submitted the open pull requests to the project and letting them merge in their pull requests? You can still veto or fix stuff you don't like ;)
This thing is so great... let's keep the momentum alive. It needs an Ubuntu PPA and autobuild packages. I'd be willing to help with some of that. The main theme really should be in the same repo, and the builds should have an installer that includes the theme. I have all sorts of stuff I've added to the themes, I'd love to contribute back in a central area.
... and then there's the future. There's already a lot of better scrapers out there - let's get them in the main codebase. I'd like to have a better font with lowercase and some better unicode support. I'd love to have sound effects. I'd love to have support for videos if they exist for a title. I've scraped my Steam games manually, but there has to be a way to automate it... I bet someone's already done it.
Oh, and what's really missing... a FAVORITES section! I'd like to tag any number of my favorites games from any other sections and navigate them from one place. That's probably the one feature I long for the most.
Thanks again for everything. Long live EmulationStation!

Looks to be no longer maintained
https://github.com/Aloshi/EmulationStation/issues/563#issuecomment-198787794
Would love to gather those interesting in maintaining and expanding on the project.  possibly as a fork?


Enable all in JobRunnerTest

Enable all in JobRunnerTest. First commit separately in https://github.com/azkaban/azkaban/pull/1445.
This works but is a bit slow with all the sleeps in place:

I think this can be made run quickly, but I wonder if these tests are useful or not :)

Now that I stopped to look, also all of these tests seem to be worth enabling. Do you agree on changing all of them to use the InteractiveTestJob so that it can run as quick as possible?

Yes, if they can be fixed to run quickly and reliably.  Thanks.

I will revisit this once https://github.com/azkaban/azkaban/pull/1469 has been dealt with.

Replaced by https://github.com/azkaban/azkaban/pull/1479


Error: No tools_call in message in langgraph with anthropic

fix https://github.com/langchain-ai/langgraphjs/issues/206#issuecomment-2504595375
Fixes https://github.com/langchain-ai/langgraphjs/issues/206

oups i forgot the signature
async parseResult(generations: ChatGeneration[]): Promise<ParsedToolCall[]> {

@scenaristeur this looks reasonable, but before I approve could you send me some code I can run which will trigger the error that this PR fixes? Thank you!

Superviser tuto
https://github.com/langchain-ai/langgraphjs/issues/206

@scenaristeur this looks reasonable, but before I approve could you send me some code I can run which will trigger the error that this PR fixes? Thank you!

Superviser tuto langchain-ai/langgraphjs#206

The issue in that notebook is unrelated to the ChatAnthropic class. Checkout my comment here. I'm going to close this PR for now, but if you still get this error, please send me a code snippet I can use to reproduce it (without deprecated code) and we can go from there. Thank you


chore: export dupsort macro

First PR for reth.
Added macro_export for macro dupsort! (reth_db).

Codecov Report

Merging #1981 (fff1106) into main (cb31819) will decrease coverage by 55.71%.
The diff coverage is n/a.

:mega: This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more
@@             Coverage Diff             @@
##             main    #1981       +/-   ##
===========================================
- Coverage   73.08%   17.38%   -55.71%
===========================================
  Files         426      426
  Lines       52167    52167
===========================================
- Hits        38128     9069    -29059
- Misses      14039    43098    +29059

Flag
Coverage Δ

integration-tests
17.38% <ø> (-2.12%)
:arrow_down:

unit-tests
?

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files
Coverage Δ

crates/storage/db/src/tables/mod.rs
0.00% <ø> (ø)

... and 307 files with indirect coverage changes
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.


rke worker upgrade logic

Types: https://github.com/rancher/types/pull/1094
rancher/rancher#23038
related issues:
https://github.com/rancher/rancher/issues/24073
https://github.com/rancher/rancher/issues/23897
https://github.com/rancher/rancher/issues/25503
https://github.com/rancher/rancher/issues/25329
https://github.com/rancher/rancher/issues/23898

like discussed offline we'll also need logic in cluster store to set UpgradeStrategy and MaxUnavailable defaults since UpgradeStrategy is a pointer field and won't be set with defaults in spite of having them in types

Just two things, rest LGTM


Could we ever know value contained in mixed return value?

https://www.figma.com/plugin-docs/api/properties/figma-mixed/
if mixed returned, let's say font size as in the docs.
Can we ever get, at least, array of numbers of the text's font size?

You can get them character by character: https://www.figma.com/plugin-docs/api/TextNode/#text-range-functions

That will do the magic. Thanks a lot.


Tracking url isn't correct

I am unable to get Owncloud tracking into Piwik. I am able to see the outbound request going to my piwik install in Firefox debugger is a 404 error The exact request is.....
https://mypiwik.com/piwik.js/piwik.php?action_name=Files - ownCloud&idsite=123&rec=1&r=124964&h=22&m=26&s=53&url=ht..................
My settings are Site ID = 123   &  Piwik URL  = https://mypiwik.com/ and Use internal piwik library = enabled.
I think the request should just be https://mypiwik.com/piwik.php?action........  but am not 100% sure can you help ?
If I disable the "Use internal piwik Library" option then I don't see any outbound requests in firefox debugger.
Thanks
Keith.

Hi, I just upgraded our OwnCloud install from 8.1.3 to 8.2.0 and the piwik plug-in is now working ! :>)

Thank you for reporting. It is a bit odd, that it only works with 8.2 for your, but if it works, I will not complain ;-).


Fixing pub warnings

Removed files that shouldn't be commited (.flutter-..., .vscode)
Formatted files
Added files to .gitignore

Sorry for posting this error here. But the issues section is closed.
I am facing this error.

I have the same issue, seems to not support finding an address from coordinates

@nehal076 and @proformance can I know how are you adding these dependencies to pubspec.yaml? I mean using git url or pub - version?

I added this dependency via pubspec.yaml

flutter_geocoder is not null safe

@nehal076 I mean what is the version reference?
flutter_geocoder: ^{version}

OR

flutter_geocoder:
  git:
    url: ....

``` which format?

flutter_geocoder

why don't you at least check it

sorry sir
i am getting error
the plugin 'flutter_geocoder' uses a deprecated version of the android embedding.
try to see if this plugin supports the android V2 embedding

@mordhawaj Check the original repo then.

the plugin flutter_geocoder uses a deprecated version of the Android embedding.
To avoid unexpected runtime failures, or future build failures, try to see if this plugin supports the Android V2 embedding. Otherwise, consider removing it since a future release of Flutter will remove these deprecated APIs.
If you are plugin author, take a look at the docs for migrating the plugin to the V2 embedding: https://flutter.dev/go/android-plugin-migration.
exit code 0

@yahu1031

Not relevant here @mohadel92. please raise a new issue.


Can't create new poll option in updatePollVote

Description of the problem
I wrote a little script that automatically votes on a poll some time ago. It was working perfectly, but I recently saw that it suddently doesn't.
Code to reproduce
# This works(of course if poll has some options):
self.updatePollVote(poll.uid, option_ids=[poll.options[0].uid])
# This doesn't:
self.updatePollVote(poll.uid, new_options=['New Option'])

Traceback
Traceback (most recent call last):
  File "/home/mateusz/.local/lib/python3.7/site-packages/fbchat/_client.py", line 2820, in _parse_message
    self._parse_payload(topic, data)
  File "/home/mateusz/.local/lib/python3.7/site-packages/fbchat/_client.py", line 2758, in _parse_payload
    self._parseDelta(delta)
  File "/home/mateusz/.local/lib/python3.7/site-packages/fbchat/_client.py", line 2515, in _parseDelta
    msg=delta,
  File "auto-voter.py", line 27, in onPollCreated
    self.updatePollVote(poll.uid, option_ids=[], new_options=['New Option'])
  File "/home/mateusz/.local/lib/python3.7/site-packages/fbchat/_client.py", line 1860, in updatePollVote
    fb_error_message=j.get("errorMessage"),
fbchat._exception.FBchatFacebookError: Failed updating poll vote: None

Environment information

Python version - 3.7.4
fbchat version - 1.9.6

I checked if I cant manually create new options (in case that was some weird-facebook-permission stuff). I can with no problem.

Hmm, just tested today, and I can't reproduce it, can you try enabling debug logging by putting the code below in the start of your module, and give me the output (with personal information redacted)?
import logging
logging.basicConfig(level=logging.DEBUG)


python310Packages.angr: 9.2.11 -> 9.2.12

Description of changes
Update angr stack.

Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
22.11 Release Notes (or backporting 22.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module
[ ] (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes

[x] Fits CONTRIBUTING.md.

Result of nixpkgs-review pr 185108 run on x86_64-linux 1

16 packages built:

python310Packages.ailment
python310Packages.angr
python310Packages.angrcli
python310Packages.angrop
python310Packages.archinfo
python310Packages.claripy
python310Packages.cle
python310Packages.pyvex
python39Packages.ailment
python39Packages.angr
python39Packages.angrcli
python39Packages.angrop
python39Packages.archinfo
python39Packages.claripy
python39Packages.cle
python39Packages.pyvex


Unable to download from Miomio.us

Checklist

[x] I'm reporting a broken site support
[x] I've verified that I'm running youtube-dl version 2020.09.20
[x] I've checked that all provided URLs are alive and playable in a browser
[ ] I've checked that all URLs and arguments with special characters are properly quoted or escaped
[x] I've searched the bugtracker for similar issues including closed ones

Verbose log
youtube-dl-v https://miomio.us/gamecenter201001.html
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['-v', 'https://miomio.us/gamecenter201001.html']
[debug] Encodings: locale cp932, fs mbcs, out cp932, pref cp932
[debug] youtube-dl version 2020.09.20
[debug] Python version 3.4.4 (CPython) - Windows-8.1-6.3.9600
[debug] exe versions: ffmpeg 4.3.1, ffprobe 4.3.1
[debug] Proxy map: {}
[generic] gamecenter201001: Requesting header
WARNING: Falling back on generic information extractor.
[generic] gamecenter201001: Downloading webpage
[generic] gamecenter201001: Extracting information
ERROR: Unsupported URL: https://miomio.us/gamecenter201001.html
Traceback (most recent call last):
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpksi3o1r1\build\youtube_dl\YoutubeDL.py", line 797, in extract_info
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpksi3o1r1\build\youtube_dl\extractor\common.py", line 532, in extract
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpksi3o1r1\build\youtube_dl\extractor\generic.py", line 3382, in _real_extract
youtube_dl.utils.UnsupportedError: Unsupported URL: https://miomio.us/gamecenter201001.html

Description
I am unable to download videos from Miomio.us, i.e. https://miomio.us/gamecenter201001.html

The URL regex in the miomio extractor seems to only match URLs with the ".tv" extension, not ".us". All test cases for the extractor fail, since the "miomio.tv" domain no longer exists.

Any chances of this new domain being added?

try using the addon video download helper
it's detecting the video files

As for the current extractor, it seems like it will need a pretty major rework. At a glance, miomio stores JSON data in the options attribute in a div element whose class element equals vid-card_cnt h-mod. Within the metadata key of this data lies a big string of JSON data about the video specifically. From there, you can find direct links to all of the video variants sorted from lowest quality to highest in an array called videos (use -1 as an index to select the last video in the array.)

This data also contains other valuable info like the title, ID, and thumbnail of the video in the movie key.

I've been trying to follow as you said but I'm having trouble finding. Could you help me out?

Seems like there are multiple different players Miomio embeds in an iframe, mainly JWPlayer and the OdnoKlassniki player.
For the OK player, right click on it while it's playing, and click "Link to video". Paste that link into youtube-dl to download the video. As for JWPlayer, I'll examine it when I find some spare time.

Or just use a browser add-on that can detect these streams, like @october262 suggested.

it seems as if miomio has been renamed now, and now goes by jshow.tv


Add small tests for ThingIFAPI#onboardEndnodeWithGateway

add endNodeFirmWareVersion in onboard request body
add small tests

large tests with together with other onboarding APIs.

@yongpingchen Number of new tests is smaller than the number of old tests. Could you explain the reason?

LGTM!

@shinsuke-nara,  these old tests were to test ThingIFAPI#onboardEndnodeWithGateway(PendingEndNode, thingPassword, OnboardEndnodeWithGatewayOptions) method. And we removed this method, since dataGroupingInterval is not needed anymore.
reference for the option class: https://github.com/KiiPlatform/thing-if-AndroidSDK/blob/master/thingif/src/main/java/com/kii/thingif/OnboardEndnodeWithGatewayOptions.java#L11


SqlserverDsc: Changes to helper function Connect-SQL

Pull Request (PR) description

Changes to SqlServerDsc

Changes to helper function Connect-SQL

Connect-SQL now uses parameter sets to more intuitive evaluate that
the correct parameters are used in different scenarios (issue #1403).

This Pull Request (PR) fixes the following issues

Fixes #1403

Task list

[x] Added an entry under the Unreleased section of the change log in the CHANGELOG.md.
Entry should say what was changed, and how that affects users (if applicable).
[ ] Resource documentation added/updated in README.md.
[ ] Resource parameter descriptions added/updated in README.md, schema.mof
and comment-based help.
[x] Comment-based help added/updated.
[x] Localization strings added/updated in all localization files as appropriate.
[ ] Examples appropriately added/updated.
[x] Unit tests added/updated. See DSC Resource Testing Guidelines.
[ ] Integration tests added/updated (where possible). See DSC Resource Testing Guidelines.
[x] New/changed code adheres to DSC Resource Style Guidelines and Best Practices.

This change is

Codecov Report

Merging #1410 into dev will decrease coverage by <1%.
The diff coverage is 100%.

@@         Coverage Diff          @@
##            dev   #1410   +/-   ##
====================================
- Coverage    98%     98%   -1%
====================================
  Files        37      37
  Lines      5526    5524    -2
====================================
- Hits       5420    5418    -2
  Misses      106     106


ImportError: cannot import name 'EMPTY_VALUES' from 'django.forms.fields'

Description
Issue when installing Django-CMS Manually
http://docs.django-cms.org/en/latest/how_to/install.html#using-cms-check-for-configuration
## Steps to reproduce
I just follow the documentation as it is
Additional information
I use Django 3.1

I have changes to Django 3.0 but new problem appears

This is fixed by #6886

This is fixed by #6886

what about this error ?
django\apps\config.py", line 142, in create if not issubclass(cls, AppConfig): TypeError: issubclass() arg 1 must be a class

closing as reported in https://github.com/divio/django-cms/issues/6893

I can still reproduce the original error from above with the current stable version 3.7 of django CMS. See https://github.com/Organice/djangocms-maps/pull/20#issuecomment-803605341.
IIUC from https://github.com/django-cms/django-cms/issues/6893#issuecomment-705234405, there will be no backport of the fix for django CMS 3.7. Hence, Django 3.1 is supported by django CMS 3.8+ only?


[question] ant table checkbox item issue

Let me ask, is it true that if the database returns without an id, then the checkbox item does not work, right? I see that if the database does not have an id, it errors when checking one box but it ends up checking all of them.  see video https://drive.google.com/file/d/1fotvNUzGZsJtr9FkleBvFFb1hWSXUAIO/view?usp=sharing

Yes, I think each table data needs to have a unique id

You can replace the id with the only attribute in your table in the picture below

thanks


Received memory warning;Message from debugger: Terminated due to memory issue

While i am trying to send image , i will get memory issue and app get crashed in ios. What have to do fix the memory issue?.
React-native Version : 0.57.7
React-native-share-extension Version: 2.0.0

use react-native-file-share-intent


Merge source code to monorepo

Merge source code from: stencil, wrench and dialob into digiexpress repo.


Changed wording in README.md

@jypthemiracle How do you think?

@graykode The suggested sentence satisfies the condition of completing the sentence. LGTM too.


Links to GUID_DEVICE_RESET_INTERFACE_STANDARD are bad

This page contains several dead links to https://msdn.microsoft.com/library/windows/hardware/dn928420

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: c12fb3d8-6b19-d0ca-08f7-32e7a481fd71
Version Independent ID: ef9f2e32-8d07-43eb-c498-a2eba9eee103
Content: PDEVICE_RESET_HANDLER - Windows driver
Content Source: wdk-ddi-src/content/wdm/nc-wdm-pdevice_reset_handler.md
Product: windows-hardware
GitHub Login: @windows-driver-content
Microsoft Alias: windowsdriverdev

@peterwie - It looks like the GUID_DEVICE_RESET_INTERFACE_STANDARD topic was missed in the shift to docs.microsoft.com. I will work to add it back and re-establish the links.

@peterwie - I recreated the GUID_DEVICE_RESET_INTERFACE_STANDARD topic and fixed the links from four topics that had linked to it. Thanks for calling this out.