PyIlmBase cmake is able to find Boost but not boost::python

Windows 10
Python 3.7
Boost 1.73
When running cmake ..\PyIlmBase from the build directory this happens:
-- : Found Python 3.7.7
-- Found Python3 libraries: 37
--   -> Will install to: Lib/site-packages
-- Disabling boost-provided cmake config. If this causes problems, consider setting Boost_NO_BOOST_CMAKE variable to OFF
-- Found Boost: C:/Boost/include/boost-1_73 (found version "1.73.0")  missing components: python python2 python3 python37
CMake Warning at CMakeLists.txt:184 (message):
  Unable to find boost::python library, disabling PyIlmBase.  If you believe
  this is wrong, check the cmake documentation and see if you need to set
  Boost_ROOT or Boost_NO_BOOST_CMAKE

The path  C:\Boost\include\boost-1_73\boost\python exists and is full of header files.
The path C:\Boost\lib contains the following python libraries:
libboost_python37-vc142-mt-gd-x32-1_73.lib
libboost_python37-vc142-mt-gd-x64-1_73.lib
libboost_python37-vc142-mt-x32-1_73.lib
libboost_python37-vc142-mt-x64-1_73.lib

Where exactly is cmake looking for boost::python and what is it looking for? How can cmake be modified to look in the correct location?

You haven't mentioned cmake or visual studio versions. Your boost is built for VS2019 (vc142). Assuming VS2019 is what you want, the first thing I would check is if you have the absolutely most recent version of cmake, as this is a very common point of failure, some built-in cmake find scripts are very very sensitive to version numbers.

Is there a recommended version of cmake? I have tried the following cmake versions:
3.12.0
3.12.4
3.13.5
3.14.7
3.15.7
3.16.8
3.17.3
3.18.0
3.12.0, 3.12.4 and 3.13.5 are not able to find Python 3.7.7 at all. The rest are not able to find boot::python.

I'm using 3.17.3 on Windows, so that one is tested.
Did you try the suggestions in the text you initially posted? At first I thought you probably tried the suggestions, but I would like to confirm that before attempting further debugging. Your original question was How can cmake be modified to look in the correct location? which is what the message is attempting to answer. I should have asked earlier, since you didn't mention whether you had tried. Since the script reported that it was disabling the boost provided cmake config, and that disabling it might be an issue, it would be good to test that if you haven't already and let us know what the result is.
These are the messages I am referring to:
-- Disabling boost-provided cmake config. If this causes problems, consider setting Boost_NO_BOOST_CMAKE variable to OFF

and
CMake Warning at CMakeLists.txt:184 (message):
  Unable to find boost::python library, disabling PyIlmBase.  If you believe
  this is wrong, check the cmake documentation and see if you need to set
  Boost_ROOT or Boost_NO_BOOST_CMAKE

Thank you for the fast reply.
Yes I have tried several iterations of setting BOOST_ROOT and Boost_NO_BOOST_CMAKE. This was the latest iteration I tried:
I installed cmake 3.17.3 and I extracted boost_1_73_0 next to openexr.
Within boost_1_73_0 I ran:
bootstrap.bat
Followed by:
b2.exe --with-python
From a build folder within openexr I ran:
cmake .. -DBOOST_ROOT=..\..\boost_1_73_0
It finds the newly compiled boost, but it still does not find the boost::python library:
-- Found Boost: C:/{omitted}/boost_1_73_0 (found version "1.73.0")  missing components: python python2 python3 python37
CMake Warning at PyIlmBase/CMakeLists.txt:184 (message):
  Unable to find boost::python library, disabling PyIlmBase.  If you believe
  this is wrong, check the cmake documentation and see if you need to set
  Boost_ROOT or Boost_NO_BOOST_CMAKE

Inside boost_1_73_0\stage\lib are all of the libboost_numpy37 and libboost_python37 lib files, as well as a cmake folder. It looks like everything has been compiled, but I am guessing it is not in the right place?

Thanks, these are details I can work from. I will try to reproduce your exact steps.

@meshula, anything to report here?

Yes, I get the exact same results. Looks like once again kitware and boost are at loggerheads about what is "correct". Something to discuss during the next TSC.

A build can be accomplished by manually editing CMakeCache.txt, but it is, to put it mildly, tedious. In a nutshell, we should make manually specifying the boost header directory and the link libraries easy, for common scenarios where the find scripts fail. There are "official" mechanisms for specifying boost libraries but it is a historical rat's nest of bikeshedding things like BOOST_LIBRARIES_DIR or BOOST_LIBRARY_DIR in a giant matrix of confusion. So addressing that issue is the discussion point....

Just thought I would chime in that I was also having this problem, but it was because I made mistakes compiling my boost libraries. I was compiling boost to target visual studio 2017 with:
b2 --build-dir=build toolset=msvc-15 address-model=64 --build-type=complete stage --prefix="C:\boost" --with-python install
Wikipedia lists visual studio 17 as vs version 15, however boost believes that visual studio 2017 should be msvc-14.1 See here: https://github.com/boostorg/build/blob/482c25f3a26171073c7e6c59f0427f2259a63fec/src/tools/msvc.jam#L27
So my executables were named something along the lines of libboost_python27-vc150-mt-x64-1_70.lib. When openexr's cmake was looking for libboost_python27-vc141-mt-x64-1_70.lib.  I was able to get this working after using the correct command to compile boost:
b2 --build-dir=build toolset=msvc-14.1 address-model=64 --build-type=complete stage --prefix="C:\boost" --with-python install
I only had to specify boost root, and everything worked as expected:
cmake .. -G "Visual Studio 15 2017 Win64"
    -DCMAKE_INSTALL_PREFIX=C:/openEXR
    -DZLIB_ROOT=C:\zlib-1.2.11
    -DZLIB_LIBRARY=C:\zlib-1.2.11\contrib\vstudio\vc15\x64\ZlibDllRelease\zlibwapi.lib
    -DBoost_ROOT=C:\boost
    -DPython2_ROOT_DIR=C:/Python27

As an aside, -DBoost_DEBUG=ON was extremely helpful for debugging this issue. There may be more to this issue that the user-error that I encountered, but I wanted to post this here in case it helped anyone else making the same mistake!


Will NAA-SSO be supported in Outlook with Chakra Javascript engines?

Hello Office team,
I would just like to ask a question.
As the title suggests, will this be supported in trident systems or systems that use Chakra Javascript engines.
Thank you very much.

Hi @glr0221,
Could you please clarify which feature you're asking about for support? Thanks!

Hello @AlexJerabek.
Sorry about the vagueness of the question. I was referring to NAA-SSO.
Thank you big time!

Thank you for the clarification. Let me ask internally and get back to you.

Hi @glr0221,
No, NAA will not be supported on Chakra. What build and platform are you working with for Outlook that still uses the Edge WebView?

Thank you @AlexJerabek .
The biggest concern I have NAA-SSO for Monthly Enterprise channels and some semi-annual enterprise channels. Like in this ticket : https://github.com/OfficeDev/office-js/issues/4676#issuecomment-2252433432
Is it safe to assume that the Monthly and Semi-annual channels will be running on v8 before NAA-SSO is released? Sometime before October 2024 (https://devblogs.microsoft.com/microsoft365dev/new-nested-app-authentication-for-office-add-ins-legacy-exchange-tokens-off-by-default-in-october-2024/) ? Or do we need to make a fallback for these outlook channels?
Thanks.

Hi @glr0221,
I'm researching the answer internally and will respond when I have something meaningful to share.

Hi @glr0221,
The general release of V8 will propagate through the Monthly and Semi-annual channels in time for NAA. This shouldn't cause a conflict. I'll update this thread if things change.

Thank you @AlexJerabek. Very much appreciated.


Why Does Netbeans Fail to Find Global Libraries ?

Question
I downloaded a customized build, and followed these steps, choosing the option 'in the Sources tab add all .jar files with sources in their name', in Netbeans.
I then used the little test example on this page, but the build fails.
error: package org.lwjgl does not exist
I tried the other options, but they all failed.
What worked for me, was adding the .jar files to Libraries in the Project Tree.
However, the jars still aren't found.
 Possible solutions:
	a) Add the directory that contains the shared library to -Djava.library.path or -Dorg.lwjgl.librarypath.
	b) Add the JAR that contains the shared library to the classpath.

I'm using Netbeans 8.2 on Windows.

I found the solution  here.
The lwjgl3-wiki is incomplete, or not detailed enough.


Update the kubelet volume mount of non-root enabler container on the real object not on a copy of it

What type of PR is this?

/kind bug
What this PR does / why we need it:
Update the volume mount on the effective object of non-root-enabler container instead of a copy with no effect.
Which issue(s) this PR fixes:

Does this PR have test?

Special notes for your reviewer:
Does this PR introduce a user-facing change?

Update the volume mount on the effective object of non-root-enabler container instead of a copy with no effect.

/assign @saschagrunert

Codecov Report

Merging #1450 (d53d663) into main (37bf104) will not change coverage.
The diff coverage is 0.00%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1450   +/-   ##
=======================================
  Coverage   44.02%   44.02%
=======================================
  Files          50       50
  Lines        5667     5667
=======================================
  Hits         2495     2495
  Misses       3052     3052
  Partials      120      120

/retest

/retest

/test all

/retest

@saschagrunert gocritic seems to hang due to upgrade to Go 1.20:
wrapperFunc yodaStyleExpr]"
level=debug msg="[gocritic] Final used checks (105): [appendAssign appendCombine argOrder assignOp badCall badCond badLock badRegexp badSorting boolExprSimplify builtinShadow builtinShadowDecl captLocal caseOrder codegenComment commentFormatting commentedOutCode commentedOutImport defaultCaseOrder deferInLoop deferUnlambda deprecatedComment docStub dupArg dupBranchBody dupCase dupImport dupSubExpr dynamicFmtString elseif emptyDecl emptyFallthrough emptyStringTest equalFold evalOrder exitAfterDefer exposedSyncMutex externalErrorReassign filepathJoin flagDeref flagName hexLiteral httpNoBody hugeParam ifElseChain importShadow indexAlloc initClause ioutilDeprecated mapKey methodExprCall nestingReduce newDeref nilValReturn octalLiteral offBy1 paramTypeCombine preferDecodeRune preferFilepathJoin preferFprint preferStringWriter preferWriteByte ptrToRefParam rangeExprCopy rangeValCopy redundantSprint regexpMust regexpPattern regexpSimplify returnAfterHttpError ruleguard singleCaseSwitch sliceClear sloppyLen sloppyReassign sloppyTypeAssert sortSlice sprintfQuotedString sqlQuery stringConcatSimplify stringXbytes stringsCompare switchTrue syncMapLoadAndDelete timeCmpSimplify timeExprSimplify todoCommentWithoutDetail tooManyResultsChecker truncateCmp typeAssertChain typeDefFirst typeSwitchVar typeUnparen underef unlabelStmt unlambda unnamedResult unnecessaryBlock unnecessaryDefer unslice valSwap weakCond whyNoLint wrapperFunc yodaStyleExpr]"
level=debug msg="[gocritic] All checks are enabled"
Killed
make: *** [Makefile:359: verify-go-lint] Error 137

It is reproducible locally when running the verify with Go 1.20.

/retest

We have to wait for a new release of golangci-lint, but I expect to happen that sooner than later.

We have to wait for a new release of golangci-lint, but I expect to happen that sooner than later.

ok, this means the pull requests are blocked until a new release of golangci-lint is available?

No, I think we can
/override pull-security-profiles-operator-verify

@saschagrunert There was a version yesterday released. I updated in this pull request https://github.com/kubernetes-sigs/security-profiles-operator/pull/1453

/retest

@ccojocar /retest does not work for GitHub actions, we have to manually re-trigger them.

/retest does not work for GitHub actions, we have to manually re-trigger them.

@saschagrunert I think that I do not have permission to restart the Github action.

@saschagrunert Please could you lgtm this one again? Thanks


Please attach compiled lilcontainer source code to the asset as a TextAsset

Unity makes it hard to get the generated shader source code out of a Shader object. Please consider attaching the lilcontainer generated source to the asset in a TextAsset object, so that downstream users can read the source code for patching purposes.
Here is an example: https://github.com/orels1/orels-Unity-Shaders/blob/v6.3.0/Packages/sh.orels.shaders.generator/Editor/ShaderDefinitionImporter.cs#L573
(Currently, because this does not exist, we are forced to call UnpackContainer via reflection 😓 https://github.com/VRCFury/VRCFury/blob/main/com.vrcfury.vrcfury/Editor/VF/Builder/Haptics/SpsPatcher.cs#L565 )

Thank you for the request! This feature has been supported since version 1.7.0.


CrossEye on Vacation

I'll be gone 2021-08-01 through 2021-08-15 and unable to look at any requests.
I won't have access to voicemail or email.  My cellphone has been threatened with boiling lava if it dares to ring.    If you really, really need me, you can come find me at http://bit.ly/scottonvaca.  Don't worry, there's probably nothing to the stories of carnivorous bears!
If you need input from me, I'll be back before long.

Sounds and looks like you'll have a teriffic time there!
Although I'd probably threaten the carnivorous bear with boiling lava and the ringing smartphone with cold seawater, but there is something in it for everyone.
🏕


Fix CS pin name collision in impl_spi!()

add a wrapper for the impl_spi! macro to allow setting a dedicated name for pub struct ChipSelectPin

it compiles and a blinktest is working, but i currently have no SPI setup here. So you may declare it as "compiling-ok"

Good enough for me, I don't see this change breaking anything runtime related ;)


Tests: Minor change in descriptions and group name of SMP test cases

Do minor change of the descriptions and doxygen group name. This is in order to pave the way for generation the integration/module test specification later.
Signed-off-by: Enjia Mai<EMAIL_ADDRESS>

@andrewboie , could you take look at it, them merge it if there is no comment from you?

Merging since this is trivial.


main scenario: Implement number and capture entry reference

To continue with the next capture entry routes.running.next-hop-interface==capture.default-gw.routes.running.0.next-hop-interface the following features need to be implemented:

parsing and resolving numeric values to reference a list index.
understand capture reference on paths like capture.default-gw and resolve it if it's not already resolved
walk the path after a capture entry reference so it returns not state but the value it points to.

/approve


Embedding diagnostics are not unit-tested (and therefore buggy)

Confession: I've already written unit tests; found and fixed these bugs in the process.
errors:

empty chains result in a NetworkXPointlessConcept being raised in a function that should not raise exceptions
chains containing only invalid labels will also trigger a PointlessConcept

usability issues:

empty chains are not reported as "missing" -- instead, all incident edges are reported as missing.  that's confusing
edges incident to missing chains should not be reported as "missing" -- these errors are redundant
source and target nodes are swapped in InvalidNodeErrors

Thanks @boothby , we will not deploy a new version until the tests and fixes are in.

turns out I missed a couple of things... can we re-open this ticket?  I've pushed fixes out to my issue137 branch.


Adding timesync response for Siterwell RTVs

Fixes: #2196

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

1 of 1 (100.0%)  changed or added relevant line in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+0.002%) to 83.7%

Totals

Change from base Build<PHONE_NUMBER>:
0.002%

Covered Lines:
6845

Relevant Lines:
8178

💛  - Coveralls


Problem with local tests

I have failed tests
bundle exec rspec
      Failure/Error: file = File.read(path)

      Errno::ENOENT:
        No such file or directory @ rb_sysopen - /Users/semen_pupkov/code/ossboard/public/webpack_manifest.json

@davydovanton mb u know about this errors ?

Hm, could you try to build assets locally and after that call rspec? For this just call webpack in console

./node_modules/.bin/webpack fixed this problem

@artofhuman can I close this issue if problem solved?


[BUG]  Error "can't parse page number with pageMetaDatastr" with my clippings.txt

Describe the bug
Error "can't parse page number with pageMetaDatastr" when trying to sync my clippings.txt for the first time
Method of syncing

[ x ] My Clippings file (please attach file that can be used to recreate issue)

To Reproduce
Steps to reproduce the behaviour:

Go to 'Sync your kindle highlight'
Click on 'Sync'
Click "upload my clipping file", click "Sync now', browse to my clipping.txt file
Errors from Developer Tools console :
plugin:obsidian-kindle-plugin:1 Could not parse entry in clippings file n
eval @ plugin:obsidian-kindle-plugin:1
plugin:obsidian-kindle-plugin:303 Error parsing K:\OBNotes\My Clippings.txt.
Error: Can't parse page number from pageMetadataStr: 的书签
startSync @ plugin:obsidian-kindle-plugin:303
plugin:obsidian-kindle-plugin:1 Could not parse entry in clippings file n
eval @ plugin:obsidian-kindle-plugin:1
plugin:obsidian-kindle-plugin:303 Error parsing K:\OBNotes\My Clippings.txt.
Error: Can't parse page number from pageMetadataStr: 的书签
startSync @ plugin:obsidian-kindle-plugin:303
DevTools failed to load source map: Could not load content for app://obsidian.md/main.js.map: System error: net::ERR_FILE_NOT_FOUND
plugin:obsidian-kindle-plugin:1 Could not parse entry in clippings file n {titleLine: '完全失踪手冊', metadataLine: '- 您在第 4 页的书签 | 添加于 2015年3月31日星期二 下午2:25:19', contentLines: ''}
eval @ plugin:obsidian-kindle-plugin:1
t.parseRawBlocks @ plugin:obsidian-kindle-plugin:1
t.readMyClippingsFile @ plugin:obsidian-kindle-plugin:1
eval @ plugin:obsidian-kindle-plugin:301
startSync @ plugin:obsidian-kindle-plugin:301
await in startSync (async)
onMyClippingsSync @ plugin:obsidian-kindle-plugin:303
onClick @ plugin:obsidian-kindle-plugin:298
eval @ plugin:obsidian-kindle-plugin:295
plugin:obsidian-kindle-plugin:303 Error parsing K:\OBNotes\My Clippings.txt.
Error: Can't parse page number from pageMetadataStr: 的书签

Expected behaviour
If unable to parse a particular entry, skip it and proceed to the next
Metadata

OS: [Windows]
Plugin version [e.g. 1.9.2]
Obsidian version [e.g. 1.4.13]

I have the same issue. I figured out that if I switch the language to English, it works fine. So the problem may be that the parser cannot parse Chinese strings.

I have the same issue. I figured out that if I switch the language to English, it works fine. So the problem may be that the parser cannot parse Chinese strings.

I can give a simple solution to this -- translate all the location and datetime info in My Clipping.txt to English by brute force.
See here for more.

same issue Here, but my kindle has only book in italian and english

        I guess the original plugin only supports parsing the book info(eg. title and time) in English. If you really need it, I can help to transfer the clipping file to its English format without changing the highlight contents. A Italian example of highlight is needed.

<EMAIL_ADDRESS>

---- Replied Message ----

     From

<EMAIL_ADDRESS>

     Date

    12/11/2023 02:30

     To

<EMAIL_ADDRESS>

     Cc

<EMAIL_ADDRESS>        ,

<EMAIL_ADDRESS>

     Subject

          Re: [hadynz/obsidian-kindle-plugin] [BUG] Error "can't parse page number with pageMetaDatastr" with my clippings.txt (Issue #263)

same issue Here, but my kindle has only book in italian and english
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: @.***>

LindiaC you are super kind, but don't worry!
i will just copy paste the txt file into Obsisian. not a big problem!


FSPT-190 Get the account store URI from the parameter store

Fetching the account store uri from the parameter store will allow us to switch from using the existing fixed account store microservice and point it to the new combined pre-award-stores when its ready.

Note this should be set in the different environments before this is deployed

This manifest update will also cover the use of account store defined in https://github.com/communitiesuk/funding-service-design-authenticator as that will be included here

we can create the secrets together tomorrow

this is done now


Ender Dragon not functioning correctly

Riding the original ender dragon (not a spawned one) will mount, but there are no controls.
Spawning a new ender dragon results in a dragon that will not move and cannot be interacted with. It will also disappear after awhile and can only be removed using /kill command.

I've managed to get natural dragons working (the original one spawned first time, and any spawned using the ender crystals around the portal).
Summoning a dragon using OP commands is still not working. It is still not intractable, and it teleports to 0,0,0 coords after a few seconds.


scale subtitle times by different fps ratios and pick the one that works best

In particular, we should try the following factors (and their reciprocals):
24 / 23.976
25 / 23.976
25 / 24
See https://github.com/oseiskar/autosubsync#speed-correction and #10

This is now done in the latest stable version.


markDialogUnread: true/false

According to the docs, markDialogUnread can receive true/false parameter.
It would be nice to have ability pass it with mtcute.
Thanx!

Anyway, in my case, this code didn't work at all.
I want to mark chat as read where I received message.
Variant 1:
await tg.call({
      _: "messages.markDialogUnread",
      peer: {
        _: "inputDialogPeer",
        peer: await tg.resolvePeer(message.chat),
      },
      unread: false,
    });

Variant 2:
await tg.call({
      _: "messages.markDialogUnread",
      peer: {
        _: "inputDialogPeer",
        peer: await tg.resolvePeer(message.chat.id),
      },
      unread: false,
    });

Each variant returns true, but there is no result in telegram...
What I did wrong?


Expense tracker

Related Issue

Info about Issue or bug

Closes: #954
Describe the changes you've made
Added Expense tracker
Checklist:

[ ] My code follows the style guidelines of this project.
[ ] I have performed a self-review of my own code.
[ ] I have commented my code, particularly in hard-to-understand areas.
[ ] I have made corresponding changes to the documentation.
[ ] New and existing unit tests pass locally with my changes.

Screenshots
Put any screenshot(s) of the project here.

@ridsuteri please review


Fix german table of contents

What does this PR do?
Improve repo
For resources
Description
Fix wrong markdown table of contents
Why is this valuable (or not)?
Correct linking and tree generation in german
How do we know it's really free?

For book lists, is it a book? For course lists, is it a course? etc.

Checklist:

[x] Read our contributing guidelines.
[x] Search for duplicates.
[x] Include author(s) and platform where appropriate.
[x] Put lists in alphabetical order, correct spacing.
[x] Add needed indications (PDF, access notes, under construction).
[x] Used an informative name for this pull request.

Follow-up

Check the status of GitHub Actions and resolve any reported warnings!

remember to change from draft when this is ready


feature(logbook-spring-boot-autoconfigure): add support for logbook-openfeign

Add support for logbook-openfeign in logbook-spring-boot-starter package.
Detailed Description
Add Conditional FeignLogbookLoggerConfiguration to LogbookAutoConfiguration to enable auto-configuration of FeignLogbookLogger class.

👍


SyntaxError: Unexpected token " in JSON at position 0 when using RestProxyFactory.createProxy()

Hello, i would like to ask you if there is a way i can see a log output from the whole request message that i am sending to the server when i am using this library. I am using Xchange library and i am trying to implement a new exchange. I am trying to communicate with a node.js REST API on my localhost which needs to get a jsonString as body. Here is my implementation on the interface Airswap.class:
@Path("/")
@Consumes(MediaType.APPLICATION_JSON)
@Produces(MediaType.APPLICATION_JSON)
public interface Airswap {
    @POST
    @Path("findIntents")
    FindIntentsResponse[] findIntents(String jsonString);

Here is my implementation on the RestProxyFactory:
protected final Airswap airswap;

public AirswapBaseService(Exchange exchange) {
    super(exchange);
    this.airswap =
            RestProxyFactory.createProxy(
                    Airswap.class,
                    exchange.getExchangeSpecification().getSslUri(),
                    getClientConfig());
}

And here is my implementation when i am calling the findIntent method:
public FindIntentsResponse[] getIntents(FindIntentsObject object) throws IOException{

    String jsonString = new ObjectMapper().writeValueAsString(object);
    System.out.println(jsonString);
    return airswap.findIntents(jsonString);

}

Is it possible to see what the server gets when i am using the RestProxyFactory,i would like to see not just the url but the whole message? I want that in order to check if there is an error on the RestProxyFactory when sending the jsonString.
I have already implement the same functionality using OKHttp library and it works without any issue.

You can see request details by setting  in logback.xml. See examples in rescu and XChange.

Thanks a lot!


Redesign server foundation installation

Signed-off-by: Zachary Kayyali<EMAIL_ADDRESS>

/hold

/unhold


run checks when committing from F1

make changes
hit F1 > Git: Commit
type a long, long message
🐛 no validation

Actually I can't do this, otherwise @bpasero prevents the user from submitting that text. I still want him to be able to submit the commit message even if there's a warning/error. Maybe we need more semantics on what can be returned, not just a simple string which means an absolute error.

@joaomoreno @jrieken to clarify we are talking about support to show a warning in the picker widget but still allow to commit it? Sounds like another feature to add to the picker API?

Yes, a warning instead of an error as we show it today. The API currently doesn't allow that

There is now API for this.


Final Coord Search

Coords: 9.80-15.99
RGB Image - probably about the the least vegetation we are likely to find

L7 NDVI time series

STL looks reasonable:

deseasonalised ews

43.42, 11.11 (and nearby 43.31, 11.44)
RGB:

40.03, 11.82
.....

19.98, -30.57

Try with S2

This paper refers to three Tiger Bush locations in Niger (that we haven't look at yet), one classified as "healthy", "declining" and  "degraded". I ran the quick analysis in the code editor:
Declining:
(-1.56,15.15)

There is obviously something happening there in the last years. The trend in the variance is significant > 95%.
Degraded:
(-1.81,16.28)

Healthy:

I think based on these results (particularly the first one) is worth to run download the images and run the network centrality.

[12.760074214935337,-18.049979666555604], using MODIS data.


Link error using KISSMetrics Cocoapod

I'm using the Cocoapod version of the KISSMetrics SDK framework.
I haven't update my cocoapod for my project in a while. Now that I've updated, I get the following link error:
ld: framework not found KISSmetricsSDK
Apparently the framework name was changed which seems to be causing this error. But I've done everything I could to reset my project to use this new version of the pod.
• Clean build folder in project.
• Remove all Derived Data
• Remove Podfile.lock
• Remove generated workspace
• Run 'pod update'
The pod builds fine but my app won't link.
Any help would be appreciated.

I figured it out, there was another framework flags setting I missed.

Glad you figured it out. Let us know if you run into any other problems.


Adding Mege sort and Quick Sort (Divide And Conquer Algorithms) in python

Is your feature request related to a problem? Please describe.
Hey @rish-singhal I would like to add two major sorting algorithms like Quick Sort and Merge Sort based on Divide and Conquer approach  in python language
Describe the solution you'd like
A clear and concise description of what you want to happen.
Do you want to work on it
Yes
I will implement this in python language
Kindly Assign me this under GSSOC 21
Thank you

hey @rish-singhal   assign  me this issue if its available


[#136] Allow configuring maven checksum policy via a system property

Fixes #136

@yersan thanks!


[BUG] rancher/rancher-agent:v2.9.2 image missing in the Harvester ISO

Describe the bug
The cron job rke2-machineconfig-cleanup-cronjob is trying to use container image rancher/rancher-agent:v2.9.2 but it is not preloaded by the ISO and therefore cannot start in air gapped environments.
It is not listed in https://github.com/harvester/harvester/releases/download/v1.4.0/harvester-images-list-amd64.txt
To Reproduce
Install Harvester 1.4.0 in an air gapped environment, monitor if rke2-machineconfig-cleanup-cronjob completes
Expected behavior
rancher/rancher-agent:v2.9.2 is available
Support bundle
I don't think is needed
Environment

Harvester ISO version:  1.4.0
Bare metal, air gapped installed

Additional context
We recently upgraded from 1.3.2 to 1.4.0, I don't recall see this failed job in 1.3.2 but cannot be sure.

@bk201 @FrankYang0529 @TachunLin
Did you notice such?

I add the same issue (imagePullBackoff) with this image rancher/rancher-agent:v2.9.2 while using Harvester without any add-ons enabled.

@FrankYang0529 is this due to the rancher upgrade?

I create a 3-node airgapped cluster, but I don't see rke2-machineconfig-cleanup-cronjob job. I will check upstream code to see when it's created.

Rancher looks to start the cronjob in this condition.
func (h *handler) onChange(key string, obj *v3apis.ClusterRegistrationToken) (_ *v3apis.ClusterRegistrationToken, err error) {
	if obj == nil || obj.Namespace != "local" || obj.DeletionTimestamp != nil || obj.Status.Token == "" {
		return obj, nil
	}

	if err := h.apply.
		WithSetID("rke2-machine-config-cleanup").
		WithDynamicLookup().
		WithNoDelete().ApplyObjects(cleanupObjects(obj.Status.Token)...); err != nil {
		return nil, err
	}

	return obj, nil
}

This looks to be a new feature on Harvester v1.4.0 based Rancher rancherversion: v2.9.2
Following comes from a newly installed Harvester v1.4.0-rc4.
$kubectl get ClusterRegistrationToken -A
NAMESPACE     NAME                 SECRET-NAME
fleet-local   import-token-local   import-token-local

$kubectl get cronjob -A
NAMESPACE       NAME                                 SCHEDULE    SUSPEND   ACTIVE   LAST SCHEDULE   AGE
fleet-default   rke2-machineconfig-cleanup-cronjob   5 0 * * *   False     0        <none>          19s
harv21:/home/rancher # kk get cronjob -A -oyaml
apiVersion: v1

...
                value: rancher
              image: rancher/rancher-agent:v2.9.2
              imagePullPolicy: IfNotPresent
              name: rke2-machineconfig-cleanup-pod

But on v1.3.2, there is no such cronjob.

Hi @hoo29, thanks for reporting the issue. We will fix this in next release. For v1.4.0, could you manually import the image rancher/rancher-agent:v2.9.2? Thanks.


[Fix] chaosExperiment Structure Edit : Naming Convention in-sync with litmuschaos/litmus

What this PR does / why we need it:
- mountpath doesn't seem to be same as mountPath in the structure
-  Ref PR on litmuschaos/litmus with example in Comments : https://github.com/litmuschaos/litmus/pull/970#issuecomment-560392739
-  Need for this is to keep the chaosExperiment YAML format in sync with the litmuschaos/litmus & litmuschaos/go-executor
Which issue this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close that issue when PR gets merged): fixes #
Special notes for your reviewer:
Checklist:

Fixes #
[ ] Labelled this PR & related issue with documentation tag
[ ] PR messages has document related information
[ ] Labelled this PR & related issue with breaking-changes tag
[ ] PR messages has breaking changes related information
[ ] Labelled this PR & related issue with requires-upgrade tag
[ ] PR messages has upgrade related information
[ ] Commit has unit tests
[ ] Commit has integration tests

cc : @ksatchit @amitbhatt818


Port 'missing field' error fix to C#

Summary of the Pull Request
What is this about?
A 'missing field' error affecting libfuzzer was previously addressed in #1739. This fix addressed #1672.
This PR ports the fix to the C# code.
PR Checklist

[ ] Applies to work item: #1672
[ ] CLA signed. If not, go over here and sign the CLI.
[ ] Tests added/passed
[ ] Requires documentation to be updated
[ ] I've discussed this with core contributors already. If not checked, I'm ready to accept this work might be rejected in favor of a different grand plan. Issue number where discussion took place: #xxx

Info on Pull Request
What does this include?
Validation Steps Performed
How does someone test & validate?

Codecov Report

Merging #2905 (dd28163) into main (091c870) will decrease coverage by 1.78%.
The diff coverage is 0.00%.

@@            Coverage Diff             @@
##             main    #2905      +/-   ##
==========================================
- Coverage   28.22%   26.44%   -1.78%
==========================================
  Files         303      125     -178
  Lines       36013    13523   -22490
==========================================
- Hits        10164     3576    -6588
+ Misses      25849     9947   -15902

Impacted Files
Coverage Δ

src/ApiService/ApiService/OneFuzzTypes/Model.cs
69.35% <0.00%> (-0.09%)
:arrow_down:

src/ApiService/ApiService/onefuzzlib/Config.cs
0.00% <0.00%> (ø)

src/ApiService/ApiService/onefuzzlib/Defs.cs
0.00% <0.00%> (ø)

src/agent/srcview/src/pdbcache.rs

src/agent/coverage/src/cobertura.rs

src/agent/storage-queue/src/lib.rs

src/agent/debuggable-module/src/block.rs

src/agent/onefuzz-agent/src/coordinator/double.rs

src/agent/onefuzz-task/src/local/common.rs

src/agent/onefuzz/src/heartbeat.rs

... and 171 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.


AWS subscribe?

Able to publish to AWS IoT shadow document with umqtt, but unable to get any subscribes to work.  Has anyone had any successes with subscribes?

I have been unable to get anything to work.
Every Digi sample fails with "OSError: [Errno 7115] EINPROGRESS"
Can you post working code? Which ca cert cert worked?
MicroPython v1.12-1538-ge62c947 on 2020-09-08; XBC LTE Cat 1 Verizon with EFM32G


Add docs for /examples

e.g. There are no docs for running the server other than

now start your development environment

Webpack dev server gives me cannot Get /carte-blanche

Which server are you using? Express.js?

Webpack dev server, which uses Express under the hood. https://github.com/webpack/webpack-dev-server/blob/master/package.json#L12

Wait, are you running the examples of this repo?

Yeah...

npm run example:directoryname runs the examples, e.g. npm run example:dev.
What kind of docs do you expect for the examples?

What you just posted is a great start. :)

They're mostly meant for us maintainers to help develop for different setups! They mostly aren't very exciting :grin:

Fair enough. It's just hard to know how to get CB set up and running on a given server.

Shouldn't be much more difficult than
new CarteBlanche({
  componentRoot
});

in your webpack configuration. If it doesn't work with a specific server setup please submit an issue for that!


path simplification fails to merge successive mappings to the same node

This yields complicated paths like this:
{"mapping": [{"position": {"node_id": 1, "offset": 10}, "edit": [{"from_length": 15, "to_length": 15}]}, {"position": {"node_id": 1, "offset": 25}, "edit": [{"from_length": 5, "to_length": 5}]}, {"position": {"node_id": 5}, "edit": [{"from_length": 5, "to_length": 5}]}, ....

Here we should merge the first several mappings to node 1. vg::simplify(Path&) is currently failing to handle this.

simplify is also breaking the mapping ranks.

Progress


Ch2: Frontend is not working

Hi
Chapter #2 - Frontend is not working. Any suggestion?

Hi, try to
replace
https://github.com/PacktPublishing/Keycloak-Identity-and-Access-Management-for-Modern-Applications/blob/6dbdbff76f2b7da531a02e2e8ec3059c12b3056e/ch2/frontend/app.js#L5
on
var KC_URL = process.env.KC_URL || 'http://localhost:8080';

But, i can't help with next errors with redirects, for now.

I had similar issue and after fixing above, I ran into below issue.
"{"error":"unauthorized_client","error_description":"Client secret not provided in request"}"

@bjethwan
You can try to do everything from scratch.
I think everything is OK! with frontend.
But you might have error with backend communication with latest KeyCloak versions.
error access denied.

Also... if you have already tried to run the Frontend app you will probably need to clear your browser cache after adjusting the URLs as above. The reason is the <script type="text/javascript" src="KC_URL/js/keycloak.js"></script> in the index.html file will still try to load the keycloak.js file from the /auth folder.

This issue is caused by breaking changes in recent versions of Keycloak, for more details and how to workaround the issues take a look here.
I'm closing this issue for now as a duplicate of https://github.com/PacktPublishing/Keycloak-Identity-and-Access-Management-for-Modern-Applications/issues/26.


Which gradle version has to be used to build sugar?

I tried with gradle 2.4 but I am not able to import. I would like to improve Sugar lot. Help me with correct gradle version.

@suyambu actually sugar uses gradle plugin version 2.0.0 so the gradle version should be >= 2.10. There is a lot of to do. If you fork the project from the master know you will see that there are a lot of changes. Hope you can help us with some PR!


add support for DDS DXT3, fix #82

DXT5 and DXT3 formats are very close (see that documentation).
The define for DXT3 was already there and code path for DXT5 too hence this code just copypaste the DXT5 switch for DXT3.
DXT3 dds files loaded this way look to be rendered the exact same way they would be rendered if they were converted to tga by crunch at first.
Xonotic has textures using this format.

Before:

After:

Before:

After:

We see in this last texture that transparency is handled. Transparency is probably badly rendered (or not rendered at all on first textures) because of unknown darkplaces-specific shader keywords, if I convert those dds textures to tga ones it does not look better, so it's not a format parsing issue.

Note that the current code defines both FOURCC_DXT2 and FOURCC_DXT4 but there is no related switches, and DXT1A is not defined at all.
For information this is some extra defines the current code does not know at all (see crunch's dds_defs.h):
// Non-standard, crnlib-specific pixel formats (some of these are supported by ATI's Compressonator)
#define FOURCC_DXT5_CCxY        MAKEFOURCC('C', 'C', 'x', 'Y')
#define FOURCC_DXT5_xGxR        MAKEFOURCC('x', 'G', 'x', 'R')
#define FOURCC_DXT5_xGBR        MAKEFOURCC('x', 'G', 'B', 'R')
#define FOURCC_DXT5_AGBR        MAKEFOURCC('A', 'G', 'B', 'R')

#define FOURCC_DXT1A            MAKEFOURCC('D', 'X', '1', 'A')
#define FOURCC_ETC1             MAKEFOURCC('E', 'T', 'C', '1')
#define FOURCC_ETC2             MAKEFOURCC('E', 'T', 'C', '2')
#define FOURCC_ETC2A            MAKEFOURCC('E', 'T', '2', 'A')

#define FOURCC_R8G8B8           MAKEFOURCC('R', 'G', 'B', 'x')
#define FOURCC_L8               MAKEFOURCC('L', 'x', 'x', 'x')
#define FOURCC_A8               MAKEFOURCC('x', 'x', 'x', 'A')
#define FOURCC_A8L8             MAKEFOURCC('L', 'x', 'x', 'A')
#define FOURCC_A8R8G8B8         MAKEFOURCC('R', 'G', 'B', 'A')

The lighting in your second "after" image looks weird and in the first "after" iamge, apart from transparency not working for the decals as you mentioned, that logo is glowing like it's nuclear. Are you sure this is a shader issue? Maybe both crunch as well as our engine are handling something badly here.

Xonotic uses sRGB lightmap and Dæmon does not handle this kind of stuff yet so it's expected that lighting looks weird: the lightmap color curve is the wrong one.
On the shader side, all these shaders makes an heavy usage of darkplaces-specific keywords that are unknown by Dæmon hence ignored, so basically diffuse textures are rendered without any processing.
Also Darkplaces offers some keyword we don't have equivalent for yet (for example the the dpglossintensitymod keyword allows per-shader specular scale when Dæmon seems to only implement global specular scale option via a cvar.
Then Darkplaces does an heavy implicit mapping process: it loads as normal maps every _norm. file if . is loaded as diffuse, with similar mechanism for specular, gloss and other things like that. This makes sense in Darkplaces since it's an engine to improve existing assets from existing games: modders just has to add new maps in extra pk3 but does not have to modify the shader (avoiding some legal issues). Xonotic uses that feature a lot, so basically only diffuse map are loaded at this time.
At this early state it's expected Dæmon rendering Xonotic map does not produces much better pictures than netradiant itself produces, Xonotic maps rendered in Xonotic basically looks like netradiant rendering plus a wrong lighting applied.
For reference, this is how looks these scenes on Darkplaces:

Erbium map on Darkplaces:

Solarium map on Darkplaces:

You'll notice the shiny water effect on the warp zone (we don't have neither a water effect like this neither warp zone) on the first picture, and you'll notice the heavy parallax mapping on the second one (something we don't have in a usable state yet) plus the destructible models. :wink:
And since I said rendering Xonotic maps on Dæmon would looks like a netradiant render with a wrong lighting, have a look at that interesting bug: :blush:

On Dæmon:

On Darkplaces:

On Dæmon:

On Darkplaces:

Btw for this one Daemon say the shader format is invalid, so I really don't know why the qer_editorimage is loaded instead of the diffuse map one, but it's very possible the engine is not broken, at least the engine says it's not its fault. :stuck_out_tongue:

I'm closing this since #82 seems to obsolete it.


[ci] "external-commissioner" test failures - dependency between ot-br and openthread repo PRs

Noticed that in PR https://github.com/openthread/openthread/pull/5213 that the "external-commissioner" CI test (under simulation workflow and merged recently from https://github.com/openthread/openthread/pull/5187) is failing [link].
This seems to be due to the test trying to build ot-br repo as well (with the new changes from OT PR pulled in):
FAILED: src/dbus/server/CMakeFiles/otbr-dbus-server.dir/dbus_thread_object.cpp.o
../../src/dbus/server/dbus_thread_object.cpp: In member function ‘otError otbr::DBus::DBusThreadObject::SetMeshLocalPrefixHandler(DBusMessageIter&)’:
2126
../../src/dbus/server/dbus_thread_object.cpp:441:5: error: ‘otMeshLocalPrefix’ was not declared in this scope
2127
     otMeshLocalPrefix                         prefix;
2128
     ^~~~~~~~~~~~~~~~~
2129
compilation terminated due to -Wfatal-errors.

Note that this PR (per comments) is actually changing some of the public OT definitions (e.g., replacingotMeshLocalPrefix definition with otIp6NetworkPrefix).
Looks like ot-br build is pulling in OT from PR (rather then the version of OT it is snapped to). This is adding dependency between repos (which we should avoid).
Digging a bit more into it, I think this recent merged PR https://github.com/openthread/ot-commissioner/pull/125 may be the cause of this.
@Moandor-y can you please help look into this? Thanks.
cc/ @bukepo

Yes. It will fail if there are any incompatible changes. This made the two repo depend on each other, and as discussed with @bukepo , @simonlingoogle and @wgtdkp , the only way is to change both repos at the same time. Since GitHub doesn't support PR dependencies, it has to be done manually. This does not only happen with ot-br, both ot-commissioner and ot-br are pulling openthread from the PR. Each time we encounter this we have to modify multiple repos and merge the PRs together (with some checks in failed state).
Or is there any better approach?

I would highly advice against the approach to allow PRs to be merged with failed CI tests.
I think we should avoid creating any such dependencies in the CI of openthread. This would block development of OT.
I would say, if any of OT CI test wants to build other repos, it should use fixed version (snapped to certain OT tag/commit that are known to build ok). After the change in main OT fork is merged, the dependent repos can be updated accordingly.

I agree that we should avoid dependencies. But if we use snapped OT commit, the coverage data won't be correct as the codes actually got run are not latest. So in https://github.com/openthread/openthread/pull/5187 I firstly set this job to allow failures (https://github.com/openthread/openthread/pull/5187#pullrequestreview-442285389), maybe we can consider this approach?

I suggested against allowing CI tests to fail only to increase code coverage.
However, after a second thought, I think checking openthread PR using ot-br-posix with errors ignored in CI do have benefits:

It does not enforce ot-br-posix to work with openthread PR, thus introduces no dependency between repos
The test results can give us a hint if this PR is going to break ot-br-posix. And if it does, we can be better notified and handle it sooner (either fix this openthread PR or enhance ot-br-posix later).
It does give us more code coverage if tests pass

Thanks guys. Allowing the "external commissioner" test to fail on main OT repo CI sounds reasonable to me.

Closing in favor of openthread/ot-commissioner#127


Move Constants module to better location

Closes #70
@janklimo Yup, initializer seem to run too late in the game, moved to app/lib instead. As the reporter, please verify that this works for you, then merge.

@citizen428 deployed and confirmed! Thanks, Michael 👍


Replace FilePointer with universal pathlib

See https://github.com/astronomy-commons/hipscat/pull/336
Solution Description
Use fsspec's project, universal-pathlib as a path provider. In this way, everywhere we currently pass in a FilePointer we can use a Path instead, and when we need to create remote connections, use UPath.

I love how it makes everything much simpler!
There is an inconsistency in *Arguments' parameters type-hints: some of them are UPath, some are str (the same for List[*]). Only for these "end-user" interfaces, may I ask to use something more broad, like str | Path | UPath?
Do we have a policy that requires any imported package to be an explicit dependency? (it is a good one!) Should we add universal_pathlib to pyproject.toml?

Added a lot more type hints, and direct dependency on universal_pathlib.


Tests

From https://github.com/gadomski/heystac/pull/8#issuecomment-2443952675:

The obvious starting points would be Jest for unit tests and either Cypress or Playwright for e2e. A year ago I would have recommended Playwright pretty unequivocally and I still would if you want to test multiple languages with the same syntax/framework. Otherwise, Cypress now has component testing that obviates React Testing Library. That is a pretty nice thing to have together in the same framework and Cypress has made their UX really nice in the last few releases.


Fae feature is invariant to in-plane rotation and scaling, cannot be used to regress ratation and scale?

Thanks for your great work!
I am reading paper. In section 3.3 said " To recover the remaining 2 DoFs, scale s and in-plane rotation α, we train deep networks to directly regress these values from a single 2D-2D correspondence. Since the feature extractor Fae is invariant to in-plane rotation and scaling, the corresponding features cannot be used to regress those values, hence we have to train another feature extractor we call Fist".
why? A simple Image regestring method based on SIFT descriptors, and SIFT descriptors is invariant to in-plane rotation and scaling.

I see. You use feature to regress  scale s and in-plane rotation α.
another question, why not use correspondences and RANSAC to get scale s and in-plane rotation α, translation t like a simple image regestring method based on SIFT descriptors, Since you have got the the correspondences from Fae ?

Thanks for your interest!
We show in Table 4 the ablation study with different ways to predict the scale, and in-plane rotation from multiple correspondences as you mentioned (n=2 or n=4). Our method predicts fully 6D pose from a single correspondence (n=1) which are different than other approaches.


[Azure Low Priority VM Support] Differentiate preemption type

As OpenPAI is able to deploy on Azure Low Priority VM, which is cheaper than usual VM but much less stable. For this kind of deployment, we'd like to have the ability to differentiate the preemption between Azure Low Priority VM preemption and OpenPAI preemption.
Note: Azure might already provided notification for VM preemption, we might able to leverage that notifications.

Azure provided scheduled events to monitor low-priority vm evict: https://docs.microsoft.com/bs-latn-ba/azure/virtual-machines/windows/scheduled-events
And the response is:
{
    "DocumentIncarnation": {IncarnationID},
    "Events": [
        {
            "EventId": {eventID},
            "EventType": "Reboot" | "Redeploy" | "Freeze" | "Preempt",
            "ResourceType": "VirtualMachine",
            "Resources": [{resourceName}],
            "EventStatus": "Scheduled" | "Started",
            "NotBefore": {timeInUTC},
        }
    ]
}

The scheduled events has the scope
Scheduled events are delivered to:

Standalone Virtual Machines
All Virtual Machines in a Cloud Service
All Virtual Machines in an Availability Set
All Virtual Machines in a Scale Set Placement Group.


Broken link to porting guide

The link
https://github.com/Azure/azure-c-shared-utility/blob/public-preview/devdoc/porting_guide.md
mentioned in
/docs/agent-reference/how-to-modify-the-agent-code.md
Porting to a different OS or platform is broken.
I think it should be replaced by
https://github.com/Azure/azure-c-shared-utility/blob/master/devdoc/porting_guide.md

Thank you for pointing that out! We will fix it shortly.


Make some limits of command line arguments

Command line argument is only allowed with single variable, PORT.
Case if user provides more than a argument, or no arguments at all, show help menu and error messages to stdout.

Checked numbers of command line arguments.
If user would not provided enough ones, the programs print help menu with some error messages showing that there's missing arguments provided.


validate_number for decimal raises: no function clause matching in Decimal.compare/2

Environment

Elixir version: 1.3.2
Database and version: PostgreSQL 9.5.4
Ecto version: 2.0.4
Database adapter and version (mix dips): postgrex 0.11.2
Operating system: OS X (10.11.6)

Current behavior
One of the form fields is amount where user can put decimal value, e.g. 2.5.
In model changset defines validate_number function with greater_than option set to 0.
Whatever value (lower than 0, 0, even greater than 0) is put into this field exception no function clause matching in Decimal.compare/2 is raised.
Error stack
[error] #PID<0.341.0> running XPenser.Endpoint terminated
Server: localhost:4000 (http)
Request: POST /expenses
** (exit) an exception was raised:
    ** (FunctionClauseError) no function clause matching in Decimal.compare/2
        (decimal) lib/decimal.ex:275: Decimal.compare(#Decimal<-2>, 0)
        (ecto) lib/ecto/changeset.ex:1350: Ecto.Changeset.validate_number/6
        (elixir) lib/enum.ex:2587: Enum.do_find_value/3
        (ecto) lib/ecto/changeset.ex:1063: Ecto.Changeset.validate_change/3
        (xpenser) web/controllers/expense_controller.ex:17: XPenser.ExpenseController.create/2
        (xpenser) web/controllers/expense_controller.ex:1: XPenser.ExpenseController.action/2
        (xpenser) web/controllers/expense_controller.ex:1: XPenser.ExpenseController.phoenix_controller_pipeline/2
        (xpenser) lib/xpenser/endpoint.ex:1: XPenser.Endpoint.instrument/4
        (xpenser) lib/phoenix/router.ex:261: XPenser.Router.dispatch/2
        (xpenser) web/router.ex:1: XPenser.Router.do_call/2
        (xpenser) lib/xpenser/endpoint.ex:1: XPenser.Endpoint.phoenix_pipeline/1
        (xpenser) lib/plug/debugger.ex:122: XPenser.Endpoint."call (overridable 3)"/2
        (xpenser) lib/xpenser/endpoint.ex:1: XPenser.Endpoint.call/2
        (plug) lib/plug/adapters/cowboy/handler.ex:15: Plug.Adapters.Cowboy.Handler.upgrade/4
        (cowboy) src/cowboy_protocol.erl:442: :cowboy_protocol.execute/4

Migration
def change do
    create table(:expenses) do
      add :name, :string, null: false
      add :amount, :decimal, null: false
      add :category_id, references(:categories)

      timestamps()
    end

    create index(:expenses, [:category_id])
  end

Model
defmodule XPenser.Expense do
  use XPenser.Web, :model

  schema "expenses" do
    field :name, :string
    field :amount, :decimal
    belongs_to :category, Category

    timestamps()
  end

  @doc """
  Builds a changeset based on the `struct` and `params`.
  """
  def changeset(struct, params \\ %{}) do
    struct
    |> cast(params, [:name, :amount, :category_id])
    |> validate_required([:name, :amount])
    |> validate_number(:amount, greater_than: 0)
  end
end

Controller is unchanged (generated by phoenix.gen.html).
Expected behavior
Validation should work and error on form should be displayed for user when number is lower than or equal to 0.

@kacperix I think for decimal field validation should look like:
validate_number(:amount, greater_than: Decimal.new(0))

Thanks

Closed via https://github.com/elixir-ecto/ecto/pull/1663


evdev reverse mapping is broken

Hi,
After the introduction of code based on:
https://github.com/lvgl/lv_drivers/pull/251
The reverse functionality based on doing thing like:
#  define EVDEV_CALIBRATE         1               /*Scale and offset the touchscreen coordinates by using maximum and minimum values for each axis*/

#  if EVDEV_CALIBRATE
#    define EVDEV_HOR_MIN         2000               /*to invert axis swap EVDEV_XXX_MIN by EVDEV_XXX_MAX*/
#    define EVDEV_HOR_MAX      0               /*"evtest" Linux tool can help to get the correct calibraion values>*/
#    define EVDEV_VER_MIN        2000
#    define EVDEV_VER_MAX      0
#  endif  /*EVDEV_CALIBRATE*/
#endif  /*USE_EVDEV*/

Does not work anymore.
I have a screen that I have rotated 180 defgees and when using the current lib with:
#if EVDEV_CALIBRATE
    evdev_root_x = LV_CLAMP(EVDEV_HOR_MIN, evdev_root_x, EVDEV_HOR_MAX);
    evdev_root_y = LV_CLAMP(EVDEV_VER_MIN, evdev_root_y, EVDEV_VER_MAX);

    data->point.x = map(evdev_root_x, EVDEV_HOR_MIN, EVDEV_HOR_MAX, 0, drv->disp->driver->hor_res);
    data->point.y = map(evdev_root_y, EVDEV_VER_MIN, EVDEV_VER_MAX, 0, drv->disp->driver->ver_res);
#else

Then all touch points seem to register as 0.
Using the following:
#if EVDEV_CALIBRATE
    //evdev_root_x = LV_CLAMP(EVDEV_HOR_MIN, evdev_root_x, EVDEV_HOR_MAX);
    //evdev_root_y = LV_CLAMP(EVDEV_VER_MIN, evdev_root_y, EVDEV_VER_MAX);

    data->point.x = map(evdev_root_x, EVDEV_HOR_MIN, EVDEV_HOR_MAX, 0, drv->disp->driver->hor_res);
    data->point.y = map(evdev_root_y, EVDEV_VER_MIN, EVDEV_VER_MAX, 0, drv->disp->driver->ver_res);
#else

It all works as expected.
Related forum post:
https://forum.lvgl.io/t/how-to-invert-x-and-y-axises-not-swap-them/12866/2
Any chance this change can check if a mouse is involved as apposed to a touch screen?
Thanks!

With lv_map LV_CLAMP is not required indeed. Could you send a Pull request?

PR created but it's my first one. Let me know if you need anything correcting.
Thanks


Week numbers

In Sweden we regularly use week numbers, I would like the week numbers to be shown (or a setting so I can choose to view them) in the beginning of a week.

We're closing old issues so we can get back to actively maintaining the extension. Feel free to reopen if this is still an issue for you.


Get rid of the creation of ParamLocation in procSymFormals

Figure out how to get rid of it, then get rid of it.

Documented in ae7a5b190f793fe41c29ecc01a53dd676ab497e5


Replay only messages not seen; also make it clear when replaying

We don't want to replay messages using lastViewedAt as that includes
the last one we've seen.
Make the 'Replaying since" messages in bold so it's clear and easy to
see when.

👍

👍


chore: migrate to react 17

chore(client): bump to react@17
chore(components): bump to react@17
chore: update babel config
chore: destructure React imports
chore: update eslint for react 17
chore: remove imports via codemod
fix: update configs for react 17
chore: remove remaining react imports

I think this is failing because enzyme-adapter-react-16 is pulling in react as a peer dependency when webpack bundles it.  This is... not what we want, since we also add react via unpkg and because we definitely do not want the client react version to be in any way coupled to the curriculum react version.
Tentative 'fix':  https://github.com/wojtekmaj/enzyme-adapter-react-17
Real fix: decouple them.

Please re-open a fresh PR when ready. I am cleaning up stalled PR threads. I have added this to your Trello for tracking.


Loss didn't decrease in pwcnet_train_sm-6-2-multisteps-chairsthingsmix

some output infos:
2019-10-31 21:27:13 Iter 49000 [Train]: loss=184.37, epe=15.17, lr=0.000100, samples/sec=24.4, sec/step=0.655, eta=8 days, 17:27:22
2019-10-31 21:27:21 Iter 49000 [Val]: loss=141.03, epe=11.58
Saving model...
INFO:tensorflow:./pwcnet-sm-6-2-multisteps-chairsthingsmix/pwcnet.ckpt-49000 is not in all_model_checkpoint_paths. Manually adding it.
... model saved in ./pwcnet-sm-6-2-multisteps-chairsthingsmix/pwcnet.ckpt-49000
2019-10-31 21:39:36 Iter 50000 [Train]: loss=184.73, epe=15.20, lr=0.000100, samples/sec=27.7, sec/step=0.578, eta=7 days, 16:41:55
2019-10-31 21:39:44 Iter 50000 [Val]: loss=140.98, epe=11.57
Saving model...
INFO:tensorflow:./pwcnet-sm-6-2-multisteps-chairsthingsmix/pwcnet.ckpt-50000 is not in all_model_checkpoint_paths. Manually adding it.
... model saved in ./pwcnet-sm-6-2-multisteps-chairsthingsmix/pwcnet.ckpt-50000
2019-10-31 21:50:47 Iter 51000 [Train]: loss=184.02, epe=15.14, lr=0.000100, samples/sec=28.3, sec/step=0.566, eta=7 days, 12:37:08
2019-10-31 21:50:56 Iter 51000 [Val]: loss=140.30, epe=11.52
Saving model...
INFO:tensorflow:./pwcnet-sm-6-2-multisteps-chairsthingsmix/pwcnet.ckpt-51000 is not in all_model_checkpoint_paths. Manually adding it.
... model saved in ./pwcnet-sm-6-2-multisteps-chairsthingsmix/pwcnet.ckpt-51000
2019-10-31 22:03:22 Iter 52000 [Train]: loss=184.69, epe=15.20, lr=0.000100, samples/sec=26.0, sec/step=0.616, eta=8 days, 4:35:21
2019-10-31 22:03:33 Iter 52000 [Val]: loss=141.20, epe=11.60
Saving model...
INFO:tensorflow:./pwcnet-sm-6-2-multisteps-chairsthingsmix/pwcnet.ckpt-52000 is not in all_model_checkpoint_paths. Manually adding it.
... model saved in ./pwcnet-sm-6-2-multisteps-chairsthingsmix/pwcnet.ckpt-52000
2019-10-31 22:16:15 Iter 53000 [Train]: loss=184.40, epe=15.17, lr=0.000100, samples/sec=25.4, sec/step=0.629, eta=8 days, 8:18:36
2019-10-31 22:16:25 Iter 53000 [Val]: loss=140.56, epe=11.53
Saving model...
INFO:tensorflow:./pwcnet-sm-6-2-multisteps-chairsthingsmix/pwcnet.ckpt-53000 is not in all_model_checkpoint_paths. Manually adding it.
... model saved in ./pwcnet-sm-6-2-multisteps-chairsthingsmix/pwcnet.ckpt-53000

I change the lr, however, there is no obvious loss decrese.


How to handle mappings that reference any storages/networks that have been removed?

We should make sure none of our UI breaks if the resources referenced in a mapping (whether part of a plan or not) no longer exist. They are inventory resources, so we can't automatically delete mappings when they are removed via ownerReferences, so we'll probably need something to indicate when rendering/editing them that they are broken.

Should we have validation messages on mappings like we have for VMs?

Same here @vconzola , this is needs-design. Might be easiest to just add a Status column to the mappings tables like we have for providers and plans.

Same here @vconzola , this is needs-design. Might be easiest to just add a Status column to the mappings tables like we have for providers and plans.

@mturley Agree - a Status column is probably the most straightforward way to show this. Are you thinking Ready / Not Ready as the possible status values?

@mturley Agree - a Status column is probably the most straightforward way to show this. Are you thinking Ready / Not Ready as the possible status values?

Maybe, to be consistent. I'm not sure I can know for sure if the associated resources themselves are actually ready though, just whether they exist. I mostly want to point out "broken/orphaned" mappings that map things that no longer exist.

Maybe, to be consistent. I'm not sure I can know for sure if the associated resources themselves are actually ready though, just whether they exist. I mostly want to point out "broken/orphaned" mappings that map things that no longer exist.

For consistency, I was thinking the mapping itself can be defined as Ready / Not ready. If it's "not ready", can it be made ready again if the storages or networks are re-added? I know we talked about this for IMS, but it wasn't possible because when resources were re-added they were given a different id in CloudForms. Hence, those plans truly were orphaned. Not sure if that's the case here?

For consistency, I was thinking the mapping itself can be defined as Ready / Not ready. If it's "not ready", can it be made ready again if the storages or networks are re-added? I know we talked about this for IMS, but it wasn't possible because when resources were re-added they were given a different id in CloudForms. Hence, those plans truly were orphaned. Not sure if that's the case here?

It sounds like based on this morning's meeting that once it's "not ready" the only way to make it ready again would be to edit it and remove the broken items. I was initally just going to prevent it from being edited at all if it's broken though, so we don't get errors where it can't find things in the inventory. The problem with making editing possible is that once an item doesn't exist in the inventory we can't look up its name (only the id is stored in the mapping) so we can't even show what was broken.

It sounds like based on this morning's meeting that once it's "not ready" the only way to make it ready again would be to edit it and remove the broken items. I was initally just going to prevent it from being edited at all if it's broken though, so we don't get errors where it can't find things in the inventory. The problem with making editing possible is that once an item doesn't exist in the inventory we can't look up its name (only the id is stored in the mapping) so we can't even show what was broken.

In fact, a broken mapping will even have its expanded view in the table broken since we can't look up those names. I may just have to display "missing" in place of the invalid items

In fact, a broken mapping will even have its expanded view in the table broken since we can't look up those names. I may just have to display "missing" in place of the invalid items

Status column text should be "OK" vs "Invalid" per @vconzola . Invalid should have a tooltip "One or more mapping resources no longer exist. Delete the mapping and recreate with valid resources"

Status column text should be "OK" vs "Invalid" per @vconzola . Invalid should have a tooltip "One or more mapping resources no longer exist. Delete the mapping and recreate with valid resources"

I'm thinking this would be good to get into the beta (at least prioritize over other issues marked for post-beta) because it's the last obvious case I can see where the user could break the UI by messing with provider resources.

I'm thinking this would be good to get into the beta (at least prioritize over other issues marked for post-beta) because it's the last obvious case I can see where the user could break the UI by messing with provider resources.


[Q] poor touch performance on android

Hi, I'm experiencing poor performance on android using ListView on production , development mode is ok.
Any idea about this ?

@lxsameer Hey, thanks for the report. Can you explain more what do you mean by poor performance? Is the touch response time slow? Can you give some sample code?

@satya16 I used both TouchableHighlight and TouchableOpacity within my ListView items. In the development mode every thing is ok and animations are smooth but, after releasing the production apk, touch action trigger by a 3 to 5 second delay. I'll try to put some code in this issue too

@lxsameer Hmm... Production APK should be a lot faster than dev mode. Are the items rendering while you try to tap something? Is any other expensive operation going on? Have you tried decreasing the pageSize?

I have a fix list of 30 item array, and I don't do anything during touch event. I just push a route to navigator.

Can you use the systrace tools to figure out what is going on? This is the guide for how to use them: https://facebook.github.io/react-native/docs/android-ui-performance.html

Yeah sure

Hello,
I've got the similar problem. Looks like my touch events are delayed by 5-7 seconds on the production build (js mode off). From the systrace it looks like it's spending a lot of time on the JSCall__RCTEventEmitter_receiveTouches

Is this a desired behavior or it might be some error on my side? I've tried setting  shouldComponentUpdate to false and disabling render on not currently visible views (I'm using Navigator) but it doesn't improve the situation at all.
In the attachment, I'm putting systrace from 1 transition (10s long) but I had to change the extension from .html to .txt because GitHub would accept it otherwise :confused:

trace.txt

@lxsameer would you mind reopening the issue or should I create the new one with the same problem? Or maybe you've found the fix that's why it's closed?

@arathunku mine was due to use a pre-mature loop in my code.

@lxsameer thanks. Then it looks like I've got a different problem.
@ide, should I open a new issue regarding touch performance or it's fine as it is now?


Add batched RoPE kernel

Problem: Currently we need to call rotary embedding kernel for each LoRA request, which makes it very inefficient to serve multiple LoRAs with different context length.
Solution: Add batched rotary embedding kernel. Followup PRs will pipe it through.
Testing: Batched kernel tests. Followup PRs will add e2e tests.

Do you have a (micro-)benchmark that shows the difference between batched and non-batched to justify the change?

@tterrysun Can you add the micro benchmarks so we can measure the performance here? You can put it into benchmarks/kernels :)

Benchmarking command:
nsys profile -t nvtx,osrt --force-overwrite=true --stats=true --output=./rope_bm python benchmarks/kernels/benchmark_rope.py
Results:
Time (%)  Total Time (ns)  Instances  Avg (ns)  Med (ns)  Min (ns)  Max (ns)  StdDev (ns)   Style      Range

 60.2           498229          1  498229.0  498229.0    498229    498229          0.0  PushPop  non-batched
 39.8           328996          1  328996.0  328996.0    328996    328996          0.0  PushPop  batched

Hi I am wondering if this kernel currently used? I don't see changes in model code and not sure where the following PRs are.


Support for attachments inside the .zip file

Hello. I love your app, so far it is the nicest and fastest solution for visualizing Slack export files.
But quick question, is it possible or planned to support attachments in the .zip?
I have used this tool: https://github.com/grundleborg/slack-advanced-exporter?tab=readme-ov-file
Why? Because we are going to close our Slack account and we need to keep a working archival for legal purposes (including the attachments).
Please, would love to hear from you.
Thank you.

Could you maybe produce a sanitized .zip file with attachments for me to test? That would make it a lot easier, otherwise I don't even really know what I'm dealing with.
I'll try to look it up though, if you provide a file I'm fairly sure I can do that in a timely manner.

Hey Chris,
Here is the new .zip file with the attachments inside:

Checking a channel .json file, the links are kept unchanged.
               "url_private": "https:\/\/files.slack.com\/files-pri\/T08KDGR8S-F01QF9TSN9P\/image_from_ios.png?t=xoxe-<token>",                 "url_private_download": "https:\/\/files.slack.com\/files-pri\/T08KDGR8S-F01QF9TSN9P\/download\/image_from_ios.png?t=xoxe-<token>",
As the .zip is over 100 GB I cannot even finish unzipping it before I run out of space.
Let me know if this helps you or if you really need the .zip, I will check how I can get it unzipped and sanitized.
Just to mention, the tool used to feed the attachment into the .zip is part of the mattermost import process: https://docs.mattermost.com/onboard/migrate-from-slack.html
Thanks.

So what exactly would you expect from this app? I don't quite understand what to do with the attachments. Make them downloadable in the file section instead of having the URL to the download?

Hey,
Would be great to be able to have the files downloaded locally and not dependent on the Slack servers.
In our case, we are planning on ending our Slack subscription and we would like to keep an archival running.
This solution, although it crashes often, it allows you to "cache" all the files: https://github.com/thayakawa-gh/SlackLogViewer
So, to sum up, instead of trying to upload a 113 GB .zip file with all the attachments (with the tool I provided earlier), maybe upload the regular .zip archive offered by the official Slack export tool and then, have the option to download locally all the files.
Sorry, English is not my first language. I hope I am clear enough.
Thank you!

Ah I see. So basically just a bulk download of files? I think I can manage that, although I can't test it with as many attachments. Maybe chinking would be a good idea here, so you don't have to download the whole >100GB at once?

So basically just a bulk download of files?
Yes, so the app can run standalone (no need to reach Slack's servers).

I can't test it with as many attachments
We can help you test.

Maybe chunking would be a good idea here, so you don't have to download the whole >100GB at once?
That is no problem. We have a small server running in GCP, so if it downloads all at once or in chunks is fine.

What would be great is to be able to define the mount dir in Docker / Composer, so I can manage where the files are stored.
Thank you.


escape in liquid in browse-js casuse issues with buttons

Namely, the buttons split on the semi-colons that get added because of the " | escape " option on the field in the json at top. I got rid of it in the campusart collection I just did, and didn't have any ill effects, but I thought you'd probably want to go in and make sure taking that out doesn't break too much.
the campus art collection had buttons like: Admin President's room on the second floor, which would break into the buttons:

Admin President
s room on the second floor

Not a huge deal, but I can see it being annoying if it happens in the wild.

@dcnb i think the | escape in the value of {{ f.field | escape | jsonify }}:{{ i[f.field] | strip | escape | jsonify }}, should go away--
normally these values are escaped since they are going to be displayed as html, but in this case we are splitting btn values on ; so obvious bug in current set up... it seems pretty likely to break btns!
so unless you can think of a counter example where escape is catching an different issue introduced by a metadata value that we need to accommodate-- just delete the one escape there.
eventually need to think through / test places where | escape | jsonify are used together--not sure if it is ever necessary? Like it might be for js variable names? but not sure...

interesting this isn't in any other template. Anyway, removed escape for now, e7640392412c85ad77a5754c204a37ba8c479b82


[PE-D][Tester D] Buggy shortcut for deleting recipes

I am able to trigger the shortcut for deleting recipes even though the screen does not show me having any recipes selected (based on my understanding, a selected receipt will be highlighted blue right?).
Your browser does not support the video tag.video:https://raw.githubusercontent.com/eugenetangkj/ped/main/files/0c450e05-fe86-4840-95ad-7fa47e3d36f9.mp4

Labels: type.FunctionalityBug severity.Medium
original: eugenetangkj/ped#8

Delete key bind needs to work only when focus is on recipe list card


[AutoPR apimanagement/resource-manager] Update apimanagement Node.js package version to 3.0.0-preview

Created to sync https://github.com/Azure/azure-rest-api-specs/pull/3533

NodeJS

Codecov Report

Merging #3025 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master    #3025   +/-   ##
=======================================
  Coverage   56.34%   56.34%
=======================================
  Files        8148     8148
  Lines      166630   166630
=======================================
  Hits        93888    93888
  Misses      72742    72742

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 74aa7ac...2e11d22. Read the comment docs.


'favicon' key received inside filteredResponse made Pandas throw an AttributeError

Hi guys, I cloned the repo and install the dependencies correctly but for some reason it gave me an AttributeError: 'int' object has no attribute 'items' error while trying to create the dataframe with the remaining keys stored in the filteredResponse dictionary (pd.DataFrame.from_dict) - see urlReport(arg) function. Looking into the filteredResponse that's being passed to the DataFrame Pandas function, it seems that it didn't like the "favicon" attribute so I added it to the keys_to_remove array and now everything works fine.
The error:
└─$ python3 vt-ip-url-analysis.py -s google.com

+++++ Print filteredResponse +++++
{'favicon': {'raw_md5': '1631ff32e63a6dcc15469d14c7c94e42', 'dhash': 'e89e931939338ee8'}, 'times_submitted': 166200, 'redirection_chain': ['http://google.com/', 'http://www.google.com/'], 'reputation': 2615, 'has_content': False, 'last_analysis_stats': {'harmless': 81, 'malicious': 0, 'suspicious': 0, 'undetected': 8, 'timeout': 0}}
+++++++++++
Traceback (most recent call last):
  File "/home/kali/Desktop/Python-VT-Script/vt-ip-url-analysis.py", line 456, in <module>
    urlReport(args.single_entry)
  File "/home/kali/Desktop/Python-VT-Script/vt-ip-url-analysis.py", line 167, in urlReport
    dataframe = pd.DataFrame.from_dict(filteredResponse, orient='index')
  File "/home/kali/Desktop/Python-VT-Script/lib/python3.10/site-packages/pandas/core/frame.py", line 1747, in from_dict
    data = _from_nested_dict(data)
  File "/home/kali/Desktop/Python-VT-Script/lib/python3.10/site-packages/pandas/core/frame.py", line 12029, in _from_nested_dict
    for col, v in s.items():
AttributeError: 'int' object has no attribute 'items'

Below is the filteredResponse received for google.com:
{'favicon': {'raw_md5': '1631ff32e63a6dcc15469d14c7c94e42', 'dhash': 'e89e931939338ee8'}, 'times_submitted': 166198, 'redirection_chain': ['http://google.com/', 'http://www.google.com/'], 'reputation': 2615, 'has_content': False, 'last_analysis_stats': {'harmless': 81, 'malicious': 0, 'suspicious': 0, 'undetected': 8, 'timeout': 0}}

After adding "favicon" to the keys_to_remove attribute:
┌──(Python-VT-Script)─(kali㉿kali)-[~/Desktop/Python-VT-Script]
└─$ python3 vt-ip-url-analysis.py -s google.com

+++++Print filteredResponse +++++
{'times_submitted': 166200, 'redirection_chain': ['http://google.com/', 'http://www.google.com/'], 'reputation': 2615, 'has_content': False, 'last_analysis_stats': {'harmless': 81, 'malicious': 0, 'suspicious': 0, 'undetected': 8, 'timeout': 0}}
+++++++++++
                                                                     0
times_submitted                                                 166200
redirection_chain         [http://google.com/, http://www.google.com/]
reputation                                                        2615
has_content                                                      False
last_analysis_stats  {'harmless': 81, 'malicious': 0, 'suspicious':...
                                                            google.com
community score      0/89  :  security vendors flagged this as mali...
has_content                                                      False
last_analysis_date                            Thu Oct  6 10:32:49 2022
last_analysis_stats  {'harmless': 81, 'malicious': 0, 'suspicious':...
redirection_chain         [http://google.com/, http://www.google.com/]
reputation                                                        2615
times_submitted                                                 166200
virustotal report    https://www.virustotal.com/gui/url/cf4b367e49b...

This error is occuring due to FilterResponse dict data is not uniform and sometimes key are at different position that raises the AttributeError Exception. In my case, the Reputation key position in the FilterResponse dict is not uniform so I have made some changes to the code. After the changes, I haven't experience the issue again.