eigen interface

In eigen, in the default usage, it is easy to reproduce the original ITensor:
i = Index(2, "i")
j = Index(2, "j")
A = randomITensor(i, j, i', j')
A = A + swapprime(A, 0, 1)
U, D = eigen(A; ishermitian=true)
Ut = U'
B = U*D*dag(Ut)
@show norm(A - B)

However, in a more general use case, this isn't as easy:
i = Index(2, "i")
j = Index(2, "j")
Lis = IndexSet(i, j)
Ris = dag(sim(Lis))
A = randomITensor(Lis..., Ris...)
A = A + swapinds(A, Lis, Ris)  # Note: this function doesn't exist right now, we need to make it
U, D = eigen(A, Lis, Ris; ishermitian = true)
u = commonind(U, D)
# Annoying and error prone:
Ut = replaceinds(prime(U, u), Lis, Ris)
B = U * D * dag(Ut)
@show norm(A - B)

In general, we could return the ITensor Ut that has the proper indices such that U*D*dag(Ut) gives an approximation for the input (at least in the hermitian case). Returning Ut would only add the cost of the Index manipulations (while returning dag(Ut) would add the possible cost of the complex conjugation).
This came up for my when I was rewriting _contract_densitymatrix, and I found it useful to have the more general version of eigen, but I need both U and Ut and it was a bit annoying. The only downside I see is that it breaks code where someone was extracting the spectrum object from the eigen return, i.e.:
U,D,spec = eigen(A)

if we decide to make the return order U,D,Ut,spec. We could return Ut last, and people could extract it like:
F = eigen(A)
@show norm(F.U * F.D * F.Ut - A)

I'm not sure how common it will be to want Ut vs. the Spectrum object.

Just want to point out this is also useful in the non-Hermitian case, since Ut is the ITensor needed to test the eigenvectors:
i = Index(2, "i")
j = Index(2, "j")
Lis = IndexSet(i, j)
Ris = sim(Lis)
A = randomITensor(Lis..., Ris...)
U, D = eigen(A, Lis, Ris)
u = commonind(U, D)
# Annoying and error prone:
Ut = replaceinds(prime(U, u), Lis, Ris)
@show norm(U*D - D*dag(Ut))

@emstoudenmire, do you have an opinion on if/how we should return the Ut ITensor? We could even do something clever like return Ud = dag(Ut), but only compute dag if someone asks for that return (for example in TruncEigen, store Ut, but then in the iterator compute dag(Ut)).

Hi Matt, yes I agree there's definitely some improvement to be done here. How about we discuss this in more detail later today via Zoom or on Slack?
Tentatively, my current take on this is that the first case is special enough (yet also common) that it deserves its own function name, such as eigenh or eigen_hermitian. Even though Julia may just call various cases all "eigen", that's ok there because all matrices are rather similar so it makes more sense there. But here there's a rather different set of conventions and expectations about the Index structure of the input, and about the output. So forcing it to be the same function as a more general eigen could be the root of the problem here.
Then we could have a function that's just called "eigen" which doesn't assume anything about the ITensor or its index structure.
I'm open to other ideas, though, so let's discuss -

This is closed by #334.


Apollo cache module

Our external Store dependency was moved fully to Kotlin and preparing to support Kotlin Multiplatform too: https://github.com/dropbox/Store/
I took the opportunity to "try" moving cache related code into a new module. apollo-cache. This is currently only used by runtime and should not introduce any behavior changes. Doing this would make much easier to introduce Kotlin Multiplatform in the future since we can do iteratively.
It was also a good exercise of modularization which should also improve the codebase.
Now we have:
apollo-http-cache
apollo-http-cache-api
apollo-cache

Am I correct that apollo-cache is only about normalize cache ? If yes, I'd name this module apollo-normalized-cache to make it clear that it's different from the http-cache.

Yes! That's makes sense a lot. Thanks for the suggestion.

Will close this for now. I will try one more time with a new module name in a separate PR


Enforce upload size limit : server-side

So it can be configured dynamically by service admin, instead of hard-coded in mobile app.
This doesn't change much for security concerns (cheaters gonna cheat).
The resource size must be checked by service /new-gcs-urls. This means that the app would provide it as a parameter.

See former mobile app hard-coded limit : #85

Then drop the mobile app hard-coded limit? Or set it high? Or manage it somehow?

Note that we currently don't have control over what is sent to, and received by, the GCS servers pointed to by the signed uploadUrls.
Thus, we rely on cooperative behavior between mobile app and backend, to declare intended size of upload, so it can be denied even before the uploadUrl is created.

The final enforcement problem remains.
Read http://stackoverflow.com/questions/17704362/enforcing-object-max-size-and-content-mime-type-within-signed-upload-urls  for possible solution.

But a "policy document" applies to a POST, not to a PUT :(

Nacho says it can be applied to a PUT.


[iOS][animation]: swipe-to-pop-navigator animation is janky

Details
This is the code. A very simple list view
https://gist.github.com/linhewinner/7868481e512780ba793775bb818b871f
This is a demonstration of the jank. As you can see "Demo Details 1" is janky while "Demo Details 0" is not janky:
https://user-images.githubusercontent.com/97132583/152900793-28d7ee27-a18c-4dcd-bdb4-2a399caf27eb.MP4
When the jank happens, DevTools Profiler is well under 8ms every frame.
The weird thing is that if you put a CircularProgressIndicator in the view hierarchy, the jank goes away.
I also experimented with replacing the CircularProgressIndicator with a StatefulComponent that just updates itself every 16ms. That also fixes the jank.
I switched to flutter master, and see the exact same behavior.

Target Platform: iOS
Target OS version/browser: iOS 14
Devices: iPhone 13 Pro
Logs

Logs

Analyzing [REDACTED]...
No issues found! (ran in 3.5s)

linhe@/Users/linhe/[REDACTED] flutter doctor -v
[✓] Flutter (Channel stable, 2.8.1, on macOS 12.1 21C52 darwin-x64, locale en-US)
    • Flutter version 2.8.1 at /Users/linhe/development/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 77d935af4d (8 weeks ago), 2021-12-16 08:37:33 -0800
    • Engine revision 890a5fca2e
    • Dart version 2.15.1

[✓] Android toolchain - develop for Android devices (Android SDK version 32.1.0-rc1)
    • Android SDK at /Users/linhe/Library/Android/sdk
    • Platform android-32, build-tools 32.1.0-rc1
    • Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.11+0-b60-7590822)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 13.2.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • CocoaPods version 1.11.2

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2021.1)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.11+0-b60-7590822)

[✓] VS Code (version 1.64.0)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.34.0

[✓] Connected device (3 available)
    • Lin’s iPhone (mobile) • 00008110-0002393C3E7A801E            • ios            • iOS 15.2.1 19C63
    • iPhone 13 (mobile)    • F291AF0C-5B8C-434C-955E-A08AB84C3786 • ios            • com.apple.CoreSimulator.SimRuntime.iOS-15-2 (simulator)
    • Chrome (web)          • chrome                               • web-javascript • Google Chrome 98.0.4758.80

• No issues found!

encountered the same problem

@linhewinner
I looked at the video you shared above, but couldn't notice exactly as where the jank is while swiping back to previous screen, I didn't notice any jank. Maybe I missed something to spot properly in the video. I looked at Demo details 1 and 0, but couldn't spot the jank.
Also, I used your code sample and ran it on iPhone 6s (OS 14.4.1) device using latest stable (2.10.0) but didn't notice any jank, unless I missed anything obvious.
https://user-images.githubusercontent.com/67046386/153205094-e76363a6-6eb1-4e32-bdeb-bfe5c18247a7.MP4
Can you elaborate as when exactly the jank occurs ?
Channel stable, 2.10.0

@linhewinner
Can you add showPerformanceOverlay: true and see if swipe to pop shows any skipped frames in it ?

No skipped frames at all! Every frame is well under 8ms.
That's what's so scary.
I noticed the same pattern in a list view on my iPhone 13 Pro when I drag (note: not scroll but drag. scrolling is fine but drag is janky as well).
Even when dragging looks janky as well, the performance profiler reports 120fps (every frame is under 8ms).
Curiously, when I try the exact same build on my wife's iPhone 11, dragging is perfect. No jank at all.
It feels like something is going on on iPhone 30 ProMotion ... jank that isn't showing up in performance profiler.

For me i have junk on iphone 7 and 12 pro(. Same, no frames skipped on profiler but on device they are really bad. And yes, if you add some endless animation on first screen, junk goes away.

if anyone needs a workaround, this is what I am using

@darshankawar What xcode building tools version do you use? Mabey it's some how related.

same

fixed by https://github.com/flutter/engine/pull/31513


Extra monitorExit() call

I think I have uncovered a bug.  Java code:
while (entry==null && errorContainer[0]==null){
                    synchronized(lock){
                        try {
                            _log("About to wait on lock");

                            lock.wait();
                        } catch (InterruptedException ex){

                        }
                    }
                }

                if (entry==null){
                    _log("Entry is null");

                    throw new IOException("Temp error"/*errorContainer[0].toString()*/);
                }

See actual source here:
https://github.com/shannah/cn1-teavmport-demos/blob/issue_93/DrSbaitso/src/main/java/com/codename1/impl/html5/HTML5Implementation.java#L2580
Roughly results in this Javascript:
$ba: {
            $bb: {
                $bc: {
                    try {
                        try {
                            jl_Object2_wait38(b);
                            if ($rt_suspending()) {
                                break $main;
                            }
                        } catch ($e) {
                            $je = $e.$javaException;
                            if ($je && $je instanceof jl_InterruptedException1977) {
                                e = $je;
                                break $bc;
                            } else {
                                throw $e;
                            }
                        }
                        break $bb;
                    } catch ($e) {
                        $je = $e.$javaException;
                        if ($je) {
                            d = $je;
                            break $ba;
                        } else {
                            throw $e;
                        }
                    }
                }
                try {
                    break $bb;
                } catch ($e) {
                    $je = $e.$javaException;
                    if ($je) {
                        d = $je;
                        break $ba;
                    } else {
                        throw $e;
                    }
                }
            }
            try {
                jl_Object2_monitorExit42(b);
                if ($this.entry1572 === null && c.data[0] === null) {
                    $ptr = 3;
                    continue $main;
                }
                if ($this.entry1572 === null) {
                    ccih_HTML5Implementation1011_access$1900904($this.this$01574, $rt_s(162));
                    $rt_throw(ji_IOException1148_$init191($rt_s(1020)));
                }
                ccih_HTML5Implementation1011_access$1900904($this.this$01574, $rt_s(1018));
                return $this.entry1572;
            } catch ($e) {
                $je = $e.$javaException;
                if ($je) {
                    d = $je;
                    break $ba;
                } else {
                    throw $e;
                }
            }
        }
        jl_Object2_monitorExit42(b);
        $rt_throw(d);

I get an IllegalMonitorStateException when that 2nd monitorExit() call is reached.
To reproduce this you can build the DrSbaitso project in the issue_93 branch:
https://github.com/shannah/cn1-teavmport-demos/tree/issue_93/DrSbaitso

Open in Chrome (make sure allow local file access or to load from localhost and not file:///) on a computer with a webcam.
Click "Take Photo"
Click "Allow" when it asks if it can use your web cam.
Click in the "video" screen.  Then click the "Use" button (to accept the photo).

When I do this, the exception is silently gobbled up, but it basically results in a deadlock.  If you place a break point where the exception occurs (e.g.
} catch ($e) {
                $je = $e.$javaException;

Then you can see it.

Perhaps, it is an old bug in decompiler or AST optimizer. The following line:
$rt_throw(ji_IOException1148_$init191($rt_s(1020)));

should not be inside try/catch block

I made fix for this issue. The generated code looks properly, but I can't test it with webcam right now. Please, test DrSbaitso with the latest version of TeaVM.

I tested it, and this issue appears to be fixed.  Thanks!


Broken resolveuid links

Steps to Reproduce

Visit https://ocwnext.odl.mit.edu/courses/es-293-lego-robotics-spring-2007/pages/projects/
Click on "Program 1" and "Program 2" in row 6 of the table.

Expected Behavior
Links should work
Actual Behavior
Error
Notes
These links are resolveuid links. See https://github.mit.edu/mitocwcontent/es.293-spring-2007/blame/main/content/pages/projects/_index.md#L102
There 249 such links across 51 courses

In the example listed here, I think you should be able convert the resolveuid value, e.g. 25c763de974fc179d7c8d83ee79faa2f and 7b6bf8cd843780a3eed41a83ffc7c267, respectively, into the appropriate resource uuid, e.g. 25c763de-974f-c179-d7c8-d83ee79faa2f and 7b6bf8cd-8437-80a3-eed4-1a83ffc7c267

This was run today on production; 30 courses were affected and republished.
site_names = [
    'es-293-lego-robotics-spring-2007',
    '14-01sc-principles-of-microeconomics-fall-2011',
    'ec-s01-internet-technology-in-local-and-global-communities-spring-2005-summer-2005',
    '6-245-multivariable-control-systems-spring-2004',
    '6-821-programming-languages-fall-2002',
    '20-180-biological-engineering-programming-spring-2006',
    '18-05-introduction-to-probability-and-statistics-spring-2014',
    '15-097-prediction-machine-learning-and-statistics-spring-2012',
    '8-592j-statistical-physics-in-biology-spring-2011',
    '12-335-experimental-atmospheric-chemistry-fall-2014',
    '12-540-principles-of-the-global-positioning-system-spring-2012',
    '6-270-autonomous-robot-design-competition-january-iap-2005',
    '6-857-network-and-computer-security-spring-2014',
    '6-243j-dynamics-of-nonlinear-systems-fall-2003',
    '18-s096-topics-in-mathematics-with-applications-in-finance-fall-2013',
    '12-811-tropical-meteorology-spring-2011',
    '6-00sc-introduction-to-computer-science-and-programming-spring-2011',
    'hst-410j-projects-in-microscale-engineering-for-the-life-sciences-spring-2007',
    '15-071-the-analytics-edge-spring-2017',
    '6-858-computer-systems-security-fall-2014',
    '24-914-language-variation-and-change-spring-2019',
    'res-14-001-abdul-latif-jameel-poverty-action-lab-executive-training-evaluating-social-programs-2009-spring-2009',
    '1-022-introduction-to-network-models-fall-2018',
    '14-382-econometrics-spring-2017',
    '14-771-development-economics-microeconomic-issues-and-policy-models-fall-2008',
    '18-337j-parallel-computing-fall-2011',
    '6-170-laboratory-in-software-engineering-fall-2005',
    '6-006-introduction-to-algorithms-fall-2011',
    '2-092-finite-element-analysis-of-solids-and-fluids-i-fall-2009',
    '1-00-introduction-to-computers-and-engineering-problem-solving-spring-2012'
]


Propose git client-side hooks

You can easily track a feature dev if you listen to the git checkout -b, git commit & git push commands. Would be nice to link watson and a standard git flow.
I don't know in which order it makes the more sense
git checkout -b my-feature triggers watson start my-feature or the reverse...
git proposes client-side hooks, it can be a pragmatic approach.
The aim is to have a seamless (almost transparent) time tracking for git users

I doubt it would be possible to find a one-size-fits-all approach for this. Does everybody start working on a feature by creating a branch? What about research or investigation that comes before it? Is work really done after the last commit? How do you know it is the last one? The merge might happen much later, because often the commiter is not the same person as the merger.
If you you want to link watson to a software development workflow, I think a ticket tracker would be a much better candidate for integration than a VCS.

It's not the first time this features comes up, and my point of view so far has always been pretty close to what @SpotlightKid said. It really depends on your workflow, so we will probably never ship a feature like that with Watson.
However, if you make git hooks which work for you, don't hesitate to share them with the community, we'll link them in the doc :) .

@danielpetisme: as @k4nar said, feel free to submit your project's repository in this thread! We will add it to the documentation. In the meantime, I'll close this issue.


apollo client resetStore with apollo-link-state triggers Error: Network error: Cannot read property of undefined

I am trying this a second time because the previous issue was closed without a single test #194
so the error is replicated here https://codesandbox.io/s/v69v13w0o0
you will see the error in the console after clicking the reset button which does client.resetStore
i really hope we can sort this out
thanks

1 for me, I also did like told in the docs about putting statelink.writeDefaults and nothing change same error.

i added client.onResetStore(stateLink.writeDefaults);
the error exists with or without this callback

looking into the code i realized that this is actually an apollo client bug ... not related to apollo-link-state

+1 for me...
i think same issue on #187, #194... and #195 should fix.. but i am still getting the same error even upgrading both apollo-cache-inmemory and apollo-link-state...
"apollo-cache-inmemory": "^1.1.7",
"apollo-client": "^2.2.2",
"apollo-link-state": "^0.4.0",
"apollo-utilities": "1.0.6"

ok, i guess the trick is adding query to state resolvers like mentioned #156 by Scott (@stolinski)

yeap :) that fixed it :)

Maybe you are seeing different results than I, but simply adding an empty/dummy query to my resolvers map is not fixing anything. It masks the problem by causing the new (after a resetStore() call) resolverMap to exist, but the default resolvers are not present so future queries do not resolve properly, warning about Missing field someArbitraryStateField in {}.

@wKovacs64 u jinxed my code ... i can swear it was working yesterday ... now indeed i get Missing field :(
here is the updated link:
https://codesandbox.io/s/v69v13w0o0
i really hope we aren't the only ones tracking this issue :)

Maybe Apollo will clone @peggyrayzis for additional bandwidth.  😉 🤞

@wowzaaa Thank you for opening the issues! Really appreciate the codesandbox! It made spinning up on the project really nice. Please check out #202. It is sort of a temporary fix, since the query resolvers don't see the defaults yet. Let me know if #202 is what you are looking for or you need the cache.readQuery functionality as well.
@wKovacs64 Thank you for the followup! Hopefully I can live up to a clone of peggy :pray: Please take a peek at #202 when you get a chance!

@evan hi and thank you for your help ... i added Query: () => {}, to the resolvers but not it triggers a warning that Missing field counter in {}
i updated the codesandbox demo
https://codesandbox.io/s/3q2724orp5
thanks

#202 ...*resolves... the issue for my use case (I don't need cache.readQuery yet). Thank you, @evans!
*Sorry, couldn't resist. Not sorry. 😆

@wKovacs64 did u do anything else than adding Query: () => ({}),  to the resolvers? beucase i suggested that a few days ago and u mentioned the a missing field warning appears ... which i understand you do not get anymore ... so did u change anything else?
thanks

@wowzaaa I didn't add Query: () => ({}), it works without that (as it should). PR #202 is what fixes it, but it isn't merged/published yet. To test and confirm that it works for you, you can perform the following steps:

git clone https://github.com/apollographql/apollo-link-state.git
cd apollo-link-state/packages/apollo-link-state && git checkout reset-store-fix
yarn && yarn build
yarn link
Change directories back into your project
yarn link apollo-link-state

At that point, your project will be using your local copy of apollo-link-state with the fix in place.
Note:
If you do this, be sure to yarn unlink when you're done testing.

awesoeme response thanks :)
yes it works :)


Update Artifact Handler Validity Check for Gradle 8.1

See DefaultArtifactHandler#warnIfConfigurationIsDeprecated.  The condition for warning in this method should be updated to check if the configuration is consumable, and not rely on it having been deprecated.

This is currently blocked by Kotlin behavior, here

Blocked by https://github.com/gradle/gradle/issues/25810

Blocked by https://github.com/gradle/gradle/issues/26903


fix(v2): remove unnecessary backtick in output

Motivation
On reading the output that gets printed when there are inexistent IDs, I noticed an additional backtick getting printed after the list  of IDs. So, I thought of proposing a change that removes it.
Have you read the Contributing Guidelines on pull requests?
Yes.
Test Plan
Facing issues with testing the change locally. Hopefully, it should work properly. I'll update once I'm able to test this locally.
Related PRs
N/A

thanks, updated Jest the snapshot for you and will merge asap

Great, thanks! 🙂


Add support for the VT macro operations

Description of the new feature/enhancement
There are a couple of operations that were introduced on the VT420 that allow an application to define a sequence of a characters as a macro (DECDMAC), and then later invoke that macro to execute the content as if it had just been received from the host (DECINVM).
This can be a useful optimization in gaming if you need to define a sprite made up of a number of characters, spanning multiple rows, and using multiple colors. If you can upload the sequences for drawing the sprite as a macro, then any time you need to render it, you just set the cursor position and invoke it.
There is a similar use case for sound effects that need to be played more than once. Instead of having to upload a long set of DECPS sequences every time you play the sound, you just invoke a macro which has been predefined with the necessary sequences.
Proposed technical implementation details (optional)
The one complication is how we get the macro content injected into the output stream when it's invoked. The way I'm handling that in my current POC is with a kind of callback function that can be registered with the state machine, and which gets executed (if set) once we return to the ground state from a CSI action.
So in the dispatch handler for DECINVM, we register a lambda callback with the state machine which then injects the additional macro content with a ProcessString call once the state machine has returned to ground. It's a little more complicated than that, because the ProcessString implementation isn't reentrant, so we also need to save some state, but that's the basic gist of it.
I don't know if there's a nicer way of handling this, but that's my current plan if you're happy to accept a PR for this.

Wouldn't it be possible to .replace() the macro in the input buffer with the replacement string?

Wouldn't it be possible to .replace() the macro in the input buffer with the replacement string?

Not easily, no. The state machine is designed to work with an immutable wstring_view so I suspect that would require a significant rewrite. It could also be quiet inefficient when dealing with large macros, and/or nested macro invocations - you'd be allocating a bunch of additional memory for content that you already have in an existing string. Ideally we just want to pass that string directly to the state machine as is.

@KalleOlaviNiemitalo Yeah, there are actually quite a few aspects of the macros handling I'd like to check. I'm still putting together the test cases though.

@KalleOlaviNiemitalo I've put together my first set of tests here. I've grouped them all on a single page so you don't have to do hundreds of screenshots this time. But as always there's no rush for this - just whenever you have a chance.
I'm also hoping to put together another set of tests covering the macro DSR operations (reporting the available memory, and checksums of the defined macros), but it'll take me a while longer to get to that.

Are there applications that use the macro feature?

I was mostly doing this for use in my own applications, so I haven't really looked to see if anyone else is using macros. But I do know that libsixel is supposed to use them in some way to optimize gif animations. I haven't tested that with my sixel branch, because it's too far diverged to merge with anything recent, but I suspect we'd need to extend the permitted macro size quite a lot if we want that to work, and I'm not sure that's a good idea. But we can worry about that if/when we get sixel support.

How do they detect whether the terminal supports macros?

It's extension number 32 in the DA report, but it's a required feature for level 4 and above, so assumedly your VT420 wouldn't report that. Unfortunately modern terminal emulators tend to lie about their conformance level, so you can't really rely on that. Best bet may be to define a macro that triggers something like a DA report, execute that macro, and then see whether you get anything aback.
But ignoring everyone else, we will need to update our own DA response at some point to include this extension, and possibly a few other features that have been added recently (e.g. the rectangular area operations, and soft fonts). I've been putting that off because I'm not exactly sure how we're going to make that work over conpty.


Popup for rename document function

Hi,
Particularly for long titles the current way of renaming is a bit inconvenient.  It does not show the entire title and requires you to move the cursor to the left and right to see the complete title.
As a suggestion I think it would be nice to have the renaming title function to be displayed in a wider popup dialog that shows the entire title.
What do you think?

Hi @orschiro
Should be fixed in v5.


formatter is adding sometimes a trailing coma

Installing latest tinymist in new profile and setting Tinymist: Formatter Mode to typstyle, then rightclick "Format document"
results in adding trailing comma to this code
// Remove gridlines from tables
#set table(
  inset: 6pt,
  stroke: none
)

So the results is
// Remove gridlines from tables
#set table(
  inset: 6pt,
  stroke: none,
)

typstfmt format it correctly into
// Remove gridlines from tables
#set table(inset: 6pt, stroke: none)

could you elaberate? i dont think it's a bug

@Enter-tainer is there any official style guide for typst? Or this is just meant to be useful for code change management in version control? (decision by formatter design like black/ruff in Python)

AFAIK there isn't a style guide.

Subjective decision by formatter design like black/ruff in Python

Correct. Actually I add extra code for adding trailing comma

Do you have something to exclude line from formatting like # fmt: off
black?
On Wed, 6 Nov 2024 at 04:18, Wenzhuo Liu @.***> wrote:

AFAIK there isn't a style guide.
Subjective decision by formatter design like black/ruff in Python
Correct. Actually I add extra code for adding trailing comma
—
Reply to this email directly, view it on GitHub
https://github.com/Enter-tainer/typstyle/issues/147#issuecomment-2458647894,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AB44KXNYQG5HV6MEQIZKQQ3Z7GC73AVCNFSM6AAAAABRHJ5XCGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINJYGY2DOOBZGQ
.
You are receiving this because you authored the thread.Message ID:
@.***>

yes, add //@typstyle off before that ast node should disable formatting.
you may get more information about this in readme.md

thanks for the feedback!


Django admin/third party assets using webpack

As I'm new to the webpack world, it will be great to know how to bundle django admin JS/CSS with my default bundle.
The goal is to understand how to accommodate any third party assets using this package. Currently I'm working on project which heavily relies on django-select2 and other django packages'. In this case how i can tell the webpack to bundle all the assets related to django-select2 which will get used both during development and production.

Dupe of #141?
Except you add the admin but forget the admin there's nothing elegant that we're going to be able to do given the current situation.

django-select2 should have it's own mechanism to deliver assets to the browser as it would integrate with django's staticfiles management system.This sound orthogonal to what django-webpack-loader does. You probably might not even need django-webpack-loader. Thiis package is usually helpful for building SPAs that are delivered by a Django backend. If you need to use select2  in your SPA then you'd install it through npm/yarn and use directly. You wouldn't need django-select2 in that case.


Uncaught SyntaxError: Unexpected end of JSON input "/api/settings/time/difference" returns 404

I am getting this error on reload of the client, otherwise seems to work.

index.html#/:1 Uncaught SyntaxError: Unexpected end of JSON input
    at JSON.parse (<anonymous>)
    at IncomingMessage.eval (eval at <anonymous> (bundle.js:4112), <anonymous>:108:31)
    at emitNone (events.js:91)
    at IncomingMessage.emit (events.js:188)
    at endReadableNT (_stream_readable.js:975)
    at _combinedTickCallback (internal/process/next_tick.js:80)
    at process._tickCallback (internal/process/next_tick.js:104)
(anonymous)	@	request.js?c6b6:75
emitNone	@	events.js:91
emit	@	events.js:188
endReadableNT	@	_stream_readable.js:975
_combinedTickCallback	@	internal/process/next_tick.js:80
_tickCallback	@	internal/process/next_tick.js:104

Posted on Utopian.io -  Rewarding Open Source Contributors

Server is running origin/cardano-sl-1.0
front end is running daedalus master
Here is where it is happening in  request.js
   response.on('end', () => {
        const parsedBody = JSON.parse(body);

The this.req.res.statusCode== 404 and is not being checked.
Now there are two files that look very similar:
https://github.com/input-output-hk/daedalus/blob/master/app/api/etc/lib/request.js#L36
and
https://github.com/input-output-hk/daedalus/blob/master/app/api/ada/lib/request.js#L75
Body is empty:

The incoming message is a 404 not found!
IncomingMessage {_readableState: ReadableState, readable: false, domain: null, _events: EventHandlers, _eventsCount: 3…}
statusCode:404
statusMessage :"Not Found"

The request is
"/api/settings/time/difference"
Here is what I found in the _header : .req.socket._httpMessage._header
"GET /api/settings/time/difference HTTP/1.1
Host: localhost:8090
Connection: close"

same here, what to do?

You need to upgrade the backend to the one including the backend  https://github.com/input-output-hk/cardano-sl/blob/58bd3caab1779b2cd71f0298bc18f766cdd80ab8/wallet-new/server/Cardano/Wallet/API/V1/Handlers/Info.hs

I have finally managed to build the wallet GUI running everything on a Ubuntu VM and now my wallet is stuck too on 100%. Just read here that I have to upgrade the back end. You gotta be kidding me...

@zmeel i was able to run the wallet and cardano successfully (already created a wallet on arch linux) both with the help of https://github.com/hcvst/cardano-daedalus-docker

@madnight I have seen that Docker image and tried it. It is functional but I like to build my own binaries just for security reasons. Yesterday, I was a bit frustrated because I build everything on my NAS which is not a CPU monster. Building time is around 2 hours. I just discovered I had to build again with an upgrade...

Oke, back again. I have now the backend and the middleware running on my Synology NAS and the frontend wallet on my MacBook. It has been syncing for a good 2 hours and now is stuck again on 100%. I thought I had the right Cardano-sl backend but apparently not.
@h4ck3rm1k3 How do I use this version?

ok, what versions are you running and are you getting this error https://github.com/input-output-hk/daedalus/issues/611

@h4ck3rm1k3 I have build from master and indeed same error as in #611 and thus same as madnight shows few posts up.

Ok the solution for that is to make sure you have a server that implements
that API. https://github.com/h4ck3rm1k3/cardano-sl my branch works for sure
On Sat, Dec 23, 2017 at 11:15 AM, Erik van Hannen<EMAIL_ADDRESS>wrote:

@h4ck3rm1k3 https://github.com/h4ck3rm1k3 I have build from master and
indeed same error as in #611
https://github.com/input-output-hk/daedalus/issues/611 and thus same as
madnight shows few posts up.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/input-output-hk/daedalus/issues/603#issuecomment-353734475,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AACIV_hIjetWnSXEjnGfXMhgGer2NKDzks5tDScUgaJpZM4RE5DM
.

--
James Michael DuPont

I will tried that branch...

Oke. Next try, next fail. Stuck at 100% again.
@h4ck3rm1k3 I have build from cardano-sl master but made a change to daedalus/package.json I found in your fork. Apparently, that was not enough. Can you please tell me which change resolves the stuck at 100%?
I really like to build from the original cardano-sl source for obvious reasons.

I did not change any important source, I just branched at some point and
added docs. The package json change is is not important. The change you
need is to have the time api implemented. I assumed you synced your clocks
with ntp.
So from my understanding the code that implements that time diff api is
around here
https://github.com/h4ck3rm1k3/cardano-sl/blob/master/wallet-new/server/Cardano/Wallet/API/V1/Handlers/Info.hs#L37
So, I will do some more diagnostics on this after christmas, I have a lot
of family here now.
On Sun, Dec 24, 2017 at 12:46 PM, Erik van Hannen<EMAIL_ADDRESS>wrote:

Oke. Next try, next fail. Stuck at 100% again.
@h4ck3rm1k3 https://github.com/h4ck3rm1k3 I have build from cardano-sl
master but made a change to daedalus/package.json I found in your fork
https://github.com/h4ck3rm1k3/cardano-sl/commit/a0689daf3697147829876cf2aabe61a2072f5898.
Apparently, that was not enough. Can you please tell me which change
resolves the stuck at 100%?
I really like to build from the original cardano-sl source for obvious
reasons.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/input-output-hk/daedalus/issues/603#issuecomment-353796122,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AACIV1NV8zKD2XWS8j6_jsWiiUvf4p6oks5tDo3qgaJpZM4RE5DM
.

--
James Michael DuPont

@h4ck3rm1k3 Merry Christmas, James!

So running this api call :
https://localhost:8090/api/settings/time/difference
returns :
{"Right":0}
What does your server return?
On Mon, Dec 25, 2017 at 6:39 AM, Erik van Hannen<EMAIL_ADDRESS>wrote:

@h4ck3rm1k3 https://github.com/h4ck3rm1k3 Merry Christmas, James!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/input-output-hk/daedalus/issues/603#issuecomment-353863373,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AACIVwAp2Ncg8zgWp0dZ2op942nznvT4ks5tD4ligaJpZM4RE5DM
.

--
James Michael DuPont

HTTP/1.1 404 Not Found
I don't have that API. I can run curl --cacert ca.crt -v https://localhost:8090/api/settings/sync/progress. That gives:
{"Right":{"_spLocalCD":{"getChainDifficulty":{"getBlockCount":400729}},"_spNetworkCD":{"getChainDifficulty":{"getBlockCount":400729}},"_spPeers":0}}
So I can make API call but no luck with https://localhost:8090/api/settings/time/difference

so now tell me what version of the software are you running on that port?
It looks like the binary that is running is not the one I expected,
mdupont@debian-build-speed:~$ lsof -i :8090
COMMAND    PID    USER   FD   TYPE  DEVICE SIZE/OFF NODE NAME
cardano-n 8110 mdupont   36u  IPv4 7305209      0t0  TCP localhost:8090->localhost:56702 (ESTABLISHED)
cardano-n 8110 mdupont   46u  IPv4 6949415      0t0  TCP localhost:8090 (LISTEN)
cardano-n 8110 mdupont   47u  IPv4 7305195      0t0  TCP localhost:8090->localhost:56686 (ESTABLISHED)

mdupont@debian-build-speed:~$ lsof -p 8110
cardano-n 8110 mdupont  txt       REG   254,0 69562056  1801550 /home/mdupont/experiments/cardano-sl/.stack-work/install/x86_64-linux-nopie/lts-9.1/8.0.2/bin/cardano-node

mdupont@debian-build-speed:~$ /home/mdupont/experiments/cardano-sl/.stack-work/install/x86_64-linux-nopie/lts-9.1/8.0.2/bin/cardano-node --version
cardano-node-1.0.3, git revision 5e1a168

mdupont@debian-build-speed:~/experiments/cardano-sl$ git log 5e1a168
commit 5e1a1684dc0abb7fe67c892f254c7c34937d2cf6
Merge: 814d836 742e1a0
Author: Ivan Gromakovskii<EMAIL_ADDRESS>Date:   Fri Dec 15 18:35:40 2017 +0300

    Merge pull request #2124 from input-output-hk/cardano-sl-1.0

    Merge cardano-sl-1.0

https://github.com/input-output-hk/cardano-sl/commit/5e1a1684dc0abb7fe67c892f254c7c34937d2cf6
I will have to look into this more

mdupont@debian-build-speed:~/experiments/cardano-sl$ md5sum /home/mdupont/experiments/cardano-sl/.stack-work/install/x86_64-linux-nopie/lts-9.1/8.0.2/bin/cardano-node
170185337d44b31c2de507589bfa7683  /home/mdupont/experiments/cardano-sl/.stack-work/install/x86_64-linux-nopie/lts-9.1/8.0.2/bin/cardano-node

zmeel@5654cf075629:~/cardano-sl$ lsof -i :8090
COMMAND     PID  USER   FD   TYPE   DEVICE SIZE/OFF NODE NAME
cardano-n 11619 zmeel   43u  IPv4 60521277      0t0  TCP localhost:8090 (LISTEN)

zmeel@5654cf075629:~/cardano-sl$ lsof -p 8110
zmeel@5654cf075629:~/cardano-sl$

zmeel@5654cf075629:/nix/store/fn9yzqnig8xrqpvqhb23gz5l7iwq49xd-cardano-sl-wallet-1.0.3/bin$ ./cardano-node --version
cardano-node-1.0.3

what revision are you on? what md5sum?

zmeel@5654cf075629:~/cardano-sl$ md5sum /nix/store/fn9yzqnig8xrqpvqhb23gz5l7iwq49xd-cardano-sl-wallet-1.0.3/bin/cardano-node
dc8ee7162440df2ddb0897846983aeb4  /nix/store/fn9yzqnig8xrqpvqhb23gz5l7iwq49xd-cardano-sl-wallet-1.0.3/bin/cardano-node

I don't have the time diff api. There is no wallet-new folder in my cardano-sl folder. I have build from master. Branch cardano-sl-1.0 is not there anymore:

zmeel@5654cf075629:~/cardano-sl$ git checkout cardano-sl-1.0
error: pathspec 'cardano-sl-1.0' did not match any file(s) known to git.

It is a bit of a mess. I have opened an issue on the stuck at 100% problem.

I'm building now from branch develop. Then wallet-new with time-diff api is there. This will take some time...

Again stuck at 100%. Also no luck with the API:

root@5654cf075629:/etc/ssl/certs# curl --cacert ca.crt -v https://localhost:8090/api/settings/time/difference
*   Trying <IP_ADDRESS>...
* TCP_NODELAY set
* Connected to localhost (<IP_ADDRESS>) port 8090 (#0)
* ALPN, offering http/1.1
* Cipher selection: ALL:!EXPORT:!EXPORT40:!EXPORT56:!aNULL:!LOW:!RC4:@STRENGTH
* successfully set certificate verify locations:
*   CAfile: ca.crt
  CApath: /etc/ssl/certs
* TLSv1.2 (OUT), TLS header, Certificate Status (22):
* TLSv1.2 (OUT), TLS handshake, Client hello (1):
* TLSv1.2 (IN), TLS handshake, Server hello (2):
* TLSv1.2 (IN), TLS handshake, Certificate (11):
* TLSv1.2 (IN), TLS handshake, Server key exchange (12):
* TLSv1.2 (IN), TLS handshake, Server finished (14):
* TLSv1.2 (OUT), TLS handshake, Client key exchange (16):
* TLSv1.2 (OUT), TLS change cipher, Client hello (1):
* TLSv1.2 (OUT), TLS handshake, Finished (20):
* TLSv1.2 (IN), TLS change cipher, Client hello (1):
* TLSv1.2 (IN), TLS handshake, Finished (20):
* SSL connection using TLSv1.2 / ECDHE-RSA-AES256-GCM-SHA384
* ALPN, server accepted to use http/1.1
* Server certificate:
*  subject: DC=io; DC=iohk; O=Input Output HK; OU=Cardano Settlement Layer Server Node; CN=localhost
*  start date: Jul 19 17:31:34 2017 GMT
*  expire date: Jul 19 17:31:34 2027 GMT
*  common name: localhost (matched)
*  issuer: DC=io; DC=iohk; O=Input Output HK; OU=Daedalus Self-Signed Root CA; CN=Daedalus Self-Signed Root CA
*  SSL certificate verify ok.
> GET /api/settings/time/difference HTTP/1.1
> Host: localhost:8090
> User-Agent: curl/7.55.1
> Accept: */*
>
< HTTP/1.1 404 Not Found
< Transfer-Encoding: chunked
< Date: Mon, 25 Dec 2017 22:31:29 GMT
< Server: Warp/3.2.13
<
* Connection #0 to host localhost left intact

but what version are you running?
I have 3 different nodes on my machine.
The one does not have a version string after the cardano-node-1.0.3, others do, so I am doubtig you are using the right version. Please double check you are executing the right cardano-node that you built. It is very easy to get lost and confused with nix.
locate cardano-node | grep bin/ | grep cardano-node$
This shows me 3 different versions:
/home/mdupont/experiments/cardano-sl/.stack-work/install/x86_64-linux-nopie/lts-9.1/8.0.2/bin/cardano-node
/nix/store/6rjxsy8cr9ixqcdi1zhfgyrrvfrps14d-cardano-sl-wallet-1.0.3/bin/cardano-node
/nix/store/qihq1fn2rh2n1n5m0c0x4w3129vx1l6m-cardano-sl-wallet-1.0.3/bin/cardano-node
Looking at the version strings :
/home/mdupont/experiments/cardano-sl/.stack-work/install/x86_64-linux-nopie/lts-9.1/8.0.2/bin/cardano-node --version
cardano-node-1.0.3, git revision 5e1a168
/nix/store/6rjxsy8cr9ixqcdi1zhfgyrrvfrps14d-cardano-sl-wallet-1.0.3/bin/cardano-node --version
cardano-node-1.0.3
/nix/store/qihq1fn2rh2n1n5m0c0x4w3129vx1l6m-cardano-sl-wallet-1.0.3/bin/cardano-node --version
cardano-node-1.0.3, git revision 5e1a1684dc0abb7fe67c892f254c7c34937d2cf6

mdupont@debian-build-speed:~/experiments/cardano-sl$ md5sum /home/mdupont/experiments/cardano-sl/.stack-work/install/x86_64-linux-nopie/lts-9.1/8.0.2/bin/cardano-node /nix/store/2b3iyffaskrxyandiccnsvqnfdxfvbdv-cardano-sl-1.0.3/bin/cardano-node-simple /nix/store/6rjxsy8cr9ixqcdi1zhfgyrrvfrps14d-cardano-sl-wallet-1.0.3/bin/cardano-node /nix/store/qihq1fn2rh2n1n5m0c0x4w3129vx1l6m-cardano-sl-wallet-1.0.3/bin/cardano-node
170185337d44b31c2de507589bfa7683  /home/mdupont/experiments/cardano-sl/.stack-work/install/x86_64-linux-nopie/lts-9.1/8.0.2/bin/cardano-node
b66251b0253b6aee6d7745206382408e  /nix/store/2b3iyffaskrxyandiccnsvqnfdxfvbdv-cardano-sl-1.0.3/bin/cardano-node-simple
c7bc65dc4e8ad565106049da072d23a2  /nix/store/6rjxsy8cr9ixqcdi1zhfgyrrvfrps14d-cardano-sl-wallet-1.0.3/bin/cardano-node
b6dbfc9dbbb9e45e1555a76d66a7caa8  /nix/store/qihq1fn2rh2n1n5m0c0x4w3129vx1l6m-cardano-sl-wallet-1.0.3/bin/cardano-node

After I built in my directory :
lrwxrwxrwx   1 mdupont mdupont    60 Dec 18 08:31 cardano-sl-master -> /nix/store/vpm4c2kq5p5wzrijziljasjc0z9ckggl-cardano-sl-1.0.3
lrwxrwxrwx   1 mdupont mdupont    60 Dec 18 09:40 cardano-sl-1.0 -> /nix/store/vpm4c2kq5p5wzrijziljasjc0z9ckggl-cardano-sl-1.0.3
lrwxrwxrwx   1 mdupont mdupont    67 Dec 18 09:53 result -> /nix/store/qihq1fn2rh2n1n5m0c0x4w3129vx1l6m-cardano-sl-wallet-1.0.3

Looking at that it shows
mdupont@debian-build-speed:~/experiments/cardano-sl$/nix/store/qihq1fn2rh2n1n5m0c0x4w3129vx1l6m-cardano-sl-wallet-1.0.3/bin/cardano-node --version
cardano-node-1.0.3, git revision 5e1a1684dc0abb7fe67c892f254c7c34937d2cf6
But this is not the version that I have checked out, as confirmed before. I am going to clean and rebuild everything.

Reviewing my build notes https://github.com/h4ck3rm1k3/cardano-sl I am going to rebuild it from there, removing the temp files going to double check everything.

https://github.com/h4ck3rm1k3/cardano-sl I have added my build logs, connect logs and full instructions. Using my build version is working just the same as the previous version, it seems I did something wrong and was off by a commit hash but nothing critical.

I posted all my versions and instructions, please check and let me know if you have any problems.

Up till now I have build cardano-sl through nix-build:

nix-build -A cardano-sl-static --cores 0 --max-jobs 2 --no-build-output --out-link cardano-sl-1.0

Currently, I'm trying out:

/scripts/build/cardano-sl.sh

Did you build it inside the nix-shell?

I setup the build like for the nix build
This is in my env :
NIX_LINK=/home/mdupont/.nix-profile
NIX_PATH=nixpkgs=/home/mdupont/.nix-defexpr/channels/nixpkgs
NIX_SSL_CERT_FILE=/etc/ssl/certs/ca-certificates.crt
I setup the nix to run, but it does not seem to build the binaries, the
stack build works.
Just reran the build and it works. This is outside the nix-shell. I am not
using nix-shell.
On Tue, Dec 26, 2017 at 1:49 AM, Erik van Hannen<EMAIL_ADDRESS>wrote:

Up till now I have build cardano-sl through nix-build:
nix-build -A cardano-sl-static --cores 0 --max-jobs 2 --no-build-output --out-link cardano-sl-1.0
Currently, I'm trying out:
/scripts/build/cardano-sl.sh
Did you build it inside the nix-shell?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/input-output-hk/daedalus/issues/603#issuecomment-353927508,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AACIV4N9y1Uy3382sM6HIuuPodW6g06lks5tEJbqgaJpZM4RE5DM
.

--
James Michael DuPont

Again no luck. Syncing stuck on 100.00%. I have checked but again no time diff api. Maybe the difference build method (nix-build vs stack) is the problem. I'm lost and hoping a developer could shed some light on this issue...

try the stack instructions. This works. Also look if you are building different versions of the binary on your system.

Erik,
I am trying to help you but you can at least give the things a try that I
found out. Please try the stack install.
mdupont@debian-build-speed:~/experiments/cardano-sl$ stack --version
Version 1.5.1, Git revision 600c1f01435a10d127938709556c1682ecfd694e (4861
commits) x86_64 hpack-0.17.1
see
https://github.com/commercialhaskell/stack/blob/master/doc/install_and_upgrade.md
On Tue, Dec 26, 2017 at 7:31 AM, Erik van Hannen<EMAIL_ADDRESS>wrote:

Again no luck. Syncing stuck on 100.00%. I have checked but again no time
diff api. Maybe the difference build method (nix-build vs stack) is the
problem. I'm lost and hoping a developer could shed some light on this
issue...
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/input-output-hk/daedalus/issues/603#issuecomment-353963586,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AACIV87f72E1sFdjSSITKs2LEdtk9j1iks5tEOcLgaJpZM4RE5DM
.

--
James Michael DuPont

Hi James,
I'm sorry that a gave you the impression I didn't try your suggestions. I have tried them all but unfortunately, the don't work out yet. I have tried building with the stack method yesterday, but (as I wrote) have difficulties with the rocksdb libraries.  Up til now, I have not run npm install in the nix-shell. I'm going to try that tonight. About the versions. I checked the version from my last build. They are up to par (did you see my previous messages?). They are al 1.0.3.

One more thing. This time difference API you have in your version of the node is not mentioned in the documents (here). How did you found out about this API? Are you sure that the absence of this API in my node is the reason I get stuck at 100% syncing?

James, I have the feeling you read my comments only from the emails, is that correct? I have edited a lot of my comments after I have submitted them. If so, please read my comments on Github...

yes, I am getting email notifications and responding to them. As for this
issue, I am going to setup a clean build of this in a docker or something
to test again and document every single step when I have time.
On Wed, Dec 27, 2017 at 6:19 AM, Erik van Hannen<EMAIL_ADDRESS>wrote:

James, I have the feeling you read my comments only from the emails, is
that correct? I have edited a lot of my comments after I have submitted
them. If so, please read my comments on Github...
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/input-output-hk/daedalus/issues/603#issuecomment-354099100,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AACIVxPyWoJpOdEkrj-xcuFC9z9J9ZLcks5tEiewgaJpZM4RE5DM
.

--
James Michael DuPont

Okay, that explains things. If you have time, please reread my comments on Github. I have added a lot of info to many of my comments. At the moment, I don't believe the cardano-sl backend is causing my 100% syncing problem. It is the Daedalus wallet software that needs to be upgraded...

Ok, so I have rebuilt the cardno sl node with nix from scratch, after clearing nix.
mdupont@debian-build-speed:~/experiments/cardano-sl$ sudo rm -rf /nix

mdupont@debian-build-speed:~/experiments/cardano-sl$ curl https://nixos.org/nix/install | sh
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  2471  100  2471    0     0   4340      0 --:--:-- --:--:-- --:--:--  4335
downloading Nix 1.11.16 binary tarball for x86_64-linux from 'https://nixos.org/releases/nix/nix-1.11.16/nix-1.11.16-x86_64-linux.tar.bz2' to '/tmp/nix-binary-tarball-unpack.FHsShrsiJ9'...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 28.6M  100 28.6M    0     0   992k      0  0:00:29  0:00:29 --:--:-- 1140k
performing a single-user installation of Nix...
directory /nix does not exist; creating it by running ‘mkdir -m 0755 /nix && chown mdupont /nix’ using sudo
copying Nix to /nix/store.................................
initialising Nix database...
installing ‘nix-1.11.16’
building path(s) ‘/nix/store/y1486f96a93z3l0qj7b1q324az3vvfch-user-environment’
created 6 symlinks in user environment
downloading Nix expressions from ‘https://d3g5gsiof5omrk.cloudfront.net/nixpkgs/nixpkgs-18.03pre123609.93829f1b031/nixexprs.tar.xz’...
downloading ‘https://d3g5gsiof5omrk.cloudfront.net/nixpkgs/nixpkgs-18.03pre123609.93829f1b031/nixexprs.tar.xz’... [8671/9507 KiB, 1718.2 KiB/s]
unpacking channels...
created 2 symlinks in user environment

Installation finished!  To ensure that the necessary environment
variables are set, either log in again, or type

  . /home/mdupont/.nix-profile/etc/profile.d/nix.sh

in your shell.
mdupont@debian-build-speed:~/experiments/cardano-sl$ . /home/mdupont/.nix-profile/etc/profile.d/nix.sh

mdupont@debian-build-speed:~/experiments/cardano-sl$ nix-build --check -A cardano-sl-wallet --cores 0 --max-jobs 2 --no-build-output --out-link cardano-sl-1.0fetching path ‘/nix/store/mz8k9ldyi6bz5wdq6xpmf3s3vqw3w5mn-61fbdb47a69f78998f55207e64122a0798047b5d.tar.gz-unpacked’...

*** Downloading ‘https://hydra.iohk.io/nar/mz8k9ldyi6bz5wdq6xpmf3s3vqw3w5mn-61fbdb47a69f78998f55207e64122a0798047b5d.tar.gz-unpacked’ to ‘/nix/store/mz8k9ldyi6bz5wdq6xpmf3s3vqw3w5mn-61fbdb47a69f78998f55207e64122a0798047b5d.tar.gz-unpacked’...

I'm going to rebuild Daedalus tonight. I'm currently at work. I will let you known if that solved the problem.

Amazing! I wiped out everything and rebuild using debian in a Docker container and your fork. Guess what? Now everything is fine. This could mean two things: 1) Ubuntu creates the problem or 2) the official branch is the problem. To check I will create another Debian container with the official branch and see if that one will function...

That is great news! I am happy to hear it. The official branch should not
be the problem, because I am just a little behind it. I think for some
reason you got the old version.
I have been researching into the json api and will writeup a tutorial on
using it.
On Thu, Dec 28, 2017 at 6:10 AM, Erik van Hannen<EMAIL_ADDRESS>wrote:

Amazing! I wiped out everything and rebuild using debian in a Docker
container and your fork. Guess what? Now everything is fine. This could
mean two things: 1) Ubuntu creates the problem or 2) the official branch is
the problem. To check I will create another Debian container with the
official branch and see if that one will function...
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/input-output-hk/daedalus/issues/603#issuecomment-354272164,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AACIVzaNgZqnooMU3lPlAmLc-_wiRd5dks5tE3czgaJpZM4RE5DM
.

--
James Michael DuPont

It is almost impossible that I had the old version. I rebuild from scratch many times git cloning https://github.com/input-output-hk/cardano-sl.git
Restoring my wallet now...
I have only the cardano-sl backend in a Docker running Debian. This seems to be the ideal setup for staking later on.

Great!
On Thu, Dec 28, 2017 at 6:19 AM, Erik van Hannen<EMAIL_ADDRESS>wrote:

It is almost impossible that I had the old version. I rebuild from scratch
many times git cloning https://github.com/input-output-hk/cardano-sl.git
Restoring my wallet now...
I have only the cardano-sl backend in a Docker running Debian. This seems
to be the ideal setup for staking later on.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/input-output-hk/daedalus/issues/603#issuecomment-354273289,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AACIV_BjrAgDaDTf4hQFani2MGbJpGxmks5tE3lagaJpZM4RE5DM
.

--
James Michael DuPont

It is Ubuntu. I just build the official branch in a Debian container and the timedifference API is there. So Ubuntu is the problem but I don't have a clue why...Anyhow I'm glad I finally managed to build the node and wallet. The wallet had finished restoring and I'm seeing my ADA!

Great news!

It's not oke yet. I have directed Daedalus to the Debian container running the official branch and then the Unexpected end of JSON input is there again. Directing it to your fork and the wallet is behaving properly and connects all the way...

wow, how strange.

Yes, strange indeed. It currently is syncing blocks. I will wait till 100% and then see what happens. If is stucks at 100% again I can open a new issue. Maybe they will respond...

The API is not present. I didn't look very well when I tested it 2 hours ago. I'm going to open a new issue..

Turn out that your fork is not yet released :-)
Current version of cardano-sl branch master  does not have the getLocalTimeDifference API yet and therefore one should build Daedalus revision a267ae05daaf3947fe679eac56d1257a8775b27b. Those two match. I have build both now and my wallet is restoring again...
I guess you can close this issue.

My issue is that the code does not check if the servers supports the api
call and does not deal with errors properly. I am going to keep it open.
On Thu, Dec 28, 2017 at 12:38 PM, Erik van Hannen<EMAIL_ADDRESS>wrote:

Turn out that your fork is not yet released :-)
Current version of cardano-sl branch master does not have the getLocalTimeDifference
API yet and therefore one should build Daedalus revision
a267ae05daaf3947fe679eac56d1257a8775b27b. Those two match. I have build
both now and my wallet is restoring again...
I guess you can close this issue.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/input-output-hk/daedalus/issues/603#issuecomment-354325934,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AACIV20ZmtGT_VZuK_3DPgsG-8x3GDopks5tE9IegaJpZM4RE5DM
.

--
James Michael DuPont

Unexpected end of JSON input while parsing near '..."temp":"^0.8.3","thro'


Move recent tabs to the left

I don't really use tabs. I jump between files using ctrl+p. I think the reason is that I have many tabs open and I don't quickly find the ones I'm working on. If the visible tabs were more relevant it could be more useful. A way to make them relevant could be to automatically move modified tabs to the left, that way I know that "the first 5 tabs are the 5 most recent files I'm working on".

I don't really use tabs.

Me too! I use Ctrl+P exclusively for navigation and thus have tabs disabled via "workbench.editor.showTabs": false, any reason you wouldn't just disable them?

I didn't know you could hide tabs. Though it feels like I lose some context that way (like what is open, how many stuff is open), especially when I have split views (though I rarely have split views). I'm gonna close this since I already stated the idea.


This is my first Pull request

I request you can we keep the different sorting codes in javascript and hence will add more codes to the same folder .
Initally i am giving the insertion sort code . Please accept and reply back for any changes.
Thankyou so much

I request you can we keep the different sorting codes in javascript and hence will add more codes to the same folder . Initally i am giving the insertion sort code . Please accept and reply back for any changes.
Thankyou so much

Hi!!, @chaitanyadubal you are doing great. I will accept your pull request but you need to update your name in README.md file.


Why can't I copy assemblies like Example.Contracts.dll and CPlugin.Net.Attributes.dll to the plugin output directory?

This avoids copying the assemblies to the plugin output directory:
https://github.com/MrDave1999/CPlugin.Net/blob/3d81cb52f65ff0bcf3ce281b6a0b558385f046d3/samples/Plugins/Directory.Build.props#L19-L27
https://github.com/MrDave1999/CPlugin.Net/blob/3d81cb52f65ff0bcf3ce281b6a0b558385f046d3/samples/Plugins/Directory.Build.props#L29-L32

1. What happens is that the host application already references these assemblies, so they will be copied to the host output directory.
See,
https://github.com/MrDave1999/CPlugin.Net/blob/8b2120f432c074cb229f6630d6fa462831d2b93a/samples/HostApplications/ConsoleApp/Example.HostConsoleApp.csproj#L12-L13
https://github.com/MrDave1999/CPlugin.Net/blob/8b2120f432c074cb229f6630d6fa462831d2b93a/samples/HostApplications/WebApi/Example.HostWebApi.csproj#L14-L15
There is an indirect reference to CPlugin.Net.Attribute project because CPlugin.Net project already makes reference to it.
2. If you copy those assemblies to the plugin output directory as well, you will get unexpected behavior when running the host application.
What behavior?
FindSubtypesOf method will always return an empty enumerable and even if subtypes exist for a supertype.
Now the question is why does this happen?
When loading a plug-in, an instance of AssemblyLoadContext is created and in this context these assemblies are also loaded: Example.Contracts.dll and CPlugin.Net.Attributes.dll.
However, the host application is an assembly and so are its dependencies, so they are loaded in a default context (including assemblies as Example.Contracts.dll and CPlugin.Net.Attributes.dll).
Now let's look at this code:
https://github.com/MrDave1999/CPlugin.Net/blob/8b2120f432c074cb229f6630d6fa462831d2b93a/src/Core/TypeFinder.cs#L48-L62
This line is important:
var pluginAttributes = assembly.GetCustomAttributes<PluginAttribute>();

assembly contains an instance of type Assembly that represents the plug-in itself, which in fact was loaded in its own context.
GetCustomAttributes will always return an empty enumerable and this happens because the .NET runtime does not find the PluginAttribute type of the default context in the current assembly (the plugin as such) that is being evaluated.
That's right, the host application has the PluginAttribute type loaded in the default context but the plugin also has it in its custom context, so .NET runtime takes it as different types. This is not a bug, it is the behavior expected by the runtime, or at least I think so.
So, if you just load the assembly as CPlugin.Net.Attributes.dll in the default context and not in the custom context of your plugin, then there would be no conflict between the types, because the .NET runtime will always use the PluginAttribute type loaded in the default context.


mpi-win-x86_64 fails in collidethread example

Original issue: https://charm.cs.illinois.edu/redmine/issues/1474

mpi-win-x86_64 has failed in this example the last 2 days (since AMPI was fixed on mpi-win):
make[3]: Entering directory '/home/nikhil/autobuild/mpi-win-x86_64/charm/mpi-win-x86_64/examples/collide/collidethread'
../../../bin/charmc -optimize -production   hello.ci
../../../bin/charmc -optimize -production  -c hello.C
Ignored Unrecognized argument -fno-lifetime-dse
hello.C
../../../bin/charmc -optimize -production  -language ampi -module collide -o hello hello.o
Ignored Unrecognized argument -fno-lifetime-dse
moduleinit4540.C
../../../bin/testrun  ./hello +p4 +vp10

Running on 4 processors:  ./hello +vp10
charmrun> /cygdrive/c/Program Files/Microsoft MPI/Bin/mpiexec -n 4  ./hello +vp10

job aborted:
[ranks] message

[0-3] process exited without calling finalize

---- error analysis -----

[0-3] on CS-DEXTERITY
./hello ended prematurely and may have crashed. exit code 0xc0000005

---- error analysis -----
Makefile:21: recipe for target 'test' failed

Original date: 2017-03-28 14:07:47

mpi-win-x86_64-smp also fails in this the same test

Original date: 2017-03-28 17:04:33

Crashes with a segmentation fault even when run sequentially before starting main():
gdb ./hello.exe
Starting program: /home/mdiener/Work/charmtmp/mpi-win64/examples/collide/collidethread/hello.exe
[New Thread 5096.0x159c]

Program received signal SIGSEGV, Segmentation fault.
0x000000007787f23c in ntdll!RtlAnsiStringToUnicodeString () from /cygdrive/c/Windows/SYSTEM32/ntdll.dll

Is there a better way to debug on win than using gdb?

Original date: 2017-03-28 17:11:59

The problem may be with the fact that this is using charmc's '-language ampi' option directly instead of using 'ampicc' (so the changes that you made to ampiCC.in are not being used here...)

Original date: 2017-03-28 17:40:53

Note that even when removing the fix for AMPI on mpi-win (Bug #1341), the crash is still the same.

Original date: 2017-03-28 17:45:10

So, in other words, we should compile/link/use only AMPI, not the system MPI, in the charmc -language ampi case?

Original date: 2017-04-13 20:09:50

From what I understand, this bug came up after a change to demandCreation. One issue I have found so far is that AMPI sets _isStaticInsertion to true, but the collide library uses demand creation, and doesn't appropriately set the flag to false. However, this is not the only issue because the program crashes before even getting to main or initializing the collide library.

Original date: 2017-04-13 23:25:24

My previous comment was not correct, it turns control gets to main(...) just fine, and is also able to initialize AMPI. For some reason, stuff printed to the console doesn't seem to show up until the end of execution, and don't show up at all if execution fails.
It appears that execution makes it into COLLIDE_Init and that's where the failure is occurring, seeming to have something to do with getting the local TCharm instance.

Original date: 2017-04-18 16:50:00

Implemented a simple fix ( ~~https://charm.cs.illinois.edu/gerrit/#/c/2416/~~ https://github.com/UIUC-PPL/charm/commit/b87764d664c72f31bc51bd21496f7516694c671b ). On mpi-win64, AMPI and TCharm were not initialized with charmc -language ampi, have to compile with ampicxx.


[FEATURE] Support examples as hypotheses

Is your feature request related to a problem? Please describe
I would like the ability to add  request examples to hypotheses to ensure there are accurate/valid tests conducted. This would reduce the amount of effort manually writing tests.
Describe the solution you'd like
An additional flag in the CLI to instruct schemathesis to include examples in specs i.e. --include-spec-examples
Describe alternatives you've considered
I'm not aware of any workarounds to accomplish this, other than manually writing tests.

Hey! Yes, schemathesis parses examples from the spec and uses them in testing. Maybe the docs are lacking a good notion of this - right now I am working on Schemathesis 4 and will update the docs as well so they reflect it.


how to send a didChageConfiguration request? I want to configure pylsp, but i need to send a didChageConfiguration. So how can i do that?

how to send a didChageConfiguration request? I want to configure pylsp, but i need to send a didChageConfiguration. So how can i do that?

https://github.com/williamboman/nvim-lsp-installer/discussions/473


I try to modify react app and get link to Question inside sidebar component

import React from 'react';
import { NavLink } from 'react-router-dom';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { getPost } from '../../redux/posts/posts.actions';
import { ReactComponent as GlobalIcon } from '../../assets/Globe.svg';
import './SideBar.styles.scss';

const SideBar = ({ getPost, post: { title, id } }) => (

            <NavLink exact activeClassName='active' className='home-link nav_link' to='/' >

Home

            </NavLink>

PUBLIC

                <NavLink activeClassName='active' className='icon-link nav_link' to='/questions' >

                        <GlobalIcon className='icon' />
                        Stack Overflow

                </NavLink>
                <NavLink activeClassName='active' className='link nav_link' to={id} >

Tags

                </NavLink>
                <NavLink activeClassName='active' className='link nav_link' to='/users' >

${ title }

                </NavLink>
                <NavLink activeClassName='active' className='link nav_link' to='/jobs' >

Jobs

                </NavLink>

TEAMS

);
SideBar.propTypes = {
    getPost: PropTypes.func.isRequired,
    post: PropTypes.object.isRequired
};

const mapStateToProps = state => ({
    post: state.post
});

export default connect(mapStateToProps, { getPost })(SideBar);

I get error
TypeError: Cannot read property 'pathname' of undefined
(anonymous function)
/Users/andrejeremcuk/Stackoverflow-Clone/modules/NavLink.js:50
  47 |   resolveToLocation(to, currentLocation),
  48 |   currentLocation
  49 | );
> 50 | const { pathname: path } = toLocation;
     | ^  51 | // Regex taken from: https://github.com/pillarjs/path-to-regexp/blob/master/index.js#L202
  52 | const escapedPath =
  53 |   path && path.replace(/([.+*?=^!:${}()[\]|/\\])/g, "\\$1");

I modify sidebar in that way:
`import React from 'react';
import { NavLink } from 'react-router-dom';

import { ReactComponent as GlobalIcon } from '../../assets/Globe.svg';
import './SideBar.styles.scss';

const SideBar = () => (

            <NavLink exact activeClassName='active' className='home-link nav_link' to='/' >

Home

            </NavLink>

PUBLIC

                <NavLink activeClassName='active' className='icon-link nav_link' to='/questions' >

                        <GlobalIcon className='icon' />
                        Stack Overflow

                </NavLink>
                <NavLink activeClassName='active' className='link nav_link' to='/tags' >

Tags

                </NavLink>
                <NavLink activeClassName='active' className='link nav_link' to='/users' >

Users

                </NavLink>
                <NavLink activeClassName='active' className='link nav_link' to='/jobs' >

Jobs

                </NavLink>

TEAMS

);

export default SideBar;`

@a-nai
So, the thing is you need to call the getPost action in the hooks which would be useEffect specifically and the getPost action has a parameter for the id of the post which you will need to pass in the useEffect() as well. getPost returns details of a single post and it fetches that by id.
And kindly properly explain that what exactly do u want to do for which I might be able to help out

@a-nai
So, the thing is you need to call the getPost action in the hooks which would be useEffect specifically and the getPost action has a parameter for the id of the post which you will need to pass in the useEffect() as well. getPost returns details of a single post and it fetches that by id.
And kindly properly explain that what exactly do u want to do for which I might be able to help out

  47 |   resolveToLocation(to, currentLocation),
  48 |   currentLocation
  49 | );
> 50 | const { pathname: path } = toLocation;
     | ^  51 | // Regex taken from: https://github.com/pillarjs/path-to-regexp/blob/master/index.js#L202
  52 | const escapedPath =
  53 |   path && path.replace(/([.+*?=^!:${}()[\]|/\\])/g, "\\$1");

Still error
import React, { Fragment, useEffect, useState } from 'react';
import { NavLink } from 'react-router-dom';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { getPost } from '../../redux/posts/posts.actions';
import { ReactComponent as GlobalIcon } from '../../assets/Globe.svg';
import './SideBar.styles.scss';
const SideBar = ({ getPost, post: { post, id , title },match }) => {
useEffect(() => {
getPost(match.params.id);
}, [ getPost ]);
return

        <NavLink exact activeClassName='active' className='home-link nav_link' to='/' >

Home

        </NavLink>

PUBLIC

            <NavLink activeClassName='active' className='icon-link nav_link' to='/questions' >

                    <GlobalIcon className='icon' />
                    Stack Overflow

            </NavLink>
            <NavLink activeClassName='active' className='link nav_link' to={id} >

Tags

            </NavLink>
            <NavLink activeClassName='active' className='link nav_link' to='/users' >

${ title }

            </NavLink>
            <NavLink activeClassName='active' className='link nav_link' to='/jobs' >

Jobs

            </NavLink>

TEAMS

};
SideBar.propTypes = {
getPost: PropTypes.func.isRequired,
post: PropTypes.object.isRequired
};
const mapStateToProps = state => ({
post: state.post
});
export default connect(mapStateToProps, { getPost })(SideBar);

  47 |   resolveToLocation(to, currentLocation),
  48 |   currentLocation
  49 | );
> 50 | const { pathname: path } = toLocation;
     | ^  51 | // Regex taken from: https://github.com/pillarjs/path-to-regexp/blob/master/index.js#L202
  52 | const escapedPath =
  53 |   path && path.replace(/([.+*?=^!:${}()[\]|/\\])/g, "\\$1");

Still error
import React, { Fragment, useEffect, useState } from 'react';
import { NavLink } from 'react-router-dom';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { getPost } from '../../redux/posts/posts.actions';
import { ReactComponent as GlobalIcon } from '../../assets/Globe.svg';
import './SideBar.styles.scss';
const SideBar = ({ getPost, post: { post, id , title },match }) => {
useEffect(() => {
getPost(match.params.id);
}, [ getPost ]);
return

        <NavLink exact activeClassName='active' className='home-link nav_link' to='/' >

Home

        </NavLink>

PUBLIC

            <NavLink activeClassName='active' className='icon-link nav_link' to='/questions' >

                    <GlobalIcon className='icon' />
                    Stack Overflow

            </NavLink>
            <NavLink activeClassName='active' className='link nav_link' to={id} >

Tags

            </NavLink>
            <NavLink activeClassName='active' className='link nav_link' to='/users' >

${ title }

            </NavLink>
            <NavLink activeClassName='active' className='link nav_link' to='/jobs' >

Jobs

            </NavLink>

TEAMS

};
SideBar.propTypes = {
getPost: PropTypes.func.isRequired,
post: PropTypes.object.isRequired
};
const mapStateToProps = state => ({
post: state.post
});
export default connect(mapStateToProps, { getPost })(SideBar);

@a-nai
So, you might be getting the undefined error when you are in route where there doesn't exists a parameter. The match.param.id will be able to get the post id only if you have opened the post as at that moment the url get's updated showing the id at the top. On other pages it would give this error for which you will need to handle the error somehow.

@a-nai
So, you might be getting the undefined error when you are in route where there doesn't exists a parameter. The match.param.id will be able to get the post id only if you have opened the post as at that moment the url get's updated showing the id at the top. On other pages it would give this error for which you will need to handle the error somehow.

import React, { Fragment, useEffect, useState } from 'react';
import { NavLink } from 'react-router-dom';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import Spinner from '../../components/Spinner/Spinner.component';
import { getPost } from '../../redux/posts/posts.actions';
import { ReactComponent as GlobalIcon } from '../../assets/Globe.svg';
import './SideBar.styles.scss';

const SideBar = ({ getPost, post: { post, loading, id , title }, postId }) => {
    useEffect(() => {
        getPost(postId);
    }, [ getPost ]);

I change to postId - and error gone - but sidebar constantly loading - seems can't get postId

import React, { Fragment, useEffect, useState } from 'react';
import { NavLink } from 'react-router-dom';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import Spinner from '../../components/Spinner/Spinner.component';
import { getPost } from '../../redux/posts/posts.actions';
import { ReactComponent as GlobalIcon } from '../../assets/Globe.svg';
import './SideBar.styles.scss';

const SideBar = ({ getPost, post: { post, loading, id , title }, postId }) => {
    useEffect(() => {
        getPost(postId);
    }, [ getPost ]);

I change to postId - and error gone - but sidebar constantly loading - seems can't get postId

@a-nai
I recommend to you to first learn Reactjs properly as you are not aware of the redux state management that good that is why you are trying to import whatever you want but that's not how it works you need to send postId as parameter from somewhere only then you can import it. That's just the gist of the problem you need to first learn react state management with redux properly then test the app inside out to know what method does what.

@a-nai
I recommend to you to first learn Reactjs properly as you are not aware of the redux state management that good that is why you are trying to import whatever you want but that's not how it works you need to send postId as parameter from somewhere only then you can import it. That's just the gist of the problem you need to first learn react state management with redux properly then test the app inside out to know what method does what.


Postpone ClusterClass blog

We are delaying the release of Cluster API by a couple of day, thus the ClusterClass blog is being delayed accordingly

Fine by me
/lgtm
/approve


Unresolved reference source /sink

Hi i got these two when trying to run. Any idea?
flyer/rnandroiduripath/RNAndroidURIPathModule.kt: (33, 37): Unresolved reference: source
flyer/rnandroiduripath/RNAndroidURIPathModule.kt: (34, 33): Unresolved reference: sink
My RN is   "react-native": "0.63.3",
"@flyerhq/react-native-android-uri-path": "^2.2.0",

Hey, v2.1.3 is fine, see release notes for v2.2.0, there was a migration to React Native 0.65, where old methods were removed. Because they were deprecated for a while I thought this change will be backwards compatible, but apparently not. So if you'll have React Native 0.65 use latest, if not, previous build v2.1.3 is fine. There is no change in logic, just new APIs are used.

@dellwatson I'm using "2.1.3" And
"react": "17.0.1",
"react-native": "0.64.2",
Still I'm getting build failed with
> Task :flyerhq_react-native-android-uri-path:compileDebugKotlin FAILED
e<EMAIL_ADDRESS>(33, 37): Unresolved reference: source
e<EMAIL_ADDRESS>(34, 33): Unresolved reference: sink


Fails to build pdf

Error producing PDF.
! LaTeX Error: Environment minted undefined.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...

l.140 \begin{minted}

Same issue here.
Adding \usepackage{minted} in yaml header doesn't help as well.

Make sure the template file you're using with Pandoc includes \usepackage{minted}.
This filter doesn't and can't set up the template file for you.


New feature: Info window external template

This feature will allow you to have the content from the info window loaded from an external template using the $templateCache.
I needed this method because I wrapped ng-map inside my own directive that serves as a reusable component. Dynamic template content turned out to be hard and this was the only way I could make this work as far as I know.
A demo can be viewed from file infowindow-template.html.

@harm-less thanks, I will look into it later. In case I forgot, ping me again.

Alright, will do. It's probably for the best because I thought of something that wasn't yet included in this pull request. So I'll first finish that. Hopefully that will be before I leave the office, otherwise I won't be able to update it before Thursday...

Well, I did it, I made sure a promise was added so the template could also be downloaded first if that's necessary.
Let me know what you think.

Hey allen, did you already had time to take a look at the request?

Thanks Allen!
Do you already know when a new release will be created?

I will add a new release soon with angular-jsodoc improvement

+1


Staking Key Delegation Certificate - Nonce?

Hello! Formula 5 in figure 16 in the formal spec explains how DCertdelegate is processed, and it does not include any ordering condition, e.g. - nonce.
https://github.com/input-output-hk/fm-ledger-rules/blob/b336184ad5319feaef723d0ec57bb4b2a32b78a5/latex/delegation.tex#L387-L417

In my understanding, staking-key certificates don't suffer from ordering, because you only can delete a key that already exists and that's all. But delegation certificates just replace one another, which means that if I post certificate delegating to pool A, and then 10 slots later I post new certificate delegating to pool B - the chain might get reordered and my certificates can potentially be included in another order (if used UTxOs are independent, of course). And the same comes for pool create/update and retire certificates, cuz if I post a retirement certificate and then post an update certificate, and then after chain reorder they are switched in order - the result if pretty much different.
Just to clarify - is there a solution to ensure/force certificate ordering that I just missed?
Thank you!

You are correct, as it stands right now, if the two delegation certs consume different inputs then there is no guarantee on the ordering. A wallet could create and consume zero valued outputs to ensure an ordering, though. Another possibility for forcing an ordering would be to set a relatively short time-to-live on the transactions, and not resend the second transaction until after the expiration of the first one.

Interesting 🤔Although TTL includes only the maximum slot to be included, right? Which means that if I issue a cert A with TTL up to slot 100 and then after slot 100 and then I issue cert B with TTL up to slot 200, and after this if last 300 blocks are rolled back - both txs with certs are valid to be included in any order, cuz their TTLs will not be validated =\ Cuz initially cert B did not exist until cert A was included, but because of nothing at stake fork potentially can be constructed at any time.
Enforcing direct ordering with depending 0-UTxOs seems to be the best option. Wonder if it might be made a part of the protocol 🤔Or if there's any reasoning for not using explicit ordering with nonces.
Thank you, @JaredCorduan!

Yep, that sounds right regarding the TTL.  But, we do plan to make the TTL into a range pretty soon!  Having a range does wonderful things for the extended UTxO model!  I agree that as things are written now, the 0-valued UTxO is the better solution.
I will think more about the nonces on these certs! And I'll also raise the issue with the others on my team. Off the top of my head it seems reasonable to add them...
as always, thank you for the great questions @vantuz-subhuman !

Also big kudos to @ppershing for great questions! :D


While creating the new project using command: "ng new first-project" it takes infinite time in installing and creating it.

🛑🛑🛑🛑🛑🛑🛑🛑🛑🛑🛑🛑🛑🛑🛑🛑🛑🛑🛑🛑🛑🛑🛑🛑🛑🛑🛑
Please file any Angular Material issues at: https://github.com/angular/material2/issues/new
For the time being, we keep Angular Material issues in a separate repository.
🛑🛑🛑🛑🛑🛑🛑🛑🛑🛑🛑🛑🛑🛑🛑🛑🛑🛑🛑🛑🛑🛑🛑🛑🛑🛑🛑

Most likely is caused by either your internet connection, proxy or NPM pop might be experiencing some issues.
Unfortunately, this is un-actionable from our end.


feat: editable footer

https://github.com/user-attachments/assets/ec75e2b6-025d-4de0-af75-893720f17afe

Superseded by https://github.com/bigcommerce/catalyst/pull/1557


Avoid deep recursion in GetTypeOfString when dealing with proxies

It is unusual, but possible that proxies contain proxies and could be deeply nested. Recursion over such objects causes stack overflow and should be avoided.
With this fix we will unwrap proxies to the inermost proxy without recursing.
Fixes: OS:18260402
Found by OSS-Fuzz

I don’t fully understand the scope of this change but is it safe to drill down to the innermost proxy in advance?  It might be necessary to call trap(s) at each level, no?

@fatcerberus - not it is not always safe just to drill down through nested proxies in general.
It can be done only in few cases and "drilling" must stop when seeing a proxy that would cause a different behavior if processed recursively (ex - a revoked proxy). This is one of such cases.

Yes, that’s what I was getting at, drilling down unconditionally is not safe, but the PR description seems to suggest that’s exactly what is being done after this change:

With this fix we will unwrap proxies to the inermost proxy without recursing.

Emphasis mine.

@fatcerberus - we are not exactly drilling "unconditionally", we are checking for revocations, since that would stop the recursion as well.
The change is essentially a manual optimization of a tail-recursive call into a loop. The result is supposed to be the same, except for the stack growth and eventual SO in deep nested cases


Distributed Environment example with Hazelcast and spring boot for Client side

I want to rate limit a call to a client url and I have two instances of the my API.

Hello @Rajesh-satan

Just read a few examples that show how to use Bucket4j in a none-clustered environment.

Do you know how to start Hazelcast cluster? If no then read official Hazelcast documentation

When you are able to create Cache just follow these instructions about bucket4j-hazelcast integration.

Also if asynchronous API is not required then you can choose bucket4j-jcache integration instead of bucket4j-hazelcast.

@vladimir-bukhtoyarov Thank you


Device Name is not showing in Android .net MAUI

I'm working on a Bluetooth project for Android. As now I can discovered list of devices but I'm not getting the Name. Please anyone help me to resolve this issue. It would be very helpful for me.
FYI : Attached image below
Note : I'm getting Rssi , ID and Native Device address
 public ObservableCollection<IDevice> ScannedDevices { get; } = new ObservableCollection<IDevice>();
var ble = CrossBluetoothLE.Current;
  var adapter = CrossBluetoothLE.Current.Adapter;
  adapter.DeviceDiscovered += (s, e) =>
  {
      if (!ScannedDevices.Contains(e.Device))
      {
          ScannedDevices.Add(e.Device);
          string sss = e.Device.Name;
      }
  };

  adapter.StartScanningForDevicesAsync();
}

Steps to reproduce
Call this method on Android after you have already connected and paired a BLE device (BLE Just Works).
Crashlog
Name cannot be null.
Expected behavior
On Android, it should return the list of the paired BLE devices. Device Name is null and its not showing
On Android the list of the paired BLE devices is returned . So I can pair the device.
Actual behavior

Configuration
Version of the Plugin: 3.1.0
Platform: Android 13
Device: Moto E13

Hi @Ganesh-210,
I'm the friendly issue checker.
It seems like (25.00 %) you haven't used our issue template :cry: I think it is very frustrating for the repository owners, if you ignore them.
If you think it's fine to make an exception, just ignore this message.
But if you think it was a mistake to delete the template, please close the issue and create a new one.
Thanks!

There seems to be a couple of concerns with your report.
Firstly, what certainty do you have that all the devices around you even have a name?
Many don't.
Secondly, what is the expected influence on your outcome if any particular device is paired/connected, why note it?
A paired device may still advertise and be found by a scan.  And afaik a connected device most likely will not advertise and thus not be discovered.  Neither which influences if a device even has a name.
At best Android can allow you to change the device Ailias, but you mention none of that here.

There seems to be a couple of concerns with your report. Firstly, what certainty do you have that all the devices around you being scanned/discovered even have a name? Many don't.
Secondly, what is the expected influence on your outcome if any particular device is paired/connected, why note it? A paired device may still advertise and be found by a scan. And afaik a connected device most likely will not advertise and thus not be discovered. Neither which influences if a device even has a name. At best Android can allow you to change the device Ailias, but you mention none of that here.
Lastly, you already reported your "issue" #802

Thanks for the reply. I can get the name of paired Bluetooth devices.
I need to get all the Bluetooth Device Names which is nearby which is not paired.
 string _devname = e.Device.Name; - Not getting all the device names and showing empty
 string _devid = e.Device.ID; - Getting  all the device UUID's
 string _devrssi = e.Device.Rssi; - Getting all the device Rssi's

Thanks for the reply. I can get the name of paired Bluetooth devices.

What is your results with an diagnostic tool such as nRF Connect?

Thanks for the reply. I can get the name of paired Bluetooth devices.

What is your results with an diagnostic tool such as nRF Connect?

Check the attached image.

What I have been attempting to explain to you is that not all devices have a Name.
So to convince yourself that the devices that you claim to have a name, actually have a name, I suggest you download a tool like nRF Connect for your mobile device and compare those results with yours.

@axa88 Thanks ..it helped me a lot :D

@axa88 Yeah I have downloaded the nRF Connect app and checked .My App results and nRF Connect app results are same.it helped me a lot :D

Great. Why not close the issue...

Done


Openstack change password.. need to update docker-machine openstack password ??

Hi guys,
I have changed my Openstack password, and then my account has been blocked in openstack.
I have made a docker-machine ls which has also blocked my password in Openstack so I will need to change it again..
"component": "IAM","message": "Password is locked","additionalInfo": "You or someone tried to connect too with wrong credentials several time. You can unlock it by reseting your password"}

Is there another way to use a token instead of password for calling openstack ?
If I change my password in openstack, it seams that docker-machine continue to uses the old one and make a lock again on my openstack account ==> is there a way to update my openstack password within docker-machine ?
thanks
sébastien

cc @ggiamarchi

@sebmoule changing credentials in ~/.docker/machine/machines//config.json doesn't help?
I'm not totally sure this trick could work, but you can try.

Yes I thinks it would be a palliatif, but i'm not satisfied with this

Can you elaborate a bit your expectation here? What I can think about is some update command, but still, DM hasn't such.

@sebmoule did the trick work? Just for curiosity

Hi @fsoppelsa Thanks a lot it works now like a charm !!

Sounds like this issue is closed!  Thanks @fsoppelsa @sebmoule


Corrected typo in UserVoiceForFeedbackEnabled

Corrected a small typo in the new explanation for UserVoiceForFeedbackEnabled: simple -> simply

:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

sharepoint/sharepoint-ps/sharepoint-online/Set-SPOTenant.md
:white_check_mark:Succeeded
View (sharepoint-ps)

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.

@KoenZomers - thanks, much appreciated!


Pipelines: Update Expanded Group Label Styling to Match Collapsed Styling

Describe the problem
A clear and concise description of the problem. Which components are affected?
Expanded label styling should match collapsed group styling - keep white pill shape and include status.

What is your product and what release date are you targeting?
RHOAI 2.11

Closed by #221


Root account with blank password enabled by default from High Sierra onwards

Two potential solutions:
1. Instruct user to disable root account
2. Instruct user to password protect root account.
In previous version of MacOS the root account was disabled by default , for this reason I suggest that we use solution 1.
After reviewing Apple's official instructions (see below) these 3 steps ALL need to be performed. To be 100% clear just disabling the root account will NOT protect you from this bug.

Enable root account.
Set secure password.
Disable root account.

It also states on the page:

It's safer to use the sudo command in Terminal instead of enabling the root user.

So perhaps we are better off doing this instead:
sudo passwd root
Happy to writeup and put in a pull request once we decide on the correct course of action.

I was able to reproduce this bug a few times, the fix that ended up working was to first enable the root account with a strong password, then disable it again. You can enable the root user using dsenable, then disabling with dsenable -d.
I remember reading (but I can't find the source of that information now) that macOS 10.12+ ships with the root user disabled or removed as default; but the bug in System Preferences revolves around how it will trigger the recreation of a new root user with an empty password. So it seems to make sense that the fix would involve first enabling the root user and changing its password, then disabling it once its already active.

Apple's official steps (including both proposed solutions) are at:
https://support.apple.com/en-us/HT204012

Apple released this statement:
“We are working on a software update to address this issue. In the meantime, setting a root password prevents unauthorized access to your Mac. To enable the Root User and set a password, please follow the instructions here. If a Root User is already enabled, to ensure a blank password is not set, please follow the instructions from the ‘Change the root password’ section.”
So you are correct in saying solution 1 alone is not actually a solution at all, a combination of both solutions is required, I'll update the original issue.

https://9to5mac.com/2017/11/28/how-to-set-root-password/
here they use to quickly change the pw
/System/Library/CoreServices/Applications/Directory Utility.app

There are some worrying comments floating around about a root account (with no password) possibly being automatically created in some situations if the disable method is used, so enabling and setting a secure password seems safest for now.
Also, I haven't been able to replicate any of the issues on Sierra, and I haven't noticed commentators so far saying they could replicate on Sierra either.

@hairychris on 9to5 (see above) I think that's what they do, use sudo at the end.

Forget my (deleted) comments.

As pointed out in #251, I have not yet upgraded to High Sierra and do not recommend others do, either. In fact, a part of me doubts I will use macOS for any serious work in the future in light of this bug; I've already ceased using Apple products for certain security- and privacy-sensitive works in light of recent, puzzling and downright disturbing incidents.
As no amount of hardening one may do could prevent a security vulnerability this stupid and negligent, I regret to say it may be entirely likely this guide will need a new owner if it is to be kept up to date with future macOS releases. As a privacy-minded user, I believe I can and should act in accordance with my values, even if this means no longer using macOS, unfortunately.

@drduh are you starting to use hardened debian or some bsd for those may we ask?

@drduh FWIW you are not alone. My current Mac is the last one I will own. Unfortunately I bought it while I was still heavily invested in the Mac ecosystem, but I'm slowly working towards replacing it with a Linux or BSD desktop in instead. Unfortunately doing so has proven to be really hard, even with the nicest of Linux distros. But I'm not giving up :)

iPhone, iPad first...

@dnwe I am currently using hardened Debian on an older x200 I found locally and freed from Intel ME, for what it's worth; though eventually I'd like to get OpenBSD fully working on it.

@drduh
Any thoughts about AMD’s mobile Ryzen based laptops? (No vPro or Intel ME there, plus much newer hardware {m.2 PCIe NVMe SSD, DDR4, better screens.. more performance .. etc})

My understanding is, the situation with AMD is not much better - https://libreboot.org/amd-libre.html

A security update from Apple was just released https://support.apple.com/en-us/HT201222.

@drduh I would love to read your take on System76's yesterday's announcement regarding their efforts in disabling Intel ME on their systems (Intel gen 6/7/8 based)
http://blog.system76.com/post/168050597573/system76-me-firmware-updates-plan

This is a report that the bug may not have been integrated properly and came back for some users depending on the sequence of updates and whether they restart manually after if they used one sequence. Very worrying...
https://www.buzzfeed.com/nicolenguyen/the-root-login-bug-is-back-in-the-latest-macos-update

If you recently updated from macOS High Sierra 10.13 to 10.13.1, reboot your Mac to make sure the Security Update is applied properly

https://www.wired.com/story/macos-update-undoes-apple-root-bug-patch/

A little OT (sorry!)
But, besides System76, if I am reading this correctly, Dell is now also featuring laptops with Intel ME disabled:
Its given on some models as a selection of 1/3 of the following:

No Out-of-Band Systems Management $0

Intel vPro™ Technology’s Advanced Management Features +$20.92

Intel vPro™ - ME Inoperable, Custom Order +$20.92

check it out here:
Latitude 14 5414 laptop
Latitude 13 7380 laptop
Latitude 7202 tablet
latitude 14 7414 laptop
latitude 12 7214 2-in-1 laptop

Another alternative:
ARM based laptops?
https://www.anandtech.com/show/12119/microsoft-launches-windows-10-on-arm-always-connected-pcs
Just format and install some other OS
:x

@nadavP3 it's not wise to recommend windows os even in this situation. For privacy and security purpose, one should always stay away from windows.

@lebensterben
I am not recommending Windows or any other OS at this point.
The reason that I listed the above system is to show that perhaps there are new/up to date systems out there that come with the claims of having this particular vulnerability-as-a-feature disabled.
Which maybe some of the readers/contributors of this thread/issue aren't aware of (As otherwise the impression that I was getting here was that you have to revert to much older hardware which might not be compatible with some user's requirements).
Naturally there are is still a long way to go before any system could be both as secure as, and as useable as Apple's offering.
To be perfectly clear, I would love nothing more than to have Apple jump in on this and announce that all future systems will come without this vulnerability (fleet management can be achieved via other means [such as costume image deployment] without sacrificing security after all)
If that was not to happen, and if this "feature" proves to be as big of a deal as we suspect it to be, if the info-sec security was to come together and .. pick an OS (Debian/OpenBSD or even ubuntu) and create (at the very least) a guide that would allow it to otherwise match the security level that is possible on MacOS, I'd be happy* to jump ships (*happy is not an accurate statement since the hassle that OS swap for daily/main machine entails a heck of a time sink but ... willing/able and motivated to do so)
I suppose at the end of the day its all about tradeoffs


Automatic project root

instead of hardcoding the project root, assume it is the containing directory of make.bat

Fixes #39


Switch using Element.innerText to .textContext because Firefox doesn'…

…t support first
2 features used it. I checked both.

Awesome!


Tiny cosmetics bugging on some sets

Also while hexed he still have some stone relics overheading.
https://cdn.discordapp.com/attachments/317271861966929921/318326480020963328/unknown.png
https://cdn.discordapp.com/attachments/317271861966929921/318325669929156608/unknown.png

Honestly, this bug will probably a meme bug on dota imba.