text:
How do I request external space permissions for my app and get a valid storage path?

I tried to save the OpenGL ES rendering results as png images, using a third-party library: stb_image_write_rust.
I defined the new function in opengl.rs:
#[no_mangle]
pub unsafe extern "C" fn png_create(filename: *const c_char ,width:i32 ,height:i32 ,comps: i32,data: *const u8){
    let filename_cstr = CStr::from_ptr(filename);
    let filename_str = filename_cstr.to_str().expect("Invalid filename");
    let c_full_path = CString::new(filename_str).expect("CString conversion failed");
    let mut writer = ImageWriter::new("output.png");
    writer.write_png(width, height, comps, data);
}

And It will be called from graphics.cpp  after    GL(glDrawElements(GL_TRIANGLES, renderer->Panel.IndexCount, GL_UNSIGNED_SHORT, NULL));
But  it showed this is a  read-only system when executing the file creation by
impl ImageWriter {
    pub fn new(path: &str) -> ImageWriter {
        ImageWriter {
            file: File::create(path).expect("could not create file"),
        }
    }

Logcat:   panicked at 'could not create file: Os { code: 30, kind: ReadOnlyFilesystem, message: "Read-only file system" }',C:\Users\Zhang\.cargo\git\checkouts\stb_image_write_rust-e6019e676b2d2614\c748c62\stb_image_write_rust\src\ImageWriter.rs:12:38
So what should we do in this project to request read access to the external space for the alvr-client?
This is my source code.
Best Wish to you.

I try to get alvr-client's  internal  storage  path in Android OS by this: in alvr\client_core\src\platform\android.rs
pub fn get_internal_storage_path() ->String
{
    let vm = vm();
    let mut env = vm.attach_current_thread().unwrap();
    let files_dir = env
        .call_method(
            unsafe { JObject::from_raw(context()) },
            "getFilesDir",
            "()Ljava/io/File;",
            &[],
        )
        .unwrap()
        .l()
        .unwrap(); //
    let path_jstring = env
        .call_method(files_dir, "getAbsolutePath", "Ljava/lang/String;", &[])
        .unwrap()
        .l()
        .unwrap(); //
    let path_string = env.get_string((&path_jstring).into()).unwrap(); // JString  turn toString

    let file_path = path_string.to_string_lossy().into_owned();
    file_path
}

However there is a bug about call_method's "Ljava/lang/String;" :
/alvr.client E/[ALVR NATIVE-RUST]: What happened:
    panicked at 'called `Result::unwrap()` on an `Err` value: ParseFailed(UnexpectedParse, "Ljava/lang/String;")', alvr\client_core\src\platform\android.rs:167:10

You need to prefix the method signature with () if the method has no arguments. Check the JNI docs of other examples in ALVR.

I try to get alvr-client's internal storage path in Android OS by this: in alvr\client_core\src\platform\android.rs
pub fn get_internal_storage_path() ->String
{
    let vm = vm();
    let mut env = vm.attach_current_thread().unwrap();
    let files_dir = env
        .call_method(
            unsafe { JObject::from_raw(context()) },
            "getFilesDir",
            "()Ljava/io/File;",
            &[],
        )
        .unwrap()
        .l()
        .unwrap(); //
    let path_jstring = env
        .call_method(files_dir, "getAbsolutePath", "Ljava/lang/String;", &[])
        .unwrap()
        .l()
        .unwrap(); //
    let path_string = env.get_string((&path_jstring).into()).unwrap(); // JString  turn toString

    let file_path = path_string.to_string_lossy().into_owned();
    file_path
}

However there is a bug about call_method's "Ljava/lang/String;" :
/alvr.client E/[ALVR NATIVE-RUST]: What happened:
    panicked at 'called `Result::unwrap()` on an `Err` value: ParseFailed(UnexpectedParse, "Ljava/lang/String;")', alvr\client_core\src\platform\android.rs:167:10
```Missing `（）`    "（）Ljava/lang/String;"

You need to prefix the method signature with () if the method has no arguments. Check the JNI docs of other examples in ALVR.

Yes, I I fixed this error yesterday though I forgot to share it.Issues with paths and access permissions have been resolved and I am now checking that the file was written correctly.

#[no_mangle]
pub unsafe extern "C" fn png_create(filename: *const c_char ,width:i32 ,height:i32 ,comps: i32,data: *const u8){
    let filename_str = CStr::from_ptr(filename)
                                    .to_str()
                                    .expect("Invalid filename");
    let c_full_path = CString::new(filename_str).expect("CString conversion failed");
    let dir_path =  platform::get_internal_storage_path();

    let full_path = format!("{}/{}", &*dir_path, c_full_path.to_str().expect("CString to_str failed"));
    info!("[ALVR Capture] path:{}", &*full_path);
    //let mut writer = ImageWriter::new(&*full_path);
    // save png by using  image "0.24.6"
    let pngbuffer :&[u8] = unsafe {
        slice::from_raw_parts(data, (width *height *4).try_into().unwrap())};
    let img = ImageBuffer::<Rgba<u8>, _>::from_raw(width as u32, height as u32, pngbuffer).unwrap();
    let save_result  = img.save(&*full_path);
    match save_result {
        Ok(_) => {
            // Image saved successfully
            info!("[ALVR Capture] Image saved successfully.");
        },
        Err(error) => {
            // Failed to save the image
            eprintln!("[ALVR Capture] Failed to save the image: {}", error);
        },
    }
}

Save PN flie to  storage path  by image "0.24.6"'s ImageBuffer

repo: alvr-org/ALVR


text:
Fix compatibility with different NAL prefix length

Add a check for 3 and 4 byte NAL prefixes.
Refactor the functions with pass-by-reference where needed.

Also any chance that this code can be moved to Rust? The ClientConnection class was originally the place for the UDP socket implementation. Same goes for the Statistics class which now only contains the dynamic bitrate code.

This is totally a matter of preference, but I strongly prefer normal pointers than references for parameters, since with pointers you can more clearly see in the call site that the arguments are going to be mutated.

While I agree and that was the idea in the previous code, I thought it would be more convenient thing to do it with references mostly due to dereferencing shenanigans involved. I find it simpler to just pass a reference to pointer and operate with it, rather than dereference a pointer to pointer, like (*buf)[3].

Also any chance that this code can be moved to Rust? The ClientConnection class was originally the place for the UDP socket implementation. Same goes for the Statistics class which now only contains the dynamic bitrate code.

It's possible, but I think in the next iteration as it would take more time for me to do that.

source: gharchive/pull-request

license: MIT

license_type: permissive

license_source: github-api


text:
🛑 zhibao.itove.com is down

In d8c43d9, zhibao.itove.com (https://zhibao.itove.com) was down:

HTTP code: 0
Response time: 0 ms

Resolved: zhibao.itove.com is back up in fffb91d.

source: gharchive/issue

repo: alzee/up


text:
🛑 music.itove.com is down

In c854ced, music.itove.com (https://music.itove.com) was down:

HTTP code: 0
Response time: 0 ms

Resolved: music.itove.com is back up in 319f4ed after 8 minutes.


text:
Possible to load old value in the content?

When there is error in validation, I want to show the old value inside the trix content. Is there any way to do this?

Trying to do the same.

i made a pull request https://github.com/amaelftah/laravel-trix/pull/48

closed in #48

authors: amaelftah jeremyhodges teodoriu xitox97

repo: amaelftah/laravel-trix


text:
[Travis] Cron Job

[x] Toolchain Building
[x] Libraries Building
[x] Solution Compilation
[ ] Kernel Compilation
[ ] Deployment

I would like to clarify/suggest that deployment means a "release" available for download here github.com. Thank!!

I would like to clarify/suggest that deployment means a "release" available for download

Indeed I meant that only. Deploy ISO image to either FTP or github release itself

It is fixed after using Travis trusty distribution environment
https://github.com/travis-ci/travis-ci/issues/7439#issuecomment-285017312
Commit 96a7d4d4b4fcd2131072a2a3aa4f679101d95ebf

repo: amaneureka/AtomOS

license_source: bigquery


text:
Async ready Chain function to Chain multiple ErrorOr

Chain is a function to simplify cases where operation should happen sequntially only if the previous one is successful.
        return await entityFactory.FromDTO(config).Chain<ConfigDTO>(             async config => {                 return await item.Update(config).Chain<ConfigDTO>(                     async updated => {                         return (await context.AddOrUpdate(item)).Chain<ConfigDTO>(                             config => {                                 return mapper.Map<ConfigDTO>(config);                             });                     });             });

Thanks for this @lucafabbri, added as Then/ThenAsync in 1.6.0 #77

authors: amantinband lucafabbri

repo: amantinband/error-or


text:
Add Project/Environment EnvVar overrides for service types

Checklist

[ ] Affected Issues have been mentioned in the Closing issues section
[ ] Documentation has been written/updated
[ ] PR title is ready for changelog and subsystem label(s) applied

To migrate Openshift Ansible Service Broker mariadb-shared provisioned resources to use the newer mariadb-dbaas, we need a way to override what may be defined in the docker-compose.yml or .lagoon.yml files.
It was identified that some may have defined mariadb-shared in their files due to an old issue, or past advice to add it to move their sites to use the shared services.
This PR adds an EnvVar check at the project and environment levels to check for LAGOON_SERVICE_TYPES in the Lagoon API.
If defined, it will be used to set the service type override, beating what may be defined in the docker-compose.yml or .lagoon.yml files.
The format that this variable accepts is comma separated values, but each value is itself a colon separated value.

Example 1: mariadb:mariadb-dbaas

This tells any docker-compose services named mariadb to use the mariadb-dbaas service type, even if the value is hardcoded in the docker-compose.yml or .lagoon.yml files to be something else.

Example 2: mariadb:mariadb-dbaas,nginx:nginx-persistent

I'm undecided about putting this in public documentation due to the fact that there is potential to break deployments by changing this. Mainly for databases, other types may be ok.
I could document it with a big !!DANGER!! notice to discourage users from using it though unless they know what the outcome will be.

Closing issues
Put closes #XXXX in your comment to auto-close the issue that your PR fixes (if such).

discourage users from using it

How discouraging should it be? If a user can add an environment variable then presumably they can just edit the .lagoon.yml directly, so should this be an admin only thing? It would add complexity but we could maybe add another RBAC scope for environment variables like add:${name} then you could potentially enforce that or other variables. Guess you'd need to do the same for delete:${name}.

discourage users from using it

How discouraging should it be? If a user can add an environment variable then presumably they can just edit the .lagoon.yml directly, so should this be an admin only thing? It would add complexity but we could maybe add another RBAC scope for environment variables like add:${name} then you could potentially enforce that or other variables. Guess you'd need to do the same for delete:${name}.

Well they can already do this exact thing via docker-compose.yml or .lagoon.yml, this is just another way of doing it. Users could possibly break their own deployments right now by changing between two types.
We already make it known that it is possible to change the type in the docker-compose file and list the types that are available https://lagoon.readthedocs.io/en/latest/using_lagoon/docker-compose_yml/#types
I don't think this particular issue needs the additional RBAC complexity wrapped around it, but I do like the idea of admin only settable variables.

@shreddedbacon
can we also get a test for this? I could imagine that we create a git repo which has the lagoon.type: none for an nginx container define, but then via the env variables we change it back to a node type and the tests check if the nginx is actually deployed?

@shreddedbacon
can we also get a test for this? I could imagine that we create a git repo which has the lagoon.type: none for an nginx container define, but then via the env variables we change it back to a node type and the tests check if the nginx is actually deployed?

I didn't finish writing the tests today as I got distracted by other priorities. Will continue to write the tests, but may not make it before a release of 1.9, but it would be good to get this in for 1.9

authors: Schnitzel rocketeerbkw shreddedbacon

repo: amazeeio/lagoon


text:
No checkpoints available under pretrained weights link

There are no pretrained weights available under the links posted in the section "Pre-trained POMP Prompt"

Hi, our ckpt of pretrained prompt is available in here:

The Google Drive link for all ckpts is link.

Thank you for the reply with the google drive link for all the checkpoints.
It seems that the google drive link for the ViT/B-16 models highlighted in your screenshot above does not seem to contain the checkpoints as it is only a few KBs.

Thank you very much. Will try this.

authors: RenShuhuai-Andy jameelhassan nhussein

repo: amazon-science/prompt-pretraining


text:
Bump bifunctor bound

Want to get mafia building with 8.2 which needs this.
! @jystic @charleso

sure 👍

👍

👍

authors: charleso erikd-ambiata jystic tmcgilchrist

repo: ambiata/p


text:
Current npm version is not compatible with Linux

The current version pushed up to npm only works on case insensitive filesystems (OSX/BSD) because it tries to import 'axis.js' when the file is 'Axis.js'. I see this has been fixed in this repo. Is there anyway you can push up a new version to npm?

Bump!

@ameyms ^

Thanks for pointing this out!
Will push a new version tonight

Thanks so much!

@ameyms did you push to npm last night? I don't see a new release there yet.

Sorry about that. I ran into some problems with my local build last night.
Since I can't use my work laptop for this, could you please wait for
another day? Thanks for your patience.
On Oct 6, 2015 08:35, "Christopher Downard" notifications@github.com
wrote:

@ameyms https://github.com/ameyms did you push to npm last night? I
don't see a new release there yet.
—
Reply to this email directly or view it on GitHub
https://github.com/ameyms/diffract/issues/8#issuecomment-145903235.

Should be fixed in v0.1.1.
Thanks again (for your patience and for pointing it out!), @nholland94 and @cdownard!

authors: ameyms cdownard nholland94

repo: ameyms/diffract

license: mit


text:
P(TopicIndicator) in LDA

When learning LDA model, the result of P(TopicIndicator) was always:
a Multinomial [ 0.2, 0.2, 0.2, 0.2, 0.2 ]
Am I doing anything wrong?

Could you provide a piece of code showing what you tried

authors: andresmasegosa shayantabrizi

repo: amidst/toolbox


text:
ResourceIterator implemented for RtImages

RtImages now uses ResourceIterator to iterate over all the images, with the default filters. Wrote unit tests and integration tests.
Had to introduce ReadJsonArray response handler, which wraps MatchStatus because apparently once we pass a response handler to HttpClient.execute(...), it automatically closes the response and you cannot read from it after the handlers have executed.

Job #121 is now in scope, role is REV

Pull Request Test Coverage Report for Build 207

27 of 30 (90.0%)  changed or added relevant lines in 4 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+0.5%) to 83.099%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

src/main/java/com/amihaiemil/docker/ResourcesIterator.java
14
17
82.35%

Totals

Change from base Build 205:
0.5%

Covered Lines:
295

Relevant Lines:
355

💛  - Coveralls

@rultor merge

@rultor merge

@amihaiemil OK, I'll try to merge now. You can check the progress of the merge here

@llorllale I merged this because I needed it in order to move on with Containers.iterator(). Feel free to open Issues if you notice some bug with it :D

@rultor merge

@amihaiemil Done! FYI, the full log is here (took me 3min)

Quality is low, no payment, see §31:

The job #121 is now out of scope

Payment to ARC for a closed pull request, as in §28: +10 point(s) just awarded to @amihaiemil/z

authors: 0crat amihaiemil coveralls rultor

repo: amihaiemil/docker-java-api


text:
Add Fade/Set Color

Hi there, I've been using the MMM-birthdays module and find it super useful.
My only slight issue (apologies I'm a complete newbie) is that the text colour does not match my other modules.
This maybe because I have fade: false set on other modules. Can this be implemented in this module?
Also, can a colour be picked for the text?

Hi @jonnyollet, glad you're finding this useful! Could you send me a screenshot so I can see exactly what you're after? I'm sure this should be pretty simple to add!
And yes, changing the text colour will also be fairly straight forward so I can implement that

authors: amitchone jonnyollet

repo: amitchone/MMM-birthdays


text:
Does it works for MacOS ?

cuz i check the readme.md didn't found the instruction for mac...thank you...

Yes it does, I'm also on MacOS 😊

repo: amix/vimrc


text:
Make sure physical units, not logical units, are even

The current wf-recorder just makes sure that the logical geometry provided by the user are even, but that doesn't guarantee that the dimensions of the buffer provided by zwlr_screencopy are even. With this patch, wf-recorder instead makes sure that the width and height of the physical buffer received from zwlr_screencopy is even.
This fixes https://github.com/ammen99/wf-recorder/issues/55.
There are a couple of behavior changes:

The old code would potentially increase the width/height by one logical pixel. The new code potentially decreases the width/height by one physical pixel instead.
The new code doesn't print Adjusted geometry: %d,%d %dx%d. If it's required, I could add it back, but I haven't because that would require adding global state to avoid printing the message for every new frame.

Yeah, you're right. That doesn't make sense.
I also found out that my patches didn't work, which is strange because I could've sworn I tested it; maybe I just checked if recording videos worked or not without checking the video after to see if it was correct. It turns out that the FrameWriter just assumes that stride = width * 4, which obviously isn't correct when I changed the width like I did.
I've now removed the stride modification, and adjusted FrameWriter to take a stride parameter in addition to width/height.

There, rebased :)

Thanks!

authors: WhyNotHugo mortie


text:
_env just needs to be a Mapping

This allows other values, as long as they implement the Mapping interface, i.e. .items().
Fixes #527

Hey sorry. I understand this is landed, I just had a minor comment.
The error message seems misleading -
https://github.com/amoffat/sh/blob/fa4b1e370f2d4e2dd1e6183de8f3311fe410af23/sh.py#L1148-L1150
There can be an object which implements the Mapping Protocol completely from scratch without using collections.Mapping. In this case the object would be dict-like but not an instanceof(_, collections.Mapping) 🤔
Perhaps it could be rephrased to convey the need explicitly?

Good point @saytosid. If we wanted to be really thorough, we would check what methods os.spawnve calls on the env dict in order to test for those directly. Otherwise it is difficult to know if a custom dict-like object implements enough of the correct methods to be acceptable.
https://github.com/amoffat/sh/blob/fa4b1e370f2d4e2dd1e6183de8f3311fe410af23/sh.py#L1520
Either that or we only allow _env to be an instance of collections.Mapping but to your point, that seems restrictive.

Indeed. But, my point was about the error message. I'm sorry I wasn't very clear.
"env must be dict-like. Got {!r}" - does not convey the restriction clearly. Maybe something like - env must be collections.Mapping ...?

I did think about the wording of the error message, and went for an intentionally vague text.
For a seasoned Python developer, you would probably know what collections.Mapping is and know what to do about the error message, or be good enough with a debugger to find the actual assertion code if you are doing advanced things.
For a more junior developer, I'm concerned that mentioning collections.Mapping in the error message is more confusing than helpful. They certainly wouldn't know that dict implements that interface, and I think in this case pointing in the direction of the collections module is unhelpful. In 99% of the error situations I can envision, you just want to pass a dict instead of whatever object was mistakenly passed.
I'm not fond of requiring less than collections.Mapping. You never know what the underlying os.spawnve implementation decides to do with the env. Not everyone will be running CPython.
I'm prepared to be convinced otherwise in both cases, of course.

For a more junior developer, I'm concerned that mentioning collections.Mapping in the error message is more confusing than helpful. They certainly wouldn't know that dict implements that interface, and I think in this case pointing in the direction of the collections module is unhelpful. In 99% of the error situations I can envision, you just want to pass a dict instead of whatever object was mistakenly passed.

Sounds reasonable to me 👍

I'm not fond of requiring less than collections.Mapping. You never know what the underlying os.spawnve implementation decides to do with the env. Not everyone will be running CPython.

Definitely 💯

Sounds good to me @ecederstrand :+1:

authors: amoffat ecederstrand saytosid

repo: amoffat/sh


text:
Find and set-up an adequate dataset

User story

As a user
I want/ need access information through the database
So that I can get detailed insights

Acceptance criteria

ideally Corporate Data
RDF/Neo4J
checked for completeness

Definition of done

Added only after week 5
The same for all features

I wrote a document that summarizes the most important differences between RDF triplestores and neo4j to simplify which database-system we want to use in the first place: here

Moving this to the Sprint 3 milestone, as this did not pass review today.

Hab beim Einlesen in neo4j ein paar Beispieldatenbanken gefunden, sind bestimmt auch für #6 interessant: https://github.com/neo4j-graph-examples

Neo4j database via docker was implemented by 7ba1216ab47e95a5e40c0a27ba332c9d3c60c221

authors: CatoLeanTruetschel PianoRollRepresentation derwehr joluj zuberman35


text:
Create team contract

User story

As a team member
I want a team contract
So that all team members are organized

Acceptance criteria

all team members agree to the contract
all team members have signed the contract (uploaded to deliverables)

Definition of done

Added only after week 5
The same for all features

Team contract issue is done.
Acceptance criteria are met.


text:
FTPS Support?

I'm wondering, is there planned support for FTPS?  My free hosting provider only supports SFTP on paid accounts.

Hi @ErikAGriffin,
It's on my enhancement list, so take a look in the next weeks.
Thank you for your feedback !

authors: ErikAGriffin amoussard

repo: amoussard/sftp-deployment


text:
[TACHYON-768] Add util method for creating the storage directory path in tachyon.util.io.FileUtils.java

https://tachyon.atlassian.net/browse/TACHYON-768

Can any admin tells me why my local maven test all passed succussfully but here not? Thanks!

Jenkins, test this please.

@fanshiqing , Jenkins went wrong sometimes :)

Thanks for the PR, @fanshiqing ! I added a few questions/comments.

@gpang Thanks for your comments, i made some explanation above :)

LGTM

+1 LGTM
Please resolve the conflicts, though

Conflicts fixed, thanks for reviewing!

@apc999 @gpang Can one of the admins help merging this PR? Or I have to fix conflicts now and then as the master branch grows. Thanks a lot :)

authors: apc999 fanshiqing gpang

repo: amplab/tachyon


text:
TypeError: null is not an object (evaluating 'AmplitudeReactNative.setLibraryName')

TypeError: null is not an object (evaluating 'AmplitudeReactNative.setLibraryName')
Stack trace:
node_modules/react-native/Libraries/LogBox/LogBox.js:148:8 in registerError
node_modules/react-native/Libraries/LogBox/LogBox.js:59:8 in errorImpl
node_modules/react-native/Libraries/LogBox/LogBox.js:33:4 in console.error
node_modules/expo/build/environment/react-native-logs.fx.js:27:4 in error
node_modules/react-native/Libraries/Core/ExceptionsManager.js:104:6 in reportException
node_modules/react-native/Libraries/Core/ExceptionsManager.js:171:19 in handleException
node_modules/react-native/Libraries/Core/setUpErrorHandling.js:24:6 in handleError
node_modules/expo-error-recovery/build/ErrorRecovery.fx.js:9:32 in ErrorUtils.setGlobalHandler$argument_0
node_modules/regenerator-runtime/runtime.js:63:36 in tryCatch
node_modules/regenerator-runtime/runtime.js:293:29 in invoke
node_modules/regenerator-runtime/runtime.js:63:36 in tryCatch
node_modules/regenerator-runtime/runtime.js:154:27 in invoke
node_modules/regenerator-runtime/runtime.js:164:18 in PromiseImpl.resolve.then$argument_0
node_modules/react-native/node_modules/promise/setimmediate/core.js:37:13 in tryCallOne
node_modules/react-native/node_modules/promise/setimmediate/core.js:123:24 in setImmediate$argument_0
node_modules/react-native/Libraries/Core/Timers/JSTimers.js:130:14 in _callTimer
node_modules/react-native/Libraries/Core/Timers/JSTimers.js:181:14 in _callImmediatesPass
node_modules/react-native/Libraries/Core/Timers/JSTimers.js:441:30 in callImmediates
node_modules/react-native/Libraries/BatchedBridge/MessageQueue.js:387:6 in __callImmediates
node_modules/react-native/Libraries/BatchedBridge/MessageQueue.js:135:6 in __guard$argument_0
node_modules/react-native/Libraries/BatchedBridge/MessageQueue.js:364:10 in __guard
node_modules/react-native/Libraries/BatchedBridge/MessageQueue.js:134:4 in flushedQueue
[native code]:null in flushedQueue
[native code]:null in invokeCallbackAndReturnFlushedQueue
...

Hi @emp3ror,
Thanks for pointing out this issue.
Can you provide more info about which react-native version you are using, and how we can reproduce this?

It's very difficult to help with this minuscule amount of information.  I'd recommend providing more details in order to get assistance more effectively, but judging by the stack trace my thought is:
Expo managed projects do not support packages with native code (like this).
It looks like you are using expo, we do not support expo projects because we provide functionality through NativeModules (Java/Swift code).

yes this is expo project, any work around, We tried using "expo-analytics-amplitude" package but it lacks many functionality like add

Perhaps submitting a PR to expo-analytics-amplitude.. Which functions is it missing?

expo-analytics-amplitude wraps our native sdks aswell so you could in theory submit a PR.

let me try then :D

Gonna close this issue but would love to hear if how it goes submitting a PR to expo @emp3ror and happy to help in anyway I can

repo: amplitude/Amplitude-ReactNative


text:
When the child node is expanded, It's not expanded from the top parent node.

The first time you create data into a tree structure,
by the Depth4 {node.state = expanded: true}
[Depth1]
node.state = expanded: false
ex) Current
this.$refs.tree.find({text:depth4 ,state: {expanded: true} });
↓
text: depth1~3 ...   <- state: {expanded: false}
i want
this.$refs.tree.find({text:depth4 ,state: {expanded: true} });
↓
text: depth1~3 ...   <- state: {expanded: true}
I want to do this. How do I do this?
Always Thank you.

Sorry, but I didn't get you. Can you show me a real example?

yes! but I've solved it in a different way.
ex) Tree Structure
▼ 1
▼ 1-1
▼1-1-1
▶1-1-1-1
▶1-1-2
▼ 1-2
▼1-2-1
▶ 1-3
[Current Tree]
▼ 1
▶ 1-1
▶ 1-2
▶ 1-3
[What I did]
let dethp4 = this.$refs.tree.find({text: '1-1-1-1'});
dethp4.state.expanded = true;
[i want]
▼ 1
▼ 1-1
▼1-1-1
▶1-1-1-1
▶1-1-2
▶ 1-2
▶ 1-3
:D

Cool :)

Me too

authors: FactAttacker amsik ngoclieu1996vn

repo: amsik/liquor-tree


text:
onSet - passing the focus to next field

Just a question whether it's possible. When somebody selects a date pressing an enter I would like to delegate the focus to the next field without the necessity of pressing tab or clicking to another field.
Is it possible to get the context of the field that triggers the datepicker in onSet function? At the moment I only have one datepicker on the page, which makes it easy to just call it $(".datepicker") but what if I have many?
--- edit
Actually I found it by accessing this.$node but do you think it would be easier to have it in context so it's clearer?
After few tries I can't seem to be able to trigger the focus, is it because onSet will be earlier than manually returning focus to the datepicker element?

.on('keyup') + event.keycode / which +e.target is what you need.

Also don't foget to wrap the trigger in setTimeout.

Thanks I got it to work with using onClose rather than onSet

authors: DanielRuf moseleyi


text:
Invalid IV length

While trying to upload a feed with sellingPartner.upload(feed_upload_details, feed) after the createFeedDocument call, I receive the following error:
Error: Invalid IV length
at Cipheriv.createCipherBase (internal/crypto/cipher.js:103:19)
at Cipheriv.createCipherWithIV (internal/crypto/cipher.js:121:20)
at new Cipheriv (internal/crypto/cipher.js:227:22)
at Object.createCipheriv (crypto.js:124:10)
at SellingPartner.upload (/usr/src/server/node_modules/amazon-sp-api/lib/SellingPartner.js:683:27)
at /usr/src/server/src/stores/amazon/amazonAPI.ts:154:41
at processTicksAndRejections (internal/process/task_queues.js:95:5)
This is the object returned by the createFeedDocument:
{
feedDocumentId: 'DOCUMENT_ID_RETURNED',
url: 'URL_RETURNED',
encryptionDetails: {
standard: 'AES',
initializationVector: '8f 6c cc 56 0d 50 a2 d0 31 ec 80 be f2 6a 1d 0a',
key: 'key'
}
}
I think that the initializationVector is not parsed correctly in the upload function, that treats it as a base64, but still can't find a way to make it work.
let cipher = crypto.createCipheriv(
'aes-256-cbc',
Buffer.from(details.encryptionDetails.key, 'base64'),
Buffer.from(details.encryptionDetails.initializationVector, 'base64') <-- here
);
Any help will be very appreciated.
Thank you

Hi @lorflea,
thats quite strange. However you should be able to use the new version of the feeds endpoint which comes without encryption, so it should probably fix you error right away. You can achieve that by adding the version when initializing the client by specifying it in the constructor config options:
endpoints_versions:{
  'feeds':'2021-06-30'
}

More information on endpoints and versions can be found in the docs:
https://github.com/amz-tools/amazon-sp-api#defining-endpoints-versions-on-class-level

With the newest version of the endpoint (2021-06-30) the feed content is not encrypted anymore. So I don't think we will ave to deal with the issue as the newest endpoint lacks no features otherwise that would force the usage of the older endpoint version.

authors: amz-tools lorflea

repo: amz-tools/amazon-sp-api


text:
Consider renaming IonStructField to Field or StructField

...just like the title says...

This is complete on my local dev workstation but is waiting for #22 to be merged.

Implemented here: https://github.com/amzn/ion-element-kotlin/pull/29

repo: amzn/ion-element-kotlin


text:
Add remaining lint unit tests

Fix reset text code
Add remaining check function to unit tests

Rebased and merged from the CLI, implement-unit-tests should be up to date with this branch now.

authors: marcoesters razzlestorm

repo: anaconda-distribution/anaconda-linter


text:
Station is not playing

Good afternoon! When starting playback from the  http://radio.btuner.ru:8000/live.ogg, an error occurs during playback. I hope for your help.

Hey @Zevsus, the .ogg format is not supported natively in iOS, we had a discussion about this in this issue: https://github.com/analogcode/Swift-Radio-Pro/issues/102

authors: Zevsus fethica

repo: analogcode/Swift-Radio-Pro


text:
CONTRIBUTING.md need set to EN

The link at here, https://github.com/analysys/EasyScheduler#how-to-contribute-code, is pointing to Chinese document. Need to fix.

yes，we will translate it to english！thx！

done！

link is still not working.

oh, i only translate the issue: How to contribute code?
but not update the README.md,  most of the links in README doc are still in Chinese.  We are in the process of translation！

Just use relative path, which is friendly to version and language separated.

Could someone add me as a member of org or project team?

Just use relative path, which is friendly to version and language separated.
good idea！

Invitation has been sent，please check！

authors: boandai wu-sheng

repo: analysys/EasyScheduler


text:
presto的hbase依赖目录只需要编译出来的那一个jar包么

presto版本0.221，我将编译出来的jar包放入plugin/hbase目录下，配置好hbase相关信息后，运行show tables;是正常的，但是运行select的时候select name from demo;就报错
2019-06-28T17:59:05.865+0800	DEBUG	query-execution-12	com.facebook.presto.execution.QueryStateMachine	Query 20190628_095905_00002_x8g6u is FAILED
2019-06-28T17:59:05.865+0800	DEBUG	Query-20190628_095905_00002_x8g6u-257	com.facebook.presto.execution.QueryStateMachine	Query 20190628_095905_00002_x8g6u failed
java.lang.AbstractMethodError
at com.facebook.presto.split.SplitManager.getSplits(SplitManager.java:87)
at com.facebook.presto.split.CloseableSplitSourceProvider.getSplits(CloseableSplitSourceProvider.java:51)
at com.facebook.presto.sql.planner.SplitSourceFactory$Visitor.lambda$visitTableScan$0(SplitSourceFactory.java:126)
at com.facebook.presto.sql.planner.SplitSourceFactory$Visitor.visitTableScan(SplitSourceFactory.java:131)
at com.facebook.presto.sql.planner.SplitSourceFactory$Visitor.visitTableScan(SplitSourceFactory.java:102)
at com.facebook.presto.sql.planner.plan.TableScanNode.accept(TableScanNode.java:185)
at com.facebook.presto.sql.planner.SplitSourceFactory$Visitor.visitAggregation(SplitSourceFactory.java:222)
at com.facebook.presto.sql.planner.SplitSourceFactory$Visitor.visitAggregation(SplitSourceFactory.java:102)
at com.facebook.presto.sql.planner.plan.AggregationNode.accept(AggregationNode.java:199)
at com.facebook.presto.sql.planner.plan.InternalPlanNode.accept(InternalPlanNode.java:31)
at com.facebook.presto.sql.planner.SplitSourceFactory.createSplitSources(SplitSourceFactory.java:84)
at com.facebook.presto.execution.scheduler.SqlQueryScheduler.createStreamingLinkedStages(SqlQueryScheduler.java:411)
at com.facebook.presto.execution.scheduler.SqlQueryScheduler.createStreamingLinkedStages(SqlQueryScheduler.java:506)
at com.facebook.presto.execution.scheduler.SqlQueryScheduler.createStages(SqlQueryScheduler.java:327)
at com.facebook.presto.execution.scheduler.SqlQueryScheduler.(SqlQueryScheduler.java:207)
at com.facebook.presto.execution.scheduler.SqlQueryScheduler.createSqlQueryScheduler(SqlQueryScheduler.java:154)
at com.facebook.presto.execution.SqlQueryExecution.planDistribution(SqlQueryExecution.java:490)
at com.facebook.presto.execution.SqlQueryExecution.startExecution(SqlQueryExecution.java:359)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
除了编译出的那两包还需要其他的jar包么

需要把connector依赖的jar包都放到plugin/hbase目录下
也可以合起来打成一个比较大的jar包放到这个目录下，合起来打包的命令是：
mvn -U clean package

然而并不知道还依赖哪些jar。。

现在查询存在这种情况

一个select * from course就一直卡在这里，debug日志也没有报错

看一下worker有异常日志吗？

知道啥问题了，zookeeper地址错了。。。打扰了

OK，那我先close了啊。再有问题再打开

你好，我运行mvn -U clean package之后报同样的错误。
prestodb:0.228
connector:0.221

我觉得这个问题应该是presto版本的问题，我是基于prestosql-315版本进行研发的，而我看你的日志应该是prestodb的，两者是不兼容的。如果你要基于prestodb来使用，可以考虑尝试dev_prestodb-0.221_0.1.2分支的代码。

我觉得这个问题应该是presto版本的问题，我是基于prestosql-315版本进行研发的，而我看你的日志应该是prestodb的，两者是不兼容的。如果你要基于prestodb来使用，可以考虑尝试dev_prestodb-0.221_0.1.2分支的代码。

嗯嗯。应该是版本不兼容的问题。我是使用dev_prestodb-0.221_0.1.2分支的代码生成的connector，但是prestodb-0.228比prestodb-0.221的ConnectorPageSource接口多了getCompletedPositions()这个函数，所以才会发生上述问题

忘记贴报错信息了
2020-08-05T08:21:25.549Z	ERROR	remote-task-callback-28	com.facebook.presto.execution.StageExecutionStateMachine	Stage execution 20200805_082125_00012_p5bbm.1.0 failed java.lang.AbstractMethodError: Method com/analysys/presto/connector/hbase/query/HBaseUpdatablePageSource.getCompletedPositions()J is abstract 	at com.analysys.presto.connector.hbase.query.HBaseUpdatablePageSource.getCompletedPositions(HBaseUpdatablePageSource.java) 	at com.facebook.presto.operator.ScanFilterAndProjectOperator.processPageSource(ScanFilterAndProjectOperator.java:287) 	at com.facebook.presto.operator.ScanFilterAndProjectOperator.getOutput(ScanFilterAndProjectOperator.java:236) 	at com.facebook.presto.operator.Driver.processInternal(Driver.java:379) 	at com.facebook.presto.operator.Driver.lambda$processFor$8(Driver.java:283) 	at com.facebook.presto.operator.Driver.tryWithLock(Driver.java:675) 	at com.facebook.presto.operator.Driver.processFor(Driver.java:276) 	at com.facebook.presto.execution.SqlTaskExecution$DriverSplitRunner.processFor(SqlTaskExecution.java:1077) 	at com.facebook.presto.execution.executor.PrioritizedSplitRunner.process(PrioritizedSplitRunner.java:162) 	at com.facebook.presto.execution.executor.TaskExecutor$TaskRunner.run(TaskExecutor.java:483) 	at com.facebook.presto.$gen.Presto_0_228_SNAPSHOT_6b48d04____20200805_074502_1.run(Unknown Source) 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) 	at java.lang.Thread.run(Thread.java:748)

authors: 0ZhangJc0 Crossoverrr scienceyang

repo: analysys/presto-hbase-connector


text:
一直不出现内容，配置那里测试是正常

我是在notion网页中使用，是不支持？

支持的，是使用的 OpenAI 官方的 服务地址吗


text:
Add Lua Rockspec package type

Adds the package manifest format for the Lua language: Rockspec. https://github.com/luarocks/luarocks/wiki/creating-a-rock
Ex: https://github.com/Kong/kong/blob/master/kong-3.7.0-0.rockspec

Pull Request Test Coverage Report for Build 7834932672

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 80.087%

Totals

Change from base Build 7759292336:
0.0%

Covered Lines:
185

Relevant Lines:
231

💛  - Coveralls

I looks like over at https://github.com/package-url/purl-spec/blob/master/PURL-TYPES.rst#other-candidate-types-to-define, the candidate for LuaRocks packages is lua not rockspec, but it's just a candidate. I didn't find any tracking issue on that repo either, so I think even if we change this to lua there's some risk that a different string gets standardized on later.
@wagoodman what do you think here? Should we change it to lua?

I went wity rockspec because it's to Lua what npm is to JavaScript.

Maybe LuaRock would be better to differentiate it from the language?

The only hints from the spec we get are:

type:
The package type is composed only of ASCII letters and numbers, '.', '+' and '-' (period, plus, and dash)
The type cannot start with a number
The type cannot contains spaces
The type must NOT be percent-encoded
The type is case insensitive. The canonical form is lowercase

and here:

The package type is the component of a package URL that is used to capture this information with a short string such as maven, npm, nuget, gem, pypi, etc.
These are known purl package type definitions.
Known purl type definitions are formalized here independent of the core Package URL specification. See also a candidate list further down.
Definitions can also include types reserved for future use.

There are some other issues in the purl spec repo that get close to this, but couldn't find any exact matches.
I did find a PR comment that has an opinion here:

I think of the type as more representative of "packaging format", which cargo seems to represent fine, and crate could too.

I initially had that thinking, too, which is why I had reached out to @pombredanne by chat to clarify. In that conversation he told me to think of the "package type" rather in terms of the "ecosystem", which includes protocols, formats and conventions.
It also helped me personally to further distinguish the "package type" from the "package format" (which is not directly covered in PURL, but could be via qualifiers). For Maven, the package type would be "Maven", but the package format would be "jar", "war", "aar" etc.

Here's my understanding from a purely lua point of view (anyone shout out if there is something I'm missing):

"Lua Modules" are like "libraries that can be loaded using require and has a single global name containing a table."
LuaRocks is the package manger for "Lua Modules" (there is another defunct package manager for "lua packages" called moonrocks)
Within LuaRocks, you organize one or more modules into a single rock package
rock packages are described in rockspec files
lua the language has no official support for packages, only modules ("")

When making a new purl type, the vast majority seemed to be based around the packages that a package manager tool itself organizes (e.g. npm, cargo, maven) and...:

not the filename of a package in that ecosystem (gemfile, cargo.toml, go.mod)
not necessarily the name of the package manager tool (but sometimes it is)
not necessarily the name of the package (but sometimes it is)

There are some exceptions and inconsistencies:

when the package manager is baked into the language tooling -- for instance Go modules, the purl type is simply the language: golang.
the purl type for maven even though the tool on the CLI is mvn (you can argue they did that to make it easier to type, and that the name is really maven anyway).
if we were taking about "packages" then for rust crate would have been more accurate than cargo, but cargo had already been adopted unofficially so it stuck
...there are more, but :shrug:

More thoughts to follow...

Updated.

excellent... it would be great to also submit a PR for the spec to track this type and add tests entries so every tools can also use it.

@pombredanne  https://github.com/package-url/purl-spec/pull/297

authors: LaurentGoderre coveralls pombredanne wagoodman willmurphyscode

repo: anchore/packageurl-go


text:
No packages discovered in SIF when image source not specified

What happened:
When a SIF container image is specified without the explicit singularity image source, no packages are discovered, and no error is returned:
$ syft packages alpine.sif
 ✔ Indexed alpine.sif
 ✔ Cataloged packages      [0 packages]

No packages discovered

What you expected to happen:
The behaviour should be the same as when the image source is explicitly specified:
$ syft packages singularity:alpine.sif
 ✔ Parsed image
 ✔ Cataloged packages      [14 packages]
NAME                    VERSION      TYPE
alpine-baselayout       3.2.0-r22    apk
alpine-baselayout-data  3.2.0-r22    apk
alpine-keys             2.4-r1       apk
apk-tools               2.12.9-r3    apk
busybox                 1.35.0-r17   apk
ca-certificates-bundle  20220614-r0  apk
libc-utils              0.7.2-r3     apk
libcrypto1.1            1.1.1q-r0    apk
libssl1.1               1.1.1q-r0    apk
musl                    1.2.3-r0     apk
musl-utils              1.2.3-r0     apk
scanelf                 1.3.4-r0     apk
ssl_client              1.35.0-r17   apk
zlib                    1.2.12-r3    apk

How to reproduce it (as minimally and precisely as possible):
Build a SIF image and scan it without specifying the image source type:
$ singularity build alpine.sif docker://alpine
...
$ syft packages alpine.sif
...

Anything else we need to know?:
Environment:
$ singularity --version
singularity-ce version 3.10.2

$ syft version
Application:        syft
Version:            0.55.0
JsonSchemaVersion:  3.3.2
BuildDate:          2022-08-29T20:03:04Z
GitCommit:          a7966a4d9d8155be788af33fe5e5af2e40043f82
GitDescription:     v0.55.0
Platform:           linux/amd64
GoVersion:          go1.18.5
Compiler:           gc

Hey @tri-adam we think this is done, and should be updated... is this the PR you are referring to? https://github.com/anchore/stereoscope/pull/142

authors: kzantow tri-adam

repo: anchore/syft


text:
surface area of solid figure

maybe u can add surface area of solid figures ^^
(luas permukaan bangun ruang)

hmm thats a good idea

In Progress @charish-exe

bug at cylinder. searching for problem

Done All Done For This :D


text:
ConnectionCursor gets serialized into invalid value

When using the provided helpers for Relay, the ConnectionCursor gets serialized into an invalid value, as ConnectionCursor#toString() is used for serialization. This results that the first cursor is "ConnectionCursor{value='c2ltcGxlLWN1cnNvcjA='}" instead of c2ltcGxlLWN1cnNvcjA=

I'm not sure I understand this ... which serialization do you mean?
Thanks

Sorry, serialization is not the correct word, but coercion.
Eg. when doing the following query:
query Stops {
    stops(first: 1) {
        edges {
            cursor node {
                stop {
                    id
                }
            }
        }
    }
}

I get the following response:
{
    "stops": {
        "edges": [{
            "cursor": "ConnectionCursor{value='c2ltcGxlLWN1cnNvcjA='}",
            "node": {
                "stop": {
                    "id": "U3RvcDphZ2VuY3k6ZW50cmFuY2VfYg=="
                }
            }
        }]
    }
}

Instead of the correct one:
{
    "stops": {
        "edges": [{
            "cursor": "c2ltcGxlLWN1cnNvcjA=",
            "node": {
                "stop": {
                    "id": "U3RvcDphZ2VuY3k6ZW50cmFuY2VfYg=="
                }
            }
        }]
    }
}

This is due to this executing this code instead of this

ok thanks ... that makes it more clear. I will have a look at in detail.
Just a quick thought: I'm not sure the problem is the coercion of  the string. Maybe the graphql schema is not correct: The cursor field should not be of type String, but maybe of type Connection? (I maybe totally wrong ;-) )

According to the specification it could be a custom scalar type, so we could just make ConnectionCursor extend GraphQLScalarType.

Thanks for the link ... these are indeed the details I have missed in the first prototype. It might take me a few days to look at in more detail .. sorry for the delay.

Yes,
the problem is indeed that the type of the cursor field is declared as String. So every Object in coerced into toString().
Probably a custom scalar type might be the best solution, but as a quick fix I changed the toString of ConnectionCursor.
Does this for now solve you problem?
Thanks

Thanks, works perfectly now

authors: andimarek hannesj

repo: andimarek/graphql-java


text:
#algorithm makes code centered and missing horizontal lines.

First of all, thanks for this package, it looks great!
I'm trying to compile one of the examples. I have, in an otherwise empty document:
#import "@preview/lovelace:0.2.0": *
#algorithm(
  caption: [The Euclidean algorithm],
  pseudocode(
    no-number,
    [*input:* integers $a$ and $b$],
    no-number,
    [*output:* greatest common divisor of $a$ and $b$],
    [*while* $a != b$ *do*], ind,
      [*if* $a > b$ *then*], ind,
        $a <- a - b$, ded,
      [*else*], ind,
        $b <- b - a$, ded,
      [*end*], ded,
    [*end*],
    [*return* $a$]
  )
)

However, all the text is centered, and I am missing the horizontal lines that the examples had. Any ideas?

From the readme:

Note that such figures are only displayed correctly when you used the setup function mentioned above!

Oops, sorry for that! "Fixed".

authors: RomeoV andreasKroepelin

repo: andreasKroepelin/lovelace


text:
Inclusao de nova categoria retorna erro 500, mas confirma novo registro na base de dados

Branch onde o teste foi efetuado: main
Url: https://localhost:5001/api/v1/categories
Request:
{"title": "Categoria esperta e sagaz",
"description": "testando inclusao de categoria",
"active": 1}
Reposta:

Testado na branch main. Bug resolvido.

repo: andrebaltieri/AgendaEventos


text:
Excluir usuario

A principio essa tarefa tratara exclusivamente da exclusao de um usuario. No futuro o trabalho realizado nela sera relacionado a a user story descrita em #32  .
Status
TASK
Checklist

[X] Incluir metodo DELETE para excluir um usuario especifico

Expected behaviour
Excluir usuario ou retornar erro caso o usuario desejado nao seja encontrado.

Resolved in #103

authors: jenrodrigues renebentes


text:
[BUG] Not able to use if conditions!

Description
Not able to use if conditions: gives an error
Traceback (most recent call last):
  File <stdin>, line 1, in <program>
  File <stdin>, line 1, in run
Runtime Error: Failed to finish executing script "bug.pansy"
Traceback (most recent call last):
  File bug.pansy, line 2, in <program>
Runtime Error: Illegal operation

if food == "pizza":
   ^^^^^^^^^^^^^^^^
  print("Yammi!")
^^^^^^^^^^^^^^^^^
end
^^^

run("bug.pansy")

I am on Windows
To Reproduce The Error
Steps to reproduce the behavior:

Start Pansy with the command python shell.pansy
Execute the code run("bug.pansy") in the shell (I have created a file called bug.pansy for this issue)

Bug.pansy:
var food = "pizza"
if food == "pizza":
print("Yammi!")
end
This was an example in the documentation.
Note:
If you write
var n = 10
if n == 10:
  print("n = 10")
end

This works. It is a problem with checking strings.
Expected behavior
Expected to print Yammi! Instead printed illegal operation error
Screenshots

I am on Windows x64 Intel.

Thanks for the help!!

Thanks, bro!

authors: adithraghavs andrefpoliveira

repo: andrefpoliveira/Pansy


text:
Proof of concept: MastodonMinServerVersion annotation

Description
Our Wiki mentions:

All methods are annotated using a @MastodonMinServerVersion runtime annotation. The goal of this annotation is to specify the minimum server version that is required in order to make this call successful. During library initialization, we fetch the server version from the instance. When the method is invoked, we compare versions and if requirements are not met, we will throw a BigBoneVersionException. The caller can then decide how to proceed further (e.g. call another method or fail).

So far, that was not at all the case. But I like the idea, so I wanted to implement a proof of concept which is how this PR should be seen: Not a mergeable change set, but grounds for discussion.
I have added the annotation and additional functions to check if a called method’s min version is higher than or equal to the known instance version.
I’m currently not too happy with the InstanceMethods::getInstance.requireMinVersion(client) call and that would be my main criticism for the current solution. My knowledge regarding annotations, reflection, or annotation-based code is very much in its infancy so I’m sure there are better solutions that I’d still need to learn about. ksp might be an option to auto-create the boilerplate code so that we only need to add the annotation and then ksp handles the rest for us and automatically adds code similar to what I’ve added for getInstance as an example for now.
Before I continue with this, I’d like to find out what you think of this. Is this a good way forward? Would you like a different approach?
Type of Change
(Keep the one that applies, remove the rest)

New feature (non-breaking change which adds functionality)
Breaking change (fix or feature that would cause existing functionality to not work as expected)
Dependency addition

Breaking change
Methods annotated with @MastodonMinServerVersion may now throw a BigBoneVersionException which leads to errors from Java callers if they’re not explicitly handling that exception (or its parent Exception).
How Has This Been Tested?
Please describe the tests that you ran to verify your changes.
Mandatory Checklist

[x] My change follows the projects coding style
[x] I ran gradle check and there were no errors reported
[x] I have performed a self-review of my code
[x] I have added tests that prove my fix is effective or that my feature works
[x] New and existing unit tests pass locally with my changes
[x] KDoc added to all public methods

I agree with your self-criticism. Annotations are great if they help remove boilerplate code, or at least having to write it ourselves - but having to add a call to requireMinVersion() in every API method is the opposite. As long as that is necessary, we might as well just add a minMastodonVersion String as another parameter to our client.getMastodonRequest(), and then do the version check in that function. That aside, if there is a way to properly achieve this using annotations, the rest of it looks good.
The only thing I'd like to see for the moment is an option to disable version checks when building the MastodonClient (or reduce them to less than an exception), so that library users at least have the choice to use BigBone with all those platforms that offer a Mastodon-compatible API while using very different versioning, for example Pixelfed, GotoSocial, Hometown, and probably many more.
Long-term, I believe having a proper way to support different platforms would be useful (see #226).

authors: PattaFeuFeu bocops

repo: andregasser/bigbone


text:
sound flutters

Occasionally it sounds okay but soon deteriorates into flutter. Running OSX 10.9.5 on MacBookPro 13 inch. Never had this problem with other apps.

I have the same problem. I installed the software yesterday, in the beginning it was working properly but soon the sound started ti deteriorate and never worked properly again.
The chromecast device is working properly with its chrome plugin.

@metetzky and @mannaggiamannaggia , do you have old computers? Are you using the binary or running the app directly with node?

MacBookPro 13”  4Gb  2.7 GHz  OSX 10.9.5
Ran app with node
Very hard to characterize when it happened. I could always temporarily fix it by restarting app.
I have now gone to another solution so won’t be able to help debug further.
Thanks for answering.
On Dec 18, 2015, at 5:28 PM, Andrés Gottlieb notifications@github.com wrote:

@metetzky and @mannaggiamannaggia , do you have old computers? Are you using the binary or running the app directly with node?
—
Reply to this email directly or view it on GitHub.

OS X 10.9.5, 2.2GHz i7, 16GB 1600MHz DDR3. Installed via brew and immediately experienced fluttering of sound.

authors: andresgottlieb jziggas mannaggiamannaggia metetzky

repo: andresgottlieb/soundcast


text:
🛑 pharmacomms is down

In 197be3c, pharmacomms (https://pharmacomms.tv/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: pharmacomms is back up in 123914f after 21 minutes.

repo: andrespitt/uptime


text:
Track conversion values between groups

We want to a/b test changes and see if they affect our average order value (AOV).  The issue is that split just records a conversion via finished.  We'd like to track a number with that conversation and see statistics about how it differs between the A and B groups.  Something like:
finished('checkout', order.total)
Ideally tracking median, mode, std dev, etc so the Split UI can tell us if the difference is statistically-relevant.

I also needed the functionality and gave it a shot: https://github.com/pomartel/split/commit/29340ef0cc9776fbf4240e2e577f9e5080d6b96c
You can do finished('checkout', value: order.total) and you will get a value and value per participant column in the dashboard for each alternative. It is still a bit rudimentary but it should work and it's backward compatible with the current syntax.

authors: mperham pomartel

repo: andrew/split


text:
Upgrade to OrchardCMS 1.10.1

See release notes: http://docs.orchardproject.net/en/latest/Documentation/Orchard-1-10-1.Release-Notes/

Dupe

repo: andrewconnell/aci-orchardcms


text:
🛑 nhcam is down

In b29aa9e, nhcam ($NHIPCAM) was down:

HTTP code: 0
Response time: 0 ms

Resolved: nhcam is back up in f4b3dcc.

repo: andrewdavies-net/upptime


text:
🛑 plexd is down

In 749dd22, plexd ($PLEXD) was down:

HTTP code: 401
Response time: 340 ms

Resolved: plexd is back up in 97acb54.


text:
🛑 nhcam is down

In 8fb4895, nhcam ($NHIPCAM) was down:

HTTP code: 0
Response time: 0 ms

Resolved: nhcam is back up in accdf18.


text:
Need a list of supported time string or keyword from date.js

I am trying to apply Date.create(str) in order to parse something like "meeting 5 hours from now" to proper date object, so that requires me to somehow figure out that "5 hours from now" is more valid than "meeting 5". So far I don't know how other people parse it to filter out the time string. If you have some hints, please let me know. Thanks in advance.

Sorry this one really fell through the cracks and it's been far too long. For now I should have posted this a long time back http://sugarjs.com/date_formats
I don't know if that's entirely helpful as it's English only at the moment. For other formats I recommend looking at the unit tests as they're a quick reference.
However locales are extremely tailor so it would be quite difficult to make this list exhaustive.

So that's, just for a list. However re-reading the use cases here (and looking at issue #475), I'm going to re-examine having a look at "non-strict" parsing, which would essentially do the date parsing without the ^ and $ tokens to limit the text.
However this would have some big ramifications, both behaviorally and in terms of performance, so it's likely that this will be implemented somehow as an option.
For now it would be nice to have a list to start off the unit tests...

Unfortunately after all this time, I've had another look and have only bad news. The solution to the problem as it is currently defined is essentially infeasible. The best way to explain why is to provide an example, although this only scratches the surface. Any solution that would "loosen" the regex requirements essentially boils down to removing the ^ and $ restrictions to allow date parsing at any point in the string. Here's why that won't work:
Date.create('June 15th')

The first error (there are many) that you immediately run across is this.  This returns August 15th and is matching against a date format that has the regex /(?:the)?[,. ]*(\d{1,2})(?:st|nd|rd|th)/i), which is intended to match ambiguous formats such as "the 15th" or just "15th". When the regex was clamped at both ends there was guaranteed to be no ambiguity in the string. However if we open up the edges, then information meaningful to the date may also be skipped, and a different format matches.
In this case an obvious solution would be to make "the" a non-optional token. However, in addition to disregarding match cases that were previously allowed, there are many other formats where tokens must remain optional. Optional tokens may also exist in front of or behind required tokens, adding to the complexity.
Essentially what happens is that there would be no more guarantee that a format is correctly matching what is intended. A part of the string may match a different format and take on a completely different meaning.
Now, this may be acceptable for you. The formats are ordered to generally follow more specific to more general (however the wildcard here is the optional tokens which throw a wrench into things), so a "best guess" situation may in fact be good enough, even if this sometimes produces errors. If this is the case, then the formats can be forced into a "non-clamping" state using something like this:
var en = Date.getLocale('en');
en.getFormats().forEach(function(f) {
  f. reg = RegExp(f.reg.source.replace(/^\^|\$$/g, ''), 'i');
});
// More on this below
en.getFormats = function() {
  return this.compiledFormats;
}

This will strip any ^ or $ from the regexes, fully opening them up. This may work for you or it may entirely cause havoc. I'll leave it to you to decide. However this approach is simply too haphazard a solution to be ever be supported by Sugar.
The second line in the above example is another reason why this is tricky. Essentially, when Sugar successfully matches a date format, it front-loads that format so that successive matches use it first. This can massively increase performance when iterating through many dates with similar formats, as is often the case. The 2nd line above turns off this caching feature, which in theory should produce better results if you do want to try out the above code. However this may drastically reduce performance by turning off the format caching, which is to say nothing of the regex clamping itself (which is also a benefit to performance).
It might be possible to do a deep analysis and produce a "best guess" regex that could at least extract a proper date for ~90% of use cases. This won't be perfect, however, and is something that would require a fairly complex analysis, which means I can basically only do it for English, leaving other locale users out to dry (that is, if it's even possible in other languages to begin with. A "best guess" regex for Japanese, which has no spaces, may not even be in the realm of possibility to begin with). It's also something I would be hesitant about adding back into Sugar, although that would probably depend on the results. Also, even something like this wouldn't be performance-optimal, as you would need to parse out the format once and then run it through Date.create to potentially hit all format tokens up as well. But then again I guess if you want to do something that borders on NLP, performance probably isn't your first concern.
TL;DR
I've now considered the methods I've explored for "loosening up" Sugar's date parsing to be dead in the water. I am willing to consider other approaches, however, and one may be a "best guess" regex that can parse out something that is likely to be a Sugar parseable token. It won't be perfect but might be good enough.

I'm going to close this but added a todo to create better docs for the locales and their formats.

authors: andrewplummer ttdevelop

repo: andrewplummer/Sugar


text:
Add function iSlice (inverted slice)

This will add the function iSlice which is a inverted slice function. Taken from my node module.
Inverted slice is used when you know a range elements in a array you don´t want. Otherwise it works similar to slice.

Oh, the CI system does not build the library? Do you need to include "compiled" files in the commit? That seems like bad practice?

This method is essentially identical to Sugar's removeAt method, with the exception that "remove" methods affect the array whereas this method is non-destructive. Although it's very simple to clone the array and do this, I can see a possible need if you're working with arrays extensively, however if I were to add this it would probably be under the name "excludeAt" to keep parity with the naming structure ("exclude" is non destructive and "at" indicates that it is operating with indexes as input).
At any rate, if you would prefer to see your method untouched and with your naming, then this seems like a good chance to try out Sugar's new ability to allow plugins. I have that small documentation up for now. I am planning on adding a forkable boilerplate repo for Sugar plugins, so I'll leave this issue open until that's done as well!

Hi, I've added the boilerplate repo here. If you choose to use it you'll be the first one, so any feedback is appreciated!

@andrewplummer nice man, will check it out! 👍

Closing this one for now.


text:
add Cargo.lock file

Please consider adding the Cargo.lock file as recommended in the Cargo Book.
I'd also like to package this tool for NixOS and this file is needed as well for better reproducibility. More info about this here.

I see why people might like Cargo.lock and similar things, but I actually want users to receive fixes in the updates of inputplug dependencies as long as they don’t break compatibility. If some breakage sneaks in, I’d be happy to update the constraints, but I don’t want to lock users to a single set of dependencies.

In any case, thanks for your contribution, even though I decided not to merge it, I’m happy you’re interested in inputplug.

Ok np. I can workaround without it for the packaging.
I'll add myself as the maintainer of the NixOS package. Would you be interested to be added as well ?

I don’t use NixOS or know how stuff is packaged for it, so I’m not sure how much useful it would be 🙂

Ok. I needed to ask. I'll take care of it.
Thx for this great tool :+1:

authors: andrewshadura jecaro

repo: andrewshadura/inputplug


text:
undefined symbol: g_ref_count_inc

Hi Andrew,
After I installed the gui, I got an error about undefined symbol when trying to run it. Any insight what might cause this?  Thanks you!
OS Linux Pop!OS
Error msg:
./bgslibrary_gui: symbol lookup error: /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0: undefined symbol: g_ref_count_inc

Hi @gengjia0214 ,
Thanks for reporting this issue.
I don't know exactly what it could be, but it seems something broken with your libgio as you can see in the links below:
https://medium.com/@Aenon/glib-symbol-lookup-bug-in-debian-or-ubuntu-def678dab5a6
https://www.linuxquestions.org/questions/linux-software-2/problem-with-libgio-2-0-so-0-i've-broken-my-system-867795/

repo: andrewssobral/bgslibrary


text:
Laravel 9.x Compatibility

This is an automated pull request from Shift to update your package code and dependencies to be compatible with Laravel 9.x.
Before merging, you need to:

Checkout the l9-compatibility branch
Review all comments for additional changes
Thoroughly test your package

If you do find an issue, please report it by commenting on this PR to help improve future automation.

:alembic: Using this package? If you would like to help test these changes or believe them to be compatible, you may update your project to reference this branch.
To do so, temporarily add Shift's fork to the repositories property of your composer.json:
{
    "repositories": [
        {
            "type": "vcs",
            "url": "https://github.com/laravel-shift/laravel-app.git"
        }
    ]
}

Then update your dependency constraint to reference this branch:
{
    "require": {
        "andrey-helldar/laravel-app": "dev-l9-compatibility",
    }
}

Finally, run: composer update

I will check and add support for Laravel 8 and 9 soon. Thank you.

authors: andrey-helldar laravel-shift

repo: andrey-helldar/laravel-app


text:
[Timeline] Video playing transition is not smooth

When playing a video in the timeline, the progress is not smooth. The screen goes through the following intermediate phases:

Or see the video:
https://github.com/android/socialite/assets/6952116/f3974d65-0b77-4ff0-af94-18a63cceb268

I'm seeing something similar but the video gets stuck playing on the left side of the card only (similar to image 5 above), which squishes the content:

authors: IanGClifton JolandaVerhoef

repo: android/socialite


text:
Reduce amount of code

Reduced the amount of code using Kotlin Synthetic

Hi @GeorgCantor ! Thanks for the PR.
Since Kotlin Android Extensions are deprecated, we don't want to use Kotlin synthetics here. If you were able to migrate these to use view binding, then I'd be able to accept the PR.

Ok

repo: android/uamp


text:
Bugfix - properly shutdown ProtocolProcessorBootstrapper

Based on https://github.com/andsel/moquette/pull/109 if added a bugfix to properly shutdown the server and also a modified version of the integration test provided by @kazvictor.

Hi  @mjacoby this test it's a little bit convoluted and hard to understand, just to to check that all threads terminate.
For example, in my opinion the scheduling at a fixed rate a thread to check the count of thread and then move forward the latch, it's a little bit non sense; in this case the thread that's running the test could do spin check of the condition (#number of current thread == #of threads at setup time).
Then another thing that doesn't sound good is the if, control structures has to be avoided in tests, else you are verifying  two things, and in this case is used just to debug the test.
Sorry but this PR can't be accepted from my side.
Regards
Andrea

authors: andsel mjacoby

repo: andsel/moquette