Wrong layout

Input C/C++ Header
#pragma pack(push)
#pragma pack(1)
struct S5 {
   signed f0 : 11;
   unsigned f1 : 12;
   unsigned f2 : 23;
};
#pragma pack(pop)

Bindgen Invocation
$ bindgen failing.h -o failing.rs

Actual Results
While running bindgen we get:
ERROR:bindgen::codegen::struct_layout: Calculated wrong layout for S5, too more 2 bytes

but the output is created nonetheless:
[repr(C)]
#[derive(Debug, Copy)]
pub struct S5 {
    pub _bitfield_1: [u32; 2usize],
    pub __bindgen_align: [u8; 0usize],
}

Then when running the tests:
---- bindgen_test_layout_S5 stdout ----
        thread 'bindgen_test_layout_S5' panicked at 'assertion failed: `(left == right)`
  left: `8`,
 right: `6`: Size of: S5', failing.rs:11:4

Expected Results

Dupe of https://github.com/rust-lang-nursery/rust-bindgen/issues/537. Thanks for the report!


chore(main): release github-repository 0.2.0

:robot: I have created a release beep boop
0.2.0 (2024-03-02)
Features

github-repository: use squash merge instead of a merge commit to maintain a clean git history (#3) (54034f0)

This PR was generated with Release Please. See documentation.

:robot: Release is at https://github.com/mateusz-uminski/terraform-service-modules/releases/tag/github-repository-v0.2.0 :sunflower:


Register XRServer as a singleton earlier.

Register XRServer as a singleton earlier so it is accessible in GDExternals where it is needed
When XRInterfaces are implemented as a GDExternal, interfaces have to be registered with the XRServer. This is currently not possible as the singleton is not registered in time.
This PR changes this HOWEVER DO NOT MERGE THIS
This is a temporary solution to get around this problem for people who are currently building and testing such externals. Discussions within the core team so far have gone down the path that this method of solving this is unwanted. Singletons are registered late due to inter-dependencies between the various servers.
Also the current methodology Godot has for XRInterfaces stems from the limitations in Godot 3. There is actually no need to register interfaces this early on and we can prevent instancing interfaces until they are actually needed now that GDExternals properly register classes in the ClassDB.
We can do away with this solution and instead levy the ClassDB solution.

Alternative solution that works with the current approach is showcases in https://github.com/GodotVR/godot_xr_reference
In the XR reference we're using an autoload script to finalise instancing and registering the interface with the XRServer at the opportune moment.


fix: update property indexes in parse_fd_embedded_json_attachments() …

…(#729)

Sorry for direct editing of test input, but it did not contain attachments in any thread, so I've dragged in a piece of raw data from one of my test accounts.

Looks good to me.
Add the fix to the changelog and bump the version too? :smile:


LayoutMode not exported in Editor

Godot version
v4.1.stable.official [970459615]
System information
Godot v4.1.stable - Windows 10.0.22621 - Vulkan (Mobile) - dedicated NVIDIA GeForce GTX 1050 (NVIDIA; <IP_ADDRESS>67) - Intel(R) Core(TM) i5-8300H CPU @ 2.30GHz (8 Threads)
Issue description
The enum for layout_mode is not exported into the Editor. For example, if I have a Label:
label.layout_mode = LAYOUT_MODE_POSITION

I get the error:
Identifier "LAYOUT_MODE_POSITION" not declared in the current scope.

That enum is defined here.
Note also that you can get the following errors trying to access it:
Identifier "LayoutMode" not declared in the current scope.

And:
Cannot find member "LayoutMode" in base "Control".

Steps to reproduce
See above
Minimal reproduction project
N/A

That property is internal, not for use in scripting

I'm not sure, but this is specifically for use in the editor, probably with a combination of the different methods in Control like set_*_preset

You can set the anchor preset via set_anchors_preset but it is ignored if you don't set the layout_mode to LAYOUT_MODE_ANCHORS.
You can do some testing with:
printt(a.layout_mode, a.anchors_preset)
a.set_anchors_preset(Control.PRESET_BOTTOM_LEFT)
printt(a.layout_mode, a.anchors_preset)

where a is a Control node. If you set via the Inspector its layout_mode to LAYOUT_MODE_ANCHORS, set_anchor_preset works, but otherwise not. Therefore I think we need a way to set the layout_mode via code.

Therefore, how can I set the layout mode of a node from a script?

layout_mode is a "fake" property, it's evaluated from other properties and the control's parent. This property was added mostly to make it easier for users to understand the system of anchors, containers, and size flags. See #69860.

I still think that my idea would simplify code, for example, when creating a custom complex node for a plugin. The children nodes have to be instantiated via code and therefore their layout_mode being available from code would simplify things.
I though to use the layout_mode first on the plugin I'm doing now, but I ended up using a HBoxContainer. Containers have some advantages, but it also requested me to use custom_minimum_size for children nodes, creating some bugs when resizing from the editor viewport (can't shrink nodes once they have been stretched, using size would solve this, but it cannot be done in a container).

There is no "layout mode" as a state of a node. It's an editor-only helper, as mentioned above. There is no behavior associated with it other than editor-only logic that makes sure things are properly restricted in the UI.
So it should not and could not be used to control how node's properties are set.

when creating a custom complex node for a plugin. The children nodes have to be instantiated via cod

That's not correct. You can instantiate custom scenes, configured in the editor, when adding UI to your plugin. You don't need to create anything in code.

@YuriSizov I might be mistake, but I feel like this is kind of is a stance of just forcing down the throat of the community to do it the way that Godot intends it to be used.
Let's say I am implementing a plugin that is used for tooltips. I'd like the user to be able to child a control node and in the editor easily see that the mouse_entered & mouse_exited are on top of the control based upon the size.
It would look something like this:
| TextureRect2
  -> TooltipPal

This functionality is very easy in the editor, just set layout mode as anchors and anchor to be full rect.
The option that sounds to be given from your advice, is to simply create a custom scene with the gdscript of the custom node type is added to the child. The issue is the user in the editor won't see this at all.
This leads us down the rabbit hole using @tool to basically hack this into the editor via resizing based upon the parent size() and such. This is really silly.

This isn't an opinion, it's how it works, it's not a real property and doesn't work, you are free to open a proposal to change this, but it's not a bug, it's simply not something that works this way and it isn't designed to be used by scripts, and was intended to not be accessible to code like this, but it is due to an issue in the way properties are exposed, as already explained
Please be constructive and don't accuse people of things that aren't true, this isn't something "forced" on anyone

@AThousandShips I am removing my original comment as I don't feel safe continuing the discussion after describing the feeling of stance and then being accused of accusing others of things that weren't being said.
I will keep this in mind moving forward, and any modification of code behaviour, even just simply continuing a discussion about the existing, will be moved to proposals instead.

Now you're accusing me of accusing you... Yes let's just move on


SQL-like Expression Language for patterns

In a discussion with a colleague, were I was showcasing quamina, he asked whether the quamina authors considered SQL(-like) expressions instead of JSON patterns, e.g. using CloudEvents SQL Expression Language.
Example:
// input event
{
    "source": "commerce.mysource.example.com",
    "type": "order.created",
    "id": 123
}

// quamina pattern to match on source prefix and type set
{
    "source": [{"shellstyle": "commerce*"}],
    "type": ["order.created", "order.updated", "order.canceled"]
}

// equivalent cesql expression
cesql: "source LIKE 'commerce*' AND type IN ('order.created', 'order.updated', 'order.canceled')"

Without reading the quamina pattern match specification, SQL-like expressions generally are more readable and explicit, e.g. AND. Also, SQL is a widely used and accepted standard, lowering the bar for adopters.
Note that a SQL-like dialect does not have to replace the existing JSON pattern match implementation, but could augment it.

Doesn't sound crazy.  Empirically, the groups using Quamina's big sister inside AWS seemed to like the pattern language, basically 100% of our complaints were about wanting new matching features and smaller memory size. To be honest, I have no opinion, we thought the pattern language up in a hurry.
The easiest way to do such a thing would be translate the SQL-style language into the existing pattern language?  But it doesn't sound too horribly difficult to go directly from SQL-like language to the underlying Quamina finite automata.

Hi, I'm that colleague. I don't have a strong feeling about whether there's an IR (intermediate representation) which looks like the current language, or whether the direct interface is the SQL pattern builder. If SQL were not quite so common, I might suggest the IR as a better choice so that people could build simple UIs exposing the match patterns, but it's probably equally easy to take that UI and build a SQL pattern at this point.
One interesting question between SQL and IR is whether or not the Quamina implementation stores and can return the SQL representation, or whether it's an input convenience which is discarded on storage.
Note that a SQL representation may also lend support for more complex "OR" queries, like source = 'billing.invoice.po' OR (source LIKE 'billing.*' AND value > 10000.0 ) (to find interesting audit items). I don't know if that's desired or not.

Incidentally I have a side project which compiles a SQL SELECT statement from a Quamina pattern. The target database should have an inverted-index-style table (with branch+values).

Hmm. At runtime, nothing exists but the compiled DFA structure starting at the coreMatcher type.  The current pattern language and a hypothetical SQL-like expression are probably about equally removed from it.  @jsmorph has been working on a pattern store which remembers the patterns that have been compiled in - there's no architectural reason why such a store couldn't remember a query-language expression.
Quamina's big sister, the implementation inside EventBridge, SNS, etc, recently grew a way to express "OR".  My initial reaction is to dislike it but there's plenty of room to discuss there.  There's nothing architectural about the compiled automaton that gets in the way of OR.

Just to be clear, my priorities going forward are going to be adding to the set of supported Patterns for Quamina, and improving its efficiency.  But if anyone else wanted to design and propose an SQL-like query language I'd be supportive and be inclined to include it.


Add support for the Map iterable type in the entries function

This PR adds support for Map objects for use with the entries function, and makes use of the Object type helpers (keys, entries, fromEntries) in several places where it seemed appropriate, and improved some type safety in areas impacted by the change.

Thanks @brandonmcconnell.  To fix the linting errors, running pnpm format should do the trick.
Regarding the Vercel build failure, it's due to the usage of $lib/types/typesHelpers.js.  It's usually best to no use $lib within src/lib (just src/routes).  I try to just use relative paths (../types/typeHelpers.js, etc).  Also helps with no importing from an index.js by accident and breaking tree shaking.

@techniq Made those few improvements, and all tests still run successfully:

Change all absolute $lib refs under src/lib to relative (e.g. ..)
Run pnpm format
Replace index imports with specific file imports where appropriate


Add support for new string interpolation syntax

See ceylon/ceylon#7243.

It turns out that nesting string literals inside interpolated strings is not supported, so in spite of what the commit messages say (necessary but not sufficient, more work is necessary), I’m going to declare this done.
And just to make this issue easier to understand in the future – the syntax is: "Hello, \(name)!"

The syntax might now be "Hello, \{name}". Let’s keep this issue open until eclipse/ceylon#7243 itself is closed and settled :)


Ivarne/no newtonsoft

Description

Related Issue(s)

Fixes #211
Maybe too extensive fix for #345

Verification

[ ] Your code builds clean without any errors or warnings
[ ] Manual testing done (required)
[ ] Relevant automated test added (if you find this hard, leave it and we'll help out)
[ ] All tests run green

Documentation

[ ] User documentation is updated with a separate linked PR in altinn-studio-docs. (if applicable)

Closing the PR as I'm currently not working on this


Get feedback from scientific communities

At some point when the current issues have been resolved, an email should be sent out to the scientific communities related to solar radiation measurements. These could include

[ ] BSRN community
[ ] IEA PVPS Task 16
[ ] participants of the International Pyrheliometer Comparison (IPC).

Alternatively also some additional meteorological communities, e.g., GAW and AERONET.

We'd love to hear what's keeping you from using SolarStations.Org in your next study.


SetFileUpload is not working..

What is your Scenario?
Getting werired way of error for upload
await t
.switchToIframe('#SelectDocumentToUploadPopup-2 > iframe');
await t
.setFilesToUpload('#documents:upload:file', ["C:\CCC\CL30-PARKS.pdf"])
.click(atlasPage.addDocuments_btn);
This is the addDocument input view source

What is the Current behavior?

Cannot find the following file(s) to upload:
"
C
:
C
C
C
C
L
3
0
P
K
.
p
d
f
"

What is the Expected behavior?
File should be uploaded
What is the public URL of the test page? (attach your complete example)
It's internal
What is your TestCafe test code?
Getting werired way of error for upload
await t
.switchToIframe('#SelectDocumentToUploadPopup-2 > iframe');
await t
.setFilesToUpload('#documents:upload:file', ["C:\CCC\CL30-PARKS.pdf"])
.click(atlasPage.addDocuments_btn);
This is the addDocument input view source

Your complete configuration file
No response
Your complete test report
No response
Screenshots
No response
Steps to Reproduce
1.Upload document
2.
3.
TestCafe version
3.5
Node.js version
No response
Command-line arguments
npm run test:e2e
Browser name(s) and version(s)
No response
Platform(s) and version(s)
No response
Other
No response

Hello @testcafe-HK,
Please try the latest version of TestCafe. If the issue persists, please share a minimal working example so that the TestCafe team can investigate your issue in more detail.


performance / why is it running twice ...

Hey there,
contributing from my fork doesn't make sense because the structure will change to 'only the 3 dictionary files and a factory' soon.
However - let me ask some perfomance questions.
Maybe I missed something, hidden in the code, but
--> several 'autoclosure' functions run every time when a module is required.
Let's take an example - the conjugation of verbs which is used quite often.
I'll use simple console.log to demonstrate it.
In src/parents/verb/index
put some logs in the conjugate function
the.conjugate = function() {
  console.log( 'BEWARE! conjugate is conjugating' );
  verb_conjugate = require('./conjugate');
  var conjugated = verb_conjugate(the.word);
  console.log( 'conjugate result', conjugated );
  return conjugated; //verb_conjugate(the.word);
}

and in the 'autoclosure' form function
the.form = (function() {
	console.log( 'BEWARE! the.form is conjugating' );
	verb_conjugate = require('./conjugate');
	// don't choose infinitive if infinitive == present
	var order = [
	  'past',
	  'present',
	  'gerund',
	  'infinitive'
	];
	var forms = verb_conjugate(the.word);
	console.log( 'forms result', forms );
	for (var i = 0; i < order.length; i++) {
		if (forms[order[i]] === the.word) {
			return order[i];
		}
	}
})()

When I do
console.log( nlp.verb('last') );

it will conjugate
and when I do
console.log( nlp.verb('last').conjugate() );

it will conjugate twice

yeah, this is a great point.  the whole '.analysis' thing is poorly implemented. These methods auto-fire because they're used variously around the library, (in places i now forget) and i thought caching it on create was a good idea... it's probably not. The verb one is the worst one, but the other parents do it too

there was a point when i thought pos.js would just decide 'noun,verb,adj', then parent.analysis() would figure out if it was plural, acronym, past-tense, whatever. that kinda fell apart

but it is not about

caching it on create
it is about not using the cached from the beginning

the easiest fix:
after
the.word = str || '';

insert
the.conjugated = {};

change 'the.conjugate' to
the.conjugate = function() {
	if (the.conjugated) {
		return the.conjugated;
	}
	verb_conjugate = require('./conjugate');
	return verb_conjugate(the.word);
}

and the.form to
the.form = (function() {
	// don't choose infinitive if infinitive == present
	var order = [
		'past',
		'present',
		'gerund',
		'infinitive'
	];
	the.conjugated = verb_conjugate(the.word);
	for (var i = 0; i < order.length; i++) {
		if (the.conjugated[order[i]] === the.word) {
			return order[i];
		}
	}
})()

``

In general it is up to the project using nlp but usually I would rather wait 200ms more when it is loading (before starting to write) if the things done 'on keypress' are much faster ...

+1 make a pr?

maybe caching is something we should do for every method.. some kind of window.cache={} or something

Well,
then it would need a constructor/factory as well.
There is no inheritance in this project since the 'index' is a plain object and not a constructor/factory function (I think it is called constructor in AMD and factory in node modules). However - I mean
http://metaduck.com/08-module-pattern-inheritance.html ('module pattern').
And I think basically such a project should have a preprocessor and a constructor/factory.
This is what I want to achieve with the fork. This would be a 'breaking' change. E.g. instead of
var nlp = require('./nlp');
nlp.do('whatever')

it would be
var nlp = require('./nlp');
nlp().do('whatever');

Let's take an example as it is for now :
 nlp.verb('go').conjugate();

The first require ('nlp.') will "invoke" the 'index.js'.
This will require 'pos.js' and this will require the 'lexicon.js'.
The lexicon conjugates all verbs and declines all adjectives already ...
We could cache them –
but wait when I call nlp.verb('go').conjugate() the 'parents/verb/conbjugate' would not know about any other parts of the project (and not about the already cached lexicon) ...

another possibility would be to add a 'singleton' cache module like
module.exports = (function () {
    var cache = (typeof window != 'undefined') ? window.cache : require.cache;
		cache.nlp = {};

    return {
        get: function (key) { return cache.nlp[key]; },
        set: function (key, val) { cache.nlp[key] = val; }
    }
})();

ooh i vote singleton!  will you implement this?

couple thoughts:
i know hashes hash things, but does it make sense to do this?
 return cache.nlp[Md5(key)] if say, we're caching a long sentence?
lastly, if we're adding a one-liner to every method, we should make sure to write the cache to make this line as cute as possible. something like this?
    if(nlp.is_cached(str,'myfunction')){return nlp.cached(str,'myfunction')};
}```
or something even nicer, if you dream it up

it would be annoying if our cache-hit line became hard to maintain
how much faster do you think it would be, for our tests and things?

(last thing) ..... or maybe it could all be implimented in index.js?
is that where you were going?
ie, it just gets inbetween nlp and it's functions.. invisibly.

Yes - what I did is similar. It reads e.g.
nlp.myfunction(str) {
  var cached = cache.get(str, 'myFn');
  if (cached) { return cached; }
}

a comparison (not ready yet) ...

test
redaktor
original

✔ ambiguous contractions
19ms
27ms

✔ referenced by
14ms
30ms

✔ reference to
7ms
17ms

✔ referables
2ms
4ms

✔ noun.pronoun
1ms
6ms

✔ sentence.people
4ms
8ms

✔ phrasal verbs
4ms
6ms

✔ word tokenization
1ms
2ms

✔ is_person
1ms
5ms

✔ noun.article
1ms
2ms

✔ conjugate future
2ms
5ms

✔ conjugate present
2ms
5ms

✔ conjugate past
3ms
6ms

✔ verb conjugate
12ms
33ms

✔ negation
16ms
32ms

✔ to_comparative
1ms
2ms

✔ to_superlative
0ms
0ms

✔ to_adverb
3ms
10ms

✔ adverb.to_adjective
4ms
4ms

✔ sentences
2ms
2ms

✔ is_plural
0ms
3ms

✔ pluralize
3ms
18ms

✔ singularize
3ms
15ms

✔ ngram
2ms
2ms

✔ adj_to_noun
0ms
1ms

✔ dates
18ms
25ms

✔ americanize
1ms
1ms

✔ britishize
0ms
0ms

✔ syllables
3ms
2ms

✔ unicode
0ms
0ms

✔ value
6ms
11ms

✔ pos
22ms
38ms

✔ spot
11ms
17ms

WOW!

just btw:
why not make use of factories?
Functions returning functions totally avoid the duplication of code known as "spaghetti code" ;)
An example: src/section.js –
it has now 109 lines but it is the same like this 57 lines (52% code) :
// a section is a block of text, with an arbitrary number of sentences
// these methods are just wrappers around the ones in sentence.js

exports.sugar = function(type, todo) {
	if (todo === 'reduce') {
		return function(options) {
			return this.sentences.map(function(s) {
				return s[type](options);
			}).reduce(function(arr, a) {
				return arr.concat(a);
			}, []);
		}
	} else if (todo === 'transform') {
		return function() {
			this.sentences = this.sentences.map(function(s) {
				return s[type]();
			});
			return this;
		}
	} else {
		return function() {
			return this.sentences.map(function(s) {
				return s[type]();
			});
		}
	}
}

exports.Section = function(sentences) {
  //var the = this;
  this.sentences = sentences || [];

  this.text = function() {
    return this.sentences.map(function(s) {
      return s.text();
    }).join(' ');
  }
  this.tense = exports.sugar('tense');

  // pluck out wanted data from sentences
  this.tags = exports.sugar('tags');
  this.entities = exports.sugar('entities', 'reduce');
  this.people = exports.sugar('people', 'reduce');
  this.nouns = exports.sugar('nouns', 'reduce');
  this.adjectives = exports.sugar('adjectives', 'reduce');
  this.verbs = exports.sugar('verbs', 'reduce');
  this.adverbs = exports.sugar('adverbs', 'reduce');
  this.values = exports.sugar('values', 'reduce');

  // transform the sentences
  this.negate = exports.sugar('negate', 'transform');
  this.to_past = exports.sugar('to_past', 'transform');
  this.to_present = exports.sugar('to_present', 'transform');
  this.to_future = exports.sugar('to_future', 'transform');

}
module.exports = exports.Section;

i like this too. feel free to add it. nicely done.

I pushed it to the fork (renamed exports.sugar to exports.fn for pretending to be serious).
It will maybe be next weekend when I can consider the fork as not being broken anywhere
and then you'll get a clue of the whole thing.
We are merging some ideas with the redaktor translation center where anyone can propose new translations via web and things go to git automatically (to our fork first). It is similar to the Adobe Translation Center. It would be sweet if you could test your rules and regexes there directly in a fabulous editor. There are many things in the future I'll do anyway (we need this too).
As said it is WIP.
Now as said persistent decoupling of logic and shared data will further

prevent duplication
speed things up

Questions:
How do we deal with the maximum size of the cache (for now AKA memory ;) ...
Set it in the options ?
How big would a cache of the bible pos be and what would we do if it is bigger than the memory?
What would Jesus do?
My idea is to implement a cache.lock done after the factory (for the important lexicon words).
They should never be deleted. And then?

;) i'm certain jesus gave up on javascript a long time ago.
if the average vocabulary is 50k words, and each word is 5 bytes, you'd have still room left on a floppy drive, if we only cache-by-word.
that sounds like a tricky problem.

:+1: finished pushing just now. coding again.

ah - I see -
stats = 788k * 5  = 3940k ...
But the problem is that we are caching the underlying methods seperately and some have object keys as well.
Let's say the average caching hit is 7 and each word has at least + a key (2) and if we store objects it is *3
3940k * 7 * 2 * 3 = 165480k = 158MB.
Well - it doesn't sound that worse.
My Amiga 4000 would fail but the inexistent Apple Watch would succeed.
Basically I would set 256MB as a max. in options for now and disable caching if that is reached (by the typical performant "assumption" size checking, which could even run asynchronous [doesn't matter if it is assumption anyway]).
That is easy and other things can be done

please also note that browserify currently does not work in the fork because I did not code the splitting of .min and normal files and cleaning up. Doing this now.

@spencermountain I am attaching this beacause we talked about performance here and I was pretty active today (pushing tomorrow)  and now I reached 'verb/conjugate' with the comment
// this method is the slowest in the whole library, basically TODO:whaaa
function predict(w) {
	var endsWith = function(str, suffix) {
		return str.indexOf(suffix, str.length - suffix.length) !== -1;
	}
	var arr = Object.keys(suffixes);
	for (i = 0; i < arr.length; i++) {
		if (endsWith(w, arr[i])) {
			return suffixes[arr[i]];
		}
	}
	return 'infinitive';
}

It is easy to fix:
A suffix is the last 1-4 chars of the word, so it would be much faster just to check
function predict(w) {
  for (var i = -4; i < 0; i++) {
    var sliced = w.slice(i);
    if (suffixes.hasOwnProperty(sliced)) { return suffixes[sliced]; }
  }
  return 'infinitive';
}

For maximal flexibility:
Check the maximum length of the suffix keys. In the fork length will already be delivered by data module...

BONANZA!

hm - still working. Wanna have all /parents complete. Just btw - just found this snippet in reference_to :
// reverse the terms to loop through backward..
interested = interested.reverse()
for(var i=0; i < interested.length; i++){ '...' }

I would call this a bit of an anti-pattern. It is easier to do just
var i = interested.length;
while(i--) { '...' }

This is doing the same ;)

hey Sebastian, am starting a 2.0 rewrite,and will include these awesome ideas in that branch.

ok - cool.
had three hard days (ycombinator deadline) - feel free to compare the files in the fork and "cherry pick".
The 'values' are also close to complete and can now parse all the worlds measurement units (completely understandable for machines putting quantities in context). Let you know.


would you please publish OracleJDK docker image on hub.docker.com

https://hub.docker.com/r/oracle/
would you please publish OracleJDK docker image on hub.docker.com

Product licensing prevents us from publishing the JDK binaries. This is not possible.

You are Oracle , right? Oracle JDK was your self product.

Any way to ask your CEO or CTO to make some change ?
Today the cloud will be more and more popular, why not prevent us using your products?

You can check out openjdk builds in Docker.
This one  is from the company I work for:
https://hub.docker.com/r/azul/zulu-openjdk/

OpenJDK builds with Oracle Linux are also provided: https://hub.docker.com/r/oracle/openjdk/


Request public router.match()

So I've got a simple proxy that checks to see if a route exists before handing to Koa and was doing something simple like methods = routes.v1.match(path.replace(apiRoute,'')) || [];  This worked fine in 3.8.0 because the method was side effect free and didn't require a koa context.  Now in 4.x the arguments changed and it has side effects.  Granted it's a private API but I'm wondering if it's possible to have a public? version that preserves the old behavior.
Thanks!

Yeah I will separate the parameter parsing and context decoration from match()...

See https://github.com/alexmingoia/koa-router/blob/master/history.md#410 for what you want to do

this is great.  thanks so much!


telegram cli not found

hi friends :)
i have problem in run example.rb
example.rb:
encoding: utf-8
lib = File.join(File.dirname(FILE), 'lib')
$:.unshift lib unless $:.include?(lib)
require 'eventmachine'
require 'telegram'
EM.run do
telegram = Telegram::Client.new do |cfg|
cfg.daemon = '/tg/telegram-cli'
cfg.key = '/tg/tg-server.pub'
end
telegram.connect do
puts telegram.profile
telegram.contacts.each do |contact|
puts contact
end
telegram.chats.each do |chat|
puts chat
end
telegram.on[Telegram::EventType::RECEIVE_MESSAGE] = Proc.new { |ev|

}

end
end
bash:
mohammads-MacBook-Pro:telegram mohammad$ ruby example.rb
[2015-10-23 10:57:47] INFO  (Telegram::Client): Initialized
[2015-10-23 10:57:47] INFO  (Telegram::Client): Trying to start telegram-cli and then connect
sh: /tg/telegram-cli: No such file or directory
/Users/mohammad/Desktop/telegram/lib/telegram/client.rb:80:in readline': end of file reached (EOFError) 	from /Users/mohammad/Desktop/telegram/lib/telegram/client.rb:80:in block in execute'
from /Users/mohammad/Desktop/telegram/lib/telegram/client.rb:79:in loop' 	from /Users/mohammad/Desktop/telegram/lib/telegram/client.rb:79:in execute'
from /Users/mohammad/Desktop/telegram/lib/telegram/client.rb:156:in connect' 	from example.rb:14:in block in '
from /Library/Ruby/Gems/2.0.0/gems/eventmachine-1.0.8/lib/eventmachine.rb:193:in call' 	from /Library/Ruby/Gems/2.0.0/gems/eventmachine-1.0.8/lib/eventmachine.rb:193:in run_machine'
from /Library/Ruby/Gems/2.0.0/gems/eventmachine-1.0.8/lib/eventmachine.rb:193:in run' 	from example.rb:8:in '

i not found telegram-cli folder !

Please check the specified telegram daemon on cfg.daemon = '/tg/telegram-cli'

where is telegram-cli path?

Check this: https://github.com/vysheng/tg

i downloaded this url , i found tg-server.pub but not found cfg.daemon = '/tg/telegram-cli' !

Since you have downloaded it you have to compile it as executable and change the path to its location like /path/to/tg/bin/telegram-cli. Please read the README file.

you have team viewer ?


Revert "Added 3 Apps"

Reverts arpit456jain/CodingEasy#95
please run it locally first, then create a PR

Reverts #95
please run it locally first, then create a PR

but it was running


plugin: Use correct path in windows env

Crashed for me, and I noticed that in windows env, the pip and pyls bins are located in a folder named Scripts

Many thanks for fixing this :)


Oragono build error

github.com/oragono/oragono imports
github.com/oragono/oragono/irc imports
github.com/goshuirc/irc-go/ircmatch: cannot find module providing package github.com/goshuirc/irc-go/ircmatch

What version of Oragono are you attempting to build? How did you retrieve it?
I would recommend following these instructions: https://github.com/oragono/oragono#building

git clone https://github.com/oragono/oragono
cd oragono
make build

Latest build.

I using Windows.

I have tested and is not working.

Hmm, we did used to use ircmatch but we don't anymore. When we moved away from ircmatch we also changed how we bundle dependencies (from a git submodule to just bundled in this repo instead), so my guess is that maybe something's gone a bit weird with that.
If you can rename/delete your current oragono folder and git clone it again from scratch, that should solve that build issue.
If that doesn't solve it you may need to make sure the oragono folder is located under your user folder (or wherever your GOPATH is, user folder's the default location though). For example mine's: C:\Users\dan\go\src\github.com\oragono\oragono
If you're just looking to build a working oragono exe, you can run this command:
go build .\oragono.go

And if you want to run a testing version of oragono to e.g. do development on, you can run this command:
go run .\oragono.go run   (or genpasswd, mkcerts, etc)

We use goreleaser to create our complete release bundles, but I'm not sure about installing and using that with Windows (to use the Makefile you'd need to install something or other too, but the above manual go commands should hopefully work for what you need).
Please let us know how you go!

I have tested and stills not work.

What's the exact git hash you're trying to build? What does git grep ircmatch report?

I have tested, stills not working.
El mié, 21 abr 2021 a las 14:48, Shivaram Lingamneni (<
@.***>) escribió:

What's the exact git hash you're trying to build? What does git grep
ircmatch report?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/oragono/oragono/issues/1630#issuecomment-824032853,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AOXLKXZYZBGH4FTJUF76SNTTJ3CSBANCNFSM43I5VLAA
.

It looks like this error arises if you try to fetch oragono with go get. This isn't a supported way to build oragono, unfortunately. Try the following steps:

Clone the repository at https://github.com/oragono/oragono with git clone
Check out the stable branch
go build -v ./oragono.go


Activate Grafana dashboard on Data Access building block

[x] https://github.com/developmentseed/eoapi-k8s/issues/154

We had the dashboard up, but it is currently down again. Looking into why

https://github.com/developmentseed/eoapi-k8s/issues/146#issuecomment-2338819807

Done in

https://github.com/EOEPCA/eoepca-plus/pull/45

Seems like there have been some issues:
kubectl get apiservice | grep Missi
v1beta1.metrics.k8s.io                               data-access/eoapi-support-metrics-server       False (MissingEndpoints)   12m

I just commented out the eoapi-support component. We have to look into this a bit more.

@ividito is on it:

Looks like the same problem as before, but with some additional context - I had tested namespace deletion when I initially redeployed, but the new error messages make me think that it only interferes with namespaces with certain properties.


Timer up nv9biller.BillerCommunicationsError: Timeout

Hey thankyou for the great contribution
But i am having trouble.
My nv10/nv9 machine give me this error randomly
I debug and found that
in ./nv9biller/init.py
    def _recv(self):
        """ Receive the response of a request.

            Raises:
                BillerCommunicationsError: If there is a communication error.

            Returns:
                bytes: Response payload.
        """

        pkt = b''
        pkt_counter = 0
        state = self._RX_STATE_WAIT_STX
        init = time.time()
        print("time.time() - init")
        print(state)

        while state != self._RX_STATE_FINISHED:
            print(time.time() - init)
            if time.time() - init > ssp.TIMEOUT:
                raise BillerCommunicationsError('Timeout')

So state 0-6 take more than 1 sec then it will through error
Why is this ?
I am not clear what state are doing
plus If i increase the ssp.TIMEOUT will it be ok ?

I have the same problem.
What is the solution to the problem?
Please answer.

It was issue with multi-threading

But this code not use multithreading.

No i was using running it on some other thread.

How is connected your nv9? A can't solve my problem. I can't recieve data from device at def _read().

U have to manually change the machine mode to something like SSP  also install the software from nv9 website and test on it first. Then it would be lot easy.

Thank's for answer. It's already configured to SSP, some other program works well, but example.py gives me this error.
File "/usr/local/lib/python3.7/dist-packages/nv9biller/init.py", line 227, in _transmit
r = self._recv()
File "/usr/local/lib/python3.7/dist-packages/nv9biller/init.py", line 165, in _recv
raise BillerCommunicationsError('Timeout')
nv9biller.BillerCommunicationsError: Timeout
My nv9 connected via /dev/serial0
Maybe it works on /dev/ttyUSB* only?


WIP: When notify is not specified, mongoengine requires an empty doc

Original bug: https://github.com/StackStorm/st2/issues/2378 (Thanks @ charlottestjohn).
Summary:

Register action with notify
Remove notify section from meta. Register notify again.
Check action. You'll still see notify section

Repro:
See https://gist.github.com/lakshmi-kannan/3891705755dbafa8b82c for repro.
What happened?
We use embedded document model for notify in action model. If notify is unspecified, we set notify to None. Mongoengine interprets None as unmodified field therefore doesn't delete the embedded document.
Solution: We now explicitly set the embedded document to {} instead of None.
TODO:

[] Tests

[] Changelog

[] CLI still shows notify with empty value (cosmetic)

I'm worried that there are other problems similar to this one lurking around.
In any case, we need to make sure to add a test case for it :)


Second-generation binary operator traits with specialization

Provide new traits for overloading binary operators, such as PartialEq2, PartialOrd2, Add2, AddAssign2, etc., with default blanket implementations abstracted over Borrow for built-in and standard library types. This will drastically reduce the number of explicit impl items necessary to cover compatible type pairs. When resolving the implementation for an operator, the compiler will
consider the new traits along with the old school non-specializable traits.
Rendered view

@withoutboats The compiler will need to be changed to consider the new traits, with a kink in the algorithm. Are you sure T-lang does not apply?

An alternative idea occurred to me: add the new style op traits not as a next-gen replacement for the Rust 1.0 traits, but as fallback generic implementations: the generic impl of OpDefault (not necessarily specializable) would apply when no Op implementation matches the operator.
WDYT?

I don't see how this proposal solves the problem with specialization because this looks just like specialization. But only for the specified operator traits and with some new added complexity. Please elaborate on how this improves this situation. If the only difference is that it isn't a breaking change to add a PartialEq2 impl when a PartialEq impl exists, then that is a poor reason to add these traits. What if we wan't to use AsRef in the future, or provide some other way of doing PartialEq, do we need to add PartialEqN (slippery slope argument). This sets a bad precedent.
Yes it is unfortunate that we can't extend String (or other types) in this way, I don't see this as sufficient motivation for such complexity.

@KrishnaSannasi For a real-world example that perhaps illustrates the problem better than the dry motivational prose of my RFC, please take a look at this long list of PartialEq/PartialOrd impls for Bytes and BytesMut. Please suggest a way to resolve this tedium with generic default implementations that: 1) do not conflict with the impls that are already out there; 2) automatically cover any other crate that comes up with a clever way to package a slice of bytes, without adding a dependency to that crate from bytes or vice versa.
As suggested in my previous comment, I now think the new traits should augment the existing fully specialized operator traits rather than soft-deprecating them. The impl resolution rule does not need to be that complex, either. I will update the RFC with this idea.


Proposal to reduce confusing behaviors and improve consistency with other plugins

This issue proposes removing 8 settings and renaming 3 settings.
Some settings changes:
rename statement_filepath
Problem: "filepath" feels redundant.
Proposal: Rename to statement_path
remove use_column_value
Problem: You can specify tracking_column with intent to use a column as your sql_last_value. However, this does nothing alone and is very confusing to me. To make this actually work, you have to also specify use_column_value => true.
Proposal: Infer this from if tracking_column is set at all. If the user specifies any value for tracking_column this should express enough intent to use that column as the value. If @tracking_column is non-nil, we should use that column's value for sql_last_value
remove tracking_column_type
Problem: If you specify the wrong one, you can get an error.
Proposal: We can infer the column type from the database, can't we?
remove clean_run
Problem: I don't understand the use case. This setting indicates a kind of management task, and we try not to do management tasks in plugins.
Proposal: Removing the file outside of logstash seems the correct approach.
rename jdbc_user
Problem: jdbc_ prefix on things is perhaps unnecessary. We know we are in the jdbc plugin already.
Proposal: rename to user
rename jdbc_password
Problem: see above
Proposal: rename to password
remove jdbc_password_filepath
Problem: this is inconsistent with any other password setting we have.
Proposal: Remove it. We'll be able to specify password from files again once we have https://github.com/elastic/logstash/issues/6892 implemented.
reconsider jdbc_validate_connection
Problem: I don't understand why a user would want to turn this setting off.
Proposal: remove this setting.
remove jdbc_validation_timeout
Problem: See above.
Proposal: remove this setting.
remove connection_retry_attempts
Problem: Why would we want to give up connecting to the database?
Proposal: remove this  setting.
remove connection_retry_attempts_wait_time
Problem: users should not concern themselves with such details.
Proposal: remove this setting. Replace behavior with exponential backoff.

/cc @acchen97 @andrewvc

I like most of this stuff. I think the fetch_size and paging_enabled options might be about whether you want to use a cursor vs. multiple statements.
I could be wrong, but if that is the case we might want a strategy option that can be set to cursor or multiple_statements.

@andrewvc I agree that if it turns out we do want to provide cursor-vs-multiple-statements, that exposing that as a strategy selection is an improvement over the "fetch_size" vs "page_size+paging_enabled" settings.

@jordansissel thanks for the review here. Although I agree with most of the suggestions listed here, this isn't the highest priority at this time. I'd suggest we revisit this sometime following the next major.


Unable to "bake in" SteamCMD login credentials

Bug Report
System Information

Operating System (Including distribution name and version number) Ubuntu 20.04.5 LTS
AMP version and build date (Always use the version number, 'latest' is not valid!) <IP_ADDRESS> 17/05/2023 17:54
Which AMP release stream you're using (Mainline, Nightly or FastTrack) mainline

I confirm:

[x] that I have searched for an existing bug report for this issue.
[x] that I am using the latest available version of AMP.
[x] that my operating system is up-to-date.

Symptoms

What are you trying to do? For a specific enterprise agreement, we are required to use our own steam credentials to download the server files, as customers do not have access to the server files
What are you expecting to happen? The ability to set steamcmd login credentials somewhere so that these specific templates can have this functionality, as the customer does not have login credentials that would allow for server download
What is actually happening? ('Nothing' is not an acceptable answer!) This functionality is specifically not allowed in AMP - but needs to be allowed for enterprise customers who have agreements with developers and publishers.

This might have to be something that's selectively enabled because this is technically a steam TOS violation. It would be helpful if you could put us in touch with the developers of the game in question.

Implemented for Enterprise Edition. Documentation to follow.


Issue with Zabbix 3.0 LTS

Hi!
There are a issue with version 3.0 LTS of Zabbix.
The System field is void in each Zabbix issue.
Best regards,
Joaquín

Look at https://github.com/gigatec/zabbixnotifier/pull/12
:)

@interpeix Thank you! :)


Custom config.ts is not being loaded on Windows/IntelliJ

Before submitting your bug report

[X] I believe this is a bug. I'll try to join the Continue Discord for questions
[X] I'm not able to find an open issue that reports the same bug
[X] I've seen the troubleshooting guide on the Continue Docs

Relevant environment info
- OS: Windows 10
- Continue: 0.0.64 (also tried 0.0.67)
- IDE: WebStorm / IntelliJ
- Model: -
- config.json:

-

Description
Trying to add some custom context providers via config.ts, but it does not have any effect.
Looking at the place where the loading happens it can be seen that there is no fallback, config is simply ignored if any error: https://github.com/continuedev/continue/blob/ee50108b64e63d4c500e7803d12f76ef155c33de/core/config/load.ts#L600
Google told me that the common way to fix this kind of error is to rename .js file to .cjs. (but maybe not, since the error is about file:// schema, not the extension)
To reproduce

Modify config.ts:

export function modifyConfig(config: Config): Config {
  console.log('Test from config.ts');
  return config;
}

Start extension on Windows/IntelliJ

Expected: Test from config.ts in the logs
Got: Error loading config.ts
Log output
[2024-09-03T06:54:31] [info] Starting Continue core...
[2024-09-03T06:54:31] Setup
[2024-09-03T06:54:31] Core started
[2024-09-03T06:54:32] Error loading config.ts:  Error [ERR_UNSUPPORTED_ESM_URL_SCHEME]: Only URLs with a scheme in: file, data are supported by the default ESM loader. On Windows, absolute paths must be valid file:// URLs. Received protocol 'c:'

Same issue here.
- OS: Windows 11 Pro
- Continue: 0.0.64
- IDE: IntelliJ 2024.2.1

Log
[2024-09-04T12:05:57] [info] Starting Continue core...
[2024-09-04T12:05:57] Setup
[2024-09-04T12:05:57] Core started
[2024-09-04T12:05:58] Error loading config.ts:  Error [ERR_UNSUPPORTED_ESM_URL_SCHEME]: Only URLs with a scheme in: file, data are supported by the default ESM loader. On Windows, absolute paths must be valid file:// URLs. Received protocol 'c:'

Same issue.
It seems like 3 weeks ago it was working.

Same issue, custom slash commands were not loaded.


Block the async producer thread during buffer overflows

The producer thread should not dequeue operations as long as the underlying sync producer has a full buffer. Instead, the queue should start filling up, eventually propagating the buffer overflow error to the calling thread.
The implementation in this PR will rescue buffer overflows raised by the sync producer and call #deliver_messages until #produce no longer raises BufferOverflow. This could quite possibly be a bad idea, depending on the retry backoff time of the sync producer.

This makes sense to me.
I think documenting the semantics here would be a good idea.
The JVM producer by default just blocks if the async producer's buffers are too full, but doing that in ruby seems somewhat tricky. Think we want that eventually though - it let's you backpressure incoming requests (if it's a web API for example) without having to catch BufferOverflow and retry (which I think is potentially quite tricky).

@tcrayford I agree, and if only the Ruby standard library provided a bounded queue implementation we would already be there...

@tcrayford updated the docs. I'll look into adding blocking behavior in a separate PR when I get around to it.


[build] Fix TensorFlow build product installation.

Fix TensorFlow build product installation:

Add write permissions to libtensorflow.{dylib,so}.

This is important for symbol stripping and code signing.

Call shutil.rmtree with ignore_errors=True.

This now works when the target directory does not exist.

Incrementally fixes build-toolchain-tensorflow.

Verifying this patch now. Please do not merge yet.

@swift-ci Please test tensorflow

Fixed validation-test/Python/python_lint.swift: Python linting errors.
I also auto-formatted tensorflow.py using black. It would be nice to start auto-formatting changes before pushing them as a rule - this should help validation-test/Python/python_lint.swift pass more often without human effort.

@swift-ci Please test tensorflow

@swift-ci Please test tensorflow

@swift-ci Please test tensorflow

@swift-ci Please test tensorflow

@swift-ci Please test tensorflow

@swift-ci Please test tensorflow

Please split up the change into two commits, the diff with the auto-formatting makes it really difficult to follow.

I believe this is already done: the first commit has non-trivial changes, and following commits are just formatting-related. Does that seem okay?

@swift-ci Please test tensorflow

@swift-ci Please test tensorflow

@compnerd: maybe this PR is obsoleted by your recent changes. If so, feel free to close it.
I think calling shutil.rmtree with ignore_errors=True is nicer than try-catch though.

I agree that ignore_errors=True is nicer, but that is a compatibility problem - not all versions of python support that.

I agree that ignore_errors=True is nicer, but that is a compatibility problem - not all versions of python support that.

Aha, nice catch.

Closing. This is obsolete after incremental patches by @compnerd.


[All] [End] Update to Compose 1.0.0-rc01

@googlebot I consent.

MigrationCodelab is stuck in emulator 23 consistently. Tried to debug this but there are problems downloading artifacts for rc01 for some reason right now, so I'm merging this. Created #179 to track.


'Texture2D' does not contain a definition for 'isDataSRGB'

I've imported this package in Unity 2021.3.15f1 and URP enabled using multiple ways including git URL and manual import. It works fine but when I import KTX package it has an error that Texture2D class has no isDataSRGB.

It is listed in the supported versions list in Unity docs but not able to find it in its implementation.

Edit: Colorspace is linear

@hybridherbst can you suggest something here.... Thankyou

hey, i have already a PR for this: https://github.com/KhronosGroup/UnityGLTF/pull/689
For a fast solution now: just update unity 2021.3.15f to 2021.1.35f :)

Thankyou for the reply @pfcDorn
I searched through the issues list but missed the PRs list. :D
In that case, I would need to ask everyone to upgrade the Unity version. Also we've a production code with lots of people uploading different types of GLBs. Which solution do you recommend in this scenario.

hm...good question :D
maybe you can make a fork of unityGltf and merge the branch into it ...? I don't know at the moment when it gets merged into the official khronos repo.

I can look at it early next week.

@hybridherbst that would be great because upgrading Unity version might not be feasible for me because it'll cause everyone to forcefully do an unplanned upgrade.
@pfcDorn I suppose that if I fork and merge on my side then every time when a new update is available on this main repo, I might have to update my forked repo manually. Is it going to be the case? In that case, it would be better to wait for @hybridherbst to merge the PR.

when it's get merged to the main repo, you no longer need to use your fork. But of course, maybe just wait :)

That makes sense. Thankyou for your response 🥇

Yessssssssss....... it solved the issue @hybridherbst
Thankyou for asking <3


build(eslint): switching from tslint to eslint

v1.1.1 has been released and contains a fix for the issue. Feel free to reopen the issue or to submit a new one if you meet any problems.


Document Development Environment Setup and Expectations

Document how to setup a development environment, how to lint, how to run tests, expectations around testing and passing builds.
To make this guide easier to write, I extracted the linters from package.json into a standalone script.
Fixes GH-82.
r? @felipecsl

lol at r? that doesn't work here ;)


rasterization.py (documentation not up-to-date)

Im trying to train the model for other region, but I have a problem preparing the ROIs.
python3 utils/rasterization.py
--vector /home/user/ROI/vectors/T31TEJ.shp
--ref /data/decloud/bucket/S2_PREPARE/T31TEJ/SENTINEL2B_20180225-105018-458_L2A_T31TEJ_C_V2-2/SENTINEL2B_20180225-105018-458_L2A_T31TEJ_C_V2-2_EDG_R1_stats.tif
--output /home/user/ROI
the file rasterisation doesn't exist
how I can  generate it
thank you

hello @meryeme-25 ,
The documentation is not up-to-date, you should use the preprocessing/generate_roi_rasters.py application to generate the ROIs masks.
We will update it ASAP

Hi @meryeme-25 ,
Apologies for the delay. I tried to improve the doc a bit, at least I updated the section about the generation of ROI binary images.
Let me know if it is more readable and user-friendly.
I believe the doc have flaws so do not hesitate to point errors or propose a PR.
Thanks


farmvibes-ai local setup

Your country: USA
Your contact info to reach out to you<EMAIL_ADDRESS>What is your scenario for using FarmVibes.AI?: I am a computer science college student trying to implement it on my own for a research project I am a part of. My goal is to use the segmentation notebooks to segment surrounding farmland.
I am just trying to set up farmvibes on a local machine by following the quickstart instructions but when I try to run the farmvibes-ai local setup I get a message saying "farmvibes-ai: command not found". I've included a screenshot because I am fairly sure that I am in the correct folder and I have downloaded all the dependencies without a problem so I am not sure what is wrong? Some help would be great!

Yes, I did run pip install ./src/vibe_core before trying to run the setup command. I tried it again just in case and this was the output. Is this what it is supposed to look like?

Please, could you run pip install --upgrade pip and then retry installing vibe_core?

From the first screenshot you shared, it seems you don’t have a virtualenv activated.
This means pip probably used a local bin directory to install farmvibes-ai in.
Can you try running ~/.local/bin/farmvibes-ai instead of plain farmvibes-ai when running farmvibes commands?

That seems to have worked!! Thank you so much!

Nice!
If you’re using bash, you might want to add that directory to your path by appending a line with export PATH=$PATH:$HOME/.local/.bin to your ~/.bashrc file.


Added footer

I have added the footer pls check it
Issue #85

Sorry @Gauravtb2253, for now I don't feel like adding the footer as it’s totally changing our design and it’s not looking good to me. If you want, just tweak it a little bit—add a separator between the existing footer and the new footer, and don’t change the format of the existing footer. Also, use a light font for the new footer. If I like it, then I will merge it into production; otherwise, I’ll keep it in the review branch after merging. That will at least gain you some points for your contribution, but first, do the things I mentioned.

Sorry @Gauravtb2253, for now I don't feel like adding the footer as it’s totally changing our design and it’s not looking good to me. If you want, just tweak it a little bit—add a separator between the existing footer and the new footer, and don’t change the format of the existing footer. Also, use a light font for the new footer. If I like it, then I will merge it into production; otherwise, I’ll keep it in the review branch after merging. That will at least gain you some points for your contribution, but first, do the things I mentioned.

Yes I will change it

pls check it

thank you !!

Do you have more issues for solving

You just give me 10 min i am dealing with some issue now, as soon as i am free i will tel you, until go through all the issue and check whatever issues you are comfortable with

Thank you for your contribution! If you'd like to further support the project, feel free to star the repository—it helps the project reach more people and grow.

@Gauravtb2253 if you dont mind can you do any of the pinned issues

I would like to work on the chatbot feature
Just can you explain what exactly is needed

I would like to work on the chatbot feature Just can you explain what exactly is needed

Sure, just comment on that issue and i will explain


Use with Quarto Book

I would like to have my notes available as a Quarto book^1. How do I turn a Quarto book into something that can be parsed by Ankivalenz?

Demo book: https://github.com/vangberg/ankivalenz-quarto-book

Setting format.html.minimal: true in _quarto.yml renders a minimal book. How do I override this from the commandline?

quarto render --to html -M minimal:true

Does not seem to work.

Maybe create a custom format?

I have created a custom format^1, and a demo book project^2. This pretty much works. One problem, is that I would like to run ankivalenz run _book, but then ankivalenz.json is expected to be in _book/. If I run ankivalenz run . it will also look at HTML files in e.g. renv/.
Maybe always assume configuration is in CWD or higher?

Above problem has been solved, and input_path configuration has been added.

This basically works now. See https://github.com/vangberg/quarto-ankivalenz


AppArmor denial on start using jessie-backports

Before installation, apparmor and apparmor-profiles installed.
Installed from jessie-backports.  Used "Tor Browser" menu icon, and download of Tor Browser went fine.  However, at the end, when it should have launched, it just disappeared.
/var/log/kern.log reveals:
12 10:58:24 debian kernel: [338208.915831] audit: type=1400
audit(1449939504.305:72): apparmor="DENIED" operation="exec"
profile="/home/*/.local/share/torbrowser/tbb/{i686,x86_64}/tor-browser_*/{Browser/,}start-tor-browser"
name="/bin/bash" pid=23850 comm="start-tor-brows" requested_mask="x"
denied_mask="x" fsuid=1000 ouid=0

Sadly you didnt say which version from jessie-backports you've tried, as far as I know this is fixed in 0.2.2-2~bpo8+1 from jessie-backports, can you confirm?

This will be fixed as soon as we release 0.2.5 jessie-backports. It's on its way Please try the new version and report back. And then this bug can be closed IMO.

jessie-backports now has 0.2.6-2~bpo8+1, so according to u451f's previous comment, this bug can be closed. Untested though.

The problem this bug was out was fixed 1+ year ago, please close.

Closing per previous comment.


Two way TLS not working with EMQX Enterprise

var caCerts = new X509Certificate2Collection();
caCerts.Add( new X509Certificate2("ca.pem"));
            var clientCert = new X509Certificate2("client-fullchain.pfx", "password@123").Export(X509ContentType.SerializedCert);

            x509Certificate2s.Add(new X509Certificate2(new X509Certificate2("ca.pem").Export(X509ContentType.SerializedCert)));
            x509Certificate2s.Add(new X509Certificate2(clientCert));
            _mqttClient = _mqttFactory.CreateMqttClient();
            var options = new MqttClientOptionsBuilder()
                          .WithClientId(Guid.NewGuid().ToString())
                             .WithTcpServer("localhost", 8883).WithTls(o =>
                             {
                                 o.UseTls = true;
                                 o.SslProtocol = System.Security.Authentication.SslProtocols.Tls12;

                                 o.Certificates = x509Certificate2s;
                                 //o.AllowUntrustedCertificates = false;
                                 //o.IgnoreCertificateChainErrors = false;
                                 //o.IgnoreCertificateRevocationErrors = false;

                                 o.CertificateValidationHandler = (certContext) =>
                                 {

                                     var chain = new X509Chain();
                                     chain.ChainPolicy.RevocationMode = X509RevocationMode.NoCheck;
                                     chain.ChainPolicy.ExtraStore.AddRange(caCerts);
                                     chain.Build((X509Certificate2)certContext.Certificate);

                                     bool invalid = false;
                                     foreach (var s in chain.ChainStatus)
                                     {
                                         if (s.Status != X509ChainStatusFlags.UntrustedRoot)
                                         {
                                             invalid = true;
                                             Console.WriteLine($"Chain Invalid: {s.Status}: {s.StatusInformation}");
                                             return false;
                                         }
                                     }

                                     if (!invalid)
                                     {
                                         Console.WriteLine($"Chain Valid");
                                         return true;
                                     }
                                     return false;
                                 };
                             })
                             .Build();
            _mqttClient.ConnectedAsync += Client_ConnectedAsync;
            _mqttClient.DisconnectedAsync += Client_DisconnectedAsync;

            await _mqttClient.ConnectAsync(options, CancellationToken.None);

Getting exception as "Authentication failed because the remote party sent a TLS alert: 'HandshakeFailure'.""
In EMQX logs we see the following error :-
"tls_dtls_connection.erl:316 generated SERVER ALERT: Fatal - Handshake Failure, - no_client_certificate_provided"

Since we only use the integrated TLS streams from the .net framework it might be a good idea to raise the issue there instead of this project. All properties from the stream and event handlers are exposed so that it should work with a proper certificate in general.

Please try with latest version of "https://github.com/chkr1011/MQTTnetApp". It also allows using client certificates and let me know if it works with that tool.

Closing this due to inactivity.


New package: RussellBanks.Komac.Nightly version 1.6.0

Pull request has been created with Komac v1.6.0 :rocket:
Microsoft Reviewers: Open in CodeFlow

Policy 1.8 - The only financial reference I can find is the author's last name.

Policy 1.8 - The only financial reference I can find is the author's last name.

Is that why I keep getting Policy 1.8 😆


soem: 1.4.0-1 in 'melodic/distribution.yaml'

Increasing version of package(s) in repository soem to 1.4.0-1:
upstream repository: mgruhler/soem.git
release repository: mgruhler/soem-gbp.git
distro file: melodic/distribution.yaml
bloom version: 0.8.0
previous version for package: 1.3.0-0

I was having problems with the automatic creation of the PR. Not sure why. bloom was complaining that I don't have a fork of rosdistro and then crashed when trying to create it due to permissions. Maybe an issue with the access token and 2fa, though I'm not sure what could be the isue here...

That's odd. It generally works with 2fa.

Thanks for merging.
I also think it's odd. More odd is that bloom actually complained about not finding the fork even though it existed (wasn't up-to-date, though...)


Ability to set the gutter on CustomDialog

Is your feature request related to a problem? Please describe.
When showing a CustomDialog, I would like the ability to change the default gutter on the left and right of the content, so that i can show more content.
The existing implementation uses a fixed 25* grid column definition, hard coded in the CustomDialog template.
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="25*" />
                    <ColumnDefinition Width="50*" />
                    <ColumnDefinition Width="25*" />
                </Grid.ColumnDefinitions>

Describe the solution you'd like
I'd like to be able to set the width weighting for the gutter from the MetroDialogSettings when passing in to the .ShowMetroDialogAsync() method. Something more like:
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="{Binding GutterPercent}" />
                    <ColumnDefinition Width="*" />
                    <ColumnDefinition Width="{Binding GutterPercent}" />
                </Grid.ColumnDefinitions>

Additional context
Closed Issues

@punker76, do you have any preference between:

keeping the current implementation with the 3 columns and binding the 2 outer ones to some property (as suggested by @gnewtzie)

removing these 2 empty columns which only provide left/right margin and to let the user provide a margin to the middle column. This implies a fix margin instead of a scaling one as for the previous solution.

FYI I have deleted my previous post
We can actually handle this in quite a lot of ways:

Bind each margin to a double property which represents a percentage (ratio) and use a converter to transform this value into a GridLength and fix the middle column to *. The drawback of the double property is that the user can't define a fix margin (e.g. 300).

Bind each margin directly to a GridLength property and fix the middle column to *.

Fix the left and right columns to * and allow to bind the middle column width (again there is the question of using double or GridLength)

Use some kind of enumeration for the left/right margin space like NoMargin, SmallMargin, LargeMargin, honestly I don't think that's a really good idea because we are putting a useless limit to the customization.

cc @punker76
When the choice is made, I will happily create a PR for this.

@Evangelink https://github.com/MahApps/MahApps.Metro/pull/3518


refactor/docs: rewrite clap attributes to use doc comments

Motivation
These attributes are very inconsistent throughout the whole repo, this PR attempts to fix that, improving readability. Also improves some documentation along the way.
Solution

Rewrite {help,long_help,about,long_about} = "<doc>" to /// <doc>

clap preprocesses doc attrs: /// <{help,about}>\n///\n/// <long_{help,about}>

Remove useless args when the default does the same. Full list:

long = <s>: remove = <s> if <s> == field_name.kebab_case()
short = <c>: remove = <c> if <c> == field_name[0]
name = <s>: remove arg if <s> == field_name.to_lowercase()
value_name = <s>: remove arg if <s> == screaming_snake_case(field_name)

Merge multiple #[clap(...)] into one

Most of the changes were automatically generated using the above described rules, and each were manually checked.

Yeah


NCCL problems of pretrain

I have a problem at pretrain phase, such as:
Traceback (most recent call last):
File "Pretrain.py", line 215, in
Traceback (most recent call last):
File "Pretrain.py", line 215, in
main(args, config)
File "Pretrain.py", line 93, in main
main(args, config)utils.init_distributed_mode(args)
File "Pretrain.py", line 93, in main
File "/root/albef/ALBEF/utils.py", line 257, in init_distributed_mode
utils.init_distributed_mode(args)
File "/root/albef/ALBEF/utils.py", line 257, in init_distributed_mode
torch.distributed.barrier()
File "/opt/conda/lib/python3.7/site-packages/torch/distributed/distributed_c10d.py", line 2420, in barrier
torch.distributed.barrier()
File "/opt/conda/lib/python3.7/site-packages/torch/distributed/distributed_c10d.py", line 2420, in barrier
work = default_pg.barrier(opts=opts)
RuntimeError: NCCL error in: /pytorch/torch/lib/c10d/ProcessGroupNCCL.cpp:825, unhandled system error, NCCL version 2.7.8
ncclSystemError: System call (socket, malloc, munmap, etc) failed.
 Thanks!

Were you able to run distributed training with any other Pytorch code before? You might want to check your cuda version.

Were you able to run distributed training with any other Pytorch code before? You might want to check your cuda version.

When I use torch 1.6.0, I won't face the problem. But the code needs to be worked with torch 1.8.0. Would you please give the environment.yml to me if it's convenient. Thanks a lot.

Hi, I'm facing the same issue. How did you resolve it?


WIP: Add support for resuming downloads on transfer failure

WIP: Waiting for vendor update in #19887.
Currently, when a layer download fails due to a network error or timeout, the download is restarted from scratch. This PR makes the engine try to resume the download from the byte offset where its partial download ended, using a Range header.
This is the approach to making downloads resumable:

If an error occurs during the layer download, DON’T delete the temporary file.
When retrying, send a byte range request to download starting from the last byte buffered. Note that this involves vendored changes to the distribution client code to properly support Seek (but no API changes).
If a byte-range request results in a 2xx code other than 206 (Partial content), delete the temporary file so the next retry starts from scratch. For other errors such as a timeout or HTTP 500, do not delete the temporary file.
Currently, digest verification errors never result in retries. This is changed so that incorrect data came from a byte-range request, we delete the temporary file and try again.
Always delete the temporary file at the end of the pull, whether the download was successful or not. Partial downloads are only preserved during a pull session, to avoid consuming extra disk space. It's not (yet) possible to start a pull, cancel it, and resume it later.

This is difficult to test in the context of the integration-cli framework, but I've tested it manually with a MITM proxy, and also with an automated test in the new https://github.com/docker/golem suite.
cc @docker/distribution-maintainers

Moving to code review. If it's possible then maybe move the vendoring to separate PR because it seems to contain some unrelated fixes as well.

Sure, but if I move the vendoring should I close this PR until the vendor update is in place?

On Jan 30, 2016, at 23:09, Tõnis Tiigi<EMAIL_ADDRESS>wrote:
Moving to code review. If it's possible then maybe move the vendoring to separate PR because it seems to contain some unrelated fixes as well.
—
Reply to this email directly or view it on GitHub.

@aaronlehmann You can just mark it as wip

@aaronlehmann You may be able to use stevvooe/resumable to hold onto the hash state, avoiding having to recalculate from the start. I haven't looked at the diff in detail, so this may not matter with the current approach. We may also want to be careful about trusting on disk hash states.

@stevvooe The way it works right now is with a long-lived digest.Verifier. Every byte we read from the download is written to both the temporary file and the verifier. If we resume from the end of the temporary file, we continue writing to ld.verifier. Otherwise, to restart a download we truncate the temporary file and create a new verifier.

@aaronlehmann So, it doesn't survive daemon restarts? That is a reasonable model.

Correct. Partial downloads are only kept during a pull session, to avoid confusion and complexity around long-term storage of partial downloads. If the daemon restarts during a pull session, the existing temporary files are cleared at startup.

@aaronlehmann Great! We can expand this functionality in later PRs to be more resilient. Getting this simple case working is key.

Needs a rebase, also looks like the vendor-in was done, is this still WIP?

Rebased - thanks for the reminder. This is no longer WIP so I'm changing the summary back.

Job: Docker-PRs-WoW-TP4 FAILED:

---
412d25.
+ ec=125
+ set +x

----------------------------------
ERROR: Failed to build test binary
----------------------------------

-----------------------------------------------
ERROR: Failed with exitcode 125 at Tue Feb  9 22:14:42 CUT 2016.
-----------------------------------------------

INFO: Tidying up at end of run
INFO: Nuking /d/CI
INFO: Zapped successfully
INFO: End of cleanup
INFO: Ended at Tue Feb  9 22:14:43 CUT 2016 (1m 15s)
Build step 'Execute shell' marked build as failure
[PostBuildScript] - Execution post build scripts.
[docker] $ sh -xe D:\temp\hudson8041921780061597939.sh
+ set +e
+ set +x
INFO: End of cleanup
Notifying endpoint 'HTTP:https://leeroy.dockerproject.org/notification/jenkins'
---

Job: Docker-PRs-Win2Lin FAILED:

---
aking bundle: binary (in bundles/1.11.0-dev/binary)
Building: bundles/1.11.0-dev/binary/docker-1.11.0-dev
# github.com/docker/docker/docker
/usr/local/go/pkg/tool/linux_amd64/link: running gcc failed: fork/exec /usr/bin/gcc: cannot allocate memory

---
Build step 'Execute shell' marked build as failure
Performing Post build task...
Could not match :Build timed out  : False
Logical operation result is FALSE
Skipping script  : cd c:\scripts
sh timeout-post-build.sh

END OF POST BUILD TASK 	: 0
[PostBuildScript] - Execution post build scripts.
[docker] $ sh -xe C:\Users\Jenkins\AppData\Local\Temp\hudson4292727578072060197.sh
+ set +x

---

Job: Docker-PRs-gccgo FAILED:

---
docker_integration_cli.DockerSuite	7.247s
PASS: docker_cli_run_test.go:2682: TestRunRestartMaxRetries.pN52_github_com_docker_docker_integration_cli.DockerSuite	3.997s
PASS: docker_cli_run_test.go:2147: TestRunReuseBindVolumeThatIsSymlink.pN52_github_com_docker_docker_integration_cli.DockerSuite	2.106s
PASS: docker_cli_run_test.go:1179: TestRunRootWorkdir.pN52_github_com_docker_docker_integration_cli.DockerSuite	1.007s

----------------------------------------------------------------------
FAIL: docker_cli_run_unix_test.go:842: TestRunSeccompAllowAptKey.pN52_github_com_docker_docker_integration_cli.DockerSuite

docker_cli_run_unix_test.go:848:
    c.Fatalf("expected apt-key with seccomp to succeed, got %s: %v", out, err)
... Error: expected apt-key with seccomp to succeed, got Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --homedir /tmp/tmp.11U1QQHECC --no-auto-check-trustdb --trust-model always --primary-keyring /etc/apt/trusted.gpg --keyring /etc/apt/trusted.gpg.d/debian-archive-jessie-automatic.gpg --keyring /etc/apt/trusted.gpg.d/debian-archive-jessie-security-automat
---

Job: Docker-PRs-WoW-TP4 FAILED:

---
3c4012.
+ ec=125
+ set +x

----------------------------------
ERROR: Failed to build test binary
----------------------------------

-----------------------------------------------
ERROR: Failed with exitcode 125 at Wed Feb 10 13:58:01 CUT 2016.
-----------------------------------------------

INFO: Tidying up at end of run
INFO: Nuking /d/CI
INFO: Zapped successfully
INFO: End of cleanup
INFO: Ended at Wed Feb 10 13:58:02 CUT 2016 (1m 14s)
Build step 'Execute shell' marked build as failure
[PostBuildScript] - Execution post build scripts.
[docker] $ sh -xe D:\temp\hudson6613734270777114351.sh
+ set +e
+ set +x
INFO: End of cleanup
Notifying endpoint 'HTTP:https://leeroy.dockerproject.org/notification/jenkins'
---

Job: Docker-PRs-Win2Lin FAILED:

---
aking bundle: binary (in bundles/1.11.0-dev/binary)
Building: bundles/1.11.0-dev/binary/docker-1.11.0-dev
# github.com/docker/docker/docker
/usr/local/go/pkg/tool/linux_amd64/link: running gcc failed: fork/exec /usr/bin/gcc: cannot allocate memory

---
Build step 'Execute shell' marked build as failure
Performing Post build task...
Could not match :Build timed out  : False
Logical operation result is FALSE
Skipping script  : cd c:\scripts
sh timeout-post-build.sh

END OF POST BUILD TASK 	: 0
[PostBuildScript] - Execution post build scripts.
[docker] $ sh -xe C:\Users\Jenkins\AppData\Local\Temp\hudson7966114163337976005.sh
+ set +x

---

LGTM

LGTM


Move content cache to instance to prevent state leak

I am currently working on cleaning up some memory leaks across test runs in a very large application. I have noticed that the content property in obj-hash.js is causing an application container instance to persist across test runs when it should be completely destroy and garbage collected. This change shouldn't affect any logic - just moving the content property from the prototype to the instance. I confirmed by taking a heap snapshot after test runs in my application that this change allows the application container to get properly garbage collected. I also ran the tests for this addon locally and everything still looks good. Thanks!

bumping this. just curious if it can get in?

Sorry been distracted, I'll see about bringing in this PR soon.

no worries. thanks so much!


When conda-store can store no more [bug]

Describe the bug
Currently when the conda environment store of a QHub deployment (I believe it is an NFS mount?) fills up the failure is not so graceful: Environments don't get built but no error is displayed to the user.
How can we help?
A kinder failure state would be nice for this. My understanding is that environment creation occurs on QHub after qhub deploy has reported success ... perhaps polling the availibility of expected environments before calling "deployment" complete and returning control to the user could be considered... or a report of the storage available for the environments that are not yet created.
Consider what a sensible default for available storage for environments will be. The store can be scaled (very easily on GCP as the mount can expand easily upon redeployment) but inferring that this is the source of the failure to create  environments is not trivial and space is cheap (relative to our time at least). So perhaps 200GB is a sensible default? It seems a lot but 10s of GB are filled pretty quickly with things like pytorch and tensorflow . Also, with the much appreciated versioning of environments that conda-store does under the hood, small tweaks to environments can also balloon the storage requirements very quickly.

Hi @leej3, thanks for oppening this issue. This feature will be available with the next versions of conda-store @costrouc


Error when trying to save with 1password

Environment:
INFO[03-11-2021 13:48:01] ssh-manager 0.0.0

CLI Version: 1.12.3 (1password)
Operating System/Architecture: Windows 11

Expected Behavior:
Saving the ssh files to 1password
Actual Behavior:
Getting this error: Error: 'op create': Execution failed:
Steps to Reproduce:
installed go
ran go get -u github.com/omegion/ssh-manager
started the ssh-agent service
ran the following command:
ssh-manager add --name new-ssh-key --private-key C:\Users\username\.ssh\id_rsa --public-key C:\Users\username\.ssh\id_rsa.pub --provider op

@SmutsMuts Can you please run the command again with --logLevel flag? It seems op command fails but we cannot see the error.


Using org.apache.kafka.connect as your package namespace raises problem when using the connector with Landoop's Lenses.

When trying to use the connector with Landoop's lenses<EMAIL_ADDRESS>the connector is blacklisted by Kafka's package name-check that is run @ https://github.com/apache/kafka/blob/0.11.0/connect/runtime/src/main/java/org/apache/kafka/connect/runtime/isolation/PluginUtils.java
If the package name is org.apache.kafka when trying to create a new connector Kafka connect will fail and exit execution @ https://github.com/apache/kafka/blob/0.11.0/connect/runtime/src/main/java/org/apache/kafka/connect/runtime/isolation/Plugins.java#L161
After renaming the package to a different name and compiling the project, everything worked as expected.

@indaco789 You are right. I changed the package name in version 1.6.0, you may find the migration tips in the readme file https://github.com/teambition/kafka-connect-mongo#warning-when-upgrade-from-15x-to-160-please-read-the-messages-below


slow down the clock of GPIO pins for SPI

This PR fixes unstable SPI communication. GPIO_SPEED_FREQ_HIGH is for range 10 MHz to 50 MHz communication and is too fast for the communication between NTS1 main board and control panel (its speed is 1MHz).
I experienced SPI communication trouble when I connected a Nucleo-F030 board to NTS1. Slowing down the GPIO pin clock made the communication stable.

I can confirm this PR improves stability and reliability using the custom panel board.  I have tested this with code compiled using the MBED OS platform.

I can confirm this PR improves stability and reliability using the custom panel board.  I have tested this with code compiled using the MBED OS platform.


[Bug] Missing statics from Thera

As written in https://forums.eveonline.com/default.aspx?g=posts&m=6556052#post6556052:
Please add the following statics as Thera exits:
Thera to NS - E587
Thera to LS - V898
Thera to HS - Q063

Statics for Thera wormhole will be added with the next release

Important:

If you have a private installation for Pathfinder, you have to (re)import the static /export/sql/pathfinder.sql file in order get the new wormhole types!
Clear /tmp/cache/ folder afterwards

New statics:

New "database index" panel on /setup route:


Droid: CardsView.AddChild (Xamarin.Forms.View topView, Xamarin.Forms.View[] views) System.InvalidOperationException: Cannot change ObservableCollection during a CollectionChanged event.

Hi Andrei,
I got a new exception
Version 1.5.8
CardsView.AddChild (Xamarin.Forms.View topView, Xamarin.Forms.View[] views)

System.InvalidOperationException: Cannot change ObservableCollection during a CollectionChanged event.
ObservableCollection`1[T].CheckReentrancy ()
ObservableCollection`1[T].InsertItem (System.Int32 index, T item)
Collection`1[T].Insert (System.Int32 index, T item)
ObservableWrapper`2[TTrack,TRestrict].Insert (System.Int32 index, TRestrict item)
CardsView.AddChild (Xamarin.Forms.View topView, Xamarin.Forms.View[] views)
CardsView.GetViews (PanCardView.Enums.AnimationDirection animationDirection, PanCardView.Processors.ICardProcessor processor, System.Int32[] indeces)
CardsView.SetupNextView ()
CardsView.SetupBackViews ()
CardsView+<SetCurrentView>d__202.MoveNext ()
AsyncMethodBuilderCore+<>c.<ThrowAsync>b__6_0 (System.Object state)
SyncContext+<>c__DisplayClass2_0.<Post>b__0 ()
Thread+RunnableImplementor.Run ()
IRunnableInvoker.n_Run (System.IntPtr jnienv, System.IntPtr native__this)
(wrapper dynamic-method) System.Object.d101e837-9e54-4ce7-ac07-2fd099217b2b(intptr,intptr)

Hi, do you change your itemsSource elements at your code?
I think you should do it in main thread

indeed.. every layout is observable collection...
But that is strange we getting crashes, however I add lock(_childLocker) in all places, where we interact with Children collection.
So, I think, this is Xamarin.Forms bug, probably it would be great idea to send them an issue.
From my side, i will try to catch this type of exception, and retry adding.
The same exception, as I see https://github.com/SimonSimCity/Xamarin-CrossDownloadManager/issues/9

I guess you are right

1.6.1


#7650 Adds rewritable properties to Link onClick event

Hey, I just made a Pull Request!
#7650
I add optional props with action, subject, value, and attributes for override onClick event props
:heavy_check_mark: Checklist

[✅] A changeset describing the change and affected packages. (more info)
[ ] Added or updated documentation
[✅] Tests for new functionality and regression tests for bug fixes
[ ] Screenshots attached (for UI changes)
[✅] All your commits have a Signed-off-by line in the message. (more info)

Wonder if it's possible here to add a noTrack prop or something on the Link component and then you can implement your own tracking in onClick instead which would remove the need for this extension and also provide the added benefit of being able to disable tracking in certain places?

Wonder if it's possible here to add a noTrack prop or something on the Link component and then you can implement your own tracking in onClick instead which would remove the need for this extension and also provide the added benefit of being able to disable tracking in certain places?

Yeah I like it. Is there anything clever we can do with event propagation in our handler to signify this instead of the extra prop? Or is the prop the only or at least a more clear way?


Implement Matrix2x2

Description
This PR includes below traits and its implementation for matrix2x2.

fill
set_diagonal
row_length
col_length
get_row
get_col
transpose
min
abs_min
max
abs_max
trace
determinant
inverse
sum
average
make_zero
make_identity
make_rotation
add
sub
mul
div

hooray!


Builds after 246 fail

...but only on CI. They do not fail on any personal machine I've tested it on.
Branch CI-patch is forked from the last working version

Resolved with #34


Remove all watchers from a repository

Gitea version (or commit ref): 1.7
Database (use [x]):

[x] PostgreSQL

Can you reproduce the bug at https://try.gitea.io:

[x] Not relevant

Description
I've migrated all our corporate repositories to a selfhosted Gitea instance and we're liking it a lot so far.
The migration was done via the REST API for every repository we had on another hosting service.
I'd like to turn on email notifications for mentions and PRs, but the migration sadly added all users as watchers to all repositories.
Is it possible to remove all watcher from all repositories? At the moment developers would get emails even for repositories they don't care about.

What you should keep in mind is that currently all users of a team will watch new repos added to the team by default and i think a new user added to a team will watch all repos of the team automatically.
There is a merged PR for 1.8 (#5852) to disable this automatic behaviour.

DELETE FROM watch was all I had to do and was save to execute.
Gitea needed to be restarted to see the changes in the UI.
The setting from #5852 will fix the original issue, so I'm closing 😄


Calculator does not recognise Central European Number Format in Account View

Defective ToolKit Feature Name: Calculator
Expected Behavior
When a decimal number like 1,25 is in the Value field and the Value 0,5 is added using the Calculator, the Value should result in 1,75
Actual Behavior
The Value results in 1,00
Steps to Reproduce the Behavior

Set Number format to 123.456,78 in Budget Settings
Create a transaction and enter 1,25 in either Inflow or outflow field
open calculator
Add 0,5
click OK

Export of Toolkit Settings (Bottom Left of Settings Page)
[{"key":"accountsClearSelection","value":false},{"key":"accountsDisplayDensity","value":"1"},{"key":"accountsEmphasizedOutflows","value":false},{"key":"accountsRowHeight","value":"1"},{"key":"accountsSelectedTotal","value":true},{"key":"accountsStripedRows","value":true},{"key":"activityTransactionLink","value":true},{"key":"betterScrollbars","value":"1"},{"key":"budgetBalanceToZero","value":true},{"key":"budgetProgressBars","value":"0"},{"key":"budgetQuickSwitch","value":false},{"key":"budgetRowsHeight","value":"1"},{"key":"calendarFirstDay","value":"1"},{"key":"categoryActivityPopupWidth","value":"1"},{"key":"changeEnterBehavior","value":true},{"key":"checkCreditBalances","value":false},{"key":"checkNumbers","value":false},{"key":"collapseExpandBudgetGroups","value":true},{"key":"collapseSideMenu","value":true},{"key":"colourBlindMode","value":false},{"key":"compactIncomeVsExpense","value":false},{"key":"currentMonthIndicator","value":true},{"key":"daysOfBuffering","value":true},{"key":"daysOfBufferingHistoryLookup","value":"12"},{"key":"editButtonPosition","value":"2"},{"key":"enableRetroCalculator","value":true},{"key":"enlargeCategoriesDropdown","value":true},{"key":"enterInRegisterNow","value":true},{"key":"goalIndicator","value":true},{"key":"goalIndicatorWarningColor","value":true},{"key":"googleFontsSelector","value":"2"},{"key":"hideAOM","value":false},{"key":"hideHelp","value":false},{"key":"highlightNegativesNegative","value":false},{"key":"importNotification","value":false},{"key":"incomeFromLastMonth","value":"0"},{"key":"l10n","value":"0"},{"key":"largerClickableIcons","value":true},{"key":"monthlyNotesPopupWidth","value":"0"},{"key":"options.dark-mode","value":false},{"key":"pacing","value":"0"},{"key":"popupCalculator","value":true},{"key":"printingImprovements","value":true},{"key":"privacyMode","value":"0"},{"key":"reconciledTextColor","value":"0"},{"key":"removePositiveHighlight","value":true},{"key":"removeZeroCategories","value":false},{"key":"reports","value":true},{"key":"resizeInspector","value":false},{"key":"rightClickToEdit","value":true},{"key":"runningBalance","value":true},{"key":"seamlessBudgetHeader","value":true},{"key":"showIntercom","value":true},{"key":"splitKeyboardShortcut","value":true},{"key":"splitTransactionAutoAdjust","value":true},{"key":"squareNegativeMode","value":true},{"key":"stealingFromNextMonth","value":true},{"key":"swapClearedFlagged","value":false},{"key":"toBeBudgetedWarning","value":true},{"key":"toggleSplits","value":true},{"key":"toggleTransactionFilters","value":"1"},{"key":"warnOnQuickBudget","value":false}]
System Settings
ToolKit Version: 0.7.8
Operating System (Mac/Windows/Etc): Windows 10
Browser (Chrome/Firefox/Safari): Chrome
Browser Version: 56.0.2924.28 beta (64-bit)
Other Extensions:

I believe this will be fixed if we make #639 locale aware.

This should be fixed in PR #661.

@sevl can you verify this is resolved and close the Issue if it is? Thanks.

Sorry about that. Thanks for checking. I'll look into it.

@sevl can you tell me if the builtin calculator in Windows displays a comma instead of a period? If it does I can make the popup calculator do the same thing. I am assuming you've got your system setup with non-US regional settings. The idea is to make it appear as users in different regions expect it to look.

@sevl a new PR has been submitted that should fix this. After the next release has been built, please verify and let me know if you still encounter incorrect results.

@dbaldon sorry, i was caught up in work and then forgot to react to your comment from jan 29th. I've got two machines i'm using the Toolkit on. Both are principally in German, but my work issued one seems to have some strange settings as the windows-calculator actually has a period as the decimal separator instead of the comma, which would be expected in a german OS. this was the machine on which i had the results i posted on january 26th. But on my machine at home (where the dcimal separator is a comma) the calculator doesn't give the right results, but i think they differ a little. if it helps i can run the same set of calculations i posted on jan 26th and their result on my home machine.
thank you for your work on this!

The PR I mentioned above adjusts the character on the pop-up calculator to match the currency setting for the budget. So in your case it should display a comma. I do appreciate your help in getting this fixed. Especially the list of things you entered several posts back. It really helps a develop track down problems.

After todays update the calculator works as expected on my end. Thank you for your great work on this!

Finally!! Thanks for all your help!


Similar to gravity.distances

Hi Mauricio,
I have been working on a similar package that could similarly be integrated with the gravity package: https://github.com/julianhinz/gravity.distances
The distances provided there are in essence a continuation of the CEPII GeoDist methodology. These distances will likely also soon be provided on the CEPII website.
Maybe we join forces for the package?
Best
Julian

yes !!!
actually, a few days ago I created this
https://github.com/pachamaltese/geodist
how do we proceed?
—————
Mauricio Vargas Sepúlveda 帕夏
Do you like Data Science? visit pacha.hk
你爱科学数据专吗？你走pacha.hk
On Wed, Aug 19, 2020 at 7:05 AM Julian Hinz<EMAIL_ADDRESS>wrote:

Hi Mauricio,
I have been working on a similar package that could similarly be
integrated with the gravity package:
https://github.com/julianhinz/gravity.distances
The distances provided there are in essence a continuation of the CEPII
GeoDist methodology. These distances will likely also soon be provided on
the CEPII website.
Maybe we join forces for the package?
Best
Julian
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/pachamaltese/geodist/issues/1, or unsubscribe
https://github.com/notifications/unsubscribe-auth/ACM7UOMSGTEYNPVUZY2CH2DSBOWWZANCNFSM4QE2ARUQ
.

@julianhinz hi, did you look at the previous post?


Officially archive this repository.

With Scrivid being worked on, I'm at the point where I'm making some good progress, and soon I think I'll officially archive this repository. The reason I haven't done so yet, is because of the fact that the first sample script (which is meant to be the same in the new version), isn't finished yet. I'm still missing MoveAdjustment, which will change two ImageReference's position in the video.
To be clear, here's my criteria before I feel ready to archive this project:

[x] Scrivid's MoveInstruction is implemented and working.
[x] I have changed the license for this repository to MIT.
[x] I have updated the README file to indicate that this project is archived.
[X] I have closed all of the remaining issues in this repository.

That's it. I finished MoveAdjustment, so I'm ready to say goodbye to this old project. I'm proud with how far I got! :)


Adding PowerPlatform swagger.

MSFT employees can try out our new experience at OpenAPI Hub  - one location for using our validation tools and finding your workflow.

Contribution checklist:

[ ] I commit to follow the Breaking Change Policy of “no breaking changes
[ ] I have reviewed the documentation for the workflow.
[ ] Validation tools were run on swagger spec(s) and errors have all been fixed in this PR. How to fix?

If any further question about AME onboarding or validation tools, please view the FAQ.
ARM API Review Checklist

[x] Ensure to check this box if one of the following scenarios meet updates in the PR, so that label “WaitForARMFeedback” will be added automatically to involve ARM API Review. Failure to comply may result in delays for manifest application. Note this does not apply to data plane APIs, all “removals” and “adding a new property” no more require ARM API review.

Adding new API(s)
Adding a new API version
Adding a new service

[ ] If you are blocked on ARM review and want to get the PR merged with urgency, please get the ARM oncall for reviews (RP Manifest Approvers team under Azure Resource Manager service) from IcM and reach out to them.

Breaking Change Review Checklist
If there are following updates in the PR, ensure to request an approval from API Review Board as defined in the Breaking Change Policy.

[ ] Removing API(s) in stable version
[ ] Removing properties in stable version
[ ] Removing API version(s) in stable version
[ ] Updating API in stable version with Breaking Change Validation errors
[ ] Updating API(s) in preview over 1 year

Please follow the link to find more details on PR review process.

/azp run automation - sdk

/azp run automation - sdk

@rapatank, please fix the CI check failures.

/azp run automation - sdk

/azp run automation - sdk

/azp run automation - sdk

/azp run automation - sdk

/azp run automation - sdk

/azp run automation - sdk

/azp run automation - sdk

/azp run automation - sdk

/azp run automation - sdk

/azp run automation - sdk

@NullMDR , can you have a look at the SDK Python failures?

It's because autorest moduler1 failed:
[AutoRest] FATAL: System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.
[AutoRest]    at System.ThrowHelper.ThrowKeyNotFoundException()
[AutoRest]    at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
[AutoRest]    at AutoRest.Modeler.SwaggerModeler.Build(ServiceDefinition serviceDefinition) in C:\Users\ci\AppData\Local\Temp\PUBLISHu1dw1\44_20171214T003644\autorest.modeler\src\SwaggerModeler.cs:line 128
[AutoRest]    at AutoRest.Modeler.Program.d__2.MoveNext() in C:\Users\ci\AppData\Local\Temp\PUBLISHu1dw1\44_20171214T003644\autorest.modeler\src\Program.cs:line 60
[AutoRest] --- End of stack trace from previous location where exception was thrown ---
[AutoRest]    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
[AutoRest]    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
[AutoRest]    at NewPlugin.d__15.MoveNext()
[AutoRest] FATAL: python/imodeler1 - FAILED
[AutoRest] FATAL: Error: Plugin imodeler1 reported failure.
[AutoRest]   Error: Plugin imodeler1 reported failure.

@qiaozha @sonnyhcl for help on autorest failure

/azp run automation - sdk

/azp run automation - sdk

/azp run automation - sdk

/azp run automation - sdk

/azp run automation - sdk

/azp run automation - sdk

/azp run automation - sdk

@qiaozha @sonnyhcl for help on autorest failure
autorest moduler1 failed:
[AutoRest] FATAL: System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.
[AutoRest] at System.ThrowHelper.ThrowKeyNotFoundException()
[AutoRest] at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
[AutoRest] at AutoRest.Modeler.SwaggerModeler.Build(ServiceDefinition serviceDefinition) in C:\Users\ci\AppData\Local\Temp\PUBLISHu1dw1\44_20171214T003644\autorest.modeler\src\SwaggerModeler.cs:line 128
[AutoRest] at AutoRest.Modeler.Program.d__2.MoveNext() in C:\Users\ci\AppData\Local\Temp\PUBLISHu1dw1\44_20171214T003644\autorest.modeler\src\Program.cs:line 60
[AutoRest] --- End of stack trace from previous location where exception was thrown ---
[AutoRest] at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
[AutoRest] at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
[AutoRest] at NewPlugin.d__15.MoveNext()
[AutoRest] FATAL: python/imodeler1 - FAILED
[AutoRest] FATAL: Error: Plugin imodeler1 reported failure.
[AutoRest] Error: Plugin imodeler1 reported failure.

/azp run automation - sdk

/azp run automation - sdk

/azp run automation - sdk

/azp run automation - sdk

/azp run automation - sdk

/azp run automation - sdk

Hi @rapatank ,
would you confirm the allOf of the "encryption" here is expected? https://github.com/Azure/azure-rest-api-specs/blob/powerplatformrp/specification/powerplatform/resource-manager/Microsoft.PowerPlatform/preview/2020-10-30-preview/enterprisePromise.json#L438
the modeler1 can get pass if  allOf there is removed.

/azp run automation - sdk

/azp run automation - sdk

/azp run automation - sdk

@raych, Would it be possible to help with the sdk failures, it looks to be related to SDK Go.
thanks!

Hi @rapatank ,
would you confirm the allOf of the "encryption" here is expected? https://github.com/Azure/azure-rest-api-specs/blob/powerplatformrp/specification/powerplatform/resource-manager/Microsoft.PowerPlatform/preview/2020-10-30-preview/enterprisePromise.json#L438
the modeler1 can get pass if allOf there is removed.

Thanks, resolved the error.

/azp run automation - sdk

/azp run automation - sdk

/azp run automation - sdk

/azp run automation - sdk

/azp run automation - sdk

/azp run automation - sdk

Please go through the contribution checklist added as part of the review and mark them completed. This is a requirement before review can be continued.

/azp run automation - sdk

Please go through the contribution checklist added as part of the review and mark them completed. This is a requirement before review can be continued.

@rapatank , could you reply chiragg4u if you complete above ask to start ARM review?

/azp run automation - sdk

Please resolve the model validation failures

/azp run automation - sdk

/azp run automation - sdk

/azp run automation - sdk

Looked at the changes, API's seems to be OK and has been reviewed by the team internally. Marking ARMSignOff based on the discussion.