build hygiene: Get cgo flags for rocksdb from explicit env vars

Description
Rather than assuming the build container has CGO_CFLAGS and CGO_LDFLAGS set, explicitly augment those env vars by appending the contents of $ROCKSDB_CFLAGS and $ROCKSDB_LDFLAGS to them for the binaries that need rocksdb.
This change is designed such that it can go in immediately, without waiting for a change of the builder image to set those vars.
Additionally, consolidate some Makefile build logic.
Checklist

[ ] Investigated and inspected CI test results
[x] ~Unit test and regression tests added~
[x] ~Evaluated and added CHANGELOG entry if required~
[x] ~Determined and documented upgrade steps~
[x] ~Documented user facing changes (create PR based on openshift/openshift-docs and merge into rhacs-docs)~

If any of these don't apply, please comment below.
Testing Performed

CI

Link to downstream change for the record keeping https://gitlab.cee.redhat.com/stackrox/rhacs-midstream/-/merge_requests/203

/retest


Use dtsGen to generate declaration files for imported modules with no declarations

Search Terms
dts-gen
third party modules
fallback
typings
modules without typings
Suggestion
One of the biggest concerns I've heard from new users using TypeScript is dealing with libraries that have no typings provided (neither in the library itself nor in DefinitelyTyped). In a strict TS environment or with noImplicitAny: true, TypeScript will complain about a library you import that has no associated typings definition.
Your options at this point are to provide your own typings file in a local typings folder, or use dts-gen to generate one for you.
Personally, I find this to be a useful exercise but newer users get tripped up on it and frequently cite it as one of the harder parts about TS adoption.
I had considered creating a library (similar to https://github.com/tamayika/types-local) that would use dts-gen to automatically put index.d.ts files inside of libraries within your node_modules folder that have no associated typings, provided you've imported the library in your code. This would probably end up being gross and an npm anti-pattern.
Instead, it would be nice if the compiler could do this for us. If you have imported code w/o typings, the TS compiler could use dts-gen to generate typings (which obviously are imperfect) which would allow folks to proceed without worrying immediately about whether the library has typings.
Maybe a flag called dtsGenFallback under compilerOptions could do this?
Use Cases
Described above
Examples
Described above
Checklist
My suggestion meets these guidelines:

[x] This wouldn't be a breaking change in existing TypeScript / JavaScript code
[x] This wouldn't change the runtime behavior of existing JavaScript code
[x] This could be implemented without emitting different JS based on the types of the expressions
[x] This isn't a runtime feature (e.g. new expression-level syntax)

@mhegazy thank you for the quick response and triaging!
That makes sense that it would be under the language service. I think the only thing you'd need to check for on build is if the package updated, as an updated package may now have typings associated with it, or the output from dts-gen could be different.
To clarify though, how would you imagine users activating this feature?

I think the only thing you'd need to check for on build is if the package updated,

that is a general problem that we have today as well with the quick fix to install @types packages. Today we install the latest @types package regardless. ideally we would be more cognizant of the version and install the right version. Then the next problem is detecting version mismatches and warning the user about them, giving them the option to update. I think this feature would follow the same pattern.

how would you imagine users activating this feature?

If a module has no declaration file in it, no matching @types package in the registry, and no ambient module declaration, the user will get a Suggestion diagnostic (three little dots under the name in VSCode), along with a light pulp to create the declaration file for the missing package.

If a module has no declaration file in it, no matching @types package in the registry, and no ambient module declaration, the user will get a Suggestion diagnostic (three little dots under the name in VSCode), along with a light pulp to create the declaration file for the missing package.

Gotcha. I like that as it forces the user to understand what's happening, and that the typings are going to be very lax (dts-gen tends to do a lot of any typing).
Where would the declaration file go? I suppose you could put it into node_modules/<untypedPackage>/index.d.ts, but then it doesn't get checked in.
If you put it into the app directory, you'd probably want to check if there's already a local typings folder for untyped packages or for augmented third party typings. Determining what that existing folder is is probably non-obvious.. I suppose you could scan compilerOptions.typeRoots and look for a local typings folder?
Separately, if a user has no local typings folder, you'd have to create one for them and modify their compilerOptions.typeRoots. Not sure the language service can do that?

Where would the declaration file go? I suppose you could put it into node_modules//index.d.ts, but then it doesn't get checked in.

node_modules is not the best place. since that is not checked in your project. we will have to pick a name for a folder for these packages. I think we can use typeRoots as a way of inferring the location of types.

@andy-ms thanks for working on this! I noticed you marked the issue as fixed, but in the PR it says the functionality is not yet exposed to consumers? I just tried testing in 3.1 and didn't see a code fix lightbulb.

@dannycochran It's working for me in<EMAIL_ADDRESS>with the following setup:
node_modules/foo/index.js: exports.x = 0;
src/a.ts: import { x } from "foo";
tsconfig.json: { "compilerOptions": { "module": "commonjs" } }
Make sure you have your editor set up to use the latest TypeScript install. (vscode instructions)

hmm @andy-ms I tried that example locally and it does not work for me still. here's an example repo, if you run:
npm i && npm run build

you'll see the error.

Hi @dannycochran, this feature doesn't affect compilation. But if you open index.ts in an editor and click on 'foo' (which should be highlighted with the error), there should be a codefix that offers to generate the type.

@andy-ms I'm not seeing the codefix in VSCode (1.28.0) either, and the lightbulb setting is enabled in my global settings. VSCode is also pointed at my repository's version of TypeScript, 3.1.1.
There's one code fix available for converting to a namespace import, but that's not the right one.

@dannycochran In that image, it looks like 'foo' is at the root, rather than inside node_modules. In order for this feature to work we need to have resolved the module to a .js file, but it probably did not resolve at all. You can use --traceResolution to get information about that.

@andy-ms it's checked into the root, but it gets copied to node_modules on postinstall, so it ultimately lives at node_modules/foo/index.js -- I did that so it'd be easy to clone this repo and replicate, since node_modules are not git ignored.
are you able to clone the repo I showed above and see the correct code fix after running npm install?

It works for me when I run npm install in your repo first. Not sure what's breaking. Could you hit ctrl-shift-p to open the command window and run TypeScript: Open TS Server log to see if an error might be happening?

@andy-ms here's the tsserver.log output:
https://gist.github.com/dannycochran/b130c88c3a588dee727daac2e6c0f600

It looks like you're encountering #27867. As of #28258 we should be producing better error info in that situation, so it would help if you installed typescript@next and tested with that.

Ran npm install typescript@next --save-dev, and pointed VSCode to use the local install from node_modules. Looks like I'm getting that same error (Expected isNewFile):
https://gist.github.com/dannycochran/87622db7624d9cadd41caa0dfa9f8d24

I think a way to quickly augment typings from the DT repository would be more useful for the growth of TypeScript. I imagine just editing the typings from DT where all stuff surrounding pull requests and tests is abstracted away from the user and the user is guided through it automatically.
 I mean it has to happen, but the user does not want to associate with additional work, they want it to be easy and "fun". Also I want to use any typings I edit directly, without waiting for the pull request to get through.
I think because such a tooling does not exist, a lot of people don't bother contributing to DT and just create their typings locally (me too).
This hurts TypeScript MASSIVELY I think. But because you can't measure the detrimental effect, it goes completely unnoticed.
I want to make a feature request surrounding this because I am sure something is missing here, but I am uncertain how I would go about this, especially since I don't really have any idea on how to implement something like this. I just know that it would be better if not everyone was just creating typings for themselves.
Anyone with me on this?

a way to quickly augment typings from the DT repository would be more useful

We already have this. You can, for example, augment any module with new exports, or add new members to its interfaces. https://www.typescriptlang.org/docs/handbook/declaration-merging.html

I want to make a feature request surrounding this because I am sure something is missing here, but I am uncertain how I would go about this

You can create a new issue with a feature request template:
https://github.com/Microsoft/TypeScript/issues/new?template=Feature_request.md
In general, what you're describing could be built by the TS team, or it could be built by a member of the TS community. I think it's a good idea, and it sounds like you're unsure about where to start. I'd suggest by starting a dedicated issue for the conversation, or you could join the TypeScript gitter channel and try vetting the idea there.
I'm not sure this issue is the right place to vet your idea, though. This feature is landed and merged to master, and in no way precludes the feature you're describing. I believe they would be complimentary.

Currently contributing to DT is a crappy endeavor.

@andy-ms did you get a chance to look at the logs I posted here following your previous comment?
https://github.com/Microsoft/TypeScript/issues/25746#issuecomment-437482503

@dannycochran Andy moved to the .NET team so now I'm taking a look at this codefix to see why it doesn't work. I'll take a look at your latest logs after I work through the earlier repros in this thread.

@dannycochran I cloned your repo and it appears there is a problem with folder structure. TS is creating the type definition at the root/types/foo.d.ts if the folder exists. Also it adds a path redirection to tsconfig so the declaration can be found.
I don't think this is ideal, the better choice would be taking advantage of typeRoots.
Here is the changes VSCode/TS offered:
// tsconfig.json
{
  "compilerOptions": {
    "baseUrl": ".",
    "paths": { "*": ["types/*"] },
    "module": "commonjs",
    "strict": true,
    "outDir": "build"
  },
  "include": ["src"]
}

// types/foo.d.ts
export const x: number;
export const y: {
    bar: string;
    foo: string;
};

Could someone clarify the status of this please? Sounds very useful but I'm confused by the combination of these things:

This has been marked as fixed and successfully closed last September: https://github.com/Microsoft/TypeScript/issues/25746#event-1853199795
It's still on the roadmap, and has actually been de-prioritized – I think it used to be scheduled for 3.3 or 3.4, now it's in the Future category.

Thanks.

@aminpaks @borekb
As far as I can tell, this feature doesn't really work at the moment. I don't think it should only work under a specific tsconfig.json setup. I have multiple TS projects with varying tsconfigs, and in none of them is this feature showing up. So, this will never really be discoverable.


Market: Always free?

I set a price but then it displays "free" all over the page.
Also there is no buy-button for other users.

it's because Payment module isn't installed or payment details aren't specified.


Enable CI with Github actions

Experimenting with setting up Continuous Integration using Github actions. This is intended to run lint checks and tests and to fail the build if those fail on main, branches, and for pull requests.

Had some issues with sourcing the virtual environment setup script in the CI environment. Took some iteration, but finally got it working. I had thought at one point that maybe it would be better in CI to not use the virtual environment, but changed my mind. I think it's best if we keep our local dev, CI, and production environments as consistent as possible. Using the virtual environment in all places will help accomplish that.


[New Theme Request] Resilio Sync

Resilio Sync is a software that can be used headless with a webUI. It allows you to sync files and folders across multiple locations in real time.
https://www.resilio.com/individuals/

Added.
I dont use it, so there are definitively some bugs.
I know there are some with the svg icons they used. I got lazy and  havent changed them. Need to host them on github with new colors.


[Unity][Tracking Issue] In-place operations

Per the discussion on in-place updates, this is a tracking issue to discuss the steps and implementation details.

[x] Implement a basic version of the call_tir_inplace operator. This will handle the "simple case" described in the discussion thread, where the input tensor must be at least large enough to hold the desired output. At this stage, we will not handle memory planning for the cases where the input tensor is too small to hold the output (thus requiring the memory planner to ensure that the underlying storage is large enough).
[ ] Implement a conservative alias analysis to ensure that candidates for in-place operations are not aliased. We may also need to implement special operators to assert that values are not aliased or assert that a given PackedCall does not create aliases.
[ ] Implement a liveness analysis to determine that candidates for an in-place operation are not live later in the program.
[ ] Implement a pass that uses the alias and liveness analyses to identify candidates for in-place operations and replaces them with call_tir_inplace invocations. At this stage, the memory planner should also be modified to handle cases where the input tensor needs a larger underlying storage.

cc @quic-sanirudh

@tqchen A question about implementing one of the relatively simple cases, an in-place operation where the result is smaller than the input. I discussed with @MasterJH5574 and we weren't entirely sure about how this should work.
Let's suppose we have a call out = call_tir_inplace(some_func, (t1,), return_shape), where return_shape is smaller (in at least one dimension) than t1. out will be treated as a tensor of the smaller shape (return_shape), but will in reality be stored in the same place as t1. @MasterJH5574 points out that slicing is an example where this could arise.
The question is, do we need to have any special handling in the memory planner for this case? Would Relax's runtime treat out as being of t1's shape even though it's supposed to be smaller? Where might we need to make changes to handle this case? I could imagine some difficulties potentially arising with stride, layout, etc.
(For now, I will implement the scenario where the output shape matches the input shape exactly.)

Alternative approach suggested by @tqchen and @psrivas2: Consider dataflow blocks only. This would have the advantage of avoiding a whole-program analysis for liveness and aliases and would be a large simplification due to not having to handle control flow, but the risk would be that the alias analysis would have to be overly conservative since any value that comes from outside the dataflow block would have to be treated as potentially an alias. This is worth trying on a real example (say, an excerpt from an LLM). If these very conservative versions of the analysis turn out to be sufficient, then that would be a reasonable starting point.


make bart:  make: *** [bart] Error 1

Following your guide on MacOS fails:
https://bartholomew.fermyon.dev/quickstart
$ git clone https://github.com/fermyon/bartholomew.git
$ cd bartholomew
$ make bart
This last step 'make bart' errors with output:
cargo build --release --manifest-path=bart/Cargo.toml
make: cargo: No such file or directory
make: *** [bart] Error 1

Hi @cloudjumper2000, thank you for filing.  It looks like we're missing a step to install cargo if not already on the system.  Can you install cargo when you have a chance and then assuming that's the issue, we can update the docs?

Hi @vdice, i installed cargo but that didnt seem to resolve the issue even after coping the bart folders as noted:
(NOTE: target/release/bart will need to be installed to a user executable directory such as /usr/local/bin/ to be run when built this way.)

Reread a bit and gave this a try:
Downloaded bart from here. Added it to /usr/local/bin/, opened a new terminal and added it to security and privacy... that worked.
MB % bart
bart 0.6.0
The Bartholomew CLI
...

Thanks for the quick response, Cheers!

@cloudjumper2000 glad to hear the pre-built binary approach is working for you.  Happy to help troubleshoot building from source when/if the need arises.
I've submitted https://github.com/fermyon/bartholomew/pull/154 adding a link and mention of cargo.  Closing this one for now.  Thanks again for raising.


writeLine Issue: "Line object cannot be serialized" issue when trying to write ANY line via the ifcApi

Currently it is not possible to write (even unchanged lines) back to the model, this is due to a typo in the IFCWorker.js:87227 as you can clearly see there is a check for expressID, type and ToType[sic] -> ToType does not exist within a line Object and the code below states that it was actually meant to be ToTape, once you change the clause to ToTape it works just fine.
    if (lineObject.expressID == void 0 || lineObject.type == void 0 || lineObject.ToType === void 0) {
      console.warn("Line object cannot be serialized: ", lineObject);
      return;
    }
    let rawLineData = {
      ID: lineObject.expressID,
      type: lineObject.type,
      arguments: lineObject.ToTape()
    };
    this.WriteRawLineData(modelID, rawLineData);

-Hi, i use<EMAIL_ADDRESS>and<EMAIL_ADDRESS>I customized function "WriteLine", and did not use ifcworker.js(multi threading). Here is my code and it worked for me.
WriteLine(modelID, lineObject) {
var _this = this;
const ifcAPI = this.ifcManager.ifc.ifcAPI;
Object.keys(lineObject).forEach((propertyName) => {
let property = lineObject[propertyName];
if (property && property.expressID !== void 0) {
_this.WriteLine(modelID, property);
lineObject[propertyName] = {
type: 5,
value: property.expressID,
};
} else if (Array.isArray(property) && property.length > 0) {
for (let i = 0; i < property.length; i++) {
if (property[i].expressID !== void 0) {
_this.WriteLine(modelID, property[i]);
lineObject[propertyName][i] = {
type: 5,
value: property[i].expressID,
};
}
}
}
});
	let rawLineData = {
		ID: lineObject.expressID,
		type: lineObject.type,
		arguments: lineObject.ToTape(),
	};
	ifcAPI.WriteRawLineData(modelID, rawLineData);
}


Checklist reset in reading view

Would it be possible to make the command executable in reading view as well?

Sure, that'd make sense, I'll take a look.

@MightyW0lf that's now available in version 1.1.0.


fix(forge): Don't ignore config.toml when running invariant tests for coverage

forge coverage ignores the config.toml file for invariant tests.
Invariant testing in coverage mode thus uses the default 256 runs which is small, making coverage for big invariant tests noisy/useless. This is not the case for regular (non-invariant) tests.
Motivation
This would bring us closer to having invariant tests as contributing fully to coverage (#4007).
Fixes #6565.
Solution
The coverage runner now takes the correct config given when running tests.
This is my first time writing Rust ever, so do feel free to ignore/rewrite completely.

invariants right now don't contribute to coverage at all

That's weird, I'm running an invariant test and getting some coverage info following this Twitter thread  by using
forge coverage --report lcov --report-file test/myfile.lcov --match-contract myInvariantTest
genhtml ./test/myfile.lcov -o output

and then checking the output html.
The coverage does seem to increase on my test when I increase the number of runs. Maybe I'm getting "fooled by randomness" and it's just a question of seed or something?

Interesting thread—thanks for sharing. However we do not officially support coverage for invariant tests 😅 so while this might actually be working I'm really wary about this affecting CI to people. Wdyt @mds1 ?

Not sure if this is a common opinion, but:

You should have good coverage even with 1 fuzz run and no invariant runs. This gives a stricter measure of your test coverage by ensuring you aren't relying on fuzzing/randomness.
It is still useful to be able to see how much coverage many fuzz runs or many invariant runs provided, to gauge the effectiveness of your fuzz and invariant tests.

As a result, my preference is two coverage modes:

One mode ignores config settings, sets fuzz runs to 1, ignores invariant tests.
Second mode respects config settings,

I think people's expectation is that (2) is the default, and perhaps (1) becomes something like forge coverage --strict
I'm not sure where this PR fits into that potential design/UX


IndexOutOfBounds if CollectionElement used as context does not exist

The problem
If you use not existing CollectionElement as search context for a collection -> IndexOutOfBounds is thrown
Details
Such code for looking for Collections
    @Test
    public void test () {
        open("https://yandex.ru");
        $$("not-existing-locator").first().$$("locator").isEmpty();
    }

Produces java.lang.IndexOutOfBoundsException: Index 0 out-of-bounds for length 0
But same logic for looking for Elements
    @Test
    public void test () {
        open("https://yandex.ru");
        $$("not-existing-locator").first().$("locator").exists();
    }

Works fine. And $$("not-existing-locator").first().$("locator").exists(); has false value.
Seems to have some kind of inconsistency. Does it work as designed?
Tell us about your environment
Selenide Version: 4.11.4

hm. Code fails on first() I think. You are trying to get first element of list with size = 0. It is java common behaviour.

@sidelnikovmike sure it is, but it works fine for $$("not-existing-locator").first().$("locator").exists();
and this different behavior is a bit confusing imo

@CaBocuk I think that different behaviour is a bit confusing, but not critical at all.
 The line below line should not throw an exception, but throws. And this is a bug in Selenide. We need to fix it.
$$("not-existing-locator").first().$$("locator").shouldHave(size(0));

// for comparison, the equivalent line for a single web element works fine:
$$("not-existing-locator").first().$("locator").shouldNot(exist);

@asolntsev

What do you think about this case?
$("not-existing-locator").$$("#multirowTable").shouldHaveSize(0);
It throws
Element not found {not-existing-locator}
Expected: exist
NoSuchElementException: Unable to locate element: not-existing-locator
and it's clear as for me.

What is expected behavior for the discussed cases?
$$("not-existing-locator").first().$$("locator").shouldHave(size(0));
$$("not-existing-locator").first().$("locator").shouldNot(exist);
I believe they should throw NoSuchElementException: Unable to locate element: not-existing-locator too.

@Denysss We have two options:

It should throw exception because parent element $("not-existing-locator") doesn't exist.
It should work without errors because collection ("not-existing-locator").$$("locator") IS empty, and ....shouldHaveSize(0) IS true.

I personally think that the 2nd option is better. At least this is consistent with $ behaviour.


fix(curriculum): typo in alt text

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.

Closes #55276

Hi @NSVPavan. Congrats on your first pull request (PR)! 🎉
Thank you for your contribution to the page! 👍
We are happy to accept these changes and look forward to future contributions. 📝


Try to update Manager.py for latest openai

Since openai latest version and llmx latest version is not working properly with lida.
error : saying that, try to degrade openai to 0.28 version

@Varun-varun ,
This has been updated.
pip install -U lida llmx openai

Can you verify you still have issues when you run


Dynamic input shape support?

This is similar to something mentioned in #16, but the codebase seems to have changed since then, so I thought I'd create a new issue.

I'd like to try using this library with one of my models, which has a dynamic input size ([?, ?, ?, 1] / [-1, -1, -1, 1] on the first layer, which is later resized in ResizeBilinear). However, when I called model.run, I got the following error, which I assume is due to the library not handling this first layer size as dynamic:
TFLite: Input Buffer size (16384) does not match the Input Tensor's expected size (4)! Make sure to resize the input values accordingly.

I am passing in an image as a grayscale tfCore.Tensor, img (64 x 64 x 1), which I am converting to a Float32Array with a new Float32Array(await img.data()). Is there any way currently to use models with dynamic size? I'm also willing to look into implementing this myself; any tips in that regard would also be appreciated.

I couldn't find any native-level logs about this issue. The message I get is not that mysterious, though, and it appears as a console warning.
@mrousavy I think this is all set to take a look at; thanks!


Custom ObjectMapper is not used

Describe the bug
With the latest spring-cloud-function 4.1.3 release a custom ObjectMapper bean is no longer respected when creating the FunctionCatalog in the ContextFunctionCatalogAutoConfiguration.java.
We need this behaviour, because must configure the ObjectMapper to use the snake-case naming strategy.
This regression is introduced by commit 8b66fd296e72e8c0f1ed5df0711da5ea75527cb8 which fixed issue #1148.
Sample
If you really want an example I can provide some.
Possible Solution
I would like to propose the following solution to fix this issue. Adding a @ConditionalOnMissingBean on the bean definition of the JsonMapper here. With this change one can easily provide a custom JsonMapper Bean wrapping a custom ObjectMapper. This could also fix issue #1059.

We also stumbled over that issue. 😞
You can mitigate it annotating a custom provided bean with @Primary.
  @Bean
  @Primary
  public JacksonMapper jacksonMapper(final ObjectMapper objectMapper) {
    return new JacksonMapper(objectMapper);
  }

If I understood the issue correctly, the reason for 8b66fd2 was that you need to configure some things on the ObjectMapper and don't want this to affect the original one from the context. Wouldn't it make sense then to just copy() the context ObjectMapper before modifying it? This way, you would get all the configuration from the context ObjectMapper like before, but would not change the original configuration.
I will submit a PR. This should restore the behavior from before the GH-1148 change without any additional configuration required. I still think #1160 is a valuable change as it would allow you to further configure the ObjectMapper to be used.

Same here.
We declare several Jackson Modules to add support for some classes serialization and deserialization.
Since upgrading to version 4.13 out tests fail.
I was able to trace the changes between 4.12 and 4.13 in ContextFunctionCatalogAutoConfiguration
4.12: our modules and jackson settings are used
private JsonMapper jackson(ApplicationContext context) {
	ObjectMapper mapper;
	try {
		mapper = context.getBean(ObjectMapper.class);
	}
	catch (Exception e) {
		mapper = new ObjectMapper();
	}
	mapper.configure(SerializationFeature.FAIL_ON_EMPTY_BEANS, false);
	mapper.configure(DeserializationFeature.FAIL_ON_TRAILING_TOKENS, true);
	return new JacksonMapper(mapper);
}

4.13: our modules and jackson settings are no long used
private JsonMapper jackson(ApplicationContext context) {
	ObjectMapper mapper = new ObjectMapper();
	mapper.registerModule(new JavaTimeModule());
	mapper.configure(SerializationFeature.FAIL_ON_EMPTY_BEANS, false);
	mapper.configure(DeserializationFeature.FAIL_ON_TRAILING_TOKENS, true);
	return new JacksonMapper(mapper);
}

We also stumbled over that issue. 😞 You can mitigate it annotating a custom provided bean with @Primary.
  @Bean
  @Primary
  public JacksonMapper jacksonMapper(final ObjectMapper objectMapper) {
    return new JacksonMapper(objectMapper);
  }

it does not work, fails to create a bean.
The bean 'jsonMapper', defined in class path resource [org/springframework/cloud/function/context/config/ContextFunctionCatalogAutoConfiguration$JsonMapperConfiguration.class], could not be registered. A bean with that name has already been defined in com.foo.bar.config.ObjectMapperConfiguration

any updates on this issue?

I've been also hit by this issue today 😅 . I think could be a nice fix the solution given by @sonallux
Thanks

We too are affected.
A workaround for the .. bean with that name has already been defined.. Exception was to create a custom AutoConfiguration that registeres a BeanPostProcessor overwriting the faulty Bean:
import com.fasterxml.jackson.databind.DeserializationFeature;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.SerializationFeature;
import com.mycomp.framework.core.util.conditions.ConditionalOnDependencyVersion;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.BeansException;
import org.springframework.beans.factory.config.BeanPostProcessor;
import org.springframework.boot.autoconfigure.AutoConfiguration;
import org.springframework.boot.autoconfigure.AutoConfigureBefore;
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
import org.springframework.cloud.function.context.config.ContextFunctionCatalogAutoConfiguration;
import org.springframework.cloud.function.json.JacksonMapper;
import org.springframework.context.annotation.Bean;

@AutoConfiguration
@AutoConfigureBefore({ContextFunctionCatalogAutoConfiguration.class})
public class WorkaroundForCloudFunctions {
    private static final Logger LOG = LoggerFactory.getLogger(WorkaroundForCloudFunctions.class);

    //TODO remove when https://github.com/spring-cloud/spring-cloud-function/pull/1162 is released and used.
    /**
     * Background: Github Issue
     */
    @ConditionalOnClass(JacksonMapper.class)
    @ConditionalOnDependencyVersion(groupId = "org.springframework.cloud",
                                    artifactId = "spring-cloud-function-context",
                                    versionRequirement = "4.1.3")
    @Bean
    public BeanPostProcessor jacksonMapperFix(ObjectMapper objectMapper) {
        return new BeanPostProcessor() {
            @Override
            public Object postProcessBeforeInitialization(Object bean, String beanName) throws BeansException {
                if (bean instanceof JacksonMapper) {
                    LOG.warn("Injection custom JacksonMapper for spring-cloud-function-context.");
                    //replicate the modifications of ContextFunctionCatalogAutoConfiguration.JsonMapperConfiguration.jackson
                    var newOm = objectMapper.copy()
                                    .configure(SerializationFeature.FAIL_ON_EMPTY_BEANS, false)
                                    .configure(DeserializationFeature.FAIL_ON_TRAILING_TOKENS, true);
                    return new JacksonMapper(newOm);
                }
                return bean;
            }
        };
    }
}

This issue has been addressed
You can configure custom mapper as such
@Configuration
    @ConditionalOnProperty(value = "demo.jackson.mapper.enabled", havingValue = "true", matchIfMissing = true)
    public static class JacksonConfiguration {

        @Bean
        @Primary
        public JacksonMapper jacksonMapper(final ObjectMapper objectMapper) {
            objectMapper.registerModule(new JavaTimeModule());
            objectMapper.configure(SerializationFeature.FAIL_ON_EMPTY_BEANS, false);
            objectMapper.configure(DeserializationFeature.FAIL_ON_TRAILING_TOKENS, true);
            return new JacksonMapper(objectMapper);
        }

    }


I try to visit postgreSQL in body_filter phase, kong promot  "API disabled in the context of body_filter_by_lua" Error

I wrote a plugin to process response data in body_filter phase like this:
   function ResponseCustomizeHandler:body_filter(conf)          local entity,err = kong.db.tb_biz_errors.each(10)          // do others...    end
But it raise error with :
[error] 626#0: 83 failed to run body_filter_by_lua: /usr/local/share/lua/5.1/kong/globalpatches.lua:342: API disabled in the context of body_filter_by_lua*
How can I fix this error?

You have to start a timer with ngx.timer.at:
https://github.com/openresty/lua-nginx-module#ngxtimerat

Closing this now.


Computing the matrix norm

Sometimes it is beneficial to have a method that computes the norm of a matrix (or liner operator). (Currently we only have a function which computes the column-wise dot product of two dense matrices - which is enough for use in Krylov solvers, but not necessarily in all scenarios).
There are a few questions though on how we implement this:

There are multiple interesting norms (1, Frobenious, infinity, etc), do we want to support all of them? And how do we design the interface for that, multiple functions, one templated function, or one function with an extra parameter?
For which kinds of linear operators does it makes sense to implement the norm in the first place? Probably not for solvers. For all of the matrices it is not extremely difficult (depending on the norm). For some preconditioners (e.g block-Jacobi) it is easy, but for others it's more involved (e.g. ILU-type). Do we add it as a virtual method to LinOp, do we create a new interface which is inherited by all operators implementing it (e.g. like we have for transpose), or do we just put that as non-virtual members of the concrete linear operators implementing those?

It would definitely be a nice feature! Avoiding a lot matlab stuff....
For the ILU preconditioners that you take as example, the question is whether you want the norm of the complete preconditioner or only of a single factor. Then it boils down to the matrix norm, right?

Ad 1. Maybe a function with an extra parameter, as done in xLANGE, e.g.,
https://github.com/Reference-LAPACK/lapack/blob/master/SRC/clange.f

@hartwiganzt with "ILU preconditioner" I was talking about the linear operator U^-1 L^-1 (this is the actual operator that is applied at every iteration), so || U^-1 L^-1 ||, which is difficult.

With the previous MRs #141 and related a function compute_norm2 was added for Dense matrices. We still miss a bunch of norms and this is only for Dense, but there is something.

@tcojean #141 does something different - it computes (or at least should compute) the norm of each column of the matrix, so the result is a row-vector of norms. This is a feature request for computing the norm of the entire matrix, which should produce one value for the entire matrix.


v1.0.0-rc2

add 'bower install' to npm postinstall hook
enabled automatically publishing of npm package

This change is

 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.

Reviewed 2 of 2 files at r2.
Review status: all files reviewed at latest revision, all discussions resolved, some commit checks broke.

Comments from Reviewable

Thanks,
Waiting for publication on npm :-)

I have an error when I use npm install --save<EMAIL_ADDRESS>bower ENOENT No bower.json present

@Chabane sorry for this issue. I've bumped version to v1.0.0-rc3

Thanks, it works :+1:


EVEREST-1405-hiding-sharding: hide sharding from UI and API

hiding sharding from preview/steps/db details and API requests (create/update)

@solovevayaroslavna since we already have the release branch can we target base branch release-1.2 instead of main? This way this change only affects the release branch and main continues to have this feature.

@recharte then i will cherrypick commit to release, because it allows to avoid extra BE conflicts

@recharte then i will cherrypick commit to release, because it allows to avoid extra BE conflicts

Why do we need this in main? The BE will also only revert the sharding API changes in the release-1.2 branch. If there's something in the PR that's no just about hiding the sharding options then it should probably be separated onto another PR :shrug:

cherry-picked directly to release-1.2 branch


Utils library

Hello, I have a questions that the Utils.moths is used in example code, so there are any Utils.week or something can display 7 days of week?
Thank you so much.

No, but it's jus an array of strings.
['Mo','Tu','We',...] will do the trick.


tickets/DM-41550: reconfigure giftless

make it use Terraform-driven GCP objects, and not keys stuffed into secrets
deploy to roundtable-prod

is done.
Ready for 2).


Dashboard keeps loading

Dev Home version
0.1101.416.0
Windows build number
10.0.22621.3296
Other software
OS Build Version: 10.0.22621.3296.amd64fre.ni_release.220506-1250
.NET Version: .NET 8.0.1
Steps to reproduce the bug
Launch the app and wait until the app is fully loaded.
Expected result
The Dashboard should also load.
Actual result
The Dashboard was still loading, even after every other component in Dev Home was loaded
Included System Information
CPU: Intel(R) Core(TM) i3-7100U CPU @ 2.40GHz
Physical Memory: 11.89GB (3.84GB free)
Processor Architecture: x64
Included Extensions Information
Extensions:
Microsoft.Windows.DevHomeAzureExtension_0.600.416.0_x64__8wekyb3d8bbwe
Microsoft.Windows.DevHome_0.1101.416.0_x64__8wekyb3d8bbwe
Microsoft.Windows.DevHomeGitHubExtension_0.1100.422.0_x64__8wekyb3d8bbwe
9932MartCliment.WingetUIWidgets_<IP_ADDRESS>_x64__g91dtg5srk15g
Widget Service:
MicrosoftWindows.Client.WebExperience_523.11500.0.0_x64__cw5n1h2txyewy

I've seen this issue on occasion. I believe something is going wrong in caching the widget icons.

I've seen this issue on occasion. Something is going wrong in caching the widget icons.

When I restarted Dev Home, even Machine Configuration and Extensions were lagging.


ndt7/JavaScript: show both the TCP and the application bandwidth

Suggested by @mattmathis. It's possibly possible using TCPInfo.

Not applicable to the UI after #188, but I guess there will be enhancements, so let's keep it open.


Desktop entries and mime types for MaterialX Graph Editor and View

Hi, I apologize if this is the wrong place for my question, I'm not expert with the github environment.
I'm going to be the maintainer of MaterialX for Slackware, the slackbuild for build and install the package is almost ready, I have to do some tweaks and add support for some extensions (e.g. OpenImageIO). At the moment the installation including the graphical interfaces and python bindings seems works fine and I think that the slackbuild will be available soon in Slackbuilds.org, the repository of the software not included in the official Slackware releases.
I have a little problem. I made the desktop entries for the graphical interfaces but I'm not able to set the correct values for the [mimetype] key because I'm not expert in this subject. The values that I tried to add seem no working. Could help me to set the correct values?
These are the codes:
MaterialXView.desktop
`
[Desktop Entry]
Type=Application
Name=MaterialXGView
GenericName=MaterialX Viewer
GenericName[de]=MaterialX Viewer
GenericName[es]=Visor de MaterialX
GenericName[fr]=Visionneuse de MaterialX
GenericName[it]=Visualizzatore di MaterialX
GenericName[pt]=Visualizador de MaterialX
Comment=Interface for viewing GLSL shaders for MaterialX
Comment[de]=Schnittstelle zum Anzeigen von GLSL-Shadern für MaterialX
Comment[es]=Interfaz para ver sombreadores GLSL para MaterialX
Comment[fr]=Interface de visualisation des shaders GLSL pour MaterialX
Comment[it]=Interfaccia per la visualizzazione di ombreggiatori GLSL per MaterialX
Comment[pt]=Interface para visualização de shaders GLSL para MaterialX
Exec=MaterialXView %f
Icon=/usr/share/icons/hicolor/256x256/apps/materialx.png
Terminal=false
Categories=Graphics;
StartupNotify=true
MimeType=application/x-mtlx;model/materialx;application/x-materialx;application/xml;image/mtlx+xml;
and MaterialX Graph Editor
[Desktop Entry]
Type=Application
Name=MaterialXGraphEditor
GenericName=MaterialX Graph Editor
GenericName[de]=MaterialX Grafikeditor
GenericName[es]=Editor de Gráficos MaterialX
GenericName[fr]=Éditeur de Graphique MaterialX
GenericName[it]=Editor di Grafica MaterialX
GenericName[pt]=Editor Gráfico MaterialX
Comment=MaterialX graphics processing interface
Comment[de]=MaterialX Grafikverarbeitungsschnittstelle
Comment[es]=Interfaz de procesamiento de gráficos MaterialX
Comment[fr]=Interface de traitement de graphique MaterialX
Comment[it]=Interfaccia per l'elaborazione di grafica MaterialX
Comment[pt]=Interface de processamento gráfico MaterialX
Exec=MaterialXGraphEditor %f
Icon=/usr/share/icons/hicolor/256x256/apps/materialx.png
Terminal=false
Categories=Graphics;
StartupNotify=true
MimeType=application/x-mtlx;model/materialx;application/x-materialx;application/xml;text/mtlx+xml;image/mtlx;
`
Thanks
Giancarlo

Good to meet you, @giandex, and one good forum for this question would be the MaterialX channel of the ASWF Slack, which is free to join:
https://www.aswf.io/get-involved/
There have been related question on that forum about the MaterialX filetype in the Apple ecosystem, and others in the MaterialX community may be able to point you in the right direction.

Thanks for the reply, @jstone-lucasfilm, I've posted the question in the suggested forum, waiting for a possible help I'll try anyway a solution myself throw the documentation about the mime type standards. I found also a build failure trying to add the support of OpenImageIO to MaterialX View, but before reporting the issue here I want to investigate the context better, because I'm not sure if it is generated by the build settings or the version of cmake used (3.28.1); cmake fails in a post build operation if I add explicitly a flag for the OIIO root directory (I think needed to activate a build condition). Without this flag MaterialX View cannot open files with OIIO support in runtime. I'll ve open a specific issue report when I've all elements.  Thanks :-)

Thanks for starting the discussion on the MaterialX channel of the ASWF Slack, @giandex, and I'll provide a link here:
https://academysoftwarefdn.slack.com/archives/C0230LWBE2X/p1704012334874289
In order to keep that discussion focused, I'll close out the original GitHub Issue, but feel free to post new issues to represent any proposed MaterialX improvements that arise from that thread.


Fixed double borders when using justified button groups

Issue: Double borders are being shown when using justified button groups (see examples at http://getbootstrap.com/components/#btn-groups-justified).
This can be resolved by setting border-collapse: collapse on the base class, but I noticed that it was explicitly set in 1e1b5c737ba33c0e7a86634bcb3baedc70498884 to resolve #9406.
I've fixed this by removing one of the borders when multiple buttons are present in a group.

Refs #11964


using HParams with TPU v2 PODs broken

System information

Have I written custom code (as opposed to using a stock example script provided in TensorFlow): no
OS Platform and Distribution: Linux Ubuntu 16.04
TensorFlow installed from (source or binary): binary
TensorFlow version (use command below): 1.12.0
Python version: 2.7
CUDA/cuDNN version: 9.0 / 7
GPU model and memory: T4, 16 GB
TPU type: v2-32
TPU TensorFlow version: 1.12.0

Describe the current behavior
The distribution to the pod fails with

AttributeError: 'TPUContext' object has no attribute 'is_input_sharded_per_core' if passing a user-provided tf.contrib.training.HParams instance to the TPUEstimator. Use --use_hparams argument in the demo script.
AttributeError: 'dict' object has no attribute 'batch_size' if no HParams are provided. Use --nouse_hparams argument in the demo script.

Describe the expected behavior
I expect params in the model_fn and input_fn to be an instance of tf.contrib.training.HParams, hence its parameters should be accessible as attributes. However in 2.) params is a python dict.
I expect to be able to use the TPUEstimator with my own HParams.
Code to reproduce the issue
See https://gist.github.com/ceaed6f7c2ed027da35fe5fbbe0056ae
Help:
USAGE: tpu_hparams.py [flags]
flags:

tpu_hparams.py:
  --num_cores: The number of TPU cores in the pod.
    (default: '32')
    (an integer)
  --project: The project name, the TPU is instantiated in.
    (default: '')
  --tpu: The TPU name.
    (default: '')
  --[no]use_hparams: To avoid the bug.
    (default: 'true')
  --zone: The zone name, the TPU is instantiated in.
    (default: '')

Other info / logs
What causes the issues?

If a user provides params, then the TPUEstimator adds the TPUContext to params by calling
https://github.com/tensorflow/tensorflow/blob/a6d8ffae097d0132989ae4688d224121ec6d8f35/tensorflow/contrib/tpu/python/tpu/tpu_estimator.py#L1528-L1531
This triggers the add_param or set_param methods. If set_param is used because the key context was not found in params, then _cast_to_type_if_compatible is invoked before setting the parameter. Unfortunately this triggers a casting / copy operation:
https://github.com/tensorflow/tensorflow/blob/6612da89516247503f03ef76e974b51a434fb52e/tensorflow/contrib/training/python/training/hparam.py#L187
Because the syntax of the TPUContext only requires one positional argument
https://github.com/tensorflow/tensorflow/blob/a6d8ffae097d0132989ae4688d224121ec6d8f35/tensorflow/contrib/tpu/python/tpu/tpu_context.py#L43-L55
a new TPUContext is initialized, where the _internal_ctx is set to the TPUContext instance, which itself actually contains a instance of _InternalTPUContext.

How could this be solved?

create a clone / copy constructor for HParams
use deep cloning? In case of standard types, this would instantiate a new one as well, if I am not mistaken.
fix the problem in the TPUEstimator by always using instances of HParams and setting context before, so we add the context by calling add_hparam, which does not use the type casting, instead of set_hparam.

hparams suddenly is a dict, not a instance of HParams.

a hotfix would be to pass hparams as a dict like so
estimator = tf.contrib.tpu.TPUEstimator(
    use_tpu=True,
    model_fn=model_fn,
    config=config,
    params=params.__dict__,
    train_batch_size=128
)

btw I am motivated to implement a fix as well. At the moment though I am not sure which way is the best. Especially because I am not aware of any reasoning behind the way it is implemented now.

Thanks for the bug report and apologies for the slow reply.
This issue has been fixed (by fixing the behavior of HParams.set_param). It should show up in the tf-nightly build today, and will be available with the next release of TensorFlow.
In the meantime, as you mention you can use a dictionary instead of the HParams object as a workaround. Sorry for the inconvenience!

cool great to hear that 👍


CapabilityInvocation.validate is broken with Ed25519Signature2020

The following proof/capability is being compacted into the security context:
https://github.com/digitalbazaar/zcapld/blob/master/lib/CapabilityInvocation.js#L112-L114
NOTE: url may be an object here, and is an object in this case.
https://github.com/digitalbazaar/zcapld/blob/master/lib/utils.js#L150
The compaction results in proof.type === 'sec:Ed25519Signature2020' which causes a failure to locate the suite.
{
  '@context': [
    'https://w3id.org/security/v2',
    'https://w3id.org/security/suites/ed25519-2020/v1'
  ],
  id: 'urn:zcap:6fS5PurXq4L3GXpQZoYYa8',
  controller: 'did:key:z6MksNZwi2r6Qxjt3MYLrrZ44gs2fauzgv1dk4E372bNVjtc',
  allowedAction: 'write',
  parentCapability: 'https://localhost:51443/billing-scopes/YCx3DeDUmY2zVRuB1rAyfZ/subscriptions/Ti9mWFSRHKL7zTc6KanfrV/items',
  invocationTarget: 'urn:zcap:root:https%3A%2F%2Flocalhost%3A51443%2Fbilling-scopes%2FYCx3DeDUmY2zVRuB1rAyfZ%2Fsubscriptions%2FTi9mWFSRHKL7zTc6KanfrV%2Fitems',
  proof: {
    type: 'Ed25519Signature2020',
    created: '2021-04-06T21:42:00Z',
    verificationMethod: 'did:key:z6MkfzWk1nzHNXSCtRK1jQrnR5oweC52jUsWkTYDhpETjrGs#z6MkfzWk1nzHNXSCtRK1jQrnR5oweC52jUsWkTYDhpETjrGs',
    proofPurpose: 'capabilityDelegation',
    capabilityChain: [
      'https://localhost:51443/billing-scopes/YCx3DeDUmY2zVRuB1rAyfZ/subscriptions/Ti9mWFSRHKL7zTc6KanfrV/items'
    ],
    proofValue: 'z4JruzqWLi2Qt5QzeJBmkZcx5ATrfMRU1DEuyg3nD9i7iCNTqCNrge3ZcV8soHqTyZjbLYr9b2cRaR14qnee8A735'
  }
}

EDIT: I'm working around this presently by simply returning the document as is without the compact operation.

So this is happening because we fail the check we do before compaction -- which is to make sure the @context is a direct match for the security/v2 context:
https://github.com/digitalbazaar/zcapld/blob/ab2e657d9aa1ba91bc80f97cd14eb5ac6f94384a/lib/utils.js#L143
We can't change this to just look for its appearance in a context array (which is what we have here as input) because the security/v2 context was created before term definition protection was invented and its terms could be overwritten.
I think the solution to this is to look for a new zcap context that uses protected term definitions for the required zcap terms -- and then look for this context in the @context value of the zcap (where we can accept a direct match OR it can be an element of an array -- since its terms will be protected). Then we can require that context to be present and not do any compaction at all -- with an option for custom contexts to be used as overrides for advanced use cases.

I'm working around this presently by simply returning the document as is without the compact operation.

If we need an immediate workaround, we should temporarily allow extra safe values, such as the context in the example here. We should not just skip compaction because that introduces a security hole.

This landed: https://github.com/digitalbazaar/zcapld/blob/main/CHANGELOG.md#400---2021-04-26


Standard output

Add a primop to print to console (which is a new field in the STG state the interpreter can choose to actually print)

This feels rather hacky, since I don't have a string type, and no idea how GHC does IO. In particular, I should learn more about the latter before coming back to this ticket.

#64 is a better solution for the problem that STG values are hard to see.
IO is interesting nonetheless; closing as won't fix for now.


Potential direction

Worried it is too verbose, but its also not used /that/ often.
"Fatal" errors move up and are enacted immediately, non-fatal are nice to know errors that have happened. Another concern is that it could lead to large responses in some cases, ie. where there are a lot of symlinks in a container that are not extracted.
@bplaxco thoughts?
We could add an option too, see if people want to receive these in response or not.

Maybe adding a warning level to leaktkerror? Then also having it forward to the logger so its less verbose in our code?

@thewizzy originally I was thinking that errors and metadata would be sent out over stderr for the controlling process to monitor. I figured the errors slice on the response would help in cases where you needed to specifically tie the errors to a response but I'm wondering if it'd just make sense to:

Swap errors on Response with Status int
Have LeakTK Error include the request ID
Have the scanner decide what to do with the errors coming out of stderr that are LeakTKErrors.

Pros

Responses stay slim and metadata isn't mixed in with the results
Using stderr as a side channel to talk to the controlling process could have other control messages sent over time (things like rate limiting metadata, etc)

Cons

The process would have to be smart enough to match response IDs to the logs coming out when making decisions. But that's also kinda what the Status field is for. It can be set to a non-zero value to say something went weird and we need to hold up a bit for this message for further processing. If you increment the statuses correctly you can combine the statuses though bitmasking if we ever needed to get that fancy.

Thoughts?

I added some Error -> Detail changes, but if all those are all the changes made then I say feel free to make them and merge it on it ^_^


Errata in closed captions for the videos

Describe the bug
Looks like the user captions in the accompanying videos need to be reviewed by the speakers.
As an example, in the first video of the course  Exploring and comparing different LLMs, while Pablo is mentioning labelling of data, the user captions in the video is displaying walling of data

To Reproduce
Steps to reproduce the behavior:

Go to '...'
Click on '....'
Scroll down to '....'
See error

Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):

OS: [e.g. iOS]
Browser [e.g. chrome, safari]
Version [e.g. 22]

Smartphone (please complete the following information):

Device: [e.g. iPhone6]
OS: [e.g. iOS8.1]
Browser [e.g. stock browser, safari]
Version [e.g. 22]

Additional context
Add any other context about the problem here.

Another instance in the same video?
What are space forts ?😊 I think Pablo mentioned "base forks"

Dolly or DALL-E

Thanks for reporting @indcoder , I believe these are auto-generated. We have plans to re-shoot our videos and will make sure the captions are fully accurate.


Add historic data

Changes

Added a csv file writer
Added integration

This still lacks UI integration, but this will be added with the ui rebuild


Are bloom filters supported on LIST types?

Hi there 👋
Firstly, thank you for this amazing library!
I'm curious to know how to add bloom filters to LIST types.
For example, given this schema:
{
  querystring: {
    type: "LIST",
    fields: {
      list: {
        repeated: true,
        fields: {
          element: {
            fields: {
              key: { type: "UTF8" },
              value: { type: "UTF8" }
            }
          }
        }
      }
    }
  }
}

How do you add a bloom filter for the querystring.list.element.key field?
[
  {
    column: "querystring.list.element.key",
    numDistinct: 100
  }
]

I assume the above won't work? (Sorry in advance if that literally is how you do it!)
Thanks in advance!

Hi @ljwagerfield !
Been looking into this. It might work, but I think there might also be a bug in the column naming causing issues.
So your setup of how you think it might work, is approximately how I think it likely should work (or close to it).
So I think this is a bug. The library's bloom filter does not currently handle nested fields at all. (Although most of the pieces are in place for it to do so).
For someone who wants to work on making this possible here are some notes:

writeBloomFilters needs to handle all the possible nested "columns" not just the top level ones. getColumn from the reader.ts file is a good example of going down into the various groups.
Currently the writeBloomFilters will write one if the opts.bloomFilters has a column with name key or value instead of respecting querystring,list,element,key

Here is a simple setup for what "should" work, but doesn't due at least in part to the note ^.
const main = async () => {

  const file = "parquet-testing/issue-98.parquet";

  const schema = new parquet.ParquetSchema({
    querystring: {
      type: "LIST",
      fields: {
        list: {
          repeated: true,
          fields: {
            element: {
              fields: {
                key: { type: "UTF8" },
                value: { type: "UTF8" }
              }
            }
          }
        }
      }
    }
  });

  try {
    const writer = await parquet.ParquetWriter.openFile(schema, file, {
      bloomFilters: [
        {
          column: "querystring,list,element,key",
        },
      ],
    });

    await writer.appendRow({ querystring: { list: [ { element: { key: "foo", value: "bar", }, }, { element: { key: "foo2", value: "bar2", } } ] } });
    await writer.close();
  } catch (error: any) {
    console.log("I'm in the write catch!", error)
  }

  try {
    const reader = await parquet.ParquetReader.openFile(file);
    const cursor = reader.getCursor();
    console.log("row", await cursor.next());
    const metadata = reader.getMetadata();
    console.log("metadata", metadata);
    const bloomFilters = await reader.getBloomFiltersFor(["querystring,list,element,key"])
      console.log("bloomFilters", bloomFilters);
  } catch (error: any) {
    console.log("I'm in the read catch!", file, error)
  }
}

main()

Aha, interesting!
So the Parquet specification does support bloom filters on lists (I wasn't even sure of this), and this library is close to supporting an implementation for that.
That's awesome!
I don't have any spare cycles at present (or the Parquet knowledge!) to contribute, unfortunately, so am happy if you want to close.
Great to know, though, and thanks again! 👍 👍 👍

I'll leave it open for now. With the quick test I wrote, I might be able to get a fix in if I can get the time. Others might want to pick it up as well.

@ljwagerfield This release is going out with support!
https://github.com/LibertyDSNP/parquetjs/releases/tag/v1.3.5

Awesome, thanks so much! 🚀


Allow n suffix for BigInt to match JavaScript

Would allow you to write
final biggie =<PHONE_NUMBER>740991n;

instead of
final biggie = BigInt.from(9007199254740991);

See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/BigInt

@munificent @leafpetersen – might could be a language request?


Show GRT training errors in the GUI.

e.g. can't train a DTW (w/ null rejection) on only one sample.

Hopefully this commit (https://github.com/damellis/ESP/commit/f5fedfacc317aa66cf912dcaab68eecd362eec47) fixes this. I've only tested for "no samples" case. Not sure the behavior for a DTW training.


Geospatial support

xref https://github.com/nyurik/leaflet-vega https://github.com/vega/vega/issues/1212

We have basic support now in ibis-vega-transform


Announce 'Fundamentals of Developing Secure Software' edX course

Let's announce the 'Fundamentals of Developing Secure Software' as an offering branded by OpenSSF. Steps include the following:

Identify how we will expose the course on the OpenSSF website (work with Best Practices WG)
Review plan with the TAC for a technical decision (content and website exposure)
Review plan with the GB for OpenSSF decision on OpenSSF branding.

Adding some timelines:

Sept 14 - discussion in Best Practices WG
Week of Sept 14 - vote from Best Practices WG
Sept 22 - Best Practices WG brings proposal to TAC

Open question:

Does GB also need to vote on use of OpenSSF brand for edX course?

Process:

Working group to decide
TAC to review along with other wg charters

No extra process needed.

Created an issue to review the communications plan at an upcoming strategy meeting, ideally 9/28.
https://github.com/ossf/gb-strategy-committee/issues/16

edX Course announced via the press release & blog on Oct 29:
Press Release: https://openssf.org/press-release/2020/10/29/open-source-security-foundation-announces-education-courses-and-participation-initiatives-to-advance-its-commitment-to-securing-the-worlds-software-infrastructure/
Blog: https://openssf.org/blog/2020/10/29/announcing-secure-software-development-edx-course-sign-up-today/


Extend to work with the new dependency injection extension from Microsoft

The AddSwashbuckle extension method to be used on start up depends on working with IWebJobsBuilder. However, this doesn't work with the new dependency injection extension released from Microsoft. It comes with IFunctionsHostBuilder.
Can we add another extension to allow it to work with the IFunctionsHostBuilder? I'm happy to discuss the approach and raise a PR if you are open to a contribution.

@prabuw
Thank you for the report.
I add an extension method to IFunctionsHostBuilder.

Hi @prabuw . Thank you issue.
IFunctionHostBuilder is Azure Functions DI point.
But it is not support AddExtension extension method.
https://github.com/yuka1984/azure-functions-extensions-swashbuckle/blob/master/src/AzureFunctions.Extensions.Swashbuckle/AzureFunctions.Extensions.Swashbuckle/SwashBuckleStartupExtension.cs#L19
if IFunctionsHostBulder support AddExtension method, I can support it.

My workaround for this is as follows (v1.4.4):
    public class Startup : IWebJobsStartup
    {
        public void Configure(IWebJobsBuilder builder)
        {
            builder.AddSwashBuckle(Assembly.GetExecutingAssembly());
            Configure(new FunctionsHostBuilder(builder.Services));
        }

        private static void Configure(IFunctionsHostBuilder builder)
        {
            // register other services here
        }
    }

    internal class FunctionsHostBuilder : IFunctionsHostBuilder
    {
        public FunctionsHostBuilder(IServiceCollection services)
        {
            var serviceCollection = services;
            Services = serviceCollection ?? throw new ArgumentNullException(nameof (services));
        }

        public IServiceCollection Services { get; }
    }


How you run expreriments with batch size 1024 on a Single RTX-2080Ti

Hello, I'm curious about how to train with a batch size of 1024 on a single 2080Ti. Because when I use a batch size of 256 on a 32GB V100, it consumes 28GB of GPU memory. Do I miss any details?

Hello!
This could be a typo that comes from when we switched to a100s in the camera-ready version of the paper. You should be able to reproduce most of the results even with a smaller batch size, what you might lose is a bit of generalization power. If possible, use a larger GPU.


Horizontal scrolling

Is it possible?

sorry for replying lately, the plugin support Horizontal scrolling now.

Thank you!


Feature: Adding a testimonial section

Feature description
I would like to add a new testimonial section as it would be able to influence the  visitors.
The section would praise and cover various features of the website and thus increase the reach of website.
👀 Have you spent some time to check if this issue has been raised before?

[X] I checked and didn't find similar issue

🏢 Have you read the Code of Conduct?

[X] I have read the Code of Conduct

Please assign this project to me. I will fix the issue

I will implement a mechanism for collecting testimonials from users and storing them in a database or another suitable storage solution. Users will have the option to submit their testimonials, which can include their name, photo, and a description of their positive experiences with your project. Testimonials will be displayed in a structured and dynamic format, allowing visitors to scroll through and read the testimonials easily.
Please assign this to me under GSSOC


Update tutorial-three-javascript.md

In receive_logs.js if the message content is undefined then it leads to a exception.
To handle it gracefully check if the content exists before converting the  msg.content.toString()

@srinivasrk Please sign the Contributor License Agreement!
Click here to manually synchronize the status of this Pull Request.
See the FAQ for frequently asked questions.

@srinivasrk Thank you for signing the Contributor License Agreement!

Thanks. This tutorial uses non-blank values but it wouldn't hurt to be a bit more defensive. Can you please update the runnable version repo first?

More details :
Unhandled rejection TypeError: Cannot read property 'toString' of undefined
    at Promise.all.then (C:\Citilogics\rabbitmq_examples\exchanges\receive.js:25:47)
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:188:7)
From previous event:
    at amqp.connect.then (C:\Citilogics\rabbitmq_examples\exchanges\receive.js:13:24)
    at C:\Citilogics\rabbitmq_examples\node_modules\amqplib\lib\connect.js:162:9
    at succeed (C:\Citilogics\rabbitmq_examples\node_modules\amqplib\lib\connection.js:274:5)
    at onOpenOk (C:\Citilogics\rabbitmq_examples\node_modules\amqplib\lib\connection.js:253:5)
    at C:\Citilogics\rabbitmq_examples\node_modules\amqplib\lib\connection.js:166:32
    at C:\Citilogics\rabbitmq_examples\node_modules\amqplib\lib\connection.js:160:12
From previous event:
    at Object.<anonymous> (C:\Citilogics\rabbitmq_examples\exchanges\receive.js:12:4)
    at Module._compile (module.js:643:30)
    at Object.Module._extensions..js (module.js:654:10)
    at Module.load (module.js:556:32)
    at tryModuleLoad (module.js:499:12)
    at Function.Module._load (module.js:491:3)
    at Function.Module.runMain (module.js:684:10)
    at startup (bootstrap_node.js:187:16)
    at bootstrap_node.js:608:3

Because msg has the following data
{ consumerTag: 'amq.ctag-RaX3P5IMpTolTVq0nQmzqQ' }

Thanks. This tutorial uses non-blank values but it wouldn't hurt to be a bit more defensive. Can you please update the runnable version repo first?

Yes. I will do that


unable to create folder and writing file only on andriod sdk 27 Oreo ?

i have requested permissions and allow permission request on oreo andriod and
i tried to create folder in the root of internalstorage using getExternalStorageDirectory() and Directory.create(). but folder is not created (no file access)
while this code works finely on other andriod versions below sdk 27.
my flutter doctor:
[!] Android toolchain - develop for Android devices (Android SDK 28.0.3)
    X Android license status unknown.
[√] Android Studio (version 3.2)
[√] VS Code (version 1.29.1)
[√] VS Code, 64-bit edition (version 1.26.1)
[√] Connected device (1 available)

! Doctor found issues in 1 category.

help me find solution
@iampawan @tensor-programming @PoojaB26

it'snot about flutter but it's worth mentioning i think
there was a mistake in android sdk<26 (8.0) related to premissions
link : https://developer.android.com/about/versions/oreo/android-8.0-changes#rmp
Prior to Android 8.0 (API level 26), if an app requested a permission at runtime and the permission was granted, the system also incorrectly granted the app the rest of the permissions that belonged to the same permission group, and that were registered in the manifest.

Yeah i am having smae issue only on oreo
If anyone find solution kindly reply.
On Thu, 22 Nov 2018, 2:45 pm Kirolous Nashaat<EMAIL_ADDRESS>wrote:

it'snot about flutter but it's worth mentioning i think
there was a mistake in android sdk<26 (8.0) related to premissions
link :
https://developer.android.com/about/versions/oreo/android-8.0-changes#rmp
Prior to Android 8.0 (API level 26), if an app requested a permission at
runtime and the permission was granted, the system also incorrectly granted
the app the rest of the permissions that belonged to the same permission
group, and that were registered in the manifest.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/flutter/flutter/issues/24619#issuecomment-440962969,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AfKeGJogBLeZznydqLMSEo6qbzZuS0_kks5uxmtAgaJpZM4YtWTr
.

Requesting permissions is not provided by Flutter. If you use a plugin, please raise the issue there.

i have requested permission using https://pub.dartlang.org/packages/permission . accepted it on runtime but not create folder in oreo. and i have accepted my andriod licenses.
@zoechi @raveesh-me @iampawan @ianloic @KirolousNashaat

i have requested permission using https://pub.dartlang.org/packages/permission . accepted it on runtime but not create folder in oreo. and i have accepted my andriod licenses.
@zoechi @raveesh-me @iampawan @ianloic @KirolousNashaat

Same as i said ,, this library only request READ access when u use PermissionName.Storage
this code is from the library :
case "Storage": result = Manifest.permission.READ_EXTERNAL_STORAGE; break;
it only request read ,, and u write access to create folder ofc


Permission denied, errno = 13

Hello!
I started to use https://pub.dev/packages/linux_serial this package, but after I run on Android 11 mobile and called the below function I got an error.
final ports = SerialPorts.ports; print(ports);
Error:
Directory listing failed, path = '/sys/dev/char/' (OS Error: Permission denied, errno = 13)
Stack:
#0      _Directory._fillWithDirectoryListing (dart:io-patch/directory_patch.dart:42:24)
#1      _Directory.listSync (dart:io/directory_impl.dart:243:5)
#2      SerialPorts.ports (package:linux_serial/src/linux_serial.dart:581:7)
#3      _MyHomePageState._incrementCounter (package:usb_serial_test/main.dart:37:31)
#4      _InkResponseState._handleTap (package:flutter/src/material/ink_well.dart:1005:21)
#5      GestureRecognizer.invokeCallback (package:flutter/src/gestures/recognizer.dart:198:24)
#6      TapGestureRecognizer.handleTapUp (package:flutter/src/gestures/tap.dart:613:11)
#7      BaseTapGestureRecognizer._checkUp (package:flutter/src/gestures/tap.dart:298:5)

I got the same error, when I used these packages: https://pub.dev/packages/libserialport , https://pub.dev/packages/flutter_libserialport
What kind of permission should I grant?
Thank you in advance!
Flutter version:
Flutter 3.0.0
Framework • revision ee4e09cce0 (8 months ago) • 2022-05-09 16:45:18 -0700
Engine • revision d1b9a6938a
Tools • Dart 2.17.0 • DevTools 2.12.2

For listing the serial ports, read access to /sys/dev/char is required. You can try running chmod ugo+r /sys/dev/char with root permissions to grant everyone access to that folder. Though that may be a security problem. There's probably a reason why android doesn't grant the permission by default.
If you know the path of the serial port device, you can also try creating the serial port directly:
final port = SerialPort('/dev/ttyUSB0', 0, 0, '');

To read & write the serial port, you also need read&write access to the device node, so (in the example above) read & write permissions to /dev/ttyUSB0


Fix regex for multi-dimensional arrays

Hello!
This PR adds the support for multi-dimensional array as a type.
Tested with https://github.com/rogerbarton/breathe, dev branch.

Hey thanks for the PR!
I think this is technically a Jagged Array instead of a Multi-dimensional Array. But that's not so important.

Thanks for the quick merge :)
I have an off-topic question. Currently your dev branch of Breathe itself is behind master but has fixes for C# too. Do you plan to merge your work to official Breathe repo? :)

I think most important changes are merged into the upstream. I don't think I will merge the current changes because I'm not really up to date with the code.

Okay :) I'll stick to using your fork then. Currently upstream's Breathe crashes with C# enums ^^

Oh that should be fixed. Unfortunately I'm don't have much time to look at it at the moment :(

I'll try to find time as well and help you if you need ;)


feat: Add support for Polars DataFrames as an alternative to Pandas DataFrames

Is there an existing issue for this?

[X] I have searched the existing issues

Is your feature request related to a problem? Please describe.
As a user of the jquants-api-client-python library, I would like to request the addition of support for Polars DataFrames as an alternative to the current implementation that returns Pandas DataFrames. Polars is a fast DataFrame library implemented in Rust and Python and has been gaining popularity among users for its performance benefits.
By providing support for Polars DataFrames, users can choose between Pandas and Polars based on their preferences and use case requirements. This added flexibility will cater to a wider range of user needs and improve the overall user experience of the jquants-api-client-python library.
An example of how Polars support could be implemented is as follows:
import jquantsapi

my_mail_address = "*****"
my_password = "*****"
cli = jquantsapi.Client(mail_address=my_mail_address, password=my_password, dataframe_lib="polars")

pl_df = cli.get_prices_daily_quotes(
    start_dt=datetime(2022, 7, 25, tzinfo=tz.gettz("Asia/Tokyo")),
    end_dt=datetime(2022, 7, 26, tzinfo=tz.gettz("Asia/Tokyo")),
)

In this example, pl_df would contain the data in a Polars DataFrame format instead of a Pandas DataFrame.
Thank you for considering this feature request. Adding support for Polars DataFrames will enhance the jquants-api-client-python library's flexibility, allowing it to cater to a broader range of user needs and preferences.
Describe the solution you'd like.
No response
Describe an alternate solution.
No response
Anything else? (Additional Context)
No response

I personally prefer separation based on class rather than parameter to keep code simple.


Fix PooledChannelConnectionFactory#publisherConnectionFactory configuration

There is a little bug in PooledChannelConnectionFactory that this PR aims to fix.
When we create a new instance of PooledChannelConnectionFactory it's also creates an another instance to populate publisherConnectionFactory, but to do this the method PooledChannelConnectionFactory#setPublisherConnectionFactory  is used and it sets defaultPublisherFactory = false, so all configurations after that will not affect the publisherConnectionFactory causing a misconfiguration for those that wants to use the publisherConnectionFactory;

@LeonardoFerreiraa Please sign the Contributor License Agreement!
Click here to manually synchronize the status of this Pull Request.
See the FAQ for frequently asked questions.

Thanks; if you had run ./gradlew check with before committing, the updateCopyrights task would have fixed the dates; please change to 2020-2022 and consider adding your name to the author list. You can just push another commit and we'll squash during the merge.

Thanks for the contribution; merged as 909ba571bb096ed8acf77fed43e944f7b8ebb471 and cherry-picked to supported branches.
In future, please limit commit comment first line to 50 chars and code lines to 120 chars.
Thanks again.

Thanks @garyrussell 🙂


Ensure Jenkins project still working after removal of bundle id + .plist files

Steps:
Remove bundle id from .xcodeproj file. Then remove sensitive fields from info.plist and keys.plist files.
Add step to Jenkins project to copy over files and properties from the open source repo
test to make sure build still works

Update: build still green after updates, closing issue.


mprotect graph has huge "_mprotect" section

We noticed a bump in RSS usage around the time we profiled the process for 'mprotect' event. The majority of the graph was filled with just a "mprotect" function call. What do we make out of it?

Use --cstack dwarf to get stack traces below mprotect

For new profiles

Thanks @krzysztofslusarski for the reply.
As per @apangin suggestions, I have enabled "--cstack dwarf", after which I see the following.  Any pointers on how to read this?

The graph shows that the most native allocations happen during JIT compilation and when cleaning up previously JITted code. This is not yet a sign of a memory leak. If this code leaks, this will mean a JVM bug (there were such bugs in the past).
Did you try nativemem profiling?
https://github.com/jvm-profiling-tools/async-profiler/blob/malloc/README.md#finding-native-memory-leaks

@pmaru10
Can you paste the output from native memory tracking (summary) when you have high RSS?
Can you paste your JVM arguments and java version?

The original question seems to be answered.
Closing the issue in the absense of further feedback.


Package Solution Fails to add assembly

Hi,
I'm currently working on automating a large Dynamics deployment. We are manually unpacking multiple solutions and housing them in VSTS. I've added the VSTS tooling and we're trying to leverage it to package the solution up and publish it to a nuget feed.
The issue comes up when I try to have the solution be packaged. I created a project that has a structure similar to this
ProjectSolution.csproj
-> SolutionMapping.xml
->solutionfolder
---> [all the solution contents/xml/etc]
When I use the packager I point it to solutionfolder as the location of the solution definition. I do this by referencing the $(build.source)\ProjectSolution\solutionfolder as the input for the Pack command. It seems to run fine until it gets to the RootValidation bit during the packaging where I get the following error:
Following objects, required by the solution, are not present. /n/r  Type='PluginAssembly', Id (or schema name)='PluginAssembly-Crm.Solution.Plugins, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=be6b1fd5164e4b48'.
/n/r Please do a dependency check on your solution prior to exporting, add the missing objects to your solution and re-export/n/r
Error occurred during execution of plugin 'RootComponentValidation': RootComponent validation failed.
Now I have seen (through publishing the entire folder structure and contents) that all the files are in place, including the plugin assembly. And the SDK's solutionpackager works fine even when I download the artifacts and reference that structure.
So what is the VSTS package doing differently from the solutionpackager.exe, and how can I troubleshoot this further?

@alex-ries  The VSTS task is using the solutionpackager.exe internally. Do you pass a mapping file? If so ensure the mappings are linking the plug-in files correctly (i.e. to correct bin directory release/debug) depending configuration.
This is the main powershell script that gets executed. I would suggest to pull the latest version of source locally into a different folder, build your plug-ins using same configuration as build and then run the script. You can debug the script if needed.

I think I know what the issue is here: it looks like the 8.2 solutionpackager does not work on a 9.0 solution :)
So I guess my request/question is: what is the timeline on getting a 9.0 (maybe a preview version???) up? It looks like this particular SDK tool behaves in the same way in terms of parameters and simply replacing the executable "works on my machine."
Alternatively I guess I could leverage the scripts as they are and package them up and publish it internally to be used. If you have some steps for how to integrate that in to VSTS that'd speed things up, otherwise I can figure that out myself as well. Preferably I'd just use the VSTS tools :)

@alex-ries Yes version 9 is on the plan. Good to already see interest in DevOps on V9. The V9 exe should work with V8 so that would have been simple change but it is still in preview so may break existing functionality for some users. I am currently considering whether to release another extension for V9 or provide another version of the tasks inside the existing extension.
If you need something urgently I would suggest you use the script I shared, otherwise would be good to have someone using V9 that can provide feedback on the updates :)

I forked the solution and upgraded the nuget packages to the <IP_ADDRESS> preview package, I also updated to nuget 4.3.0 (and updated the project file). Everything compiled OK and ping.ps1 works on the 9.0 and 8.2 environment that I tried it on. I didn't get to execute all the scripts/cmdlets.
FYI this did fix my problem :)

Excellent thanks. Will try to get this on the marketplace soon.


Remove gin

Just the first step to remove gin, now we should add logging, tracing, maybe a cache to improve the server.
We have good resource and example here https://gist.github.com/enricofoltran/10b4a980cd07cb02836f70a4ab3e72d7
Closes #20

Codecov Report

Merging #22 into master will decrease coverage by 0.21%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master      #22      +/-   ##
==========================================
- Coverage   93.54%   93.33%   -0.22%
==========================================
  Files           7        7
  Lines         124      120       -4
==========================================
- Hits          116      112       -4
  Misses          4        4
  Partials        4        4

Impacted Files
Coverage Δ

config/config.go
100% <ø> (ø)
:arrow_up:

handler/handler.go
100% <100%> (ø)
:arrow_up:

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 c681256...dcc6b2a. Read the comment docs.

Thanks @ghophp, can you review it again?


Go CLI Does No Create Action from Empty File

Ensure code property always exists even if it is an empty string

@mdeuser, ready for review.

IPG 227.

Please review.

@rabbah - What is the expected behavior when an action with no code is invoked?  Just wondering if that should also be part of this test.

there should be a test for invoking a malformed action (an empty action is considered malformed).

Test added for invoking an empty action.

IPG 237.

Rebased and merged as https://github.com/openwhisk/openwhisk/commit/51817283c204c055456646c8bfb536ab78d2fdf1.


AHRS - What does "Error identifying IMU: remote I/O error" - mean?

Stratux version:V1.6r1-eu028-us

Stratux config:
SDR

[ ] single
[X] dual

GPS

[X] yes
[ ] no
type:

AHRS

[X] yes
[ ] no

power source:  direct power supply whilst testing
usb cable:

EFB app and version: (e.g., WingX Pro7 8.6.2) not applicable
EFB platform: (e.g., iOS 9.2) not applicable
EFB hardware: (e.g., iPad Mini 2) not applicable

Description of your issue:

I have installed a GY-91 and set the pins to the Raspberry PI 3B correctly.
I open up <IP_ADDRESS> and try to set AHRS orientation but get the error "Orientation failed'
The log shows:
Error identifying IMU: remote I.O error
but I can find nothing to indicate what this actually means and if there is a solution.
Is there any documentation that might help on this error message?

Did you ever find a solution? I'm getting this now too. It was working fine a few months ago, and I changed nothing at all. I'm wondering if it's actually a hardware failure, perhaps of the MPU9250 chip.

Hello @cyoung and @jpoirier
A little off-topic, but could you please tell me, Stratux uses data from MEMS sensors that are already prepared, i.e. is sensor fusion done inside the sensor or does the fusion happen in stratux code?
For example here
https://github.com/cyoung/stratux/blob/eec0b15d4a820167b8419b4d09b05c85f7896396/main/sensors.go#L168
As far as I understand, Stratux works with two types of sensors ICM20948 and MPU9250, and they seem to contain DMP - digital motion processor.
I want to use lsm6ds3 or l3gd20 MEMS sensors.
They unfortunately don't do sensor fusion, and so I'm wondering if there is some kind of magic in the stratux code?
P.S. I program in C++, I understand a little Python, but I don’t quite understand the Go language.


Support for JDBC batch inserts

We needed support for JDBC batch inserts to enable efficient data ingestion from fast Kafka topics.
This pull request uses Spring Integration aggregators to collect up to jdbc.batch-size messages before inserting them into the database. The configuration option jdbc.idle-timeout can be used to define a timeout in milliseconds after which the collected messages are flushed to the database, limiting the maximum latency.

@oflasch Please sign the Contributor License Agreement!
Click here to manually synchronize the status of this Pull Request.
See the FAQ for frequently asked questions.

@oflasch: Nicely done. Thank you for the contribution!
Could you confirm which version of  the jdbc-sink you're using the production? I'm trying to understand whether if we need to backport this enhancement to a previous GA release.

@sabbyanandan: Thank you.
We plan to start using the sink in production in January. A backport of this enhancement to the most recent GA release would be very helpful. Please let me know if I can help.

Merged as https://github.com/spring-cloud-stream-app-starters/jdbc/commit/6b63922705a6eed6995dd449a45c29b447e925e3.
@oflasch ,
Thank you very much for the contribution.
Looking forward for more!
And yes: Happy New Year!

@artembilan ,
Happy New Year to you, too. And thank‘s for your patience!


Argument error when using rest-client-1.8.0

e.g. pry console error:
g = RDF::Graph.load('http://id.loc.gov/authorities/names/no99010609.rdf')
ArgumentError: wrong number of arguments (3 for 4)
from /home/dlweber/.rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/rest-client-1.8.0/lib/restclient/response.rb:13:in `create'

I can't reproduce this, the following is the output on my Mac:
[rdf] ruby -v
ruby 2.1.5p273 (2014-11-13 revision 48405) [x86_64-darwin14.0]

[rdf] bundle exec irb -r linkeddata
2.1.5 :001 > g = RDF::Graph.load('http://id.loc.gov/authorities/names/no99010609.rdf')
 => #<RDF::Graph:0x3fff9652706c(default)>
2.1.5 :002 > g.count
 => 96

with this bundle content:
Gems included by the bundle:
  * addressable (2.3.8)
  * builder (3.2.2)
  * bundler (1.7.9)
  * byebug (4.0.4)
  * celluloid (0.16.0)
  * coderay (1.1.0)
  * columnize (0.9.0)
  * crack (0.4.2)
  * diff-lcs (1.2.5)
  * domain_name (0.5.23)
  * ebnf (0.3.7)
  * equivalent-xml (0.5.1)
  * ffi (1.9.8)
  * formatador (0.2.5)
  * guard (2.12.5)
  * guard-compat (1.2.1)
  * guard-rspec (4.5.0)
  * haml (4.0.6)
  * hitimes (1.2.2)
  * htmlentities (4.3.3)
  * http-cookie (1.0.2)
  * json-ld (1.1.8 274934f)
  * link_header (0.0.8)
  * linkeddata (1.1.2 85dfa93)
  * listen (2.10.0)
  * lumberjack (1.0.9)
  * method_source (0.8.2)
  * mime-types (2.4.3)
  * mini_portile (0.6.2)
  * nenv (0.2.0)
  * net-http-persistent (2.9.4)
  * netrc (0.10.3)
  * nokogiri (<IP_ADDRESS>)
  * notiffany (0.0.6)
  * pry (0.10.1)
  * rake (10.4.2)
  * rb-fsevent (0.9.4)
  * rb-inotify (0.9.5)
  * rdf (1.1.10)
  * rdf-aggregate-repo (1.1.0)
  * rdf-isomorphic (1.1.0)
  * rdf-json (1.1.1)
  * rdf-microdata (2.0 6dc4c15)
  * rdf-n3 (1.1.2 a8ab4d9)
  * rdf-rdfa (1.1.5 3d27228)
  * rdf-rdfxml (1.1.3 d3422f2)
  * rdf-reasoner (0.2.1)
  * rdf-spec (1.1.5 10f5051)
  * rdf-trig (<IP_ADDRESS>)
  * rdf-trix (1.1.0)
  * rdf-turtle (1.1.5 d0b7e8d)
  * rdf-xsd (1.1.3 6ebc659)
  * redcarpet (3.2.2)
  * rest-client (1.8.0)
  * rspec (3.2.0)
  * rspec-core (3.2.2)
  * rspec-expectations (3.2.0)
  * rspec-its (1.2.0)
  * rspec-mocks (3.2.1)
  * rspec-support (3.2.2)
  * safe_yaml (1.0.4)
  * shellany (0.0.1)
  * slop (3.6.0)
  * sparql (1.1.4 b7b7873)
  * sparql-client (1.1.4 e120e27)
  * sxp (0.1.3 0b9562c)
  * thor (0.19.1)
  * tilt (2.0.1)
  * timers (4.0.1)
  * unf (0.1.4)
  * unf_ext (0.0.6)
  * webmock (1.20.4)
  * wirble (0.1.3)
  * yard (<IP_ADDRESS>)

I'll need more details about your setup. You might try cloning the rdf gem, doing a bundle install and see if you get the same results; this could result in some ruby or gem version, or platform difference.

Skipping the details and we might close this, maybe the culprit is rest-client-components, i.e.
[1] pry(main)> g = RDF::Graph.load('http://id.loc.gov/authorities/names/no99010609.rdf')
ArgumentError: wrong number of arguments (3 for 4)
from /home/dlweber/.rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/rest-client-1.8.0/lib/restclient/response.rb:13:in `create'
[2] pry(main)> wtf
Exception: ArgumentError: wrong number of arguments (3 for 4)
--
0: /home/dlweber/.rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/rest-client-1.8.0/lib/restclient/response.rb:13:in `create'
1: /home/dlweber/.rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/rest-client-components-1.3.0/lib/restclient/components.rb:16:in `call'
2: /home/dlweber/.rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/rest-client-components-1.3.0/lib/restclient/components.rb:136:in `execute'
3: /home/dlweber/.rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/rest-client-1.8.0/lib/restclient/request.rb:41:in `execute'
4: /home/dlweber/.rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/rest-client-1.8.0/lib/restclient/resource.rb:51:in `get'

Migrated this to https://github.com/crohr/rest-client-components/issues/8

By adding rest-client-components to the gem, and requiring restclient/components, I can reproduce the error.

Dang.  caching works with rest-client 1.7.3, but fails with 1.8.0; there's a vulnerability with 1.7.3.  As you might guess, we are using rest-client-components in order to use rack-cache with rest-client;  and we want to use rest-client v1.8.0 to avoid a vulnerability with cookies:  ("session fixation vulnerability via Set-Cookie headers in 30x redirection responses")
It appears the signature for RestClient::Response.create changed from 3 args to 4 with the upgrade to 1.8.0
https://github.com/rest-client/rest-client/commit/c215b22bdbcb988dcc40117ff45432b0db25175b
And this line is where it is a problem in the RDF gem:
https://github.com/ruby-rdf/rdf/blob/develop/lib/rdf/util/file.rb#L77
I was able to reproduce with a few lines from the self.open_file method (and yes, using rest-client-components gem):
[1] pry(main)> base_uri = "http://www.w3.org/ns/oa-context-20130208.json".to_s
=> "http://www.w3.org/ns/oa-context-20130208.json"
[2] pry(main)> client = RestClient::Resource.new(base_uri)
=> #<RestClient::Resource:0x007f9597228d80 @block=nil, @options={}, @url="http://www.w3.org/ns/oa-context-20130208.json">
[3] pry(main)> client.get({}) do |response, request, res, &blk|
[3] pry(main)*   p response.code
[3] pry(main)* end
ArgumentError: wrong number of arguments (3 for 4)
I confess I got confused after this point.

Okay, thanks. It sounds like doing some runtime version checks for rest-client, and rest-client-components may be necessary to ensure that we use the appropriate yield signature.

See https://github.com/crohr/rest-client-components/pull/9 for a fix to the rest-client-components issue.


Remove dosctring checker from pre-commit

It's nice, but it's a bit overkill. It'll still be on Nox.

#81

Related to:

#109
#105


HW  Activity 03.10.16

https://github.com/qerlly/ActivityE

Bad solution override method onKeyDown. Use flags https://developer.android.com/reference/android/content/Intent.html#

Remade https://github.com/qerlly/ActivityE/commit/a5bd18132106c3a87e61bdc32334f4e156d8986d

ok


Improve Makefile to ease debugging

Add the ability to override variables in Makefile for debugging purposes. This is done including (when available) an additional Makefile.override file.
Also, refactor the operator Dockerfile to remove fixed paths and rely on the ones defined in Makefile.defs, just like we do for the agent Dockerfile.

Runtime test (privileged) failure tracked in https://github.com/cilium/cilium/issues/26233, rerunning

/test


Fixes TypeError in DJANGO 1.8

Fixes Error in DJANGO 1.8.
settings.STATIC_ROOT defaults to None in that version resulting in an error when attempting to make JS_ROOT:
File "C:\\env\lib\site-packages\tinymce\settings.py", line 21, in <module>     JS_ROOT = getattr(settings, 'TINYMCE_JS_ROOT',os.path.join(settings.STATIC_ROOT, 'tiny_mce'))   File "C:\\env\lib\ntpath.py", line 64, in join     result_drive, result_path = splitdrive(path)   File "C:\\env\lib\ntpath.py", line 114, in splitdrive     if len(p) > 1: TypeError: object of type 'NoneType' has no len()
This fixes issue #115

Also fixes #106

we should not set any settings outside settings.py - it may break another apps, which depends on settings.STATIC_ROOT and check is it None or not...

Can you check that this was fixed with: https://github.com/aljosa/django-tinymce/commit/a362a86ad8f733a7209889f8d6c08118d937bfa3


[DataLoader2] Skip wrapping if serialization wrapper attached & deepcopy DataPipe in load_state_dict

Per title

We don't need to attach serialization wrapper if the last DataPipe has been _DataPipeSerializationWrapper
When we load_state_dict, we still need a copy of self.datapipe as it has been done in __init__ function. We should align the behavior of load_state_dict and __init__

Either deepcoy to self._datapipe_before_reading_service_adapt
Or skip deepcopy to self._datapipe_before_reading_service_adapt at those two places.

LGTM! Question: do we expect any case where the datapipe being passed in already has a wrapper?

It's more like a future proof. (Technically, if users manually deserialize the DataPipe state, the returned DataPipe is wrapped by the wrapper.


Community calls to team meetings

Not the meetings page looks nice but I think still https://coderefinery.github.io/calendar/ needs to be edited for the community call calendar

Thanks! Looking ...

You keep committing changes to uikit though. Maybe we need to move away from submodules or something in your IDE (?) needs to be changed? I will fix this one.

I am working on fine-tuning. Later I also want the times to show in local timezone but I will fix that in a separate PR.


Can't open CPACS configuration

Hello everybody, this is my first time writing here so I hope that this kind of topic is okay.
My problem is that my MATLAB won't open a CPACS configuration using the function 'tiglOpenCPACSConfiguration' and will always return me this error: '
Error: "tiglOpenCPACSConfiguration" returned code 11'
As I am relatively new to programming I cannot understand what this error means and so I have no idea what to do.
This is the really simple MATLAB script that doesn't seem to work:
cd(pwd)
IN_file=strcat(pwd,'\Database.xml');
tixi_h=tixiOpenDocument(IN_file);
tiglHandle = tiglOpenCPACSConfiguration(tixi_h, '');

Hi,
the error code 11 means "Wrong CPACS Version", see here:
https://github.com/DLR-SC/tigl/blob/cpacs_3/src/api/tigl.h#L66
You are probably trying to open a cpacs 2 file with tigl 3. This won't work, therefore the error message.
You either need TiGL 2 to open this file, or convert the CPACS 2 file to CPACS 3 using our tool cpacs2to3: https://github.com/DLR-SC/cpacs2to3
If you need more advice, don't hesitate to ask.

Thank you very much, I was able to run the script by downgrading tixi to a 2.x version.
I would also like to thank you for linking me the explaination of the error codes so now I will be a little bit more able to solve them by myself in the future.
You have been a great help!


branch-2.1: fix fixed an issue with be computing constants #43410

Cherry-picked from #43410

Thank you for your contribution to Apache Doris.
Don't know what should be done next? See How to process your PR.
Please clearly describe your PR:

What problem was fixed (it's best to include specific error reporting information). How it was fixed.
Which behaviors were modified. What was the previous behavior, what is it now, why was it modified, and what possible impacts might there be.
What features were added. Why was this function added?
Which code was refactored and why was this part of the code refactored?
Which functions were optimized and what is the difference before and after the optimization?

run buildall

run p0


generated path template functions should not return error

The path template functions (e.g. LogPath in logging) return (string, error). But the only source of error is a missing value in the map, which is impossible by construction. So these functions should return string, and panic if PathTemplate.Instantiate returns an error.

Resolved in #132