Question on outlier handling

Hi - great work! Wanted to ask a bit more just to understand quality degradation from fp16 (if it's significant). With int8 from bitsandbytes it accounted for outlier features, does this do the same? I can't quite find much information on the process or if it does tricks or if it has noticeable performance changes from a bitsandbytes int8 version. Thanks!

@jerryMeng100  eetq 8 bit can be regarded as a high-performance cutlass implementation of w8a16(per-channel). From the perspective of the PPL, even without correcting for outliers, the performance of the w8a16 per-channel quantization is already very good.
Although there is no direct comparison with LLM int8, there is almost no loss in accuracy compared with float16. Below is from https://browse.arxiv.org/pdf/2303.08302.pdf Table.2


Spd brazil

I think you have 3 too may commits in this PR — you need to have your branch even with master (do a reset --hard upstream/master before starting any new work)

That is true. I didn't realize it.


float32 convert to float64 may lose precision

since sonic use 64-digit precision by default, if u marshal a float32 number like 0.1, it will be json '0.10000000149011612' —— this is ok for decoded into another float32 object (still 0.1). However, if it is decoded into a float64 object, the value is 0.10000000149011612 —— instead of expected 0.1
func TestMarshalFloat32264(t *testing.T) {
	var f float32 = 0.1
	oe,ee := json.Marshal(f)
	os,es := sonic.Marshal(f)
	require.Equal(t, ee == nil, es == nil)
	// require.Equal(t, string(oe), string(os))

	var f2,f3 float64
	require.Nil(t, json.Unmarshal(oe, &f2))
	require.Nil(t, sonic.Unmarshal(os, &f3))
	require.Equal(t, f2, f3)
}

output:
--- FAIL: TestMarshalFloat32264 (0.00s)
    /Users/admin/Desktop/kitex/sonic3/issue_test/issue112_test.go:50:
        	Error Trace:	issue112_test.go:50
        	Error:      	Not equal:
        	            	expected: 0.1
        	            	actual  : 0.10000000149011612
        	Test:       	TestMarshalFloat32264

could this be intended behavior?
because in computer science, you can ONLY compare floats using
Math.Abs(a-b)<1e-8 instead of a==b

moreover, python has no float32 but float64, and JSON could be consumed by a python program

fixde by #291


Add 'Random mismatches' button

Bug: T302289

Would it make sense to add a browser test for this?


WIP sortable

What I want to achieve:

simple usage
small and simple components
under 5 inputs + under 5 outputs
What is missing:
BsSortableConfig

I think users should be able to

{{index}}>

should be enough to start using a sortable feature
the other thing, that there are could be bs-sortable-list and bs-sortable-tree components...
@Le0Michine what do you think?

plus bigger part of logic could be moved to injectable config

@valorkin Actually for easy start there is a Sortable component it can render string items or custom template out of box. Regarding directives, in current implementation they rely on items list which is passed into *ngFor, they don't reorder dom elements but only items in passed collection so *ngFor does all the rendering stuff, unfortunately now I don't see how to avoid passing items list into the DropZone directive

@valorkin agree about logic, it needs some refactoring


fixing naming and correcting implied volatility vega call

renaming variables to make better sense, fixing the Implied volatility vega function call of interchanging t and v
removing the string comparison, as the approximation for implied volatility is a tight loop

Yes, I see how the long variable names are more clear. In my defense, those letters are the common ways to express those values in textbooks (i.e. 'v' for vega i.e. volatility, example: https://g.co/kgs/E5sbwm).
But if this was production code, I would need to request to have the existing interface maintained which passed the "C" and "P" for the option type(*).  It would be fine to maintain the change to bool internally, and the existing interface would simply set the bool callType based on the incoming "C" or "P".  But as this isn't production code to my knowledge, then the change to bool is cool!
(*) side note: I did choose the string "C" or "P" for the option type test intentionally, instead of a bool, because the string could support some further expansion if another option type was ever invented like a "Exchange" option type or something. But hey, that's very unlikely right? I also wanted the type to be clear from the value being passed.


Fixed Entity PressurePlate will triggered by Ghost

Fixed Entity Pressure Plate will be triggered by Others from CelesteNet
Added multiplayerMode Value for PressurePlate, that make Pressure Plate can triggered by Others from CelesteNet

This was discussed in Celestecord a few months ago, decided not to address it within Factory Helper. If something needs to change, it would be how the Ghost class in CelesteNet handles collisions.
Discussion 1
Discussion 2
Closing PR for now.


Cannot read property 'toCSS' of undefined

Getting Cannot read property 'toCSS' of undefined on VS Code 1.7.0

Moved to VS Code Extention GitHub.


Implement Forms authentication without Membership-provider to enable development on machines outside of server-domain

If Windows authentication is enabled on Appclusive API then we need to send credentials.
To call API as trusted call (in UI loggid in user) works on UI server within the same domain as the API server.
All our develpop machines are not in this domain.
If FormsAuthentication is enabled in Web.config
    <authentication mode="Forms">
      <forms loginUrl="login" />
    </authentication>

then the user gets prompted to login with credentials for the API server. They do not get verfied but used for login on the API.
if windows authentication is used it all works without login and trusted calls on API
    <authentication mode="Windows" />

Store Credential object instead of credentials in session. Then Forms authentication can be used in lab 3 too


Swift Generics

In my project I have a couple of RLMObject definitions which contain to-many relations to different models. For example, I have the following object:
class Room: RLMObject {
	dynamic var name: String = "";
	dynamic var devices = RLMArray(objectClassName: BaseDevice.className());
	dynamic var identifier: String = "";
}

The devices property contains an array of objects with the type BaseDevice. Once I created a Room object, I can get an object from this array using the objectAtIndex.
var device = room.devices.objectAtIndex(0);

But the way this works now this code gives me a RLMObject instead of a BaseDevice. This needs to be cast to the right type for me to access the right properties. To fix this for myself, I created an extension on the Swift Array like this:
static func fromRealmArray(array: RLMArray) -> [T] {
	var returnArray = [T]();

	for (var index: UInt = 0; index < array.count; index++) {
		returnArray.append(array.objectAtIndex(index) as! T);
	}

	return returnArray;
}

This way I can do the following (where the room! object is of type Room as shown above). The result of this method is a nice [BaseDevice].
var devices = Array<BaseDevice>.fromRealmArray(room!.devices);

Proposal
What I would love to see is generics being implemented here, where the definition of the devices property in my Room model could be something like this:
dynamic var devices = RLMArray<BaseDevice>();

This would be closer to the type-safe Array of Swift. The same thing could of course be said about RLMResults and other methods returning a RLMObject where a specific type is specified.

Hi @depl0y, we'll soon be releasing a new Swift interface which will include support for generics. You can try it out under RealmSwift.xcodeproj in the root of this repo, but keep in mind, our support for this will be limited until we officially launch it in the coming weeks.

Yeah, I think I will do that, but maybe after a Podspec for the Swift version is ready.
Just saw #1705 appear ;)


Configure simple search.

Doesn't have to be a fancy full text search with suggestions, etc. For no regular search will suffice.

Added simple search using Eloquence\Searcheable trait.


[4.2] Merge browse fields

Merge the browse and browse_multiple fields into a single field, so all features are shared.
Fixes https://github.com/Laravel-Backpack/CRUD/issues/2794
To Do:

[x] Check if no functionality of the browse field is accidentaly removed now
[x] Decide wether or not to call .replace(/\\/g,"/") on elFinder output
[x] Update docs

A new inspection was created.

The inspection completed: No new issues

So clean! Thanks a lot for taking the time to do this @jnoordsij ! The diff doesn't do it justice - I assume you've just copy-pasted the code from browse_multiple to browse, that's the actual difference between the old browse and the new browse?

Love the fact that you added those leftover tasks. Could you please explain them a little bit?

Check if no functionality of the browse field is accidentaly removed now

Totally agree.

Decide wether or not to call .replace(/\/g,"/") on elFinder output

Hmm why? Which one had it? What would that do?

Update docs

I don't really feel this is needed - as far as the user is concerned, it's the same exact API. But... we could add a notice inside the browse_multiple field type that it will be deprecated in the next version, and just use browse with multiple true`. So ok, maybe I do agree on this one too 😆

So clean! Thanks a lot for taking the time to do this @jnoordsij ! The diff doesn't do it justice - I assume you've just copy-pasted the code from browse_multiple to browse, that's the actual difference between the old browse and the new browse?

Yes, I actually did it in 3 separate commits so that git would understand, but appearently the global diff still lists it as changes to the browse field. However the git history and blame on the 'new' browse field correctly shows all edits to the old browse_multiple field.

Love the fact that you added those leftover tasks. Could you please explain them a little bit?

Check if no functionality of the browse field is accidentaly removed now

Totally agree.

Decide wether or not to call .replace(//g,"/") on elFinder output

Hmm why? Which one had it? What would that do?

It was in the old browse field and was actually quite convenient, as elFinder by default uses the php constant DIRECTORY_SEPARATOR. On Windows installations this would mismatch with the forward slash that Laravel uses for file paths, so I needed this as well in my local development environment. I think it is a convenience feature that breaks little things (as I doubt many people actually relied on Windows directory separators), but I can make it into an optional parameter.

Update docs

I don't really feel this is needed - as far as the user is concerned, it's the same exact API. But... we could add a notice inside the browse_multiple field type that it will be deprecated in the next version, and just use browse with multiple true`. So ok, maybe I do agree on this one too 😆

Yeah, I'd say it is easier to only document the browse field, so that if you would ever add more features, it spares you the effort of documenting it at both places or else have users missing out on it because the picked the wrong field ;)

Hello @jnoordsij
Thanks for submiting a PR. Indeed this is something we should do, there is no sense in having both fields with a simple flag that differentiates them.
I just spotted some aesthetical changes.
Before you had:

now it's:

Also in browse single, we are allowing people to select more than one file, and then just grab the first in the list. I am ok with that.
Apart from that in my tests it's working as before.
@tabacitu is this aesthetical change something to tackle or nvm ?

A new inspection was created.

Thanks for the testing! I saw that the old browse field allowed overriding of the readonly attribute, so I copied that. So everything should be functioning in the same way now.

The inspection completed: No new issues

Yes, I actually did it in 3 separate commits so that git would understand, but appearently the global diff still lists it as changes to the browse field. However the git history and blame on the 'new' browse field correctly shows all edits to the old browse_multiple field.

Awesome @jnoordsij - I see it now, perfect!

Also in browse single, we are allowing people to select more than one file, and then just grab the first in the list. I am ok with that.

@pxpm yeah... that's what browse did before this PR too. I'm ok with it too 👍

is this aesthetical change something to tackle or nvm ?

I think one line is much better for single browse, from a UI perspective. Paths are rarely very long - so it makes little sense to use two lines when one will do. If you only have one browse field in a form, it doesn't make much of a difference. But when you have 5 of them, it's 5 lines that you could have gotten rid of. You get a much shorter form without them. That's especially important when used in repeatable.
Another pain point would be when used with size() or wrapper['class'], to make it half the size or something. If the new single browse spans across two lines, it won't look good alongside a simple text field - one would take up one line, the other would take up two lines. So I guess we shouldn't really push this as a non-breaking change to people, unless it show the same as before - on a single line for single browse, on multiple lines for multiple. Otherwise we might make their forms a little uglier.
On the other hand, to achieve this better UI for single browse, we have to bloat up the blade file quite a bit with an if statement... But if it doesn't get too bloated, I think it's worth it.
Thanks for spotting this @pxpm , it's indeed something that's important.

I just had another look at this, and still like it A LOT, but I still think we should provide a one-line solution for single browse... 😞
@jnoordsij are you available to work on this a little bit more? To make the single-file-picker one-line like it was in browse? Or should @pxpm or I do this ourselves?
Thanks again for all the work you've put into this - much appreciated.
Cheers!

I'll try to squeeze it in somewhere later this week. Will keep you posted!

A new inspection was created.

@tabacitu this seems to work for me, let me know your findings!

The inspection completed: No new issues

Awesome! Thanks a lot @jnoordsij !
@pxpm double-check please?

A new inspection was created.

Closing in favor of #3952 which contains this branch with merge conflicts resolved. Thanks @pxpm !


CAPI engine: add support for RSA_NO_PADDING [1.0.2]

Since the SSL code started using RSA_NO_PADDING, the CAPI engine became
unusable.  This change fixes that.
Fixes #7131

I took this out of WIP (had forgotten about that...)

This didn't cherry-pick cleanly up the releases, so there's a port in #7174

Pushed.


Redirect old build number docs

We can write a redirect for api.dartlang.org/SOME_BUILD_NUMBER to api.dartlang.org/build/SOME_BUILD_NUMBER
cc @keertip is that correct?

This is not just for old docs, but also for dev and stable.

Build numbers older than 136051 should be redirected to stable.


Assignment of query and response pipes

I have a child process created by child_process.exec(), and the main process needs to query the child on stdin.   The parent needs to read the response synchronously, which comes back on stdout.
Could you add a way to re-assign pipes (including stdio[3] and above preferably) as options?

Hi tk44
Sorry but, I can't understand your post perfectly, because my English is no good.
Do you mean that the child process calls question() method? And, the parent process can't get some output of child process? (e.g. process.stdout.write(readlineSync.question('Name? :'))). Or, the child process can't read from TTY?
Can I see sample code?
BTW, stdio[3] is not needed. That reads from fd:0 (STDIN).

Sorry if I confused you.   The normal way to talk to a child process under Node is to send  query/question/request through the parent's std'in' and receive responses on the parent's std'out'.  First two examles on:
http://www.graemeboy.com/node-child-processes
demonstrate this by displaying parent's stdout on the console to show what the parent received from the child.
A parent process normally uses stdout for outgoing and stdin for incoming messages, but the communication with a child process normally use them in the reverse order, so that the child would not tie-up the two pipes.  This way, the parent can send messages to the outside world through stdout, and can use stdin to send messages 'to' the child, as they are both two-way i/o channels.
When the parent sends a query to the child, it's like process.'stdin'.write(readlineSync.question('Name')), and the response comes back on the parent's std'out', like process.'stdout'.on() for the parent to read it.  Parent can read child.stdout directly and can write to child.stdin directly, but starting and killing the child process are normally not under control by the data reading functions.
So what I am asking for is an option like 'reverse_pipes' to flip stdin (for questions) and stdout (for answers), or an optional free assignment like "query_ch = stdio[0]" and "response_ch = stdio[2]".  (What is the default assignment for stdio[3] (assigned to stdin) and above, and where Node would go in the future (customFd has been removed, but more use of child_process --hence the requirement for more i/o channels-- seem certain) is outside of the scope here.)   Have I made myself clear enough?

I think that you might have misunderstood about STDIN/OUT...
You said "talk to a child process under Node via parent's STDIN/OUT", right?
But, the standard streams are assigned to each process. The parent's STDIN/OUT usually are TTY. Not only Node.
Those usually are given by the caller. The parent's standard streams have absolutely nothing to do with the own standard streams for the child. And, the standard streams of a process that is started by shell are TTY(console) as default.
So, parent's STDIN/OUT you said is TTY, not child. Therefore that STDIN is NOT used to send messages to the child. Also, that STDOUT is NOT used to read child's response. (That is TTY, but an error will be thrown, because that is not writable. The your process.stdin.write() means "Write something to the keyboard".)
The parent assigns something as child's STDIN, and the standard streams are chosen by you, not readlineSync, but of course you don't have to change those channels for talking to a child. And also, of course it's not only Node.
You can access the standard streams of the child via child.stdin/out/err.
http://nodejs.org/api/child_process.html#child_process_child_stdin
For example:
parent.js
var child = require('child_process').spawn('node', ['child.js']),
  res = '';
// Write to child's STDIN, not parent's STDIN. (own one)
child.stdin.write('Hello', function() { child.stdin.end(); });
// Read from child's STDOUT, not parent's STDOUT. (own one)
child.stdout.on('data', function(chunk) { res += chunk; });
child.on('close', function (code) {
  // Write to own STDOUT.
  console.log('Exited Code: ' + code);
  console.log('Child said: ' + res);
});

child.js
var input = '';
process.stdin.resume();
// Read from STDIN, not STDOUT.
process.stdin.on('data', function(chunk) { input += chunk; });
process.stdin.on('end', function() {
  // Write to STDOUT, not STDIN.
  console.log('I am a child, I received: ' + input);
  process.exit();
});

node parent.js
Exited Code: 0
Child said: I am a child, I received: Hello

So, do you want to use readlineSync in a child process?
Try this:
parent.js
require('child_process')
  .spawn('node', ['child.js'], {stdio: 'inherit'})
  .on('close', function (code) {
    console.log('Exited Code: ' + code);
  });

child.js
console.log('ANSWER: ' + require('readline-sync').question('Name? :'));

Thanks for the message.  I appreciate your time and effort on this.
Many of the things you said are correct.  As I said above, "Parent can read child.stdout directly and can write to child.stdin directly", so your first parent.js example works as you expect it.
However, suppose your child process is designed to kill itself right after it sends the response message "I am a child, I received: Hello" (probably because receiving one (or 20 or 10000) query and responding with one (or 20 or 10000) answer is the purpose of the child worker threads that are required to do a lot of CPU intensive processing in coming up with the response).
In this case, right after the (last) data is sent, the child process dies, leaving the sent data and parent process unstable because the 'child' object disappears mid-process, including child.stdio.  Further imagine if there are 10 or more worker threads working for the parent process.  The parent needs to monitor 10 or more channels for .on() events in this case.
This is why replacing the lines with:
// Write to parent's STDIN, not child's STDIN.
stdin.write('Hello', function() { process.stdin.end(); });
// Read from parent's STDOUT, not child's STDOUT.
stdout.on('data', function(chunk) { res += chunk; });
is usually a better practice because parent's own stdio don't disappear, and this is the way demonstrated on the child_process URL I mentioned above (yes, without any background info and reasons on pipe assignments :).  Because the default pipe assignments on child_process is child.stdout to parent stdout, and parent stdin to child.stdin, the code with the above replacement normally works.   And this way, you can see what the parent outputs on stdout on TTY and what you type on the keyboard is still received by the parent through stdin.
(Using child_process.fork() for spawning child Node process as in your example is also a better practice, JFYI.)
In any event, do you understand why there may be cases where I want to use readline-Sync with its question and answer i/o channels reversed now?

Sorry, I can't understand your post perfectly, my English is no good.
Therefore I requested your sample code before.
Anyway, you can assign another stream to child's stdin/out very easily. Just specify it stdio. And if you want to get child's response absolutely, call stream.end() before it kills. By doing so, the parent get an event and read all data.
So, I asked you "do you want to use readlineSync in a child process?", and then is your answer "No"? I don't know you use readlineSync for what. You might want "Synchronous Process Execution" of Node, not readlineSync.

Please consider my code example is:
// Write to parent's STDIN, not child's STDIN.
stdin.write('Hello', function() { stdin.end(); });
// Read from parent's STDOUT, not child's STDOUT.
stdout.on('data', function(chunk) { res += chunk; });

I want to send a question to child process, and receive answer from child process, synchronously.

I know I have other options, but I want to use readline-sync in parent process to do this.

I do not want to reassign stdio of the parent.  And I do not want parent to access child.stdio directly.

Simply reversing stdin and stdout within readline-Sync will make this possible.

Current readline-Sync does not allow me to do this.

I am asking for adding an option to readline-Sync to do this.

Sorry, you may be feeling irritable, but I don't know what you want because I don't see your code.
I tried process.stdin.write('Hello', function() { process.stdin.end(); }); as you said, but of course an error was thrown as I said, because that is not writable. If you executed the code completely, that code is different from above.
In the cases which use many child processes like httpd or Web crawler, the controller that is parent starts the children, and it sends/receives data via the streams that is not reversed. Therefore, those programs work without errors.
I can't understand "reversing stdin and stdout", because readlineSync assigns nothing. It just reads and writes via the streams (and TTY) assigned by caller, as usual programs. That is, the streams are chosen by you (caller), not readlineSync. Therefore I don't know how to change it.
If you absolutely can't show me your sample code, you show me example that accesses child.stdio NOT directly or reverses the streams, and I might understand it. Or rewrite code of readlineSync, and send me pull request please. I'll check that.
Anyway, I still think that Synchronous Process Execution may help you, if you want to send to child and receive from child, synchronously.
Node 0.11+
result = require('child_process').execSync('child-program');
console.log(result);

13 days have passed.
I think that this problem was already solved, and I close the issue.
If not solved, please reopen it.


Arc crashes on ESLint parse errors

ruleId comes out to be None for babel-eslint. I fixed by changing to $offense['ruleId'] || 'unknown'
https://github.com/pinterest/arcanist-linters/blob/24c6667187f941dbe39c38efd5961f0a09b17f1b/src/ESLintLinter.php#L166

Thanks, @michaelmwu! Would you mind submitting a Pull Request with your fix? Otherwise, I'll try to get to this myself some time soon.

https://github.com/pinterest/arcanist-linters/pull/22

Thanks!


Declare contents of tail call maps in map declarations

Now #24876 is merged, we no longer need to worry about retaining compatibility with iproute2's ELF loader.
Currently, there are 4 remaining prog arrays that use the legacy struct bpf_elf_map:

POLICY_CALL_MAP
POLICY_EGRESSCALL_MAP
CALLS_MAP
CUSTOM_CALLS_MAP

This issue is for:

Update these map definitions to use BTF map definitions. Values can be declared using typical C syntax instead: https://github.com/cilium/ebpf/blob/5b305b240a5aeea9d473631ed50b1c4c5d3af76d/testdata/btf_map_init.c#L19-L23.
Remove the need for CILIUM_CALL_* macros with manually-allocated identifiers. This could be done using a fn->id lookup function that contains a jump table populated using a COUNT macro.
Update ep_tail_call() to take the above changes into account. Ideally, it would be called using the actual function reference, like ep_tail_call(ctx, tail_handle_ipv6) instead of ep_tail_call(ctx, CILIUM_CALL_IPV6_FROM_NETDEV).
Remove hooking up tail calls to prog arrays from pkg/bpf.iproute2Compat().
Remove struct bpf_elf_map.

One option could be declaring POLICY_CALL_MAP as
struct {
	__uint(type, BPF_MAP_TYPE_PROG_ARRAY);
	__type(key, uint32_t);
	__type(value, uint32_t);
	__uint(max_entries, POLICY_PROG_MAP_SIZE);
	__array(values, int());
} prog_array_init __section(".maps") = {
.values =
	{
		[TEMPLATE_HOST_EP_ID] = &handle_lxc_traffic,
	},
}

(the downside of this approach is that we'll need FWDs for all tail calls anyway)
The resulting MapSpec.Contents will have a single MapKV{Key: 0xffff, Value: prog_fd} entry that will be inserted when the map is loaded from a pin during collection load. Each ELF will result in a different .Contents based on the value of TEMPLATE_HOST_EP_ID at compile time.

Hey @Jack-R-lantern, thanks for the interest! This one is going to be a bit tricky even for committers, but of course you're free to work on it. With the proposal I put forward in the OP, the order of tail calls in the prog arrays might change, so #20691 would be a requirement for the tail call map conversion to land. Would you be willing to pick this up instead?

Sure! thanks please assign #20691

Your outline doesn't account for gems such as __section_tail(CILIUM_MAP_POLICY, TEMPLATE_HOST_EP_ID) where we rely on changing the HOST_EP_ID to update a different slot for each ELF load. Any idea how to tackle that?

Closing the loop on this with https://github.com/cilium/cilium/pull/29307. ELFs should be very careful inserting entries into shared prog arrays, as doing so means making code reachable from the rest of the system. Adding an entry to such a global prog array is basically the equivalent of attaching an entrypoint. It should not be done as part of loading an ELF, as the control flow of its various programs is only guaranteed to be sane after all (internal) tail call maps have been populated.
As such, inserting these programs should be delegated to the code responsible for loading Endpoints. That code already has knowledge of the endpoint ID, so it can easily insert a prog into policy call map(s).


[DOC]: Add interview question to JSON file

We are collecting often asked interview questions for Web Developers. Before adding questions and answers, please make sure if the question is already added or not. Use the search option to search your questions Ctlr+F/ cmd+F
path src/json/interview/
Topics:

i would like to participate in it

Assigned @yugborana

Anyone can work on this issue

I have a bunch of questions that I would like to add , Can I ? @devvsakib

sure @ArslanYM

Merged #223
PR: @ArslanYM

I'd like to help add some questions!

Assigned @Jrobbins973

I have added a question based on react
PR #240

I have added question based on typescript
PR #275

Hello, I would like to add a Javascript question. Kindly assign me

I have added a question.
PR: @david-mbugua #304

Merged #304
PR: @david-mbugua

Hey @devvsakib I am ok with the topics listed in the issue. Could you please assign me and I would like to contribute some frequently asked interview questions.

Assigned @HemanthPaila

Hey @devvsakib I am getting an error that will push code into the repo.

remote: Permission to devvsakib/power-the-web.git denied to HemanthPaila.
fatal: unable to access 'https://github.com/devvsakib/power-the-web.git/': The requested URL returned error: 403

you should add your forked repo instead my repo. remove git origin URL and set your forked repository url

ok @devvsakib.

@devvsakib I made a PR #348 could you please review and merge it?

Hello, I would like to add a Javascript question. Kindly assign me

Assigned @vim12345


unable to get domain type on ARM

I'm often getting the following in response to running xl create on cubieboard2, for example...
any advise on where to start debugging this?
$ sudo xl create -c stackv4.xl
Parsing config from stackv4.xl
libxl: error: libxl_dom.c:35:libxl__domain_type: unable to get domain type for domid=2
Unable to attach console
libxl: error: libxl_exec.c:118:libxl_report_child_exitstatus: console child [0] exited with error status 1
``

out of memory?

On 22 Jan 2015, at 17:35, Heidi-ann<EMAIL_ADDRESS>wrote:
I'm often getting the following in response to running xl create on cubieboard2, for example...
any advise on where to start debugging this?
$ sudo xl create -c stackv4.xl
Parsing config from stackv4.xl
libxl: error: libxl_dom.c:35:libxl__domain_type: unable to get domain type for domid=2
Unable to attach console
libxl: error: libxl_exec.c:118:libxl_report_child_exitstatus: console child [0] exited with error status 1
``
—
Reply to this email directly or view it on GitHub https://github.com/mirage/xen-arm-builder/issues/46.

nope, only got dom-0 running, using 512

no VIF in the xl configuration file then.

On 22 Jan 2015, at 17:57, Heidi-ann<EMAIL_ADDRESS>wrote:
nope, only got dom-0 running, using 512
—
Reply to this email directly or view it on GitHub https://github.com/mirage/xen-arm-builder/issues/46#issuecomment-71065976.

This means the unikernel exited before dom0 could attach the console. Add this to the Xen config file to see the real error:
on_poweroff = 'preserve'

thanks guys, @avsm was right about the stack4 example and @talex5 that does give more information, in some of the other examples

heidi -- any chance you could write a quick FAQ about this (a couple of paras is fine) -- can stick it into a 'common errors on xen arm blog post'

ok, will do

Actually, I think we could just fix this rather than documenting it (not tested yet):
https://github.com/talex5/mirage-platform/commits/exit-status

This will be in mirage-xen.2.1.3 in ocaml/opam-repository#3443

I'm updating now, I'm still seeing this issue for unikernels with block devices, see xl file below so hopefully this update will help debug this:
cat block_test.xl
# Generated by Mirage (Thu, 1 Jan 1970 00:18:27 GMT).

name = 'block_test'
kernel = '/home/mirage/mirage-skeleton/block/mir-block_test.xen'
builder = 'linux'
memory = 256
on_crash = 'preserve'

# You must define the network and block interfaces manually.

# The disk configuration is defined here:
# http://xenbits.xen.org/docs/4.3-testing/misc/xl-disk-configuration.txt
# An example would look like:
disk = [ '/dev/loop0,,xvda1,w']

fix seems to working for me, gone from the previous error to
Block.connect /home/mirage/mirage-skeleton/block/disk.img: unable to match '/home/mirage/mirage-skeleton/block/disk.img' to any available devices [ 51713 ]
Block.connect /home/mirage/mirage-skeleton/block/disk.img: could not find device
Fatal error: exception Failure("block1")
Raised at file "src/core/lwt.ml", line 788, characters 22-23
Called from file "main.ml", line 31, characters 2-28
Mirage exiting with status 2

which is much more helpful
Thanks guys :)


Update reblock usage to rechunk

Follow-up to PR ( https://github.com/dask/dask-ml/pull/187 )
Addresses https://github.com/dask/dask/issues/3569
Replaces https://github.com/dask/dask/pull/3570
The reblock method was an older method used by Dask Array. It has long since been renamed to rechunk. This updates dask_ml's _partial module to use rechunk instead.
cc @convexset @mrocklin

Oops...completely overlooked PR ( https://github.com/dask/dask-ml/pull/203 ). Closing in favor of that one.


fix: create pg bug with a mirror version

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 0.00%. Comparing base (885c3fd) to head (89389f9).

Additional details and impacted files
@@          Coverage Diff          @@
##            main   #1368   +/-   ##
=====================================
  Coverage   0.00%   0.00%
=====================================
  Files         69      69
  Lines       6685    6685
=====================================
  Misses      6685    6685

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

/cherry-pick release-1.0-beta


fix: nil query in closure when using mapping

Should fix https://github.com/nvim-treesitter/nvim-treesitter-textobjects/issues/278 edit: actually not sure whether it fixes the issue as a whole or rather just @NEX-S problem
Not sure whether bad argument error was because config_queries was set to nil at the end of a loop or it simply went out of scope but introducing another local variable made it work
Took the liberty of slight refactoring, hope that's ok

Fancy, I essentially made the same commit https://github.com/nvim-treesitter/nvim-treesitter-textobjects/pull/289 :smile:


docs: How to use filters on Appsmith Table Widget

I have added a how-to-guide file for Issue #218. Also added a folder inside assets for all the gifs that have been used.

Thanks @SnehanjanChatterjee, we will review this and get back.


Suggestion: content-script Support for using vue

Currently for Content Script Using"build:js": "tsup src/background src/content --format iife --out-dir extension/dist --no-splitting" does not support inserting vue components in the page. I think many people have such a scene. Do you think is a good idea?

Sorry I am not sure if I understand your use case. Can you provide some examples?

Examples include the translation plugin and the github directory tree plugin, Both require some script to be inserted into the content of the page, and I want this part to support vue components
https://github.com/ineo6/git-master/
https://saladict.crimx.com/

I see. I think we could use Vite lib mode to do that. PR welcome.

Same here
When insert customer element to origin web , this feature is useful.
EG:

content/index.js
import { createApp } from 'vue'
import Hello from './Hello.vue'

createApp(Hello).mount('#app')

An error has occurred， i don't know how to solve it 😢

@antfu @guowenfh @wensonsmith I created a PR #17. It add Vue.js support to content_script.


needs animated gifs, link to solarizing windows, and instructions for windows as well

don't forget warnings about emojis not working on everything

This was specific to the readme and skilstak instruction, not the package itself.


Rework hooking system...

The hooking system needs to be more stable through Steam updates.
Also code-cleanup is needed if hooks for multiple versions are included.
This can be done by writing a more generic hook function, that patches the signature, like it's already done.
But instead of replacing the whole sig and copy pasta-ing Steams assembly code, we provide an offset and register of interest that gets dynamically patched with the binding-enforcement-hook

See: 38ba58ffa9fa5493ba4fe4b74c7d0bc95ff451ba


[Remote Store] Data loss (inconsistency) during primary relocation

Is your feature request related to a problem? Please describe.
During primary-primary relocation, encountering data loss when indexing is happening at high TPS.
Describe the solution you'd like
A clear and concise description of what you want to happen.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.

@ashking94 Can you please provide more details?

@ashking94 Can you please provide more details?

Added more details in the description itself. I will be coming with the fix soon.

Fix in #6314


How to build this project

I use mvn clean install but it failed.
[ERROR] Failed to execute goal on project presto-jdbc-java6: Could not resolve dependencies for project com.facebook.presto:presto-jdbc-java6:jar:0.1-SNAPSHOT: Failure to find com.facebook.presto:presto-testing-server-launcher:jar:0.108-SNAPSHOT in https://oss.sonatype.org/content/repositories/snapshots was cached in the local repository, resolution will not be reattempted until the update interval of sonatype-nexus-snapshots has elapsed or updates are forced -> [Help 1]

This project is still somewhat work in progress. We will update the README and provide continues integration on Travis in few days.

That's great!

I updated the readme. You should be able to build now. Let me know if sth does not work for you.
Thanks!


adding disclosure model

This PR adds disclosure model.  Corresponds to changes introduced in:
opencivicdata/python-opencivicdata-django/pull/33
opencivicdata/pupa/pull/170

closing this, waiting for 0.7


syncdb not working

Hi,
When I do a syncdb, my achievements are not collected. But if I comment lines 21 and 22 of achievements/models.py, they are collected and stored in the database.
I am not using south and don't really understand what is going on.
Are these lines important ? Is this not a bug ?
Thanks

I just tested it and confirm it now works.
Thanks :)

thx, did you have any issues or comments on how to use it ?

It is pretty easy to use and works out of the box.
One thing was the appconf dependency that is not documented but it is reported in issue #3.
Maybe I just miss a way to get one user's achievements directly (the same way as we get the score), same thing for the whole list of achievements.

you mean template tags ? or util methods ?
2011/11/30 Heldroe <
<EMAIL_ADDRESS>

It is pretty easy to use and works out of the box.
One thing was the appconf dependency that is not documented but it is
reported in issue #3.
Maybe I just miss a way to get one user's achievements directly (the same
way as we get the score), same thing for the whole list of achievements.

Reply to this email directly or view it on GitHub:
https://github.com/ssaboum/django-achievements/issues/2#issuecomment-2967511

Util methods. Template tags may be too much.

ok working on it.
in the meantime i fixed the dependency problem in 0.0.7.
Regards.


Save trace to permanent store

Ref: #1093
Quick (and dirty) implementation of save trace. Sending out for review to get some feedback.
Following @adriancole suggestion of deploying Zipkin Server twice, one backed by regular datastore and one with permanent datastore.
Adding Save Trace button on the UI. Clicking this butting will make an AJAX request to backend api /api/v1/save/trace/<trace_id>, and on receiving this request, zipkin server will pull spans for this trace, and POST them to permanent store using api /api/v1/spans
Address of permanent datastore server can be configured by property zipkin.permanent.store

Add screen shot?
PS: use v2 api as this is a new feature? Easier than having to do a migration of this to v2 later

use v2 api as this is a new feature? Easier than having to do a migration of this to v2 later

We have not migrated to V2 yet. Our datastore is in V1 format, so we have to read via V1 api. For writing to permanent store, either V1 or V2 is fine. Looks like zipkin server writes in V2 format even if we call V1 api, which seems a bit strange.
Ideally we should be able to run the server in V1 mode or V2 mode, and all APIs can then work accordingly. Do we have a config property that can do this?

interesting.. I was thinking this was going to happen in javascript. maybe it should? that way it doesn't need to expose a new server-side endpoint.

I wanted to keep the client light. Also, if its on the server side, other clients/scripts can also use it. We can move it to javascript if needed.

I don't want to make an api like this as a part of the server api, especially not under v1 namespace. it doesn't impact the UI to do the blocking here or there.
In order to deploy this UI change, you will inherit the v2 api anyway, unless you are somehow hosting static assets independently.. is that the case?

I don't want to make an api like this as a part of the server api, especially not under v1 namespace. it doesn't impact the UI to do the blocking here or there.

So you want to go for javascript solution, where client (UI) reads form one zipkin-server and saves to permanent zipkin-server? I'll make the change.

In order to deploy this UI change, you will inherit the v2 api anyway, unless you are somehow hosting static assets independently.. is that the case?

Not sure what you mean. What I'm thinking is that UI/Javascript will read raw spans for a trace using /api/v1/trace/<trace_id> and post them to http://<permanent_zipkin_address>/api/v1/spans

Not sure what you mean. What I'm thinking is that UI/Javascript will read raw spans for a trace using /api/v1/trace/<trace_id> and post them to http://<permanent_zipkin_address>/api/v1/spans

I don't want to introduce new features that depend on v1 api. That's
why I mentioned if your concern is about not having v2 api, yet, you
would as a side-effect of deploying this update! So basically we
shouldn't make a long term decision based on a short term upgrade
concern.
Ex save /api/v2/trace/<trace_id> to  POST
<permanent_zipkinv2_endpoint> not using /api/v2/spans explicitly in
the config entry as some will mount it via proxy maybe to the same
origin under a different path. Make sense?

Sorry to not think of this earlier, but would this experience be ok? Ex we
have a saved trace, but this UI wont be able to find saved traces.. Is that
ok? If so, why? If not, why not?

Ex we have a saved trace, but this UI wont be able to find saved traces.. Is that ok? If so, why? If not, why not?

Ideally same UI should provide access to saved traces, but I think its okay to have a separate UI, if it helps keeping the system simple and maintainable. It could be considered an archiving feature, and in most systems, retrieving archived data has a separate process than active data.
Also, if a user is trying to access a trace thats not available in the regular datastore, the UI can share a link to archive/permanent store, or even pull trace from there. Search will be a bit tricker, but we can handle that too by picking the correct datastore based on the TTL for the regular store.

Thanks for the info. I kindof like the archive term, as I don't want
us necessarily to try to make the UI a fan-out system at the moment.
Maybe we align the property name as such? like archiveEndpoint? Also,
folks deploying an archive instance of zipkin can set the property
zipkin.ui.environment to archive to know that's what they are
looking at.
I basically would like this feature to be easy to explain with some
coherent suggestions on setup... and so far I think archive is it. do
you agree?

... and so far I think archive is it. do you agree?

Yes.

Error message

Success message, when zipkin.ui.archive-read-endpoint is not specified.

Success message, when zipkin.ui.archive-read-endpoint is specified.

you'll want to rebase this on master, as the thing that allows proxies to work was merged

hum.. I messed up rebase

maybe add

as an xml comment above the dependency? That way, we can figure out
later what's up

I can fix the rebase stuff on the way in, no worries

Added unit test and removed unnecessary dependency. The exception I was seeing earlier must be because of some setup issue.

looks like the test is failing:
[INFO] JS 2.1.1 (Linux 0.0.0) traceToMustache should show archiveReadEndpoint FAILED
[INFO] 	undefined is not an object (evaluating 'modelview.archiveEndpoint.should')
[INFO] 	/home/travis/build/openzipkin/zipkin/zipkin-ui/test/component_ui/traceToMustache.test.js:110:31 <- webpack:///test/component_ui/traceToMustache.test.js:70:30
[INFO] PhantomJS 2.1.1 (Linux 0.0.0): Executed 82 of 93 (1 FAILED) (0 secs / 0.041 secs)

@adriancole can you help with this ci/circleci failure? Looks like its a setup issue.

@naoman circle has been hell lately. just ignore it for now as I can't dedicate time towards it. I do spend probably 10hrs a month on various build issues... just need to get some work done.

@naoman can you confirm that the archive button is absent when there's no url present?

Seems a hacky solution, most people will not have this setup. Would the button appear in the UI by default? It may set expectations it would work when in most cases would not

@adriancole Yes, Archive button shows only when zipkin.ui.archive-endpoint is present. Similar to Logs button.

@jcarres-mdsol so we have had a number of requests for how to achieve permanent storage w/o complicating other things. I've not found a simpler way than this..
The notes would be that if you want permanent storage, setup zipkin somewhere (or a zipkin proxy like stackdriver), then point env variables to that. If using a normal zipkin server, the archival one should probably set the environment name to "archive" (something you can configure on the UI).
Does this clarify the setup? indeed it would be new for a lot of folks, but fairly easy to provision (add a permanent namespace to storage, keep a server running which needn't deal with high volume as it is only archival)

will the UI have an href somewhere then to the archive endpoint ?

@jorgheymans when a trace is archived, the UI will show a link to archived trace in the confirmation dialog. Screenshot attached above.

@naoman just curious how many traces do you save to permanent store ? Is it a regularly occuring thing ?

Not many, maybe just a few traces per day. Because of our high trace volume, regular datastore has TTL of 10 days. This feature will let users save "interesting" traces, specially something related to a bug, for longer duration.

@naoman what i meant was just a top level link on the ui somewhere that points to the archiving endpoint if it is configured. That way ppl only have to remember (or bookmark) the "main" zipkin instance.

@jorgheymans Yes, this can be useful. But at this point I want to keep the code simple and clean, since this feature will not be used by many users. In my personal experience, when archiving a trace, users will save the link to the trace itself, since they are archiving the trace to save or share it.
I would say we should go ahead with the current code, and revisit based on user feedback.

I'm not sure how much impact there is to code hygiene to present a link to
the archive repo. It does feel like it is more a feature if one has the
ability to know where the archive repo is without saving a trace to figure
it out.
There's currently code that conditionally shows the environment label when
present in configuration. How bad would the code look if a similar approach
was used to place a link to the archives where people can see it?

Like I mentioned in my last message, the change is ready and fully functional. This would be an improvement on top of this change that can be made in a separate pull request. Lets merge this change, get the feature out there so that people can start using it, get user feedback, and then improve iteratively.

Naoman I dont think you understand. This change is for the community and a
valid request was made. We dont merge single user stuff, so consider it
lucky someone else is interested!

We don't merge single user stuff, so consider it lucky someone else is interested!
Not sure what you mean. Do you think I'm trying to push something thats Pinterest specific, and not needed by other users?

Let me try to explain one more time. While the request to add an additional url link is valid, its an add-on feature for this change, and does not block it.
Can you please explain why these two changes can not be made in two separate pull requests?

For sure this can be done in a separate PR, after all it was just a
suggestion. We don't really have the need to save traces right now but once
the feature is in I'll definitely configure an archive endpoint because it
does pop up every now and then. I'll send a PR myself if I still see the
need for it then.
Op za 7 okt. 2017 08:06 schreef Naoman Abbas<EMAIL_ADDRESS>
We don't merge single user stuff, so consider it lucky someone else is
interested!
Not sure what you mean. Do you think I'm trying to push something thats
Pinterest specific, and not needed by other users?
Let me try to explain one more time. While the request to add an
additional url link is valid, its an add-on feature for this change, and
does not block it.
Can you please explain why these two changes can not be made in two
separate pull requests?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/openzipkin/zipkin/pull/1747#issuecomment-334913230,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAL1AMs4RtHPZeC-7SanUzvZNNXV9H08ks5spxTVgaJpZM4Pmh70
.

Let me try to explain one more time. While the request to add an
additional url link is valid, its an add-on feature for this change, and
does not block it.
This is a community project. One of the user/core team members felt this
was hacky. Another user asked for an adjustment to the change. No one so
far has actually said they want the change actively. We have to be careful
to make sure code is actually useful as often non-core people disappear
after they land something.

Historically, UI code is write once, very few go back and maintain changes
later. I don't have enough experience with you personally to know if you
would actually go back later and do a pull request.
The time you have taken to intentionally not answer the question has rid me
of effort I can spend elsewhere and also yourself as looking at the
suggestion wouldn't have been costly. Please be more considerate especially
if you want others to help merge an unpopular change.

@openzipkin/core I personally don't want to go around in explanation circles on this. I actually am ok with the change in general, but not motivated to continue this line of inquiry. If someone else is ok driving this, please do. I'm going to unsubscribe for the time being

@jorgheymans I've added a link to archive server on the menu bar. Let me know what you think. Below is the screenshot.

Seems a hacky solution, most people will not have this setup.

@jcarres-mdsol can you please elaborate on why you feel this solution is hacky and how it can be improved.

Would the button appear in the UI by default? It may set expectations it would work when in most cases would not

@jcarres-mdsol No it would not. I've added this information in Readme as well. Let me know if you think it needs more explanation there.

Spot on that's exactly where I had imagined the link to appear :-)
Op za 7 okt. 2017 22:15 schreef Naoman Abbas<EMAIL_ADDRESS>
@jorgheymans https://github.com/jorgheymans I've added a link to
archive server on the menu bar. Let me know what you think. Below is the
screenshot.
[image: screen shot 2017-10-07 at 1 03 43 pm]
https://user-images.githubusercontent.com/6273158/31311426-d91ed056-ab60-11e7-8e5e-0e9790596fff.png
Seems a hacky solution, most people will not have this setup.
@jcarres-mdsol https://github.com/jcarres-mdsol can you please
elaborate on why you feel this solution is hacky and how it can be improved.
Would the button appear in the UI by default? It may set expectations it
would work when in most cases would not
@jcarres-mdsol https://github.com/jcarres-mdsol No it would not. I've
added this information in Readme as well. Let me know if you think it needs
more explanation there.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/openzipkin/zipkin/pull/1747#issuecomment-334962894,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAL1AApvJYx6IVFNpFbQ41OR04fsc6Q9ks5sp9vJgaJpZM4Pmh70
.

We already have a feature to download a trace as a JSON file (and I think also one to upload a JSON file and render it in the UI). Wouldn't that cover the use case? You could just store the JSON file wherever you want, on a hard drive, dropbox etc...

Another solution is to run a cache proxy like Varnish in front of Zipkin, and make it cache results for 30 days. (Assuming that the amount of Zipkin data developers look at will be very small relative to the total amount of Zipkin data, so it could comfortably fit on a cache instance)

@eirslett Yes, thats do able, however it wont be very scaleable and convenient. Consider the use case where we want to save a trace related to a bug. Without this feature, we'll first have to download the trace, attach it to the bug ticket, and upload if back to zipkin server for looking at the trace. This feature provides a convenient way to archive traces with a single click.

Without this feature, we'll first have to download the trace, attach it to the bug ticket, and upload if back to zipkin server for looking at the trace. This feature provides a convenient way to archive traces with a single click.

With the Varnish solution, I guess you could just copy/paste a link to the trace in the bug report?

@eirslett varnish proxy based cache will have its own limitations. Below are few:

what if we want to keep data for longer than cache?
how do we enable data replication?
What if other tools (service dependency graph, trace analyzer scripts, etc) want to pull this data?

@naoman  I think it is hacky because to add this new functionality, I need to double my infrastructure.

I think it is hacky because to add this new functionality, I need to double my infrastructure.

@jcarres-mdsol Can you please elaborate on this? This solution does require some additional infrastructure setup, but by no means it would double the infrastructure. For example, below is how Elasticsearch based solution look like:

A new index for archived traces in the same Elasticsearch cluster.
A new Zipkin Server instance for archived traces. This instance can run on the same hosts running regular Zipkin Server
A load-balancer in front of Zipkin archive server. This is the only additional infrastructure component needed for this solution.

If you still feel that this is too much hassle for archiving traces, can you propose a better solution?

Thanks for your sharing. Hope you can contribute more quality posts to this page. Thank you!
laravel quiz


WebSearch: support new syntax collection:"CERN Divisions"

Originally on 2012-06-27
collection:FOO query is currently mapped onto 980:FOO query, basically.  For faceted search, it would be desirable if one can pass collection:"CERN Divisions".
This can be achieved by enriching search_unit() in a similar way how e.g. citedby special queries are done.  The above query would simply return hitset of records belonging to the "CERN Divisions" collection.
Note that there may be a mixup of collection concept being used to represent 980 and being used to represent the collection name.  So beware WRT webcoll.  Either we could return Boolean OR between old-behaviour and new-behaviour, or we could distinguish between these cases via two independent collection and collectionname search operators.
As usual, test cases should be written.

Supported since v2.0.0.


Fixes error when calculating VSA_EStates

Reference Issue

Fixes #2372
What does this implement/fix? Explain your changes.
Implements the fix for the problem suggested in the issue above.

The test data for UnitTestVSA.py was updated since the values of the result ware changed.

@c56pony : Thanks for finding and fixing this!


fix: Add clearMediaObjectCollection method

What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)
This PR adds the clearMediaObjectCollection method to the list of PeripheralDeviceAPI methods. This method is added to Core in the following PR:
https://github.com/nrkno/tv-automation-server-core/pull/316

Im merging this as a fix, as the core change was merged in r25


spconv build failed!

I'm using py37, torch 1.10, cuda 10.2, cudnn 8.4
Met error when running python setup.py bdist_wheel
Console printouts:

/SoftGroup/lib/spconv$ python setup.py bdist_wheel
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.7
creating build/lib.linux-x86_64-3.7/spconv
copying spconv/conv.py -> build/lib.linux-x86_64-3.7/spconv
copying spconv/functional.py -> build/lib.linux-x86_64-3.7/spconv
copying spconv/modules.py -> build/lib.linux-x86_64-3.7/spconv
copying spconv/ops.py -> build/lib.linux-x86_64-3.7/spconv
copying spconv/pool.py -> build/lib.linux-x86_64-3.7/spconv
copying spconv/test_utils.py -> build/lib.linux-x86_64-3.7/spconv
copying spconv/init.py -> build/lib.linux-x86_64-3.7/spconv
creating build/lib.linux-x86_64-3.7/spconv/utils
copying spconv/utils/init.py -> build/lib.linux-x86_64-3.7/spconv/utils
running build_ext
/media/yangtian/SATA3/Workspace/SoftGroup/lib/spconv/build/lib.linux-x86_64-3.7
Release
-- The CXX compiler identification is GNU 7.5.0
-- The CUDA compiler identification is NVIDIA 10.2.89
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Check for working CUDA compiler: /usr/local/cuda/bin/nvcc
-- Check for working CUDA compiler: /usr/local/cuda/bin/nvcc -- works
-- Detecting CUDA compiler ABI info
-- Detecting CUDA compiler ABI info - done
-- Looking for C++ include pthread.h
-- Looking for C++ include pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Found CUDA: /usr/local/cuda (found version "10.2")
-- Caffe2: CUDA detected: 10.2
-- Caffe2: CUDA nvcc is: /usr/local/cuda/bin/nvcc
-- Caffe2: CUDA toolkit directory: /usr/local/cuda
-- Caffe2: Header version is: 10.2
-- Found CUDNN: /usr/local/cuda/lib64/libcudnn.so
-- Found cuDNN: v8.4.0  (include: /usr/local/cuda/include, library: /usr/local/cuda/lib64/libcudnn.so)
-- /usr/local/cuda/lib64/libnvrtc.so shorthash is 08c4863f
-- Autodetected CUDA architecture(s):  7.5+PTX
-- Added CUDA NVCC flags for: -gencode;arch=compute_75,code=sm_75;-gencode;arch=compute_75,code=compute_75
CMake Warning at /media/yangtian/SATA3/PyEnvs/ubuntu/softgroup-env/lib/python3.7/site-packages/torch/share/cmake/Torch/TorchConfig.cmake:22 (message):
static library kineto_LIBRARY-NOTFOUND not found.
Call Stack (most recent call first):
/media/yangtian/SATA3/PyEnvs/ubuntu/softgroup-env/lib/python3.7/site-packages/torch/share/cmake/Torch/TorchConfig.cmake:127 (append_torchlib_if_found)
CMakeLists.txt:23 (find_package)
-- Found Torch: /media/yangtian/SATA3/PyEnvs/ubuntu/softgroup-env/lib/python3.7/site-packages/torch/lib/libtorch.so
-- Found PythonInterp: /media/yangtian/SATA3/PyEnvs/ubuntu/softgroup-env/bin/python3.7 (found suitable version "3.7.5", minimum required is "3.7")
-- Found PythonLibs: /usr/lib/x86_64-linux-gnu/libpython3.7m.so
-- Performing Test HAS_CPP14_FLAG
-- Performing Test HAS_CPP14_FLAG - Success
-- pybind11 v2.3.dev0
-- Configuring done
-- Generating done
-- Build files have been written to: /media/yangtian/SATA3/Workspace/SoftGroup/lib/spconv/build/temp.linux-x86_64-3.7
Scanning dependencies of target spconv
Scanning dependencies of target spconv_nms
[  7%] Building CUDA object src/utils/CMakeFiles/spconv_nms.dir/nms.cu.o
[ 14%] Building CXX object src/spconv/CMakeFiles/spconv.dir/all.cc.o
[ 21%] Building CXX object src/spconv/CMakeFiles/spconv.dir/indice.cc.o
[ 28%] Building CUDA object src/spconv/CMakeFiles/spconv.dir/indice.cu.o
[ 35%] Linking CUDA device code CMakeFiles/spconv_nms.dir/cmake_device_link.o
[ 42%] Linking CUDA shared library ../../../lib.linux-x86_64-3.7/spconv/libspconv_nms.so
[ 42%] Built target spconv_nms
[ 50%] Building CXX object src/spconv/CMakeFiles/spconv.dir/reordering.cc.o
/media/yangtian/SATA3/Workspace/SoftGroup/lib/spconv/src/spconv/all.cc:20:91: error: no matching function for call to ‘torch::jit::RegisterOperators::RegisterOperators(const char [28], )’
torch::jit::RegisterOperators("spconv::get_indice_pairs_2d", &spconv::getIndicePair<2>)
^
In file included from /media/yangtian/SATA3/PyEnvs/ubuntu/softgroup-env/lib/python3.7/site-packages/torch/include/torch/script.h:7:0,
from /media/yangtian/SATA3/Workspace/SoftGroup/lib/spconv/include/spconv/pool_ops.h:20,
from /media/yangtian/SATA3/Workspace/SoftGroup/lib/spconv/src/spconv/all.cc:16:
/media/yangtian/SATA3/PyEnvs/ubuntu/softgroup-env/lib/python3.7/site-packages/torch/include/torch/csrc/jit/runtime/custom_operator.h:22:12: note: candidate: torch::jit::RegisterOperators::RegisterOperators(std::vector<c10::optionaltorch::jit::Operator >)
explicit RegisterOperators(std::vector<c10::optional> operators) {
^~~~~~~~~~~~~~~~~
/media/yangtian/SATA3/PyEnvs/ubuntu/softgroup-env/lib/python3.7/site-packages/torch/include/torch/csrc/jit/runtime/custom_operator.h:22:12: note:   candidate expects 1 argument, 2 provided
/media/yangtian/SATA3/PyEnvs/ubuntu/softgroup-env/lib/python3.7/site-packages/torch/include/torch/csrc/jit/runtime/custom_operator.h:17:3: note: candidate: constexpr torch::jit::RegisterOperators::RegisterOperators()
RegisterOperators() = default;
^~~~~~~~~~~~~~~~~
/media/yangtian/SATA3/PyEnvs/ubuntu/softgroup-env/lib/python3.7/site-packages/torch/include/torch/csrc/jit/runtime/custom_operator.h:17:3: note:   candidate expects 0 arguments, 2 provided
/media/yangtian/SATA3/PyEnvs/ubuntu/softgroup-env/lib/python3.7/site-packages/torch/include/torch/csrc/jit/runtime/custom_operator.h:16:18: note: candidate: constexpr torch::jit::RegisterOperators::RegisterOperators(const torch::jit::RegisterOperators&)
struct TORCH_API RegisterOperators {
^~~~~~~~~~~~~~~~~
/media/yangtian/SATA3/PyEnvs/ubuntu/softgroup-env/lib/python3.7/site-packages/torch/include/torch/csrc/jit/runtime/custom_operator.h:16:18: note:   candidate expects 1 argument, 2 provided
/media/yangtian/SATA3/PyEnvs/ubuntu/softgroup-env/lib/python3.7/site-packages/torch/include/torch/csrc/jit/runtime/custom_operator.h:16:18: note: candidate: constexpr torch::jit::RegisterOperators::RegisterOperators(torch::jit::RegisterOperators&&)
/media/yangtian/SATA3/PyEnvs/ubuntu/softgroup-env/lib/python3.7/site-packages/torch/include/torch/csrc/jit/runtime/custom_operator.h:16:18: note:   candidate expects 1 argument, 2 provided
src/spconv/CMakeFiles/spconv.dir/build.make:62: recipe for target 'src/spconv/CMakeFiles/spconv.dir/all.cc.o' failed
make[2]: *** [src/spconv/CMakeFiles/spconv.dir/all.cc.o] Error 1
make[2]: *** Waiting for unfinished jobs....
Scanning dependencies of target spconv_utils
[ 57%] Building CXX object src/utils/CMakeFiles/spconv_utils.dir/all.cc.o
CMakeFiles/Makefile2:108: recipe for target 'src/spconv/CMakeFiles/spconv.dir/all' failed
make[1]: *** [src/spconv/CMakeFiles/spconv.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 64%] Linking CXX shared library ../../../lib.linux-x86_64-3.7/spconv/spconv_utils.cpython-37m-x86_64-linux-gnu.so
[ 64%] Built target spconv_utils
Makefile:129: recipe for target 'all' failed
make: *** [all] Error 2
Traceback (most recent call last):
File "setup.py", line 86, in
zip_safe=False,
File "/media/yangtian/SATA3/PyEnvs/ubuntu/softgroup-env/lib/python3.7/site-packages/setuptools/init.py", line 153, in setup
return distutils.core.setup(**attrs)
File "/usr/lib/python3.7/distutils/core.py", line 148, in setup
dist.run_commands()
File "/usr/lib/python3.7/distutils/dist.py", line 966, in run_commands
self.run_command(cmd)
File "/usr/lib/python3.7/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/media/yangtian/SATA3/PyEnvs/ubuntu/softgroup-env/lib/python3.7/site-packages/wheel/bdist_wheel.py", line 299, in run
self.run_command('build')
File "/usr/lib/python3.7/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/usr/lib/python3.7/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/usr/lib/python3.7/distutils/command/build.py", line 135, in run
self.run_command(cmd_name)
File "/usr/lib/python3.7/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/usr/lib/python3.7/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "setup.py", line 39, in run
self.build_extension(ext)
File "setup.py", line 70, in build_extension
subprocess.check_call(['cmake', '--build', '.'] + build_args, cwd=self.build_temp)
File "/usr/lib/python3.7/subprocess.py", line 363, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['cmake', '--build', '.', '--config', 'Release', '--', '-j4']' returned non-zero exit status 2.

CMake Error Log:

Compiling the CUDA compiler identification source file "CMakeCUDACompilerId.cu" failed.
Compiler: /usr/local/cuda/bin/nvcc
Build flags: "--expt-relaxed-constexpr"
Id flags:  -v;--keep;--keep-dir;tmp
The output was:
1
#$ NVVM_BRANCH=nvvm
#$ SPACE=
#$ CUDART=cudart
#$ HERE=/usr/local/cuda/bin
#$ THERE=/usr/local/cuda/bin
#$ TARGET_SIZE=
#$ TARGET_DIR=
#$ TARGET_DIR=targets/x86_64-linux
#$ TOP=/usr/local/cuda/bin/..
#$ NVVMIR_LIBRARY_DIR=/usr/local/cuda/bin/../nvvm/libdevice
#$ LD_LIBRARY_PATH=/usr/local/cuda/bin/../lib:/usr/local/cuda/lib64:/usr/local/cuda/bin:/home/yangtian/anaconda3/condabin:/home/yangtian/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/yangtian/anaconda3/bin
#$ PATH=/usr/local/cuda/bin/../nvvm/bin:/usr/local/cuda/bin:/media/yangtian/SATA3/PyEnvs/ubuntu/softgroup-env/bin:/usr/local/cuda/bin:/home/yangtian/anaconda3/condabin:/home/yangtian/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/yangtian/anaconda3/bin
#$ INCLUDES="-I/usr/local/cuda/bin/../targets/x86_64-linux/include"
#$ LIBRARIES=  "-L/usr/local/cuda/bin/../targets/x86_64-linux/lib/stubs" "-L/usr/local/cuda/bin/../targets/x86_64-linux/lib"
#$ CUDAFE_FLAGS=
#$ PTXAS_FLAGS=
nvcc fatal   : Don't know what to do with '"--expt-relaxed-constexpr"'
Determining if the pthread_create exist failed with the following output:
Change Dir: /media/yangtian/SATA3/Workspace/SoftGroup/lib/spconv/build/temp.linux-x86_64-3.7/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/make" "cmTC_de591/fast"
/usr/bin/make -f CMakeFiles/cmTC_de591.dir/build.make CMakeFiles/cmTC_de591.dir/build
make[1]: Entering directory '/media/yangtian/SATA3/Workspace/SoftGroup/lib/spconv/build/temp.linux-x86_64-3.7/CMakeFiles/CMakeTmp'
Building CXX object CMakeFiles/cmTC_de591.dir/CheckSymbolExists.cxx.o
/usr/bin/c++    -DVERSION_INFO="1.0"    -o CMakeFiles/cmTC_de591.dir/CheckSymbolExists.cxx.o -c /media/yangtian/SATA3/Workspace/SoftGroup/lib/spconv/build/temp.linux-x86_64-3.7/CMakeFiles/CMakeTmp/CheckSymbolExists.cxx
Linking CXX executable cmTC_de591
/usr/local/cmake-3.13.5-Linux-x86_64/bin/cmake -E cmake_link_script CMakeFiles/cmTC_de591.dir/link.txt --verbose=1
/usr/bin/c++  -DVERSION_INFO="1.0"     CMakeFiles/cmTC_de591.dir/CheckSymbolExists.cxx.o  -o cmTC_de591
CMakeFiles/cmTC_de591.dir/CheckSymbolExists.cxx.o: In function main': CheckSymbolExists.cxx:(.text+0x1b): undefined reference to pthread_create'
collect2: error: ld returned 1 exit status
CMakeFiles/cmTC_de591.dir/build.make:86: recipe for target 'cmTC_de591' failed
make[1]: *** [cmTC_de591] Error 1
make[1]: Leaving directory '/media/yangtian/SATA3/Workspace/SoftGroup/lib/spconv/build/temp.linux-x86_64-3.7/CMakeFiles/CMakeTmp'
Makefile:121: recipe for target 'cmTC_de591/fast' failed
make: *** [cmTC_de591/fast] Error 2

The current code is tested on pytorch 1.1 and spconv 1.0 only.


$globalUserLeaderboard

Type

[ ] Functions: <Function Name>
[ ] Callbacks: <Callback Name>
[ ] Handlers: <Handler Type>
[ ] Others: ______

Description
Explain how it works

Type

[ ]  Functions:
[ ]  Callbacks:
[ ]  Handlers:
[ ]  Others: ______

Description
Explain how it works


Same database for queue

Hi @rosa!
I want to deploy a single database with both normal data and solid queue data and I can't find in the README how.
Can you help? Thanks in advance!

Take the contents of the queue_schema.rb file, shove it into a migration, and remove the "config.solid_queue.connects_to" line from config/environments/production.rb 👍

Thanks @dhh!
Same goes for Solid Cache, I assume?
Do you want me do a PR and add it to README?

Same goes for Solid Cache, I assume?

Yes!

Do you want me do a PR and add it to README?

That'd be super nice if you have time 🙏 😊


installation from source and SAT module

Is SAT module not available with the source installation?
    from ortools.sat.python import cp_model
ImportError: No module named sat.python

Do you specify PYTHONPATH?
You need it to point to the rootdir of or-tools.
Laurent Perron | Operations Research |<EMAIL_ADDRESS>| (33) 1 42 68 53
00
2017-11-17 12:31 GMT+01:00 thomasmurayama<EMAIL_ADDRESS>
Is SAT module not available with the source installation?
from ortools.sat.python import cp_model

ImportError: No module named sat.python
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/google/or-tools/issues/529, or mute the thread
https://github.com/notifications/unsubscribe-auth/AKj17UIJhk8HpGIHDlbvQaCOiC-sxTIwks5s3W6igaJpZM4Qh6UC
.

The other examples which are not SAT worked.
But I did not specify the PYTHONPATH.

this is because python is reusing an installed ortools package.
Older pypi packages did not contain SAT, thus the other examples worked.
Laurent Perron | Operations Research |<EMAIL_ADDRESS>| (33) 1 42 68 53
00
2017-11-17 16:38 GMT+01:00 thomasmurayama<EMAIL_ADDRESS>
The other examples which are not SAT worked.
But I did not specify the PYTHONPATH.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/google/or-tools/issues/529#issuecomment-345277433,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AKj17Td43RRcrU4u8MSiD2w2FND-XX_Wks5s3ah6gaJpZM4Qh6UC
.


Release v<IP_ADDRESS>

Kubernetes test on AWS:
2016-09-20 03:25:36 (ip-192-168-99-10:clustertests) Test #1: Check that Kubernetes services are running on master : PASSED
2016-09-20 03:25:36 (ip-192-168-99-10:clustertests) Test #2: Check that Romana services are running on master : PASSED
2016-09-20 03:25:38 (ip-192-168-99-10:clustertests) Test #3: Check that Kubernetes services are running on minion : PASSED
2016-09-20 03:25:39 (ip-192-168-99-10:clustertests) Test #4: Check that Romana services are running on minion : PASSED
2016-09-20 03:25:39 (ip-192-168-99-10:clustertests) Test #6: Pull docker containers used in later tests : PASSED
2016-09-20 03:25:59 (ip-192-168-99-10:clustertests) Test #8: Check namespace creation triggers romana tenant creation : PASSED
2016-09-20 03:26:00 (ip-192-168-99-10:clustertests) Test #7: Check that kubernetes can launch some pods : PASSED
2016-09-20 03:26:13 (ip-192-168-99-10:clustertests) Test #9: End-to-End test checking default-allow, isolation and policy-allow : PASSED
2016-09-20 03:25:38 (ip-192-168-99-11:clustertests) Test #3: Check that Kubernetes services are running on minion : PASSED
2016-09-20 03:25:39 (ip-192-168-99-11:clustertests) Test #4: Check that Romana services are running on minion : PASSED
2016-09-20 03:25:39 (ip-192-168-99-11:clustertests) Test #6: Pull docker containers used in later tests : PASSED

Devstack tests on AWS:
2016-09-20 03:57:38 (ip-192-168-99-10:clustertests) Test #1: Check that openstack services are present : PASSED
2016-09-20 03:57:43 (ip-192-168-99-10:clustertests) Test #2: Check that Romana services are running on controller node : PASSED
2016-09-20 03:57:45 (ip-192-168-99-10:clustertests) Test #3: Check that Romana services are running on compute nodes : PASSED
2016-09-20 03:57:47 (ip-192-168-99-10:clustertests) Test #4: Check that VMs can be created on each compute node : PASSED
2016-09-20 03:58:07 (ip-192-168-99-10:clustertests) Test #5: End-to-End test checking ping and SSH for VMs in same segment. : PASSED
2016-09-20 03:57:45 (ip-192-168-99-11:clustertests) Test #3: Check that Romana services are running on compute nodes : PASSED

Kubernetes test on Vagrant:
2016-09-20 04:28:37 (kube-vagrant-controller:clustertests) Test #1: Check that Kubernetes services are running on master : PASSED
2016-09-20 04:28:38 (kube-vagrant-controller:clustertests) Test #2: Check that Romana services are running on master : PASSED
2016-09-20 04:28:41 (kube-vagrant-controller:clustertests) Test #3: Check that Kubernetes services are running on minion : PASSED
2016-09-20 04:28:41 (kube-vagrant-controller:clustertests) Test #4: Check that Romana services are running on minion : PASSED
2016-09-20 04:28:41 (kube-vagrant-controller:clustertests) Test #6: Pull docker containers used in later tests : PASSED
2016-09-20 04:54:01 (kube-vagrant-controller:clustertests) Test #8: Check namespace creation triggers romana tenant creation : PASSED
2016-09-20 04:54:02 (kube-vagrant-controller:clustertests) Test #7: Check that kubernetes can launch some pods : PASSED
2016-09-20 04:54:23 (kube-vagrant-controller:clustertests) Test #9: End-to-End test checking default-allow, isolation and policy-allow : PASSED
2016-09-20 04:28:41 (kube-vagrant-compute01:clustertests) Test #3: Check that Kubernetes services are running on minion : PASSED
2016-09-20 04:28:41 (kube-vagrant-compute01:clustertests) Test #4: Check that Romana services are running on minion : PASSED
2016-09-20 04:28:41 (kube-vagrant-compute01:clustertests) Test #6: Pull docker containers used in later tests : PASSED


Cannot find my website via google search

I try to search my website on google. I searched the website's title, but my website is not on the search result list. Are there any changes I can make on this theme to get rid of this issue? Thanks.

This isn't a theme issue. Google and other search engines can take time to spider and index your site. You'll want to use Google's webmaster tools to submit your site, point it at your sitemap.xml, etc. to start that process.
Search around for SEO best practices as that's what you'll want to work on to get your content ranking.


Add option to force ignore Province was not found error

I was trying to convert a EU4 1.3.7 save with the Navigable Great Lakes mod, and the converter v0.3 exited due to Province inconsistency. Can you add the option to ignore provinces that can't be found and continue with the conversion?
2024-05-18 20:53:34     [INFO] -> Classifying Provinces According to Aesthetic Principles
2024-05-18 20:53:34     [INFO] <> 684 seas and 120 lakes registered.
2024-05-18 20:53:34     [INFO] <> 4952 province definitions registered.
2024-05-18 20:53:34    [ERROR] Province 4942 was not found in map/definition.csv.
2024-05-18 20:53:34    [ERROR] You are converting a newer save against an old EU4 installation, or you have mods that alter the map in a broken fashion.
2024-05-18 20:53:34    [ERROR] Upgrade installation or fix the mod map definition errors to continue.
2024-05-18 20:53:34     [INFO] Converter exited at: 5 seconds.
2024-05-18 20:53:34    [ERROR] Unable to continue. Province inconsistency detected.
2024-05-18 20:53:34    [ERROR] Converter Error! See log.txt for details.
2024-05-18 20:53:34    [ERROR] If you require assistance please upload log.txt to forums for a detailed post-mortem.```

When your save game contains provinces that are not present in either vanilla or mod map definitions, then aborting, rather than crashing a second later, is the desired behavior. This is a very flexible converter and it only exits when continuing forward is impossible. Having dangling provinces is one of those cases.


proposal: api, extend BindConfig to multiple addresses

Description:
For certain clusters I want to bind local ip address when I create an upstream connection.
It worked well but not in ipv4v6 dual stack.
I wish I could have a single cluster config, when I recreate the upstream connection with ipv6 endpoint, cluster impl binds local ipv6 address, and bind ipv4 address for ipv4 endpoint.
I propose to extend BindConfig to contain multiple addresses
Use cases:

ipv4 and ipv6 address as above
there are other benefits: as tcp reverse proxy local ip:port is not infinite, consider the TIME_WAIT grace period. By providing more ipv4 addresses in config could mitigate.

@jrajahalme Thank you for the feedback!
How about this:
Step 1: update the api to allow specifying collection of addresses, 0 or more address.
Step 2: Implementation: if the number of address is 0 or 1, fallback to the current behavior. If it contains both ipv4 and ipv6, bind the first ipv4 or ipv6 address depends on the stack.
Step 3: Introduce extra args to guide how multiple addresses could benefit in further use cases.
WDYT?


performance latency after updating to Fastapi > 0.82.0

First Check

[X] I added a very descriptive title to this issue.
[X] I used the GitHub search to find a similar issue and didn't find it.
[X] I searched the FastAPI documentation, with the integrated search.
[X] I already searched in Google "How to X in FastAPI" and didn't find any information.
[X] I already read and followed all the tutorial in the docs and didn't find an answer.
[X] I already checked if it is not related to FastAPI but to Pydantic.
[X] I already checked if it is not related to FastAPI but to Swagger UI.
[X] I already checked if it is not related to FastAPI but to ReDoc.

Commit to Help

[X] I commit to help with one of those options 👆

Example Code
#db dependency

def get_db():
    with SessionLocal() as db:
        try:
            yield db
        except:
            raise
        finally:
            db.close()

#exceptions.py
# catch all exception in a middleware

app.middleware("http")(exceptions.catch_exceptions_middleware)

Description
i noticed that after i've updated Fastapi to a superior version > 0.82.0, i noticed that mu integrations tests are stuck and keeps running in a slow manner, which is not the usual behavior of  any version that is  less than <= 0.82.0 , Can anyone confirm the same behavior please ? i can not understand why i have a really long latency is my dependency causing this, becuz since the 0.82.0, i have changed it to this after the fix in  PR #5122 .

Allow exit code for dependencies with yield to always execute, by removing capacity limiter for them, to e.g. allow closing DB connections without deadlocks. PR #5122 by @adriangb.

Can anybody help me figure out why updalting to any superior > 0.82.0 i have this much latency ?
Thank you guys.
Operating System
Linux
Operating System Details
No response
FastAPI Version
0.82.0
Python Version
3.10
Additional Context
No response

@tiangolo  @dmontagu  can u please help if you have time, lit's a bit critical for me ?

It really helps other people debug problems like this if you can produce a test harness that demonstrates the issue succinctly.

Thanks @jgould22 ! 🍰
Indeed, please provide an example code that shows your problem so that I (we) can replicate it and investigate it here. Otherwise it's just blind guesses... 😅
You can start by upgrading other dependencies too, in case that has anything to do with it.

Thank you guys for your reply @tiangolo , @jgould22  i appreciate it.
ok, let's put more context to this, i have a lot of tests unit test and integrations,  but what i'm  going to do here to illustrate the performance pblm, i am going to take one of simplest tests i have in which i test if my strings gets strip correctly before getting inserted to the DB.
Then i'll proceed to show you the timing made to perform this test in both of the versions Fastapi version 0.82.0 and Fastapi 0.85.0 or any greater version than 0.82.0.
so let's first show you ho i handle my dependency:
#db dependency

def get_db():
    with SessionLocal() as db:
        try:
            yield db

     # raise exception which will be catched by  a middleware.
        except:
            raise
        finally:
            db.close()

this is my middleware to catch all exceptions raised
#exceptions.py
# catch all exception in a middleware

app.middleware("http")(exceptions.catch_exceptions_middleware)

async def catch_exceptions_middleware(request: Request, call_next):
    try:
        resp = await call_next(request)

    except TimeoutError:
        return JSONResponse(
            status_code=502,
            content={"detail": "DB connection timeout probably because of Queue limit error"},
        )
    except IntegrityError as exc:
        if isinstance(exc.orig, NotNullViolation):  # proves the original exc.nameeption
            return JSONResponse(
                status_code=status.HTTP_400_BAD_REQUEST,
                content={"detail": f" There is a missing field {str(exc.__dict__['orig'])}"},
            )
        elif isinstance(exc.orig, UniqueViolation):  # proves the original exc.nameeption
            return JSONResponse(
                status_code=status.HTTP_409_CONFLICT,
                content={"detail": f"Already exists {str(exc.__dict__['orig'])}"},
            )
        elif isinstance(exc.orig, ForeignKeyViolation):
            return JSONResponse(
                status_code=status.HTTP_400_BAD_REQUEST,
                content={"detail": f"{str(exc.__dict__['orig'])}"},
            )
        else:
            return JSONResponse(
                status_code=500,
                content={"detail": f"{str(exc.__dict__['orig'])}"},
            )

    except (RequestValidationError, ValidationError) as exc:
        return JSONResponse(
            {"status": "ERROR", "message": "Validation Error", "errors": exc.errors()},
            status_code=HTTP_422_UNPROCESSABLE_ENTITY,
        )

    except Exception as e:
        return JSONResponse(content=repr(e), status_code=500)

    return resp

okay, let's then take a look to the test
# integration tests
from fastapi.testclient import TestClient
from sqlalchemy.orm import Session
from app.services.config import settings

def test_data(client: TestClient, db: Session) -> None:
    good_label = "strip me !"
    labels = [
        f"\t{good_label}\r",
        f" {good_label}\r",
        f" {good_label}\n",
        f"   {good_label}\t ",
    ]
    for label in labels:
        data_building = {"label": label}
        response = client.post(
            f"{settings.API_V1_STR}/building/",
            json=data_building,
        )
        assert response.status_code == 201
        content_building = response.json()
        building_id = content_building["building_id"]

        assert content_building["label"] == good_label
        assert building_id > 0

        # get building
        response = client.get(f"{settings.API_V1_STR}/building/{building_id}")
        assert response.status_code == 200
        content_get_building = response.json()

        assert content_get_building["label"] == good_label

Let's compare results
for fastapi 0.82.0 or less i get around 0.70 sto run the above test. you can see this in hte following logs :
zeus:ftth$ docker exec -it arobase  pytest   -s -v app/tests/api/test_basic.py
========================================================= test session starts ==========================================================
platform linux -- Python 3.10.4, pytest-7.2.0, pluggy-1.0.0 -- /usr/local/bin/python
cachedir: .pytest_cache
rootdir: /code
plugins: cov-4.0.0, anyio-3.6.2, Faker-15.3.1
collected 1 item

app/tests/api/test_basic.py::test_data [2022-11-10 12:46:19,364] [INFO] app starting..
PASSED[2022-11-10 12:46:19,980] [INFO] App shutting down...

========================================================== 1 passed in 0.69s ===========================================================

for fastapi > 0.82.0, it takes 1.58 s to do the same thing
zeus:ftth$ docker exec -it arobase  pytest   -s -v app/tests/api/test_basic.py
========================================================= test session starts ==========================================================
platform linux -- Python 3.10.4, pytest-7.2.0, pluggy-1.0.0 -- /usr/local/bin/python
cachedir: .pytest_cache
rootdir: /code
plugins: cov-4.0.0, anyio-3.6.2, Faker-15.3.1
collected 1 item

app/tests/api/test_basic.py::test_data [2022-11-10 12:48:05,111] [INFO] app starting..
PASSED[2022-11-10 12:48:06,612] [INFO] App shutting down...

========================================================== 1 passed in 1.58s ===========================================================

As you can imagine this only for one simple test but since i got a lot whole more you can clearly feel the latency between the version 0.82.0 and any version > 0.82.0 .
is the way i raise expection in my session dependency, has to do something with it ? maybe something changed in on how to handle exceptions using dependency?

It's hard to tell without seeing all the code and being able to run something. If you can provide a minimal, self-contained code example that shows your problem so that I can replicate it and investigate it here that would be great. 🙏 Otherwise it's just blind attempts at imagining your code and what could be happening.

Thanks for reporting back and closing the issue 👍


daily update 4.3.19

Changes:

added Node, Edge, and Path classes to cw_geodata.vector_label.graph to make it easier to understand what's going on. As a result, I
removed osmnx dependency (was killing rtfd builds)
added parallel processing option for graph creation

Codecov Report

Merging #35 into master will decrease coverage by 5.52%.
The diff coverage is 50.74%.

@@            Coverage Diff             @@
##           master      #35      +/-   ##
==========================================
- Coverage    90.1%   84.57%   -5.53%
==========================================
  Files          15       15
  Lines         697      752      +55
==========================================
+ Hits          628      636       +8
- Misses         69      116      +47

Impacted Files
Coverage Δ

setup.py
0% <0%> (ø)
:arrow_up:

cw_geodata/utils/geo.py
83.95% <11.11%> (-9.11%)
:arrow_down:

cw_geodata/vector_label/graph.py
58% <54.03%> (-18.93%)
:arrow_down:

Continue to review full report at Codecov.

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


Improve sentence on Quorum resources and offline states preventing split-brain

I think the following could be re-written
"But after the cluster is down to two nodes, there's a risk that the clustered resources will go offline if a node loss or communication failure to prevent a split-brain scenario."
as
"But after the cluster is down to two nodes, if there is another node loss or communication failure, there is a risk that the clustered resources will go offline to prevent a split-brain scenario."

Document Details
⚠ Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

ID: 4c7efa58-62a5-7bcc-145c-b477e861b205
Version Independent ID: b1b8594f-1454-2289-35fa-4c3b3589bd2a
Content: HADR configuration best practices - SQL Server on Azure VMs
Content Source: azure-sql/virtual-machines/windows/hadr-cluster-best-practices.md
Service: virtual-machines-sql
Sub-service: hadr
GitHub Login: @tarynpratt
Microsoft Alias: tarynpratt

@jshealth
Thanks for your feedback! We will investigate and update as appropriate.

@jshealth
Thanks for bringing this to our attention.
I'm going to assign this to the document author so they can take a look at it accordingly

Hi @jshealth, thanks for the feedback. I have processed a change based on your recommendation and it should be live later this week. I'll go ahead and close out this Git issue, but please feel free to comment should you need anything further. Thanks again.
#please-close

Thanks for your speedy response. It's no wonder Microsoft docs are way ahead of the competition now.


webcam

Hi, can I use your code for webcam usb (/dev/video0)?

this code is specific to the Raspberry Pi camera API. Maybe you could borrow the framework as an abstract structure to write something for your device, but if you are not using the RPi cam, this won't work for you.


Workspace Entities

Also assumes #19 is close to being merged. I imagine this would be reviewed post-merge of that patch. There are changes there specifically around EE testing that I believe are worth keeping.

Question: What is the use case here? You should not need to directly manipulate Workspace entities usually.


breaking change: change decorator API to use test function

fixes #10 and allows for subclass to decide how to match a decorator.

README.md need to be updated.


Ldap attributes are not resolved correctly

Gitea version (or commit ref): 1.13.1
Git version: 2.20.1
Operating system: Debian 10
Source List: https://packaging.gitlab.io/gitea

Database (use [x]):

[ ] PostgreSQL
[ ] MySQL
[ ] MSSQL
[x] SQLite

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

[ ] Yes (provide example URL)
[x] No

Log gist:

Description
I used Ldap via BindDN as authentication method. This works quite well but the ldap mail attribute mail
which should resolve the correct mail accounts  sometimes fetches the correct mail and sometimes produces
<username>@localhost which is not in the Ldap. The ldap server i use is the Samba Ldap Backend.
Screenshots

I've done some more research on my point and found, that gitea resolves the attributes correctly.
Gitea uses name@localhost as default if ldap returns nothing oder garbage.
The problem is that there is no re-fetch to get the current attributes values (i would think this should be done by the user).

Never mind, found the settings.


[Question]: How can I create a ImageDocument directly from a binary string or base64 encoded string?

Question Validation

[X] I have searched both the documentation and discord for an answer.

Question
I'm trying to use OpenAIMultiModal class to process a few images that I found in a PDF. The image data are stored as a tentative variable either in a binary string or a base64 encoded string. However, from the official document, it seems that we need to read images from a url or a local file to create an ImageDocument that can be processed by OpenAIMultiModal.
I cannot save the image to disk and read it back due to disk space concerns.  Is there any way to directly create an ImageDocument from a binary string? Or is it possible to call the complete function in OpenAIMultiModal with an image string? Currently I'm using the following code as an alternative solution using vanilla OpenAI API call. How can I convert it into llama_index wrapper?
def gpt4_image_summarization(encoded_image: str) -> (str, int):
    """
    Description: Summarize the image (in utf-8 encoded string) using GPT-4-vision API.
    """
    headers = {
        "Content-Type": "application/json",
        "Authorization": f"Bearer {settings.OPENAI_API_KEY}",
    }

    payload = {
        "model": "gpt-4-vision-preview",
        "messages": [
            {
                "role": "user",
                "content": [
                    {
                        "type": "text",
                        "text": """
            What is in this image? Please give me a summary of the image with no more than 3 sentences.
            If you identify the image as a diagram, please list out all components of the diagram.
            """,
                    },
                    {
                        "type": "image_url",
                        "image_url": {
                            "url": f"data:image/jpeg;base64,{encoded_image}"
                        },
                    },
                ],
            }
        ],
        "max_tokens": 300,
    }

    response = requests.post(
        "https://api.openai.com/v1/chat/completions", headers=headers, json=payload
    )
    if "choices" in response.json():
        return response.json()["choices"][0]["message"]["content"], response.status_code
    else:
        return f"No summary is generated.\n {response.json()}", response.status_code

Assuming you get the base64 as a string
from llama_index.schema import ImageDocument

document = ImageDocument(text="optional", image=b64_string)

from llama_index.multi_modal_llms.openai import OpenAIMultiModal

llm = OpenAIMultiModal(
    model="gpt-4-vision-preview", api_key=OPENAI_API_TOKEN, max_new_tokens=300
)

response = llm.complete("Tell me about this image", image_documents=[document])


"Error: no fast5 file found" When indexing

Hello,
I managed to run through the example provided so I know the code is working. But when I used a bit of sample data I generated a while back it gave me this error when I tried to index the data. Any suggestions to correct it?
I suspect maybe it is to do with the nature of my data? My Nanopore run was comparing a 3500 bp DNA with various Methyltransferases, which I barcoded and ran multiple samples together. I usually use Tombo to get resquiggles and examine the methylation sites, but wanted to try out Nanopolish with the same data to see what it would output.

Hi,
I'm having the same issue.
My merged fastq and sequencing summary are in the directory I'm running the code in and the fast5s are in a subdirectory within it. I made sure I have rwx permissions on all files including the fast5s.

fast5_pass
2673_Tumor_PAG56305.fastq.index.fai
2673_Tumor_PAG56305.fastq
2673_Tumor_PAG56305.fastq.index.gzi
2673_Tumor_PAG56305.fastq.index
Nanopolish_sequencing_summary_2673_Tumor_PAG56305.txt

I'm passing the sample name to nanopolish with variables.
nanopolish index -d ${PROJDIR}/${Readset}/fast5_pass -s ${PROJDIR}/${Readset}/Nanopolish_sequencing_summary_${Readset}.txt ${PROJDIR}/${Readset}/${Readset}.fastq
Thanks,
Melissa

I have also encountered this problem. Have you resolved it?

Can you try the f5c index (compatible with nanopolish index) to see if it gives any warnings or errors? https://github.com/hasindu2008/f5c/
Suggest using a command like below (avoiding sequencing sequencing summary based option)
f5c index -t8 --iop 8 a.fastq -d fast5dir

Hi, @hasindu2008
Thank you! I have solved this problem!
Best, Chen


wip: Assume that X = A.new has type A

Motivation

Test plan

See included automated tests.

We have a policy of testing changes to Sorbet against Stripe's codebase before
merging them. I've kicked off a test run for the current PR.  When the build
finishes, I'll share with you whether or how it failed. Thanks!
Stripe employees can see the build results here:
→ https://go/builds/bui_MwRmZXzQtKy9SS
→ https://go/builds/bui_MwRmasWN5NbpV9

Pretty sure Stripe's codebase has instances of A.new overrides that don't actually return an instance of A. 😢 (I ran into these cases when optimizing new in the compiler.)

The idea is that if we limit this to # typed: true or even # typed: strict files, either (1) the typechecker tells us all the violations and we go fix them with a codemod before landing, or (2) we limit ourselves to typed: strict files, which must necessarily already have T.let, preventing the rewriter from firing.

Update: it caused 35 failure when run at # typed: true. Going to try again at typed: strict.

Update: it caused 35 failure when run at # typed: true. Going to try again at typed: strict.

I misspoke, it actually only caused 21 errors at typed: true, and all of them were legitimate type errors.
I could go either way (do this at typed true or at typed strict). In any case, we can't land until we get a better error message that communicates what's going on.


Force reload of WMS tiles?

I want to force a refresh of WMS tiles every minute.
For this reason I added a Interval component in my application and created a callback which tries to append a cache parameter to the WMS request url so that the tiles are forced to reload.
# Map Container for layout
dl.Map(
dl.WMSTileLayer(url="https://maps.dwd.de/geoserver/ows?", id='wms-layer-point',),
)

# callback to update the URL
@callback(
    Output("wms-layer-point", "url"),
    Input("interval-wms-refresh", "n_intervals"),
    prevent_initial_call=True,
)
def refresh_wms(n_intervals):
    if n_intervals > 0:
        return f"https://maps.dwd.de/geoserver/ows?cache={int(time.time())}"

However it seems this doesn't have any impact on the URL of the WMS Tiles (although the callback is correctly executed).
Is this due to the fact that in the new leaflet everything inside the Map container is immutable?
Is there any other way to force a refresh of the WMS tiles?

Hi Guido,
Haven't tested this idea but I wonder if you could use the params prop to pass a random value on a fake WMS argument to force the update.
The params prop admits custom arguments that are directly passed to the WMS calls -- this is to deal with different non standard WMS implementations. You could use this to pass a new random value on a parameter "aux" each time the callback is triggered so the WMS requests are in fact different. The WMS will normally ignore the "aux" field and return the new tiles.
Hope this helps.